renamed dir client to web
This commit is contained in:
parent
ad57664a3e
commit
e41d27cf97
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,7 +4,7 @@ node_modules
|
||||
.output
|
||||
.vercel
|
||||
/.svelte-kit
|
||||
/.client-build
|
||||
/.frontend-build
|
||||
|
||||
|
||||
# OS
|
||||
|
1
bin/localhost.sh
Executable file
1
bin/localhost.sh
Executable file
@ -0,0 +1 @@
|
||||
!#/bin/sh
|
2
bin/run-dev.sh
Executable file
2
bin/run-dev.sh
Executable file
@ -0,0 +1,2 @@
|
||||
!#/bin/sh
|
||||
deno task dev
|
1054
client/output.css
1054
client/output.css
File diff suppressed because it is too large
Load Diff
71
deno.lock
71
deno.lock
@ -6,6 +6,8 @@
|
||||
"npm:@sveltejs/vite-plugin-svelte@^4.0.0-next.8": "4.0.0_svelte@5.0.5__acorn@8.13.0_vite@5.4.9",
|
||||
"npm:@tailwindcss/aspect-ratio@~0.4.2": "0.4.2_tailwindcss@3.4.14__postcss@8.4.47",
|
||||
"npm:@tailwindcss/typography@~0.5.15": "0.5.15_tailwindcss@3.4.14__postcss@8.4.47",
|
||||
"npm:autoprefixer@^10.4.20": "10.4.20_postcss@8.4.47",
|
||||
"npm:daisyui@^4.12.13": "4.12.13_postcss@8.4.47",
|
||||
"npm:postcss@^8.4.47": "8.4.47",
|
||||
"npm:svelte-check@^4.0.5": "4.0.5_svelte@5.0.5__acorn@8.13.0_typescript@5.6.3",
|
||||
"npm:svelte@^5.0.5": "5.0.5_acorn@8.13.0",
|
||||
@ -308,6 +310,18 @@
|
||||
"aria-query@5.3.2": {
|
||||
"integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw=="
|
||||
},
|
||||
"autoprefixer@10.4.20_postcss@8.4.47": {
|
||||
"integrity": "sha512-XY25y5xSv/wEoqzDyXXME4AFfkZI0P23z6Fs3YgymDnKJkCGOnkL0iTxCa85UTqaSgfcqyf3UA6+c7wUvx/16g==",
|
||||
"dependencies": [
|
||||
"browserslist",
|
||||
"caniuse-lite",
|
||||
"fraction.js",
|
||||
"normalize-range",
|
||||
"picocolors",
|
||||
"postcss",
|
||||
"postcss-value-parser"
|
||||
]
|
||||
},
|
||||
"axobject-query@4.1.0": {
|
||||
"integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ=="
|
||||
},
|
||||
@ -329,9 +343,21 @@
|
||||
"fill-range"
|
||||
]
|
||||
},
|
||||
"browserslist@4.24.2": {
|
||||
"integrity": "sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg==",
|
||||
"dependencies": [
|
||||
"caniuse-lite",
|
||||
"electron-to-chromium",
|
||||
"node-releases",
|
||||
"update-browserslist-db"
|
||||
]
|
||||
},
|
||||
"camelcase-css@2.0.1": {
|
||||
"integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA=="
|
||||
},
|
||||
"caniuse-lite@1.0.30001669": {
|
||||
"integrity": "sha512-DlWzFDJqstqtIVx1zeSpIMLjunf5SmwOw0N2Ck/QSQdS8PLS4+9HrLaYei4w8BIAL7IB/UEDu889d8vhCTPA0w=="
|
||||
},
|
||||
"chokidar@3.6.0": {
|
||||
"integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
|
||||
"dependencies": [
|
||||
@ -374,9 +400,28 @@
|
||||
"which"
|
||||
]
|
||||
},
|
||||
"css-selector-tokenizer@0.8.0": {
|
||||
"integrity": "sha512-Jd6Ig3/pe62/qe5SBPTN8h8LeUg/pT4lLgtavPf7updwwHpvFzxvOQBHYj2LZDMjUnBzgvIUSjRcf6oT5HzHFg==",
|
||||
"dependencies": [
|
||||
"cssesc",
|
||||
"fastparse"
|
||||
]
|
||||
},
|
||||
"cssesc@3.0.0": {
|
||||
"integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg=="
|
||||
},
|
||||
"culori@3.3.0": {
|
||||
"integrity": "sha512-pHJg+jbuFsCjz9iclQBqyL3B2HLCBF71BwVNujUYEvCeQMvV97R59MNK3R2+jgJ3a1fcZgI9B3vYgz8lzr/BFQ=="
|
||||
},
|
||||
"daisyui@4.12.13_postcss@8.4.47": {
|
||||
"integrity": "sha512-BnXyQoOByUF/7wSdIKubyhXxbtL8gxwY3u2cNMkxGP39TSVJqMmlItqtpY903fQnLI/NokC+bc+ZV+PEPsppPw==",
|
||||
"dependencies": [
|
||||
"css-selector-tokenizer",
|
||||
"culori",
|
||||
"picocolors",
|
||||
"postcss-js"
|
||||
]
|
||||
},
|
||||
"debug@4.3.7": {
|
||||
"integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
|
||||
"dependencies": [
|
||||
@ -398,6 +443,9 @@
|
||||
"eastasianwidth@0.2.0": {
|
||||
"integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA=="
|
||||
},
|
||||
"electron-to-chromium@1.5.42": {
|
||||
"integrity": "sha512-gIfKavKDw1mhvic9nbzA5lZw8QSHpdMwLwXc0cWidQz9B15pDoDdDH4boIatuFfeoCatb3a/NGL6CYRVFxGZ9g=="
|
||||
},
|
||||
"emoji-regex@8.0.0": {
|
||||
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
|
||||
},
|
||||
@ -432,6 +480,9 @@
|
||||
"@esbuild/win32-x64"
|
||||
]
|
||||
},
|
||||
"escalade@3.2.0": {
|
||||
"integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA=="
|
||||
},
|
||||
"esm-env@1.0.0": {
|
||||
"integrity": "sha512-Cf6VksWPsTuW01vU9Mk/3vRue91Zevka5SjyNf3nEpokFRuqt/KjUQoGAwq9qMmhpLTHmXzSIrFRw8zxWzmFBA=="
|
||||
},
|
||||
@ -452,6 +503,9 @@
|
||||
"micromatch"
|
||||
]
|
||||
},
|
||||
"fastparse@1.1.2": {
|
||||
"integrity": "sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ=="
|
||||
},
|
||||
"fastq@1.17.1": {
|
||||
"integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==",
|
||||
"dependencies": [
|
||||
@ -474,6 +528,9 @@
|
||||
"signal-exit"
|
||||
]
|
||||
},
|
||||
"fraction.js@4.3.7": {
|
||||
"integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew=="
|
||||
},
|
||||
"fsevents@2.3.3": {
|
||||
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="
|
||||
},
|
||||
@ -636,9 +693,15 @@
|
||||
"nanoid@3.3.7": {
|
||||
"integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g=="
|
||||
},
|
||||
"node-releases@2.0.18": {
|
||||
"integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g=="
|
||||
},
|
||||
"normalize-path@3.0.0": {
|
||||
"integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA=="
|
||||
},
|
||||
"normalize-range@0.1.2": {
|
||||
"integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA=="
|
||||
},
|
||||
"object-assign@4.1.1": {
|
||||
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg=="
|
||||
},
|
||||
@ -953,6 +1016,14 @@
|
||||
"typescript@5.6.3": {
|
||||
"integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw=="
|
||||
},
|
||||
"update-browserslist-db@1.1.1_browserslist@4.24.2": {
|
||||
"integrity": "sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==",
|
||||
"dependencies": [
|
||||
"browserslist",
|
||||
"escalade",
|
||||
"picocolors"
|
||||
]
|
||||
},
|
||||
"util-deprecate@1.0.2": {
|
||||
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
|
||||
},
|
||||
|
16
server/router.go
Normal file
16
server/router.go
Normal file
@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"gitserver.in/patialtech/mux"
|
||||
)
|
||||
|
||||
func router() *mux.Router {
|
||||
r := mux.NewRouter()
|
||||
|
||||
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Write([]byte("hello there"))
|
||||
})
|
||||
return r
|
||||
}
|
5
server/server.go
Normal file
5
server/server.go
Normal file
@ -0,0 +1,5 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
|
||||
}
|
@ -1,7 +1,6 @@
|
||||
import adapter from "@sveltejs/adapter-static";
|
||||
|
||||
const dev = process.env.NODE_ENV === "development";
|
||||
|
||||
const webDir = "./web";
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
kit: {
|
||||
@ -9,28 +8,27 @@ const config = {
|
||||
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
|
||||
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
|
||||
adapter: adapter(),
|
||||
appDir: "./client",
|
||||
files: {
|
||||
appTemplate: "./client/app.html",
|
||||
routes: "./client/routes",
|
||||
lib: "./client/lib",
|
||||
assets: "./client/public",
|
||||
appTemplate: `${webDir}/app.html`,
|
||||
routes: `${webDir}/routes`,
|
||||
lib: `${webDir}/lib`,
|
||||
assets: `${webDir}/public`,
|
||||
},
|
||||
alias: {
|
||||
"$image/*": "./client/assets/image/*",
|
||||
"$svg/*": "./client/assets/svg/*",
|
||||
"$image/*": `${webDir}/assets/image/*`,
|
||||
"$svg/*": `${webDir}/assets/svg/*`,
|
||||
},
|
||||
paths: {
|
||||
assets: dev ? "" : (process.env.ASSETS_HOST ?? ""),
|
||||
assets: process.env.ASSETS_HOST ?? "",
|
||||
},
|
||||
version: {
|
||||
name: `v-${Date.now()}`,
|
||||
pollInterval: 1000 * 60 * 1, // 5 minutes
|
||||
},
|
||||
adapter: adapter({
|
||||
pages: ".client-build",
|
||||
assets: ".client-build",
|
||||
fallback: "404.html",
|
||||
pages: `${webDir}/public/build`,
|
||||
assets: `${webDir}/public/build`,
|
||||
fallback: "fallback.html",
|
||||
strict: true,
|
||||
}),
|
||||
},
|
||||
|
@ -4,7 +4,7 @@ import daisy from "daisyui";
|
||||
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
export default {
|
||||
content: ["./client/routes/**/*.{svelte,js}"],
|
||||
content: ["./web/routes/**/*.{svelte,js}"],
|
||||
plugins: [typography, aspect, daisy],
|
||||
theme: {
|
||||
extend: {},
|
||||
|
@ -5,7 +5,7 @@ export default defineConfig({
|
||||
plugins: [sveltekit()],
|
||||
server: {
|
||||
fs: {
|
||||
allow: ["./client/app.css", "./client/assets"],
|
||||
allow: ["./web/app.css", "./web/assets"],
|
||||
},
|
||||
},
|
||||
});
|
||||
|
Before Width: | Height: | Size: 373 B After Width: | Height: | Size: 373 B |
1
web/public/.gitignore
vendored
Normal file
1
web/public/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/build
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 122 B After Width: | Height: | Size: 122 B |
Loading…
Reference in New Issue
Block a user