build pages
This commit is contained in:
parent
397090f177
commit
d74420608f
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,8 +1,3 @@
|
|||||||
.parcel-cache/
|
.parcel-cache/
|
||||||
ec*.exe
|
ec*.exe
|
||||||
|
public/
|
||||||
# public (build)
|
|
||||||
public/content/
|
|
||||||
public/index.*
|
|
||||||
public/manifest.webmanifest
|
|
||||||
public/*.png
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
public/index.*
|
public/
|
||||||
app/assets/css/bootstrap*
|
app/assets/css/bootstrap*
|
||||||
app/assets/js/bootstrap*
|
app/assets/js/bootstrap*
|
||||||
package.json
|
package.json
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
files=(
|
files=(
|
||||||
|
"pages/"
|
||||||
"manifest.webmanifest"
|
"manifest.webmanifest"
|
||||||
"index.html"
|
"index.html"
|
||||||
"*.css*"
|
"*.css*"
|
||||||
@ -11,7 +12,7 @@ echo -n "Remove all build files in 'public'... "
|
|||||||
|
|
||||||
for file in "${files[@]}"
|
for file in "${files[@]}"
|
||||||
do
|
do
|
||||||
rm ./public/$file &> /dev/null
|
rm -rf ./public/$file &> /dev/null
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Complete!"
|
echo "Complete!"
|
||||||
|
@ -6,7 +6,9 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "npx parcel serve --dist-dir public app/index.html",
|
"serve": "npx parcel serve --dist-dir public app/index.html",
|
||||||
"serve-https": "npx parcel serve --https --dist-dir public app/index.html",
|
"serve-https": "npx parcel serve --https --dist-dir public app/index.html",
|
||||||
"build": "npm run clean; npx parcel build --dist-dir public app/index.html --no-optimize; npm run git-hash",
|
"build": "npm run clean; npm run build-pages; npm run build-app; npm run git-hash",
|
||||||
|
"build-app": "npx parcel build --no-cache --no-optimize --no-scope-hoist --no-content-hash --dist-dir public app/index.html",
|
||||||
|
"build-pages": "npx parcel build --no-cache --no-optimize --no-scope-hoist --no-content-hash --dist-dir public/pages pages/*.html",
|
||||||
"prettier": "npx prettier --write .",
|
"prettier": "npx prettier --write .",
|
||||||
"git-hash": "./update_commit.sh",
|
"git-hash": "./update_commit.sh",
|
||||||
"clean": "./clean_public.sh",
|
"clean": "./clean_public.sh",
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
export function update_rev2(data) {
|
export function update_rev2(data) {
|
||||||
let time_remaining = document.getElementById('rev2_time_remaining')
|
let time_remaining = document.getElementById('rev2_time_remaining');
|
||||||
|
console.log(data);
|
||||||
}
|
}
|
@ -17,7 +17,7 @@
|
|||||||
<div class="d-none">
|
<div class="d-none">
|
||||||
<img
|
<img
|
||||||
class="img-fluid shadow rounded m-3"
|
class="img-fluid shadow rounded m-3"
|
||||||
src="/content/images/2023/resident_evil_revelations_2_wallpaper_by_brendabirkin.jpg"
|
src="//content/images/2023/resident_evil_revelations_2_wallpaper_by_brendabirkin.jpg"
|
||||||
/>
|
/>
|
||||||
<p class="text-center text-muted">
|
<p class="text-center text-muted">
|
||||||
Изображение:
|
Изображение:
|
||||||
@ -132,7 +132,9 @@
|
|||||||
|
|
||||||
function autorun() {
|
function autorun() {
|
||||||
if (true) {
|
if (true) {
|
||||||
get_from_api((data) => {update_rev2(data);}, 'rev2_monsters')
|
get_from_api((data) => {
|
||||||
|
update_rev2(data);
|
||||||
|
}, 'rev2_monsters');
|
||||||
setInterval(autorun, 120_000); // 2 minutes
|
setInterval(autorun, 120_000); // 2 minutes
|
||||||
} else {
|
} else {
|
||||||
console.log(
|
console.log(
|
Loading…
Reference in New Issue
Block a user