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",
"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": {
@ -34,4 +35,4 @@
"vite-plugin-qrcode": "^0.2.2",
"vite-plugin-solid": "^2.7.2"
}
}
}

View file

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

View file

@ -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")],
}
};

View file

@ -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,12 +19,10 @@
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": [
"src"
],
"include": ["src"],
"references": [
{
"path": "./tsconfig.node.json"
}
]
}
}

View file

@ -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/, ""),
},
},
},
});