Formatting

This commit is contained in:
Imbus 2023-11-22 15:31:58 +01:00
parent 22a3ca1769
commit cc712a0e99
6 changed files with 548 additions and 398 deletions

File diff suppressed because it is too large Load diff

View file

@ -7,6 +7,7 @@
"dev": "vite", "dev": "vite",
"build": "tsc && vite build", "build": "tsc && vite build",
"preview": "vite preview", "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'" "fmt": "prettier --config .prettierrc 'src/**/*.ts' 'src/**/*.tsx' --write && npx eslint --fix 'src/**/*.ts' 'src/**/*.tsx'"
}, },
"dependencies": { "dependencies": {

View file

@ -3,4 +3,4 @@ export default {
tailwindcss: {}, tailwindcss: {},
autoprefixer: {}, autoprefixer: {},
}, },
} };

View file

@ -1,32 +1,27 @@
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
export default { export default {
content: [ content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
daisyui: { daisyui: {
themes: [ themes: [
{ {
mytheme: { mytheme: {
"primary": "#64279e", primary: "#64279e",
"secondary": "#9454af", secondary: "#9454af",
"accent": "#6ff7c5", accent: "#6ff7c5",
"neutral": "#1f2329", neutral: "#1f2329",
"base-100": "#2a3a47", "base-100": "#2a3a47",
"info": "#8b9be5", info: "#8b9be5",
"success": "#79e2b4", success: "#79e2b4",
"warning": "#efb261", warning: "#efb261",
"error": "#e1604c", error: "#e1604c",
}, },
}, },
], ],
}, },
theme: { theme: {
extend: {}, extend: {},
}, },
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
plugins: [require("daisyui")], plugins: [require("daisyui")],
} };

View file

@ -3,11 +3,7 @@
"target": "ES2020", "target": "ES2020",
"useDefineForClassFields": true, "useDefineForClassFields": true,
"module": "ESNext", "module": "ESNext",
"lib": [ "lib": ["ES2020", "DOM", "DOM.Iterable"],
"ES2020",
"DOM",
"DOM.Iterable"
],
"skipLibCheck": true, "skipLibCheck": true,
/* Bundler mode */ /* Bundler mode */
"moduleResolution": "bundler", "moduleResolution": "bundler",
@ -23,9 +19,7 @@
"noUnusedParameters": true, "noUnusedParameters": true,
"noFallthroughCasesInSwitch": true "noFallthroughCasesInSwitch": true
}, },
"include": [ "include": ["src"],
"src"
],
"references": [ "references": [
{ {
"path": "./tsconfig.node.json" "path": "./tsconfig.node.json"

View file

@ -1,6 +1,6 @@
import { defineConfig } from 'vite' import { defineConfig } from "vite";
import solid from 'vite-plugin-solid' import { qrcode } from "vite-plugin-qrcode";
import { qrcode } from 'vite-plugin-qrcode' import solid from "vite-plugin-solid";
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
@ -12,12 +12,12 @@ export default defineConfig({
port: 3000, port: 3000,
open: true, open: true,
proxy: { proxy: {
'/api': { "/api": {
target: 'http://localhost:8080/api', target: "http://localhost:8080/api",
changeOrigin: true, changeOrigin: true,
secure: false, secure: false,
rewrite: (path): string => path.replace(/^\/api/, '') rewrite: (path): string => path.replace(/^\/api/, ""),
} },
} },
} },
}) });