Skip to content

Commit 2ae6cbe

Browse files
committed
Add genshots.js and Update screenshots
1 parent 0844acd commit 2ae6cbe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+59
-37
lines changed

genshots.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const baseDir = './screenshots'
2+
3+
const fs = require('fs')
4+
const files = []
5+
fs.readdirSync(baseDir).forEach((file) => {
6+
files.push(file)
7+
})
8+
console.log(files)
9+
10+
const file = fs.createWriteStream('./js/vars.js')
11+
file.on('error', function (err) {
12+
console.error('err', err)
13+
})
14+
file.write('const screenShots = [\n')
15+
files.forEach(function (x) {
16+
file.write(` '${x}',\n`)
17+
})
18+
file.write(']\n')
19+
file.end()

js/main.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
$(document).ready(function () {
2-
3-
// // Open Links in New Window
4-
// $('a').each(function() {
5-
// $(this).click(function (event) {
6-
// event.preventDefault();
7-
// event.stopPropagation();
8-
// window.open(this.href, '_blank');
9-
// });
10-
// });
11-
12-
})
1+
// $(document).ready(function () {
2+
//
3+
// // // Open Links in New Window
4+
// // $('a').each(function() {
5+
// // $(this).click(function (event) {
6+
// // event.preventDefault();
7+
// // event.stopPropagation();
8+
// // window.open(this.href, '_blank');
9+
// // });
10+
// // });
11+
//
12+
// })

js/screenshots.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,6 @@
11
// JS for screenshots.html
22

33
const baseDir = 'screenshots/'
4-
const screenShots = [
5-
'01_Login.png',
6-
'02_Home.png',
7-
'03_Stats.png',
8-
'04_Gallery.png',
9-
'05_Upload.png',
10-
'06_Files.png',
11-
'07_Files-delete-click.png',
12-
'08_Files-delete-deleted.png',
13-
'09_Shorts.png',
14-
'10_Shorts-create.png',
15-
'11_Shorts-delete-click.png',
16-
'12_Shorts-delete-deleted.png',
17-
'13_Settings.png',
18-
'14_Settings-save-settings.png',
19-
'15_Settings-flush-cache.png',
20-
'16_Preview-gps2.jpg.png',
21-
'17_Raw-gps2.jpg.png',
22-
'18_Preview-README.md.png',
23-
'19_Preview-requirements.txt.png',
24-
'20_Preview-main.html.png',
25-
'21_Preview-home_tags.py.png',
26-
'22_Preview-an225.jpg.png',
27-
'23_logout.png',
28-
]
294

305
const shotsEl = document.getElementById('swiper-shots')
316
const thumbsEl = document.getElementById('swiper-thumbs')

js/vars.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
const screenShots = [
2+
'01_Login.png',
3+
'02_Home.png',
4+
'04_Files.png',
5+
'05_Files-file-context-dropdown.png',
6+
'06_Files-delete-click.png',
7+
'07_Shorts.png',
8+
'08_Shorts-create.png',
9+
'09_Shorts-delete-click.png',
10+
'10_Shorts-delete-deleted.png',
11+
'11_Stats.png',
12+
'12_Settings-User.png',
13+
'13_Settings-User-save-settings.png',
14+
'14_Settings-delete-click.png',
15+
'15_Settings-delete-deleted.png',
16+
'16_Public-disabled-redirect.png',
17+
'17_Settings-Site-save-settings.png',
18+
'18_Settings-Site-flush-cache.png',
19+
'20_Public-enabled.png',
20+
'21_Preview-gps2.jpg.png',
21+
'23_Preview-README.md.png',
22+
'27_Preview-an225.jpg.png',
23+
'29_Site Settings with Global Quota Near Full.png',
24+
'30_Upload Failed by Global Quota.png',
25+
'31_File-password.png',
26+
'32_Logout.png',
27+
]

screenshots.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
</div>
4040

4141
<script src="https://cdn.jsdelivr.net/npm/swiper@10/swiper-bundle.min.js"></script>
42+
<script type="text/javascript" src="/js/vars.js"></script>
4243
<script type="text/javascript" src="/js/screenshots.js"></script>
4344

4445
</body>

screenshots/01_Login.png

-196 KB

screenshots/02_Home.png

-1.09 KB

screenshots/03_Stats.png

-91.6 KB
Binary file not shown.

screenshots/04_Files.png

169 KB

screenshots/04_Gallery.png

-400 KB
Binary file not shown.

0 commit comments

Comments
 (0)