144 lines
4.2 KiB
JSON
Executable File
144 lines
4.2 KiB
JSON
Executable File
{
|
|
"id":"officeViewer",
|
|
"name":"{{LNG['officeViewer.meta.name']}}",
|
|
"title":"{{LNG['officeViewer.meta.title']}}",
|
|
"version":"1.28",
|
|
"category":"file",
|
|
"source":{
|
|
"icon":"{{pluginHost}}static/images/icon.png"
|
|
},
|
|
"description":"{{LNG['officeViewer.meta.desc']}}",
|
|
"auther":{
|
|
"copyright":"kodcloud",
|
|
"homePage":"http://kodcloud.com"
|
|
},
|
|
"networkDesc": "{{LNG['officeViewer.meta.netwrokDesc']}}",
|
|
"configItem":{
|
|
"formStyle":{
|
|
"className":"form-box-title-left",
|
|
"tabs":{
|
|
"{{LNG['admin.setting.base']}}":"pluginAuth,sep001,openWith,fileSort,fileExt",
|
|
"{{LNG['officeViewer.meta.service']}}":"openType,sep002,wbDesc,wbFileExt,lbOpen,lbSoffice,lbFileExt,olOpen,olApiServer,olFileExt,yzOpen,yzFileExt"
|
|
},
|
|
"loadFile":"{{pluginHost}}static/libreoffice/check.js"
|
|
},
|
|
"pluginAuth":{
|
|
"type":"userSelect",
|
|
"value":{"all":1},
|
|
"display":"{{LNG['admin.plugin.auth']}}",
|
|
"desc":"{{LNG['admin.plugin.authDesc']}}",
|
|
"require":1
|
|
},
|
|
"sep001":"<hr/>",
|
|
"openWith":{
|
|
"type":"radio",
|
|
"value":"dialog",
|
|
"display":"{{LNG['admin.plugin.openWith']}}",
|
|
"info":{
|
|
"dialog":"{{LNG['admin.plugin.openWithDilog']}}",
|
|
"window":"{{LNG['admin.plugin.openWithWindow']}}"
|
|
}
|
|
},
|
|
"fileSort":{
|
|
"type":"number",
|
|
"display":"{{LNG['admin.plugin.fileSort']}}",
|
|
"desc":"{{LNG['admin.plugin.fileSortDesc']}}",
|
|
"value":1000
|
|
},
|
|
"fileExt":{
|
|
"type":"tags",
|
|
"display":"{{LNG['admin.plugin.fileExt']}}",
|
|
"desc":"{{LNG['admin.plugin.fileExtDesc']}}",
|
|
"className": "hidden",
|
|
"value":"docx,doc,xlsx,xls,csv,pptx,ppt"
|
|
},
|
|
|
|
"openType":{
|
|
"type":"segment",
|
|
"value":"wb",
|
|
"display":"{{LNG['officeViewer.meta.openType']}}",
|
|
"info":{
|
|
"wb":"{{LNG['officeViewer.webOffice.name']}}", // WebOffice->自动解析
|
|
"lb":"LibreOffice",
|
|
"ol":"OfficeLive",
|
|
"yz":"{{LNG['officeViewer.yzOffice.name']}}"
|
|
},
|
|
"switchItem":{
|
|
"wb":"wbDesc,wbFileExt",
|
|
"lb":"lbOpen,lbSoffice,lbFileExt",
|
|
"ol":"olOpen,olApiServer,olFileExt",
|
|
"yz":"yzOpen,yzFileExt"
|
|
}
|
|
},
|
|
"sep002":"<hr/>",
|
|
|
|
"wbDesc":{
|
|
"type":"html",
|
|
"display":"{{LNG['officeViewer.meta.instruction']}}",
|
|
"desc":"{{LNG['officeViewer.webOffice.desc']}}"
|
|
},
|
|
"wbFileExt":{
|
|
"type":"tags",
|
|
"display":"{{LNG['admin.plugin.fileExt']}}",
|
|
"desc":"{{LNG['admin.plugin.fileExtDesc']}}",
|
|
"value":"docx,doc,xlsx,xls,csv,pptx,ppt"
|
|
},
|
|
|
|
"lbOpen":{
|
|
"type":"switch",
|
|
"value":1,
|
|
"display":"启用服务",
|
|
"desc":"{{LNG['officeViewer.libreOffice.desc']}}",
|
|
"switchItem":{"0":"","1":"lbSoffice,lbFileExt"}
|
|
},
|
|
"lbSoffice":{
|
|
"type":"input",
|
|
"value":"/opt/libreoffice7.5/program/soffice",
|
|
"attr":{"placeholder":"/opt/libreoffice7.5/program/soffice"},
|
|
"display":"{{LNG['officeViewer.libreOffice.path']}}",
|
|
"desc":"{{LNG['officeViewer.libreOffice.pathDesc']}}"
|
|
},
|
|
"lbFileExt":{
|
|
"type":"tags",
|
|
"display":"{{LNG['admin.plugin.fileExt']}}",
|
|
"desc":"{{LNG['admin.plugin.fileExtDesc']}}",
|
|
"value":"doc,docx,ods,xls,xlsx,odt,ppt,pps,pptx,odp,rtf,csv,tsv"
|
|
},
|
|
|
|
"olOpen":{
|
|
"type":"switch",
|
|
"value":1,
|
|
"display":"启用服务",
|
|
"desc":"{{LNG['officeViewer.officeLive.desc']}}",
|
|
"switchItem":{"0":"","1":"olApiServer,olFileExt"}
|
|
},
|
|
"olApiServer":{
|
|
"type":"input",
|
|
"value":"https://view.officeapps.live.com/op/embed.aspx?src=",
|
|
"display":"{{LNG['officeViewer.officeLive.apiServer']}}",
|
|
"desc":"{{LNG['officeViewer.officeLive.apiServerDesc']}}",
|
|
"require":1
|
|
},
|
|
"olFileExt":{
|
|
"type":"tags",
|
|
"display":"{{LNG['admin.plugin.fileExt']}}",
|
|
"desc":"{{LNG['admin.plugin.fileExtDesc']}}",
|
|
"value":"doc,docx,docm,dot,dotx,dotm,rtf,xls,xlsx,xlt,xlsb,xlsm,csv,ppt,pptx,pps,ppsx,pptm,potm,ppam,potx,ppsm,odt,ods,odp,ott,ots,otp,wps,wpt"
|
|
},
|
|
|
|
"yzOpen":{
|
|
"type":"switch",
|
|
"value":1,
|
|
"display":"启用服务",
|
|
"desc":"{{LNG['officeViewer.yzOffice.desc']}}",
|
|
"switchItem":{"0":"","1":"yzFileExt"}
|
|
},
|
|
"yzFileExt":{
|
|
"type":"tags",
|
|
"display":"{{LNG['admin.plugin.fileExt']}}",
|
|
"desc":"{{LNG['admin.plugin.fileExtDesc']}}",
|
|
"value":"doc,docx,docm,dot,dotx,dotm,rtf,wps,wpt,xls,xlsx,xlt,xlsm,csv,ppt,pptx,pps,ppsx"
|
|
}
|
|
}
|
|
}
|