diff --git a/.github/styles/config/vocabularies/TraceMachina/accept.txt b/.github/styles/config/vocabularies/TraceMachina/accept.txt index 30d280a46..706bc95b4 100644 --- a/.github/styles/config/vocabularies/TraceMachina/accept.txt +++ b/.github/styles/config/vocabularies/TraceMachina/accept.txt @@ -67,3 +67,7 @@ Wainer Gert Bruer Eagan +Vue +Vite +VSCode +Vetur diff --git a/flake.nix b/flake.nix index f9f70a972..65b0553e4 100644 --- a/flake.nix +++ b/flake.nix @@ -279,6 +279,8 @@ }; }; + nativelink-ui = pkgs.callPackage ./web/ui/image.nix {inherit buildImage pullImage pkgs;}; + nativelink-worker-init = pkgs.callPackage ./tools/nativelink-worker-init.nix {inherit buildImage self nativelink-image;}; rbe-autogen = pkgs.callPackage ./local-remote-execution/rbe-autogen.nix { @@ -419,6 +421,7 @@ nativelink-worker-init nativelink-x86_64-linux publish-ghcr + nativelink-ui # not working yet ; default = nativelink; diff --git a/tools/pre-commit-hooks.nix b/tools/pre-commit-hooks.nix index e690341ae..86bed69e5 100644 --- a/tools/pre-commit-hooks.nix +++ b/tools/pre-commit-hooks.nix @@ -65,6 +65,7 @@ in { # Bun binary lockfile "web/platform/bun.lockb" + "web/ui/bun.lockb" ]; enable = true; types = ["binary"]; diff --git a/web/ui/.env.example b/web/ui/.env.example new file mode 100644 index 000000000..6a68b0f75 --- /dev/null +++ b/web/ui/.env.example @@ -0,0 +1 @@ +BRIDGE_URL= diff --git a/web/ui/.gitignore b/web/ui/.gitignore new file mode 100644 index 000000000..8ee54e8d3 --- /dev/null +++ b/web/ui/.gitignore @@ -0,0 +1,30 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +.DS_Store +dist +dist-ssr +coverage +*.local + +/cypress/videos/ +/cypress/screenshots/ + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +*.tsbuildinfo diff --git a/web/ui/README.md b/web/ui/README.md new file mode 100644 index 000000000..88f45f12c --- /dev/null +++ b/web/ui/README.md @@ -0,0 +1,38 @@ +# NativeLink Web UI + +This template should help get you started developing with Vue 3 in Vite. + +## Recommended IDE Setup + +[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur). + +## Type Support for `.vue` Imports in TS + +TypeScript can't handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types. + +## Customize configuration + +See [Vite Configuration Reference](https://vite.dev/config/). + +## Project Setup + +```sh +bun install +``` + +### Compile and Hot-Reload for Development + +```sh +bun dev +``` + +### Type-Check, Compile and Minify for Production + +```sh +bun run build +``` + +### Preview the build +```sh +bun preview +``` diff --git a/web/ui/bun.lockb b/web/ui/bun.lockb new file mode 100755 index 000000000..533845207 Binary files /dev/null and b/web/ui/bun.lockb differ diff --git a/web/ui/env.d.ts b/web/ui/env.d.ts new file mode 100644 index 000000000..11f02fe2a --- /dev/null +++ b/web/ui/env.d.ts @@ -0,0 +1 @@ +/// diff --git a/web/ui/image.nix b/web/ui/image.nix new file mode 100644 index 000000000..302e71dc2 --- /dev/null +++ b/web/ui/image.nix @@ -0,0 +1,96 @@ +{ + pkgs, + buildImage, + pullImage, + ... +}: let + # Base image configuration for nginx:mainline-alpine-slim + imageParams = { + imageName = "nginx"; + imageDigest = "sha256:e9293c9bedb0db866e7d2b69e58131db4c2478e6cd216cdd99b134830703983a"; + sha256 = "sha256:63f36d95235a84d401bd3e061ffb0c25f72ca1d7b0ad154e583b7e25479d424f"; + description = "Nginx mainline Alpine slim image for serving Vue3 applications."; + title = "Nginx Alpine Slim for Vue3"; + }; + + # Derivation to build the Vue3 web UI using Bun + webUi = pkgs.stdenv.mkDerivation { + pname = "nativelink-web-ui"; + version = "1.0.0"; # Update as necessary + + src = ./.; # Path to your Vue3 project + + buildInputs = [pkgs.bun]; + + # Ensure Bun is available in the build environment + buildPhase = '' + bun install + bun run build + ''; + + # Install the built files and nginx configuration + installPhase = '' + mkdir -p $out/dist + cp -r dist/* $out/dist/ + + mkdir -p $out/etc/nginx + cat > $out/etc/nginx/nginx.conf < + + + + + + + Nativelink | Dashboard + + + + + + diff --git a/web/ui/package.json b/web/ui/package.json new file mode 100644 index 000000000..671074d47 --- /dev/null +++ b/web/ui/package.json @@ -0,0 +1,31 @@ +{ + "name": "nativelink-dashboard", + "version": "0.0.0", + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "run-p type-check \"build-only {@}\" --", + "preview": "vite preview", + "build-only": "vite build", + "type-check": "vue-tsc --build --force" + }, + "dependencies": { + "pinia": "^2.2.4", + "vue": "^3.5.12", + "vue-router": "^4.4.5" + }, + "devDependencies": { + "@tailwindcss/vite": "^4.0.0-alpha", + "@tsconfig/node20": "^20.1.4", + "@types/node": "^20.17.0", + "@vitejs/plugin-vue": "^5.1.4", + "@vitejs/plugin-vue-jsx": "^4.0.1", + "@vue/tsconfig": "^0.5.1", + "npm-run-all2": "^7.0.1", + "tailwindcss": "^4.0.0-alpha", + "typescript": "~5.6.0", + "vite": "^5.4.10", + "vue-tsc": "^2.1.6" + } +} diff --git a/web/ui/src/App.vue b/web/ui/src/App.vue new file mode 100644 index 000000000..0dac2d4e7 --- /dev/null +++ b/web/ui/src/App.vue @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + diff --git a/web/ui/src/assets/base.css b/web/ui/src/assets/base.css new file mode 100644 index 000000000..8816868a4 --- /dev/null +++ b/web/ui/src/assets/base.css @@ -0,0 +1,86 @@ +/* color palette from */ +:root { + --vt-c-white: #ffffff; + --vt-c-white-soft: #f8f8f8; + --vt-c-white-mute: #f2f2f2; + + --vt-c-black: #181818; + --vt-c-black-soft: #222222; + --vt-c-black-mute: #282828; + + --vt-c-indigo: #2c3e50; + + --vt-c-divider-light-1: rgba(60, 60, 60, 0.29); + --vt-c-divider-light-2: rgba(60, 60, 60, 0.12); + --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65); + --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48); + + --vt-c-text-light-1: var(--vt-c-indigo); + --vt-c-text-light-2: rgba(60, 60, 60, 0.66); + --vt-c-text-dark-1: var(--vt-c-white); + --vt-c-text-dark-2: rgba(235, 235, 235, 0.64); +} + +/* semantic color variables for this project */ +:root { + --color-background: var(--vt-c-white); + --color-background-soft: var(--vt-c-white-soft); + --color-background-mute: var(--vt-c-white-mute); + + --color-border: var(--vt-c-divider-light-2); + --color-border-hover: var(--vt-c-divider-light-1); + + --color-heading: var(--vt-c-text-light-1); + --color-text: var(--vt-c-text-light-1); + + --section-gap: 160px; +} + +@media (prefers-color-scheme: dark) { + :root { + --color-background: var(--vt-c-black); + --color-background-soft: var(--vt-c-black-soft); + --color-background-mute: var(--vt-c-black-mute); + + --color-border: var(--vt-c-divider-dark-2); + --color-border-hover: var(--vt-c-divider-dark-1); + + --color-heading: var(--vt-c-text-dark-1); + --color-text: var(--vt-c-text-dark-2); + } +} + +*, +*::before, +*::after { + box-sizing: border-box; + margin: 0; + font-weight: normal; +} + +body { + min-height: 100vh; + color: var(--color-text); + background: var(--color-background); + transition: + color 0.5s, + background-color 0.5s; + line-height: 1.6; + font-family: + Inter, + -apple-system, + BlinkMacSystemFont, + 'Segoe UI', + Roboto, + Oxygen, + Ubuntu, + Cantarell, + 'Fira Sans', + 'Droid Sans', + 'Helvetica Neue', + sans-serif; + font-size: 15px; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} diff --git a/web/ui/src/assets/logo-dark.svg b/web/ui/src/assets/logo-dark.svg new file mode 100644 index 000000000..6b6fa6294 --- /dev/null +++ b/web/ui/src/assets/logo-dark.svg @@ -0,0 +1,1128 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web/ui/src/assets/logo-light.svg b/web/ui/src/assets/logo-light.svg new file mode 100644 index 000000000..148fcdce8 --- /dev/null +++ b/web/ui/src/assets/logo-light.svg @@ -0,0 +1,1123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web/ui/src/assets/main.css b/web/ui/src/assets/main.css new file mode 100644 index 000000000..c5f992b01 --- /dev/null +++ b/web/ui/src/assets/main.css @@ -0,0 +1,84 @@ +@import './base.css'; + +/* #app { + max-width: 1280px; + margin: 0 auto; + padding: 2rem; + font-weight: normal; +} + +a, +.green { + text-decoration: none; + color: hsla(160, 100%, 37%, 1); + transition: 0.4s; + padding: 3px; +} + +@media (hover: hover) { + a:hover { + background-color: hsla(160, 100%, 37%, 0.2); + } +} + +@media (min-width: 1024px) { + body { + display: flex; + place-items: center; + } + + #app { + display: grid; + grid-template-columns: 1fr 1fr; + padding: 0 2rem; + } +} */ + +/* Custom scrollbar styles */ +.scrollbar::-webkit-scrollbar { + width: 8px; +} +.scrollbar::-webkit-scrollbar-track { + background: var(--tw-color-card); +} +.scrollbar::-webkit-scrollbar-thumb { + background-color: #4b5563; /* Gray-600 */ + border-radius: 4px; +} + +/* Hide scrollbar for no-scrollbar class */ +.no-scrollbar::-webkit-scrollbar { + display: none; +} +.no-scrollbar { + -ms-overflow-style: none; /* IE and Edge */ + scrollbar-width: none; /* Firefox */ +} + +/* Utility for radial gradient background */ +.bg-radial-gradient { + background-image: radial-gradient( + farthest-corner at 42.5% -20%, + rgba(40, 41, 79, 255) 5%, + rgba(11, 12, 17, 255) 65% + ); +} + +/* Visually hidden class for accessibility */ +.sr-only { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; + white-space: nowrap; +} + +/* Link styles */ +.link { + text-decoration: none; + color: inherit; +} diff --git a/web/ui/src/assets/tailwind.css b/web/ui/src/assets/tailwind.css new file mode 100644 index 000000000..f1d8c73cd --- /dev/null +++ b/web/ui/src/assets/tailwind.css @@ -0,0 +1 @@ +@import "tailwindcss"; diff --git a/web/ui/src/components/Footer.vue b/web/ui/src/components/Footer.vue new file mode 100644 index 000000000..e52abe9bd --- /dev/null +++ b/web/ui/src/components/Footer.vue @@ -0,0 +1,48 @@ + + + diff --git a/web/ui/src/components/Notifications.vue b/web/ui/src/components/Notifications.vue new file mode 100644 index 000000000..ada7fa058 --- /dev/null +++ b/web/ui/src/components/Notifications.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/web/ui/src/components/dashboard/BuildStatistics.vue b/web/ui/src/components/dashboard/BuildStatistics.vue new file mode 100644 index 000000000..665011c51 --- /dev/null +++ b/web/ui/src/components/dashboard/BuildStatistics.vue @@ -0,0 +1,18 @@ + + + + + + + + Build Statistics + + + + No Build Events Received Yet + + + + + diff --git a/web/ui/src/components/dashboard/RecentBuilds.vue b/web/ui/src/components/dashboard/RecentBuilds.vue new file mode 100644 index 000000000..626354058 --- /dev/null +++ b/web/ui/src/components/dashboard/RecentBuilds.vue @@ -0,0 +1,69 @@ + + + + + + Recent Builds + + + + No build events + + + + + + + diff --git a/web/ui/src/components/dashboard/RemoteCacheUsage.vue b/web/ui/src/components/dashboard/RemoteCacheUsage.vue new file mode 100644 index 000000000..45bf4109e --- /dev/null +++ b/web/ui/src/components/dashboard/RemoteCacheUsage.vue @@ -0,0 +1,83 @@ + + + + + + + + Remote Cache Usage + + Updates every 60 seconds + + + + + + Ingress: 0 Bytes / ∞ + + + Egress: 0 Bytes / 1 TB + + + + + + + + diff --git a/web/ui/src/components/icons/IconCommunity.vue b/web/ui/src/components/icons/IconCommunity.vue new file mode 100644 index 000000000..2dc8b0552 --- /dev/null +++ b/web/ui/src/components/icons/IconCommunity.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/web/ui/src/components/icons/IconDocumentation.vue b/web/ui/src/components/icons/IconDocumentation.vue new file mode 100644 index 000000000..6d4791cfb --- /dev/null +++ b/web/ui/src/components/icons/IconDocumentation.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/web/ui/src/components/icons/IconEcosystem.vue b/web/ui/src/components/icons/IconEcosystem.vue new file mode 100644 index 000000000..c3a4f078c --- /dev/null +++ b/web/ui/src/components/icons/IconEcosystem.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/web/ui/src/components/icons/IconSupport.vue b/web/ui/src/components/icons/IconSupport.vue new file mode 100644 index 000000000..7452834d3 --- /dev/null +++ b/web/ui/src/components/icons/IconSupport.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/web/ui/src/components/icons/IconTooling.vue b/web/ui/src/components/icons/IconTooling.vue new file mode 100644 index 000000000..660598d7c --- /dev/null +++ b/web/ui/src/components/icons/IconTooling.vue @@ -0,0 +1,19 @@ + + + + + + diff --git a/web/ui/src/main.ts b/web/ui/src/main.ts new file mode 100644 index 000000000..b7aa2974b --- /dev/null +++ b/web/ui/src/main.ts @@ -0,0 +1,15 @@ +import './assets/main.css' +import './assets/tailwind.css' + +import { createApp } from 'vue' +import { createPinia } from 'pinia' + +import App from './App.vue' +import router from './router' + +const app = createApp(App) + +app.use(createPinia()) +app.use(router) + +app.mount('#app') diff --git a/web/ui/src/router/index.ts b/web/ui/src/router/index.ts new file mode 100644 index 000000000..f6d36dbfd --- /dev/null +++ b/web/ui/src/router/index.ts @@ -0,0 +1,30 @@ +import { createRouter, createWebHistory } from 'vue-router' +import DashboardView from '@/views/DashboardView.vue' +import BuildDetailView from '@/views/BuildDetailView.vue' + + +const router = createRouter({ + history: createWebHistory(import.meta.env.BASE_URL), + routes: [ + { + path: '/', + name: 'dashboard', + component: DashboardView + }, + { + path: '/builds', + name: 'builds', + // route level code-splitting + // this generates a separate chunk (About.[hash].js) for this route + // which is lazy-loaded when the route is visited. + component: () => import('@/views/BuildView.vue') + }, + { + path: '/builds/:buildId', + name: 'buildDetail', + component: BuildDetailView, + }, + ] +}) + +export default router diff --git a/web/ui/src/stores/build.ts b/web/ui/src/stores/build.ts new file mode 100644 index 000000000..e1bef4403 --- /dev/null +++ b/web/ui/src/stores/build.ts @@ -0,0 +1,44 @@ +import { defineStore } from 'pinia' +import { ref } from 'vue' + +// Define the structure of a Build +export interface Build { + id: string + name: string + status: 'Success' | 'Failed' | 'In Progress' + startTime: string + endTime: string +} + +// Define the Pinia store +export const useBuildStore = defineStore('build', () => { + // Reactive array to hold build data + const builds = ref([ + { + id: 'build-001', + name: 'Build 001', + status: 'Success', + startTime: '2024-10-25 10:00 AM', + endTime: '2024-10-25 10:30 AM' + }, + { + id: 'build-002', + name: 'Build 002', + status: 'Failed', + startTime: '2024-10-26 11:00 AM', + endTime: '2024-10-26 11:45 AM' + }, + // Add more dummy builds as needed + ]) + + // Optional: Actions to manipulate builds + const addBuild = (build: Build) => { + builds.value.push(build) + } + + const removeBuild = (id: string) => { + builds.value = builds.value.filter(build => build.id !== id) + } + + return { builds, addBuild, removeBuild } +}) diff --git a/web/ui/src/stores/data.ts b/web/ui/src/stores/data.ts new file mode 100644 index 000000000..b59740d61 --- /dev/null +++ b/web/ui/src/stores/data.ts @@ -0,0 +1,9 @@ +import { ref, computed } from 'vue' +import { defineStore } from 'pinia' + +export const useDataStore = defineStore('data', () => { + const rawData = ref(0) + //TODO: Add raw data store, which retrieves data from httpStore and webSocketStore and push them in to buildStore + + return { rawData } +}) diff --git a/web/ui/src/stores/http.ts b/web/ui/src/stores/http.ts new file mode 100644 index 000000000..33feab908 --- /dev/null +++ b/web/ui/src/stores/http.ts @@ -0,0 +1,7 @@ +import { defineStore } from 'pinia' +import { ref } from 'vue' + +// Define the Pinia store +export const useHTTPStore = defineStore('http', () => { + //TODO: Implement the HTTP Store +}) diff --git a/web/ui/src/stores/ws.ts b/web/ui/src/stores/ws.ts new file mode 100644 index 000000000..4cb036b0f --- /dev/null +++ b/web/ui/src/stores/ws.ts @@ -0,0 +1,27 @@ +import { defineStore } from 'pinia' +import { ref } from 'vue' + +// Define the Pinia store +export const useWebSocketStore = defineStore('ws', () => { + const connect = () => { + const webSocket = new WebSocket('ws://localhost:888'); + // Listen for open events + webSocket.addEventListener("open", (event) => { + console.log("Connected to WebSocket:", event); + }); + // Listen for message events + webSocket.addEventListener("message", (event) => { + console.log("Message from server ", event.data); + // TODO: Send the data to the data store + }); + // Listen for close event + webSocket.addEventListener("close", (event) => { + console.log("Closed: ", event); + }); + // Listen for errors events + webSocket.addEventListener("error", (err) => { + console.log("Error: ", err); + }); + + }; +}) diff --git a/web/ui/src/views/AsideView.vue b/web/ui/src/views/AsideView.vue new file mode 100644 index 000000000..601f915e3 --- /dev/null +++ b/web/ui/src/views/AsideView.vue @@ -0,0 +1,113 @@ + + + + + diff --git a/web/ui/src/views/BuildDetailView.vue b/web/ui/src/views/BuildDetailView.vue new file mode 100644 index 000000000..8235ad56f --- /dev/null +++ b/web/ui/src/views/BuildDetailView.vue @@ -0,0 +1,53 @@ + + + + Build Details for: {{ build?.name || 'Unknown' }} + + + + Status: + + {{ build?.status || 'N/A' }} + + + + Start Time: {{ build?.startTime }} + + + End Time: {{ build?.endTime }} + + + + ← Back to Builds + + + + + diff --git a/web/ui/src/views/BuildView.vue b/web/ui/src/views/BuildView.vue new file mode 100644 index 000000000..6f7e65d9b --- /dev/null +++ b/web/ui/src/views/BuildView.vue @@ -0,0 +1,44 @@ + + + + + + + + Recent Builds + + + + + + {{ build.name }} + + {{ build.status }} + + + + No build events + + + + + diff --git a/web/ui/src/views/DashboardView.vue b/web/ui/src/views/DashboardView.vue new file mode 100644 index 000000000..e25f93d34 --- /dev/null +++ b/web/ui/src/views/DashboardView.vue @@ -0,0 +1,20 @@ + + + + + + Dashboard + + + + + + + + + + diff --git a/web/ui/tsconfig.app.json b/web/ui/tsconfig.app.json new file mode 100644 index 000000000..e14c754d3 --- /dev/null +++ b/web/ui/tsconfig.app.json @@ -0,0 +1,14 @@ +{ + "extends": "@vue/tsconfig/tsconfig.dom.json", + "include": ["env.d.ts", "src/**/*", "src/**/*.vue"], + "exclude": ["src/**/__tests__/*"], + "compilerOptions": { + "composite": true, + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", + + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + } + } +} diff --git a/web/ui/tsconfig.json b/web/ui/tsconfig.json new file mode 100644 index 000000000..66b5e5703 --- /dev/null +++ b/web/ui/tsconfig.json @@ -0,0 +1,11 @@ +{ + "files": [], + "references": [ + { + "path": "./tsconfig.node.json" + }, + { + "path": "./tsconfig.app.json" + } + ] +} diff --git a/web/ui/tsconfig.node.json b/web/ui/tsconfig.node.json new file mode 100644 index 000000000..f09406303 --- /dev/null +++ b/web/ui/tsconfig.node.json @@ -0,0 +1,19 @@ +{ + "extends": "@tsconfig/node20/tsconfig.json", + "include": [ + "vite.config.*", + "vitest.config.*", + "cypress.config.*", + "nightwatch.conf.*", + "playwright.config.*" + ], + "compilerOptions": { + "composite": true, + "noEmit": true, + "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", + + "module": "ESNext", + "moduleResolution": "Bundler", + "types": ["node"] + } +} diff --git a/web/ui/vite.config.ts b/web/ui/vite.config.ts new file mode 100644 index 000000000..28d6c804f --- /dev/null +++ b/web/ui/vite.config.ts @@ -0,0 +1,22 @@ +import { fileURLToPath, URL } from 'node:url' + +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' +import vueJsx from '@vitejs/plugin-vue-jsx' + +import tailwindcss from "@tailwindcss/vite"; + + +// https://vite.dev/config/ +export default defineConfig({ + plugins: [ + vue(), + vueJsx(), + tailwindcss() + ], + resolve: { + alias: { + '@': fileURLToPath(new URL('./src', import.meta.url)) + } + } +})
No build events
+ Updates every 60 seconds +
+ Status: + + {{ build?.status || 'N/A' }} + +
+ Start Time: {{ build?.startTime }} +
+ End Time: {{ build?.endTime }} +
+ {{ build.status }} +