Pārlūkot izejas kodu

updated version number & merged MS OFfice

Toby Chui 3 gadi atpakaļ
vecāks
revīzija
cc78e28c7e

+ 0 - 0
web/SystemAO/reverse_proxy_disabled/img/desktop_icon.png → legacy/reverse_proxy_disabled/img/desktop_icon.png


+ 0 - 0
web/SystemAO/reverse_proxy_disabled/img/desktop_icon.psd → legacy/reverse_proxy_disabled/img/desktop_icon.psd


+ 0 - 0
web/SystemAO/reverse_proxy_disabled/img/small_icon.png → legacy/reverse_proxy_disabled/img/small_icon.png


+ 0 - 0
web/SystemAO/reverse_proxy_disabled/img/small_icon.psd → legacy/reverse_proxy_disabled/img/small_icon.psd


+ 0 - 0
web/SystemAO/reverse_proxy_disabled/index.html → legacy/reverse_proxy_disabled/index.html


+ 0 - 0
reverseproxy.go_disabled → legacy/reverseproxy.go_disabled


+ 1 - 1
main.flags.go

@@ -28,7 +28,7 @@ var subserviceBasePort = 12810            //Next subservice port
 
 // =========== SYSTEM BUILD INFORMATION ==============
 var build_version = "development"                      //System build flag, this can be either {development / production / stable}
-var internal_version = "0.1.117"                       //Internal build version, [fork_id].[major_release_no].[minor_release_no]
+var internal_version = "0.1.118"                       //Internal build version, [fork_id].[major_release_no].[minor_release_no]
 var deviceUUID string                                  //The device uuid of this host
 var deviceVendor = "IMUSLAB.INC"                       //Vendor of the system
 var deviceVendorURL = "http://imuslab.com"             //Vendor contact information

BIN
web/MS Office Viewer/img/desktop_icon.png


BIN
web/MS Office Viewer/img/desktop_icon.psd


BIN
web/MS Office Viewer/img/icon.png


BIN
web/MS Office Viewer/img/icon.psd


+ 0 - 0
web/MS Office Viewer/index.html


+ 27 - 0
web/MS Office Viewer/init.agi

@@ -0,0 +1,27 @@
+/*
+	MS Office Viewer
+
+	Copyright 2021 ArozOS Project
+    
+	Simple adapter for adapting the Office 365 online viewer API to ArozOS
+*/
+
+
+//Define the launchInfo for the module
+var moduleLaunchInfo = {
+    Name: "MS Office Viewer",
+	Desc: "MS Office 365 Adapter",
+	Group: "office",
+	IconPath: "MS Office Viewer/img/icon.png",
+	Version: "3.0",
+	StartDir: "MS Office Viewer/index.html",
+	SupportFW: true,
+	LaunchFWDir: "MS Office Viewer/index.html",
+	SupportEmb: true,
+    LaunchEmb: "MS Office Viewer/viewer.html",
+	InitFWSize: [1080, 580],
+	SupportedExt: [".doc", ".docx", ".xlsx",".xls",".pptx", ".ppt"]
+}
+
+//Register the module
+registerModule(JSON.stringify(moduleLaunchInfo));

+ 28 - 0
web/MS Office Viewer/viewer.html

@@ -0,0 +1,28 @@
+<html>
+    <head>
+        <title>Loading File...</title>
+        <script src="../script/jquery.min.js"></script>
+        <script src="../script/ao_module.js"></script>
+    </head>
+    <body>
+        <script>
+            //Check and load the file
+            var infile = ao_module_loadInputFiles();
+            if (infile == null){
+                //back to index
+                window.location.href = "index.html";
+            }else{
+                //OK! Read the file content
+                ao_module_setWindowTitle(infile[0].filename);
+
+                //Request tempShare API (WIP)
+
+                //Get share link
+
+                //Redirect to office embedded interface
+                window.location.href = "https://view.officeapps.live.com/op/embed.aspx?src=https://pptx.js.org/pages/Sample_demo1.pptx"
+            }
+            //https://view.officeapps.live.com/op/embed.aspx?src=
+        </script>
+    </body>
+</html>