mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
59335c0628
* Redesign log page to have formatting * Support other log types as well * fix border * Support log data format * Only load necessary logs * Load incrementally * Cleanup * Cleanup * Render all items * avoid flashing scroll to bottom * Fix not listening at first * Always ensure logLine is defined * Group logs based on timestamp * Formatting * remove scrollbar * Don't repull when there are no items to pull * Add newline to end * Fix log lines missing * typo
68 lines
1.5 KiB
TypeScript
68 lines
1.5 KiB
TypeScript
/// <reference types="vitest" />
|
|
import path from "path";
|
|
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react-swc";
|
|
import monacoEditorPlugin from "vite-plugin-monaco-editor";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
define: {
|
|
"import.meta.vitest": "undefined",
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://192.168.50.106:5000",
|
|
ws: true,
|
|
},
|
|
"/vod": {
|
|
target: "http://192.168.50.106:5000",
|
|
},
|
|
"/clips": {
|
|
target: "http://192.168.50.106:5000",
|
|
},
|
|
"/exports": {
|
|
target: "http://192.168.50.106:5000",
|
|
},
|
|
"/ws": {
|
|
target: "ws://192.168.50.106:5000",
|
|
ws: true,
|
|
},
|
|
"/live": {
|
|
target: "ws://192.168.50.106:5000",
|
|
changeOrigin: true,
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
plugins: [
|
|
react(),
|
|
monacoEditorPlugin.default({
|
|
customWorkers: [{ label: "yaml", entry: "monaco-yaml/yaml.worker" }],
|
|
languageWorkers: ["editorWorkerService"], // we don't use any of the default languages
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
test: {
|
|
environment: "jsdom",
|
|
alias: {
|
|
"testing-library": path.resolve(
|
|
__dirname,
|
|
"./__test__/testing-library.js",
|
|
),
|
|
},
|
|
setupFiles: ["./__test__/test-setup.ts"],
|
|
includeSource: ["src/**/*.{js,jsx,ts,tsx}"],
|
|
coverage: {
|
|
reporter: ["text-summary", "text"],
|
|
},
|
|
mockReset: true,
|
|
restoreMocks: true,
|
|
globals: true,
|
|
},
|
|
});
|