Skip to content

Commit bca5d05

Browse files
committed
feat: add config-checker page
1 parent 83d3505 commit bca5d05

File tree

11 files changed

+19158
-1
lines changed

11 files changed

+19158
-1
lines changed

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"migrate-rollback-prod": "npm run migrate-rollback",
3030
"migrate-rollback-dev": "npm run build && npm run migrate-rollback",
3131
"validate-active-configs": "node --enable-source-maps dist/validateActiveConfigs.js > ../config-errors.txt",
32-
"export-config-json-schema": "node --enable-source-maps dist/exportSchemas.js",
32+
"export-config-json-schema": "node --enable-source-maps dist/exportSchemas.js ../config-checker/public/config-schema.json",
3333
"test": "npm run build && npm run run-tests",
3434
"run-tests": "ava",
3535
"test-watch": "tsc-watch --build --onSuccess \"npx ava\""

config-checker/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

config-checker/index.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<link rel="stylesheet" href="/src/style.css">
7+
<title>Zeppelin config checker</title>
8+
</head>
9+
<body>
10+
<div class="wrap">
11+
<div class="section" style="flex: 1 1 auto">
12+
<div class="title">
13+
<h1>Config</h1>
14+
</div>
15+
<div class="content">
16+
<div class="editor-wrap">
17+
<div id="editor"></div>
18+
</div>
19+
</div>
20+
</div>
21+
22+
<div class="section" style="flex: 0 0 max(300px, 40vh)">
23+
<div class="title">
24+
<h1>Errors</h1>
25+
</div>
26+
<div class="content">
27+
<div class="errors-wrap">
28+
<div id="errors"></div>
29+
</div>
30+
</div>
31+
</div>
32+
</div>
33+
34+
<script type="module" src="/src/main.ts"></script>
35+
</body>
36+
</html>

0 commit comments

Comments
 (0)