Skip to content

Commit

Permalink
fix: drag and drop not work & missing i18n fields
Browse files Browse the repository at this point in the history
  • Loading branch information
cnwangjie committed Jan 31, 2019
1 parent 21acbfe commit afec538
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 7 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
### v1.4.1 1/31/2019

- fix: drag and drop not work
- fix: missing i18n fields

### v1.4.0 1/29/2019

- feat: detail list pagination
- feat: hide too much items in detail list
- refactor: search feature can be used in every page
- refactor: use drawer
- refactor: change authorize way of sync service
- depracate: some options have be depracated
- feat: allow set tags of list and filter tags
- feat: add a new option 'titleFontSize' to allow user change the font size of list title
- feat: add 4 new options to allow user disable some feature to improve appearance

### v1.3.12 1/17/2019

- fix: search item clicked wont expanse list
Expand Down
12 changes: 12 additions & 0 deletions src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,18 @@
"ui_pinned": {
"message": "pinned"
},
"ui_duplicate": {
"message": "Duplicate"
},
"ui_copy_link": {
"message": "Copy link"
},
"ui_copy_title": {
"message": "Copy title"
},
"ui_remove": {
"message": "Remove"
},
"ui_create_issue": {
"message": "Create an issue"
},
Expand Down
12 changes: 12 additions & 0 deletions src/_locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,18 @@
"ui_pinned": {
"message": "已固定"
},
"ui_duplicate": {
"message": "复制"
},
"ui_copy_link": {
"message": "复制链接"
},
"ui_copy_title": {
"message": "复制标题"
},
"ui_remove": {
"message": "删除"
},
"ui_create_issue": {
"message": "反馈问题"
},
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "__EXT_NAME__",
"version": "1.4.0",
"version": "1.4.1",
"default_locale": "en",
"description": "__MSG_ext_desc__",
"author": "WangJie <[email protected]>",
Expand Down
13 changes: 7 additions & 6 deletions src/page/main/DetailList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@
<v-divider></v-divider>
<v-list dense class="my-1">
<draggable
v-model="list.tabs"
:value="list.tabs"
@input="setTabs([list.index, $event])"
:options="draggableOptions"
@change="tabMoved([list.index])"
>
Expand Down Expand Up @@ -243,7 +244,7 @@
<v-icon small>content_copy</v-icon>
</v-list-tile-action>
<v-list-tile-content>
Duplicate
{{ __('ui_duplicate') }}
</v-list-tile-content>
</v-list-tile>

Expand All @@ -252,7 +253,7 @@
<v-icon small>link</v-icon>
</v-list-tile-action>
<v-list-tile-content>
Copy link
{{ __('ui_copy_link') }}
</v-list-tile-content>
</v-list-tile>

Expand All @@ -261,7 +262,7 @@
<v-icon small>title</v-icon>
</v-list-tile-action>
<v-list-tile-content>
Copy title
{{ __('ui_copy_title') }}
</v-list-tile-content>
</v-list-tile>

Expand All @@ -272,7 +273,7 @@
<v-icon small>delete</v-icon>
</v-list-tile-action>
<v-list-tile-content>
Remove
{{ __('ui_remove') }}
</v-list-tile-content>
</v-list-tile>
</v-list>
Expand Down Expand Up @@ -422,7 +423,7 @@ export default {
getColorByHash,
...mapMutations([
'openChangeTitle', 'showAll', 'tabSelected', 'addTab',
'removeTabDirectly', 'setTitle', 'addList',
'removeTabDirectly', 'setTitle', 'addList', 'setTabs',
]),
...mapActions([
'showSnackbar', 'itemClicked', 'getLists', 'itemClicked',
Expand Down
3 changes: 3 additions & 0 deletions src/store/lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ export default {
removeTabDirectly(state, [listIndex, tabIndex]) {
state.lists[listIndex].tabs.splice(tabIndex, 1)
},
setTabs(state, [listIndex, tabs]) {
state.lists[listIndex].tabs = tabs
},
addTab(state, [listIndex, tab]) {
state.lists[listIndex].tabs.push(normalizeTab(tab))
},
Expand Down

0 comments on commit afec538

Please sign in to comment.