Commit Graph
562 Commits
Author SHA1 Message Date
1c349527a1 Update webpack to v5 (#6844)
* upgrade webpack info

* cleanup eslint findings

* fix eslint formatter stylish error

* lazy is invalid option for webpack dev middleware

* upgrade webpack to 5.x

* remove unsupported terser option

* fix missing process polyfill dependency

* try alternate proces fix

* fix css image reference

* add statements to import missing css files to index.html

* TerserPlugin no longer required

* add missing css links

* remove terser

Co-authored-by: Jeremy Cunningham <jpcunningh@gmail.com>
Co-authored-by: Sulka Haro <sulka@sulka.net>
2021-02-07 17:25:19 +02:00
Sulka Haro bc188d9163 * Disabling tests that interfere with other tests
* Fix view include syntax
* Change Slovenian name to correct language
2021-02-06 19:11:36 +02:00
Sulka Haro 157eddfe26 * Add Slovenian and fix Slovakian language code
* Hide Traditional Chinese due to low coverage
* Add Portuguese to the menu
2021-02-06 14:46:34 +02:00
Sulka HaroandGitHub d7e011d8f5 Refactoring organisation, bundling and security improvements (#6765)
* * Simplified bundling to just one bundle
* Removed cache invalidation token from bundling
* Generate strong persistent random string on deploy to use for JWT signing
* WIP: moving api-secret and JWT signing to a separate centralized security component
* Moved some server components away from project root
* Fix issues reported by linter

* Ignore detect-object-injection everywhere but the client

* Make admin message button red

* Remove alarms for some security alerts on code

* api_secret is now fully contained in the enclave
2021-02-02 19:53:30 +02:00
Sulka Haro 1351d35066 * Improved internal API for injecting values into localization keys
* Fix a hard to translate key that was split to two separate values
2021-01-08 16:25:51 +02:00
Sulka Haro cb7c74ee5d Fix typo in Portugues Brazilian language code 2020-11-23 11:56:00 +02:00
Sulka HaroandGitHub 4ace12594e Move localisation to Crowdin (#6518)
* Update Crowdin configuration file

* Update Crowdin configuration file

* Add languages for pushing

* Update Crowdin configuration file

* Update source file en.json

* New translations en.json (Finnish)

* New translations en.json (Finnish)

* New translations en.json (Romanian)

* New translations en.json (Dutch)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Korean)

* New translations en.json (French)

* New translations en.json (Japanese)

* New translations en.json (Italian)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* Remove folders

* New translations en.json (Romanian)

* New translations en.json (Korean)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Japanese)

* New translations en.json (French)

* New translations en.json (Italian)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Finnish)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Romanian)

* New translations en.json (Korean)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Japanese)

* New translations en.json (French)

* New translations en.json (Italian)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Finnish)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Norwegian Bokmal)

* Update Crowdin configuration file

* New translations en.json (Spanish)

* New translations en.json (Chinese Simplified)

* New translations en.json (Chinese Traditional)

* New translations en.json (Italian)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Japanese)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Finnish)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Norwegian Bokmal)

* Loading all languages now works

* * Fix unit tests
* Have server load localizations

* Adding some more keys

* New Crowdin updates (#6531)

* New translations en.json (Finnish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Finnish)

* New translations en.json (Japanese)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Italian)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Croatian)

* Update source file en.json

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Norwegian Bokmal)

* Remove old translation status tool

* Update CONTRIBUTING
2020-11-17 14:17:17 +02:00
bjornolehandGitHub c9156bd230 Revised Norwegian (nb) translations (#6525)
* Revised translation (nb)

Revised translation after a first pass through the Norwegian (nb) translation.

* Added missing translations in Day to day report

Missing translation of 'Bolus average , 'Basal average' and 'Base basal average' from daytoday.js

* Translate (nb) missing translations in Day to day report

* Minor changes Day to day report

* Missing translation from glucosedistributon.js of 

'Out of Range RMS is calculated by squaring the distance out of range for all glucose readings for the examined period, summing them, dividing by the count and taking the square root. This metric is similar to in-range percentage but weights readings far out of range higher. Lower values are better.')

