Revert "chore: build frontend and fix tsc config for vitest/config import"
This reverts commit 9bebb13b2c.
main
parent
9bebb13b2c
commit
42fa2fb78a
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -7,8 +7,8 @@
|
||||||
<meta name="theme-color" content="#0d1117" />
|
<meta name="theme-color" content="#0d1117" />
|
||||||
<link rel="manifest" href="/manifest.json" />
|
<link rel="manifest" href="/manifest.json" />
|
||||||
<title>TurnUp</title>
|
<title>TurnUp</title>
|
||||||
<script type="module" crossorigin src="/assets/index-1cIxdxyn.js"></script>
|
<script type="module" crossorigin src="/assets/index-Dcy9vL-q.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-Bit2B6Yg.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-35WG7lRs.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|
|
||||||
|
|
@ -39,12 +39,12 @@ interface RenderOptions {
|
||||||
runningApps?: string[];
|
runningApps?: string[];
|
||||||
sinks?: AudioDevice[];
|
sinks?: AudioDevice[];
|
||||||
sources?: AudioDevice[];
|
sources?: AudioDevice[];
|
||||||
onChange?: (knob: KnobConfig) => void;
|
onChange?: ReturnType<typeof vi.fn>;
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderCard(
|
function renderCard(
|
||||||
overrides: Partial<KnobConfig> = {},
|
overrides: Partial<KnobConfig> = {},
|
||||||
{ runningApps, sinks, sources, onChange = vi.fn() as (knob: KnobConfig) => void }: RenderOptions = {},
|
{ runningApps, sinks, sources, onChange = vi.fn() }: RenderOptions = {},
|
||||||
) {
|
) {
|
||||||
const knob: KnobConfig = {
|
const knob: KnobConfig = {
|
||||||
action: 'app_volume',
|
action: 'app_volume',
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
"target": "ES2023",
|
"target": "ES2023",
|
||||||
"lib": ["ES2023"],
|
"lib": ["ES2023"],
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"types": ["node", "vitest/globals"],
|
"types": ["node"],
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
|
|
||||||
/* Bundler mode */
|
/* Bundler mode */
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
/// <reference types="vitest" />
|
import { defineConfig } from 'vite'
|
||||||
import { defineConfig } from 'vitest/config'
|
|
||||||
import react from '@vitejs/plugin-react'
|
import react from '@vitejs/plugin-react'
|
||||||
|
|
||||||
// https://vite.dev/config/
|
// https://vite.dev/config/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue