Switch to typescript

Repository details (talkie)
Project page
talkie
Project log category
(708 entries)
Repository
@joelpurra/talkie
Owner
@joelpurra
Contributors
Contributors on Github
Project status
⏲️ This project has had recent commits.
📂 This project is open.
🌠 This project is popular.
Repository activity period
🗓
Commits
751 commits
Stars
71 stars
Commit details (5203d9fa)
Author
Authored at
Committer
Joel Purra
Committed at

Commit message

Switch to typescript

  • Moves all code to ./code/ to keep the root clean
    • Mainly an aesthetical change for github users, focused on documentation browsing.
    • The reduced root file list should appear less intimidating for non-developers.
  • Reorganizes code in logical groups and to avoid circular dependencies.
    • The package splitting could be more granular.
    • Reworks some of the packaging steps and tooling around tsc and rollup.
    • Generates dependency graphs in ./code/packages/ during build.
  • Introduces typescript types in most places.
    • Prefer interfaces, in particular for "dynamically loaded" shared environment code for browsers/node and React component classes.
    • Attempts to follow good practices, such as Readonly<> types. Linting rules help enforce these good practices.
  • Fixes some functional bugs, but apart from that the extension should be the same.
  • This big commit consisted of several hundred small(ish) commits, many of which were search-replace steps and iterative typescript/linting fixes. Alas it was not feasible to keep the changes grouped, thus they have all been squashed.
Raw text
Switch to typescript

- Moves all code to `./code/` to keep the root clean
  - Mainly an aesthetical change for github users, focused on documentation browsing.
  - The reduced root file list should appear less intimidating for non-developers.
- Reorganizes code in logical groups and to avoid circular dependencies.
  - The package splitting could be more granular.
  - Reworks some of the packaging steps and tooling around `tsc` and `rollup`.
  - Generates dependency graphs in `./code/packages/` during build.
- Introduces typescript types in most places.
  - Prefer interfaces, in particular for "dynamically loaded" shared environment code for browsers/`node` and React component classes.
  - Attempts to follow good practices, such as `Readonly<>` types. Linting rules help enforce these good practices.
- Fixes some functional bugs, but apart from that the extension should be the same.
- This big commit consisted of several hundred small(ish) commits, many of which were search-replace steps and iterative typescript/linting fixes. Alas it was not feasible to keep the changes grouped, thus they have all been squashed.

Changed files (713)