* Translate (nb) Out of range RMS....

'Out of Range RMS is calculated by squaring the distance out of range for all glucose readings for the examined period, summing them, dividing by the count and taking the square root. This metric is similar to in-range percentage but weights readings far out of range higher. Lower values are better.'

* Translate (nb) Reports: Percentile Chart

* Reports - Treatments: Added missing translation of 'Carbs/Food/Time' from 

cgm-remote-monitor\lib\report_plugins\treatments.js

* Transkate (nb) Carbs/Food/Time

* Nitpicking
2020-11-17 12:03:21 +02:00
92ac596871 add missing translations (#6346)
Co-authored-by: Sulka Haro <sulka@sulka.net>
2020-11-11 19:20:52 +02:00
60424d38b0 #5991 Typo in translation (#6217)
Co-authored-by: Sulka Haro <sulka@sulka.net>
2020-11-11 17:12:47 +02:00
6a84be1fc0 Update language.js (#6193)
Isfjell -> Istapp

Co-authored-by: Sulka Haro <sulka@sulka.net>
2020-11-11 17:06:36 +02:00
f81ac5922a Adding Hungarian translation to nightscout (#6037)
* Finished first round of translation for Hungarian language

* Added hungarian language to the readme file

* Fixes

* WIP

* Typo fixes and changes to translations

* Update language.js

Fixed some mistyped language keys

Co-authored-by: Andy Feher <andras.feher@smildonis.com>
Co-authored-by: Sulka Haro <sulka@sulka.net>
2020-11-11 17:01:35 +02:00
CalebandGitHub 775324174e Corrected setup of dbsize for virtual assistants (#6270)
* Corrected db size config for virtual assistants

* Language fix, improvements, added dbsize to virtAsst config

* Using env

* Added logging

* Debug logging

* Different logging

* More troubleshooting

* Another try

* Reverted stuff, added dbsize to server defaults

* Fixed test

* Fixed another test
2020-10-20 12:23:14 +03:00
Cas EliënsandGitHub 68fb745cad Update Dutch translations (#5532) 2020-02-22 17:02:40 +02:00
Dominik DzieniaandGitHub 44ab2a79dc Plugin to show database size (% of available space or in MiB) (#5496)
* Database size plugin - pill that displays current mongoDB database size

* Enabled dbsize by default

* Fixed bug with dbsize not shownig when size is (rounded) 0% but real bytes > 0

* Cleanup & update to iconfont generation manual

* Changed how warning/urgent levels are configured - from absolute MiB to percentage of DBSIZE_MAX
2020-02-10 08:56:38 +02:00
4f9f735164 Pr/5379 (#5441)
* Release 13.0.1 (#5329)

* Release ref update v2 (#5301)

* Updated release name and number

* Added missing version number

* Added missing version number

* Fix auth dialog sizing error (#5315)

* Fix auth dialog sizing error (#5314)

* Fix auth dialog sizing error

* Fix Client Init After Auth

(cherry picked from commit 1bf416c3bb964ed555850c3fc55977d69980b8e5)

* update NS minor version

* Added handlers and translations for CGM info

* Defined translate()

* Fixed sensor state reference

* Improved wording for tx age response

* Improved wording for session duration response

* Updated documentation and templates

* Updated README.md TOC and a reference to it

* Added CGM battery info

* Added unit reference to CGM battery levels

* Added handlers and translations for CGM info

* Defined translate()

* Fixed sensor state reference

* Improved wording for tx age response

* Improved wording for session duration response

* Updated documentation and templates

* Updated README.md TOC and a reference to it

* Added CGM battery info

* Added unit reference to CGM battery levels

* Updated API reference in Google Home template

Co-authored-by: Caleb <inventor96@users.noreply.github.com>
2020-01-11 12:40:33 +00:00
Lukas HerzogandSulka Haro bb345003bf Additional German Translations and corrections (#5405)
* Cleaned up changed translations

* Added Virtual Assistant Translations
2020-01-06 11:08:36 +02:00
fedor apanasenkoandSulka Haro ee0b1e8183 Update Russian (#5415)
Corrected major and minor misprints and mistakes - particularly in variables, new translations added
2020-01-06 10:55:50 +02:00
Bartłomiej SzubertandSulka Haro 031c5beae7 Add missing Polish translations and improve existing (#5382)
* Add missing Polish translations and improve existing

* Improve translations
2020-01-01 11:21:38 +02:00
Bartłomiej SzubertandSulka Haro 9718bc748a Fix Alexa Launch and SessionEnded Requests (#5377)
* Fix Alexa Launch Request

* Allow LaunchRequest to handle intent if set, change shouldEndSession from string to bool

* Fix SessionEndedRequest
2020-01-01 11:00:18 +02:00
Sulka HaroandGitHub aeebf0b8a9 Delta support in virtual assistants (#5376)
* Added support for asking delta

* Added time reference

* Made delta reading more informative

* Corrected time reference

* Try shortening the response

* Revert attempt

* Updated templates and documentation

* Minor improvement in response when delta is 0
2020-01-01 10:58:52 +02:00
TanjaandSulka Haro 23d25a4e4e German translations improved and added (#5360) 2020-01-01 10:57:42 +02:00
inventor96 a7e49b3766 Made delta reading more informative 2019-12-27 00:55:31 -07:00
inventor96 a4c0425d2b Added time reference 2019-12-27 00:21:45 -07:00
inventor96 0c9f819d74 Added support for asking delta 2019-12-27 00:06:02 -07:00
Sulka HaroandGitHub 04b47f6109 Add 4 hour option to view (#5289)
* Revert "change default back to 3HR"

This reverts commit e60ff3aa9d.

* shorten HR to H to avoid line-wrapping on mobile

* try larger label font: 35 instead of 25 (vs. 40)

* add comma

* deviceInfo.recent null check

* default back to 3, w/ 4 as an option

* re-add H to single-digit hours

* * Don't use cache manifest all all for development
* Add 4 hours option to view and change the labelling to remove language issues
* Have page scale the minor pill widths more gracefully
2019-12-14 16:07:47 +00:00
Sulka HaroandGitHub 7b58a2251f Use auth tokens in api-secret (#5214)
* Allow auth tokens to be passed in the api-secret header and used in the client in place of the API secret

* Fix unit test

* Fix admin test

* Reload page when token is used as a secret
2019-12-06 12:27:54 +02:00
Sulka HaroandGitHub 7790f5c827 Merge branch 'dev' into patch-25 2019-12-06 12:24:42 +02:00
Sulka HaroandGitHub dc414b72b1 Merge pull request #5213 from jakebloom/hebrew
More hebrew translations
2019-12-06 12:19:46 +02:00
Sulka HaroandGitHub c153a965bc Merge pull request #5137 from inventor96/update-virtual-assistants-v2
Update virtual assistants v2
2019-12-06 12:18:26 +02:00
fedor apanasenkoandGitHub 1e2e948763 Russian translation update edit 2019-12-04 09:32:59 +03:00
Jake Bloom 4e48952d78 More hebrew translations 2019-11-16 17:37:14 -08:00
Lukas HerzogandSulka Haro 0c6929fb1c Language Update: added missing German Translations (#5172)
* language Update devicestatus collection

* language Update Admin-Tools

* changed wording for admin authorization

* typo corrected (admin auth)

* language Updates for Admin Tools database cleanups
2019-11-11 11:27:10 +02:00
DiabetlumandSulka Haro fcfc209f22 Turkish language updates (#5192)
* Turkish language updates

* in to Languages Part Turkish added

* in to Languages Part Turkish added
2019-11-10 21:04:48 +00:00
inventor96 c33aebbbd5 Migrated static intent titles to use translate() 2019-11-05 14:29:51 -07:00
inventor96 b9dc376b19 Migrated titles to use translate() 2019-11-05 14:11:55 -07:00
inventor96 c6e2b58b52 Translation improvements 2019-11-05 00:57:34 -07:00
inventor96 67e6cddc4b Merge branch 'update-virtual-assistants' into update-virtual-assistants-v2 2019-10-21 14:24:58 -07:00
inventor96 7770ff91b4 Improved logic to handle Alexa intents 2019-10-21 13:21:40 -07:00
PieterGitandGitHub 36de82bffd Revert "fix/feat: Update Alexa integration and add Google Home support (#4980)" (#5131)
This reverts commit 30b88f6765.
2019-10-21 16:23:32 +02:00
CalebandPieterGit 30b88f6765 fix/feat: Update Alexa integration and add Google Home support (#4980)
* Copied work done by mdomox

* Updates and fixes to CONTRIBUTING.md

* Spacing unification

* One more fix for CONTRIBUTING.md

* Minor code formatting improvements

* One more time...

* Renamed Alexa stuff to virtAsst for generic-ness

* Corrected missed translate() text

* Updated googlehome plugin to mimic the alexa plugin

* Changed order of operations

* Fixed parameter referencing in googlehome

* Yet another CONTRIBUTING fix

* Removed extra google stuff

* Migrated standalone intents to MetricNow intent

* Simplified route handling

* Added logging

* Added forgotten path selector

* Separated instructions for adding virtual assistant support in a plugin

* A few typo fixes

* Improved logging

* Updated Google Home plugin instructions

* Attempt to trigger download of template file

* Small wording tweaks

* Updated Alexa plugin documentation

* Updated test files

* Re-added handler count tests so devs are prompted to write tests for new handlers

* Updated Alexa documentation

* Small typo fix

* Clarification

* Further clarifications and typos

* Added language info to Google Home plugin doc

* URL correction

* URL fix v2

* Wording clarification

* Ugh...

* Minor instruction fix

* Sub steps fix

* Fixed Alexa references in Google Home

* Added a couple steps for improved user experience

* One more forgotten step

* Updated pump reservoir handler to handle undefined values

* Updated titles and unknown-value responses

* Modified forecast responses to use translate()

* Updated tests

* Improved training phrases

* Wording improvements

* Google Home setup instruction corrections

* Corrected how metric selection is found
2019-10-21 14:09:49 +02:00
OpossumGitandSulka Haro a9f89aa679 changed gitter shield to discord (#5121)
* changed gitter shield to discord

* changed discord shield text to discord chat instead of just chat

* changed gitter shield to discord

* need to fix my md error
2019-10-21 08:54:45 +03:00
fedor apanasenkoandSulka Haro 0898ec12ae Russian translation proofreading minor corrections, up to line 8000 (#4950) 2019-09-17 20:45:23 +03:00
John WestonandSulka Haro e06e3723b9 Rewording the "store hash" label (#4930)
* Rewording the "store hash" label

(Nobody in the public knows what a "hash" is; this setting is constantly misunderstood.)

* Update languge.js to match
2019-09-17 20:42:36 +03:00
inventor96 ddd8f63cbd Modified forecast responses to use translate() 2019-09-16 15:47:06 -06:00
inventor96 450fbc2572 Updated pump reservoir handler to handle undefined values 2019-09-16 14:33:50 -06:00
inventor96 efa35c4616 Renamed Alexa stuff to virtAsst for generic-ness 2019-09-07 17:51:31 -06:00
inventor96 93f8eb9d65 Spacing unification 2019-09-06 18:10:47 -06:00
Lukas HerzogandPieterGit 3b5430db6f German language updates (#4895)
* Updated german Languague for #4851

* added new translations
2019-08-23 16:03:09 +02:00
PieterGitandGitHub d0e14de83d Fix clock if authentication is enabled (#4914)
* Fix clock if authentication is enabled
Add .npmignore file

* Add time to clock view back

* Formatting

* Select browser language for authentication dialog
Make authentication dialog bigger to suit for other languages.

* Update hashauth.js

* Update hashauth.js

* Update hashauth.js

* Update hashauth.js

* Select language from localStorage

And get suitable language for the very first auth dialog (before the settings were read from server or user can select language in the configuration)

* remove extra `/ ` from clockview, otherwise bundle will not load and search for domain `bundle`

fixes https://github.com/nightscout/cgm-remote-monitor/pull/4860#pullrequestreview-277209223

* remove .npmignore for now.

should be merged in seperated PR

* small fixes
2019-08-22 20:50:51 +02:00