From 660b4c6f51919e84d1c17fe95ebfdbfdd02f44ca Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Thu, 16 Nov 2023 19:24:05 -0800 Subject: [PATCH] chore: updates to vite v5 (#2505) --- .prettierrc.js => .prettierrc.cjs | 0 Dockerfile | 2 +- internal/web/index.go | 6 +- main.go | 6 +- package.json | 7 +- pnpm-lock.yaml | 415 ++++++++++++++++++++++-- postcss.config.js => postcss.config.cts | 0 public/index.html | 4 +- 8 files changed, 404 insertions(+), 36 deletions(-) rename .prettierrc.js => .prettierrc.cjs (100%) rename postcss.config.js => postcss.config.cts (100%) diff --git a/.prettierrc.js b/.prettierrc.cjs similarity index 100% rename from .prettierrc.js rename to .prettierrc.cjs diff --git a/Dockerfile b/Dockerfile index 2e674fe8..dc4cb87e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ COPY package.json ./ RUN pnpm install --offline --ignore-scripts --no-optional # Copy assets and translations to build -COPY .* *.config.ts *.config.js ./ +COPY .* *.config.ts *.config.js *.config.cts ./ COPY assets ./assets COPY locales ./locales COPY public ./public diff --git a/internal/web/index.go b/internal/web/index.go index 47066a2b..bb5144fc 100644 --- a/internal/web/index.go +++ b/internal/web/index.go @@ -125,19 +125,19 @@ func (h *handler) readManifest() map[string]interface{} { if h.config.Dev { return map[string]interface{}{} } else { - file, err := h.content.Open("manifest.json") + file, err := h.content.Open(".vite/manifest.json") if err != nil { // this should only happen during test. In production, the file is embedded in the binary and checked in main.go return map[string]interface{}{} } bytes, err := io.ReadAll(file) if err != nil { - log.Fatalf("Could not read manifest.json: %v", err) + log.Fatalf("Could not read .vite/manifest.json: %v", err) } var manifest map[string]interface{} err = json.Unmarshal(bytes, &manifest) if err != nil { - log.Fatalf("Could not parse manifest.json: %v", err) + log.Fatalf("Could not parse .vite/manifest.json: %v", err) } return manifest } diff --git a/main.go b/main.go index e8ccc0df..3399be45 100644 --- a/main.go +++ b/main.go @@ -62,7 +62,7 @@ func (args) Version() string { return version } -//go:embed dist +//go:embed all:dist var content embed.FS func main() { @@ -229,8 +229,8 @@ func createServer(args args, clients map[string]web.DockerClient) *http.Server { } if !dev { - if _, err := assets.Open("manifest.json"); err != nil { - log.Fatal("manifest.json not found") + if _, err := assets.Open(".vite/manifest.json"); err != nil { + log.Fatal(".vite/manifest.json not found") } if _, err := assets.Open("index.html"); err != nil { log.Fatal("index.html not found") diff --git a/package.json b/package.json index 9c271e84..ebf379b7 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,13 @@ { "name": "dozzle", "version": "5.4.2", - "description": "Realtime log viewer for docker containers. ", + "description": "Realtime log viewer for docker containers.", "homepage": "https://github.com/amir20/dozzle#readme", "bugs": { "url": "https://github.com/amir20/dozzle/issues" }, "packageManager": "pnpm@8.10.5", + "type": "module", "repository": { "type": "git", "url": "git+https://github.com/amir20/dozzle.git" @@ -62,7 +63,7 @@ "unplugin-icons": "^0.17.4", "unplugin-vue-components": "^0.25.2", "unplugin-vue-macros": "^2.6.2", - "vite": "4.5.0", + "vite": "5.0.0", "vite-plugin-pages": "^0.31.0", "vite-plugin-vue-layouts": "^0.8.0", "vue": "^3.3.8", @@ -82,7 +83,7 @@ "@types/lodash.debounce": "^4.0.9", "@types/node": "^20.9.0", "@types/semver": "^7.5.5", - "@vitejs/plugin-vue": "4.4.1", + "@vitejs/plugin-vue": "4.5.0", "@vue/compiler-sfc": "^3.3.8", "@vue/test-utils": "^2.4.2", "bumpp": "^9.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e03d04bf..8dae28bf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -109,16 +109,16 @@ dependencies: version: 0.25.2(vue@3.3.8) unplugin-vue-macros: specifier: ^2.6.2 - version: 2.6.2(@vueuse/core@10.6.1)(typescript@5.2.2)(vite@4.5.0)(vue@3.3.8) + version: 2.6.2(@vueuse/core@10.6.1)(typescript@5.2.2)(vite@5.0.0)(vue@3.3.8) vite: - specifier: 4.5.0 - version: 4.5.0(@types/node@20.9.0) + specifier: 5.0.0 + version: 5.0.0(@types/node@20.9.0) vite-plugin-pages: specifier: ^0.31.0 - version: 0.31.0(@vue/compiler-sfc@3.3.8)(vite@4.5.0) + version: 0.31.0(@vue/compiler-sfc@3.3.8)(vite@5.0.0) vite-plugin-vue-layouts: specifier: ^0.8.0 - version: 0.8.0(vite@4.5.0)(vue-router@4.2.5)(vue@3.3.8) + version: 0.8.0(vite@5.0.0)(vue-router@4.2.5)(vue@3.3.8) vue: specifier: ^3.3.8 version: 3.3.8(typescript@5.2.2) @@ -167,8 +167,8 @@ devDependencies: specifier: ^7.5.5 version: 7.5.5 '@vitejs/plugin-vue': - specifier: 4.4.1 - version: 4.4.1(vite@4.5.0)(vue@3.3.8) + specifier: 4.5.0 + version: 4.5.0(vite@5.0.0)(vue@3.3.8) '@vue/compiler-sfc': specifier: ^3.3.8 version: 3.3.8 @@ -461,6 +461,15 @@ packages: cpu: [arm64] os: [android] requiresBuild: true + dev: true + optional: true + + /@esbuild/android-arm64@0.19.5: + resolution: {integrity: sha512-5d1OkoJxnYQfmC+Zd8NBFjkhyCNYwM4n9ODrycTFY6Jk1IGiZ+tjVJDDSwDt77nK+tfpGP4T50iMtVi4dEGzhQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true optional: true /@esbuild/android-arm@0.18.20: @@ -469,6 +478,15 @@ packages: cpu: [arm] os: [android] requiresBuild: true + dev: true + optional: true + + /@esbuild/android-arm@0.19.5: + resolution: {integrity: sha512-bhvbzWFF3CwMs5tbjf3ObfGqbl/17ict2/uwOSfr3wmxDE6VdS2GqY/FuzIPe0q0bdhj65zQsvqfArI9MY6+AA==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + requiresBuild: true optional: true /@esbuild/android-x64@0.18.20: @@ -477,6 +495,15 @@ packages: cpu: [x64] os: [android] requiresBuild: true + dev: true + optional: true + + /@esbuild/android-x64@0.19.5: + resolution: {integrity: sha512-9t+28jHGL7uBdkBjL90QFxe7DVA+KGqWlHCF8ChTKyaKO//VLuoBricQCgwhOjA1/qOczsw843Fy4cbs4H3DVA==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true optional: true /@esbuild/darwin-arm64@0.18.20: @@ -485,6 +512,15 @@ packages: cpu: [arm64] os: [darwin] requiresBuild: true + dev: true + optional: true + + /@esbuild/darwin-arm64@0.19.5: + resolution: {integrity: sha512-mvXGcKqqIqyKoxq26qEDPHJuBYUA5KizJncKOAf9eJQez+L9O+KfvNFu6nl7SCZ/gFb2QPaRqqmG0doSWlgkqw==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true optional: true /@esbuild/darwin-x64@0.18.20: @@ -493,6 +529,15 @@ packages: cpu: [x64] os: [darwin] requiresBuild: true + dev: true + optional: true + + /@esbuild/darwin-x64@0.19.5: + resolution: {integrity: sha512-Ly8cn6fGLNet19s0X4unjcniX24I0RqjPv+kurpXabZYSXGM4Pwpmf85WHJN3lAgB8GSth7s5A0r856S+4DyiA==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true optional: true /@esbuild/freebsd-arm64@0.18.20: @@ -501,6 +546,15 @@ packages: cpu: [arm64] os: [freebsd] requiresBuild: true + dev: true + optional: true + + /@esbuild/freebsd-arm64@0.19.5: + resolution: {integrity: sha512-GGDNnPWTmWE+DMchq1W8Sd0mUkL+APvJg3b11klSGUDvRXh70JqLAO56tubmq1s2cgpVCSKYywEiKBfju8JztQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true optional: true /@esbuild/freebsd-x64@0.18.20: @@ -509,6 +563,15 @@ packages: cpu: [x64] os: [freebsd] requiresBuild: true + dev: true + optional: true + + /@esbuild/freebsd-x64@0.19.5: + resolution: {integrity: sha512-1CCwDHnSSoA0HNwdfoNY0jLfJpd7ygaLAp5EHFos3VWJCRX9DMwWODf96s9TSse39Br7oOTLryRVmBoFwXbuuQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true optional: true /@esbuild/linux-arm64@0.18.20: @@ -517,6 +580,15 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-arm64@0.19.5: + resolution: {integrity: sha512-o3vYippBmSrjjQUCEEiTZ2l+4yC0pVJD/Dl57WfPwwlvFkrxoSO7rmBZFii6kQB3Wrn/6GwJUPLU5t52eq2meA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true optional: true /@esbuild/linux-arm@0.18.20: @@ -525,6 +597,15 @@ packages: cpu: [arm] os: [linux] requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-arm@0.19.5: + resolution: {integrity: sha512-lrWXLY/vJBzCPC51QN0HM71uWgIEpGSjSZZADQhq7DKhPcI6NH1IdzjfHkDQws2oNpJKpR13kv7/pFHBbDQDwQ==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true optional: true /@esbuild/linux-ia32@0.18.20: @@ -533,6 +614,15 @@ packages: cpu: [ia32] os: [linux] requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-ia32@0.19.5: + resolution: {integrity: sha512-MkjHXS03AXAkNp1KKkhSKPOCYztRtK+KXDNkBa6P78F8Bw0ynknCSClO/ztGszILZtyO/lVKpa7MolbBZ6oJtQ==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true optional: true /@esbuild/linux-loong64@0.18.20: @@ -541,6 +631,15 @@ packages: cpu: [loong64] os: [linux] requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-loong64@0.19.5: + resolution: {integrity: sha512-42GwZMm5oYOD/JHqHska3Jg0r+XFb/fdZRX+WjADm3nLWLcIsN27YKtqxzQmGNJgu0AyXg4HtcSK9HuOk3v1Dw==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + requiresBuild: true optional: true /@esbuild/linux-mips64el@0.18.20: @@ -549,6 +648,15 @@ packages: cpu: [mips64el] os: [linux] requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-mips64el@0.19.5: + resolution: {integrity: sha512-kcjndCSMitUuPJobWCnwQ9lLjiLZUR3QLQmlgaBfMX23UEa7ZOrtufnRds+6WZtIS9HdTXqND4yH8NLoVVIkcg==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true optional: true /@esbuild/linux-ppc64@0.18.20: @@ -557,6 +665,15 @@ packages: cpu: [ppc64] os: [linux] requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-ppc64@0.19.5: + resolution: {integrity: sha512-yJAxJfHVm0ZbsiljbtFFP1BQKLc8kUF6+17tjQ78QjqjAQDnhULWiTA6u0FCDmYT1oOKS9PzZ2z0aBI+Mcyj7Q==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true optional: true /@esbuild/linux-riscv64@0.18.20: @@ -565,6 +682,15 @@ packages: cpu: [riscv64] os: [linux] requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-riscv64@0.19.5: + resolution: {integrity: sha512-5u8cIR/t3gaD6ad3wNt1MNRstAZO+aNyBxu2We8X31bA8XUNyamTVQwLDA1SLoPCUehNCymhBhK3Qim1433Zag==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true optional: true /@esbuild/linux-s390x@0.18.20: @@ -573,6 +699,15 @@ packages: cpu: [s390x] os: [linux] requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-s390x@0.19.5: + resolution: {integrity: sha512-Z6JrMyEw/EmZBD/OFEFpb+gao9xJ59ATsoTNlj39jVBbXqoZm4Xntu6wVmGPB/OATi1uk/DB+yeDPv2E8PqZGw==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true optional: true /@esbuild/linux-x64@0.18.20: @@ -581,6 +716,15 @@ packages: cpu: [x64] os: [linux] requiresBuild: true + dev: true + optional: true + + /@esbuild/linux-x64@0.19.5: + resolution: {integrity: sha512-psagl+2RlK1z8zWZOmVdImisMtrUxvwereIdyJTmtmHahJTKb64pAcqoPlx6CewPdvGvUKe2Jw+0Z/0qhSbG1A==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true optional: true /@esbuild/netbsd-x64@0.18.20: @@ -589,6 +733,15 @@ packages: cpu: [x64] os: [netbsd] requiresBuild: true + dev: true + optional: true + + /@esbuild/netbsd-x64@0.19.5: + resolution: {integrity: sha512-kL2l+xScnAy/E/3119OggX8SrWyBEcqAh8aOY1gr4gPvw76la2GlD4Ymf832UCVbmuWeTf2adkZDK+h0Z/fB4g==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true optional: true /@esbuild/openbsd-x64@0.18.20: @@ -597,6 +750,15 @@ packages: cpu: [x64] os: [openbsd] requiresBuild: true + dev: true + optional: true + + /@esbuild/openbsd-x64@0.19.5: + resolution: {integrity: sha512-sPOfhtzFufQfTBgRnE1DIJjzsXukKSvZxloZbkJDG383q0awVAq600pc1nfqBcl0ice/WN9p4qLc39WhBShRTA==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true optional: true /@esbuild/sunos-x64@0.18.20: @@ -605,6 +767,15 @@ packages: cpu: [x64] os: [sunos] requiresBuild: true + dev: true + optional: true + + /@esbuild/sunos-x64@0.19.5: + resolution: {integrity: sha512-dGZkBXaafuKLpDSjKcB0ax0FL36YXCvJNnztjKV+6CO82tTYVDSH2lifitJ29jxRMoUhgkg9a+VA/B03WK5lcg==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true optional: true /@esbuild/win32-arm64@0.18.20: @@ -613,6 +784,15 @@ packages: cpu: [arm64] os: [win32] requiresBuild: true + dev: true + optional: true + + /@esbuild/win32-arm64@0.19.5: + resolution: {integrity: sha512-dWVjD9y03ilhdRQ6Xig1NWNgfLtf2o/STKTS+eZuF90fI2BhbwD6WlaiCGKptlqXlURVB5AUOxUj09LuwKGDTg==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true optional: true /@esbuild/win32-ia32@0.18.20: @@ -621,6 +801,15 @@ packages: cpu: [ia32] os: [win32] requiresBuild: true + dev: true + optional: true + + /@esbuild/win32-ia32@0.19.5: + resolution: {integrity: sha512-4liggWIA4oDgUxqpZwrDhmEfAH4d0iljanDOK7AnVU89T6CzHon/ony8C5LeOdfgx60x5cnQJFZwEydVlYx4iw==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true optional: true /@esbuild/win32-x64@0.18.20: @@ -629,6 +818,15 @@ packages: cpu: [x64] os: [win32] requiresBuild: true + dev: true + optional: true + + /@esbuild/win32-x64@0.19.5: + resolution: {integrity: sha512-czTrygUsB/jlM8qEW5MD8bgYU2Xg14lo6kBDXW6HdxKjh8M5PzETGiSHaz9MtbXBYDloHNUAUW2tMiKW4KM9Mw==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true optional: true /@iconify-json/carbon@1.1.21: @@ -897,6 +1095,90 @@ packages: rollup: 3.29.4 dev: false + /@rollup/rollup-android-arm-eabi@4.4.1: + resolution: {integrity: sha512-Ss4suS/sd+6xLRu+MLCkED2mUrAyqHmmvZB+zpzZ9Znn9S8wCkTQCJaQ8P8aHofnvG5L16u9MVnJjCqioPErwQ==} + cpu: [arm] + os: [android] + requiresBuild: true + optional: true + + /@rollup/rollup-android-arm64@4.4.1: + resolution: {integrity: sha512-sRSkGTvGsARwWd7TzC8LKRf8FiPn7257vd/edzmvG4RIr9x68KBN0/Ek48CkuUJ5Pj/Dp9vKWv6PEupjKWjTYA==} + cpu: [arm64] + os: [android] + requiresBuild: true + optional: true + + /@rollup/rollup-darwin-arm64@4.4.1: + resolution: {integrity: sha512-nz0AiGrrXyaWpsmBXUGOBiRDU0wyfSXbFuF98pPvIO8O6auQsPG6riWsfQqmCCC5FNd8zKQ4JhgugRNAkBJ8mQ==} + cpu: [arm64] + os: [darwin] + requiresBuild: true + optional: true + + /@rollup/rollup-darwin-x64@4.4.1: + resolution: {integrity: sha512-Ogqvf4/Ve/faMaiPRvzsJEqajbqs00LO+8vtrPBVvLgdw4wBg6ZDXdkDAZO+4MLnrc8mhGV6VJAzYScZdPLtJg==} + cpu: [x64] + os: [darwin] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-arm-gnueabihf@4.4.1: + resolution: {integrity: sha512-9zc2tqlr6HfO+hx9+wktUlWTRdje7Ub15iJqKcqg5uJZ+iKqmd2CMxlgPpXi7+bU7bjfDIuvCvnGk7wewFEhCg==} + cpu: [arm] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-arm64-gnu@4.4.1: + resolution: {integrity: sha512-phLb1fN3rq2o1j1v+nKxXUTSJnAhzhU0hLrl7Qzb0fLpwkGMHDem+o6d+ZI8+/BlTXfMU4kVWGvy6g9k/B8L6Q==} + cpu: [arm64] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-arm64-musl@4.4.1: + resolution: {integrity: sha512-M2sDtw4tf57VPSjbTAN/lz1doWUqO2CbQuX3L9K6GWIR5uw9j+ROKCvvUNBY8WUbMxwaoc8mH9HmmBKsLht7+w==} + cpu: [arm64] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-x64-gnu@4.4.1: + resolution: {integrity: sha512-mHIlRLX+hx+30cD6c4BaBOsSqdnCE4ok7/KDvjHYAHoSuveoMMxIisZFvcLhUnyZcPBXDGZTuBoalcuh43UfQQ==} + cpu: [x64] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-linux-x64-musl@4.4.1: + resolution: {integrity: sha512-tB+RZuDi3zxFx7vDrjTNGVLu2KNyzYv+UY8jz7e4TMEoAj7iEt8Qk6xVu6mo3pgjnsHj6jnq3uuRsHp97DLwOA==} + cpu: [x64] + os: [linux] + requiresBuild: true + optional: true + + /@rollup/rollup-win32-arm64-msvc@4.4.1: + resolution: {integrity: sha512-Hdn39PzOQowK/HZzYpCuZdJC91PE6EaGbTe2VCA9oq2u18evkisQfws0Smh9QQGNNRa/T7MOuGNQoLeXhhE3PQ==} + cpu: [arm64] + os: [win32] + requiresBuild: true + optional: true + + /@rollup/rollup-win32-ia32-msvc@4.4.1: + resolution: {integrity: sha512-tLpKb1Elm9fM8c5w3nl4N1eLTP4bCqTYw9tqUBxX8/hsxqHO3dxc2qPbZ9PNkdK4tg4iLEYn0pOUnVByRd2CbA==} + cpu: [ia32] + os: [win32] + requiresBuild: true + optional: true + + /@rollup/rollup-win32-x64-msvc@4.4.1: + resolution: {integrity: sha512-eAhItDX9yQtZVM3yvXS/VR3qPqcnXvnLyx1pLXl4JzyNMBNO3KC986t/iAg2zcMzpAp9JSvxB5VZGnBiNoA98w==} + cpu: [x64] + os: [win32] + requiresBuild: true + optional: true + /@sinclair/typebox@0.27.8: resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} dev: true @@ -1044,14 +1326,14 @@ packages: vue: 3.3.8(typescript@5.2.2) dev: true - /@vitejs/plugin-vue@4.4.1(vite@4.5.0)(vue@3.3.8): - resolution: {integrity: sha512-HCQG8VDFDM7YDAdcj5QI5DvUi+r6xvo9LgvYdk7LSkUNwdpempdB5horkMSZsbdey9Ywsf5aaU8kEPw9M5kREA==} + /@vitejs/plugin-vue@4.5.0(vite@5.0.0)(vue@3.3.8): + resolution: {integrity: sha512-a2WSpP8X8HTEww/U00bU4mX1QpLINNuz/2KMNpLsdu3BzOpak3AGI1CJYBTXcc4SPhaD0eNRUp7IyQK405L5dQ==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: - vite: ^4.0.0 + vite: ^4.0.0 || ^5.0.0 vue: ^3.2.25 dependencies: - vite: 4.5.0(@types/node@20.9.0) + vite: 5.0.0(@types/node@20.9.0) vue: 3.3.8(typescript@5.2.2) dev: true @@ -1275,7 +1557,7 @@ packages: - rollup dev: false - /@vue-macros/devtools@0.1.4(typescript@5.2.2)(vite@4.5.0): + /@vue-macros/devtools@0.1.4(typescript@5.2.2)(vite@5.0.0): resolution: {integrity: sha512-md5WzjC4qgOOjnYKaqEfZknSeiEeGX13k/Hqi+aqvb+kIF0F6/5oxroqaPQemuNN/gUNMn8ZfA/JmcOYxGVFcQ==} engines: {node: '>=16.14.0'} peerDependencies: @@ -1285,7 +1567,7 @@ packages: optional: true dependencies: sirv: 2.0.3 - vite: 4.5.0(@types/node@20.9.0) + vite: 5.0.0(@types/node@20.9.0) vue: 3.3.8(typescript@5.2.2) transitivePeerDependencies: - typescript @@ -2495,6 +2777,36 @@ packages: '@esbuild/win32-arm64': 0.18.20 '@esbuild/win32-ia32': 0.18.20 '@esbuild/win32-x64': 0.18.20 + dev: true + + /esbuild@0.19.5: + resolution: {integrity: sha512-bUxalY7b1g8vNhQKdB24QDmHeY4V4tw/s6Ak5z+jJX9laP5MoQseTOMemAr0gxssjNcH0MCViG8ONI2kksvfFQ==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@esbuild/android-arm': 0.19.5 + '@esbuild/android-arm64': 0.19.5 + '@esbuild/android-x64': 0.19.5 + '@esbuild/darwin-arm64': 0.19.5 + '@esbuild/darwin-x64': 0.19.5 + '@esbuild/freebsd-arm64': 0.19.5 + '@esbuild/freebsd-x64': 0.19.5 + '@esbuild/linux-arm': 0.19.5 + '@esbuild/linux-arm64': 0.19.5 + '@esbuild/linux-ia32': 0.19.5 + '@esbuild/linux-loong64': 0.19.5 + '@esbuild/linux-mips64el': 0.19.5 + '@esbuild/linux-ppc64': 0.19.5 + '@esbuild/linux-riscv64': 0.19.5 + '@esbuild/linux-s390x': 0.19.5 + '@esbuild/linux-x64': 0.19.5 + '@esbuild/netbsd-x64': 0.19.5 + '@esbuild/openbsd-x64': 0.19.5 + '@esbuild/sunos-x64': 0.19.5 + '@esbuild/win32-arm64': 0.19.5 + '@esbuild/win32-ia32': 0.19.5 + '@esbuild/win32-x64': 0.19.5 /escalade@3.1.1: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} @@ -4019,6 +4331,25 @@ packages: optionalDependencies: fsevents: 2.3.3 + /rollup@4.4.1: + resolution: {integrity: sha512-idZzrUpWSblPJX66i+GzrpjKE3vbYrlWirUHteoAbjKReZwa0cohAErOYA5efoMmNCdvG9yrJS+w9Kl6csaH4w==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.4.1 + '@rollup/rollup-android-arm64': 4.4.1 + '@rollup/rollup-darwin-arm64': 4.4.1 + '@rollup/rollup-darwin-x64': 4.4.1 + '@rollup/rollup-linux-arm-gnueabihf': 4.4.1 + '@rollup/rollup-linux-arm64-gnu': 4.4.1 + '@rollup/rollup-linux-arm64-musl': 4.4.1 + '@rollup/rollup-linux-x64-gnu': 4.4.1 + '@rollup/rollup-linux-x64-musl': 4.4.1 + '@rollup/rollup-win32-arm64-msvc': 4.4.1 + '@rollup/rollup-win32-ia32-msvc': 4.4.1 + '@rollup/rollup-win32-x64-msvc': 4.4.1 + fsevents: 2.3.3 + /rrweb-cssom@0.6.0: resolution: {integrity: sha512-APM0Gt1KoXBz0iIkkdB/kfvGOwC4UuJFeG/c+yV7wSc7q96cG/kJ0HiYCnzivD9SB53cLV1MlHFNfOuPaadYSw==} dev: true @@ -4507,7 +4838,7 @@ packages: - rollup dev: false - /unplugin-combine@0.8.0(vite@4.5.0): + /unplugin-combine@0.8.0(vite@5.0.0): resolution: {integrity: sha512-2a+Jf0gmX+N0aEjdPIGBSxtHcP+5izQus20+qmQFz43w2jh1ZhC2p3fKekBdDPj5ZQlO15bA+OLDkoOiiBz/BA==} engines: {node: '>=16.14.0'} peerDependencies: @@ -4527,7 +4858,7 @@ packages: dependencies: '@antfu/utils': 0.7.6 unplugin: 1.5.0 - vite: 4.5.0(@types/node@20.9.0) + vite: 5.0.0(@types/node@20.9.0) dev: false /unplugin-icons@0.17.4(@vue/compiler-sfc@3.3.8): @@ -4603,7 +4934,7 @@ packages: - vue dev: false - /unplugin-vue-macros@2.6.2(@vueuse/core@10.6.1)(typescript@5.2.2)(vite@4.5.0)(vue@3.3.8): + /unplugin-vue-macros@2.6.2(@vueuse/core@10.6.1)(typescript@5.2.2)(vite@5.0.0)(vue@3.3.8): resolution: {integrity: sha512-U3hyp5RVHKUmnu+OQy1BKE3bVoTQmFkxed7o4G3Zh6jZDT/Q22bF97Qs7/N1/cDHSenNa06PWBXX173FPeqR1Q==} engines: {node: '>=16.14.0'} peerDependencies: @@ -4620,7 +4951,7 @@ packages: '@vue-macros/define-props-refs': 1.1.10(vue@3.3.8) '@vue-macros/define-render': 1.4.3(vue@3.3.8) '@vue-macros/define-slots': 1.0.15(vue@3.3.8) - '@vue-macros/devtools': 0.1.4(typescript@5.2.2)(vite@4.5.0) + '@vue-macros/devtools': 0.1.4(typescript@5.2.2)(vite@5.0.0) '@vue-macros/export-expose': 0.0.13(vue@3.3.8) '@vue-macros/export-props': 0.3.18(vue@3.3.8) '@vue-macros/export-render': 0.1.1(vue@3.3.8) @@ -4635,7 +4966,7 @@ packages: '@vue-macros/short-emits': 1.4.10(vue@3.3.8) '@vue-macros/short-vmodel': 1.3.0(vue@3.3.8) unplugin: 1.5.0 - unplugin-combine: 0.8.0(vite@4.5.0) + unplugin-combine: 0.8.0(vite@5.0.0) unplugin-vue-define-options: 1.3.18(vue@3.3.8) vue: 3.3.8(typescript@5.2.2) transitivePeerDependencies: @@ -4700,7 +5031,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.5.0(@types/node@20.9.0) + vite: 5.0.0(@types/node@20.9.0) transitivePeerDependencies: - '@types/node' - less @@ -4712,7 +5043,7 @@ packages: - terser dev: true - /vite-plugin-pages@0.31.0(@vue/compiler-sfc@3.3.8)(vite@4.5.0): + /vite-plugin-pages@0.31.0(@vue/compiler-sfc@3.3.8)(vite@5.0.0): resolution: {integrity: sha512-fw3onBfVTXQI7rOzAbSZhmfwvk50+3qNnGZpERjmD93c8nEjrGLyd53eFXYMxcJV4KA1vzi4qIHt2+6tS4dEMw==} peerDependencies: '@vue/compiler-sfc': ^2.7.0 || ^3.0.0 @@ -4730,13 +5061,13 @@ packages: json5: 2.2.3 local-pkg: 0.4.3 picocolors: 1.0.0 - vite: 4.5.0(@types/node@20.9.0) + vite: 5.0.0(@types/node@20.9.0) yaml: 2.3.3 transitivePeerDependencies: - supports-color dev: false - /vite-plugin-vue-layouts@0.8.0(vite@4.5.0)(vue-router@4.2.5)(vue@3.3.8): + /vite-plugin-vue-layouts@0.8.0(vite@5.0.0)(vue-router@4.2.5)(vue@3.3.8): resolution: {integrity: sha512-UZW2nSV2LraTSe7gsAL46hfdi7a0X1RvkGGoJVtA2O8beu7anzpXFwQLou8+kHy31CzVycT4gIPySBsHhtBN5g==} peerDependencies: vite: ^2.5.0 || ^3.0.0-0 || ^4.0.0 @@ -4746,7 +5077,7 @@ packages: '@vue/compiler-sfc': 3.3.8 debug: 4.3.4 fast-glob: 3.3.1 - vite: 4.5.0(@types/node@20.9.0) + vite: 5.0.0(@types/node@20.9.0) vue: 3.3.8(typescript@5.2.2) vue-router: 4.2.5(vue@3.3.8) transitivePeerDependencies: @@ -4787,6 +5118,42 @@ packages: rollup: 3.29.4 optionalDependencies: fsevents: 2.3.3 + dev: true + + /vite@5.0.0(@types/node@20.9.0): + resolution: {integrity: sha512-ESJVM59mdyGpsiNAeHQOR/0fqNoOyWPYesFto8FFZugfmhdHx8Fzd8sF3Q/xkVhZsyOxHfdM7ieiVAorI9RjFw==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || >=20.0.0 + less: '*' + lightningcss: ^1.21.0 + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + dependencies: + '@types/node': 20.9.0 + esbuild: 0.19.5 + postcss: 8.4.31 + rollup: 4.4.1 + optionalDependencies: + fsevents: 2.3.3 /vitepress@1.0.0-rc.25(@algolia/client-search@4.20.0)(@types/node@20.9.0)(fuse.js@7.0.0)(postcss@8.4.31)(search-insights@2.10.0)(typescript@5.2.2): resolution: {integrity: sha512-1dqWiHNThNrVZ08ixmfEDBEH+764KOgnev9oXga/x6cN++Vb9pnuu8p3K6DQP+KZrYcG+WiX7jxal0iSNpAWuQ==} @@ -4895,7 +5262,7 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 4.5.0(@types/node@20.9.0) + vite: 5.0.0(@types/node@20.9.0) vite-node: 0.34.6(@types/node@20.9.0) why-is-node-running: 2.2.2 transitivePeerDependencies: diff --git a/postcss.config.js b/postcss.config.cts similarity index 100% rename from postcss.config.js rename to postcss.config.cts diff --git a/public/index.html b/public/index.html index 253d65bf..88479701 100644 --- a/public/index.html +++ b/public/index.html @@ -15,9 +15,9 @@ {{- if .Dev}} - {{- else }} {{ $js := index .Manifest "assets/main.ts" "file" }} {{ $css := index .Manifest "assets/main.css" "file" + {{- else }} {{ $js := index .Manifest "assets/main.ts" "file" }} {{ $css := index .Manifest "assets/main.ts" "css" }} - + {{- end }}