فهرست منبع

Merge commit '4bfdcd6bf688c728c567966b5cd7e43eefdef3b5'

ith5 6 ماه پیش
والد
کامیت
ef7f32cb58
2فایلهای تغییر یافته به همراه193 افزوده شده و 195 حذف شده
  1. 164 163
      index.html
  2. 29 32
      src/main.js

+ 164 - 163
index.html

@@ -1,166 +1,167 @@
 <!DOCTYPE html>
 <html lang="en">
-	<head>
-		<title>%VITE_APP_TITLE%</title>
-		<meta charset="UTF-8" />
-		<meta name="renderer" content="webkit" />
-		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
-		<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
-		<style>
-			html,
-			body,
-			#app {
-				height: 100%;
-			}
-
-			* {
-				margin: 0;
-				padding: 0;
-				font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
-			}
-
-			.preload__wrap {
-				display: flex;
-				flex-direction: column;
-				letter-spacing: 1px;
-				background-color: #2f3447;
-				position: fixed;
-				left: 0;
-				top: 0;
-				height: 100%;
-				width: 100%;
-				z-index: 9999;
-				transition: all 0.3s ease-in;
-				opacity: 1;
-				pointer-events: none;
-			}
-
-			.preload__wrap.is-hide {
-				opacity: 0;
-			}
-
-			.preload__container {
-				display: flex;
-				justify-content: center;
-				align-items: center;
-				flex-direction: column;
-				width: 100%;
-				user-select: none;
-				-webkit-user-select: none;
-				flex-grow: 1;
-			}
-
-			.preload__name {
-				font-size: 30px;
-				color: #fff;
-				letter-spacing: 5px;
-				font-weight: bold;
-				margin-bottom: 30px;
-			}
-
-			.preload__title {
-				color: #fff;
-				font-size: 14px;
-				margin: 30px 0 20px 0;
-			}
-
-			.preload__sub-title {
-				color: #ababab;
-				font-size: 12px;
-			}
-
-			.preload__footer {
-				text-align: center;
-				padding: 10px 0 20px 0;
-			}
-
-			.preload__footer a {
-				font-size: 12px;
-				color: #ababab;
-				text-decoration: none;
-			}
-
-			.preload__loading {
-				height: 30px;
-				width: 30px;
-				border-radius: 30px;
-				border: 7px solid currentColor;
-				border-bottom-color: #2f3447 !important;
-				position: relative;
-				animation: r 1s infinite cubic-bezier(0.17, 0.67, 0.83, 0.67), bc 2s infinite ease-in;
-				transform: rotate(0deg);
-			}
-
-			@keyframes r {
-				from {
-					transform: rotate(0deg);
-				}
-
-				to {
-					transform: rotate(360deg);
-				}
-			}
-
-			.preload__loading::after,
-			.preload__loading::before {
-				content: '';
-				display: inline-block;
-				position: absolute;
-				bottom: -2px;
-				height: 7px;
-				width: 7px;
-				border-radius: 10px;
-				background-color: currentColor;
-			}
-
-			.preload__loading::after {
-				left: -1px;
-			}
-
-			.preload__loading::before {
-				right: -1px;
-			}
-
-			@keyframes bc {
-				0% {
-					color: #689cc5;
-				}
-
-				25% {
-					color: #b3b7e2;
-				}
-
-				50% {
-					color: #93dbe9;
-				}
-
-				75% {
-					color: #abbd81;
-				}
-
-				100% {
-					color: #689cc5;
-				}
-			}
-		</style>
-	</head>
-	<body>
-		<noscript>
-			<strong>你的浏览器未开启javascript支持,请开启后刷新页面访问!</strong>
-		</noscript>
-		<div id="app" class="ma-ui">
-			<div class="preload__wrap" id="Loading">
-				<div class="preload__container">
-					<p class="preload__name">%VITE_APP_TITLE%</p>
-					<div class="preload__loading"></div>
-					<p class="preload__title">正在加载资源...</p>
-					<p class="preload__sub-title">初次加载资源可能需要较多时间 请耐心等待</p>
-				</div>
-				<div class="preload__footer">
-					<a href="https://saithink.top" target="_blank">https://saithink.top</a>
-				</div>
-			</div>
-		</div>
-		<script type="module" src="/src/main.js"></script>
-	</body>
+  <head>
+    <title>%VITE_APP_TITLE%</title>
+    <meta charset="UTF-8" />
+    <meta name="renderer" content="webkit" />
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
+    <style>
+      html,
+      body,
+      #app {
+        height: 100%;
+      }
+
+      * {
+        margin: 0;
+        padding: 0;
+        font-family: "Helvetica Neue", Helvetica, "PingFang SC",
+          "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
+      }
+
+      .preload__wrap {
+        display: flex;
+        flex-direction: column;
+        letter-spacing: 1px;
+        background-color: #2f3447;
+        position: fixed;
+        left: 0;
+        top: 0;
+        height: 100%;
+        width: 100%;
+        z-index: 9999;
+        transition: all 0.3s ease-in;
+        opacity: 1;
+        pointer-events: none;
+      }
+
+      .preload__wrap.is-hide {
+        opacity: 0;
+      }
+
+      .preload__container {
+        display: flex;
+        justify-content: center;
+        align-items: center;
+        flex-direction: column;
+        width: 100%;
+        user-select: none;
+        -webkit-user-select: none;
+        flex-grow: 1;
+      }
+
+      .preload__name {
+        font-size: 30px;
+        color: #fff;
+        letter-spacing: 5px;
+        font-weight: bold;
+        margin-bottom: 30px;
+      }
+
+      .preload__title {
+        color: #fff;
+        font-size: 14px;
+        margin: 30px 0 20px 0;
+      }
+
+      .preload__sub-title {
+        color: #ababab;
+        font-size: 12px;
+      }
+
+      .preload__footer {
+        text-align: center;
+        padding: 10px 0 20px 0;
+      }
+
+      .preload__footer a {
+        font-size: 12px;
+        color: #ababab;
+        text-decoration: none;
+      }
+
+      .preload__loading {
+        height: 30px;
+        width: 30px;
+        border-radius: 30px;
+        border: 7px solid currentColor;
+        border-bottom-color: #2f3447 !important;
+        position: relative;
+        animation: r 1s infinite cubic-bezier(0.17, 0.67, 0.83, 0.67),
+          bc 2s infinite ease-in;
+        transform: rotate(0deg);
+      }
+
+      @keyframes r {
+        from {
+          transform: rotate(0deg);
+        }
+
+        to {
+          transform: rotate(360deg);
+        }
+      }
+
+      .preload__loading::after,
+      .preload__loading::before {
+        content: "";
+        display: inline-block;
+        position: absolute;
+        bottom: -2px;
+        height: 7px;
+        width: 7px;
+        border-radius: 10px;
+        background-color: currentColor;
+      }
+
+      .preload__loading::after {
+        left: -1px;
+      }
+
+      .preload__loading::before {
+        right: -1px;
+      }
+
+      @keyframes bc {
+        0% {
+          color: #689cc5;
+        }
+
+        25% {
+          color: #b3b7e2;
+        }
+
+        50% {
+          color: #93dbe9;
+        }
+
+        75% {
+          color: #abbd81;
+        }
+
+        100% {
+          color: #689cc5;
+        }
+      }
+    </style>
+  </head>
+  <body>
+    <noscript>
+      <strong>你的浏览器未开启javascript支持,请开启后刷新页面访问!</strong>
+    </noscript>
+    <div id="app" class="ma-ui">
+      <div class="preload__wrap" id="Loading">
+        <div class="preload__container">
+          <p class="preload__name">%VITE_APP_TITLE%</p>
+          <div class="preload__loading"></div>
+          <p class="preload__title">正在加载资源...</p>
+          <p class="preload__sub-title">
+            初次加载资源可能需要较多时间 请耐心等待
+          </p>
+        </div>
+      </div>
+    </div>
+    <script type="module" src="/src/main.js"></script>
+  </body>
 </html>

