{
	"id":"officeViewer",
	"name":"{{LNG['officeViewer.meta.name']}}",
	"title":"{{LNG['officeViewer.meta.title']}}",
	"version":"1.18",
	"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,lbDesc,lbSoffice,lbFileExt,olDesc,olApiServer,olFileExt,yzDesc,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":100
		},
		"fileExt":{
			"type":"tags",
			"display":"{{LNG['admin.plugin.fileExt']}}",
			"desc":"{{LNG['admin.plugin.fileExtDesc']}}",
			"className": "hidden",
			"value":"doc,docx,xls,xlsx,ppt,pptx,csv"
		},

		"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":"lbDesc,lbSoffice,lbFileExt",
				"ol":"olDesc,olApiServer,olFileExt",
				"yz":"yzDesc,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":"doc,docx,xls,xlsx,ppt,pptx,csv"
		},

		"lbDesc":{
			"type":"html",
			"display":"{{LNG['officeViewer.meta.instruction']}}",
			"desc":"{{LNG['officeViewer.libreOffice.desc']}}"
		},
		"lbSoffice":{
			"type":"input",
			"value":"",
			"attr":{"placeholder":"/usr/lib64/libreoffice/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"
		},

		"olDesc":{
			"type":"html",
			"display":"{{LNG['officeViewer.meta.instruction']}}",
			"desc":"{{LNG['officeViewer.officeLive.desc']}}"
		},
		"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"
		},

		"yzDesc":{
			"type":"html",
			"display":"{{LNG['officeViewer.meta.instruction']}}",
			"desc":"{{LNG['officeViewer.yzOffice.desc']}}"
		},
		"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"
		}
	}
}
