Commit graph

472 commits

Author SHA1 Message Date
alalamav
73e26d7cc0
Increase manager version (#875) 2021-04-23 10:52:05 -05:00
alalamav
1633165df4
Enable kk, my translations (#877) 2021-04-23 10:51:29 -05:00
alalamav
16fb0fb04d
Update manager translations (#874) 2021-04-22 17:19:36 -05:00
mpmcroy
b7cda5c7ae
Adds GCP create server flow (#864)
* gitignore

* Adds GCP token to CloudAccounts

* Checkpoint

* Checkpoint

* Refactors cloud accounts

* Addresses comments

* Auto-formatting

* Reverts gallery webpack GCP local server

* Reverts webpack config change

* Minor cleanup

* Removes unused class

* Reverts initial feature flag implementation

* Removes unneeded logging

* Adds credentials getters to CloudAccounts and updates tests

* Auto-format

* Adds FakeCloudAccounts

* Removes credentialsGetter from CloudAccounts

* Removes account factories from CloudAccounts

* Addresses review comments

* Addresses review commetns

* Auto-formatting

* Adds GcpAccount implementation

* Auto-format

* Auto-format

* Replace OAuth config client id

* Adds method to fetch OpenID userinfo

* Adds method to fetch OpenID userinfo

* Checkpoint

* Auto-format

* Adds method to refresh GCP access token

* Uncommenting

* Checkpoint

Auto-formatting

Updates intro step with gcp account

Auto-format

typo

* Add comment

* fetch refactor

* Auto-format

* Remove account from CloudAccounts

* Refactors refresh token exchange

* Auto-format

* Auto-format

* Initial GCP create server UI

* Auto-format

* Addresses review comments

* URL encoding

* Encode URL

* Adds GCP strings

* Addresses review comments

* Addresses review comments

* Addresses review comments

* Adds GCP create server app to gallery; Addresses review comments;

* Auto-formatting

* Addresses review comments

* Auto-format

* Addresses review comments

* Auto-format

* Addresses review comments

* Addresses review comments

* Auto-format

* Addresses review comment

* Auto-format

* Addresses review comments

* Minor fix

* Removes comments

* Addresses review comments

* Auto-format

* Addresses review comments
2021-04-09 14:15:00 -04:00
Jonathan Cohen
2c575bb8a5
Bump the manager to version 1.7.2 (#860) 2021-03-25 15:55:21 -04:00
Vinicius Fortuna
5a14fe6767 Add ID comment on the Account 2021-03-25 13:48:21 -04:00
Vinicius Fortuna
216b8122d9 Add comment 2021-03-25 13:43:11 -04:00
Vinicius Fortuna
517647b214 Add TODO 2021-03-25 12:57:10 -04:00
Vinicius Fortuna
20ef6eecd8 Merge branch 'master' into fortuna-cloud 2021-03-25 12:55:37 -04:00
Vinicius Fortuna
3bee7cdd02 make methods async 2021-03-25 11:55:04 -04:00
Vinicius Fortuna
a7bec09ffa Minor cleanup 2021-03-25 11:40:21 -04:00
Vinicius Fortuna
fa7acacc36 Fix app.spec.ts 2021-03-25 03:41:18 -04:00
Vinicius Fortuna
8e64f0ffa1 Fix server removal 2021-03-25 03:18:52 -04:00
Vinicius Fortuna
7eea5ee560 Add AccountListEntry 2021-03-24 21:14:13 -04:00
Vinicius Fortuna
62c40524b7 Merge branch 'master' into fortuna-cloud 2021-03-24 20:09:34 -04:00
Vinicius Fortuna
55be5a8599 Remove unused getHostId() 2021-03-24 17:54:39 -04:00
alalamav
403f082208
Force production build environment for releases (#857) 2021-03-24 14:57:10 -05:00
Jonathan Cohen
efd0daf89b
Bump the manager to version 1.7.1 after the server destruction bugfix (#856) 2021-03-24 15:05:55 -04:00
Jonathan Cohen
8fdd8d7273
Pass the id of the server to remove to event listeners (#855)
* 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>
2021-03-24 15:04:09 -04:00
Vinicius Fortuna
023a0c29fb Merge branch 'master' into fortuna-cloud 2021-03-24 11:20:23 -04:00
Vinicius Fortuna
1353767a2e Update braces 2021-03-24 11:08:48 -04:00
Vinicius Fortuna
a6ceb399d1 Clean up Server list template 2021-03-24 00:01:57 -04:00
Vinicius Fortuna
e20cf5c118 Use Account ids 2021-03-23 23:12:45 -04:00
mpmcroy
b9222fe75c
Adds GCP OAuth (#838)
* gitignore

* Adds GCP token to CloudAccounts

* Checkpoint

* Checkpoint

* Refactors cloud accounts

* Addresses comments

* Auto-formatting

* Reverts gallery webpack GCP local server

* Reverts webpack config change

* Minor cleanup

* Removes unused class

* Reverts initial feature flag implementation

* Removes unneeded logging

* Adds credentials getters to CloudAccounts and updates tests

* Auto-format

* Adds FakeCloudAccounts

* Removes credentialsGetter from CloudAccounts

* Removes account factories from CloudAccounts

* Addresses review comments

* Addresses review commetns

* Auto-formatting

* Auto-format

* Replace OAuth config client id

* Remove account from CloudAccounts
2021-03-23 15:52:25 -04:00
Jonathan Cohen
15cc5889c4
Add new translation strings for per key data limits (#849) 2021-03-22 19:07:55 -04:00
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