staging misc unstaged files, updated gitignore

This commit is contained in:
Maya
2025-09-28 12:43:03 -04:00
parent 324f3569e8
commit 010de59a7c
8 changed files with 17 additions and 80 deletions
+1 -10
View File
@@ -1,23 +1,14 @@
node_modules
# Output
.output
.vercel
.netlify
.wrangler
/.svelte-kit
/.vscode
/build
# OS
.DS_Store
Thumbs.db
# Env
.env
.env.*
!.env.example
!.env.test
# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
+4 -4
View File
@@ -1,18 +1,18 @@
FROM node:20-slim as builder
FROM node:20-slim AS builder
WORKDIR /app
# Install dependencies first (better caching)
COPY package*.json ./
RUN npm ci --only=production --frozen-lockfile
RUN npm ci --frozen-lockfile
# Copy source code
COPY . .
# Build for production (optimized, minified)
RUN npm run build
RUN npx svelte-kit sync && npm run build
# Production stage - minimal runtime
FROM node:20-alpine as runtime
FROM node:20-alpine AS runtime
WORKDIR /app
# Copy only the built artifacts
+2 -2
View File
@@ -1,5 +1,5 @@
# Development Dockerfile for netvisor-ui
FROM node:20-slim as base
FROM node:20-slim AS base
WORKDIR /app
# Install dependencies first (better caching)
@@ -10,7 +10,7 @@ RUN npm ci --only=development
COPY . .
# Build in development mode (faster builds, source maps)
RUN npm run build
RUN npx svelte-kit sync && npm run build
# Keep container running to share volume
CMD ["tail", "-f", "/dev/null"]
+3 -58
View File
@@ -18,7 +18,8 @@
"svelte-forms": "^2.3.1",
"svelte-table": "^0.6.5",
"tailwindcss": "^3.4.17",
"uuid": "^13.0.0"
"uuid": "^13.0.0",
"vite": "^7.1.3"
},
"devDependencies": {
"@eslint/compat": "^1.2.5",
@@ -38,8 +39,7 @@
"svelte": "^5.0.0",
"svelte-check": "^4.0.0",
"typescript": "^5.0.0",
"typescript-eslint": "^8.20.0",
"vite": "^7.1.3"
"typescript-eslint": "^8.20.0"
}
},
"node_modules/@alloc/quick-lru": {
@@ -61,7 +61,6 @@
"cpu": [
"ppc64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -78,7 +77,6 @@
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -95,7 +93,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -112,7 +109,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -129,7 +125,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -146,7 +141,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -163,7 +157,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -180,7 +173,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -197,7 +189,6 @@
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -214,7 +205,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -231,7 +221,6 @@
"cpu": [
"ia32"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -248,7 +237,6 @@
"cpu": [
"loong64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -265,7 +253,6 @@
"cpu": [
"mips64el"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -282,7 +269,6 @@
"cpu": [
"ppc64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -299,7 +285,6 @@
"cpu": [
"riscv64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -316,7 +301,6 @@
"cpu": [
"s390x"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -333,7 +317,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -350,7 +333,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -367,7 +349,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -384,7 +365,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -401,7 +381,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -418,7 +397,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -435,7 +413,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -452,7 +429,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -469,7 +445,6 @@
"cpu": [
"ia32"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -486,7 +461,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -857,7 +831,6 @@
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -871,7 +844,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -885,7 +857,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -899,7 +870,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -913,7 +883,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -927,7 +896,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -941,7 +909,6 @@
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -955,7 +922,6 @@
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -969,7 +935,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -983,7 +948,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -997,7 +961,6 @@
"cpu": [
"loong64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1011,7 +974,6 @@
"cpu": [
"ppc64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1025,7 +987,6 @@
"cpu": [
"riscv64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1039,7 +1000,6 @@
"cpu": [
"riscv64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1053,7 +1013,6 @@
"cpu": [
"s390x"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1067,7 +1026,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1081,7 +1039,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1095,7 +1052,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1109,7 +1065,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1123,7 +1078,6 @@
"cpu": [
"ia32"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1137,7 +1091,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1151,7 +1104,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2252,7 +2204,6 @@
"version": "0.25.10",
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.10.tgz",
"integrity": "sha512-9RiGKvCwaqxO2owP61uQ4BgNborAQskMR6QusfWzQqv7AZOg5oGehdY2pRJMTKuwxd1IDBP4rSbI5lHzU7SMsQ==",
"dev": true,
"hasInstallScript": true,
"license": "MIT",
"bin": {
@@ -2609,7 +2560,6 @@
"version": "6.5.0",
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
"integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=12.0.0"
@@ -3437,9 +3387,7 @@
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
"dev": true,
"license": "MIT",
"peer": true,
"engines": {
"node": ">=12"
},
@@ -3911,7 +3859,6 @@
"version": "4.52.3",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.52.3.tgz",
"integrity": "sha512-RIDh866U8agLgiIcdpB+COKnlCreHJLfIhWC3LVflku5YHfpnsIKigRZeFfMfCc4dVcqNVfQQ5gO/afOck064A==",
"dev": true,
"license": "MIT",
"dependencies": {
"@types/estree": "1.0.8"
@@ -4495,7 +4442,6 @@
"version": "0.2.15",
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",
"integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"fdir": "^6.5.0",
@@ -4665,7 +4611,6 @@
"version": "7.1.7",
"resolved": "https://registry.npmjs.org/vite/-/vite-7.1.7.tgz",
"integrity": "sha512-VbA8ScMvAISJNJVbRDTJdCwqQoAareR/wutevKanhR2/1EkoXVZVkkORaYm/tNVCjP/UDTKtcw3bAkwOUdedmA==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
+3 -3
View File
@@ -31,8 +31,7 @@
"svelte": "^5.0.0",
"svelte-check": "^4.0.0",
"typescript": "^5.0.0",
"typescript-eslint": "^8.20.0",
"vite": "^7.1.3"
"typescript-eslint": "^8.20.0"
},
"dependencies": {
"@tailwindcss/forms": "^0.5.10",
@@ -45,6 +44,7 @@
"svelte-forms": "^2.3.1",
"svelte-table": "^0.6.5",
"tailwindcss": "^3.4.17",
"uuid": "^13.0.0"
"uuid": "^13.0.0",
"vite": "^7.1.3"
}
}
@@ -25,4 +25,5 @@
width={size}
height={size}
class={className}
onerror={handleError}
/>
@@ -14,10 +14,10 @@
<div class="flex items-center gap-3 flex-1 min-w-0">
<!-- Icon -->
{#if icon}
<div class="w-6 h-6 rounded bg-gray-600 flex items-center justify-center flex-shrink-0">
<div class="w-7 h-7 flex items-center justify-center flex-shrink-0">
<svelte:component
this={icon}
class="w-3 h-3 {displayComponent.getIconColor?.(item) || 'text-gray-300'}"
class="w-5 h-5 {displayComponent.getIconColor?.(item) || 'text-gray-300'}"
/>
</div>
{/if}
@@ -4,7 +4,7 @@
getId: (serviceType: TypeMetadata) => serviceType.id,
getLabel: (serviceType: TypeMetadata) => serviceType.name,
getDescription: (serviceType: TypeMetadata) => serviceType.description,
getIcon: (serviceType: TypeMetadata) => createIconComponent(serviceType.icon),
getIcon: (serviceType: TypeMetadata) => serviceDefinitions.getIconComponent(serviceType.id),
getIconColor: (serviceType: TypeMetadata) => serviceDefinitions.getColorHelper(serviceType.id).icon,
getTags: (serviceType: TypeMetadata) => [{
label: serviceType.category,