forked from wjkang/d2-admin-pm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop'
- Loading branch information
Showing
1 changed file
with
12 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,16 @@ | ||
import db from './modules/db' | ||
import releases from './modules/releases' | ||
import user from './modules/user' | ||
import menu from './modules/menu' | ||
import theme from './modules/theme' | ||
import log from './modules/log' | ||
import account from './modules/account' | ||
import fullscreen from './modules/fullscreen' | ||
import ua from './modules/ua' | ||
import gray from './modules/gray' | ||
import page from './modules/page' | ||
import transition from './modules/transition' | ||
import search from './modules/search' | ||
import size from './modules/size' | ||
/** | ||
* The file enables `@/store/index.js` to import all vuex modules | ||
* in a one-shot manner. There should not be any reason to edit this file. | ||
*/ | ||
|
||
const files = require.context('./modules', false, /\.js$/) | ||
const modules = {} | ||
|
||
files.keys().forEach(key => { | ||
modules[key.replace(/(\.\/|\.js)/g, '')] = files(key).default | ||
}) | ||
|
||
export default { | ||
namespaced: true, | ||
modules: { | ||
db, | ||
releases, | ||
user, | ||
menu, | ||
theme, | ||
log, | ||
account, | ||
fullscreen, | ||
ua, | ||
gray, | ||
page, | ||
transition, | ||
search, | ||
size | ||
} | ||
modules | ||
} |