Skip to content

Commit afec538

Browse files
committed
fix: drag and drop not work & missing i18n fields
1 parent 21acbfe commit afec538

File tree

6 files changed

+52
-7
lines changed

6 files changed

+52
-7
lines changed

CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
### v1.4.1 1/31/2019
2+
3+
- fix: drag and drop not work
4+
- fix: missing i18n fields
5+
6+
### v1.4.0 1/29/2019
7+
8+
- feat: detail list pagination
9+
- feat: hide too much items in detail list
10+
- refactor: search feature can be used in every page
11+
- refactor: use drawer
12+
- refactor: change authorize way of sync service
13+
- depracate: some options have be depracated
14+
- feat: allow set tags of list and filter tags
15+
- feat: add a new option 'titleFontSize' to allow user change the font size of list title
16+
- feat: add 4 new options to allow user disable some feature to improve appearance
17+
118
### v1.3.12 1/17/2019
219

320
- fix: search item clicked wont expanse list

src/_locales/en/messages.json

+12
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,18 @@
215215
"ui_pinned": {
216216
"message": "pinned"
217217
},
218+
"ui_duplicate": {
219+
"message": "Duplicate"
220+
},
221+
"ui_copy_link": {
222+
"message": "Copy link"
223+
},
224+
"ui_copy_title": {
225+
"message": "Copy title"
226+
},
227+
"ui_remove": {
228+
"message": "Remove"
229+
},
218230
"ui_create_issue": {
219231
"message": "Create an issue"
220232
},

src/_locales/zh_CN/messages.json

+12
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,18 @@
215215
"ui_pinned": {
216216
"message": "已固定"
217217
},
218+
"ui_duplicate": {
219+
"message": "复制"
220+
},
221+
"ui_copy_link": {
222+
"message": "复制链接"
223+
},
224+
"ui_copy_title": {
225+
"message": "复制标题"
226+
},
227+
"ui_remove": {
228+
"message": "删除"
229+
},
218230
"ui_create_issue": {
219231
"message": "反馈问题"
220232
},

src/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "__EXT_NAME__",
4-
"version": "1.4.0",
4+
"version": "1.4.1",
55
"default_locale": "en",
66
"description": "__MSG_ext_desc__",
77
"author": "WangJie <[email protected]>",

src/page/main/DetailList.vue

+7-6
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@
132132
<v-divider></v-divider>
133133
<v-list dense class="my-1">
134134
<draggable
135-
v-model="list.tabs"
135+
:value="list.tabs"
136+
@input="setTabs([list.index, $event])"
136137
:options="draggableOptions"
137138
@change="tabMoved([list.index])"
138139
>
@@ -243,7 +244,7 @@
243244
<v-icon small>content_copy</v-icon>
244245
</v-list-tile-action>
245246
<v-list-tile-content>
246-
Duplicate
247+
{{ __('ui_duplicate') }}
247248
</v-list-tile-content>
248249
</v-list-tile>
249250

@@ -252,7 +253,7 @@
252253
<v-icon small>link</v-icon>
253254
</v-list-tile-action>
254255
<v-list-tile-content>
255-
Copy link
256+
{{ __('ui_copy_link') }}
256257
</v-list-tile-content>
257258
</v-list-tile>
258259

@@ -261,7 +262,7 @@
261262
<v-icon small>title</v-icon>
262263
</v-list-tile-action>
263264
<v-list-tile-content>
264-
Copy title
265+
{{ __('ui_copy_title') }}
265266
</v-list-tile-content>
266267
</v-list-tile>
267268

@@ -272,7 +273,7 @@
272273
<v-icon small>delete</v-icon>
273274
</v-list-tile-action>
274275
<v-list-tile-content>
275-
Remove
276+
{{ __('ui_remove') }}
276277
</v-list-tile-content>
277278
</v-list-tile>
278279
</v-list>
@@ -422,7 +423,7 @@ export default {
422423
getColorByHash,
423424
...mapMutations([
424425
'openChangeTitle', 'showAll', 'tabSelected', 'addTab',
425-
'removeTabDirectly', 'setTitle', 'addList',
426+
'removeTabDirectly', 'setTitle', 'addList', 'setTabs',
426427
]),
427428
...mapActions([
428429
'showSnackbar', 'itemClicked', 'getLists', 'itemClicked',

src/store/lists.js

+3
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ export default {
9898
removeTabDirectly(state, [listIndex, tabIndex]) {
9999
state.lists[listIndex].tabs.splice(tabIndex, 1)
100100
},
101+
setTabs(state, [listIndex, tabs]) {
102+
state.lists[listIndex].tabs = tabs
103+
},
101104
addTab(state, [listIndex, tab]) {
102105
state.lists[listIndex].tabs.push(normalizeTab(tab))
103106
},

0 commit comments

Comments
 (0)