From 84f1d3e22dbc735e79e792d7d709a2b3980ae547 Mon Sep 17 00:00:00 2001 From: adb-sh Date: Wed, 4 Jan 2023 03:27:44 +0100 Subject: [PATCH] update and debug --- nginx.conf | 3 ++ package-lock.json | 54 +++++-------------- package.json | 5 +- .../components/CurrentlyListening.vue | 2 +- 4 files changed, 20 insertions(+), 44 deletions(-) diff --git a/nginx.conf b/nginx.conf index a3d38bc..f90db51 100644 --- a/nginx.conf +++ b/nginx.conf @@ -76,6 +76,9 @@ http { error_page 502 = @502; location @502 { return 502 '{"status":502,"message":"Bad gateway"}\n'; } + location /mail { + return 302 mailto:info@adb.sh; + } location / { index index.html; diff --git a/package-lock.json b/package-lock.json index 3dc63b9..ce0381c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,14 +12,13 @@ "@vuepress/theme-default": "^1.9.7", "bootstrap": "^5.2.3", "bootstrap-darkmode": "^5.0.1", - "bootstrap-icons": "^1.10.2", + "bootstrap-icons": "^1.10.3", "vuepress-plugin-sitemap": "^2.3.1" }, "devDependencies": { - "dart-sass": "^1.25.0", "sass": "^1.54.9", "sass-loader": "^10.3.1", - "vuepress": "^1.5.3", + "vuepress": "^1.9.7", "webpack": "^4.46.0" } }, @@ -3737,9 +3736,9 @@ } }, "node_modules/bootstrap-icons": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.10.2.tgz", - "integrity": "sha512-PTPYadRn1AMGr+QTSxe4ZCc+Wzv9DGZxbi3lNse/dajqV31n2/wl/7NX78ZpkvFgRNmH4ogdIQPQmxAfhEV6nA==" + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.10.3.tgz", + "integrity": "sha512-7Qvj0j0idEm/DdX9Q0CpxAnJYqBCFCiUI6qzSPYfERMcokVuV9Mdm/AJiVZI8+Gawe4h/l6zFcOzvV7oXCZArw==" }, "node_modules/boxen": { "version": "4.2.0", @@ -5409,22 +5408,6 @@ "integrity": "sha512-NJGVKPS81XejHcLhaLJS7plab0fK3slPh11mESeeDq2W4ZI5kUKK/LRRdVDvjJseojbPB7ZwjnyOybg3Igea/A==", "dev": true }, - "node_modules/dart-sass": { - "version": "1.25.0", - "resolved": "https://registry.npmjs.org/dart-sass/-/dart-sass-1.25.0.tgz", - "integrity": "sha512-syNOAstJXAmvD3RifcDk3fiPMyYE2fY8so6w9gf2/wNlKpG0zyH+oiXubEYVOy1WAWkzOc72pbAxwx+3OU4JJA==", - "deprecated": "This package has been renamed to 'sass'.", - "dev": true, - "dependencies": { - "chokidar": ">=2.0.0 <4.0.0" - }, - "bin": { - "dart-sass": "sass.js" - }, - "engines": { - "node": ">=8.9.0" - } - }, "node_modules/dashdash": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", @@ -11708,9 +11691,9 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "node_modules/sass": { - "version": "1.56.2", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.56.2.tgz", - "integrity": "sha512-ciEJhnyCRwzlBCB+h5cCPM6ie/6f8HrhZMQOf5vlU60Y1bI1rx5Zb0vlDZvaycHsg/MqFfF1Eq2eokAa32iw8w==", + "version": "1.57.1", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.57.1.tgz", + "integrity": "sha512-O2+LwLS79op7GI0xZ8fqzF7X2m/m8WFfI02dHOdsK5R2ECeS5F62zrwg/relM1rjSLy7Vd/DiMNIvPrQGsA0jw==", "dev": true, "dependencies": { "chokidar": ">=3.0.0 <4.0.0", @@ -17941,9 +17924,9 @@ } }, "bootstrap-icons": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.10.2.tgz", - "integrity": "sha512-PTPYadRn1AMGr+QTSxe4ZCc+Wzv9DGZxbi3lNse/dajqV31n2/wl/7NX78ZpkvFgRNmH4ogdIQPQmxAfhEV6nA==" + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.10.3.tgz", + "integrity": "sha512-7Qvj0j0idEm/DdX9Q0CpxAnJYqBCFCiUI6qzSPYfERMcokVuV9Mdm/AJiVZI8+Gawe4h/l6zFcOzvV7oXCZArw==" }, "boxen": { "version": "4.2.0", @@ -19302,15 +19285,6 @@ "integrity": "sha512-NJGVKPS81XejHcLhaLJS7plab0fK3slPh11mESeeDq2W4ZI5kUKK/LRRdVDvjJseojbPB7ZwjnyOybg3Igea/A==", "dev": true }, - "dart-sass": { - "version": "1.25.0", - "resolved": "https://registry.npmjs.org/dart-sass/-/dart-sass-1.25.0.tgz", - "integrity": "sha512-syNOAstJXAmvD3RifcDk3fiPMyYE2fY8so6w9gf2/wNlKpG0zyH+oiXubEYVOy1WAWkzOc72pbAxwx+3OU4JJA==", - "dev": true, - "requires": { - "chokidar": ">=2.0.0 <4.0.0" - } - }, "dashdash": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", @@ -24275,9 +24249,9 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "sass": { - "version": "1.56.2", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.56.2.tgz", - "integrity": "sha512-ciEJhnyCRwzlBCB+h5cCPM6ie/6f8HrhZMQOf5vlU60Y1bI1rx5Zb0vlDZvaycHsg/MqFfF1Eq2eokAa32iw8w==", + "version": "1.57.1", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.57.1.tgz", + "integrity": "sha512-O2+LwLS79op7GI0xZ8fqzF7X2m/m8WFfI02dHOdsK5R2ECeS5F62zrwg/relM1rjSLy7Vd/DiMNIvPrQGsA0jw==", "dev": true, "requires": { "chokidar": ">=3.0.0 <4.0.0", diff --git a/package.json b/package.json index e1e1fbe..abcf4bc 100755 --- a/package.json +++ b/package.json @@ -13,10 +13,9 @@ "build": "vuepress build src" }, "devDependencies": { - "dart-sass": "^1.25.0", "sass": "^1.54.9", "sass-loader": "^10.3.1", - "vuepress": "^1.5.3", + "vuepress": "^1.9.7", "webpack": "^4.46.0" }, "dependencies": { @@ -24,7 +23,7 @@ "@vuepress/theme-default": "^1.9.7", "bootstrap": "^5.2.3", "bootstrap-darkmode": "^5.0.1", - "bootstrap-icons": "^1.10.2", + "bootstrap-icons": "^1.10.3", "vuepress-plugin-sitemap": "^2.3.1" } } diff --git a/src/.vuepress/components/CurrentlyListening.vue b/src/.vuepress/components/CurrentlyListening.vue index 2789b47..6b1aa3d 100644 --- a/src/.vuepress/components/CurrentlyListening.vue +++ b/src/.vuepress/components/CurrentlyListening.vue @@ -34,7 +34,7 @@ export default { ).then(data => data.json()); } }, - async created() { + async mounted() { this.currentlyPlaying = (await this.fetchMusicInfo().catch(noob))?.currentlyPlaying; updateMusicInfo = setInterval(async () => { this.currentlyPlaying = (await this.fetchMusicInfo().catch(noob))?.currentlyPlaying;