Commit graph

10 commits

Author SHA1 Message Date
Marc Durdin
273c689629
Merge pull request #6300 from keymanapp/chore/developer/disable-upload-in-server-non-localhost
chore(developer): disable upload for server except localhost
2022-03-02 11:51:41 +11:00
Marc Durdin
1b2c213658 chore(developer): disable upload for server except localhost
Fixes #6299.

Moved some of the init to test.js from packages.js. If not on localhost,
then the UI for upload is disabled -- note that backend for upload is
already disabled for non-localhost.

This is necessary to prevent non-local site users uploading arbitrary
files to the cache, which could lead to security bypass.
2022-02-28 15:44:26 +11:00
Marc Durdin
1b3388290d fix(developer): server font support
Fixes #6297.

Five issues fixed from #6297. Note that the fix for point 5
(`font-family` should be keyboard-specific, and it is not being used
per-keyboard in the keyboard registration yet) opts to use a cleaned
identifier for the font filename, but not one that is keyboard-specific,
at this time.
2022-02-28 15:11:39 +11:00
Marc Durdin
19b6579eb9 chore(developer): more cleanup of server 2022-01-20 16:50:45 +11:00
Marc Durdin
86112cabf0 feat(developer): polish Keyman Developer Server
Not worth splitting all this polish into separate commits, I think...

1. Add frames for other device types
2. Reorganise menus including burger menu
3. Highlight button after upload to show where file is accessible
4. Fix cropped device frame images, scrolling
5. Improve device menu
6. Add Keyman Developer logo and watermark
7. Add status box with current keyboard, model and device
8. Cleanup z-indexing
9. Add About dialog
10. Add Help links
11. Report version in About dialog, title on logo hover
12. Ensure keyboard reloads after change
13. Support loading models over https
2022-01-19 11:06:23 +11:00
Marc Durdin
bfcdb5ac57 feat(developer): last-use and expire old resources 2021-12-22 14:48:24 +11:00
Marc Durdin
a858c5166c feat(developer): sentry integration into server
This also tidies up the mkver.sh script and adds the
replaceVersionStrings() function to build-utils.sh for use globally.
2021-12-22 11:16:33 +11:00
Marc Durdin
eb46acffcd chore(developer): validate paths in api 2021-12-22 09:44:58 +11:00
Marc Durdin
cfbcc36e27 chore: more cleanup and polish 2021-12-22 08:39:15 +11:00
Marc Durdin
2c01b19f69 chore: cleanup
1. Renamed form UfrmNGrokOptions to UfrmServerOptions
2. Renamed kmdev-server to just plain server
3. Tidied up npm versioning to use VERSION_WITH_TAG

This last point should help avoid confusion as now only CI release
builds will ever generate a package.json with a.b.c, a.b.c-alpha or
a.b.c-beta. Local and test builds will always have the corresponding
-test or -local environment appended. This also helps avoid issues if
we accidentally publish an incorrect version.
2021-12-22 06:25:22 +11:00
Renamed from developer/kmdev-server/src/routes.ts (Browse further)