+ 29 - 32
src/main.js

@@ -1,30 +1,30 @@
-import { createApp } from 'vue'
-import ArcoVue from '@arco-design/web-vue'
-import ArcoVueIcon from '@arco-design/web-vue/es/icon'
-
-import globalComponents from '@/components'
-import App from './App.vue'
-import router from './router'
-import store from './store'
-import i18n from '@/i18n'
-import directives from './directives'
-import dayjs from 'dayjs'
-import zhCn from 'dayjs/locale/zh-cn'
-import relativeTime from 'dayjs/plugin/relativeTime'
-dayjs.locale(zhCn)
-dayjs.extend(relativeTime)
+import { createApp } from "vue";
+import ArcoVue from "@arco-design/web-vue";
+import ArcoVueIcon from "@arco-design/web-vue/es/icon";
+
+import globalComponents from "@/components";
+import App from "./App.vue";
+import router from "./router";
+import store from "./store";
+import i18n from "@/i18n";
+import directives from "./directives";
+import dayjs from "dayjs";
+import zhCn from "dayjs/locale/zh-cn";
+import relativeTime from "dayjs/plugin/relativeTime";
+dayjs.locale(zhCn);
+dayjs.extend(relativeTime);
 
 // 官方样式
-import '@arco-design/web-vue/dist/arco.css'
-import './style/skin.less'
-import './style/index.css'
-import './style/global.less'
+import "@arco-design/web-vue/dist/arco.css";
+import "./style/skin.less";
+import "./style/index.css";
+import "./style/global.less";
 
-import tool from '@/utils/tool'
-import * as common from '@/utils/common'
-import packageJson from '../package.json'
+import tool from "@/utils/tool";
+import * as common from "@/utils/common";
+import packageJson from "../package.json";
 
-const app = createApp(App)
+const app = createApp(App);
 
 app
   .use(ArcoVue, {})
@@ -33,14 +33,11 @@ app
   .use(store)
   .use(i18n)
   .use(directives)
-  .use(globalComponents)
-
-app.config.globalProperties.$tool = tool
-app.config.globalProperties.$common = common
-app.config.globalProperties.$title = import.meta.env.VITE_APP_TITLE
-app.config.globalProperties.$url = import.meta.env.VITE_APP_BASE
+  .use(globalComponents);
 
-app.mount('#app')
+app.config.globalProperties.$tool = tool;
+app.config.globalProperties.$common = common;
+app.config.globalProperties.$title = import.meta.env.VITE_APP_TITLE;
+app.config.globalProperties.$url = import.meta.env.VITE_APP_BASE;
 
-tool.capsule('SaiAdmin', `v${packageJson.version} release`)
-console.log('SaiAdmin 官网  https://saithink.top')
+app.mount("#app");