Sfoglia il codice sorgente

删除无用的JavaScript文件

移除了docs目录下的assets.index.4455f423.js文件,因为其内容已被更新或替换。

Signed-off-by: 宋子桓🌈 <songzihuan@song-zh.com>
SongZihuan 2 mesi fa
parent
commit
9610b72dee

File diff suppressed because it is too large
+ 0 - 0
docs/404.html


File diff suppressed because it is too large
+ 0 - 0
docs/assets.index.4455f423.js


File diff suppressed because it is too large
+ 0 - 0
docs/assets.index.66e3c020.css


File diff suppressed because it is too large
+ 0 - 0
docs/assets.index.739e273b.js


File diff suppressed because it is too large
+ 0 - 0
docs/assets.index.f66dd1a7.js


File diff suppressed because it is too large
+ 0 - 0
docs/assets.message.37d04f08.css


File diff suppressed because it is too large
+ 0 - 0
docs/assets.message.8d6c1201.js


File diff suppressed because it is too large
+ 0 - 0
docs/assets.message.c6eac9f6.js


+ 1 - 1
docs/assets.notfound.523db0c5.js → docs/assets.notfound.d37731fd.js

@@ -1 +1 @@
-import{P as e}from"./assets.index.7803ee28.js";import{X as s,v as t,x as a,A as o,Y as l,O as n,H as r,I as u,Z as i,_ as d}from"./assets.vue.33cd34e1.js";const p={},c=e=>(i("data-v-cf7e57e5"),e=e(),d(),e),h=c((()=>o("h1",null,"404",-1))),f=c((()=>o("h2",null,"Oops! The page you're looking for isn't here.",-1))),m=c((()=>o("p",null,"We can't seem to find the page you were trying to reach. This might be because of:",-1))),g=c((()=>o("ul",null,[o("li",null,"An outdated link"),o("li",null,"A mistyped address"),o("li",null,"Or the page has been moved")],-1)));const b=e(p,[["render",function(e,i){const d=s("router-link");return t(),a(u,null,[h,f,m,g,o("p",null,[l("Try going back to the "),n(d,{to:"/"},{default:r((()=>[l("homepage")])),_:1}),l(" or contact us if the problem persists.")])],64)}],["__scopeId","data-v-cf7e57e5"]]);export{b as default};
+import{P as e}from"./assets.index.739e273b.js";import{X as s,v as t,x as a,A as o,Y as l,O as n,H as r,I as u,Z as i,_ as d}from"./assets.vue.33cd34e1.js";const p={},c=e=>(i("data-v-cf7e57e5"),e=e(),d(),e),h=c((()=>o("h1",null,"404",-1))),f=c((()=>o("h2",null,"Oops! The page you're looking for isn't here.",-1))),m=c((()=>o("p",null,"We can't seem to find the page you were trying to reach. This might be because of:",-1))),g=c((()=>o("ul",null,[o("li",null,"An outdated link"),o("li",null,"A mistyped address"),o("li",null,"Or the page has been moved")],-1)));const b=e(p,[["render",function(e,i){const d=s("router-link");return t(),a(u,null,[h,f,m,g,o("p",null,[l("Try going back to the "),n(d,{to:"/"},{default:r((()=>[l("homepage")])),_:1}),l(" or contact us if the problem persists.")])],64)}],["__scopeId","data-v-cf7e57e5"]]);export{b as default};

File diff suppressed because it is too large
+ 0 - 0
docs/assets.str.df7ad172.js


+ 1 - 1
docs/index.html

@@ -12,7 +12,7 @@
             overflow: auto;
         }
     </style>
-  <script type="module" crossorigin src="/assets.index.7803ee28.js"></script>
+  <script type="module" crossorigin src="/assets.index.739e273b.js"></script>
   <link rel="modulepreload" crossorigin href="/assets.vue.33cd34e1.js">
   <link rel="stylesheet" href="/assets.index.1c341960.css">
 </head>

File diff suppressed because it is too large
+ 0 - 0
public/404.html


+ 1 - 1
src/utils/build_time.json

@@ -1 +1 @@
-{"compile_time":1738606138471,"time_zone":"Asia/Shanghai"}
+{"compile_time":1739097339788,"time_zone":"Asia/Shanghai"}

+ 1 - 1
src/views/index.vue

@@ -116,7 +116,7 @@
           <br />
 
           您可以通过我主页的个人公开邮箱
-          <a href="mailto://songzihuan@song-zh.com" target="_blank">songzihuan@song-zh.com</a> 联系我。
+          <a href="mailto://contact@song-zh.com" target="_blank">contact@song-zh.com</a> 联系我。
           <br />
 
           您可以通过我主页的

+ 26 - 2
src/views/message.vue

@@ -1,6 +1,7 @@
 <script setup lang="ts">
   import { ElDivider, ElMessage } from 'element-plus'
   import { sendMsgToMail } from '@/api/message/sendmsg'
+  import { isEmail } from '@/utils/str'
 
   const router = useRouter()
 
@@ -8,12 +9,16 @@
   const show = ref(true)
   const form = ref({
     name: '',
+    email: '',
     message: ''
   })
 
   const checkMessage = computed(() => form.value.message.length >= 1 && form.value.message.length <= 150)
   const checkName = computed(() => form.value.name.length <= 25)
-  const checkAll = computed(() => checkMessage.value && checkName.value)
+  const checkEmail = computed(
+    () => form.value.email == '' || (form.value.email.length < 40 && isEmail(form.value.email))
+  )
+  const checkAll = computed(() => checkMessage.value && checkName.value && checkEmail.value)
 
   function handleWindowResize() {
     show.value = window.innerWidth >= 240
@@ -69,6 +74,10 @@
               <el-input v-model="form.name" :maxlength="25" clearable show-word-limit />
             </el-form-item>
 
+            <el-form-item label="你的邮箱(Your email)">
+              <el-input v-model="form.email" :maxlength="40" clearable show-word-limit />
+            </el-form-item>
+
             <el-form-item label="你的留言(Your message)">
               <el-input
                 v-model="form.message"
@@ -92,7 +101,18 @@
           <div class="center_tips_box">
             <div class="tips_box">
               <div v-if="!checkName" class="tip_box" style="display: flex; justify-content: center">
-                <el-alert title="名字不能超过25位!" :closable="false" type="warning" center show-icon> </el-alert>
+                <el-alert title="名字不能超过25位,选填!" :closable="false" type="warning" center show-icon>
+                </el-alert>
+              </div>
+              <div v-if="!checkEmail" class="tip_box" style="display: flex; justify-content: center">
+                <el-alert
+                  title="请输入正确的邮箱,不得超过40个字符,选填!"
+                  :closable="false"
+                  type="warning"
+                  center
+                  show-icon
+                >
+                </el-alert>
               </div>
               <div v-if="!checkMessage" class="tip_box" style="display: flex; justify-content: center">
                 <el-alert title="消息的长度要在1-150个字符!" :closable="false" type="warning" center show-icon>
@@ -147,4 +167,8 @@
     width: 75%;
     margin-top: 5px;
   }
+
+  .tip_box {
+    margin-bottom: 5px;
+  }
 </style>

Some files were not shown because too many files changed in this diff