mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
* support for svg files Support to load svg files and include them as bas64 encoded images in the bundle. * navbar svgs * replace NavBar SVGs with heroicons * layercontrol icons * lint fix * quest - questionmark * plusbutton - plus * linkeditem - elipse-vertical - link-slash * contactinfo - envelope & phone * avatar - arrow-up-tray * ActionButton - link & plus * StartEndView - calendar x2 * HeaderView - ellipse-vertical & pencil & trash * SidebarControl - bars-3 * SearchControl - flag & magnifying-glass * GratitudeControl - heart * FilterControl - funnel * AddButton - plus * reduce test coverage requirements * remove wrongfully commit dummy svg * updated obsolete package.lock * migrate more svgs from code to file, use hero icons where it seems applicable * moved share icons to subfolder * fixed layout --------- Co-authored-by: Anton Tranelis <mail@antontranelis.de>
25 lines
566 B
TypeScript
25 lines
566 B
TypeScript
import react from '@vitejs/plugin-react'
|
|
import { defineConfig } from 'vite'
|
|
import svgr from 'vite-plugin-svgr'
|
|
import { configDefaults } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), svgr()],
|
|
test: {
|
|
globals: true,
|
|
environment: 'happy-dom',
|
|
setupFiles: ['setupTest.ts'],
|
|
coverage: {
|
|
all: true,
|
|
include: ['src/**/*.{js,jsx,ts,tsx}'],
|
|
exclude: [...configDefaults.exclude],
|
|
thresholds: {
|
|
lines: 0,
|
|
functions: 61,
|
|
branches: 62,
|
|
statements: 0,
|
|
},
|
|
},
|
|
},
|
|
})
|