forked from PanJiaChen/vue-element-admin
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 6850312 Author: 李小斐 <623536309@qq.com> Date: Sat Jan 11 10:25:59 2020 +0800 fix: fixed redirect path regex (PanJiaChen#2933) commit d634e2a Author: 花裤衩 <panfree23@gmail.com> Date: Thu Jan 9 20:24:48 2020 +0800 fix: fixed require mock bug in production commit b57f200 Author: 花裤衩 <panfree23@gmail.com> Date: Thu Jan 9 17:36:49 2020 +0800 bump: update element-ui version commit c9affcf Author: 花裤衩 <panfree23@gmail.com> Date: Thu Jan 9 17:21:36 2020 +0800 fix: fixed mock server (PanJiaChen#2929) * init * refine * update commit fbad7f4 Author: 花裤衩 <panfree23@gmail.com> Date: Thu Jan 9 16:49:57 2020 +0800 fix[Charts]: fix charts resize in keep-alive bug (PanJiaChen#2922) * fix[Charts]: fix charts resize in keep-alive bug * refine commit 088f64e Author: RussXD <shangtouWeb@foxmail.com> Date: Wed Jan 8 12:12:10 2020 +0800 perf: optimize checkCapslock method (PanJiaChen#2635) * optimize checkCapslock method * update Co-authored-by: 花裤衩 <panfree23@gmail.com> commit 55b1bba Author: AndyLZC/AndyLZC.github.io <34624589+AndyLZC@users.noreply.github.com> Date: Tue Jan 7 22:30:07 2020 +0800 perf[complex-table]:refine code (PanJiaChen#2825) * 解决无法删除列表的bug;优化代码; * perf: refine Co-authored-by: 花裤衩 <panfree23@gmail.com> commit fd5a2e8 Author: Kaitian Xie <xkaitian@gmail.com> Date: Mon Jan 6 06:34:14 2020 -0800 perf[Menu]: remove unused menu-wrapper (PanJiaChen#2903) commit a0b39d5 Author: 任羽飞 <ren12345@126.com> Date: Mon Jan 6 22:22:37 2020 +0800 perf: import mockXHR only in production (PanJiaChen#2910) * 自动排除mock 生产环境,使用webpack的条件编译自动排除mock数据 * perf: refine Co-authored-by: 花裤衩 <panfree23@gmail.com> commit 4f563a7 Author: 韬 <605682551@qq.com> Date: Tue Dec 31 14:14:34 2019 +0800 fix[Logout]: click blank area of dropDown able to logout (PanJiaChen#2896) Fixed clicking blank area of drop-down unable to log out commit 262c0ba Author: 花裤衩 <panfree23@gmail.com> Date: Sun Dec 15 20:17:59 2019 +0800 perf[documentation]: refine css commit 594fc58 Author: flitrue <812863096@qq.com> Date: Thu Dec 12 15:16:03 2019 +0800 fix[icons]:fixed eslint 1 error and 2 warnings (PanJiaChen#2835) commit 65d8c45 Author: monkeycf <41945134+monkeycf@users.noreply.github.com> Date: Wed Dec 4 10:34:23 2019 +0800 feat: plop new generate store (PanJiaChen#2805) commit e1554fd Author: xuanzai <43233731+MikuBlog@users.noreply.github.com> Date: Sun Dec 1 15:48:30 2019 +0800 perf[views/icons]: use grid (PanJiaChen#2803) commit 53803d0 Author: Phạm Ngọc Hòa <thaycacac@gmail.com> Date: Wed Nov 27 09:06:28 2019 +0700 perf: format pdf download (PanJiaChen#2791) commit 25dddbb Merge: 683f68b 44203f8 Author: 花裤衩 <panfree23@gmail.com> Date: Tue Nov 12 17:25:12 2019 +0800 update 'MarkdownEditor' components name (PanJiaChen#2743) commit 683f68b Author: Phạm Ngọc Hòa <thaycacac@gmail.com> Date: Tue Nov 12 16:24:30 2019 +0700 format: space in user card (PanJiaChen#2744) commit 44203f8 Author: bbigcd <bbigcd@163.com> Date: Tue Nov 12 12:08:45 2019 +0800 update 'MarkdownEditor' components name commit d5c013a Author: Phạm Ngọc Hòa <thaycacac@gmail.com> Date: Mon Nov 11 18:39:59 2019 +0700 perf: text i18n (PanJiaChen#2739) commit b11acb2 Author: Phạm Ngọc Hòa <thaycacac@gmail.com> Date: Fri Nov 8 10:26:53 2019 +0700 perf: complex table (PanJiaChen#2732) Move ont format `{row}` commit b2dd7ca Author: Phạm Ngọc Hòa <thaycacac@gmail.com> Date: Fri Nov 8 10:25:42 2019 +0700 perf: format drag table (PanJiaChen#2733) move one format `{row}` commit a4fa119 Author: Phạm Ngọc Hòa <thaycacac@gmail.com> Date: Thu Nov 7 12:37:05 2019 +0700 perf: format inline edit table (PanJiaChen#2725) move one format `{row}` commit 6a194d1 Author: Phạm Ngọc Hòa <thaycacac@gmail.com> Date: Tue Nov 5 13:26:24 2019 +0700 perf: format dropdown menu code (PanJiaChen#2720) commit 6739ab5 Author: 花裤衩 <panfree23@gmail.com> Date: Fri Oct 25 19:45:21 2019 +0800 style: fix el-date-picker css style commit 6a214f0 Author: BradyBromley <51128276+BradyBromley@users.noreply.github.com> Date: Sun Oct 13 19:25:30 2019 -0700 docs: improved README.md (PanJiaChen#2656) commit 5273e02 Author: 花裤衩 <panfree23@gmail.com> Date: Sat Oct 12 17:51:26 2019 +0800 docs: add job ad
- Loading branch information
Chan
committed
Jan 15, 2020
1 parent
252b8ca
commit 7bd9405
Showing
32 changed files
with
330 additions
and
345 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
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
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,16 @@ | ||
{{#if state}} | ||
const state = {} | ||
{{/if}} | ||
|
||
{{#if mutations}} | ||
const mutations = {} | ||
{{/if}} | ||
|
||
{{#if actions}} | ||
const actions = {} | ||
{{/if}} | ||
|
||
export default { | ||
namespaced: true, | ||
{{options}} | ||
} |
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,62 @@ | ||
const { notEmpty } = require('../utils.js') | ||
|
||
module.exports = { | ||
description: 'generate store', | ||
prompts: [{ | ||
type: 'input', | ||
name: 'name', | ||
message: 'store name please', | ||
validate: notEmpty('name') | ||
}, | ||
{ | ||
type: 'checkbox', | ||
name: 'blocks', | ||
message: 'Blocks:', | ||
choices: [{ | ||
name: 'state', | ||
value: 'state', | ||
checked: true | ||
}, | ||
{ | ||
name: 'mutations', | ||
value: 'mutations', | ||
checked: true | ||
}, | ||
{ | ||
name: 'actions', | ||
value: 'actions', | ||
checked: true | ||
} | ||
], | ||
validate(value) { | ||
if (!value.includes('state') || !value.includes('mutations')) { | ||
return 'store require at least state and mutations' | ||
} | ||
return true | ||
} | ||
} | ||
], | ||
actions(data) { | ||
const name = '{{name}}' | ||
const { blocks } = data | ||
const options = ['state', 'mutations'] | ||
const joinFlag = `, | ||
` | ||
if (blocks.length === 3) { | ||
options.push('actions') | ||
} | ||
|
||
const actions = [{ | ||
type: 'add', | ||
path: `src/store/modules/${name}.js`, | ||
templateFile: 'plop-templates/store/index.hbs', | ||
data: { | ||
options: options.join(joinFlag), | ||
state: blocks.includes('state'), | ||
mutations: blocks.includes('mutations'), | ||
actions: blocks.includes('actions') | ||
} | ||
}] | ||
return actions | ||
} | ||
} |
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,7 +1,9 @@ | ||
const viewGenerator = require('./plop-templates/view/prompt') | ||
const componentGenerator = require('./plop-templates/component/prompt') | ||
const storeGenerator = require('./plop-templates/store/prompt.js') | ||
|
||
module.exports = function(plop) { | ||
plop.setGenerator('view', viewGenerator) | ||
plop.setGenerator('component', componentGenerator) | ||
plop.setGenerator('store', storeGenerator) | ||
} |
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
Oops, something went wrong.