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 '@testing-library/jest-dom';
|
||||||
import 'jest-canvas-mock';
|
import 'jest-canvas-mock';
|
||||||
|
import 'chart.js/auto';
|
||||||
import ResizeObserver from 'resize-observer-polyfill';
|
import ResizeObserver from 'resize-observer-polyfill';
|
||||||
import { setAutoFreeze } from 'immer';
|
import { setAutoFreeze } from 'immer';
|
||||||
|
|
||||||
|
|
|
@ -30,8 +30,8 @@ import { ToggleSwitch } from '../../utils/ToggleSwitch';
|
||||||
import { prettify } from '../../utils/helpers/numbers';
|
import { prettify } from '../../utils/helpers/numbers';
|
||||||
import { pointerOnHover, renderChartLabel } from '../../utils/helpers/charts';
|
import { pointerOnHover, renderChartLabel } from '../../utils/helpers/charts';
|
||||||
import { HIGHLIGHTED_COLOR, MAIN_COLOR } from '../../utils/theme';
|
import { HIGHLIGHTED_COLOR, MAIN_COLOR } from '../../utils/theme';
|
||||||
import './LineChartCard.scss';
|
|
||||||
import { STANDARD_DATE_FORMAT } from '../../utils/helpers/date';
|
import { STANDARD_DATE_FORMAT } from '../../utils/helpers/date';
|
||||||
|
import './LineChartCard.scss';
|
||||||
|
|
||||||
interface LineChartCardProps {
|
interface LineChartCardProps {
|
||||||
title: string;
|
title: string;
|
||||||
|
|
|
@ -2,6 +2,7 @@ import { defineConfig } from 'vite';
|
||||||
import react from '@vitejs/plugin-react';
|
import react from '@vitejs/plugin-react';
|
||||||
import { VitePWA } from 'vite-plugin-pwa';
|
import { VitePWA } from 'vite-plugin-pwa';
|
||||||
import { manifest } from './manifest';
|
import { manifest } from './manifest';
|
||||||
|
import pack from './package.json';
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
@ -19,4 +20,5 @@ export default defineConfig({
|
||||||
server: {
|
server: {
|
||||||
port: 3000,
|
port: 3000,
|
||||||
},
|
},
|
||||||
|
base: pack.homepage ?? '/',
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue