media: 🎁 新增备案信息

This commit is contained in:
bunny 2024-10-29 12:57:41 +08:00
parent 21d7744826
commit e863367a78
5 changed files with 89 additions and 80 deletions

View File

@ -23,12 +23,12 @@ VITE_BASE_API_RETRY=5
VITE_BASE_API_RETRY_DELAY=3000 VITE_BASE_API_RETRY_DELAY=3000
# 是否在打包时使用cdn替换本地库 替换 true 不替换 false # 是否在打包时使用cdn替换本地库 替换 true 不替换 false
VITE_CDN=true VITE_CDN=false
# 是否启用gzip压缩或brotli压缩分两种情况删除原始文件和不删除原始文件 # 是否启用gzip压缩或brotli压缩分两种情况删除原始文件和不删除原始文件
# 压缩时不删除原始文件的配置gzip、brotli、both同时开启 gzip 与 brotli 压缩、none不开启压缩默认 # 压缩时不删除原始文件的配置gzip、brotli、both同时开启 gzip 与 brotli 压缩、none不开启压缩默认
# 压缩时删除原始文件的配置gzip-clear、brotli-clear、both-clear同时开启 gzip 与 brotli 压缩、none不开启压缩默认 # 压缩时删除原始文件的配置gzip-clear、brotli-clear、both-clear同时开启 gzip 与 brotli 压缩、none不开启压缩默认
VITE_COMPRESSION="none" VITE_COMPRESSION="gzip"
# 开发环境读取配置文件路径 # 开发环境读取配置文件路径
VITE_PUBLIC_PATH=/ VITE_PUBLIC_PATH=/

View File

@ -1,87 +1,84 @@
<!DOCTYPE html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
<meta name="renderer" content="webkit" /> <meta content="webkit" name="renderer" />
<meta <meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport" />
name="viewport" <title>bunny-admin</title>
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" <link href="/favicon.ico" rel="icon" />
/> <script>
<title>pure-admin-thin</title> window.process = {};
<link rel="icon" href="/favicon.ico" /> </script>
<script> </head>
window.process = {};
</script>
</head>
<body> <body>
<div id="app"> <div id="app">
<style> <style>
html, html,
body, body,
#app { #app {
position: relative; position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
} }
.loader, .loader,
.loader::before, .loader::before,
.loader::after { .loader::after {
width: 2.5em; width: 2.5em;
height: 2.5em; height: 2.5em;
border-radius: 50%; border-radius: 50%;
animation: load-animation 1.8s infinite ease-in-out; animation: load-animation 1.8s infinite ease-in-out;
animation-fill-mode: both; animation-fill-mode: both;
} }
.loader { .loader {
position: relative; position: relative;
top: 0; top: 0;
margin: 80px auto; margin: 80px auto;
font-size: 10px; font-size: 10px;
color: #406eeb; color: #406eeb;
text-indent: -9999em; text-indent: -9999em;
transform: translateZ(0); transform: translateZ(0);
transform: translate(-50%, 0); transform: translate(-50%, 0);
animation-delay: -0.16s; animation-delay: -0.16s;
} }
.loader::before, .loader::before,
.loader::after { .loader::after {
position: absolute; position: absolute;
top: 0; top: 0;
content: ""; content: '';
} }
.loader::before { .loader::before {
left: -3.5em; left: -3.5em;
animation-delay: -0.32s; animation-delay: -0.32s;
} }
.loader::after { .loader::after {
left: 3.5em; left: 3.5em;
} }
@keyframes load-animation { @keyframes load-animation {
0%, 0%,
80%, 80%,
100% { 100% {
box-shadow: 0 2.5em 0 -1.3em; box-shadow: 0 2.5em 0 -1.3em;
} }
40% { 40% {
box-shadow: 0 2.5em 0 0; box-shadow: 0 2.5em 0 0;
} }
} }
</style> </style>
<div class="loader"></div> <div class="loader"></div>
</div> </div>
<script type="module" src="/src/main.ts"></script> <script src="/src/main.ts" type="module"></script>
</body> </body>
</html> </html>

View File

@ -9,6 +9,7 @@ const Copyright = getConfig('Copyright');
<footer class="layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]"> <footer class="layout-footer text-[rgba(0,0,0,0.6)] dark:text-[rgba(220,220,242,0.8)]">
{{ Copyright }} {{ Copyright }}
<a class="hover:text-primary" href="https://github.com/pure-admin" target="_blank"> &nbsp;{{ TITLE }} </a> <a class="hover:text-primary" href="https://github.com/pure-admin" target="_blank"> &nbsp;{{ TITLE }} </a>
<a href="https://beian.miit.gov.cn/" target="_blank">&nbsp;&nbsp;苏ICP备2023044078号-1</a>
</footer> </footer>
</template> </template>

View File

@ -77,6 +77,10 @@ onMounted(() => {
</div> </div>
</div> </div>
</div> </div>
<footer>
<a href="https://beian.miit.gov.cn/" target="_blank">&nbsp;&nbsp;苏ICP备2023044078号-1</a>
</footer>
</template> </template>
<style scoped> <style scoped>
@ -84,6 +88,13 @@ onMounted(() => {
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
footer {
position: fixed;
bottom: 0;
width: 100%;
text-align: center;
}
:deep(.el-input-group__append, .el-input-group__prepend) { :deep(.el-input-group__append, .el-input-group__prepend) {
padding: 0; padding: 0;
} }

View File

@ -209,7 +209,7 @@ export const onChangeMenuRank = async (row: any) => {
*/ */
export const assignRolesToRouter = (row: any) => { export const assignRolesToRouter = (row: any) => {
addDialog({ addDialog({
title: `${row.name} 分配角色`, title: `${$t(row.name)} 分配角色`,
width: '45%', width: '45%',
draggable: true, draggable: true,
closeOnClickModal: false, closeOnClickModal: false,