From b5ab4ac07cb8e330dfa905503f0e2805038c7ce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=BF=E5=91=BD?= <45293856+sumingyd@users.noreply.github.com> Date: Thu, 2 Feb 2023 00:14:56 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a281ce6..e564377 100644 --- a/README.md +++ b/README.md @@ -31,12 +31,22 @@ ### 部署 +> 首先安装个 [node.js](https://nodejs.org/zh-cn/) 的环境 +> 然后管理员权限运行终端,并`cd`到 项目目录中 +> 在终端中输入: + ```bash +# 安装依赖 yarn install + +# 预览 yarn dev + +#构建 yarn build ``` -> 构建完成后,可将 `dist` 文件夹下的文件上传至服务器,也可使用 `Vercel` 等托管平台一键导入并自动部署 +> 构建完成后,html项目会在`dist`目录中生成,可将 `dist` 文件夹下的文件上传至服务器,也可使用 `Vercel` 等托管平台一键导入并自动部署 + ### 天气 天气及地区获取需要 `高德开放平台` 相关 API From 09165d971aab4a1f377b2ec6b913596ccf0817da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=BF=E5=91=BD?= <45293856+sumingyd@users.noreply.github.com> Date: Thu, 2 Feb 2023 00:16:22 +0800 Subject: [PATCH 2/7] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e564377..18440a7 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,9 @@ ### 部署 -> 首先安装个 [node.js](https://nodejs.org/zh-cn/) 的环境 -> 然后管理员权限运行终端,并`cd`到 项目目录中 -> 在终端中输入: +* 首先安装个 [node.js](https://nodejs.org/zh-cn/) 的环境 +* 然后管理员权限运行终端,并`cd`到 项目目录中 +* 在终端中输入: ```bash # 安装依赖 From 436b7281dffb1b1c43855002aaa79a18b31e1f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=BF=E5=91=BD?= <45293856+sumingyd@users.noreply.github.com> Date: Thu, 2 Feb 2023 00:17:34 +0800 Subject: [PATCH 3/7] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 18440a7..fbea2b3 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ ### 部署 * 首先安装个 [node.js](https://nodejs.org/zh-cn/) 的环境 -* 然后管理员权限运行终端,并`cd`到 项目目录中 +* 然后**管理员权限**运行终端,并`cd`到 项目目录中 * 在终端中输入: ```bash @@ -45,7 +45,7 @@ yarn dev #构建 yarn build ``` -> 构建完成后,html项目会在`dist`目录中生成,可将 `dist` 文件夹下的文件上传至服务器,也可使用 `Vercel` 等托管平台一键导入并自动部署 +> 构建完成后,html项目会在`dist`**目录中**生成,可将 `dist` **文件夹下的文件**上传至服务器,也可使用 `Vercel` 等托管平台一键导入并自动部署 ### 天气 From 47fd9d3ee888018aab9467e80405fa714995a882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=BF=E5=91=BD?= <45293856+sumingyd@users.noreply.github.com> Date: Thu, 2 Feb 2023 00:18:37 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fbea2b3..ca24a2d 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,9 @@ ### 部署 -* 首先安装个 [node.js](https://nodejs.org/zh-cn/) 的环境 +* 首先**安装**个 [node.js](https://nodejs.org/zh-cn/) 的**环境** * 然后**管理员权限**运行终端,并`cd`到 项目目录中 -* 在终端中输入: +* 在`终端`中输入: ```bash # 安装依赖 @@ -42,7 +42,7 @@ yarn install # 预览 yarn dev -#构建 +# 构建 yarn build ``` > 构建完成后,html项目会在`dist`**目录中**生成,可将 `dist` **文件夹下的文件**上传至服务器,也可使用 `Vercel` 等托管平台一键导入并自动部署 From 50023ea5361d29a8bec5d1e656d8eacfe793a113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=95=E5=B1=82=E7=94=A8=E6=88=B7?= Date: Thu, 2 Feb 2023 09:48:29 +0800 Subject: [PATCH 5/7] Update README.md --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ca24a2d..c6de78e 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,13 @@ ### 部署 -* 首先**安装**个 [node.js](https://nodejs.org/zh-cn/) 的**环境** -* 然后**管理员权限**运行终端,并`cd`到 项目目录中 -* 在`终端`中输入: +* **安装** [node.js](https://nodejs.org/zh-cn/) **环境** + + > node > 16.16.0 + > npm > 8.15.0 + +* 然后以 **管理员权限** 运行 `cmd` 终端,并 `cd` 到 项目根目录 +* 在 `终端` 中输入: ```bash # 安装依赖 @@ -45,7 +49,7 @@ yarn dev # 构建 yarn build ``` -> 构建完成后,html项目会在`dist`**目录中**生成,可将 `dist` **文件夹下的文件**上传至服务器,也可使用 `Vercel` 等托管平台一键导入并自动部署 +> 构建完成后,静态资源会在 **`dist` 目录** 中生成,可将 **`dist` 文件夹下的文件**上传至服务器,也可使用 `Vercel` 等托管平台一键导入并自动部署 ### 天气 From 854cebff03755743b8d1cad72d1ce2301150ce20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=95=E5=B1=82=E7=94=A8=E6=88=B7?= Date: Thu, 2 Feb 2023 11:06:16 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E5=BB=BA=E7=AB=99?= =?UTF-8?q?=E6=97=A5=E6=9C=9F=E6=98=BE=E7=A4=BA=E5=8F=8A=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 4 ++++ dev-dist/sw.js | 2 +- src/components/Set/index.vue | 25 +++++++++++++++++++++++-- src/components/TimeCapsule/index.vue | 18 +++++++++++++++++- src/store/index.js | 3 ++- src/utils/getTime.js | 16 ++++++++++++++++ 6 files changed, 63 insertions(+), 5 deletions(-) diff --git a/.env b/.env index fa9fa7f..dc0ed63 100644 --- a/.env +++ b/.env @@ -20,6 +20,10 @@ VITE_DESC_TEXT_OTHER = "哎呀,这都被你发现了( 再点击一次可关 ## 请各位大佬行行好,别再让我超量了 VITE_WEATHER_KEY = "57eaea5833ff1616cfd1ff2c4cf9b58a" +# 建站日期 +## 请按照 YYYY-MM-DD 格式填写 +VITE_SITE_START = "2020-10-24" + # 歌曲 API 地址 ## 备用:https://api.wuenci.com/meting/api/ VITE_SONG_API = "https://api-meting.imsyy.top" diff --git a/dev-dist/sw.js b/dev-dist/sw.js index 2bb9a23..4f7461e 100644 --- a/dev-dist/sw.js +++ b/dev-dist/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const t=(t,i)=>(t=new URL(t+".js",i).href,s[t]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=t,e.onload=s,document.head.appendChild(e)}else e=t,importScripts(t),s()})).then((()=>{let e=s[t];if(!e)throw new Error(`Module ${t} didn’t register its module`);return e})));self.define=(i,n)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let r={};const c=e=>t(e,o),l={module:{uri:o},exports:r,require:c};s[o]=Promise.all(i.map((e=>l[e]||c(e)))).then((e=>(n(...e),r)))}}define(["./workbox-082d0e8a"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"3ca0b8505b4bec776b69afdba2768812"},{revision:null,url:"index.html"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"),{allowlist:[/^\/$/]})),e.registerRoute(/(.*?)\.(js|css|woff2|woff|ttf)/,new e.CacheFirst({cacheName:"js-css-cache",plugins:[]}),"GET"),e.registerRoute(/(.*?)\.(png|jpe?g|svg|gif|bmp|psd|tiff|tga|eps)/,new e.CacheFirst({cacheName:"image-cache",plugins:[]}),"GET")})); +if(!self.define){let e,s={};const t=(t,i)=>(t=new URL(t+".js",i).href,s[t]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=t,e.onload=s,document.head.appendChild(e)}else e=t,importScripts(t),s()})).then((()=>{let e=s[t];if(!e)throw new Error(`Module ${t} didn’t register its module`);return e})));self.define=(i,n)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let r={};const c=e=>t(e,o),l={module:{uri:o},exports:r,require:c};s[o]=Promise.all(i.map((e=>l[e]||c(e)))).then((e=>(n(...e),r)))}}define(["./workbox-082d0e8a"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"3ca0b8505b4bec776b69afdba2768812"},{revision:null,url:"index.html"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"),{allowlist:[/^index.html$/]})),e.registerRoute(/(.*?)\.(js|css|woff2|woff|ttf)/,new e.CacheFirst({cacheName:"js-css-cache",plugins:[]}),"GET"),e.registerRoute(/(.*?)\.(png|jpe?g|svg|gif|bmp|psd|tiff|tga|eps)/,new e.CacheFirst({cacheName:"image-cache",plugins:[]}),"GET")})); diff --git a/src/components/Set/index.vue b/src/components/Set/index.vue index 1416a0f..c36eb07 100644 --- a/src/components/Set/index.vue +++ b/src/components/Set/index.vue @@ -12,7 +12,15 @@ -
设置内容待增加
+
+ 建站日期显示 + +
设置内容待增加
@@ -27,7 +35,11 @@