mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-05-02 16:20:13 +00:00
include bootstrap-3.3.7-dist.zip files
This commit is contained in:
parent
911ede9b12
commit
6edb39f69b
39
Makefile
39
Makefile
@ -9,6 +9,22 @@ DESTDIR=
|
|||||||
PERL5DIR=${DESTDIR}/usr/share/perl5
|
PERL5DIR=${DESTDIR}/usr/share/perl5
|
||||||
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
|
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
|
||||||
|
|
||||||
|
WWWBASEDIR=${DESTDIR}/usr/share/${PACKAGE}
|
||||||
|
WWWCSSDIR=${WWWBASEDIR}/css
|
||||||
|
WWWFONTSDIR=${WWWBASEDIR}/fonts
|
||||||
|
WWWJSDIR=${WWWBASEDIR}/js
|
||||||
|
|
||||||
|
# bootstrap library
|
||||||
|
BTVER=3.3.7
|
||||||
|
BTDIR=bootstrap-${BTVER}-dist
|
||||||
|
BTSRC=${BTDIR}.zip
|
||||||
|
|
||||||
|
BTDATA = \
|
||||||
|
${BTDIR}/css/bootstrap.min.css \
|
||||||
|
${BTDIR}/css/bootstrap-theme.min.css \
|
||||||
|
${BTDIR}/js/bootstrap.min.js \
|
||||||
|
${BTDIR}/fonts/glyphicons-halflings-regular.ttf
|
||||||
|
|
||||||
all: ${DEB}
|
all: ${DEB}
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
@ -19,7 +35,17 @@ deb ${DEB}:
|
|||||||
cd build; dpkg-buildpackage -rfakeroot -b -us -uc
|
cd build; dpkg-buildpackage -rfakeroot -b -us -uc
|
||||||
lintian ${DEB}
|
lintian ${DEB}
|
||||||
|
|
||||||
install:
|
download_bootstrap:
|
||||||
|
rm -f ${BTSRC}$ ${BTSRC}.tmp
|
||||||
|
wget https://github.com/twbs/bootstrap/releases/download/v${BTVER}/${BTSRC} -O ${BTSRC}.tmp
|
||||||
|
mv ${BTSRC}.tmp ${BTSRC}
|
||||||
|
|
||||||
|
${BTDATA}: ${BTSRC}
|
||||||
|
rm -rf ${BTDIR}
|
||||||
|
unzip -x ${BTSRC}
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
install: ${BTDATA}
|
||||||
install -d -m 755 ${PERL5DIR}/PVE/APIServer
|
install -d -m 755 ${PERL5DIR}/PVE/APIServer
|
||||||
install -m 0644 PVE/APIServer/AnyEvent.pm ${PERL5DIR}/PVE/APIServer
|
install -m 0644 PVE/APIServer/AnyEvent.pm ${PERL5DIR}/PVE/APIServer
|
||||||
install -m 0644 PVE/APIServer/Formatter.pm ${PERL5DIR}/PVE/APIServer
|
install -m 0644 PVE/APIServer/Formatter.pm ${PERL5DIR}/PVE/APIServer
|
||||||
@ -27,6 +53,15 @@ install:
|
|||||||
install -m 0644 PVE/APIServer/Formatter/Standard.pm ${PERL5DIR}/PVE/APIServer/Formatter
|
install -m 0644 PVE/APIServer/Formatter/Standard.pm ${PERL5DIR}/PVE/APIServer/Formatter
|
||||||
install -m 0644 PVE/APIServer/Formatter/Bootstrap.pm ${PERL5DIR}/PVE/APIServer/Formatter
|
install -m 0644 PVE/APIServer/Formatter/Bootstrap.pm ${PERL5DIR}/PVE/APIServer/Formatter
|
||||||
install -m 0644 PVE/APIServer/Formatter/HTML.pm ${PERL5DIR}/PVE/APIServer/Formatter
|
install -m 0644 PVE/APIServer/Formatter/HTML.pm ${PERL5DIR}/PVE/APIServer/Formatter
|
||||||
|
# install bootstrap
|
||||||
|
install -d -m 755 ${WWWBASEDIR}
|
||||||
|
install -d -m 755 ${WWWCSSDIR}
|
||||||
|
install -m 0644 -o www-data -g www-data ${BTDIR}/css/bootstrap.min.css ${WWWCSSDIR}
|
||||||
|
install -m 0644 -o www-data -g www-data ${BTDIR}/css/bootstrap-theme.min.css ${WWWCSSDIR}
|
||||||
|
install -d -m 755 ${WWWJSDIR}
|
||||||
|
install -m 0644 -o www-data -g www-data ${BTDIR}/js/bootstrap.min.js ${WWWJSDIR}
|
||||||
|
install -d -m 755 ${WWWFONTSDIR}
|
||||||
|
install -m 0644 ${BTDIR}/fonts/glyphicons-halflings-regular.ttf ${WWWFONTSDIR}
|
||||||
|
|
||||||
|
|
||||||
.PHONY: upload
|
.PHONY: upload
|
||||||
@ -36,7 +71,7 @@ upload: ${DEB}
|
|||||||
distclean: clean
|
distclean: clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf ./build *.deb *.changes
|
rm -rf ./build *.deb *.changes ${BTDIR}
|
||||||
find . -name '*~' -exec rm {} ';'
|
find . -name '*~' -exec rm {} ';'
|
||||||
|
|
||||||
.PHONY: dinstall
|
.PHONY: dinstall
|
||||||
|
@ -1580,6 +1580,11 @@ sub new {
|
|||||||
$self->{base_uri} //= "/api2";
|
$self->{base_uri} //= "/api2";
|
||||||
$self->{dirs} //= {};
|
$self->{dirs} //= {};
|
||||||
|
|
||||||
|
my $base = '/usr/share/libpve-http-server-perl';
|
||||||
|
add_dirs($self->{dirs}, '/css/' => "$base/css/");
|
||||||
|
add_dirs($self->{dirs}, '/js/' => "$base/js/");
|
||||||
|
add_dirs($self->{dirs}, '/fonts/' => "$base/fonts/");
|
||||||
|
|
||||||
# init inotify
|
# init inotify
|
||||||
PVE::INotify::inotify_init();
|
PVE::INotify::inotify_init();
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ sub body {
|
|||||||
<title>Proxmox VE API</title>
|
<title>Proxmox VE API</title>
|
||||||
|
|
||||||
<!-- Bootstrap -->
|
<!-- Bootstrap -->
|
||||||
<link href="/pve2/css/bootstrap.min.css" rel="stylesheet">
|
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$jssrc
|
$jssrc
|
||||||
@ -118,7 +118,7 @@ body {
|
|||||||
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
|
||||||
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
||||||
<script src="/pve2/js/bootstrap.min.js"></script>
|
<script src="/js/bootstrap.min.js"></script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
BIN
bootstrap-3.3.7-dist.zip
Normal file
BIN
bootstrap-3.3.7-dist.zip
Normal file
Binary file not shown.
1
debian/install
vendored
1
debian/install
vendored
@ -1 +1,2 @@
|
|||||||
/usr/share/perl5
|
/usr/share/perl5
|
||||||
|
/usr/share/libpve-http-server-perl
|
||||||
|
Loading…
Reference in New Issue
Block a user