Commit graph

43 commits

Author SHA1 Message Date
Eberhard Beilharz
f52a1209c8
refactor(web): merge device-detect with web/src/engine/main
This change moves `web/src/engine/device-detect/` →
`web/src/engine/main/` and renames the `Device` class to `DeviceDetector`.

Fixes: #12388
2024-09-11 16:48:15 +02:00
Eberhard Beilharz
a6d2d02e61
refactor(web): move common/web/utils to web/src/engine/common/web-utils/
Fixes:#12025
2024-09-10 18:12:46 +02:00
Eberhard Beilharz
78857d96c9
refactor(web): move lm-message-types → predictive-text/types
Moves `common/web/lm-message-types/` →
`web/src/engine/predictive-text/types/`

Fixes: #12147
2024-08-16 08:31:21 +02:00
Eberhard Beilharz
89abdbd64c
refactor(web): move some files around
- move `outputTarget.ts` → `js-processor`
- move `deadkeys.ts` → `js-processor`
- move `stringDivergence.ts` → `js-processor`
- split `Mock` into `mock.ts`
- create `keyboard/outputTarget.interface.ts`
2024-08-14 19:06:32 +02:00
Eberhard Beilharz
46ecfd4466
refactor(web): move remaining parts of keyboard-processor → keyboard
move parts of `common/web/keyboard-processor/` →
`web/src/engine/keyboard/`.

Fixes: #12110
2024-08-12 19:40:15 +02:00
Eberhard Beilharz
faacf9de8a
refactor(web): Move common/web/recorder → web/src/tools/testing/recorder-core
Fixes: #12091
2024-08-08 16:34:01 +02:00
Eberhard Beilharz
24159d680b
chore(web): move common/web/input-processor/ → web/src/engine/main/
Also:
- move `modelSpec.ts` and `PredictionContext.ts` →
  `web/src/engine/interfaces`
- move `correction.ts` and `correctionLayout.ts` to `web/src/engine/osk/`

Relates-to: #12035
Fixes: #12054
2024-08-01 20:13:21 +02:00
Joshua A. Horton
62fd5f6444 chore(web): Merge branch 'change/web/keyboard-preprocess-optimization' into feat/web/osk-layer-deferral 2024-06-19 15:31:02 +07:00
Joshua A. Horton
7e1571d382 chore(web): the final push for config-flag parity for web/ 2024-05-29 10:57:41 +07:00
Joshua A. Horton
5ddcf2cbe5 chore(web): patches web tools for enforcement of no implicit any 2024-05-29 10:43:12 +07:00
Joshua A. Horton
824c389938 chore(web): cleans up web's tool projects 2024-05-29 09:24:37 +07:00
Marc Durdin
cd8121ef65 chore(common): builder scripts now use /resources/build/builder.inc.sh
Note: there is a bit of potential confusion about the difference between
/resources/builder.inc.sh (the full implementation for builder scripts),
and /resources/build/builder.inc.sh (the source script that builder
scripts should always use).

This allows us to make assumptions that will always be true for builder
scripts that may not be true for other scripts, such as setting base
folder.
2024-05-02 15:54:31 +07:00
Marc Durdin
0f390d47cc chore(common): maintenance on build scripts - cd
Fixes #11324.

