-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
Merge pull request !16 from kk/coffee
- Loading branch information
There are no files selected for viewing
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>小学数学口算题 | Primary School Mathematics</title><script type="module" crossorigin src="/PrimarySchoolMathematics/assets/index.973572fc.js"></script><link rel="stylesheet" href="/PrimarySchoolMathematics/assets/index.47a5d56c.css"></head><body><div id="app"></div></body></html> | ||
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>小学数学口算题 | Primary School Mathematics</title><script type="module" crossorigin src="/PrimarySchoolMathematics/assets/index.820e40f0.js"></script><link rel="stylesheet" href="/PrimarySchoolMathematics/assets/index.d1f230d2.css"></head><body><div id="app"></div></body></html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,70 @@ | ||
<template> | ||
<footer class="py-6 px-7 flex justify-center flex-wrap items-baseline"> | ||
<template v-for="bind in bands"> | ||
<p class="h-7"> | ||
<a v-if="bind.link" :href="bind.link" target="_blank"> | ||
<img :alt="bind.imageAlt" :src="bind.imageSrc" class="mr-2" /> | ||
</a> | ||
<img v-else :alt="bind.imageAlt" :src="bind.imageSrc" class="mr-2" /> | ||
</p> | ||
</template> | ||
</footer> | ||
<footer class="py-6 px-7 flex justify-center flex-wrap items-baseline"> | ||
<template v-for="bind in bands"> | ||
<p class="h-7"> | ||
<a v-if="bind.link" :href="bind.link" target="_blank"> | ||
<img :alt="bind.imageAlt" :src="bind.imageSrc" class="mr-2"/> | ||
</a> | ||
<img v-else :alt="bind.imageAlt" :src="bind.imageSrc" class="mr-2"/> | ||
</p> | ||
</template> | ||
|
||
<el-tooltip | ||
class="box-item" | ||
content="请作者喝一杯咖啡!" | ||
placement="top" | ||
> | ||
<el-button type="success" :icon="Coffee" size="large" circle @click="centerDialogVisible = true" class="coffee-me fixed right-5 inset-y-1/4 text-lg"/> | ||
</el-tooltip> | ||
|
||
<el-dialog v-model="centerDialogVisible" title="请作者喝一杯咖啡:)" width="30%" center> | ||
<el-row :gutter="20"> | ||
<el-col :span="12"> | ||
<div class="grid-content ep-bg-purple"/> | ||
<img src="@/assets/wx.png" alt="请作者喝咖啡:)"></el-col> | ||
<el-col :span="12"> | ||
<div class="grid-content ep-bg-purple"/> | ||
<img src="@/assets/zfb.png" alt="请作者喝咖啡:)"></el-col> | ||
</el-row> | ||
<div> | ||
|
||
|
||
</div> | ||
</el-dialog> | ||
|
||
</footer> | ||
</template> | ||
|
||
<script setup> | ||
import { ref } from 'vue'; | ||
import {ref} from 'vue'; | ||
import { | ||
Coffee, | ||
} from '@element-plus/icons-vue' | ||
const centerDialogVisible = ref(false) | ||
const bands = ref([ | ||
{ imageAlt: "python-3.8.8", imageSrc: "https://img.shields.io/badge/Python-3.8.8-green?logo=python" }, | ||
{ imageAlt: "fastAPI-0.85.1", imageSrc: "https://img.shields.io/badge/fastAPI-0.85.1-green" }, | ||
{ imageAlt: "Vue-3.2.41", imageSrc: "https://img.shields.io/badge/Vue-3.2.41-blue" }, | ||
{ imageAlt: "license-Apache--2.0", imageSrc: "https://img.shields.io/badge/license-Apache--2.0-green" }, | ||
{ imageAlt: "", imageSrc: "https://img.shields.io/badge/Gitee--PrimarySchoolMathematics-red?logo=gitee", link: 'https://gitee.com/J_Sky/PrimarySchoolMathematics' }, | ||
{ imageAlt: "", imageSrc: "https://img.shields.io/badge/Github--PrimarySchoolMathematics-green?logo=github", link: 'https://github.com/bosichong/PrimarySchoolMathematics' } | ||
{imageAlt: "Vue-3.2.41", imageSrc: "https://img.shields.io/badge/Vue-3.2.41-blue"}, | ||
{imageAlt: "license-Apache--2.0", imageSrc: "https://img.shields.io/badge/license-Apache--2.0-green"}, | ||
{ | ||
imageAlt: "", | ||
imageSrc: "https://img.shields.io/badge/Gitee--PrimarySchoolMathematics-red?logo=gitee", | ||
link: 'https://gitee.com/J_Sky/PrimarySchoolMathematics' | ||
}, | ||
{ | ||
imageAlt: "", | ||
imageSrc: "https://img.shields.io/badge/Github--PrimarySchoolMathematics-green?logo=github", | ||
link: 'https://github.com/bosichong/PrimarySchoolMathematics' | ||
} | ||
]) | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
footer { | ||
background: #f0f2f5; | ||
background: #f0f2f5; | ||
} | ||
.coffee-me{ | ||
font-size: 18px; | ||
} | ||
</style> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,41 @@ | ||
import path from "path"; | ||
import { defineConfig } from 'vite' | ||
import {defineConfig} from 'vite' | ||
import vue from '@vitejs/plugin-vue' | ||
import { createHtmlPlugin } from "vite-plugin-html"; | ||
import { viteStaticCopy } from "vite-plugin-static-copy"; | ||
import {createHtmlPlugin} from "vite-plugin-html"; | ||
import {viteStaticCopy} from "vite-plugin-static-copy"; | ||
|
||
const srcPath = path.resolve(__dirname, 'src') | ||
|
||
export default defineConfig({ | ||
server: { | ||
port: 1101, | ||
}, | ||
resolve: { | ||
alias: { | ||
'@/': `${srcPath}/`, | ||
} | ||
}, | ||
plugins: [ | ||
vue(), | ||
createHtmlPlugin({ | ||
inject: { | ||
data: { | ||
title: '小学数学口算题 | Primary School Mathematics' | ||
server: { | ||
port: 1101, | ||
}, | ||
resolve: { | ||
alias: { | ||
'@/': `${srcPath}/`, | ||
} | ||
} | ||
}), | ||
viteStaticCopy({ | ||
silent: true, | ||
targets: [ | ||
{ | ||
src: 'dist/*', | ||
dest: path.resolve(__dirname, 'docs') | ||
} | ||
] | ||
}) | ||
] | ||
}, | ||
plugins: [ | ||
vue(), | ||
createHtmlPlugin({ | ||
inject: { | ||
data: { | ||
title: '小学数学口算题 | Primary School Mathematics' | ||
} | ||
} | ||
}), | ||
viteStaticCopy({ | ||
silent: true, | ||
targets: [ | ||
{ | ||
src: 'dist/*', | ||
dest: path.resolve(__dirname, 'docs') | ||
} | ||
] | ||
}) | ||
], | ||
base:'./', | ||
build: { | ||
chunkSizeWarningLimit: 1500, | ||
}, | ||
}) |