add gallery
BIN
src/assets/pics/gallery/IMG_0796.jpg
Normal file
After Width: | Height: | Size: 440 KiB |
BIN
src/assets/pics/gallery/IMG_6390.jpg
Normal file
After Width: | Height: | Size: 637 KiB |
BIN
src/assets/pics/gallery/IMG_6392.jpg
Normal file
After Width: | Height: | Size: 444 KiB |
BIN
src/assets/pics/gallery/IMG_6393.jpg
Normal file
After Width: | Height: | Size: 537 KiB |
BIN
src/assets/pics/gallery/IMG_8547.jpg
Normal file
After Width: | Height: | Size: 581 KiB |
BIN
src/assets/pics/gallery/IMG_8548.jpg
Normal file
After Width: | Height: | Size: 542 KiB |
BIN
src/assets/pics/gallery/IMG_8549.jpg
Normal file
After Width: | Height: | Size: 554 KiB |
BIN
src/assets/pics/gallery/JSDC2011.jpg
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
src/assets/pics/gallery/JSDC2012.jpg
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
src/assets/pics/gallery/dsc_0001.jpg
Normal file
After Width: | Height: | Size: 913 KiB |
BIN
src/assets/pics/gallery/dsc_0003.jpg
Normal file
After Width: | Height: | Size: 898 KiB |
BIN
src/assets/pics/gallery/dsc_0235.jpg
Normal file
After Width: | Height: | Size: 1.5 MiB |
BIN
src/assets/pics/gallery/dsc_0238.jpg
Normal file
After Width: | Height: | Size: 1.4 MiB |
BIN
src/assets/pics/gallery/dsc_0243.jpg
Normal file
After Width: | Height: | Size: 1.5 MiB |
BIN
src/assets/pics/gallery/jsdc2015_001.jpg
Normal file
After Width: | Height: | Size: 1.4 MiB |
BIN
src/assets/pics/gallery/jsdc2015_002.jpg
Normal file
After Width: | Height: | Size: 1022 KiB |
BIN
src/assets/pics/gallery/jsdc2015_003.jpg
Normal file
After Width: | Height: | Size: 1.4 MiB |
26
src/assets/pics/gallery/readimg.js
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
const fs = require("fs");
|
||||||
|
|
||||||
|
let res = "";
|
||||||
|
let json = `const gallery = {
|
||||||
|
pic: [`;
|
||||||
|
|
||||||
|
let jsonEnd = `
|
||||||
|
],
|
||||||
|
};`;
|
||||||
|
fs.readdir("./", (err, files) => {
|
||||||
|
files.forEach((file, index) => {
|
||||||
|
if (file === "readimg.js") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
console.log(file);
|
||||||
|
res += `import pic${index} from "../pics/gallery/${file}";\n`;
|
||||||
|
json += `{
|
||||||
|
title: "",
|
||||||
|
content: "",
|
||||||
|
img: pic${index}
|
||||||
|
},`;
|
||||||
|
});
|
||||||
|
|
||||||
|
console.log(res);
|
||||||
|
console.log(json + jsonEnd);
|
||||||
|
});
|