diff --git a/package.json b/package.json index 97e5ef6423..4fe7a149cf 100644 --- a/package.json +++ b/package.json @@ -17,14 +17,6 @@ "build-storyteller": "lerna exec --scope @storyteller/storyteller.io -- yarn build", "start-storyteller": "PORT=7008 BROWSER=none lerna exec --scope @storyteller/storyteller.io -- yarn start", "start-storyteller-w": "set PORT=7008 && lerna exec --scope @storyteller/storyteller.io -- yarn start-w", - "build-powerstream": "lerna exec --scope @storyteller/power.stream -- yarn build", - "start-powerstream": "PORT=7001 BROWSER=none lerna exec --scope @storyteller/power.stream -- yarn start", - "start-powerstream-w": "set PORT=7001 && lerna exec --scope @storyteller/power.stream -- yarn start-w", - "build-powerstream-dashboard": "lerna exec --scope @storyteller/power.stream-dashboard -- yarn build", - "start-powerstream-dashboard": "PORT=7002 BROWSER=none lerna exec --scope @storyteller/power.stream-dashboard -- yarn start", - "start-powerstream-dashboard-w": "set PORT=7002 && lerna exec --scope @storyteller/power.stream-dashboard -- yarn start-w", - "build-powerstream-obs": "lerna exec --scope @storyteller/power.stream-obs -- yarn build", - "start-powerstream-obs": "PORT=7007 BROWSER=none lerna exec --scope @storyteller/power.stream-obs -- yarn start", "build-trumped": "lerna exec --scope @storyteller/trumped.com -- yarn build", "start-trumped": "PORT=7000 BROWSER=none lerna exec --scope @storyteller/trumped.com -- yarn start", "start-trumped-80": "PORT=80 BROWSER=none lerna exec --scope @storyteller/trumped.com -- yarn start", diff --git a/packages/dashboard.power.stream/.gitignore b/packages/dashboard.power.stream/.gitignore deleted file mode 100644 index 4d29575de8..0000000000 --- a/packages/dashboard.power.stream/.gitignore +++ /dev/null @@ -1,23 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# production -/build - -# misc -.DS_Store -.env.local -.env.development.local -.env.test.local -.env.production.local - -npm-debug.log* -yarn-debug.log* -yarn-error.log* diff --git a/packages/dashboard.power.stream/README.md b/packages/dashboard.power.stream/README.md deleted file mode 100644 index b87cb00449..0000000000 --- a/packages/dashboard.power.stream/README.md +++ /dev/null @@ -1,46 +0,0 @@ -# Getting Started with Create React App - -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). - -## Available Scripts - -In the project directory, you can run: - -### `npm start` - -Runs the app in the development mode.\ -Open [http://localhost:3000](http://localhost:3000) to view it in the browser. - -The page will reload if you make edits.\ -You will also see any lint errors in the console. - -### `npm test` - -Launches the test runner in the interactive watch mode.\ -See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. - -### `npm run build` - -Builds the app for production to the `build` folder.\ -It correctly bundles React in production mode and optimizes the build for the best performance. - -The build is minified and the filenames include the hashes.\ -Your app is ready to be deployed! - -See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. - -### `npm run eject` - -**Note: this is a one-way operation. Once you `eject`, you can’t go back!** - -If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. - -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. - -You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. - -## Learn More - -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). - -To learn React, check out the [React documentation](https://reactjs.org/). diff --git a/packages/dashboard.power.stream/craco.config.js b/packages/dashboard.power.stream/craco.config.js deleted file mode 100644 index c17acbd833..0000000000 --- a/packages/dashboard.power.stream/craco.config.js +++ /dev/null @@ -1,24 +0,0 @@ -const path = require("path"); -const { getLoader, loaderByName } = require("@craco/craco"); - -const packages = []; -packages.push(path.join(__dirname, "../components")); - -module.exports = { - webpack: { - configure: (webpackConfig, arg) => { - const { isFound, match } = getLoader( - webpackConfig, - loaderByName("babel-loader") - ); - if (isFound) { - const include = Array.isArray(match.loader.include) - ? match.loader.include - : [match.loader.include]; - - match.loader.include = include.concat(packages); - } - return webpackConfig; - }, - }, -}; diff --git a/packages/dashboard.power.stream/package.json b/packages/dashboard.power.stream/package.json deleted file mode 100644 index e75f620594..0000000000 --- a/packages/dashboard.power.stream/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "@storyteller/dashboard.power.stream", - "version": "0.1.0", - "private": true, - "dependencies": { - "@craco/craco": "^6.4.3", - "@fortawesome/fontawesome-svg-core": "^6.2.1", - "@fortawesome/free-brands-svg-icons": "^6.2.1", - "@fortawesome/free-solid-svg-icons": "^6.2.1", - "@fortawesome/react-fontawesome": "^0.2.0", - "@storyteller/components": "0.1.0", - "@testing-library/jest-dom": "^5.16.1", - "@testing-library/react": "^9.5.0", - "@testing-library/user-event": "^13.5.0", - "@types/jest": "^27.4.0", - "@types/node": "^16.11.21", - "@types/react": "^16.9.36", - "@types/react-dom": "^16.9.8", - "bulma": "^0.9.0", - "craco": "^0.0.3", - "react": "^16.13.1", - "react-autocomplete": "^1.8.1", - "react-dom": "^16.13.1", - "react-router-dom": "^5.2.0", - "react-scripts": "5.0.0", - "typescript": "^4.5.5", - "web-vitals": "^2.1.4" - }, - "scripts": { - "start": "craco start", - "start-w": "set BROWSER=none && craco start", - "build": "craco build", - "test": "craco test", - "eject": "craco eject" - }, - "eslintConfig": { - "extends": [ - "react-app", - "react-app/jest" - ] - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - } -} diff --git a/packages/dashboard.power.stream/public/assets/storyteller-logo.png b/packages/dashboard.power.stream/public/assets/storyteller-logo.png deleted file mode 100644 index 6504997d28..0000000000 Binary files a/packages/dashboard.power.stream/public/assets/storyteller-logo.png and /dev/null differ diff --git a/packages/dashboard.power.stream/public/favicon.ico b/packages/dashboard.power.stream/public/favicon.ico deleted file mode 100644 index a11777cc47..0000000000 Binary files a/packages/dashboard.power.stream/public/favicon.ico and /dev/null differ diff --git a/packages/dashboard.power.stream/public/index.html b/packages/dashboard.power.stream/public/index.html deleted file mode 100644 index 235ed26432..0000000000 --- a/packages/dashboard.power.stream/public/index.html +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - Storyteller. Stream tech. - - - - - - - - - - - - - - - - - - - -
- - - - diff --git a/packages/dashboard.power.stream/public/logo192.png b/packages/dashboard.power.stream/public/logo192.png deleted file mode 100644 index fc44b0a379..0000000000 Binary files a/packages/dashboard.power.stream/public/logo192.png and /dev/null differ diff --git a/packages/dashboard.power.stream/public/logo512.png b/packages/dashboard.power.stream/public/logo512.png deleted file mode 100644 index a4e47a6545..0000000000 Binary files a/packages/dashboard.power.stream/public/logo512.png and /dev/null differ diff --git a/packages/dashboard.power.stream/public/manifest.json b/packages/dashboard.power.stream/public/manifest.json deleted file mode 100644 index 4a14ea6044..0000000000 --- a/packages/dashboard.power.stream/public/manifest.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "short_name": "Storyteller", - "name": "Stream tech", - "icons": [ - { - "src": "favicon.ico", - "sizes": "64x64 32x32 24x24 16x16", - "type": "image/x-icon" - }, - { - "src": "logo192.png", - "type": "image/png", - "sizes": "192x192" - }, - { - "src": "logo512.png", - "type": "image/png", - "sizes": "512x512" - } - ], - "start_url": ".", - "display": "standalone", - "theme_color": "#000000", - "background_color": "#ffffff" -} diff --git a/packages/dashboard.power.stream/public/mascot/kitsune_pose5_black_2000.webp b/packages/dashboard.power.stream/public/mascot/kitsune_pose5_black_2000.webp deleted file mode 100644 index e24d31683a..0000000000 Binary files a/packages/dashboard.power.stream/public/mascot/kitsune_pose5_black_2000.webp and /dev/null differ diff --git a/packages/dashboard.power.stream/public/mascot/kitsune_pose6_black_2000.webp b/packages/dashboard.power.stream/public/mascot/kitsune_pose6_black_2000.webp deleted file mode 100644 index eaadc8d66a..0000000000 Binary files a/packages/dashboard.power.stream/public/mascot/kitsune_pose6_black_2000.webp and /dev/null differ diff --git a/packages/dashboard.power.stream/public/mascot/kitsune_pose8_black_2000.webp b/packages/dashboard.power.stream/public/mascot/kitsune_pose8_black_2000.webp deleted file mode 100644 index 9928cda0b8..0000000000 Binary files a/packages/dashboard.power.stream/public/mascot/kitsune_pose8_black_2000.webp and /dev/null differ diff --git a/packages/dashboard.power.stream/public/obs-tutorial/obs-step1.webp b/packages/dashboard.power.stream/public/obs-tutorial/obs-step1.webp deleted file mode 100644 index 821cc7eac7..0000000000 Binary files a/packages/dashboard.power.stream/public/obs-tutorial/obs-step1.webp and /dev/null differ diff --git a/packages/dashboard.power.stream/public/obs-tutorial/obs-step2.webp b/packages/dashboard.power.stream/public/obs-tutorial/obs-step2.webp deleted file mode 100644 index f726ee2660..0000000000 Binary files a/packages/dashboard.power.stream/public/obs-tutorial/obs-step2.webp and /dev/null differ diff --git a/packages/dashboard.power.stream/public/obs-tutorial/obs-step3.webp b/packages/dashboard.power.stream/public/obs-tutorial/obs-step3.webp deleted file mode 100644 index ff92432f9f..0000000000 Binary files a/packages/dashboard.power.stream/public/obs-tutorial/obs-step3.webp and /dev/null differ diff --git a/packages/dashboard.power.stream/public/robots.txt b/packages/dashboard.power.stream/public/robots.txt deleted file mode 100644 index e9e57dc4d4..0000000000 --- a/packages/dashboard.power.stream/public/robots.txt +++ /dev/null @@ -1,3 +0,0 @@ -# https://www.robotstxt.org/robotstxt.html -User-agent: * -Disallow: diff --git a/packages/dashboard.power.stream/public/storyteller-nav-logo-mascot-pink.png b/packages/dashboard.power.stream/public/storyteller-nav-logo-mascot-pink.png deleted file mode 100644 index 0057c9bf51..0000000000 Binary files a/packages/dashboard.power.stream/public/storyteller-nav-logo-mascot-pink.png and /dev/null differ diff --git a/packages/dashboard.power.stream/src/App.css b/packages/dashboard.power.stream/src/App.css deleted file mode 100644 index 74b5e05345..0000000000 --- a/packages/dashboard.power.stream/src/App.css +++ /dev/null @@ -1,38 +0,0 @@ -.App { - text-align: center; -} - -.App-logo { - height: 40vmin; - pointer-events: none; -} - -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } -} - -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; -} - -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} diff --git a/packages/dashboard.power.stream/src/App.scss b/packages/dashboard.power.stream/src/App.scss deleted file mode 100644 index 23129940a4..0000000000 --- a/packages/dashboard.power.stream/src/App.scss +++ /dev/null @@ -1,485 +0,0 @@ -//@import-normalize; /* bring in normalize.css styles */ - -// $page-width: 700px; -$primary: #fc6b68; -$white: #fff; -$light-text-color: #777; -$button-text-color: #666; - -$body-font-family: "Fira Sans", serif; -$nav-font-family: "Fira Sans", sans-serif; -$footer-font-family: "Fira Sans Condensed", sans-serif; -$textarea-font-family: "Fira Sans", sans-serif; -$headings-font-family: "Merriweather", serif; - -// body { -// font-family: $body-font-family; -// font-weight: 300; // For Fira Sans -// } - -// .mainwrap { -// max-width: 1000px; -// margin: auto; -// } - -.git-sha { - color: #999; - font-size: 0.8rem; -} - -html { - height: 100%; -} - -body { - height: 100%; - font-family: "Fira Sans", sans-serif; - color: #fff; -} - -hr { - border: 0; - border-top: 1px solid rgba(255, 255, 255, 0.1); -} - -button:focus, -button:active, -button:hover, -label:focus, -.btn:active, -.btn.focus { - outline: 0px !important; - -webkit-appearance: none; - box-shadow: none !important; -} - -a { - font-weight: 400; - color: #fc6b68; - text-decoration: none; - cursor: pointer; - transition: 0.1s; -} - -.text-link { - color: #fc6b68; -} - -a:hover { - color: #ff8d8b; -} - -h1 { - font-weight: 700; -} - -h3 { - color: rgba(255, 255, 255, 0.8); -} - -p { - font-weight: 300; - margin-bottom: 0; - color: rgba(255, 255, 255, 0.8); -} - -.pre-heading { - font-size: 18px; - color: #fc6b68; - text-transform: uppercase; -} - -.rotateimg180 { - -webkit-transform: rotate(180deg); - -moz-transform: rotate(180deg); - -ms-transform: rotate(180deg); - -o-transform: rotate(180deg); - transform: rotate(180deg); -} - -.container { - max-width: 1200px; -} - -.container, -.container-fluid, -.container-lg, -.container-md, -.container-sm, -.container-xl, -.container-xxl { - width: 100%; - padding-right: var(--bs-gutter-x, 1rem); - padding-left: var(--bs-gutter-x, 1rem); -} - -.noselect { - -webkit-touch-callout: none; /* iOS Safari */ - -webkit-user-select: none; /* Safari */ - -khtml-user-select: none; /* Konqueror HTML */ - -moz-user-select: none; /* Old versions of Firefox */ - -ms-user-select: none; /* Internet Explorer/Edge */ - user-select: none; /* Non-prefixed version, currently - supported by Chrome, Edge, Opera and Firefox */ -} - -/*margin top/bottom for panels*/ -.py-6 { - padding-top: 1.6rem !important; - padding-bottom: 0rem !important; -} - -.navbar { - z-index: 100; -} - -.navbar-main { - z-index: 100; - width: 100%; - transition: all 0.1s; - border-color: rgba(255, 255, 255, 0.07) !important; - border-bottom: 0px solid; - padding-top: 10px; - padding-bottom: 10px; -} - -.navbar-fixed { - position: fixed; -} - -.navbar-main.scrolled { - background-color: #2e222c; - border-color: rgba(255, 255, 255, 0.07) !important; - border-bottom: 1px solid; -} - -.navbar-dark .navbar-toggler { - border: none; -} - -// .nav-bg-dark { -// background-color: #17101c !important; -// } - -.nav-pills .nav-link.active, -.nav-pills .show > .nav-link { - color: #fff; - background-color: $primary; - - &:hover { - background-color: $primary; - } -} - -.nav-pills .nav-link { - border-radius: 5px; - color: rgba(#fff, 0.7); - transition: 0.2s; - padding: 12px 14px !important; - - &:hover { - background-color: rgba($white, 0.1); - } -} - -.icon { - content: ""; - width: 20px; - margin-right: 16px; -} - -.p-page-top { - padding-top: 110px; -} - -.p-page { - padding-top: 100px; - padding-bottom: 100px; -} - -.offcanvas { - width: 100vw; - height: 100%; -} - -.offcanvas-header { - padding-top: 10px; - padding-bottom: 10px; -} - -.nav-link { - font-size: 15px; - font-weight: 500; - padding-left: 16px !important; - padding-right: 16px !important; -} - -.navbar-brand { - padding-top: 0; -} - -.lead { - font-size: 18px; -} - -.parent { - position: relative; -} - -span.word { - position: relative; - z-index: 1; -} - -.fw-semibold { - font-weight: 500; -} - -.fs-7 { - font-size: 14px; -} - -span.word:after { - background-color: #fc6b68; - content: " "; - height: 15%; - position: absolute; - left: 0; - margin-left: 0rem; - top: 74%; - width: calc(100%); - z-index: -1; -} - -.bg-gradient { - background: rgb(13, 16, 25) !important; - background: linear-gradient( - 325deg, - rgba(13, 16, 25, 1) 0%, - rgba(42, 21, 34, 1) 55%, - rgba(16, 14, 26, 1) 100% - ) !important; - position: relative; - overflow: hidden; - min-height: 100%; -} - -.bg-hero { - background: rgb(18, 14, 26); - background: linear-gradient( - 180deg, - rgba(18, 14, 26, 1) 0%, - rgba(48, 23, 32, 1) 100% - ); -} - -.btn { - border-radius: 5px; - outline: none; - font-size: 15px; - font-weight: 600; - padding: 10px 24px; - z-index: 1; -} - -.btn-primary, -.btn-primary:active, -.btn-primary:focus { - background-color: #fc6b68; - border: 2.5px solid; - border-color: #fc6b68; - transition: 0.2s; -} - -.btn-primary:hover { - background-color: #ff8d8b; - border: 2.5px solid; - border-color: #ff8d8b; -} - -.btn-secondary, -.btn-secondary:focus, -.btn-secondary:active { - background-color: #fff; - color: #443a40; - border: 2.5px solid; - border-color: #fff; - transition: 0.2s; -} - -.btn-secondary:hover { - background-color: #ccc; - color: #443a40; - border: 2.5px solid; - border-color: #ccc; -} - -.btn-destructive, -.btn-destructive:active, -.btn-destructive:focus { - background-color: #fff; - color: #fc6b68; - border: 2.5px solid; - border-color: #fff; - transition: 0.2s; -} - -.btn-destructive:hover { - background-color: #fdcfce; - color: #fc6b68; - border: 2.5px solid; - border-color: #fdcfce; -} - -.btn-hero { - padding-left: 35px !important; - padding-right: 35px !important; -} - -.btn-small { - padding: 0rem; -} - -.nav-login { - font-size: 15px; - font-weight: 500; - color: #fff; - text-decoration: none; - transition: 0.1s; -} - -.nav-login:hover { - color: rgba(255, 255, 255, 0.6); - text-decoration: none; - transition: 0.1s; -} - -.hero-section { - height: 100vh; - width: 100%; - min-height: 600px; - max-height: 1080px; - text-align: center; - overflow: hidden; - /* background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:svgjs='http://svgjs.com/svgjs' width='1920' height='300' preserveAspectRatio='none' viewBox='0 0 1920 300'%3e%3cg mask='url(%26quot%3b%23SvgjsMask1327%26quot%3b)' fill='none'%3e%3cpath d='M486 46L1358 45' stroke-width='10' stroke='url(%23SvgjsLinearGradient1328)' stroke-linecap='round' class='Right'%3e%3c/path%3e%3cpath d='M312 288L-212 287' stroke-width='6' stroke='url(%23SvgjsLinearGradient1328)' stroke-linecap='round' class='Right'%3e%3c/path%3e%3cpath d='M1583 12L2334 11' stroke-width='8' stroke='url(%23SvgjsLinearGradient1329)' stroke-linecap='round' class='Left'%3e%3c/path%3e%3cpath d='M1219 65L1985 64' stroke-width='10' stroke='url(%23SvgjsLinearGradient1329)' stroke-linecap='round' class='Left'%3e%3c/path%3e%3cpath d='M1877 57L2438 56' stroke-width='8' stroke='url(%23SvgjsLinearGradient1328)' stroke-linecap='round' class='Right'%3e%3c/path%3e%3cpath d='M347 173L-797 172' stroke-width='10' stroke='url(%23SvgjsLinearGradient1328)' stroke-linecap='round' class='Right'%3e%3c/path%3e%3cpath d='M762 234L-332 233' stroke-width='6' stroke='url(%23SvgjsLinearGradient1329)' stroke-linecap='round' class='Left'%3e%3c/path%3e%3cpath d='M621 133L2031 132' stroke-width='8' stroke='url(%23SvgjsLinearGradient1328)' stroke-linecap='round' class='Right'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cmask id='SvgjsMask1327'%3e%3crect width='1920' height='300' fill='white'%3e%3c/rect%3e%3c/mask%3e%3clinearGradient x1='0%25' y1='0%25' x2='100%25' y2='0%25' id='SvgjsLinearGradient1328'%3e%3cstop stop-color='rgba(247%2c 84%2c 92%2c 0)' offset='0'%3e%3c/stop%3e%3cstop stop-color='rgba(247%2c 84%2c 92%2c 0.05)' offset='1'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient x1='100%25' y1='0%25' x2='0%25' y2='0%25' id='SvgjsLinearGradient1329'%3e%3cstop stop-color='rgba(247%2c 84%2c 92%2c 0)' offset='0'%3e%3c/stop%3e%3cstop stop-color='rgba(247%2c 84%2c 92%2c 0.05)' offset='1'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e"); */ - background-position: 0 120px; - background-repeat: no-repeat; - background-size: 100%; -} - -.hero-inner { - padding-top: 100px; - height: 100%; -} - -.hero-text { - max-width: 800px; -} - -.hero-img-section { - display: flex; - position: relative; - justify-content: center; - height: 100%; - width: 100%; - pointer-events: none; -} - -.hero-img { - position: absolute; - bottom: 0; - max-height: 110%; - max-width: 140%; - z-index: 1; -} - -.hero-floor { - position: absolute; - bottom: 0; - width: 100%; - height: 100%; - max-height: 100%; - min-height: 50%; -} - -@keyframes animatedBackground { - from { - background-position: 0px 0; - } - to { - background-position: -1448px 0; - } -} - -#hero-audio-wave { - position: absolute; - bottom: 0; - margin-bottom: 12rem; - opacity: 15%; - width: 115%; - min-height: 150px; - // background-image: url("/assets/hero-audio-wave.png"); - background-repeat: repeat-x; - animation: animatedBackground 20s linear infinite; - mix-blend-mode: screen; -} - -.panel { - position: relative; - width: 100%; - background-color: rgba(255, 255, 255, 0.1); - border-color: #ffffff12 !important; - border: 2px solid; - border-radius: 8px; - backdrop-filter: blur(10px); - -webkit-backdrop-filter: blur(10px); - -webkit-box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25); - box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25); - - &.inner { - background-color: rgba(255, 255, 255, 0.01); - box-shadow: none; - } -} - -.panel-outline { - border-color: rgba(252, 107, 104, 0.5) !important; -} - -.hero-floating-panel { - text-align: left; - position: absolute; - bottom: 180px; - z-index: 3; - width: auto; - height: auto; - padding: 1rem 1.25rem; - pointer-events: none; -} - -.hero-floating-panel-left { - margin-left: -800px; - margin-bottom: 25px; -} - -.hero-floating-panel-right { - margin-right: -760px; - margin-bottom: 100px; -} - -.hero-floating-panel-text { - font-size: 14px; - color: rgba(255, 255, 255, 0.8); -} - -.panel-title { - position: static; - text-align: center; - text-shadow: 0px 3px 26px #00000060; - margin-top: -35px; -} - -.section { - padding-top: 4rem; - padding-bottom: 4rem; -} diff --git a/packages/dashboard.power.stream/src/App.test.tsx b/packages/dashboard.power.stream/src/App.test.tsx deleted file mode 100644 index bfe47f2987..0000000000 --- a/packages/dashboard.power.stream/src/App.test.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import React from 'react'; -//import { render, screen } from '@testing-library/react'; -import App from './App'; - -test('renders learn react link', () => { - // NB(2022-02-01): This broke when converting to a monorepo. - // I hadn't been using the tests anyhow. - //render(); - //const linkElement = screen.getByText(/learn react/i); - //expect(linkElement).toBeInTheDocument(); -}); diff --git a/packages/dashboard.power.stream/src/App.tsx b/packages/dashboard.power.stream/src/App.tsx deleted file mode 100644 index 4fe7fed01c..0000000000 --- a/packages/dashboard.power.stream/src/App.tsx +++ /dev/null @@ -1,209 +0,0 @@ -// import 'bulma/css/bulma.css' -import "./App.scss"; - -import React from "react"; -import { BrowserRouter, Route, Switch } from "react-router-dom"; -import { GitSha } from "@storyteller/components/src/elements/GitSha"; -import { - ListTtsModels, - TtsModelListItem, -} from "@storyteller/components/src/api/tts/ListTtsModels"; -import StreamPage from "./pages/stream/StreamPage"; -import i18n from "i18next"; -import { ComingSoonPage } from "./pages/coming-soon/ComingSoonPage"; -import { LoginPage } from "./pages/login/LoginPage"; -import { SignupPage } from "./pages/signup/SignupPage"; -import { TtsConfigsIndexPage } from "./pages/tts_configs/TtsConfigsIndexPage"; -import { - DetectLocale, - DetectLocaleIsOk, -} from "@storyteller/components/src/api/locale/DetectLocale"; -import { IndexPage } from "./pages/index/IndexPage"; -import { STORYTELLER_MERGED_TRANSLATIONS } from "./_i18n/StorytellerTranslations"; -import { SessionWrapper } from "@storyteller/components/src/session/SessionWrapper"; -import { TopNav } from "./layout/TopNav"; -import { initReactI18next } from "react-i18next"; -import { TtsConfigsCreateRulePage } from "./pages/tts_configs/TtsConfigsCreateRulePage"; -import { TtsConfigsDeleteRulePage } from "./pages/tts_configs/TtsConfigsDeleteRulePage"; -import { TtsConfigsEditRulePage } from "./pages/tts_configs/TtsConfigsEditRulePage"; -import { TtsConfigsReorderPage } from "./pages/tts_configs/TtsConfigsReorderPage"; -import { ObsConfigsPage } from "./pages/obs_configs/ObsConfigsPage"; -import { Dashboard } from "./pages/dashboard/Dashboard"; - -i18n - .use(initReactI18next) // passes i18n down to react-i18next - .init({ - // the translations - // (tip move them in a JSON file and import them, - // or even better, manage them via a UI: https://react.i18next.com/guides/multiple-translation-files#manage-your-translations-with-a-management-gui) - resources: STORYTELLER_MERGED_TRANSLATIONS, - //lng: 'en', // if you're using a language detector, do not define the lng option - fallbackLng: "en", - - interpolation: { - escapeValue: false, // react already safes from xss => https://www.i18next.com/translation-function/interpolation#unescape - }, - }); - -interface Props {} - -interface State { - sessionWrapper: SessionWrapper; - allTtsModels: TtsModelListItem[]; - allTtsModelsByToken: Map; -} - -// Root element is a non-functional component for easier global lifecycle management -class App extends React.Component { - constructor(props: Props) { - super(props); - this.state = { - sessionWrapper: SessionWrapper.emptySession(), - allTtsModels: [], - allTtsModelsByToken: new Map(), - }; - } - - async componentDidMount() { - await this.querySession(); - await this.queryLanguage(); - await this.queryTtsModels(); - setInterval(async () => { - await this.querySession(); - }, 60000); - } - - querySession = async () => { - const sessionWrapper = await SessionWrapper.lookupSession(); - this.setState({ - sessionWrapper: sessionWrapper, - }); - }; - - queryLanguage = async () => { - let locale = await DetectLocale(); - if (DetectLocaleIsOk(locale)) { - // TODO - } - }; - - queryTtsModels = async () => { - if (this.state.allTtsModels.length > 0) { - return; // Already queried. - } - const models = await ListTtsModels(); - if (models) { - let allTtsModelsByToken = new Map(); - - models.forEach((item) => { - allTtsModelsByToken.set(item.model_token, item); - }); - - //dynamicallyCategorizeModels(models); - this.setState({ - allTtsModels: models, - allTtsModelsByToken: allTtsModelsByToken, - }); - //if (!maybeSelectedTtsModel && models.length > 0) { - // let model = models[0]; - // const featuredModels = models.filter(m => m.is_front_page_featured); - // if (featuredModels.length > 0) { - // // Random featured model - // model = featuredModels[ - // Math.floor(Math.random()*featuredModels.length) - // ]; - // } - // setMaybeSelectedTtsModel(model); - //} - } - }; - - public render() { - return ( - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {/*
-
-

