mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-03 14:57:22 +03:00
Fixed subpath and tests for chartjs
This commit is contained in:
parent
79515ac960
commit
c83563c0ea
3 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
import '@testing-library/jest-dom';
|
||||
import 'jest-canvas-mock';
|
||||
import 'chart.js/auto';
|
||||
import ResizeObserver from 'resize-observer-polyfill';
|
||||
import { setAutoFreeze } from 'immer';
|
||||
|
||||
|
|
|
@ -30,8 +30,8 @@ import { ToggleSwitch } from '../../utils/ToggleSwitch';
|
|||
import { prettify } from '../../utils/helpers/numbers';
|
||||
import { pointerOnHover, renderChartLabel } from '../../utils/helpers/charts';
|
||||
import { HIGHLIGHTED_COLOR, MAIN_COLOR } from '../../utils/theme';
|
||||
import './LineChartCard.scss';
|
||||
import { STANDARD_DATE_FORMAT } from '../../utils/helpers/date';
|
||||
import './LineChartCard.scss';
|
||||
|
||||
interface LineChartCardProps {
|
||||
title: string;
|
||||
|
|
|
@ -2,6 +2,7 @@ import { defineConfig } from 'vite';
|
|||
import react from '@vitejs/plugin-react';
|
||||
import { VitePWA } from 'vite-plugin-pwa';
|
||||
import { manifest } from './manifest';
|
||||
import pack from './package.json';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
|
@ -19,4 +20,5 @@ export default defineConfig({
|
|||
server: {
|
||||
port: 3000,
|
||||
},
|
||||
base: pack.homepage ?? '/',
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue