Commit graph

447 commits

Author SHA1 Message Date
Jonathan Cohen
ce385a87c8
Bump the manager to version 1.7.0 (#850) 2021-03-22 19:06:50 -04:00
Jonathan Cohen
2f2e658134
Per-Key Data Limits in the Manager (#841)
* 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>
2021-03-15 10:55:41 -04:00
mpmcroy
b193850304
Rename adminEmail to digitalOceanAccountName (#839)
* Renames adminEmail to digitalOceanAccountName

* Minor typo
2021-03-04 16:59:04 -05:00
mpmcroy
f5e9652ab2
Fixes unresponsive outline-do-oauth-step (#837)
* Fixes return statement

* Disconnect account and show intro when DigitalOcean OAuth is cancelled through the Outline Manager
2021-03-02 10:32:19 -05:00
Benjamin M. Schwartz
dc05c8db90
Merge pull request #834 from Jigsaw-Code/bemasc-shellcheck
Add a fallback IP check URL
2021-03-01 13:05:16 -05:00
Jonathan Cohen
96f23cee97
s/cohenjon/JonathanDCohen/ (#835) 2021-03-01 12:35:56 -05:00
Ben Schwartz
7f65fb7f43 Add a fallback IP check URL
Fixes #776
2021-02-26 13:54:20 -05:00
mpmcroy
3b8b2bd372
Replaces TokenManager with CloudAccounts (#829)
* Addresses review comments

* Fixes formatting
2021-02-24 12:59:04 -05:00
Ben Schwartz
23e0600898 Remove lingering mentions of Bower
Bower is no longer used
2021-02-22 14:31:02 -05:00
mpmcroy
78407ddc69
Removes unnecessary logging statement (#830)
* Removes unnecessary logging
2021-02-22 09:47:54 -05:00
mpmcroy
c36afbcbbb
Repurposes TokenManager as CloudAccounts (#827)
* gitignore

* Converts ManagedServerRepository into Account

* Adds CloudAccounts

* Moves token manager to cloud accounts

* Auto-format

* Newline

* Oops wrong year

* Addresses review commetns

* Addresses review comments

* Addresses review comments

* Addresses review commetns
2021-02-19 16:30:54 -05:00
Ben Schwartz
a08f8227d4 Respond to review comments 2021-02-17 16:56:37 -05:00
Ben Schwartz
42ba3ae25b Minor tweaks 2021-02-17 13:14:28 -05:00
Ben Schwartz
7d1fe0205c Require scripts to be shellcheck-compliant 2021-02-17 11:57:32 -05:00
Ben Schwartz
d41833b65a Slightly nontrivial shell cleanup
These are slightly nontrivial shell cleanups discovered in the course of
attempting shellcheck compliance.
2021-02-16 21:17:47 -05:00
Ben Schwartz
f6bbab5378 Improved error handling in the install script 2021-02-12 17:33:55 -05:00
Benjamin M. Schwartz
f583c5ee81
Merge pull request #818 from Jigsaw-Code/bemasc-pre-shellcheck
Substantive shell script cleanups
2021-02-12 16:21:32 -05:00
Ben Schwartz
db3a6f3ff7 Revert "Get rid of tr"
This reverts commit c2ae78d4db.
2021-02-12 14:57:45 -05:00
Ben Schwartz
d3d545e0c3 Add a comment on the string substitution formula 2021-02-12 14:25:25 -05:00
Ben Schwartz
c2ae78d4db Get rid of tr 2021-02-12 14:18:16 -05:00
Ben Schwartz
4710a15536 Use --quiet instead of -q 2021-02-12 14:08:23 -05:00
Ben Schwartz
abc4ae8772 Substantive shell script cleanups
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.
2021-02-12 11:48:18 -05:00
Ben Schwartz
fc6d447ccc Standardize curl usage 2021-02-11 14:40:28 -05:00
Ben Schwartz
8fd61a3fc3 Print a warning if the hostname or IP is invalid
See #776
2021-02-11 14:22:53 -05:00
Ben Schwartz
d54b916484 Switch STDOUT and STDERR 2021-02-10 11:02:43 -05:00
Ben Schwartz
64d4c9e1cf Reorganize output logging 2021-02-09 12:20:33 -05:00
Ben Schwartz
e7745aafdf Adjust logging strategy 2021-02-08 17:18:10 -05:00
Ben Schwartz
326131d371 Provide more detailed logs if setup fails
This should help us to debug mysterious installation failures.
2021-02-08 17:18:10 -05:00
Vinicius Fortuna
c9a906d248 Fix AccessKey 2021-02-05 17:00:45 -05:00
Vinicius Fortuna
e67b068630 Remove unused code 2021-02-05 16:37:52 -05:00
Vinicius Fortuna
1e17ebc5d1 Remove unused type 2021-02-05 14:55:31 -05:00
Vinicius Fortuna
f0928afbd1 Fix DataUsageByAccessKey and ServerConfig 2021-02-05 14:49:40 -05:00
Jonathan Cohen
1c5b563d0d
Internationalize units and currency (#780)
* 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
2021-02-04 18:47:45 -05:00
Jonathan Cohen
cb4c3f8d31
Ensure that Karma and Electron use the same Chromium version (#803)
* 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
2021-02-01 13:04:56 -05:00
Vinicius Fortuna
076f6994bd
Merge pull request #741 from Jigsaw-Code/dependabot/npm_and_yarn/src/server_manager/node-forge-0.10.0
Bump node-forge from 0.7.6 to 0.10.0 in /src/server_manager
2021-01-29 15:54:39 -05:00
mpmcroy
14d3c49660
Adds id to server and updated serverId to metricsId (#799)
* Adds id to server and updated serverId to metricsId

* Fixes test

* Addresses review comments
2021-01-27 13:03:15 -05:00
mpmcroy
3878f443c5
Moves the "server progress view" to the "create server" flow (#790)
* Moves server progress view to outline-server-view

* Stops progress view animation; small refactor

* Auto-format

* Updates app tests

* Addresses review comments

* Addresses review comments

* Addresses review comments

* Addresses review comments

* Explicitly renders the server view dom-repeat to ensure view is added to the DOM

* Makes showServer synchronous
2021-01-15 12:08:53 -05:00
Jonathan Cohen
7218a93ee3
Internationalize the label for the default data limit input (#796) 2021-01-14 19:32:41 -05:00
Jonathan Cohen
93ab615466
Remove unneeded casts (#789) 2021-01-12 12:51:29 -05:00
Vinicius Fortuna
e6a85cf848 Use beforeEach 2021-01-08 17:42:37 -05:00
Vinicius Fortuna
9cdc413367 Remove test flakiness 2021-01-08 17:14:14 -05:00
Vinicius Fortuna
b3b2d9886f Fix test 2021-01-08 17:02:30 -05:00
Vinicius Fortuna
59e6a90e26 Use updateServerEntry 2021-01-08 11:31:42 -05:00
Vinicius Fortuna
362e52fc07 Tweak test 2021-01-07 18:10:14 -05:00
Vinicius Fortuna
d3cf951dff Add return types 2021-01-06 18:35:14 -05:00
Vinicius Fortuna
24dcd36141 Add comment 2021-01-06 18:26:01 -05:00
Vinicius Fortuna
d25ed1a279 Rename variables 2021-01-06 18:25:17 -05:00
Vinicius Fortuna
da73af5f32 Remove TODOs 2021-01-06 18:16:53 -05:00
Vinicius Fortuna
b4a2cfb5bd Fix account connection flow. 2021-01-05 19:46:51 -05:00
Vinicius Fortuna
bc7c1b8946 Add some errors 2020-12-30 00:40:27 -05:00