@cloudron/pankow 3.6.0 → 3.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
:fallbackIcon="fallbackIcon"
|
|
48
48
|
:item="item"
|
|
49
49
|
:show-owner="showOwner"
|
|
50
|
-
:show-share="showShare"
|
|
51
50
|
:show-extract="showExtract"
|
|
52
51
|
:show-size="showSize"
|
|
53
52
|
:show-star="showStar"
|
|
54
53
|
:show-modified="showModified"
|
|
55
54
|
:rename-handler="renameHandler"
|
|
55
|
+
:share-indicator-property="shareIndicatorProperty"
|
|
56
56
|
:select-handler="onSelectAndFocus"
|
|
57
57
|
:drop-handler="onDrop"
|
|
58
58
|
:can-drop-handler="onCanDropHandler"
|
|
@@ -124,15 +124,39 @@ export default {
|
|
|
124
124
|
type: Boolean,
|
|
125
125
|
default: true
|
|
126
126
|
},
|
|
127
|
+
showNewFile: {
|
|
128
|
+
type: Boolean,
|
|
129
|
+
default: true
|
|
130
|
+
},
|
|
131
|
+
showNewFolder: {
|
|
132
|
+
type: Boolean,
|
|
133
|
+
default: true
|
|
134
|
+
},
|
|
135
|
+
showCut: {
|
|
136
|
+
type: Boolean,
|
|
137
|
+
default: true
|
|
138
|
+
},
|
|
139
|
+
showCopy: {
|
|
140
|
+
type: Boolean,
|
|
141
|
+
default: true
|
|
142
|
+
},
|
|
143
|
+
showDelete: {
|
|
144
|
+
type: Boolean,
|
|
145
|
+
default: true
|
|
146
|
+
},
|
|
127
147
|
showShare: {
|
|
128
|
-
|
|
129
|
-
type: [ Boolean, String ],
|
|
148
|
+
type: Boolean,
|
|
130
149
|
default: false
|
|
131
150
|
},
|
|
132
151
|
showModified: {
|
|
133
152
|
type: Boolean,
|
|
134
153
|
default: false
|
|
135
154
|
},
|
|
155
|
+
shareIndicatorProperty: {
|
|
156
|
+
// the name of the property for existing share indicator
|
|
157
|
+
type: String,
|
|
158
|
+
default: '',
|
|
159
|
+
},
|
|
136
160
|
editable: {
|
|
137
161
|
type: Boolean,
|
|
138
162
|
default: true
|
|
@@ -299,25 +323,31 @@ export default {
|
|
|
299
323
|
icon:'fa-solid fa-check-double',
|
|
300
324
|
action: this.onSelectAll
|
|
301
325
|
}, {
|
|
302
|
-
separator:true
|
|
326
|
+
separator:true,
|
|
327
|
+
visible: () => { return this.showNewFile || this.showNewFolder; },
|
|
303
328
|
}, {
|
|
304
329
|
label: this.tr('filemanager.toolbar.newFile'),
|
|
305
330
|
icon:'fa-solid fa-file-circle-plus',
|
|
306
|
-
action: this.newFileHandler
|
|
331
|
+
action: this.newFileHandler,
|
|
332
|
+
visible: () => { return this.showNewFile; },
|
|
307
333
|
}, {
|
|
308
334
|
label: this.tr('filemanager.toolbar.newFolder'),
|
|
309
335
|
icon:'fa-solid fa-folder-plus',
|
|
310
|
-
action: this.newFolderHandler
|
|
336
|
+
action: this.newFolderHandler,
|
|
337
|
+
visible: () => { return this.showNewFolder; },
|
|
311
338
|
}, {
|
|
312
|
-
separator:true
|
|
339
|
+
separator:true,
|
|
340
|
+
visible: () => { return this.showUploadFile || this.showUploadFolder; },
|
|
313
341
|
}, {
|
|
314
342
|
label: this.tr('filemanager.toolbar.uploadFile'),
|
|
315
343
|
icon:'fa-solid fa-file-arrow-up',
|
|
316
|
-
action: this.uploadFileHandler
|
|
344
|
+
action: this.uploadFileHandler,
|
|
345
|
+
visible: () => { return this.showUploadFile; },
|
|
317
346
|
}, {
|
|
318
347
|
label: this.tr('filemanager.toolbar.uploadFolder'),
|
|
319
348
|
icon:'fa-regular fa-folder-open',
|
|
320
|
-
action: this.uploadFolderHandler
|
|
349
|
+
action: this.uploadFolderHandler,
|
|
350
|
+
visible: () => { return this.showUploadFolder; },
|
|
321
351
|
}],
|
|
322
352
|
contextMenuModel: [{
|
|
323
353
|
label: this.tr('filemanager.list.menu.open'),
|
|
@@ -336,15 +366,17 @@ export default {
|
|
|
336
366
|
icon:'fa-solid fa-share-nodes',
|
|
337
367
|
action: this.onItemShare,
|
|
338
368
|
disabled: () => { return this.selectedCount > 1; },
|
|
339
|
-
visible: this.showShare
|
|
369
|
+
visible: () => { return this.showShare; },
|
|
340
370
|
}, {
|
|
341
371
|
label: this.tr('filemanager.list.menu.copy'),
|
|
342
372
|
icon:'fa-regular fa-copy',
|
|
343
|
-
action: this.onItemsCopy
|
|
373
|
+
action: this.onItemsCopy,
|
|
374
|
+
visible: () => { return this.showCopy; },
|
|
344
375
|
}, {
|
|
345
376
|
label: this.tr('filemanager.list.menu.cut'),
|
|
346
377
|
icon:'fa-solid fa-scissors',
|
|
347
|
-
action: this.onItemsCut
|
|
378
|
+
action: this.onItemsCut,
|
|
379
|
+
visible: () => { return this.showCut; },
|
|
348
380
|
}, {
|
|
349
381
|
label: this.tr('filemanager.list.menu.paste'),
|
|
350
382
|
icon:'fa-regular fa-paste',
|
|
@@ -363,7 +395,7 @@ export default {
|
|
|
363
395
|
label: this.tr('filemanager.list.menu.chown'),
|
|
364
396
|
icon:'fa-solid fa-user-pen',
|
|
365
397
|
action: this.onItemsChangeOwner,
|
|
366
|
-
visible: this.showOwner
|
|
398
|
+
visible: () => { return this.showOwner; },
|
|
367
399
|
}, {
|
|
368
400
|
label: this.tr('filemanager.list.menu.extract'),
|
|
369
401
|
action: this.onItemExtract,
|
|
@@ -381,11 +413,13 @@ export default {
|
|
|
381
413
|
file.name.match(/\.tar\.bz2$/)));
|
|
382
414
|
}
|
|
383
415
|
}, {
|
|
384
|
-
separator:true
|
|
416
|
+
separator:true,
|
|
417
|
+
visible: () => { return this.showDelete; },
|
|
385
418
|
}, {
|
|
386
419
|
label: this.tr('filemanager.list.menu.delete'),
|
|
387
420
|
icon:'fa-regular fa-trash-can',
|
|
388
|
-
action: () => { this.deleteHandler(this.getSelected()); }
|
|
421
|
+
action: () => { this.deleteHandler(this.getSelected()); },
|
|
422
|
+
visible: () => { return this.showDelete; },
|
|
389
423
|
}],
|
|
390
424
|
};
|
|
391
425
|
},
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
<div v-if="visible" class="col icon">
|
|
15
15
|
<img :src="item.previewUrl || item.icon" ref="iconImage" @error="iconError($event)"/>
|
|
16
|
-
<i v-show="
|
|
16
|
+
<i v-show="shareIndicatorProperty !== '' && !!item[shareIndicatorProperty]" class="fa-solid fa-share-nodes is-shared"></i>
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
19
|
<div v-if="visible && !rename" class="col label">
|
|
@@ -68,11 +68,6 @@ export default {
|
|
|
68
68
|
type: Boolean,
|
|
69
69
|
default: false
|
|
70
70
|
},
|
|
71
|
-
showShare: {
|
|
72
|
-
// if String its the name of the property for existing share indicator
|
|
73
|
-
type: [ Boolean, String ],
|
|
74
|
-
default: false
|
|
75
|
-
},
|
|
76
71
|
showSize: {
|
|
77
72
|
type: Boolean,
|
|
78
73
|
default: false
|
|
@@ -85,6 +80,10 @@ export default {
|
|
|
85
80
|
type: Boolean,
|
|
86
81
|
default: false
|
|
87
82
|
},
|
|
83
|
+
shareIndicatorProperty: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: '',
|
|
86
|
+
},
|
|
88
87
|
fallbackIcon: String,
|
|
89
88
|
renameHandler: {
|
|
90
89
|
type: Function,
|
|
@@ -297,7 +296,6 @@ export default {
|
|
|
297
296
|
|
|
298
297
|
.star-icon {
|
|
299
298
|
color: #ffcb00;
|
|
300
|
-
padding: 10px;
|
|
301
299
|
visibility: hidden;
|
|
302
300
|
cursor: pointer;
|
|
303
301
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudron/pankow",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.6.
|
|
4
|
+
"version": "3.6.2",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"types": "types/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@vitejs/plugin-vue": "^6.0.3",
|
|
33
33
|
"typescript": "^5.9.3",
|
|
34
|
-
"vite": "^7.3.
|
|
34
|
+
"vite": "^7.3.1",
|
|
35
35
|
"vue": "^3.5.26"
|
|
36
36
|
}
|
|
37
37
|
}
|