* Always `cd "$THIS_SCRIPT_PATH"`
* Remove unnecessary `cd` from all build.sh
* Remove unnecessary `set -eu` from all build.sh (and `# set -x`)
* Replace old build-utils.sh incantation in a few build.sh scripts
2024-05-02 15:54:29 +07:00
Joshua A. Horton
44c178f94b fix(web): unit-test / test-engine patchup 2024-04-23 10:30:44 +07:00
Joshua A. Horton
26a99f07ac fix(web): unit test patchup - had incorrect touchend .touches values 2024-03-08 08:33:35 +07:00
Joshua A. Horton
f78eeaae34 chore(web): changes per review comments 2023-12-19 10:11:39 +07:00
Joshua A. Horton
5ecd95bd2b fix(web): had missed tools/testing/recorder bundling 2023-12-18 15:02:29 +07:00
Joshua A. Horton
b9d02cbe54 fix(web): automated-test patchup 2023-11-02 09:55:24 +07:00
Joshua A. Horton
ff19099c55 fix(web): automated test patchup due to added async 2023-10-19 12:18:26 +07:00
Joshua A. Horton
1a3b02319f fix(web): Touch[] != TouchList 2023-10-09 12:10:44 +07:00
Joshua A. Horton
28f1d2589d fix(web): integrated test fixes, sync -> async for test sequences 2023-10-09 10:08:12 +07:00
Joshua A. Horton
2d6a74bc04 fix(web): unit test breakers, osk input emulation (partial) 2023-10-06 13:02:30 +07:00
Joshua A. Horton
f2e3effa4c chore(web): Merge branch 'feature-esmodule-web-engine' into chore/web/centralize-kmw-tsconfigs 2023-06-19 14:03:20 +07:00
Joshua A. Horton
75347ebc6f change(web): internal event names -> lowercase convention 2023-06-14 10:30:56 +07:00
Joshua A. Horton
be06ab3e6e chore(web): fixes web tool tsconfigs + updates build.sh scripts 2023-06-14 09:18:44 +07:00
Joshua A. Horton
3e4e95677c change(web): bases all user-test pages off of the build/publish/debug folder 2023-05-30 13:33:29 +07:00
Joshua A. Horton
194d46693f chore(web): extra build-script cleanup 2023-05-30 08:57:45 +07:00
Joshua A. Horton
2e3bf2f552 fix(web): restores other test suites, aside from KMW UI modules 2023-05-17 11:46:11 +07:00
Joshua A. Horton
552552ffe7 chore(web): more import-type re: keyman global 2023-05-17 11:01:21 +07:00
Joshua A. Horton
2308662182 fix(web): restores KMW recorder testing tool operation 2023-05-17 11:01:20 +07:00
Joshua A. Horton
a9f28138a4 chore(web): Merge branch 'feature-esmodule-web-engine' into change/web/child-script-pattern 2023-03-14 12:24:10 +07:00
Marc Durdin
92ed99c4d6 chore(common): build script performance improvements
Improves build script performance by:
* using built-ins wherever possible (e.g. string splitting)
* eliminating redundant code
* using absolute (to $KEYMAN_ROOT) rather than relative paths to avoid realpath
* removing unnecessary `npm run` calls

BEFORE                         | AFTER
-------------------------------|----------------------
time ./core/build.sh --help    |
real    0m2.116s               | real    0m0.874s
user    0m0.578s               | user    0m0.198s
sys     0m0.984s               | sys     0m0.289s
-------------------------------|----------------------
time ./web/build.sh --help     |
real    0m3.523s               | real    0m0.757s
user    0m1.166s               | user    0m0.320s
sys     0m2.273s               | sys     0m0.455s
-------------------------------|----------------------
time ./web/build.sh -d         |
real    1m34.750s              | real    0m59.974s
user    0m9.721s               | user    0m6.284s
sys     0m19.652s              | sys     0m13.202s

@keymanapp-test-bot skip
2023-03-13 07:18:09 +07:00
Joshua A. Horton
2f065e0b89 change(common): fixes a builder error 2023-02-22 13:22:30 +07:00
Marc Durdin
ce864ea923 chore: update standard script prolog to use builtin instead of dirname 2023-02-22 11:04:15 +07:00
Marc Durdin
463c7ff907 chore: remove greadlink from standard script prolog 2023-02-22 10:43:06 +07:00
Joshua A. Horton
f5acaf6e08 fix(web): fixes kbd-script pathing for recorder when TC-served 2022-11-29 15:13:44 +07:00
Joshua A. Horton
a859170f35 fix(web): recorder resource path handling for user-testing artifact 2022-11-29 13:14:26 +07:00
Joshua A. Horton
c91875bbb1 fix(web): recorder test page's recording ability 2022-11-29 12:39:20 +07:00
Joshua A. Horton
e3b70c03d2 chore(web): recorder page path fixup, build retrigger for recorder resources 2022-11-29 12:19:25 +07:00
Joshua A. Horton
41729088f8 chore(web): web index page cleanups 2022-11-29 09:47:32 +07:00
Joshua A. Horton
eb9cd0c9e9 chore(web): script patch-up, new tools/testing/recorder script 2022-11-29 09:47:07 +07:00
Joshua A. Horton
6b53dbb4a0 fix(web): restores unit test operation 2022-11-29 09:46:42 +07:00
Joshua A. Horton
593fbd248e change(web): moves web/tools to web/src/tools/testing, restores base builds 2022-11-29 09:45:15 +07:00