]> git.proxmox.com Git - pve-manager.git/commitdiff
www: merge remaining touch files into mobile
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 28 May 2023 16:36:03 +0000 (18:36 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 28 May 2023 16:39:04 +0000 (18:39 +0200)
only the index and (empty) css files left-over, so just merge this to
where it belongs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/Makefile
www/mobile/Makefile
www/mobile/index.html.tpl [new file with mode: 0644]
www/mobile/pve.css [new file with mode: 0644]

index 84abd02703d1442f734dca84ec367dd2b0cdc19b..8c12453dd46f69d97d0792bb28f7a3276a3635d0 100644 (file)
@@ -1,5 +1,5 @@
 include ../defines.mk
-SUBDIRS = images css manager6 touch mobile
+SUBDIRS = images css manager6 mobile
 
 all:
 
index 139fed5066d8c80b32cc8d7e8c93ba40580f8d01..ce1c790a1ef697bb162cf3f7fa19a6cd0a208375 100644 (file)
@@ -32,8 +32,10 @@ pvemanager-mobile.js: ${JSSRC}
        mv $@.tmp $@
 
 .PHONY: install 
-install: pvemanager-mobile.js
+install: pvemanager-mobile.js index.html.tpl pve.css
        install -d ${WWWTOUCHDIR}
+       install -m 0644 index.html.tpl ${WWWTOUCHDIR}
+       install -m 0644 pve.css ${WWWTOUCHDIR}
        install -m 0644 pvemanager-mobile.js ${WWWTOUCHDIR}
 
 .PHONY: clean
diff --git a/www/mobile/index.html.tpl b/www/mobile/index.html.tpl
new file mode 100644 (file)
index 0000000..720d059
--- /dev/null
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <title>[% nodename %] - Proxmox Virtual Environment</title>
+
+    <link rel="icon" sizes="128x128" href="/pve2/images/logo-128.png" />
+    <link rel="apple-touch-icon" sizes="128x128" href="/pve2/images/logo-128.png" />
+    <link rel="stylesheet" type="text/css" href="/pve2/sencha-touch/resources/css/sencha-touch.css" />
+    <link rel="stylesheet" type="text/css" href="/pve2/touch/pve.css?ver=[% version %]" />
+    [% IF langfile %]
+    <script type='text/javascript' src='/pve2/locale/pve-lang-[% lang %].js'></script>
+    [% ELSE %]
+    <script type="text/javascript">function gettext(buf) { return buf; }</script>
+    [% END %]
+    <script type="text/javascript">
+    Proxmox = {
+       Setup: { auth_cookie_name: 'PVEAuthCookie' },
+       UserName: '[ % username %]',
+       CSRFPreventionToken: '[% token %]'
+    };
+    </script>
+    <script type="text/javascript" src="/pve2/sencha-touch/sencha-touch-all-debug.js"></script>
+    <script type="text/javascript" src="/proxmoxlib.js?ver=[% wtversion %]"></script>
+    <script type="text/javascript" src="/pve2/touch/pvemanager-mobile.js?ver=[% version %]"></script>
+    <script type="text/javascript">
+if (typeof(PVE) === 'undefined') PVE = {};
+    </script>
+  </head>
+  <body>
+  </body>
+</html>
diff --git a/www/mobile/pve.css b/www/mobile/pve.css
new file mode 100644 (file)
index 0000000..a62bd9f
--- /dev/null
@@ -0,0 +1 @@
+/* currently empty */
\ No newline at end of file