فهرست منبع

Added TorrentA webapp template

TC pushbot 5 4 سال پیش
والد
کامیت
b63c679192

BIN
web/TorrentA/img/desktop_icon.png


BIN
web/TorrentA/img/desktop_icon.psd


BIN
web/TorrentA/img/function_icon.png


BIN
web/TorrentA/img/function_icon.psd


BIN
web/TorrentA/img/small_icon.png


BIN
web/TorrentA/img/small_icon.psd


+ 37 - 0
web/TorrentA/index.html

@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta name="apple-mobile-web-app-capable" content="yes" />
+        <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1"/>
+        <meta charset="UTF-8">
+        <meta name="theme-color" content="#4b75ff">
+        <link rel="stylesheet" href="../script/semantic/semantic.min.css">
+        <script src="../script/jquery.min.js"></script>
+        <script src="../script/ao_module.js"></script>
+        <script src="../script/semantic/semantic.min.js"></script>
+        <title>TorrentA</title>
+        <style>
+            body{
+                background-color:white;
+            }
+        </style>
+    </head>
+    <body>
+        <br>
+        <div class="ui container">
+            <h1>Hello World</h1>
+            <p>This WebApp is still work in progress</p>
+        </div>
+        
+        <script>
+            var flist = ao_module_loadInputFiles();
+            if (flist == null){
+                
+            }else{
+               
+            }
+
+         
+        </script>
+    </body>
+</html>

+ 29 - 0
web/TorrentA/init.agi

@@ -0,0 +1,29 @@
+/*
+	TorrentA 
+	authro: tobychui
+
+	
+*/
+
+
+//Define the launchInfo for the module
+var moduleLaunchInfo = {
+    Name: "TorrentA",
+	Group: "Download",
+	IconPath: "TorrentA/img/small_icon.png",
+	Version: "0.1",
+	StartDir: "TorrentA/index.html",
+	SupportFW: true,
+	LaunchFWDir: "TorrentA/index.html",
+	SupportEmb: true,
+	LaunchEmb: "TorrentA/embedded.html",
+	InitFWSize: [1150, 640],
+	InitEmbSize: [1150, 640],
+	SupportedExt: [".torrent"]
+}
+
+//Require aria2
+requirepkg("aria2",true)
+
+//Register the module
+registerModule(JSON.stringify(moduleLaunchInfo));