Copyright © 2022 Storyteller

-

- -

-
-
*/} -
-
-
- ); - } -} - -export default App; diff --git a/packages/dashboard.power.stream/src/_i18n/StorytellerTranslations.ts b/packages/dashboard.power.stream/src/_i18n/StorytellerTranslations.ts deleted file mode 100644 index 044cd67185..0000000000 --- a/packages/dashboard.power.stream/src/_i18n/StorytellerTranslations.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { COMMON_TRANSLATIONS, MergeDeepDictionary } from '@storyteller/components/src/_i18n/CommonTranslations'; - -// Use \u{00a0} =   character literal - -const STORYTELLER_TRANSLATIONS : any = { - // English: 46.6% Twitch (#1), 30+% FakeYou (#1) - en: { - translation: { - commonUi: { - }, - pages: { - }, - }, - }, - // Spanish: 10.5% Twitch (#2), 20+% FakeYou (#2) - es: { - translation: { - commonUi: { - }, - pages: { - }, - }, - }, - - // ---------- OTHER LANGUAGES ---------- - - // German: 6.5% Twitch (#4) - de: { - translation: { - } - }, - // French: 5.6% Twitch (#6) - fr: { - translation: { - } - }, - // Indonesian 2% FakeYou - id: { - translation: { - } - }, - // Japanese: 2.5% Twitch (#8) - ja: { - translation: { - }, - }, - // Korean: 5.4% Twitch (#7) - ko: { - translation: { - } - }, - // Portuguese: 6.2% Twitch (#5) - pt: { - translation: { - }, - }, - // 6.5% Twitch (#3) - ru: { - translation: { - } - }, - // Turkish: 4% FakeYou (#3) - tr: { - translation: { - } - }, -} - -// TODO: Type these as i18next dictionaries -const STORYTELLER_MERGED_TRANSLATIONS : any = MergeDeepDictionary(STORYTELLER_TRANSLATIONS, COMMON_TRANSLATIONS); - -export { STORYTELLER_MERGED_TRANSLATIONS } diff --git a/packages/dashboard.power.stream/src/index.css b/packages/dashboard.power.stream/src/index.css deleted file mode 100644 index d942c42f27..0000000000 --- a/packages/dashboard.power.stream/src/index.css +++ /dev/null @@ -1,13 +0,0 @@ -body { - margin: 0; - /*font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', - 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', - sans-serif;*/ - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -code { - font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', - monospace; -} diff --git a/packages/dashboard.power.stream/src/index.tsx b/packages/dashboard.power.stream/src/index.tsx deleted file mode 100644 index ef2edf8ea3..0000000000 --- a/packages/dashboard.power.stream/src/index.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import ReactDOM from 'react-dom'; -import './index.css'; -import App from './App'; -import reportWebVitals from './reportWebVitals'; - -ReactDOM.render( - - - , - document.getElementById('root') -); - -// If you want to start measuring performance in your app, pass a function -// to log results (for example: reportWebVitals(console.log)) -// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals -reportWebVitals(); diff --git a/packages/dashboard.power.stream/src/layout/TopNav.tsx b/packages/dashboard.power.stream/src/layout/TopNav.tsx deleted file mode 100644 index 0e7fd99c11..0000000000 --- a/packages/dashboard.power.stream/src/layout/TopNav.tsx +++ /dev/null @@ -1,87 +0,0 @@ -import { SessionWrapper } from "@storyteller/components/src/session/SessionWrapper"; -import React, { useState } from "react"; -import { Link } from "react-router-dom"; -import { TopNavSessionButton } from "./TopNavSessionButton"; - -interface Props { - sessionWrapper: SessionWrapper; - querySessionCallback: () => void; -} - -function TopNav(props: Props) { - return ( - <> - - - ); -} - -export { TopNav }; diff --git a/packages/dashboard.power.stream/src/layout/TopNavSessionButton.tsx b/packages/dashboard.power.stream/src/layout/TopNavSessionButton.tsx deleted file mode 100644 index 26872802ab..0000000000 --- a/packages/dashboard.power.stream/src/layout/TopNavSessionButton.tsx +++ /dev/null @@ -1,80 +0,0 @@ -import React from 'react'; -import { Link, useHistory } from 'react-router-dom'; -import { SessionWrapper } from '@storyteller/components/src/session/SessionWrapper'; -import { Logout } from '@storyteller/components/src/api/session/Logout'; -import { t } from 'i18next'; -import { Gravatar } from '@storyteller/components/src/elements/Gravatar'; - -interface Props { - sessionWrapper: SessionWrapper, - enableAlpha: boolean, - querySessionAction: () => void, - closeHamburgerAction: () => void, -} - -function TopNavSessionButton(props: Props) { - let history = useHistory(); - - if (!props.enableAlpha) { - return - - ); -} - -export { TopNav }; diff --git a/packages/power.stream-dashboard/src/layout/TopNavSessionButton.tsx b/packages/power.stream-dashboard/src/layout/TopNavSessionButton.tsx deleted file mode 100644 index 6759e7c2c2..0000000000 --- a/packages/power.stream-dashboard/src/layout/TopNavSessionButton.tsx +++ /dev/null @@ -1,87 +0,0 @@ -import React from "react"; -import { Link, useHistory } from "react-router-dom"; -import { SessionWrapper } from "@storyteller/components/src/session/SessionWrapper"; -import { Logout } from "@storyteller/components/src/api/session/Logout"; -import { t } from "i18next"; -import { Gravatar } from "@storyteller/components/src/elements/Gravatar"; - -interface Props { - sessionWrapper: SessionWrapper; - enableAlpha: boolean; - querySessionAction: () => void; -} - -function TopNavSessionButton(props: Props) { - let history = useHistory(); - - if (!props.enableAlpha) { - return