Skip to content

Commit

Permalink
Revert "chore(manager/web): localization export for Outline Manager"
Browse files Browse the repository at this point in the history
This reverts commit 47dbd7e.
  • Loading branch information
sbruens committed Jan 19, 2024
1 parent 47dbd7e commit bde3130
Show file tree
Hide file tree
Showing 315 changed files with 75,878 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .browserslistrc
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
2 changes: 2 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BasedOnStyle: Google
ColumnLimit: 100
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
10 changes: 10 additions & 0 deletions .editorconfig
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
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/build/
node_modules/
114 changes: 114 additions & 0 deletions .eslintrc.json
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"
}
}
]
}
1 change: 1 addition & 0 deletions .gitallowed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
946220775492-a5v6bsdin6o7ncnqn34snuatmrp7dqh0.apps.googleusercontent.com
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
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
5 changes: 5 additions & 0 deletions .github/codeql/config.yml
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
208 changes: 208 additions & 0 deletions .github/workflows/build_and_test_debug.yml
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
Loading

0 comments on commit bde3130

Please sign in to comment.