Formatting
This commit is contained in:
parent
22a3ca1769
commit
cc712a0e99
6 changed files with 548 additions and 398 deletions
884
client-solid/package-lock.json
generated
884
client-solid/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -7,6 +7,7 @@
|
|||
"dev": "vite",
|
||||
"build": "tsc && vite build",
|
||||
"preview": "vite preview",
|
||||
"format": "prettier --config .prettierrc '**/*.ts' '**/*.tsx' '**/*.js' '**/*.json' --write",
|
||||
"fmt": "prettier --config .prettierrc 'src/**/*.ts' 'src/**/*.tsx' --write && npx eslint --fix 'src/**/*.ts' 'src/**/*.tsx'"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -3,4 +3,4 @@ export default {
|
|||
tailwindcss: {},
|
||||
autoprefixer: {},
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,32 +1,27 @@
|
|||
/** @type {import('tailwindcss').Config} */
|
||||
export default {
|
||||
content: [
|
||||
"./index.html",
|
||||
"./src/**/*.{js,ts,jsx,tsx}",
|
||||
],
|
||||
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
|
||||
daisyui: {
|
||||
themes: [
|
||||
{
|
||||
mytheme: {
|
||||
"primary": "#64279e",
|
||||
"secondary": "#9454af",
|
||||
"accent": "#6ff7c5",
|
||||
"neutral": "#1f2329",
|
||||
primary: "#64279e",
|
||||
secondary: "#9454af",
|
||||
accent: "#6ff7c5",
|
||||
neutral: "#1f2329",
|
||||
"base-100": "#2a3a47",
|
||||
"info": "#8b9be5",
|
||||
"success": "#79e2b4",
|
||||
"warning": "#efb261",
|
||||
"error": "#e1604c",
|
||||
info: "#8b9be5",
|
||||
success: "#79e2b4",
|
||||
warning: "#efb261",
|
||||
error: "#e1604c",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
theme: {
|
||||
extend: {},
|
||||
},
|
||||
// eslint-disable-next-line no-undef
|
||||
plugins: [require("daisyui")],
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
@ -3,11 +3,7 @@
|
|||
"target": "ES2020",
|
||||
"useDefineForClassFields": true,
|
||||
"module": "ESNext",
|
||||
"lib": [
|
||||
"ES2020",
|
||||
"DOM",
|
||||
"DOM.Iterable"
|
||||
],
|
||||
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
||||
"skipLibCheck": true,
|
||||
/* Bundler mode */
|
||||
"moduleResolution": "bundler",
|
||||
|
@ -23,9 +19,7 @@
|
|||
"noUnusedParameters": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
},
|
||||
"include": [
|
||||
"src"
|
||||
],
|
||||
"include": ["src"],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.node.json"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { defineConfig } from 'vite'
|
||||
import solid from 'vite-plugin-solid'
|
||||
import { qrcode } from 'vite-plugin-qrcode'
|
||||
import { defineConfig } from "vite";
|
||||
import { qrcode } from "vite-plugin-qrcode";
|
||||
import solid from "vite-plugin-solid";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
|
@ -12,12 +12,12 @@ export default defineConfig({
|
|||
port: 3000,
|
||||
open: true,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:8080/api',
|
||||
"/api": {
|
||||
target: "http://localhost:8080/api",
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
rewrite: (path): string => path.replace(/^\/api/, '')
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
rewrite: (path): string => path.replace(/^\/api/, ""),
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue