Commit graph

25 commits

Author SHA1 Message Date
Joshua A. Horton
797d5b5a8f chore(web): cleanup, tweaks per code review 2022-10-31 10:25:16 +07:00
Joshua A. Horton
0833f3be21 fix(web): bulk renderer update 2022-10-24 15:40:30 +07:00
Marc Durdin
4f87aad344 chore(web): bulk renderer tsc cleanup
Changes the bulk renderer build script to the new standard build script
format and updates to use tsc -b. Cleans up final external <reference>s.
2022-05-16 05:50:11 +10:00
Marc Durdin
4d94786852 chore(web): replace lerna with npm workspaces and ts projects
Fixes #6320.

Part 1 of moving from lerna to a simpler, maintained monorepo solution,
using TypeScript Projects and NPM Workspaces.

There is more work to be done here. At this point, KeymanWeb builds and
runs without errors, but the built file is substantially different,
mostly in include order.

Using TypeScript Projects, we move away from the need to run build
scripts in various locations for almost all the Typescript modules.

TODO: Embedded versions and tests have not been verified.

TODO: developer/server is not yet verified.

TODO: developer/js (needs a rename!) is not yet verified.

TODO: Currently, the predictive-text folder needs refactoring to move
the construction of the worker wrapper out of the Predictive Text build
and into the final assembly of keymanweb.js (as it should be valid to
run it as a separate .js anyway).

TODO: Most of the `<reference>` paths need to be re-verified. Ideally
there should be no references outside the current module for any given
.ts.

TODO: The embedded vs browser vs node (headless) builds should be tidied
up for consistency so that it's obvious what depends on what. This is
currently messiest in the predictive-text folder, where the output names
diverge from the filenames and the various files are mixed in the same
folder (as evidenced by the exclusions listed in each tsconfig.json).

TODO: `npm install` should be removed from most build scripts and
instead `npm ci` (#6196) should be run only once from the top-level
folder for any given build. I've had eliminated side-effects from the
`install` action for npm, which makes it easier to reason about state.

TODO: verify_npm_setup and related functions can probably be eliminated.

TODO: most of the build scripts should be largely eliminated for web.

TODO: several ts projects use inconsistent output folders.

TODO: it may be possible to generate a .d.ts for models/types so that
we can use a consistent reference for those as well.

TODO: build.sh, tsconfig.json should always be in the module's top-level
folder, not in a subfolder such as src (e.g. see input-processor/src,
keyboard-processor/src, web/source).

TODO: resources/web-environment should be in common/web.

TODO: other js node_modules imports should be wrapped like es6-shim.

TODO: fix up the publish code for npm modules

TODO: eliminate version numbers from package.json if possible?

Whew, that's most of the stuff I noticed!
2022-04-12 21:02:33 +10:00
jahorton
7fd62c51f4 refactor(web): centralizes element-oriented OSK display logic, polish for prior commits 2021-09-01 09:44:02 +07:00
Marc Durdin
21ee5c4900 fix(web): bulk renderer using video stream capture
Instead of using html2canvas which is only an approximation of the DOM,
we now use the video capture API to get an exact capture of the OSK.
2021-01-22 15:51:38 +11:00
jahorton
7a04baa9a5 change(web/engine): kbdProcessor.core => core.keyboardProcessor 2020-04-06 13:17:32 +07:00
jahorton
55998fa1e1 refactor(web/engine): Processor now controls layer 2020-03-31 10:48:53 +07:00
jahorton
9d9f96dc7b refactor(web/engine): catches a bulk-renderer reference to property 2020-03-21 15:28:12 +07:00
jahorton
e6788e2ad9 refactor(web/engine): wraps active keyboard 2020-03-21 14:30:33 +07:00
jahorton
6ba4c8dd69 refactor(web/engine): a few missed details, ensures embedded works 2020-03-20 22:09:43 +07:00
jahorton
1cee4615e4 fix(web): fixes mobile form for bulk-renderer tool 2020-03-13 15:05:55 +07:00
jahorton
6f8b93aa87 fix(web): fixes internal reference for validation tool 2020-03-13 13:50:17 +07:00
jahorton
ecddb73862 change(android): gets API 23 working again, but not 19 or 21 (yet) 2019-12-02 07:55:37 +07:00
Joshua A. Horton
86c88f2120 Fixes a scoping issue on the final render step - device notes. 2018-12-18 11:47:56 +07:00
Joshua A. Horton
27af75f342 Fixes the touch bug - CSS 'opacity' settings were to blame. 2018-12-18 08:32:52 +07:00
Joshua A. Horton
91c38ced75 Extra bit of desktop vs mobile distinction. 2018-12-17 14:23:05 +07:00
Joshua A. Horton
8d581c7436 Fixes some mobile issues, polishes the basic page structure. 2018-12-17 14:06:19 +07:00
Joshua A. Horton
ded43f3c80 Mild refactor of new code for better organization + readability. 2018-12-17 12:24:16 +07:00
Joshua A. Horton
25ab64ab86 Improves the bulk-renderer's OSK-hijacking approach. 2018-12-17 10:19:12 +07:00
Joshua A. Horton
7784611168 Successful keyboard render chaining! 2018-12-17 09:31:05 +07:00
Joshua A. Horton
9561537101 setActiveKeyboard is now Promise-compatible! 2018-12-17 09:09:53 +07:00
Joshua A. Horton
c95ba33739 Establishes proper Promise fulfillment for one full keyboard. 2018-12-14 15:16:33 +07:00
Joshua A. Horton
e8cc2a7c7b Prototyping's going well; even IE renders here. One kbd, one layer. 2018-12-14 14:14:02 +07:00
Joshua A. Horton
e955c16777 Start of development on a 'bulk rendering' engine for KMW validation. 2018-12-14 10:02:50 +07:00