Add in preformat and sm1 html to json5 extractor program
This commit is contained in:
61
json5/CreateStarterWebsite.json5
Normal file
61
json5/CreateStarterWebsite.json5
Normal file
@@ -0,0 +1,61 @@
|
||||
{
|
||||
'PackageName': 'CreateStarterWebsite',
|
||||
'prefix': 'CSW',
|
||||
'MenuHeading': 'Miscellaneous',
|
||||
'MenuDescription': 'Create Starter Website',
|
||||
'MenuNavigation': '2000 400',
|
||||
'firstPanel': 'PARAMS',
|
||||
'signalEvent': 'smeserver-createstarterwebsite-update',
|
||||
'html': {
|
||||
'Name': 'params',
|
||||
'route': 'PARAMS',
|
||||
'Header': 'Create a starter website',
|
||||
'SubHeader': 'Manage CreateStarterWebsite settings:',
|
||||
'Paragraph1': 'To create a simple web page for your company, fill \n\t in the fields below and click onCreate.',
|
||||
'Paragraph2': 'You can leave any field blank if you do not need it.',
|
||||
'Paragraph3': 'The text that you enter below will be line wrapped \n\t for a nicer appearance in your web page. Leave a blank line \n\t whenever you want to start a new paragraph. If you need \n\t to force a line break without starting a new paragraph (for \n\t example after each line of a mailing address), then type \n\t the four-character sequence',
|
||||
'Paragraph4': 'Do not use this optionif you have already customized your web site, since it will \n\t overwrite the \'index.htm\' file in your web site directory.',
|
||||
'Input1': {
|
||||
'Type': 'Text',
|
||||
'Value': '',
|
||||
'Name': 'companyName',
|
||||
'Label': null
|
||||
},
|
||||
'Paragraph5': 'First header, typically used for short phrases such \n\t as \'Leader in the field of textile manufacturing\'',
|
||||
'Input2': {
|
||||
'Type': 'Text',
|
||||
'Value': '',
|
||||
'Name': 'header1',
|
||||
'Label': null
|
||||
},
|
||||
'Paragraph6': 'Text following first header, typically used for a \n\t paragraph of marketing information.',
|
||||
'Input3': {
|
||||
'Type': 'Textarea',
|
||||
'Value': '',
|
||||
'Name': 'text1',
|
||||
'Label': null
|
||||
},
|
||||
'Paragraph7': 'Second header, typically used for short phrases such \n\t as \'For more information\' or \'To order our products\':',
|
||||
'Input4': {
|
||||
'Type': 'Text',
|
||||
'Value': '',
|
||||
'Name': 'header2',
|
||||
'Label': null
|
||||
},
|
||||
'Paragraph8': 'Text following second header, typically used for contact \n\t or ordering information:',
|
||||
'Input5': {
|
||||
'Type': 'Textarea',
|
||||
'Value': '',
|
||||
'Name': 'text2',
|
||||
'Label': null
|
||||
},
|
||||
'Paragraph9': 'When you create this web page, the file\n\t \'index.htm\' will be overwritten\n\t in your web site directory.',
|
||||
'Paragraph10': 'Do you wish to proceed?',
|
||||
'Input6': {
|
||||
'Type': 'Submit',
|
||||
'Value': 'Create',
|
||||
'Name': 'Next',
|
||||
'Label': null
|
||||
}
|
||||
}
|
||||
}
|
47
json5/DiskUsage.json5
Normal file
47
json5/DiskUsage.json5
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
'PackageName': 'DiskUsage',
|
||||
'prefix': 'DU',
|
||||
'MenuHeading': 'Miscellaneous',
|
||||
'MenuDescription': 'Disk Usage',
|
||||
'MenuNavigation': '2000 400',
|
||||
'firstPanel': 'PARAMS',
|
||||
'signalEvent': 'smeserver-diskusage-update',
|
||||
'html': {
|
||||
'Name': 'params',
|
||||
'route': 'PARAMS',
|
||||
'Header': 'Disk usage',
|
||||
'SubHeader': 'Manage DiskUsage settings:',
|
||||
'Paragraph1': ' ',
|
||||
'Paragraph2': 'Wed Sep 11 19:01:00 BST 2024',
|
||||
'Preformatted1': 'Filesystem Size Used Avail Use% Mounted on\n/dev/mapper/main-root 29G 4.8G 24G 17% /\ndevtmpfs 2.0G 0 2.0G 0% /dev\ntmpfs 2.0G 12K 2.0G 1% /dev/shm\ntmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup\ntmpfs 2.0G 648K 2.0G 1% /run\n/dev/sda1 497M 111M 386M 23% /boot',
|
||||
'Table1': {
|
||||
'Type': 'Table',
|
||||
'TableControl': 'Table1',
|
||||
'TopHeadings': [
|
||||
'I-bays',
|
||||
'Usage',
|
||||
'Path'
|
||||
],
|
||||
'Columns': [
|
||||
'Table1-I-bays',
|
||||
'Table1-Usage',
|
||||
'Table1-Path'
|
||||
]
|
||||
},
|
||||
'Paragraph3': ' ',
|
||||
'Table2': {
|
||||
'Type': 'Table',
|
||||
'TableControl': 'Table2',
|
||||
'TopHeadings': [
|
||||
'Users',
|
||||
'Usage',
|
||||
'Path'
|
||||
],
|
||||
'Columns': [
|
||||
'Table2-Users',
|
||||
'Table2-Usage',
|
||||
'Table2-Path'
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
147
json5/nfsshare.json5
Normal file
147
json5/nfsshare.json5
Normal file
@@ -0,0 +1,147 @@
|
||||
{
|
||||
PackageName: 'Nfsshare',
|
||||
prefix: 'nfs',
|
||||
MenuHeading: 'Network',
|
||||
MenuDescription: 'NFS data share',
|
||||
MenuNavigation: '2000 400',
|
||||
firstPanel: 'TABLE',
|
||||
signalEvent: 'smeserver-nfsshare-update',
|
||||
html: [
|
||||
{
|
||||
Name: 'params',
|
||||
route: 'PARAMS',
|
||||
Header: 'NFS Share Contrib',
|
||||
SubHeader: 'Manage NFS Ibay settings:',
|
||||
Paragraph1: 'These parameters will be effective only if the share is enabled. The share is in /home/e-smith/files/ibays//files',
|
||||
Input1: {
|
||||
Name: 'IbayName',
|
||||
Type: 'Text',
|
||||
Label: 'Information Bay name',
|
||||
Value: 'stash("IbayName")',
|
||||
},
|
||||
Input2: {
|
||||
Name: 'ShareOwnerGrp',
|
||||
Type: 'Selection',
|
||||
Label: 'Share owner Group',
|
||||
Value: [
|
||||
'Write = admin, Read = group',
|
||||
'Write = group, Read = everyone',
|
||||
'Write = group, Read = group',
|
||||
],
|
||||
Default: 0,
|
||||
},
|
||||
Input3: {
|
||||
Name: 'EnableNFSshare',
|
||||
Type: 'Selection',
|
||||
Label: 'Enable the NFS Share',
|
||||
Value: [
|
||||
'Disabled',
|
||||
'Enabled',
|
||||
],
|
||||
Default: 0,
|
||||
},
|
||||
Input4: {
|
||||
Name: 'ShareOnLocalNetwork',
|
||||
Type: 'Selection',
|
||||
Label: 'EnableShare on local network',
|
||||
Value: [
|
||||
'Disabled',
|
||||
'Enabled',
|
||||
],
|
||||
Default: 0,
|
||||
},
|
||||
Paragraph2: 'For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s).',
|
||||
Input5: {
|
||||
Name: 'NFSClientsAllowed',
|
||||
Type: 'Textarea',
|
||||
Label: 'NFS Client(s) allowed',
|
||||
rows : 5
|
||||
},
|
||||
Input6: {
|
||||
Name: 'FileSystemPermissions',
|
||||
Type: 'Selection',
|
||||
Label: 'File system permissions',
|
||||
Value: [
|
||||
'Read only',
|
||||
'Read and Write',
|
||||
],
|
||||
Default: 0,
|
||||
},
|
||||
Input7: {
|
||||
Name: 'WriteAsync',
|
||||
Type: 'Selection',
|
||||
Label: 'Write (a)synchronously',
|
||||
Value: [
|
||||
'Synchronous',
|
||||
'Asynchronous',
|
||||
],
|
||||
},
|
||||
Input8: {
|
||||
Name: 'DelayWrite',
|
||||
Type: 'Selection',
|
||||
Label: 'Delays the disk writing',
|
||||
Value: [
|
||||
'Write delay',
|
||||
'No write delay',
|
||||
],
|
||||
Default: 1,
|
||||
},
|
||||
Input9: {
|
||||
Name: 'Squash',
|
||||
Type: 'Selection',
|
||||
Label: 'Squash the power of users',
|
||||
Value: [
|
||||
'All users squash',
|
||||
'No root squash',
|
||||
'root squash',
|
||||
],
|
||||
Default: 2,
|
||||
},
|
||||
Input10: {
|
||||
Name: 'BrowseParents',
|
||||
Type: 'Selection',
|
||||
Label: 'Browse the parent folders',
|
||||
Value: [
|
||||
'Hide folder',
|
||||
'Show folder',
|
||||
],
|
||||
Default: 0,
|
||||
},
|
||||
Input11: {
|
||||
Name: 'SecurePorts',
|
||||
Type: 'Selection',
|
||||
Label: 'Requests on secure ports',
|
||||
Value: [
|
||||
'Secure',
|
||||
'Insecure',
|
||||
],
|
||||
Default: 0,
|
||||
},
|
||||
Paragraph3: 'Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank',
|
||||
Input12: {
|
||||
Name: 'SetUID',
|
||||
Type: 'Textinput',
|
||||
Label: 'Set the UID.',
|
||||
},
|
||||
Input13: {
|
||||
Name: 'SetGID',
|
||||
Type: 'Textinput',
|
||||
Label: 'Set the GID.',
|
||||
},
|
||||
Submit: 'Save',
|
||||
},
|
||||
{
|
||||
Name: 'select_ibay',
|
||||
route:'TABLE',
|
||||
Header: 'NFS Share Contrib',
|
||||
SubHeader: 'Manage NFS Ibay settings:',
|
||||
Nextpanel: 'PARAMS',
|
||||
Table1: {
|
||||
Type:'Table',
|
||||
TableControl:"ibays",
|
||||
TopHeadings: ['Name','Description','Nfs status', 'Action'],
|
||||
Columns: ['Name','Description','flag','Modify']
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user