Skip to content

Commit cce61e2

Browse files
committed
add initial webui
1 parent 003a081 commit cce61e2

43 files changed

Lines changed: 6074 additions & 2 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/pages.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Deploy Web UI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
- name: Setup pnpm
24+
uses: pnpm/action-setup@v4
25+
with:
26+
version: 10.33.0
27+
- name: Setup Node
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: 24
31+
cache: pnpm
32+
- name: Install dependencies
33+
run: pnpm install --frozen-lockfile
34+
- name: Build web
35+
run: pnpm --filter web build
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
path: web/dist
40+
deploy:
41+
environment:
42+
name: github-pages
43+
url: ${{ steps.deployment.outputs.page_url }}
44+
runs-on: ubuntu-latest
45+
needs: build
46+
steps:
47+
- name: Deploy to GitHub Pages
48+
id: deployment
49+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,16 @@ srlua.exe
1111
glue.exe
1212
build
1313

14+
# Web tooling
15+
node_modules
16+
web/node_modules
17+
web/dist
18+
web/dist-ssr
19+
web/test-results
20+
web/playwright-report
21+
.vite
22+
1423
# Ignore Local Test Files
1524
test.lua
1625
test.obfuscated.lua
17-
config.lua
26+
config.lua

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,6 @@ Full license text: [Prometheus License](https://github.com/prometheus-lua/Promet
190190

191191
<div align="center">
192192

193-
<img src="https://capsule-render.vercel.app/api?type=waving&height=120&section=footer&color=gradient" />
193+
<img width="100%" src="https://capsule-render.vercel.app/api?type=waving&height=120&section=footer&color=gradient" />
194194

195195
</div>

package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "prometheus-workspace",
3+
"private": true,
4+
"packageManager": "pnpm@10.33.0",
5+
"scripts": {
6+
"web:dev": "pnpm --filter web dev",
7+
"web:build": "pnpm --filter web build",
8+
"web:preview": "pnpm --filter web preview",
9+
"web:test": "pnpm --filter web test"
10+
}
11+
}

0 commit comments

Comments
 (0)