Commit graph

24 commits

Author SHA1 Message Date
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
Ben Schwartz
23e0600898 Remove lingering mentions of Bower
Bower is no longer used
2021-02-22 14:31:02 -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
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
7d1fe0205c Require scripts to be shellcheck-compliant 2021-02-17 11:57:32 -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
alalamav
2790202627
Fix unit tests (#693) 2020-06-22 16:32:48 -04:00
Vinicius Fortuna
373ffd2ceb Run lint in the build 2020-06-11 22:24:45 -04:00
Vinicius Fortuna
401a4f4bc8 Remove cleaning of bower_components 2020-05-14 18:31:49 -04:00
Vinicius Fortuna
59ebbd8a02 Cleanup 2020-05-08 16:43:40 -04:00
Vinicius Fortuna
e1462b757b Upgrade Typescript 2020-04-28 02:04:25 -04:00
alalamav
e9eb2d30ec
Only lint HTML files with prettier (#592) 2020-02-28 17:59:32 -05:00
Jonathan Cohen
565a5d9a6e
Use Prettier to format HTML and CSS files (#583)
* Use Prettier to format HTML, CSS, and Markdown files

Currently alalama uses Sublime's built-in formatter while JonathanDCohen uses VS Code.  This standardizes us on Prettier and adds formatting to our pre-commit hooks.

pretty-quick has no option to only format changed lines, so this commit will be followed by a format of the src/ directory in order to keep unrelated formatting changes from polluting diffs in upcoming commits.

Code contributors can use the instructions at https://prettier.io/docs/en/editors.html if they'd like to integrate prettier with their editor of choice

* Format html and css files in ui_components

* Fix some html errors found by Prettier
2020-02-20 18:10:04 -05:00
Jonathan Cohen
72efc24130
Update to Typescript 3.7 (#558)
See https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html for more information.  Among the nice new features are optional chainging and null coalescing, and assertion functions, as well as some additional safety checks in the compiler
2020-01-17 16:42:02 -05:00
Jonathan Cohen
5e72b1d554
Update typescript (#519)
This corresponds with the same change in outline-client

Tested:
yarn do {server_manager/test, shadowbox/test, shadowbox/integration_test/run, sentry_webhook/build, metrics_server/build}
2019-10-22 17:22:27 -04:00
Trevor Johnston
cc417f6abb simplify precommit linting, always use binaries in node_modules 2019-01-07 14:54:18 -05:00
Trevor Johnston
54ca9caa2c migrate to husky 1.x, auto-upgrade config 2019-01-07 14:43:22 -05:00
Trevor Johnston
b3ab9c9962 upgrade to latest bigquery client library, remove now-unnecessary typings 2018-12-11 14:33:08 -05:00
fortuna
67e870e439 Add yarn minimum version 2018-04-06 17:47:31 -04:00
fortuna
d22cbaed8d Use yarn workspaces 2018-04-06 16:29:25 -04:00
fortuna
fb58ec9703 Move bower install into postinstall 2018-04-06 16:22:53 -04:00
Trevor Johnston
c44d9f2fb9 import code 2018-03-14 17:52:39 -04:00