-
Notifications
You must be signed in to change notification settings - Fork 796
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "chore(manager/web): localization export for Outline Manager"
This reverts commit 47dbd7e.
- Loading branch information
Showing
315 changed files
with
75,878 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# We use Electron v18. | ||
# This is the version of Chrome it requires: | ||
# https://github.com/electron/releases#releases | ||
chrome >= 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
BasedOnStyle: Google | ||
ColumnLimit: 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_size = 2 | ||
indent_style = space | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/build/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import/typescript" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["@typescript-eslint", "compat", "import"], | ||
"rules": { | ||
"compat/compat": "error", | ||
"import/no-restricted-paths": [ | ||
"error", | ||
{ | ||
"zones": [ | ||
// this means that in the src/shadowbox/infrastructure folder, | ||
// you can't import any code, | ||
// with the exception of other files within the src/shadowbox/infrastructure folder | ||
{ | ||
"target": "./src/shadowbox/infrastructure", | ||
"from": ".", | ||
"except": ["./src/shadowbox/infrastructure", "./node_modules"] | ||
}, | ||
{ | ||
"target": "./src/server_manager/infrastructure", | ||
"from": ".", | ||
"except": ["./src/server_manager/infrastructure", "./node_modules"] | ||
}, | ||
{ | ||
"target": "./src/metrics_server/infrastructure", | ||
"from": ".", | ||
"except": ["./src/metrics_server/infrastructure", "./node_modules"] | ||
}, | ||
// similar to above but for src/shadowbox/model, but you can use files from both the | ||
// src/shadowbox/model and src/shadowbox/infrastructure paths | ||
{ | ||
"target": "./src/shadowbox/model", | ||
"from": ".", | ||
"except": ["./src/shadowbox/model", "./src/shadowbox/infrastructure", "./node_modules"] | ||
}, | ||
{ | ||
"target": "./src/server_manager/model", | ||
"from": ".", | ||
"except": [ | ||
"./src/server_manager/model", | ||
"./src/server_manager/infrastructure", | ||
"./node_modules" | ||
] | ||
} | ||
// TODO(daniellacosse): fix ui_component-specific import violations | ||
// { | ||
// "target": "./src/server_manager/web_app/ui_components", | ||
// "from": "./src/server_manager/model" | ||
// }, | ||
// { | ||
// "target": "./src/server_manager/web_app/ui_components", | ||
// "from": "./src/server_manager/web_app", | ||
// "except": ["./ui_components"] | ||
// } | ||
] | ||
} | ||
], | ||
"no-prototype-builtins": "off", | ||
"@typescript-eslint/ban-types": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/no-explicit-any": "error", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"argsIgnorePattern": "^_" | ||
} | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"check-version-tracker.js", | ||
"rollup-common.js", | ||
"rollup.config.js", | ||
"web-test-runner.config.js" | ||
], | ||
"env": { | ||
"node": true | ||
} | ||
}, | ||
{ | ||
"files": ["packages/lit-html/src/test/version-stability_test.js"], | ||
"env": { | ||
"mocha": true | ||
} | ||
}, | ||
{ | ||
"files": [ | ||
"*_test.ts", | ||
"packages/labs/ssr/custom_typings/node.d.ts", | ||
"packages/labs/ssr/src/test/integration/tests/**", | ||
"packages/labs/ssr/src/lib/util/parse5-utils.ts" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-explicit-any": "off" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
946220775492-a5v6bsdin6o7ncnqn34snuatmrp7dqh0.apps.googleusercontent.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
* @Jigsaw-Code/outline-dev | ||
|
||
/src/server_manager/model/ @fortuna | ||
/src/shadowbox/ @fortuna |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
query-filters: | ||
- exclude: | ||
id: js/disabling-certificate-validation | ||
- exclude: | ||
id: js/missing-rate-limiting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,208 @@ | ||
name: Build and Test | ||
|
||
concurrency: | ||
group: ${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: npm | ||
|
||
- name: Install NPM Dependencies | ||
run: npm ci | ||
|
||
- name: Lint | ||
run: npm run lint | ||
|
||
shadowbox: | ||
name: Shadowbox | ||
runs-on: ubuntu-latest | ||
needs: lint | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: npm | ||
|
||
- name: Install NPM Dependencies | ||
run: npm ci | ||
|
||
- name: Shadowbox Debug Build | ||
run: npm run action shadowbox/server/build | ||
|
||
- name: Shadowbox Unit Test | ||
run: npm run action shadowbox/test | ||
|
||
- name: Shadowbox Integration Test | ||
run: npm run action shadowbox/integration_test/run | ||
|
||
manual-install-script: | ||
name: Manual Install Script | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Install Outline Server | ||
run: ./src/server_manager/install_scripts/install_server.sh --hostname localhost | ||
|
||
- name: Test API | ||
run: 'curl --silent --fail --insecure $(grep "apiUrl" /opt/outline/access.txt | cut -d: -f 2-)/server' | ||
|
||
metrics-server: | ||
name: Metrics Server | ||
runs-on: ubuntu-latest | ||
needs: lint | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: npm | ||
|
||
- name: Install NPM Dependencies | ||
run: npm ci | ||
|
||
- name: Metrics Server Debug Build | ||
run: npm run action metrics_server/build | ||
|
||
- name: Metrics Server Test | ||
run: npm run action metrics_server/test | ||
|
||
sentry-webhook: | ||
name: Sentry Webhook | ||
runs-on: ubuntu-latest | ||
needs: lint | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: npm | ||
|
||
- name: Install NPM Dependencies | ||
run: npm ci | ||
|
||
- name: Sentry Webhook Debug Build | ||
run: npm run action sentry_webhook/build | ||
|
||
- name: Sentry Webhook Test | ||
run: npm run action sentry_webhook/test | ||
|
||
manager-web-test: | ||
name: Manager Web Test | ||
runs-on: ubuntu-latest | ||
needs: lint | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: npm | ||
|
||
- name: Install NPM Dependencies | ||
run: npm ci | ||
|
||
- name: Manager Web Test | ||
run: npm run action server_manager/test | ||
|
||
manager-linux-debug-build: | ||
name: Manager Linux Debug Build | ||
runs-on: ubuntu-latest | ||
needs: manager-web-test | ||
env: | ||
SENTRY_DSN: debug | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: npm | ||
|
||
- name: Install NPM Dependencies | ||
run: npm ci | ||
|
||
- name: Build Linux Manager | ||
run: npm run action server_manager/electron_app/build linux | ||
|
||
manager-windows-debug-build: | ||
name: Manager Windows Debug Build | ||
runs-on: windows-2019 | ||
needs: manager-web-test | ||
env: | ||
SENTRY_DSN: debug | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: npm | ||
|
||
- name: Install NPM Dependencies | ||
run: npm ci | ||
|
||
- name: Build Windows Manager | ||
run: npm run action server_manager/electron_app/build windows | ||
|
||
manager-mac-debug-build: | ||
name: Manager MacOS Debug Build | ||
runs-on: macos-11 | ||
needs: manager-web-test | ||
env: | ||
SENTRY_DSN: debug | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: npm | ||
|
||
- name: Install NPM Dependencies | ||
run: npm ci | ||
|
||
- name: Set XCode Version | ||
run: sudo xcode-select -switch /Applications/Xcode_13.2.app | ||
|
||
- name: Build MacOS Manager | ||
run: npm run action server_manager/electron_app/build macos |
Oops, something went wrong.