Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit adf6e04

Browse files
committed
PhotoSwipe: switch back to own fork, add as git submodule
Change-Id: I9c3c9a2a78899b91b416d581af584307ce676478
1 parent bdf7adc commit adf6e04

File tree

8 files changed

+19
-15
lines changed

8 files changed

+19
-15
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@
88
[submodule "vendor/rpihotspot"]
99
path = vendor/rpihotspot
1010
url = https://github.com/andi34/rpihotspot
11+
[submodule "vendor/PhotoSwipe"]
12+
path = vendor/PhotoSwipe
13+
url = https://github.com/andi34/PhotoSwipe

gallery.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030

3131
<link rel="stylesheet" href="node_modules/normalize.css/normalize.css" />
3232
<link rel="stylesheet" href="node_modules/font-awesome/css/font-awesome.css" />
33-
<link rel="stylesheet" href="node_modules/photoswipe/dist/photoswipe.css" />
34-
<link rel="stylesheet" href="node_modules/photoswipe/dist/default-skin/default-skin.css" />
33+
<link rel="stylesheet" href="vendor/PhotoSwipe/dist/photoswipe.css" />
34+
<link rel="stylesheet" href="vendor/PhotoSwipe/dist/default-skin/default-skin.css" />
3535
<link rel="stylesheet" href="resources/css/style.css" />
3636
<?php if ($config['gallery_bottom_bar']): ?>
3737
<link rel="stylesheet" href="resources/css/photoswipe-bottom.css" />
@@ -85,8 +85,8 @@
8585
<script type="text/javascript" src="resources/js/vendor/EasePack.min.js"></script>
8686
<script type="text/javascript" src="resources/js/vendor/jquery.gsap.min.js"></script>
8787
<script type="text/javascript" src="resources/js/vendor/CSSPlugin.min.js"></script>
88-
<script type="text/javascript" src="node_modules/photoswipe/dist/photoswipe.min.js"></script>
89-
<script type="text/javascript" src="node_modules/photoswipe/dist/photoswipe-ui-default.min.js"></script>
88+
<script type="text/javascript" src="vendor/PhotoSwipe/dist/photoswipe.min.js"></script>
89+
<script type="text/javascript" src="vendor/PhotoSwipe/dist/photoswipe-ui-default.min.js"></script>
9090
<script type="text/javascript" src="resources/js/photoinit.js"></script>
9191
<script type="text/javascript" src="resources/js/theme.js"></script>
9292
<script type="text/javascript" src="resources/js/core.js"></script>

index.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232

3333
<link rel="stylesheet" href="node_modules/normalize.css/normalize.css" />
3434
<link rel="stylesheet" href="node_modules/font-awesome/css/font-awesome.css" />
35-
<link rel="stylesheet" href="node_modules/photoswipe/dist/photoswipe.css" />
36-
<link rel="stylesheet" href="node_modules/photoswipe/dist/default-skin/default-skin.css" />
35+
<link rel="stylesheet" href="vendor/PhotoSwipe/dist/photoswipe.css" />
36+
<link rel="stylesheet" href="vendor/PhotoSwipe/dist/default-skin/default-skin.css" />
3737
<link rel="stylesheet" href="resources/css/style.css" />
3838
<?php if ($config['gallery_bottom_bar']): ?>
3939
<link rel="stylesheet" href="resources/css/photoswipe-bottom.css" />
@@ -239,8 +239,8 @@
239239
<script type="text/javascript" src="resources/js/vendor/EasePack.min.js"></script>
240240
<script type="text/javascript" src="resources/js/vendor/jquery.gsap.min.js"></script>
241241
<script type="text/javascript" src="resources/js/vendor/CSSPlugin.min.js"></script>
242-
<script type="text/javascript" src="node_modules/photoswipe/dist/photoswipe.min.js"></script>
243-
<script type="text/javascript" src="node_modules/photoswipe/dist/photoswipe-ui-default.min.js"></script>
242+
<script type="text/javascript" src="vendor/PhotoSwipe/dist/photoswipe.min.js"></script>
243+
<script type="text/javascript" src="vendor/PhotoSwipe/dist/photoswipe-ui-default.min.js"></script>
244244
<script type="text/javascript" src="resources/js/photoinit.js"></script>
245245
<script type="text/javascript" src="resources/js/theme.js"></script>
246246
<script type="text/javascript" src="resources/js/core.js"></script>

login/index.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@
4545

4646
<link rel="stylesheet" href="../node_modules/normalize.css/normalize.css" />
4747
<link rel="stylesheet" href="../node_modules/font-awesome/css/font-awesome.css" />
48-
<link rel="stylesheet" href="../node_modules/photoswipe/dist/photoswipe.css" />
49-
<link rel="stylesheet" href="../node_modules/photoswipe/dist/default-skin/default-skin.css" />
5048
<link rel="stylesheet" href="../resources/css/login.css" />
5149
<?php if ($config['rounded_corners']): ?>
5250
<link rel="stylesheet" href="../resources/css/rounded.css" />

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"marvinj": "^1.0.0",
4848
"normalize.css": "^8.0.1",
4949
"npm-run-all": "^4.1.5",
50-
"photoswipe": "^4.1.3",
5150
"whatwg-fetch": "^3.2.0"
5251
},
5352
"devDependencies": {

scripts/pack-build.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ function createArchive(fileName, archive) {
8080
archive.directory('node_modules/marvinj/marvinj/release/');
8181
archive.file('node_modules/normalize.css/LICENSE.md');
8282
archive.file('node_modules/normalize.css/normalize.css');
83-
archive.file('node_modules/photoswipe/LICENSE');
84-
archive.directory('node_modules/photoswipe/dist/');
8583
archive.file('node_modules/whatwg-fetch/LICENSE');
8684
archive.file('node_modules/whatwg-fetch/dist/fetch.umd.js');
8785

update-booth.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ apt dist-upgrade -y
8787
info "[Info] Checking for webserver..."
8888
for server in "${WEBSERVER[@]}"; do
8989
if [ $(dpkg-query -W -f='${Status}' ${server} 2>/dev/null | grep -c "ok installed") -eq 1 ]; then
90-
info "[Webserver] ${server} installed"
90+
info "[Webserver] ${server} used."
9191
if [[ ${server} == "nginx" || ${server} == "lighttpd" ]]; then
9292
info "[NOTE] You're using ${server} as your Webserver."
9393
info "[NOTE] For a no-hassle-setup Apache2 Webserver is recommend!"
@@ -121,9 +121,14 @@ chown -R www-data:www-data ${booth_source}
121121

122122
for file in "${OLDFILES[@]}"; do
123123
if [ -f "${booth_source}/${file}" ]; then
124-
info "[Info] Deleting unused file: ${booth_source}/${file}"
124+
info "[Info] Deleting unused file: ${booth_source}/${file}"
125125
rm "${booth_source}/${file}"
126126
fi
127127
done
128128

129+
if [ -d "${booth_source}/node_modules/photoswipe" ]; then
130+
info "[Info] Deleting unused module: ${booth_source}/node_modules/photoswipe"
131+
rm -rf ${booth_source}/node_modules/photoswipe
132+
fi
133+
129134
info "[Info] Updated Photobooth"

vendor/PhotoSwipe

Submodule PhotoSwipe added at 8f6394e

0 commit comments

Comments
 (0)