b2caf26da3
* Moved to zustand and started refactored filters - Move from redux to zustand - Refactor Filters typings and add some helper types - Add Filters button and Picker/Switch filter options - Fixed Syosetu typings * Add rule consistent-type-definitions - Add consistent-type-definitions eslint rule to force consistent use of types instead of interfaces - Run eslint to auto-change every interface to types https://dev.to/atheodosiou/types-vs-interfaces-in-typescript-making-the-right-choice-48a4 https://www.youtube.com/watch?v=zM9UPcIyyhQ * Add other filters and refactor - Move Dialog to FiltersDialog - CheckboxFilter, TextFilter, XCheckboxFilter added - Added TripleCheckbox and TripleSwitch as tri-state checkbox/switch items using Mui stylings * TriStateCheckbox/Switch refactor - Change name of TripleSwitch and TripleCheckbox to TriState - Change slightly TriStateSwitch and StyledSwitch styles - Add option to change into TriStateSwitches via `localStorage` value `useSwitches` * Refactor code and fix issues * fix: prettier --------- Co-authored-by: nyagami <hoangquan05112002@gmail.com>
29 lines
946 B
JavaScript
29 lines
946 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react-swc';
|
|
import path from 'path';
|
|
import { fileURLToPath } from 'url';
|
|
|
|
const dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react({ devTarget: 'es5' })],
|
|
resolve: {
|
|
alias: {
|
|
'@libs': path.resolve(dirname, './src/libs'),
|
|
'@icons': path.resolve(dirname, './src/icons'),
|
|
'@components': path.resolve(dirname, './src/components'),
|
|
'@redux': path.resolve(dirname, './src/redux'),
|
|
'@provider': path.resolve(dirname, './src/provider'),
|
|
'@plugins': path.resolve(dirname, './src/plugins'),
|
|
'@hooks': path.resolve(dirname, './src/hooks'),
|
|
'@typings': path.resolve(dirname, './src/types'),
|
|
'@scripts': path.resolve(dirname, './scripts'),
|
|
'@store': path.resolve(dirname, './src/store'),
|
|
},
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
},
|
|
});
|