Add in shares contrib also fix comment out script in partial add fix json5 python
This commit is contained in:
504
json5/Shares.json5
Normal file
504
json5/Shares.json5
Normal file
@@ -0,0 +1,504 @@
|
||||
{
|
||||
PackageName: 'Shares',
|
||||
prefix: 'sf',
|
||||
MenuHeading: 'Network',
|
||||
MenuDescription: 'Shared Folders',
|
||||
MenuNavigation: '7000 400',
|
||||
firstPanel: 'LIST',
|
||||
signalEvent: 'smeserver-shared-folders-update',
|
||||
html: [
|
||||
{
|
||||
Name: 'list',
|
||||
route: 'LIST',
|
||||
Header: 'Create, modify, or remove shared folders',
|
||||
SubHeader: 'Manage shared-folders settings:',
|
||||
Paragraph1: 'You can remove any shared folder by clicking on the corresponding command next to the shared folder.',
|
||||
Paragraph2: 'Create a new shared folder',
|
||||
Link1: {
|
||||
Type: 'Link',
|
||||
href: 'shared-folderu?trt=MODIFY',
|
||||
title: 'Create a new shared folder'
|
||||
},
|
||||
Table1: {
|
||||
Type: 'Table',
|
||||
TableControl: 'Table1',
|
||||
TopHeadings: [
|
||||
'Name',
|
||||
'Description',
|
||||
'Actionp',
|
||||
'Actionm',
|
||||
'Actionr'
|
||||
],
|
||||
Columns: [
|
||||
'Table1-Name',
|
||||
'Table1-Description',
|
||||
'Table1-Actionp',
|
||||
'Table1-Actionm',
|
||||
'Table1-Actionr'
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
Name: 'modify',
|
||||
route: 'MODIFY',
|
||||
Header: 'Create, modify, or remove shared folders',
|
||||
SubHeader: 'Create or modify a shared folder',
|
||||
Input100: {
|
||||
Type: 'Text',
|
||||
Value: 'New one',
|
||||
Name: 'description',
|
||||
Label: 'description'
|
||||
},
|
||||
Paragraph14: 'The following settings control the access of this shared folder from the local network, using the SMB/CIFS protocol.',
|
||||
Input101: {
|
||||
Type: 'Select',
|
||||
Value: '',
|
||||
Name: 'smbaccess',
|
||||
Label: 'smbaccess',
|
||||
Options: [
|
||||
{
|
||||
Value: 'browseable',
|
||||
Text: 'Enabled, browseable'
|
||||
},
|
||||
{
|
||||
Value: 'non-browseable',
|
||||
Text: 'Enabled, hidden'
|
||||
},
|
||||
{
|
||||
Value: 'none',
|
||||
Text: 'No access'
|
||||
}
|
||||
]
|
||||
},
|
||||
Input102: {
|
||||
Type: 'Select',
|
||||
Value: '',
|
||||
Name: 'recyclebin',
|
||||
Label: 'recyclebin',
|
||||
Options: [
|
||||
{
|
||||
Value: 'disabled',
|
||||
Text: 'disabled'
|
||||
},
|
||||
{
|
||||
Value: 'enabled',
|
||||
Text: 'Enabled, keep only the latest version'
|
||||
},
|
||||
{
|
||||
Value: 'keep-versions',
|
||||
Text: 'Enabled, keep a copy of all versions'
|
||||
}
|
||||
]
|
||||
},
|
||||
Input103: {
|
||||
Type: 'Select',
|
||||
Value: '',
|
||||
Name: 'retention',
|
||||
Label: 'retention',
|
||||
Options: [
|
||||
{
|
||||
Value: '30',
|
||||
Text: 'one month'
|
||||
},
|
||||
{
|
||||
Value: '7',
|
||||
Text: 'one week'
|
||||
},
|
||||
{
|
||||
Value: '365',
|
||||
Text: 'one year'
|
||||
},
|
||||
{
|
||||
Value: '180',
|
||||
Text: 'six months'
|
||||
},
|
||||
{
|
||||
Value: 'unlimited',
|
||||
Text: 'unlimited'
|
||||
}
|
||||
]
|
||||
},
|
||||
Paragraph2: 'The following settings control the access of this shared folder using the HTTP/HTTPS protocol.',
|
||||
Input104: {
|
||||
Type: 'Select',
|
||||
Value: '',
|
||||
Name: 'httpaccess',
|
||||
Label: 'httpaccess',
|
||||
Options: [
|
||||
{
|
||||
Value: 'global',
|
||||
Text: 'Entire Internet (no password required)'
|
||||
},
|
||||
{
|
||||
Value: 'global-pw',
|
||||
Text: 'Entire Internet (password required)'
|
||||
},
|
||||
{
|
||||
Value: 'global-pw-remote',
|
||||
Text: 'Entire Internet (password required outside local network)'
|
||||
},
|
||||
{
|
||||
Value: 'local',
|
||||
Text: 'Local network (no password required)'
|
||||
},
|
||||
{
|
||||
Value: 'local-pw',
|
||||
Text: 'Local network (password required)'
|
||||
},
|
||||
{
|
||||
Value: 'none',
|
||||
Text: 'No access'
|
||||
}
|
||||
]
|
||||
},
|
||||
Input105: {
|
||||
Type: 'Select',
|
||||
Value: '',
|
||||
Name: 'webdav',
|
||||
Label: 'webdav',
|
||||
Options: [
|
||||
{
|
||||
Value: 'disabled',
|
||||
Text: 'disabled'
|
||||
},
|
||||
{
|
||||
Value: 'enabled',
|
||||
Text: 'enabled'
|
||||
}
|
||||
]
|
||||
},
|
||||
Input106: {
|
||||
Type: 'Select',
|
||||
Value: '',
|
||||
Name: 'requireSSL',
|
||||
Label: 'requireSSL',
|
||||
Options: [
|
||||
{
|
||||
Value: 'disabled',
|
||||
Text: 'disabled'
|
||||
},
|
||||
{
|
||||
Value: 'enabled',
|
||||
Text: 'enabled'
|
||||
}
|
||||
]
|
||||
},
|
||||
Input107: {
|
||||
Type: 'Select',
|
||||
Value: '',
|
||||
Name: 'indexes',
|
||||
Label: 'indexes',
|
||||
Options: [
|
||||
{
|
||||
Value: 'disabled',
|
||||
Text: 'disabled'
|
||||
},
|
||||
{
|
||||
Value: 'enabled',
|
||||
Text: 'enabled'
|
||||
}
|
||||
]
|
||||
},
|
||||
Input108: {
|
||||
Type: 'Select',
|
||||
Value: '',
|
||||
Name: 'dynamic',
|
||||
Label: 'dynamic',
|
||||
Options: [
|
||||
{
|
||||
Value: 'disabled',
|
||||
Text: 'disabled'
|
||||
},
|
||||
{
|
||||
Value: 'enabled',
|
||||
Text: 'enabled'
|
||||
}
|
||||
]
|
||||
},
|
||||
Input109: {
|
||||
Type: 'Submit',
|
||||
Value: 'Save',
|
||||
Name: 'Next',
|
||||
Label: 'Next'
|
||||
}
|
||||
},
|
||||
{
|
||||
Name: 'permissions',
|
||||
route: 'PERMISSIONS',
|
||||
Header: 'Create, modify, or remove shared folders',
|
||||
SubHeader: 'Access right management',
|
||||
Paragraph10: 'You can use this matrix to define groups and users access permissions.',
|
||||
Table2: {
|
||||
Type: 'Table',
|
||||
TableControl: 'Table2',
|
||||
TopHeadings: [
|
||||
'Groups',
|
||||
'Description',
|
||||
'Read / Write',
|
||||
'Read Only'
|
||||
],
|
||||
Columns: [
|
||||
'Table2-Groups',
|
||||
'Table2-Description',
|
||||
'Table2-Read / Write',
|
||||
'Table2-Read Only'
|
||||
]
|
||||
},
|
||||
Input110: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'shared',
|
||||
Name: 'writegroup',
|
||||
Label: 'writegroup'
|
||||
},
|
||||
Input111: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'shared',
|
||||
Name: 'readgroup',
|
||||
Label: 'readgroup'
|
||||
},
|
||||
Input112: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'changeofkey',
|
||||
Name: 'writegroup',
|
||||
Label: 'writegroup'
|
||||
},
|
||||
Input113: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'changeofkey',
|
||||
Name: 'readgroup',
|
||||
Label: 'readgroup'
|
||||
},
|
||||
Input114: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'domainadmins',
|
||||
Name: 'writegroup',
|
||||
Label: 'writegroup'
|
||||
},
|
||||
Input115: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'domainadmins',
|
||||
Name: 'readgroup',
|
||||
Label: 'readgroup'
|
||||
},
|
||||
Input116: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'ecmw2023grp',
|
||||
Name: 'writegroup',
|
||||
Label: 'writegroup'
|
||||
},
|
||||
Input117: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'ecmw2023grp',
|
||||
Name: 'readgroup',
|
||||
Label: 'readgroup'
|
||||
},
|
||||
Input118: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'miwgrp',
|
||||
Name: 'writegroup',
|
||||
Label: 'writegroup'
|
||||
},
|
||||
Input119: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'miwgrp',
|
||||
Name: 'readgroup',
|
||||
Label: 'readgroup'
|
||||
},
|
||||
Input120: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'brianr',
|
||||
Name: 'writeuser',
|
||||
Label: 'writeuser'
|
||||
},
|
||||
Input121: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'brianr',
|
||||
Name: 'readuser',
|
||||
Label: 'readuser'
|
||||
},
|
||||
Input122: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'cok1',
|
||||
Name: 'writeuser',
|
||||
Label: 'writeuser'
|
||||
},
|
||||
Input123: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'cok1',
|
||||
Name: 'readuser',
|
||||
Label: 'readuser'
|
||||
},
|
||||
Input124: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'cok2',
|
||||
Name: 'writeuser',
|
||||
Label: 'writeuser'
|
||||
},
|
||||
Input125: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'cok2',
|
||||
Name: 'readuser',
|
||||
Label: 'readuser'
|
||||
},
|
||||
Input126: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'dmarc',
|
||||
Name: 'writeuser',
|
||||
Label: 'writeuser'
|
||||
},
|
||||
Input127: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'dmarc',
|
||||
Name: 'readuser',
|
||||
Label: 'readuser'
|
||||
},
|
||||
Input128: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'ecmw2025',
|
||||
Name: 'writeuser',
|
||||
Label: 'writeuser'
|
||||
},
|
||||
Input129: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'ecmw2025',
|
||||
Name: 'readuser',
|
||||
Label: 'readuser'
|
||||
},
|
||||
Input130: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'englishcountrymusicweekend',
|
||||
Name: 'writeuser',
|
||||
Label: 'writeuser'
|
||||
},
|
||||
Input131: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'englishcountrymusicweekend',
|
||||
Name: 'readuser',
|
||||
Label: 'readuser'
|
||||
},
|
||||
Input132: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'guest',
|
||||
Name: 'writeuser',
|
||||
Label: 'writeuser'
|
||||
},
|
||||
Input133: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'guest',
|
||||
Name: 'readuser',
|
||||
Label: 'readuser'
|
||||
},
|
||||
Input134: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'katy',
|
||||
Name: 'writeuser',
|
||||
Label: 'writeuser'
|
||||
},
|
||||
Input135: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'katy',
|
||||
Name: 'readuser',
|
||||
Label: 'readuser'
|
||||
},
|
||||
Input136: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'more',
|
||||
Name: 'writeuser',
|
||||
Label: 'writeuser'
|
||||
},
|
||||
Input137: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'more',
|
||||
Name: 'readuser',
|
||||
Label: 'readuser'
|
||||
},
|
||||
Input138: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'nikki',
|
||||
Name: 'writeuser',
|
||||
Label: 'writeuser'
|
||||
},
|
||||
Input139: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'nikki',
|
||||
Name: 'readuser',
|
||||
Label: 'readuser'
|
||||
},
|
||||
Input140: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'phil',
|
||||
Name: 'writeuser',
|
||||
Label: 'writeuser'
|
||||
},
|
||||
Input141: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'phil',
|
||||
Name: 'readuser',
|
||||
Label: 'readuser'
|
||||
},
|
||||
Input142: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'sheila',
|
||||
Name: 'writeuser',
|
||||
Label: 'writeuser'
|
||||
},
|
||||
Input143: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'sheila',
|
||||
Name: 'readuser',
|
||||
Label: 'readuser'
|
||||
},
|
||||
Input144: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'smeserver',
|
||||
Name: 'writeuser',
|
||||
Label: 'writeuser'
|
||||
},
|
||||
Input145: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'smeserver',
|
||||
Name: 'readuser',
|
||||
Label: 'readuser'
|
||||
},
|
||||
Input146: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'zara.healy',
|
||||
Name: 'writeuser',
|
||||
Label: 'writeuser'
|
||||
},
|
||||
Input147: {
|
||||
Type: 'Checkbox',
|
||||
Value: 'zara.healy',
|
||||
Name: 'readuser',
|
||||
Label: 'readuser'
|
||||
},
|
||||
Input148: {
|
||||
Type: 'Submit',
|
||||
Value: 'Save',
|
||||
Name: 'Next',
|
||||
Label: 'Next'
|
||||
}
|
||||
},
|
||||
{
|
||||
Name: 'remove',
|
||||
route: 'REMOVE',
|
||||
Header: 'Create, modify, or remove shared folders',
|
||||
SubHeader: 'Remove shared folder',
|
||||
Paragraph11: 'You are about to remove the following shared folder',
|
||||
Paragraph21: 'All files belonging to this shared folder will be deleted.',
|
||||
Paragraph31: 'Are you sure you wish to remove it ?',
|
||||
Input149: {
|
||||
Type: 'Submit',
|
||||
Value: 'Cancel',
|
||||
Name: 'cancel',
|
||||
Label: 'cancel'
|
||||
},
|
||||
Input150: {
|
||||
Type: 'Submit',
|
||||
Value: 'Remove',
|
||||
Name: 'remove',
|
||||
Label: 'remove'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user