File tree 11 files changed +130
-106
lines changed 11 files changed +130
-106
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " laravel-file-manager" ,
3
- "version" : " 2.0.6 " ,
3
+ "version" : " 2.1.0 " ,
4
4
"description" : " File manager for Laravel" ,
5
5
"keywords" : [
6
6
" laravel" ,
Original file line number Diff line number Diff line change 17
17
v-on:dblclick.stop =" selectDirectory(directory.path)"
18
18
v-on:contextmenu.prevent =" contextMenu(directory, $event)" >
19
19
<div class =" fm-item-icon" >
20
- <i class =" far fa-folder fa-5x pb-2" ></i >
20
+ <i class =" fa-5x pb-2"
21
+ v-bind:class =" (acl && directory.acl === 0) ? 'fas fa-unlock-alt' : 'far fa-folder'" ></i >
21
22
</div >
22
23
<div class =" fm-item-info" >{{ directory.basename }}</div >
23
24
</div >
31
32
v-on:dblclick =" selectAction(file.path, file.extension)"
32
33
v-on:contextmenu.prevent =" contextMenu(file, $event)" >
33
34
<div class =" fm-item-icon" >
34
- <template v-if =" thisImage (file .extension )" >
35
+ <template v-if =" acl && file .acl === 0 " >
36
+ <i class =" fas fa-unlock-alt fa-5x pb-2" ></i >
37
+ </template >
38
+ <template v-else-if =" thisImage (file .extension )" >
35
39
<img class =" img-thumbnail"
36
40
v-bind:alt =" file.filename"
37
41
v-bind:src =" createImgUrl(file.path)" >
Original file line number Diff line number Diff line change 53
53
v-on:click =" selectItem('directories', directory.path, $event)"
54
54
v-on:contextmenu.prevent =" contextMenu(directory, $event)" >
55
55
<td class =" fm-content-item unselectable"
56
+ v-bind:class =" (acl && directory.acl === 0) ? 'text-hidden' : ''"
56
57
v-on:dblclick =" selectDirectory(directory.path)" >
57
58
<i class =" far fa-folder" ></i > {{ directory.basename }}
58
59
</td >
68
69
v-on:click =" selectItem('files', file.path, $event)"
69
70
v-on:dblclick =" selectAction(file.path, file.extension)"
70
71
v-on:contextmenu.prevent =" contextMenu(file, $event)" >
71
- <td class =" fm-content-item unselectable" >
72
+ <td class =" fm-content-item unselectable"
73
+ v-bind:class =" (acl && file.acl === 0) ? 'text-hidden' : ''" >
72
74
<i class =" far"
73
75
v-bind:class =" extensionToIcon(file.extension)" ></i >
74
76
{{ file.filename ? file.filename : file.basename }}
@@ -158,5 +160,9 @@ export default {
158
160
.fm-content-item {
159
161
cursor : pointer ;
160
162
}
163
+
164
+ .text-hidden {
165
+ color : #cdcdcd ;
166
+ }
161
167
}
162
168
</style >
Original file line number Diff line number Diff line change @@ -42,6 +42,13 @@ export default {
42
42
selected ( ) {
43
43
return this . $store . state . fm [ this . manager ] . selected ;
44
44
} ,
45
+
46
+ /**
47
+ * ACL On/Off
48
+ */
49
+ acl ( ) {
50
+ return this . $store . state . fm . settings . acl ;
51
+ } ,
45
52
} ,
46
53
methods : {
47
54
/**
Original file line number Diff line number Diff line change 26
26
<dt class =" col-3" >{{ lang.modal.properties.modified }}:</dt >
27
27
<dd class =" col-9" >{{ timestampToDate(selectedItem.timestamp) }}</dd >
28
28
</template >
29
+
30
+ <template v-if =" selectedItem .hasOwnProperty (' acl' )" >
31
+ <dt class =" col-3" >{{ lang.modal.properties.access }}:</dt >
32
+ <dd class =" col-9" >{{ lang.modal.properties['access_' + selectedItem.acl] }}</dd >
33
+ </template >
29
34
</dl >
30
35
</div >
31
36
</div >
Original file line number Diff line number Diff line change @@ -97,6 +97,10 @@ const ar = {
97
97
size : 'حجم' ,
98
98
title : 'خصائص' ,
99
99
type : 'نوع' ,
100
+ access : 'Access' ,
101
+ access_0 : 'Access denied' ,
102
+ access_1 : 'Only Read' ,
103
+ access_2 : 'Read and Write' ,
100
104
} ,
101
105
rename : {
102
106
directoryExist : 'المجلد موجود' ,
Original file line number Diff line number Diff line change @@ -97,6 +97,10 @@ const en = {
97
97
size : 'Size' ,
98
98
title : 'Properties' ,
99
99
type : 'Type' ,
100
+ access : 'Access' ,
101
+ access_0 : 'Access denied' ,
102
+ access_1 : 'Only Read' ,
103
+ access_2 : 'Read and Write' ,
100
104
} ,
101
105
rename : {
102
106
directoryExist : 'Directory exists' ,
Original file line number Diff line number Diff line change @@ -97,6 +97,10 @@ const ru = {
97
97
size : 'Размер' ,
98
98
title : 'Свойства' ,
99
99
type : 'Тип' ,
100
+ access : 'Доступ' ,
101
+ access_0 : 'Нет доступа' ,
102
+ access_1 : 'Только чтение' ,
103
+ access_2 : 'Чтение и Запись' ,
100
104
} ,
101
105
rename : {
102
106
directoryExist : 'Папка существует' ,
Original file line number Diff line number Diff line change @@ -63,5 +63,6 @@ export default {
63
63
initSettings ( state , data ) {
64
64
if ( ! state . lang ) state . lang = data . lang ;
65
65
if ( ! state . windowsConfig ) state . windowsConfig = data . windowsConfig ;
66
+ state . acl = data . acl ;
66
67
} ,
67
68
} ;
Original file line number Diff line number Diff line change @@ -10,8 +10,11 @@ export default {
10
10
namespaced : true ,
11
11
state ( ) {
12
12
return {
13
+ // ACL
14
+ acl : null ,
15
+
13
16
// App version
14
- version : '2.0.6 ' ,
17
+ version : '2.1.0 ' ,
15
18
16
19
// this headers will be merged with default headers
17
20
headers : { } ,
You can’t perform that action at this time.
0 commit comments