Path Additions Deletions
.babelrc +0 -26
.eslintignore +0 -4
.github/CONTRIBUTING.md +4 -4
.github/PULL_REQUEST_TEMPLATE.md +2 -2
.gitignore +0 -10
CLA.md +4 -4
DEVELOP.md +117 -51
README.md +37 -37
.editorconfig => code/.editorconfig +0 -0
code/.eslintignore +5 -0
.gitattributes => code/.gitattributes +6 -2
code/.gitignore +4 -0
code/.ncurc.json +4 -0
code/.npmrc +1 -0
code/.prettierignore +2 -0
code/.syncpackrc.json +4 -0
.xo-config.js => code/.xo-config.cjs +2 -2
LICENSE-BANNER => code/build/LICENSE-BANNER +3 -3
rollup.config.options.html.js => code/build/rollup.config.base.js +20 -17
rollup.config.stay-alive.js => code/build/rollup.config.browser.js +36 -28
rollup.config.react.browser.js => code/build/rollup.config.browser.react.js +9 -42
rollup.config.filesize.js => code/build/rollup.config.filesize.js +1 -0
rollup.config.license.js => code/build/rollup.config.license.js +3 -4
src/options/constants/action-types-navigation.js => code/build/rollup.config.merge.js +3 -1
code/build/rollup.config.node.executable.js +30 -0
code/build/rollup.config.node.js +49 -0
code/build/rollup.config.node.react.js +33 -0
code/build/rollup.config.webext.js +74 -0
code/build/update-project-references.sh +89 -0
code/lerna.json +4 -0
code/manifest.json +81 -0
code/package.json +106 -0
code/packages/.gitignore +13 -0
code/packages/README.md +56 -0
code/packages/all-renderer/.npmrc +1 -0
code/packages/all-renderer/package.json +46 -0
rollup.config.demo.html.js => code/packages/all-renderer/rollup.config.js +7 -8
render.html.js => code/packages/all-renderer/src/all-renderer.ts +11 -18
code/packages/all-renderer/src/ensure-and-get-output-path.ts +44 -0
code/packages/all-renderer/src/get-all-applications.ts +46 -0
code/packages/all-renderer/src/render-template.ts +59 -0
code/packages/all-renderer/src/render-templates.ts +63 -0
code/packages/all-renderer/tsconfig.cjs.json +25 -0
code/packages/all-renderer/tsconfig.esm.json +25 -0
code/packages/all-renderer/tsconfig.json +28 -0
code/packages/browser-background/.npmrc +1 -0
code/packages/browser-background/package.json +48 -0
code/packages/browser-background/rollup.config.js +39 -0
code/packages/browser-background/src/background.html +33 -0
code/packages/browser-background/src/background.ts +122 -0
code/packages/browser-background/src/background/add-on-installed-event-queue-polling.ts +51 -0
code/packages/browser-background/src/background/background-types.ts +30 -0
code/packages/browser-background/src/background/create-and-start-command-listener.ts +75 -0
code/packages/browser-background/src/background/create-and-start-suspension-listener.ts +60 -0
code/packages/browser-background/src/background/create-and-start-tab-listeners.ts +58 -0
code/packages/browser-background/src/background/create-talkie-services.ts +153 -0
code/packages/browser-background/src/background/get-command-map.ts +63 -0
code/packages/browser-background/src/background/get-dependencies.ts +163 -0
code/packages/browser-background/src/background/setup-broadcaster-listeners-and-killswitches.ts +178 -0
src/background/button-popup-manager.js => code/packages/browser-background/src/button-popup-manager.ts +30 -32
src/background/chain.js => code/packages/browser-background/src/chain.ts +10 -12
src/background/clipboard-manager.js => code/packages/browser-background/src/clipboard-manager.ts +35 -28
src/popup/reducers/index.js => code/packages/browser-background/src/command-handler-types.ts +2 -8
src/background/command-handler.js => code/packages/browser-background/src/command-handler.ts +18 -16
src/background/context-menu-manager.js => code/packages/browser-background/src/context-menu-manager.ts +73 -53
code/packages/browser-background/src/dummy.ts +28 -0
code/packages/browser-background/src/icon-manager.ts +75 -0
code/packages/browser-background/src/language-helper.ts +347 -0
code/packages/browser-background/src/non-breaking-chain.ts +53 -0
code/packages/browser-background/src/on-installed-manager-types.ts +30 -0
src/background/on-installed-manager.js => code/packages/browser-background/src/on-installed-manager.ts +41 -22
src/background/only-last-caller.js => code/packages/browser-background/src/only-last-caller.ts +8 -8
code/packages/browser-background/src/permissions-manager.ts +132 -0
src/background/read-clipboard-manager.js => code/packages/browser-background/src/read-clipboard-manager.ts +16 -23
src/background/shortcut-key-manager.js => code/packages/browser-background/src/shortcut-key-manager.ts +11 -11
src/background/speaking-status.js => code/packages/browser-background/src/speaking-status.ts +22 -21
src/background/suspension-connector-manager.js => code/packages/browser-background/src/suspension-connector-manager.ts +22 -18
src/background/suspension-manager.js => code/packages/browser-background/src/suspension-manager.ts +47 -30
code/packages/browser-background/src/talkie-background.ts +358 -0
code/packages/browser-background/src/talkie-speaker.ts +410 -0
code/packages/browser-background/src/text-helper.ts +74 -0
code/packages/browser-background/src/voice-language-manager.ts +176 -0
code/packages/browser-background/src/voice-manager.ts +67 -0
src/background/voice-pitch-manager.js => code/packages/browser-background/src/voice-pitch-manager.ts +30 -37
src/background/voice-rate-manager.js => code/packages/browser-background/src/voice-rate-manager.ts +31 -38
code/packages/browser-background/src/webextension-polyfill.d.ts +27 -0
src/background/welcome-manager.js => code/packages/browser-background/src/welcome-manager.ts +5 -2
code/packages/browser-background/tsconfig.cjs.json +25 -0
code/packages/browser-background/tsconfig.esm.json +25 -0
code/packages/browser-background/tsconfig.json +31 -0
code/packages/browser-localeredirect/.npmrc +1 -0
code/packages/browser-localeredirect/package.json +37 -0
code/packages/browser-localeredirect/rollup.config.js +39 -0
code/packages/browser-localeredirect/src/localeredirect.ts +82 -0
code/packages/browser-localeredirect/tsconfig.cjs.json +9 -0
code/packages/browser-localeredirect/tsconfig.esm.json +9 -0
code/packages/browser-localeredirect/tsconfig.json +9 -0
code/packages/browser-runtime-dependencies/.npmrc +1 -0
code/packages/browser-runtime-dependencies/package.json +34 -0
code/packages/browser-runtime-dependencies/rollup.config.js +92 -0
code/packages/browser-runtime-dependencies/src/dummy.js +26 -0
code/packages/browser-shared/.npmrc +1 -0
code/packages/browser-shared/package.json +45 -0
src/shared/content-logger.js => code/packages/browser-shared/src/content-logger.ts +27 -18
src/frontend/dual-log.js => code/packages/browser-shared/src/dual-log.ts +23 -15
code/packages/browser-shared/src/execute.ts +116 -0
code/packages/browser-shared/src/hydrate/get-actions.ts +52 -0
code/packages/browser-shared/src/hydrate/get-dependencies.ts +69 -0
code/packages/browser-shared/src/hydrate/get-prerendered-state.ts +46 -0
code/packages/browser-shared/src/hydrate/hydrate-html.ts +67 -0
src/shared/plug.js => code/packages/browser-shared/src/plug.ts +24 -12
src/frontend/shared-frontend.js => code/packages/browser-shared/src/shared-frontend.ts +19 -10
code/packages/browser-shared/src/webextension-polyfill.d.ts +27 -0
code/packages/browser-shared/tsconfig.cjs.json +22 -0
code/packages/browser-shared/tsconfig.esm.json +22 -0
code/packages/browser-shared/tsconfig.json +22 -0
code/packages/browser-stayalive/.npmrc +1 -0
code/packages/browser-stayalive/package.json +43 -0
code/packages/browser-stayalive/rollup.config.js +39 -0
code/packages/browser-stayalive/src/stayalive.html +33 -0
src/stay-alive/stay-alive.js => code/packages/browser-stayalive/src/stayalive.ts +13 -8
code/packages/browser-stayalive/src/suspension-listener-manager.ts +228 -0
code/packages/browser-stayalive/src/webextension-polyfill.d.ts +27 -0
code/packages/browser-stayalive/tsconfig.cjs.json +16 -0
code/packages/browser-stayalive/tsconfig.esm.json +16 -0
code/packages/browser-stayalive/tsconfig.json +16 -0
code/packages/demo-application/.npmrc +1 -0
code/packages/demo-application/package.json +51 -0
rollup.config.demo.js => code/packages/demo-application/rollup.config.js +5 -6
code/packages/demo-application/src/components/footer.tsx +141 -0
code/packages/demo-application/src/components/header.tsx +123 -0
code/packages/demo-application/src/components/main.tsx +325 -0
src/demo/components/sections/about.jsx => code/packages/demo-application/src/components/sections/about.tsx +45 -41
code/packages/demo-application/src/components/sections/features.tsx +234 -0
src/demo/components/sections/support.jsx => code/packages/demo-application/src/components/sections/support.tsx +108 -81
code/packages/demo-application/src/components/sections/usage.tsx +326 -0
code/packages/demo-application/src/components/sections/voices.tsx +467 -0
src/demo/components/sections/welcome.jsx => code/packages/demo-application/src/components/sections/welcome.tsx +188 -134
code/packages/demo-application/src/containers/app.tsx +106 -0
code/packages/demo-application/src/containers/voices-container.tsx +117 -0
code/packages/demo-application/src/containers/welcome-container.tsx +201 -0
src/options/options.js => code/packages/demo-application/src/demo.ts +5 -4
code/packages/demo-application/src/hydrate.ts +40 -0
src/demo/selectors/index.js => code/packages/demo-application/src/selectors/index.ts +1 -1
code/packages/demo-application/src/slices/index.ts +41 -0
src/shared/reducers/index.js => code/packages/demo-application/src/store/index.ts +9 -16
code/packages/demo-application/tsconfig.cjs.json +28 -0
code/packages/demo-application/tsconfig.esm.json +28 -0
code/packages/demo-application/tsconfig.json +28 -0
code/packages/demo-renderer/.npmrc +1 -0
code/packages/demo-renderer/package.json +41 -0
code/packages/demo-renderer/src/demo-html.ts +64 -0
src/stay-alive/stay-alive.html => code/packages/demo-renderer/src/demo.html +9 -12
code/packages/demo-renderer/src/demo.template.html +44 -0
code/packages/demo-renderer/src/dummy.ts +28 -0
code/packages/demo-renderer/tsconfig.cjs.json +16 -0
code/packages/demo-renderer/tsconfig.esm.json +16 -0
code/packages/demo-renderer/tsconfig.json +19 -0
code/packages/options-application/.npmrc +1 -0
code/packages/options-application/package.json +50 -0
rollup.config.options.js => code/packages/options-application/rollup.config.js +5 -6
code/packages/options-application/src/components/main.tsx +249 -0
src/options/components/range/logarithmic-scale-range.jsx => code/packages/options-application/src/components/range/logarithmic-scale-range.tsx +25 -36
src/options/components/range/scale-range-datalist-option.jsx => code/packages/options-application/src/components/range/scale-range-datalist-option.tsx +7 -8
src/options/components/range/scale-range-datalist.jsx => code/packages/options-application/src/components/range/scale-range-datalist.tsx +9 -12
src/options/components/range/scale-range.jsx => code/packages/options-application/src/components/range/scale-range.tsx +26 -24
src/options/components/sections/about.jsx => code/packages/options-application/src/components/sections/about.tsx +105 -102
src/options/components/sections/editions.jsx => code/packages/options-application/src/components/sections/editions.tsx +18 -16
code/packages/options-application/src/components/sections/editions/talkie-premium-edition.tsx +105 -0
src/options/components/sections/text.jsx => code/packages/options-application/src/components/sections/text.tsx +18 -16
src/options/components/sections/text/speak-long-texts.jsx => code/packages/options-application/src/components/sections/text/speak-long-texts.tsx +26 -27
src/options/components/sections/voices.jsx => code/packages/options-application/src/components/sections/voices.tsx +101 -94
code/packages/options-application/src/components/sections/voices/available-languages.tsx +174 -0
src/options/components/sections/voices/available-voices.jsx => code/packages/options-application/src/components/sections/voices/available-voices.tsx +54 -42
code/packages/options-application/src/components/sections/voices/pitch.tsx +100 -0
src/options/components/sections/voices/range-with-heading.jsx => code/packages/options-application/src/components/sections/voices/range-with-heading.tsx +59 -48
code/packages/options-application/src/components/sections/voices/rate.tsx +106 -0
src/options/components/sections/voices/sample-text.jsx => code/packages/options-application/src/components/sections/voices/sample-text.tsx +27 -26
src/options/components/sections/voices/toggle-default.jsx => code/packages/options-application/src/components/sections/voices/toggle-default.tsx +31 -31
code/packages/options-application/src/containers/about-container.tsx +155 -0
code/packages/options-application/src/containers/app.tsx +91 -0
code/packages/options-application/src/containers/editions-container.tsx +87 -0
code/packages/options-application/src/containers/text-container.tsx +90 -0
code/packages/options-application/src/containers/voices-container.tsx +194 -0
code/packages/options-application/src/hydrate.ts +40 -0
src/demo/demo.js => code/packages/options-application/src/options.ts +5 -4
src/options/selectors/index.js => code/packages/options-application/src/selectors/index.ts +1 -1
code/packages/options-application/src/slices/index.ts +50 -0
code/packages/options-application/src/slices/navigation.ts +54 -0
code/packages/options-application/src/slices/voices.ts +286 -0
code/packages/options-application/src/store/index.ts +30 -0
code/packages/options-application/tsconfig.cjs.json +25 -0
code/packages/options-application/tsconfig.esm.json +25 -0
code/packages/options-application/tsconfig.json +25 -0
code/packages/options-renderer/.npmrc +1 -0
code/packages/options-renderer/package.json +41 -0
code/packages/options-renderer/src/dummy.ts +28 -0
code/packages/options-renderer/src/options-html.ts +64 -0
code/packages/options-renderer/src/options.html +32 -0
code/packages/options-renderer/src/options.template.html +44 -0
code/packages/options-renderer/tsconfig.cjs.json +16 -0
code/packages/options-renderer/tsconfig.esm.json +16 -0
code/packages/options-renderer/tsconfig.json +19 -0
code/packages/output-webext-chrome/.npmrc +1 -0
code/packages/output-webext-chrome/package.json +36 -0
rollup.config.extension-translator.js => code/packages/output-webext-chrome/rollup.config.js +7 -9
src/options/actions/index.js => code/packages/output-webext-chrome/src/dummy.ts +6 -11
code/packages/output-webext-webextension/.npmrc +1 -0
code/packages/output-webext-webextension/package.json +31 -0
code/packages/output-webext-webextension/rollup.config.js +38 -0
code/packages/output-webext-webextension/src/dummy.ts +28 -0
code/packages/output-webext/.npmrc +1 -0
code/packages/output-webext/package.json +23 -0
code/packages/output-webext/src/dummy.ts +31 -0
code/packages/output-webext/src/package-files/code.txt +63 -0
code/packages/output-webext/src/package-files/locales.txt +28 -0
code/packages/output-webext/src/package-files/root.txt +3 -0
code/packages/popup-application/.npmrc +1 -0
code/packages/popup-application/package.json +48 -0
rollup.config.popup.js => code/packages/popup-application/rollup.config.js +5 -6
src/popup/components/main.jsx => code/packages/popup-application/src/components/main.tsx +54 -35
code/packages/popup-application/src/components/sections/footer.tsx +145 -0
code/packages/popup-application/src/components/sections/header.tsx +139 -0
src/popup/components/sections/menu.jsx => code/packages/popup-application/src/components/sections/menu.tsx +70 -57
src/popup/components/sections/progress.jsx => code/packages/popup-application/src/components/sections/progress.tsx +31 -21
code/packages/popup-application/src/components/sections/status.tsx +150 -0
code/packages/popup-application/src/containers/app.tsx +116 -0
code/packages/popup-application/src/containers/progress-container.tsx +80 -0
src/shared/redux-store-provider.js => code/packages/popup-application/src/hydrate.ts +13 -28
src/popup/popup.js => code/packages/popup-application/src/popup.ts +15 -14
code/packages/popup-application/src/selectors/index.ts +27 -0
code/packages/popup-application/src/slices/index.ts +41 -0
code/packages/popup-application/src/store/index.ts +30 -0
code/packages/popup-application/tsconfig.cjs.json +19 -0
code/packages/popup-application/tsconfig.esm.json +19 -0
code/packages/popup-application/tsconfig.json +19 -0
code/packages/popup-renderer/.npmrc +1 -0
code/packages/popup-renderer/package.json +41 -0
code/packages/popup-renderer/src/dummy.ts +28 -0
code/packages/popup-renderer/src/popup-html.ts +60 -0
code/packages/popup-renderer/src/popup.html +32 -0
code/packages/popup-renderer/src/popup.template.html +44 -0
code/packages/popup-renderer/tsconfig.cjs.json +16 -0
code/packages/popup-renderer/tsconfig.esm.json +16 -0
code/packages/popup-renderer/tsconfig.json +19 -0
code/packages/renderer/.npmrc +1 -0
code/packages/renderer/package.json +52 -0
src/shared/reducers/voices.js => code/packages/renderer/src/compile-html-template.ts +25 -20
code/packages/renderer/src/get-dependencies.ts +71 -0
code/packages/renderer/src/render-react-html.ts +79 -0
code/packages/renderer/src/render-types.ts +54 -0
code/packages/renderer/src/render.ts +102 -0
code/packages/renderer/tsconfig.cjs.json +22 -0
code/packages/renderer/tsconfig.esm.json +22 -0
code/packages/renderer/tsconfig.json +22 -0
code/packages/shared-application-helpers/.npmrc +1 -0
code/packages/shared-application-helpers/package.json +35 -0
code/packages/shared-application-helpers/src/basic.ts +140 -0
src/demo/actions/index.js => code/packages/shared-application-helpers/src/build-mode.ts +3 -8
code/packages/shared-application-helpers/src/log.ts +153 -0
code/packages/shared-application-helpers/src/math-helper.ts +72 -0
code/packages/shared-application-helpers/src/promise.ts +99 -0
code/packages/shared-application-helpers/src/transform-voices.ts +184 -0
src/shared/voices.js => code/packages/shared-application-helpers/src/voices.ts +30 -50
code/packages/shared-application-helpers/tsconfig.cjs.json +13 -0
code/packages/shared-application-helpers/tsconfig.esm.json +13 -0
code/packages/shared-application-helpers/tsconfig.json +13 -0
code/packages/shared-application/.npmrc +1 -0
code/packages/shared-application/package.json +52 -0
code/packages/shared-application/src/broadcaster.ts +175 -0
src/shared/components/discretional.jsx => code/packages/shared-application/src/components/discretional.tsx +9 -8
src/shared/components/editions/extension-short-name.jsx => code/packages/shared-application/src/components/editions/extension-short-name.tsx +20 -13
code/packages/shared-application/src/components/error-boundary.tsx +194 -0
src/shared/components/form/checkbox.jsx => code/packages/shared-application/src/components/form/checkbox.tsx +23 -25
src/shared/components/form/multiline-select.jsx => code/packages/shared-application/src/components/form/multiline-select.tsx +43 -33
src/shared/components/hero-section/hero-section.jsx => code/packages/shared-application/src/components/hero-section/hero-section.tsx +13 -12
src/shared/components/icon/icon.jsx => code/packages/shared-application/src/components/icon/icon.tsx +28 -24
src/shared/components/icon/social-share-icon.jsx => code/packages/shared-application/src/components/icon/social-share-icon.tsx +17 -28
src/shared/components/icon/talkie-edition-icon.jsx => code/packages/shared-application/src/components/icon/talkie-edition-icon.tsx +12 -24
src/shared/components/icon/talkie-free-icon.jsx => code/packages/shared-application/src/components/icon/talkie-free-icon.tsx +9 -23
src/shared/components/icon/talkie-premium-icon.jsx => code/packages/shared-application/src/components/icon/talkie-premium-icon.tsx +9 -23
src/shared/components/loading.jsx => code/packages/shared-application/src/components/loading.tsx +25 -19
code/packages/shared-application/src/components/navigation/nav.tsx +178 -0
src/shared/components/navigation/tab-contents.jsx => code/packages/shared-application/src/components/navigation/tab-contents.tsx +19 -13
src/shared/components/section/edition-section.jsx => code/packages/shared-application/src/components/section/edition-section.tsx +37 -36
src/shared/components/section/free-section.jsx => code/packages/shared-application/src/components/section/free-section.tsx +15 -17
src/shared/components/section/premium-section.jsx => code/packages/shared-application/src/components/section/premium-section.tsx +15 -17
src/shared/components/sharing/sharing-icons.jsx => code/packages/shared-application/src/components/sharing/sharing-icons.tsx +38 -29
src/shared/components/style-root.jsx => code/packages/shared-application/src/components/style-root.tsx +15 -15
code/packages/shared-application/src/configuration/configuration-object.ts +61 -0
code/packages/shared-application/src/configuration/configuration.ts +159 -0
code/packages/shared-application/src/containers/nav-container-types.ts +29 -0
src/shared/containers/nav-container.jsx => code/packages/shared-application/src/containers/nav-container.tsx +48 -40
code/packages/shared-application/src/containers/providers.tsx +167 -0
code/packages/shared-application/src/containers/root.tsx +74 -0
code/packages/shared-application/src/containers/state-root.tsx +92 -0
{src => code/packages/shared-application/src/data/configuration}/configuration.json +0 -0
src/shared/error-handling.js => code/packages/shared-application/src/error-handling.ts +13 -5
code/packages/shared-application/src/hocs/broadcaster.tsx +55 -0
code/packages/shared-application/src/hocs/configure.tsx +56 -0
src/shared/hocs/broadcaster-provider.jsx => code/packages/shared-application/src/hocs/hoc-types.ts +7 -20
rollup.config.react.js => code/packages/shared-application/src/hocs/is-speaking-types.ts +6 -6
code/packages/shared-application/src/hocs/is-speaking-updater.tsx +57 -0
code/packages/shared-application/src/hocs/is-speaking.tsx +175 -0
code/packages/shared-application/src/hocs/pass-selected-text-to-background-javascript.ts +56 -0
src/options/reducers/navigation.js => code/packages/shared-application/src/hocs/pass-selected-text-to-background-types.ts +13 -15
code/packages/shared-application/src/hocs/pass-selected-text-to-background.tsx +166 -0
code/packages/shared-application/src/hocs/progress-updater.tsx +74 -0
code/packages/shared-application/src/hocs/progress.tsx +171 -0
code/packages/shared-application/src/hocs/translate.tsx +56 -0
code/packages/shared-application/src/metadata-manager.ts +147 -0
code/packages/shared-application/src/promise-logging.ts +45 -0
code/packages/shared-application/src/renderers/get-root.tsx +63 -0
code/packages/shared-application/src/selectors/errors.ts +43 -0
src/shared/selectors/index.js => code/packages/shared-application/src/selectors/index.ts +2 -0
src/shared/selectors/voices.js => code/packages/shared-application/src/selectors/voices.ts +29 -16
code/packages/shared-application/src/settings-manager.ts +107 -0
code/packages/shared-application/src/slices/errors.ts +67 -0
src/shared/actions/index.js => code/packages/shared-application/src/slices/index.ts +29 -8
code/packages/shared-application/src/slices/metadata.ts +117 -0
code/packages/shared-application/src/slices/navigation.ts +69 -0
code/packages/shared-application/src/slices/progress.ts +67 -0
src/split-environments/node/styletron-provider.js => code/packages/shared-application/src/slices/slices-types.ts +4 -7
code/packages/shared-application/src/slices/speaking.ts +103 -0
src/split-environments/webextension/dynamic-environment.js => code/packages/shared-application/src/slices/voices-hack-functions.ts +18 -8
code/packages/shared-application/src/slices/voices.ts +104 -0
src/shared/storage-manager.js => code/packages/shared-application/src/storage-manager.ts +154 -113
code/packages/shared-application/src/store/get-store.ts +85 -0
code/packages/shared-application/src/store/index.ts +40 -0
src/shared/styled/button/button-base.jsx => code/packages/shared-application/src/styled/button/button-base.tsx +6 -3
code/packages/shared-application/src/styled/form/form-base.tsx +34 -0
src/shared/styled/layout/layout-base.jsx => code/packages/shared-application/src/styled/layout/layout-base.tsx +12 -9
src/shared/styled/list/list-base.jsx => code/packages/shared-application/src/styled/list/list-base.tsx +13 -10
src/shared/styled/table/table-base.jsx => code/packages/shared-application/src/styled/table/table-base.tsx +9 -6
src/shared/hocs/styled.jsx => code/packages/shared-application/src/styled/text/errors.tsx +5 -4
src/shared/styled/text/lighter.jsx => code/packages/shared-application/src/styled/text/lighter.tsx +8 -5
src/shared/styled/text/text-base.jsx => code/packages/shared-application/src/styled/text/text-base.tsx +14 -11
src/unshared/constants/action-types-navigation.js => code/packages/shared-application/src/styled/types.tsx +3 -1
src/shared/styles/button/button-base.js => code/packages/shared-application/src/styles/button/button-base.ts +8 -4
src/shared/styles/form/form-base.js => code/packages/shared-application/src/styles/form/form-base.ts +12 -8
src/shared/styles/layout/layout-base.js => code/packages/shared-application/src/styles/layout/layout-base.ts +23 -20
src/shared/styles/list/list-base.js => code/packages/shared-application/src/styles/list/list-base.ts +15 -11
src/shared/styles/table/table-base.js => code/packages/shared-application/src/styles/table/table-base.ts +9 -5
src/popup/actions/index.js => code/packages/shared-application/src/styles/text/errors.ts +5 -5
src/shared/styles/text/lighter.js => code/packages/shared-application/src/styles/text/lighter.ts +7 -3
src/shared/styles/text/text-base.js => code/packages/shared-application/src/styles/text/text-base.ts +22 -11
src/shared/talkie-progress.js => code/packages/shared-application/src/talkie-progress.ts +51 -34
src/shared/hocs/broadcaster.jsx => code/packages/shared-application/src/types.ts +6 -13
src/demo/reducers/index.js => code/packages/shared-application/src/unshared/slices/index.ts +10 -5
src/unshared/reducers/navigation.js => code/packages/shared-application/src/unshared/slices/tabs.ts +27 -9
src/shared/promise-logging.js => code/packages/shared-application/src/utils/is-dead-wrapper.ts +11 -23
src/shared/utils/select-element.js => code/packages/shared-application/src/utils/select-element.ts +18 -9
code/packages/shared-application/src/utils/store-helpers.ts +27 -0
src/shared/utils/ui.js => code/packages/shared-application/src/utils/ui.ts +12 -2
code/packages/shared-application/tsconfig.cjs.json +19 -0
code/packages/shared-application/tsconfig.esm.json +19 -0
code/packages/shared-application/tsconfig.json +19 -0
code/packages/shared-locales/.npmrc +1 -0
code/packages/shared-locales/package.json +45 -0
code/packages/shared-locales/src/data/_locales/.gitignore +1 -0
{_locales => code/packages/shared-locales/src/data/_locales}/ar/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/ar/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/bg/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/bg/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/cs/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/cs/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/da/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/da/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/de/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/de/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/de/override.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/el/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/el/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/en/base.json +1 -1
{_locales => code/packages/shared-locales/src/data/_locales}/en/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/en/untranslated.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/es/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/es/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/fi/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/fi/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/fr/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/fr/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/fr/override.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/he/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/he/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/hi/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/hi/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/hu/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/hu/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/id/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/id/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/it/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/it/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/ja/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/ja/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/ko/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/ko/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/nb/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/nb/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/nl/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/nl/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/pl/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/pl/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/pt/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/pt/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/ro/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/ro/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/ru/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/ru/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/sk/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/sk/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/sv/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/sv/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/sv/override.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/th/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/th/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/tr/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/tr/manual.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/zh/automatic.json +0 -0
{_locales => code/packages/shared-locales/src/data/_locales}/zh/manual.json +0 -0
{src => code/packages/shared-locales/src/data}/languages/.gitignore +0 -0
{src => code/packages/shared-locales/src/data}/languages/base.json +0 -0
{src => code/packages/shared-locales/src/data}/languages/overrides.json +0 -0
code/packages/shared-locales/src/dummy.ts +28 -0
code/packages/shared-locales/src/talkie-locale-helper.ts +90 -0
tools/translations/merge.sh => code/packages/shared-locales/src/translation-merge.sh +13 -7
code/packages/shared-locales/tsconfig.cjs.json +16 -0
code/packages/shared-locales/tsconfig.esm.json +16 -0
code/packages/shared-locales/tsconfig.json +16 -0
code/packages/shared-resources/.npmrc +1 -0
code/packages/shared-resources/package.json +16 -0
{resources => code/packages/shared-resources/src/resources}/browser-logo/chrome_32x32.png +- --
{resources => code/packages/shared-resources/src/resources}/browser-logo/firefox_32x32.png +- --
{resources => code/packages/shared-resources/src/resources}/chrome-web-store/Branding Guidelines - Google Chrome.webloc +0 -0
{resources => code/packages/shared-resources/src/resources}/chrome-web-store/ChromeWebStore_Badge_v2_496x150.png +- --
{resources => code/packages/shared-resources/src/resources}/firefox-amo/AMO-button_1.png +- --
"resources/firefox-amo/Promote your add-ons with the \342\200\234Get the add-on\342\200\235 button | Mozilla .webloc" => "code/packages/shared-resources/src/resources/firefox-amo/Promote your add-ons with the \342\200\234Get the add-on\342\200\235 button | Mozilla .webloc" +0 -0
{resources => code/packages/shared-resources/src/resources}/icon/free/chrome-web-store/icon-128x128-96x96.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-play/favicon.ico +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-play/icon-1024x1024.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-play/icon-128x128.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-play/icon-16x16.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-play/icon-256x256.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-play/icon-32x32.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-play/icon-48x48.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-play/icon-512x512.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-play/icon-64x64.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-play/icon-96x96.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-play/icon-play.min.svg +0 -0
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-play/icon-play.svg +0 -0
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-stop/favicon.ico +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-stop/icon-1024x1024.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-stop/icon-128x128.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-stop/icon-16x16.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-stop/icon-256x256.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-stop/icon-32x32.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-stop/icon-48x48.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-stop/icon-512x512.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-stop/icon-64x64.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-stop/icon-96x96.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-stop/icon-stop.min.svg +0 -0
{resources => code/packages/shared-resources/src/resources}/icon/free/icon-stop/icon-stop.svg +0 -0
{resources => code/packages/shared-resources/src/resources}/icon/premium/chrome-web-store/icon-128x128-96x96.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-play/favicon.ico +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-play/icon-1024x1024.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-play/icon-128x128.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-play/icon-16x16.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-play/icon-256x256.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-play/icon-32x32.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-play/icon-48x48.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-play/icon-512x512.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-play/icon-64x64.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-play/icon-96x96.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-play/icon-play.min.svg +0 -0
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-play/icon-play.svg +0 -0
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-stop/favicon.ico +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-stop/icon-1024x1024.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-stop/icon-128x128.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-stop/icon-16x16.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-stop/icon-256x256.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-stop/icon-32x32.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-stop/icon-48x48.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-stop/icon-512x512.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-stop/icon-64x64.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-stop/icon-96x96.png +- --
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-stop/icon-stop.min.svg +0 -0
{resources => code/packages/shared-resources/src/resources}/icon/premium/icon-stop/icon-stop.svg +0 -0
{resources => code/packages/shared-resources/src/resources}/keyboard-shortcuts/talkie-shortcuts-firefox-01.png +- --
{resources => code/packages/shared-resources/src/resources}/keyboard-shortcuts/talkie-shortcuts-firefox-02.png +- --
{resources => code/packages/shared-resources/src/resources}/keyboard-shortcuts/talkie-shortcuts-firefox-03.png +- --
{resources => code/packages/shared-resources/src/resources}/keyboard-shortcuts/talkie-shortcuts-google-chrome-01.png +- --
{resources => code/packages/shared-resources/src/resources}/keyboard-shortcuts/talkie-shortcuts-google-chrome-02.png +- --
{resources => code/packages/shared-resources/src/resources}/style/demo.css +0 -0
{resources => code/packages/shared-resources/src/resources}/style/options.css +0 -0
{resources => code/packages/shared-resources/src/resources}/style/popup.css +0 -0
{resources => code/packages/shared-resources/src/resources}/style/shared.css +0 -0
{resources => code/packages/shared-resources/src/resources}/tile/free/1400x560/2017-08-22.png +- --
{resources => code/packages/shared-resources/src/resources}/tile/free/440x280/2017-08-22.png +- --
{resources => code/packages/shared-resources/src/resources}/tile/free/920x680/2017-08-22.png +- --
{resources => code/packages/shared-resources/src/resources}/tile/premium/1400x560/2017-08-22.png +- --
{resources => code/packages/shared-resources/src/resources}/tile/premium/440x280/2017-08-22.png +- --
{resources => code/packages/shared-resources/src/resources}/tile/premium/920x680/2017-08-22.png +- --
{resources => code/packages/shared-resources/src/resources}/wikipedia-logo/wikipedia-w.svg +0 -0
{resources => code/packages/shared-resources/src/resources}/wikipedia-logo/wikipedia-w.webloc +0 -0
code/packages/split-environment-interfaces/.npmrc +1 -0
code/packages/split-environment-interfaces/package.json +40 -0
code/packages/split-environment-interfaces/src/iapi.ts +112 -0
code/packages/split-environment-interfaces/src/ibroadcaster-provider.ts +36 -0
src/split-environments/webextension/broadcaster-provider.js => code/packages/split-environment-interfaces/src/idynamic-environment-provider.ts +7 -7
src/split-environments/node/internal-url-provider.js => code/packages/split-environment-interfaces/src/iinternal-url-provider.ts +4 -4
code/packages/split-environment-interfaces/src/ilocale-provider.ts +69 -0
src/unshared/reducers/index.js => code/packages/split-environment-interfaces/src/imanifest-provider.ts +6 -6
code/packages/split-environment-interfaces/src/istorage-provider.ts +30 -0
code/packages/split-environment-interfaces/src/istyletron-provider.ts +29 -0
code/packages/split-environment-interfaces/src/itranslator-provider.ts +50 -0
code/packages/split-environment-interfaces/src/moved-here/iconfiguration.ts +33 -0
code/packages/split-environment-interfaces/src/moved-here/imetadata-manager.ts +50 -0
src/shared/reducers/navigation.js => code/packages/split-environment-interfaces/src/moved-here/italkie-locale-helper.ts +13 -7
code/packages/split-environment-interfaces/src/moved-here/ivoices.ts +47 -0
src/shared/constants/action-types-navigation.js => code/packages/split-environment-interfaces/src/moved-here/killswitch.ts +1 -1
code/packages/split-environment-interfaces/src/moved-here/known-events.ts +35 -0
src/options/reducers/index.js => code/packages/split-environment-interfaces/src/moved-here/listening-action-handler.ts +10 -14
code/packages/split-environment-interfaces/tsconfig.cjs.json +9 -0
code/packages/split-environment-interfaces/tsconfig.esm.json +9 -0
code/packages/split-environment-interfaces/tsconfig.json +9 -0
code/packages/split-environment-node/.npmrc +1 -0
code/packages/split-environment-node/package.json +47 -0
code/packages/split-environment-node/src/broadcaster-provider.ts +52 -0
src/split-environments/webextension/storage-provider.js => code/packages/split-environment-node/src/dynamic-environment.ts +13 -18
src/split-environments/node/dynamic-environment.js => code/packages/split-environment-node/src/internal-url-provider.ts +4 -10
src/split-environments/node/locale-provider.js => code/packages/split-environment-node/src/locale-provider.ts +13 -8
code/packages/split-environment-node/src/manifest-provider.ts +63 -0
code/packages/split-environment-node/src/server-specific/api.ts +186 -0
src/split-environments/node/storage-provider.js => code/packages/split-environment-node/src/storage-provider.ts +14 -10
src/split-environments/node/broadcaster-provider.js => code/packages/split-environment-node/src/styletron-provider.ts +16 -13
code/packages/split-environment-node/src/translator-provider.ts +186 -0
code/packages/split-environment-node/tsconfig.cjs.json +16 -0
code/packages/split-environment-node/tsconfig.esm.json +16 -0
code/packages/split-environment-node/tsconfig.json +16 -0
code/packages/split-environment-webextension/.npmrc +1 -0
code/packages/split-environment-webextension/package.json +45 -0
code/packages/split-environment-webextension/src/broadcaster-provider.ts +51 -0
code/packages/split-environment-webextension/src/browser-specific/api.ts +231 -0
code/packages/split-environment-webextension/src/browser-specific/italkie-services.ts +74 -0
src/shared/tabs.js => code/packages/split-environment-webextension/src/browser-specific/tabs.ts +53 -48
src/shared/urls.js => code/packages/split-environment-webextension/src/browser-specific/urls.ts +14 -10
code/packages/split-environment-webextension/src/dynamic-environment.ts +45 -0
src/split-environments/webextension/internal-url-provider.js => code/packages/split-environment-webextension/src/internal-url-provider.ts +4 -2
src/split-environments/webextension/locale-provider.js => code/packages/split-environment-webextension/src/locale-provider.ts +19 -4
src/split-environments/webextension/manifest-provider.js => code/packages/split-environment-webextension/src/manifest-provider.ts +7 -2
code/packages/split-environment-webextension/src/storage-provider.ts +45 -0
code/packages/split-environment-webextension/src/styletron-provider.ts +46 -0
src/split-environments/webextension/translator-provider.js => code/packages/split-environment-webextension/src/translator-provider.ts +13 -5
code/packages/split-environment-webextension/src/webextension-polyfill.d.ts +27 -0
code/packages/split-environment-webextension/tsconfig.cjs.json +16 -0
code/packages/split-environment-webextension/tsconfig.esm.json +16 -0
code/packages/split-environment-webextension/tsconfig.json +16 -0
code/packages/split-environment/.npmrc +1 -0
code/packages/split-environment/package.json +40 -0
code/packages/split-environment/src/broadcaster-provider.ts +27 -0
code/packages/split-environment/src/dummy.ts +26 -0
code/packages/split-environment/src/dynamic-environment.ts +27 -0
code/packages/split-environment/src/internal-url-provider.ts +27 -0
code/packages/split-environment/src/locale-provider.ts +27 -0
code/packages/split-environment/src/manifest-provider.ts +27 -0
code/packages/split-environment/src/storage-provider.ts +27 -0
code/packages/split-environment/src/styletron-provider.ts +27 -0
code/packages/split-environment/src/translator-provider.ts +27 -0
code/packages/split-environment/tsconfig.cjs.json +19 -0
code/packages/split-environment/tsconfig.esm.json +19 -0
code/packages/split-environment/tsconfig.json +19 -0
code/packages/translator-tool/.npmrc +1 -0
code/packages/translator-tool/package.json +51 -0
code/packages/translator-tool/rollup.config.js +39 -0
code/packages/translator-tool/src/.gitignore +1 -0
src/split-environments/webextension/styletron-provider.js => code/packages/translator-tool/src/configvention.d.ts +8 -6
tools/translations/files-translator.js => code/packages/translator-tool/src/files-translator.ts +29 -30
code/packages/translator-tool/src/google-cloud-translate-translator-service.ts +199 -0
tools/translations/messages-translator-factory.js => code/packages/translator-tool/src/messages-translator-factory.ts +14 -17
src/shared/actions/progress.js => code/packages/translator-tool/src/messages-translator-types.ts +21 -20
code/packages/translator-tool/src/messages-translator.ts +133 -0
tools/translations/extension-translator.js.defaults.config.json => code/packages/translator-tool/src/translator.js.defaults.config.json +0 -0
tools/translations/extension-translator.js => code/packages/translator-tool/src/translator.ts +29 -25
code/packages/translator-tool/tsconfig.cjs.json +9 -0
code/packages/translator-tool/tsconfig.esm.json +9 -0
code/packages/translator-tool/tsconfig.json +9 -0
code/tsconfig.cjs.json +6 -0
code/tsconfig.esm.json +20 -0
code/tsconfig.json +35 -0
extension-files.txt +0 -88
manifest.json +0 -81
package-lock.json +0 -40438
package.json +0 -148
render.html.sh +0 -41
rollup.config.background.js +0 -54
rollup.config.popup.html.js +0 -40
rollup.config.react.node.js +0 -94
src/.xo-config.js +0 -33
src/background/background.js +0 -385
src/background/icon-manager.js +0 -72
src/background/language-helper.js +0 -293
src/background/permissions-manager.js +0 -114
src/background/talkie-background.js +0 -324
src/background/talkie-speaker.js +0 -353
src/background/text-helper.js +0 -71
src/background/voice-language-manager.js +0 -146
src/background/voice-manager.js +0 -63
src/demo/components/footer.jsx +0 -94
src/demo/components/header.jsx +0 -124
src/demo/components/main.jsx +0 -269
src/demo/components/sections/features.jsx +0 -206
src/demo/components/sections/usage.jsx +0 -316
src/demo/components/sections/voices.jsx +0 -371
src/demo/containers/app.jsx +0 -88
src/demo/containers/voices-container.jsx +0 -110
src/demo/containers/welcome-container.jsx +0 -155
src/demo/demo.html +0 -34
src/demo/demo.html.js +0 -36
src/demo/demo.template.html +0 -41
src/demo/load-root.jsx +0 -36
src/frontend/locale-redirect.js +0 -30
src/options/actions/navigation.js +0 -30
src/options/actions/voices.js +0 -195
src/options/components/main.jsx +0 -245
src/options/components/sections/editions/talkie-premium-edition.jsx +0 -112
src/options/components/sections/voices/available-languages.jsx +0 -178
src/options/components/sections/voices/pitch.jsx +0 -82
src/options/components/sections/voices/rate.jsx +0 -85
src/options/constants/action-types-voices.js +0 -31
src/options/containers/about-container.jsx +0 -124
src/options/containers/app.jsx +0 -95
src/options/containers/editions-container.jsx +0 -68
src/options/containers/text-container.jsx +0 -73
src/options/containers/voices-container.jsx +0 -155
src/options/load-root.jsx +0 -33
src/options/options.html +0 -34
src/options/options.html.js +0 -36
src/options/options.template.html +0 -41
src/options/reducers/voices.js +0 -46
src/popup/components/sections/footer.jsx +0 -94
src/popup/components/sections/header.jsx +0 -129
src/popup/components/sections/status.jsx +0 -116
src/popup/containers/app.jsx +0 -86
src/popup/containers/progress-container.jsx +0 -68
src/popup/hocs/is-speaking-updater.jsx +0 -45
src/popup/hocs/is-speaking.jsx +0 -148
src/popup/hocs/progress-updater.jsx +0 -55
src/popup/hocs/progress.jsx +0 -150
src/popup/load-root.jsx +0 -33
src/popup/popup.html +0 -34
src/popup/popup.html.js +0 -33
src/popup/popup.template.html +0 -41
src/shared/actions/metadata.js +0 -113
src/shared/actions/navigation.js +0 -32
src/shared/actions/speaking.js +0 -36
src/shared/actions/voices.js +0 -127
src/shared/basic.js +0 -153
src/shared/broadcaster.js +0 -114
src/shared/components/error-boundary.jsx +0 -199
src/shared/components/hero-section/styles/section-base.js +0 -56
src/shared/components/navigation/nav.jsx +0 -140
src/shared/components/section/styles/section-base.js +0 -56
src/shared/configuration.js +0 -100
src/shared/constants/action-types-metadata.js +0 -31
src/shared/constants/action-types-progress.js +0 -23
src/shared/constants/action-types-speaking.js +0 -23
src/shared/constants/action-types-voices.js +0 -29
src/shared/containers/providers.jsx +0 -83
src/shared/containers/root.jsx +0 -59
src/shared/containers/state-root.jsx +0 -80
src/shared/events.js +0 -32
src/shared/execute.js +0 -118
src/shared/hocs/configuration-provider.jsx +0 -90
src/shared/hocs/configure.jsx +0 -37
src/shared/hocs/pass-selected-text-to-background.jsx +0 -179
src/shared/hocs/translate.jsx +0 -36
src/shared/hocs/translation-provider.jsx +0 -43
src/shared/log.js +0 -126
src/shared/metadata-manager.js +0 -112
src/shared/promise.js +0 -96
src/shared/reducers/metadata.js +0 -45
src/shared/reducers/progress.js +0 -40
src/shared/reducers/speaking.js +0 -36
src/shared/renderers/auto-root.js +0 -84
src/shared/renderers/load-root.jsx +0 -76
src/shared/renderers/render-react-html.js +0 -105
src/shared/settings-manager.js +0 -53
src/shared/styled/form/form-base.jsx +0 -35
src/shared/talkie-locale-helper.js +0 -70
src/shared/utils/basic.js +0 -27
src/shared/utils/reduce-helpers.js +0 -76
src/shared/utils/store-helpers.js +0 -21
src/shared/utils/transform-voices.js +0 -208
src/split-environments/api.js +0 -191
src/split-environments/broadcaster-provider.js +0 -23
src/split-environments/dynamic-environment.js +0 -23
src/split-environments/internal-url-provider.js +0 -23
src/split-environments/locale-provider.js +0 -23
src/split-environments/manifest-provider.js +0 -23
src/split-environments/node/.xo-config.js +0 -26
src/split-environments/node/manifest-provider.js +0 -41
src/split-environments/node/translator-provider.js +0 -134
src/split-environments/storage-provider.js +0 -23
src/split-environments/styletron-provider.js +0 -23
src/split-environments/translator-provider.js +0 -23
src/split-environments/webextension/.xo-config.js +0 -29
src/stay-alive/suspension-listener-manager.js +0 -186
src/unshared/actions/index.js +0 -27
src/unshared/actions/navigation.js +0 -30
tools/translations/.gitignore +0 -1
tools/translations/.xo-config.js +0 -26
tools/translations/google-cloud-translate-translator-service.js +0 -145
tools/translations/messages-translator.js +0 -105

Commit categories (3)