├── .eslintrc.cjs
├── .gitignore
├── .prettierrc.json
├── LICENSE
├── README.md
├── index.html
├── package.json
├── public
├── favicon144.png
└── favicon512.png
├── src
├── App.vue
├── assets
│ ├── index.css
│ └── logo.svg
├── components
│ ├── theHeader.vue
│ └── thePicture.vue
├── i18n
│ └── index.js
├── locale
│ ├── en.json
│ └── zh.json
├── main.js
└── pic
│ ├── zhubi1.jpg
│ ├── zhubi10.jpg
│ ├── zhubi11.jpg
│ ├── zhubi12.jpg
│ ├── zhubi13.jpg
│ ├── zhubi14.jpg
│ ├── zhubi15.jpg
│ ├── zhubi16.jpg
│ ├── zhubi17.jpg
│ ├── zhubi18.jpg
│ ├── zhubi19.jpg
│ ├── zhubi2.jpg
│ ├── zhubi20.jpg
│ ├── zhubi21.jpg
│ ├── zhubi22.jpg
│ ├── zhubi23.jpg
│ ├── zhubi24.jpg
│ ├── zhubi25.jpg
│ ├── zhubi26.jpg
│ ├── zhubi27.jpg
│ ├── zhubi28.jpg
│ ├── zhubi29.jpg
│ ├── zhubi3.jpg
│ ├── zhubi30.jpg
│ ├── zhubi31.jpg
│ ├── zhubi32.jpg
│ ├── zhubi33.jpg
│ ├── zhubi34.jpg
│ ├── zhubi35.jpg
│ ├── zhubi36.jpg
│ ├── zhubi37.jpg
│ ├── zhubi38.jpg
│ ├── zhubi39.jpg
│ ├── zhubi4.jpg
│ ├── zhubi40.jpg
│ ├── zhubi41.jpg
│ ├── zhubi42.jpg
│ ├── zhubi43.jpg
│ ├── zhubi5.jpg
│ ├── zhubi6.jpg
│ ├── zhubi7.jpg
│ ├── zhubi8.jpg
│ └── zhubi9.jpg
└── vite.config.js
/.eslintrc.cjs:
--------------------------------------------------------------------------------
1 | /* eslint-env node */
2 | require('@rushstack/eslint-patch/modern-module-resolution')
3 |
4 | module.exports = {
5 | root: true,
6 | 'extends': [
7 | 'plugin:vue/vue3-essential',
8 | 'eslint:recommended',
9 | '@vue/eslint-config-prettier/skip-formatting'
10 | ],
11 | parserOptions: {
12 | ecmaVersion: 'latest'
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | lerna-debug.log*
8 | .pnpm-debug.log*
9 |
10 | # Diagnostic reports (https://nodejs.org/api/report.html)
11 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12 |
13 | # Runtime data
14 | pids
15 | *.pid
16 | *.seed
17 | *.pid.lock
18 |
19 | # Directory for instrumented libs generated by jscoverage/JSCover
20 | lib-cov
21 |
22 | # Coverage directory used by tools like istanbul
23 | coverage
24 | *.lcov
25 |
26 | # nyc test coverage
27 | .nyc_output
28 |
29 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30 | .grunt
31 |
32 | # Bower dependency directory (https://bower.io/)
33 | bower_components
34 |
35 | # node-waf configuration
36 | .lock-wscript
37 |
38 | # Compiled binary addons (https://nodejs.org/api/addons.html)
39 | build/Release
40 |
41 | # Dependency directories
42 | node_modules/
43 | jspm_packages/
44 |
45 | # Snowpack dependency directory (https://snowpack.dev/)
46 | web_modules/
47 |
48 | # TypeScript cache
49 | *.tsbuildinfo
50 |
51 | # Optional npm cache directory
52 | .npm
53 |
54 | # Optional eslint cache
55 | .eslintcache
56 |
57 | # Optional stylelint cache
58 | .stylelintcache
59 |
60 | # Microbundle cache
61 | .rpt2_cache/
62 | .rts2_cache_cjs/
63 | .rts2_cache_es/
64 | .rts2_cache_umd/
65 |
66 | # Optional REPL history
67 | .node_repl_history
68 |
69 | # Output of 'npm pack'
70 | *.tgz
71 |
72 | # Yarn Integrity file
73 | .yarn-integrity
74 |
75 | # dotenv environment variable files
76 | .env
77 | .env.development.local
78 | .env.test.local
79 | .env.production.local
80 | .env.local
81 |
82 | # parcel-bundler cache (https://parceljs.org/)
83 | .cache
84 | .parcel-cache
85 |
86 | # Next.js build output
87 | .next
88 | out
89 |
90 | # Nuxt.js build / generate output
91 | .nuxt
92 | dist
93 |
94 | # Gatsby files
95 | .cache/
96 | # Comment in the public line in if your project uses Gatsby and not Next.js
97 | # https://nextjs.org/blog/next-9-1#public-directory-support
98 | # public
99 |
100 | # vuepress build output
101 | .vuepress/dist
102 |
103 | # vuepress v2.x temp and cache directory
104 | .temp
105 |
106 | # Docusaurus cache and generated files
107 | .docusaurus
108 |
109 | # Serverless directories
110 | .serverless/
111 |
112 | # FuseBox cache
113 | .fusebox/
114 |
115 | # DynamoDB Local files
116 | .dynamodb/
117 |
118 | # TernJS port file
119 | .tern-port
120 |
121 | # Stores VSCode versions used for testing VSCode extensions
122 | .vscode-test
123 |
124 | # yarn v2
125 | .yarn/cache
126 | .yarn/unplugged
127 | .yarn/build-state.yml
128 | .yarn/install-state.gz
129 | .pnp.*
130 |
131 | .idea
132 |
133 | yarn.lock
134 |
--------------------------------------------------------------------------------
/.prettierrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json.schemastore.org/prettierrc",
3 | "semi": false,
4 | "tabWidth": 2,
5 | "singleQuote": true,
6 | "printWidth": 100,
7 | "trailingComma": "none"
8 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 小鱼yuzifu
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # blueArchive-CuteChibi
2 | A project to select the Chibi in Blue Archive.
3 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | Blue Archive Chibi Lottery
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "bluearchive-cutechibi",
3 | "version": "1.1.0",
4 | "private": true,
5 | "scripts": {
6 | "dev": "vite --host",
7 | "build": "vite build",
8 | "preview": "vite preview",
9 | "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
10 | "format": "prettier --write src/"
11 | },
12 | "resolutions": {
13 | "bin-wrapper": "npm:bin-wrapper-china"
14 | },
15 | "dependencies": {
16 | "axios": "^1.5.0",
17 | "rollup-plugin-copy": "^3.5.0",
18 | "vite-plugin-pwa": "^0.16.5",
19 | "vue": "^3.3.4",
20 | "vue-i18n": "^9.4.1",
21 | "vue-router": "^4.2.4"
22 | },
23 | "devDependencies": {
24 | "@arco-design/web-vue": "^2.51.2",
25 | "@rushstack/eslint-patch": "^1.3.3",
26 | "@vitejs/plugin-vue": "^4.3.4",
27 | "@vitejs/plugin-vue-jsx": "^3.0.2",
28 | "@vue/eslint-config-prettier": "^8.0.0",
29 | "eslint": "^8.49.0",
30 | "eslint-plugin-vue": "^9.17.0",
31 | "prettier": "^3.0.3",
32 | "vite": "^4.4.9",
33 | "vite-plugin-compression": "^0.5.1",
34 | "vite-plugin-imagemin": "^0.6.1"
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/public/favicon144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/public/favicon144.png
--------------------------------------------------------------------------------
/public/favicon512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/public/favicon512.png
--------------------------------------------------------------------------------
/src/App.vue:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 | {{ $t('trans.prompt') }}
11 |
12 |
13 | ({{ $t('trans.tip') }})
14 |
15 |
16 |
17 |
18 |
19 |
29 |
--------------------------------------------------------------------------------
/src/assets/index.css:
--------------------------------------------------------------------------------
1 | * {
2 | margin: 0;
3 | padding: 0;
4 | }
5 |
6 | body {
7 | background-color: #f6f7f8;
8 | }
9 |
10 | a {
11 | text-decoration: unset;
12 | color: unset;
13 | }
14 |
15 | #app {
16 | width: 100vw;
17 | height: 100vh;
18 | display: flex;
19 | flex-direction: column;
20 | }
21 |
22 | @media only screen and (max-width: 400px) {
23 | .arco-page-header-wrapper .arco-page-header-header {
24 | justify-content: center;
25 | }
26 | }
27 |
28 | .arco-page-header-main .arco-page-header-title {
29 | white-space: normal;
30 | text-align: center;
31 | }
--------------------------------------------------------------------------------
/src/assets/logo.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/src/components/theHeader.vue:
--------------------------------------------------------------------------------
1 |
15 |
16 |
17 |
23 |
24 |
25 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
51 | {{ $t('trans.copyright') }}
52 |
60 | {{ $t('trans.sourceChibi') }}:
61 | 困倦沙拉
62 |
63 |
71 | {{ $t('trans.usingComponent') }}:
72 | Arco Design
73 |
74 |
75 |
76 |
77 |
85 |
--------------------------------------------------------------------------------
/src/components/thePicture.vue:
--------------------------------------------------------------------------------
1 |
33 |
34 |
35 |
36 |
![]()
37 |
38 |
39 |
40 |
59 |
--------------------------------------------------------------------------------
/src/i18n/index.js:
--------------------------------------------------------------------------------
1 | import { createI18n } from 'vue-i18n'
2 | import en from '../locale/en.json'
3 | import zh from '../locale/zh.json'
4 |
5 | const messages = {
6 | en: {
7 | trans: en
8 | },
9 | zh: {
10 | trans: zh
11 | }
12 | }
13 | //
14 | const locale = ['zh', 'zh-CN', 'zh-cn'].includes(navigator.language) ? 'zh' : 'en'
15 | const i18n = createI18n({
16 | legacy: false,
17 | globalInjection: true,
18 | locale,
19 | messages
20 | })
21 |
22 | export default i18n
23 |
--------------------------------------------------------------------------------
/src/locale/en.json:
--------------------------------------------------------------------------------
1 | {
2 | "title": "Blue Archive Chibi Lottery",
3 | "prompt": "Select the best Chibi in Blue Archive for you🥰",
4 | "tip": "Click the Chibi to select !",
5 | "copyright": "Copyright",
6 | "sourceChibi": "Picture from",
7 | "usingComponent": "Using component",
8 | "warning": "Warning",
9 | "sw-update-tip": "The current version has been updated. Would you like to update now? ",
10 | "ok": "OK"
11 | }
12 |
--------------------------------------------------------------------------------
/src/locale/zh.json:
--------------------------------------------------------------------------------
1 | {
2 | "title": "蔚蓝档案铸币大头自选",
3 | "prompt": "快来选择你心仪的铸币大头吧!",
4 | "tip": "点击铸币大头即可开始选择!",
5 | "copyright": "版权声明",
6 | "sourceChibi": "所有铸币大头来源",
7 | "usingComponent": "使用的组件",
8 | "warning": "注意",
9 | "sw-update-tip": "当前版本有更新,请问是否立即更新。",
10 | "ok": "确认"
11 | }
12 |
--------------------------------------------------------------------------------
/src/main.js:
--------------------------------------------------------------------------------
1 | import './assets/index.css'
2 | import '@arco-design/web-vue/dist/arco.css'
3 |
4 | import { createApp } from 'vue'
5 | import { Modal } from '@arco-design/web-vue'
6 | import ArcoVue from '@arco-design/web-vue'
7 | import ArcoVueIcon from '@arco-design/web-vue/es/icon'
8 | import App from './App.vue'
9 | import { registerSW } from 'virtual:pwa-register'
10 | import i18n from '@/i18n'
11 |
12 | const app = createApp(App)
13 | app.use(ArcoVue)
14 | app.use(ArcoVueIcon)
15 | app.use(i18n)
16 |
17 | app.mount('#app')
18 |
19 | if ('serviceWorker' in navigator) {
20 | const updateSW = registerSW({
21 | onNeedRefresh() {
22 | Modal.confirm({
23 | title: i18n.global.t('trans.warning'),
24 | content: i18n.global.t('trans.sw-update-tip'),
25 | okText: i18n.global.t('trans.ok'),
26 | onOk: () => {
27 | updateSW(true)
28 | },
29 | onCancel: false,
30 | hideCancel: false,
31 | width: 'auto'
32 | })
33 | }
34 | })
35 | }
36 |
37 | const init = () => {
38 | document.querySelector('#app').style = `height: ${document.documentElement.clientHeight}px;`
39 | document.querySelector('.box').style.height =
40 | document.documentElement.clientHeight -
41 | document.querySelector('.arco-page-header').getBoundingClientRect().height -
42 | document.querySelector('.title').getBoundingClientRect().height -
43 | document.querySelector('.subtitle').getBoundingClientRect().height -
44 | 150 +
45 | 'px'
46 | }
47 |
48 | document.querySelector('title').innerHTML = i18n.global.t('trans.title')
49 |
50 | window.addEventListener('resize', init)
51 | init()
52 |
--------------------------------------------------------------------------------
/src/pic/zhubi1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi1.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi10.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi10.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi11.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi11.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi12.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi12.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi13.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi13.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi14.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi14.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi15.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi15.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi16.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi16.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi17.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi17.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi18.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi18.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi19.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi19.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi2.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi20.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi20.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi21.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi21.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi22.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi22.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi23.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi23.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi24.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi24.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi25.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi25.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi26.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi26.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi27.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi27.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi28.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi28.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi29.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi29.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi3.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi30.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi30.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi31.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi31.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi32.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi32.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi33.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi33.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi34.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi34.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi35.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi35.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi36.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi36.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi37.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi37.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi38.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi38.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi39.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi39.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi4.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi40.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi40.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi41.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi41.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi42.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi42.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi43.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi43.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi5.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi6.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi7.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi7.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi8.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi8.jpg
--------------------------------------------------------------------------------
/src/pic/zhubi9.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sf-yuzifu/blueArchive-CuteChibi/357de3a41d48784953cd56029445117ec8edaf8e/src/pic/zhubi9.jpg
--------------------------------------------------------------------------------
/vite.config.js:
--------------------------------------------------------------------------------
1 | import { fileURLToPath, URL } from 'node:url'
2 |
3 | import { defineConfig } from 'vite'
4 | import vue from '@vitejs/plugin-vue'
5 | import vueJsx from '@vitejs/plugin-vue-jsx'
6 | import viteCompression from 'vite-plugin-compression'
7 | import viteImagemin from 'vite-plugin-imagemin'
8 | import { VitePWA } from 'vite-plugin-pwa'
9 |
10 | // https://vitejs.dev/config/
11 | export default defineConfig({
12 | build: {
13 | assetsInlineLimit: 1145141919810,
14 | minify: 'esbuild'
15 | },
16 | plugins: [
17 | vue(),
18 | vueJsx(),
19 | viteImagemin({
20 | gifsicle: {
21 | optimizationLevel: 7,
22 | interlaced: false
23 | },
24 | optipng: {
25 | optimizationLevel: 7
26 | },
27 | mozjpeg: {
28 | quality: 20
29 | },
30 | pngquant: {
31 | quality: [0.8, 0.9],
32 | speed: 4
33 | },
34 | svgo: {
35 | plugins: [
36 | {
37 | name: 'removeViewBox'
38 | },
39 | {
40 | name: 'removeEmptyAttrs',
41 | active: false
42 | }
43 | ]
44 | }
45 | }),
46 | VitePWA({
47 | mode: 'production',
48 | base: '/',
49 | registerType: 'prompt',
50 | injectRegister: 'auto',
51 | workbox: {
52 | runtimeCaching: [
53 | {
54 | urlPattern: /.*/i,
55 | handler: 'CacheFirst',
56 | options: {
57 | cacheName: 'ba-cache',
58 | expiration: {
59 | maxEntries: 10,
60 | maxAgeSeconds: 60 * 60 * 24 * 30
61 | },
62 | cacheableResponse: {
63 | statuses: [0, 200]
64 | }
65 | }
66 | }
67 | ]
68 | },
69 | manifest: {
70 | name: 'BlueArchive-CuteChibi',
71 | short_name: 'CuteChibi',
72 | description: 'A project to select the Chibi in Blue Archive.',
73 | theme_color: '#128AFA',
74 | start_url: '/',
75 | id: 'CuteChibi',
76 | icons: [
77 | {
78 | src: '/favicon512.png',
79 | sizes: '512x512',
80 | purpose: 'any maskable'
81 | },
82 | {
83 | src: '/favicon144.png',
84 | sizes: '144x144'
85 | }
86 | ]
87 | }
88 | }),
89 | viteCompression({
90 | threshold: 10240 // the unit is Bytes
91 | })
92 | ],
93 | resolve: {
94 | alias: {
95 | '@': fileURLToPath(new URL('./src', import.meta.url))
96 | }
97 | }
98 | })
99 |
--------------------------------------------------------------------------------