www: merge remaining touch files into mobile

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>
This commit is contained in:
Thomas Lamprecht 2023-05-28 18:36:03 +02:00
parent 80cb7dda78
commit 33d0357208
4 changed files with 37 additions and 2 deletions

View File

@ -1,5 +1,5 @@
include ../defines.mk include ../defines.mk
SUBDIRS = images css manager6 touch mobile SUBDIRS = images css manager6 mobile
all: all:

View File

@ -32,8 +32,10 @@ pvemanager-mobile.js: ${JSSRC}
mv $@.tmp $@ mv $@.tmp $@
.PHONY: install .PHONY: install
install: pvemanager-mobile.js install: pvemanager-mobile.js index.html.tpl pve.css
install -d ${WWWTOUCHDIR} install -d ${WWWTOUCHDIR}
install -m 0644 index.html.tpl ${WWWTOUCHDIR}
install -m 0644 pve.css ${WWWTOUCHDIR}
install -m 0644 pvemanager-mobile.js ${WWWTOUCHDIR} install -m 0644 pvemanager-mobile.js ${WWWTOUCHDIR}
.PHONY: clean .PHONY: clean

32
www/mobile/index.html.tpl Normal file
View File

@ -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>

1
www/mobile/pve.css Normal file
View File

@ -0,0 +1 @@
/* currently empty */