-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* make mount helper types more accurate; make shallow false by default * Add layout and menu feature * update postcss/tailwind configs * move image to component utilizing it * add more layout plugins to naive.ts * initial layout for main page * add media query for dark mode * position fix the side layer * separate test tsconfig from build; create separate vitest config; add babel types
- Loading branch information
1 parent
43670a2
commit 709aa16
Showing
13 changed files
with
211 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {} | ||
} | ||
plugins: [ | ||
require('postcss-import'), | ||
require('tailwindcss/nesting'), | ||
require('tailwindcss'), | ||
require('autoprefixer') | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,40 @@ | ||
import { create, NButton } from 'naive-ui' | ||
// import { Plugin } from 'vue' | ||
import { | ||
create, | ||
NButton, | ||
NConfigProvider, | ||
NH1, | ||
NH2, | ||
NH3, | ||
NH4, | ||
NH5, | ||
NH6, | ||
NHr, | ||
NLayout, | ||
NLayoutContent, | ||
NLayoutFooter, | ||
NLayoutHeader, | ||
NLayoutSider, | ||
NMenu, | ||
NScrollbar | ||
} from 'naive-ui' | ||
|
||
export default create({ | ||
components: [NButton] | ||
components: [ | ||
NButton, | ||
NConfigProvider, | ||
NH1, | ||
NH2, | ||
NH3, | ||
NH4, | ||
NH5, | ||
NH6, | ||
NHr, | ||
NLayout, | ||
NLayoutHeader, | ||
NLayoutContent, | ||
NLayoutFooter, | ||
NLayoutSider, | ||
NMenu, | ||
NScrollbar | ||
] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"types": ["vite/client", "vitest/globals", "naive-ui/volar", "node"], | ||
"paths": { | ||
"@/*": ["src/*"], | ||
"@test/*": ["test/*"] | ||
}, | ||
"baseUrl": "../.." | ||
}, | ||
"include": [ | ||
"../../src/**/*.ts", | ||
"../../src/**/*.d.ts", | ||
"../../src/**/*.tsx", | ||
"../../src/**/*.vue", | ||
"**/*.ts", | ||
"**/*.d.ts", | ||
"**/*.tsx", | ||
"**/*.vue" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
import { defineConfig } from 'vitest/config' | ||
import { defineConfig } from 'vite' | ||
import vue from '@vitejs/plugin-vue' | ||
import tsconfigPaths from 'vite-tsconfig-paths' | ||
|
||
const plugins = [vue(), tsconfigPaths()] | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins, | ||
test: { | ||
environment: 'happy-dom', | ||
globals: true | ||
} | ||
plugins | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { defineConfig } from 'vitest/config' | ||
import vue from '@vitejs/plugin-vue' | ||
import tsconfigPaths from 'vite-tsconfig-paths' | ||
|
||
const plugins = [vue(), tsconfigPaths({ root: 'test/unit' })] | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins, | ||
test: { | ||
environment: 'happy-dom', | ||
globals: true | ||
} | ||
}) |
Oops, something went wrong.