-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configuring exports for @explorer-1/vue
updating more import paths
- Loading branch information
1 parent
6286d2c
commit dfbae91
Showing
22 changed files
with
432 additions
and
70 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { defineStore } from 'pinia' | ||
type Explorer1Theme = 'defaultTheme' | 'ThemeInternal' | 'ThemeEdu' | ||
|
||
/** Sets the Explorer-1 theme | ||
*/ | ||
|
||
export interface State { | ||
theme: Explorer1Theme | null | ||
} | ||
|
||
export const useThemeStore = defineStore('theme', { | ||
state: (): State => { | ||
return { | ||
theme: null | ||
} | ||
}, | ||
actions: { | ||
setTheme(value: Explorer1Theme) { | ||
this.theme = value | ||
} | ||
}, | ||
getters: { | ||
isEdu(state) { | ||
return state.theme === 'ThemeEdu' | ||
} | ||
} | ||
}) |
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,5 +1,9 @@ | ||
{ | ||
"extends": "@explorer-1/tsconfig/storybook.json", | ||
"compilerOptions": { | ||
"moduleResolution": "bundler", | ||
"module": "ESNext" | ||
}, | ||
"exclude": ["node_modules"], | ||
"include": ["./**/*"] | ||
} |
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 was deleted.
Oops, something went wrong.
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,5 +1,5 @@ | ||
export default defineNuxtConfig({ | ||
modules: ['@nuxt/eslint', '../src/module'], | ||
modules: ['../src/module'], | ||
explorer1: {}, | ||
devtools: { enabled: true } | ||
}) |
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,2 +1,2 @@ | ||
import dayjs from '@explorer-1/vue/src/utils/dayjs' | ||
import dayjs from '@explorer-1/vue' | ||
export default dayjs |
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,3 +1,3 @@ | ||
import { useHeaderStore } from '@explorer-1/vue/src/store/header' | ||
import useHeaderStore from '@explorer-1/vue' | ||
|
||
export default useHeaderStore |
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,3 +1,3 @@ | ||
import { useThemeStore } from '@explorer-1/vue/src/store/theme' | ||
import useThemeStore from '@explorer-1/vue' | ||
|
||
export default useThemeStore |
Oops, something went wrong.