Commit graph

953 commits

Author SHA1 Message Date
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
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
Vinicius Fortuna
11a6b34e6e
Merge pull request #843 from Jigsaw-Code/fortuna-patch-1
Add info on blocking resistance
2021-03-11 13:03:56 -05:00
Vinicius Fortuna
0ce47d11a5
Update README.md 2021-03-11 11:53:32 -05:00
Vinicius Fortuna
b7601ce25a
Address review comments 2021-03-11 11:48:41 -05:00
Vinicius Fortuna
b78d7754b0
Update README.md 2021-03-10 21:36:33 -05:00
Vinicius Fortuna
4ca4e0ee12
Add info on blocking resistance 2021-03-10 21:34:45 -05: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
da61d6d4c7
Merge pull request #836 from Jigsaw-Code/bemasc-update
Update outline-shadowsocksconfig
2021-03-01 15:04:07 -05:00
Ben Schwartz
8f016d460d Update outline-shadowsocksconfig 2021-03-01 14:29:48 -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
Benjamin M. Schwartz
18ad065f44
Merge pull request #833 from Jigsaw-Code/bemasc-shellcheck
Fix shellcheck installation on macOS
2021-02-24 16:24:42 -05:00
Ben Schwartz
71ec965760 Fix shellcheck installation on macOS
The shellcheck download verification step was relying on `sha256sum`,
which is not present in the macOS default install.
2021-02-24 14:44:22 -05:00
mpmcroy
3b8b2bd372
Replaces TokenManager with CloudAccounts (#829)
* Addresses review comments

* Fixes formatting
2021-02-24 12:59:04 -05:00
Benjamin M. Schwartz
7badff4d77
Merge pull request #831 from Jigsaw-Code/bemasc-bower
Remove lingering mentions of Bower
2021-02-23 17:12:03 -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
Benjamin M. Schwartz
eb5ac5eeb4
Merge pull request #822 from Jigsaw-Code/bemasc-shellcheck
Require scripts to be shellcheck-compliant
2021-02-19 15:21:27 -05:00
Benjamin M. Schwartz
5814f9772c
Exclude bower_components from tslint
Co-authored-by: Jonathan Cohen <cohenjon@google.com>
2021-02-19 15:15:01 -05:00
Ben Schwartz
1e0a283410 Exclude bower_components 2021-02-19 14:49:36 -05:00
Sarah Laplante
da63d5e3c2
Merge pull request #828 from Jigsaw-Code/laplante-config
bump ssconfig version
2021-02-19 14:43:13 -05:00
Sarah Laplante
3dcbe1499d bump ssconfig version 2021-02-19 14:10:09 -05:00
Ben Schwartz
33608cd1be DOWNLOAD -> DOWNLOAD_DIR 2021-02-19 13:57:53 -05:00
alalamav
7b64dc4465
Update sentry webhook runtime to node 12 (#825) 2021-02-19 12:30:22 -05:00
Ben Schwartz
562c610b86 Download a pinned version of Shellcheck 2021-02-18 21:52:28 -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
Benjamin M. Schwartz
422a610465
Merge pull request #823 from Jigsaw-Code/bemasc-pre-shellcheck
Slightly nontrivial shell cleanup
2021-02-17 11:57:10 -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
Benjamin M. Schwartz
67d3b037ce
Merge pull request #821 from Jigsaw-Code/bemasc-logs
Improved error handling in the install script
2021-02-16 12:02:13 -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
fe037ec726 Remove CONNECTIONS_PATH and FEATURES_PATH 2021-02-12 14:27:41 -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
Sarah Laplante
14d0650a1e
Merge pull request #815 from Jigsaw-Code/laplante-config
bump ssconfig version
2021-02-12 11:20:40 -05:00
Benjamin M. Schwartz
c93c900440
Merge pull request #814 from Jigsaw-Code/bemasc-ipinfo
Print a warning if the hostname or IP is invalid
2021-02-12 10:13:48 -05:00
Sarah Laplante
ba1a964605 bump ssconfig version number 2021-02-11 20:29:21 -05:00