* Pass the id of the server to be removed from the manager to the event listener
* Correctly reset appRoot state after destroying a server
* Rename to forgetServer
* Remove stray logging
* Apply suggestions from code review
Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
* Further suggested changes
Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
* Add per-key data limits to the UI
* Hold byte values instead of DisplayDataAmounts in OutlineServerView and OutlinePerKeyDatALimitDialog
This allows us to fix a layering issue where, at the time of converting
a server access key to a DisplayAccessKey, we couldn't compute the
'relevant transfer' for progress bar displays since we couldn't get at
the server's default data limit.
* Mayp#values() returns an Iterator, not an array
* Rename event field to defaultDataLimitBytes
* Don't reset the dialog state on failure
* Use a loop instead of Math.max in refreshTransferStats
* Unconditionally enable the default data limit in the UI after adding it to the server
Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
* Consistent handling of the view's default data limit state for both addition and removal
* Use callbacks to set and remove the per key data limit
* s/_showMenu/_showDataLimit/g
* Make language a public property of the dialog
* The dialog only needs the active data limit
* Use a separate method for the handler to open the dialog
* Use _activeDataLimitBytes
* We can use the ?? operator in `refreshTransferStats`
* s/dataLimitType/dataLimitUnit/g
* Rename a couple members
Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
Running "shellcheck", and attempting to comply with the shell script
style guide, required hundreds of trivial changes, and a small number of
nontrivial ones. For ease of review, this PR includes only the
nontrivial changes.
* Fix broken Travis config
* Doesn't also build the Linux or Mac manager on server deploy
* Correctly builds a Windows binary on manager release (although we still have to manually upload build artifacts)
* Renames the Shadowbox deployment step
* Run Linux unit tests on Github Actions
* Run manager tests on mac, linux, and windows
* Fix syntax, use correct node version
* Don't test Shadowbox on Windows or Mac
* Don't cancel other jobs in the matrix when the build on one platform fails
* Use bash on all platforms. This uses Git for Windows bash on Windows
* Remove Windows tests for now. This is not a downgrade as we were only testing on linux before anyways
* Reduce code duplication
* Remove test config from Travis
* Respond to review comments:
* Remove redundant build step in the shadowbox unit testing workflow
* Add a testing step to the shadowbox release Travis workflow
* Pin to Ubuntu 16.04 to match our release infrastructure on Travis
* Run daily releases of the manager on all platforms
* Verbose mode on docker-compose
* try turning off Docker Content Trust
* Pin to a version of distroless Python and stop removing temp files at the end
* Remove verbose from compose
* Use Ubuntu 16.04
* Comment the pinned python image
* Add temp state cleanup back
* Internationalize data transfer amounts
* Internationalize units and currency
This required updating to Typescript 4 and adding compiler changes for the server manager in order to support newer features of `Intl`.
This change also fixes it so that the server city, creation date, and data limits no longer are stuck to the old language ater changing languages.
* Remove stray log
* Respond to review comments
* Remove byte-size
* Move to `web_app`
This code is only intended to be run in a web environment, not in Node.
* Respond to review comments
* Use property binding to the app language
* Respond to review comments
* Respond to review comments
* s/get/format
* Error out on Node
* Set the persisted app language before starting the app to prevent issues with undefined language at startup
* Respond to review comments and broaden covered languages
* Ensure that Karma and Electron use the same Chromium version
* Move the unit test to server_manager. This fixes an error on Travis involving importing from a package.json governed by a different tsconfig
* Unconditionally build the install script in the web app test