Commit graph

1171 commits

Author SHA1 Message Date
Daniel LaCosse
b81142dadc
fix indent 2021-11-15 17:15:46 -05:00
Daniel LaCosse
d1b36cfe45
switch to electron in PATH 2021-11-15 14:55:45 -05:00
Daniel LaCosse
8231a22187
use proper electron bin 2021-11-15 11:59:24 -05:00
Daniel LaCosse
afc7158424 Remove deprecated buffer call 2021-11-10 11:09:03 -05:00
Daniel LaCosse
9d80b6d448
Migrate from Yarn to Node lts/gallium (#1004)
* attempt upgrade over CI

update shadowbox build node version

wild guess

try other image, not holding my breath

switch image back, try no --upgrade? lol

whoops wrong SHA

trying this tip out of hand - will make platform a env var next

apparently buildx is supposed to detect the platform - lets see

find replace yarn w/ npm

fix git hook

cache npm deps

proper lock and enforce engine

licenses are... generated by yarn lmao

some weird leftovers

explode out test workflow jobs

Title Case and check for cache hit

upgrade NPM

check version...

eh, worth a try

reinstall deps for now so we can debug downstream issues

use root bin

fix npm workspace, merge lint w/ setup

HMMM

attempt cache load

fix keys

remove restore-keys

regular install

attempt more "correct" npm approach

annoyingly caching ~/.npm doesn't cache the global npm version

less correct node_module cache, will roll back if doesn't work

er... node 15 :/, restore keys

changing key...?

permission setting so cache can properly hit

separate dependecy permission task

verbose chmod

fix sentry webhook

consistency thing

* print architecture

* attempt amd64-explicit node image

* attempt nodev16 upgrade

* ah, okay, let's try picking this hash

* fix node version reference and npm run clean

* revert untouched files caught in squash

* remove yarn from travis.yml

* testing ci

* npmrc comment, revert one of cis

* Update src/server_manager/web_app/run_gallery_action.sh

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>

* Update src/server_manager/web_app/run_action.sh

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>

* licenses change

* fix package-lock regression

* fix webpack-dev-server properly

* set install to ci in Dockerfile

* forgot to include the README

* add ci where it makes sense

* delete this part of the README

* missed one

* testing sub-node_modules

* better chmod

* prefer glob

* reset .github/workflows/test.yml

* oops, yarn in ci

* rename everything (#1006)

* Update test.yml

* check_requirements (#1008)

* reqcheck draft

* finish drafting script - need to test and add to hooks

* attempt to roll our own setup...

* remove setup script and rename a couple things

* remove this nightmare lol

* Update release_manager.yml

* Update test.yml

* 'do' -> 'action'

* run -> start

* Update src/shadowbox/docker/build.action.sh

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>

* Update README.md

* Update README.md

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

* rename 'action' to action

* add action list to run action itself

* Update src/shadowbox/README.md

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

* Update README.md

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

* Update scripts/run_action.sh

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

* Update src/server_manager/scripts/fill_packaging_opts.sh

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

* style guide fixes

* lower case fixes

* enforce major version

* Update scripts/run_action.sh

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

* Update package.json

Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
Co-authored-by: Benjamin M. Schwartz <bemasc@google.com>
2021-11-05 16:40:34 -04:00
Vinicius Fortuna
0eca970d6a
Merge pull request #996 from ksperis/master
Allow custom name for shadow docker
2021-10-25 12:43:01 -07:00
Laurent Barbe
dbee093052 Add quotes for CONTAINER_NAME 2021-10-18 17:48:30 +02:00
Laurent Barbe
5edb9da782 Remove the "docker start", it's already handled below 2021-10-18 16:24:04 +02:00
Laurent Barbe
6b6787e51d Merge remote-tracking branch 'upstream/master' 2021-10-18 15:05:44 +02:00
Daniel LaCosse
fcac54df89
Improve reliability of bulk creation and deletion of access keys (#995)
* wip

* rename file and remove bogus test

* create file library and add unit tests

oh lol

formatting

* switch to node-tmp

* makes constants screaming case

* missed a 'text'

* this is what i get for trying to use the web editor

* roll back title case
2021-10-15 14:54:48 -04:00
Laurent Barbe
18b014e56c
Change SHADOWBOX_NAME to CONTAINER_NAME 2021-10-15 14:46:40 +02:00
Benjamin M. Schwartz
1a1e645e60
Merge pull request #997 from Jigsaw-Code/bemasc-ts
Migrate all UI components to Typescript
2021-10-14 17:46:34 -04:00
Vinicius Fortuna
8d62fdbef4
Merge pull request #1000 from Jigsaw-Code/dependabot/npm_and_yarn/electron-13.3.0
Bump electron from 13.1.2 to 13.3.0
2021-10-14 14:41:35 -07:00
dependabot[bot]
a19e0a0090
Bump electron from 13.1.2 to 13.3.0
Bumps [electron](https://github.com/electron/electron) from 13.1.2 to 13.3.0.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v13.1.2...v13.3.0)

---
updated-dependencies:
- dependency-name: electron
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-12 22:05:27 +00:00
Ben Schwartz
e30c72463c Add comment 2021-10-12 11:27:45 -04:00
dependabot[bot]
e9c65d1aaf
Bump socket.io-parser from 3.3.1 to 3.3.2 (#939)
Bumps [socket.io-parser](https://github.com/socketio/socket.io-parser) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/socketio/socket.io-parser/releases)
- [Changelog](https://github.com/socketio/socket.io-parser/blob/3.3.2/CHANGELOG.md)
- [Commits](https://github.com/socketio/socket.io-parser/compare/3.3.1...3.3.2)

---
updated-dependencies:
- dependency-name: socket.io-parser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-11 12:42:11 -04:00
dependabot[bot]
920b6a79c9
Bump path-parse from 1.0.6 to 1.0.7 (#955)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-11 12:28:44 -04:00
Ben Schwartz
b7c4ec3e24 Fix tests 2021-10-07 15:33:53 -04:00
Ben Schwartz
80ad18e233 Lint fixes 2021-10-07 15:21:12 -04:00
Jonathan Cohen
b9aeed6762 Migrate all UI components to Typescript
Our UI components are in a mixture of

* Polymer 1.0 style in JS
* Polymer 2.0 style in JS
* Polymer 3.0 style in TS
* Lit-Element 1.0 in JS
* Lit-Element 2.0 in TS

This change migrates all JS to TS, leaving us with slightly less
divergence between component implementations.  This change only adds
type annotations and corrects bugs encountered during type checking.
Some notable bugs fixed:

* We were annotating properties "readonly" throughout, but the correct
annotation is "readOnly".  However, the effect of this annotation is not
what we thought it was (it actually makes any attempt to set or bind the
property fail silently, even in the constructor), so I've removed most
uses of this annotation.
* Missing imports and dependencies.
* Several instances of type confusion.

Hopefully, migrating to Typescript will make the code easier to
navigate with automated tools, especially for new team members, and will
accelerate subsequent cleanups.
2021-10-07 15:06:20 -04:00
Laurent Barbe
fc1e3a58dc Allow custom shadow docker name to allow multiple instances 2021-10-05 17:07:12 +02:00
Daniel LaCosse
f342bca31f
add yarn actions, fix ShadowsocksConfig macro, webpack bin (#993)
* add yarn actions, fix ShadowsocksConfig macro, webpack bin

reverting unnecessary specificity

* tweak action trigger
2021-09-30 13:07:56 -04:00
Vinicius Fortuna
c37dd3751a Update Manager version 2021-09-28 17:22:32 +01:00
Vinicius Fortuna
96b22330aa Fix Windows build 2021-09-28 17:20:50 +01:00
Jonathan Cohen
c9d3a48b62
Release Outline Manager on Github Actions (#978)
Release Outline Manager on Github Actions
2021-09-23 16:28:11 -04:00
Vinicius Fortuna
b0eb85ef14
Merge pull request #868 from database64128/api-docs
📚 API doc: add missing fields
2021-09-21 18:13:44 -04:00
Benjamin M. Schwartz
166813aa3a
Merge pull request #982 from Jigsaw-Code/bemasc-free-tier
Fix login bug after free trial period expires
2021-09-13 20:20:15 -04:00
Ben Schwartz
46738deafd Make linter happy 2021-09-09 16:46:07 -04:00
Benjamin M. Schwartz
550b70c68c
Merge pull request #981 from Jigsaw-Code/bemasc-oauth-desktop
Switch GCP OAuth to Desktop mode
2021-09-09 16:45:01 -04:00
Ben Schwartz
f340c0d484 Fix login bug after free trial period expires
When the free trial period expires, the Outline project is left linked
to an inactive billing account, and all instances are deleted.
Attempting to list the instances associated with a project that lacks
billing results in an HTTP 403.  Currently, this results in GCP login
failure, with a generic error message.

This change makes the manager handle this account state gracefully,
taking the user to the billing setup screen, and from there directly
to the server creation screen.
2021-09-09 15:45:39 -04:00
Ben Schwartz
6314e9e7b7 Switch GCP OAuth to Desktop mode 2021-09-09 15:04:44 -04:00
Benjamin M. Schwartz
c2c747d050
Merge pull request #979 from Jigsaw-Code/bemasc-translations
Update translations
2021-09-07 17:07:04 -04:00
Ben Schwartz
6276e1027d Add to UI list 2021-09-07 16:28:41 -04:00
Benjamin M. Schwartz
f015e6d442 Update translations 2021-09-07 20:15:19 +00:00
Benjamin M. Schwartz
037430d732
Merge pull request #967 from Jigsaw-Code/bemasc-gcp-name
Improve GCP instance name construction
2021-08-23 16:18:35 -04:00
Ben Schwartz
6577da5546 Restore previous format but fixed 2021-08-23 13:41:47 -04:00
Ben Schwartz
6166ba69bf Improve GCP instance name construction
The current code generates names by concatenating integers in a custom
format, with unusual results.  For example, 2021-01-12 at 13:01:50 and
2021-11-02 at 01:31:50 are both rendered as "2021112-13150".

This change produces names like "2021-01-12t13-01-50", which is easier
to read (and less likely to collide).
2021-08-19 13:49:15 -04:00
Benjamin M. Schwartz
fcc5e3367c
Merge pull request #963 from Jigsaw-Code/bemasc-free-tier
Add links to the GCP pricing explanation
2021-08-17 10:09:47 -04:00
Benjamin M. Schwartz
3a5e61d8d5
Merge pull request #961 from Jigsaw-Code/bemasc-e2
Switch instance type to e2-micro
2021-08-13 15:15:31 -04:00
Ben Schwartz
05f7d227c6 Add links to the GCP pricing explanation 2021-08-13 15:10:14 -04:00
Ben Schwartz
da5ac0ca34 Switch instance type to e2-micro
e2-micro is the new GCP Free Tier instance type.  It's also faster and
has more RAM than the old f1-micro type.
2021-08-12 14:43:15 -04:00
Benjamin M. Schwartz
ea917fb68a
Merge pull request #960 from Jigsaw-Code/bemasc-collision
Remove other string collisions
2021-08-12 13:26:48 -04:00
Ben Schwartz
728600bd22 Differentiate "Next" with a "meaning" field 2021-08-12 13:16:23 -04:00
Ben Schwartz
7ce203a78e Remove other string collisions
See #959
2021-08-12 10:39:54 -04:00
Benjamin M. Schwartz
727c80044c
Merge pull request #959 from Jigsaw-Code/bemasc-collision
Consolidate duplicated "Disconnect" strings
2021-08-12 10:17:29 -04:00
Ben Schwartz
8bf49224be Consolidate duplicated "Disconnect" strings
Our translation system requires extra work to support distinct string
with identical content, and in this case there's no need for distinct
strings anyway.
2021-08-11 14:43:01 -04:00
Benjamin M. Schwartz
0b4fdf2618
Merge pull request #958 from Jigsaw-Code/bemasc-dpkg
Install Docker on GCP using the Ubuntu dpkg method
2021-08-11 13:49:52 -04:00
Ben Schwartz
c3a9c8c735 Install Docker on GCP using the Ubuntu dpkg method
This cuts the GCP server setup time approximately in half, likely
because it avoids multiple calls to "apt update", which
synchronizes all known package repositories.

This PR also updates the underlying Ubuntu image to the latest LTS
release.
2021-08-11 12:57:07 -04:00
Benjamin M. Schwartz
3edeabb239
Merge pull request #956 from Jigsaw-Code/bemasc-aws
Restore lost AWS instruction card
2021-08-11 12:11:47 -04:00
Ben Schwartz
6b783bd2a5 Restore lost AWS instruction card
This was accidentally removed in #944.  Oops.
2021-08-11 12:00:08 -04:00