-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from edlerd/ui-infra
Add infrastrucutre for UI and first pages for client management
- Loading branch information
Showing
41 changed files
with
7,015 additions
and
5,690 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
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 @@ | ||
PORT=8411 |
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,39 @@ | ||
module.exports = { | ||
parser: "@typescript-eslint/parser", | ||
plugins: ["@typescript-eslint", "react"], | ||
globals: {}, | ||
env: { | ||
node: true, | ||
browser: true, | ||
es6: true, | ||
es2020: true, | ||
jest: true, | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:prettier/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking", | ||
"plugin:@typescript-eslint/strict", | ||
], | ||
settings: { | ||
react: { | ||
version: "detect", | ||
}, | ||
}, | ||
parserOptions: { | ||
project: "./tsconfig.json", | ||
sourceType: "module", | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
root: true, | ||
rules: { | ||
"linebreak-style": ["error", "unix"], | ||
semi: ["error", "always"], | ||
"object-curly-spacing": ["error", "always"], | ||
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }], | ||
}, | ||
}; |
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,83 @@ | ||
# [generated] Bracketed sections updated by Yeoman generator | ||
# generator-canonical-webteam@3.4.1 | ||
|
||
# [os] OS & editor files | ||
Desktop.ini | ||
Thumbs.db | ||
._* | ||
*.DS_Store | ||
*~ | ||
\#*\# | ||
.AppleDouble | ||
.LSOverride | ||
.spelling | ||
.vscode | ||
.idea | ||
|
||
# [cache] Cache and backup | ||
*.bak | ||
*-cache/ | ||
|
||
# [data] Local data | ||
*.sqlite* | ||
*.log | ||
logs/ | ||
pids | ||
*.pid | ||
*.seed | ||
.*-metadata | ||
|
||
# [deps] Local dependencies | ||
.bundle/ | ||
node_modules/ | ||
vendor/ | ||
bower_components/ | ||
vendor/ | ||
# Normally lockfiles would be committed, but we use yarn instead of NPM for locking dependencies | ||
package-lock.json | ||
|
||
# [build] Built files | ||
/build/ | ||
/parts/ | ||
/prime/ | ||
/stage/ | ||
*.egg-info | ||
.snapcraft/ | ||
*.snap | ||
_site/ | ||
*.*.map | ||
|
||
# [env] Local environment settings | ||
.docker-project | ||
.*.hash | ||
.envrc | ||
.env.local | ||
env/ | ||
env[23]/ | ||
virtual/ | ||
venv/ | ||
.venv/ | ||
.dotrun.json | ||
|
||
# [sass] Files generated by Sass | ||
*.css | ||
|
||
node_modules/ | ||
bower_components/ | ||
*.log | ||
|
||
build/ | ||
dist/ | ||
|
||
*.crt | ||
*.key | ||
*.pem | ||
*.csr | ||
*.pfx | ||
|
||
# tests | ||
/test-results/ | ||
/playwright-report/ | ||
/playwright/.cache/ | ||
|
||
haproxy-local.cfg |
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,11 @@ | ||
{ | ||
"extends": ["stylelint-config-standard-scss", "stylelint-prettier/recommended"], | ||
"plugins": ["stylelint-order", "stylelint-scss"], | ||
"rules": { | ||
"order/properties-alphabetical-order": true, | ||
"at-rule-no-unknown": null, | ||
"scss/at-rule-no-unknown": true, | ||
"selector-class-pattern": null, | ||
"no-invalid-position-at-import-rule": null | ||
} | ||
} |
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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
NPM?=npm | ||
YARN?=yarn | ||
|
||
|
||
build: install | ||
$(NPM) run build --frozen=lockfile | ||
$(YARN) install --frozen=lockfile | ||
$(YARN) build | ||
.PHONY=build | ||
|
||
install: | ||
$(NPM) install | ||
$(YARN) install | ||
.PHONY=install | ||
|
||
test: | ||
$(NPM) ci | ||
$(YARN) ci | ||
.PHONY=test |
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
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,29 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
targets: { | ||
esmodules: true, | ||
}, | ||
}, | ||
], | ||
"@babel/react", | ||
], | ||
env: { | ||
test: { | ||
presets: [ | ||
[ | ||
"@babel/env", | ||
{ | ||
targets: { | ||
node: "current", | ||
}, | ||
}, | ||
], | ||
"jest", | ||
], | ||
plugins: ["transform-es2015-modules-commonjs"], | ||
}, | ||
}, | ||
}; |
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,6 @@ | ||
#! /usr/bin/env bash | ||
set -e | ||
|
||
echo "Listening on http://localhost:8411" | ||
|
||
haproxy -f haproxy.cfg -db |
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,20 @@ | ||
global | ||
daemon | ||
|
||
defaults | ||
mode http | ||
timeout connect 50000 | ||
timeout client 500000 | ||
timeout server 500000 | ||
|
||
frontend iam_frontend | ||
bind 0.0.0.0:8411 | ||
acl is_api path_beg /api/ | ||
use_backend api if is_api | ||
default_backend iam_admin_ui | ||
|
||
backend iam_admin_ui | ||
server yarn_serve 127.0.0.1:3000 | ||
|
||
backend api | ||
server kube_api_url 172.17.0.1:8000 |
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,19 @@ | ||
<!doctype html> | ||
|
||
<html lang="en" dir="ltr"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
|
||
<title>Identity Platform Admin</title> | ||
<link rel="shortcut icon" href="https://assets.ubuntu.com/v1/49a1a858-favicon-32x32.png" type="image/x-icon" /> | ||
|
||
<script>const global = globalThis;</script> | ||
</head> | ||
<body> | ||
|
||
<div id="app"></div> | ||
<script type="module" src="./src/index.tsx"></script> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.