-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
1,621 additions
and
1,221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run fmt | ||
npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
registry=https://registry.npmmirror.com | ||
disturl=https://registry.npmmirror.com/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"recommendations": ["Vue.volar"] | ||
"recommendations": ["Vue.volar", "antfu.unocss"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ Dockerfile | |
|
||
# workspace | ||
index.html | ||
.eslintignore | ||
.eslintrc.cjs | ||
tsconfig.json | ||
vite.config.ts | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
# common | ||
NODE_ENV = production | ||
VITE_GA_ID = G-SYF7WXXMDG | ||
|
||
# app & website | ||
VITE_SITE_AUTHOR = guocaoyi | ||
VITE_NOW = 2023 | ||
VITE_ORG = yalda | ||
VITE_AUTHOR = guocaoyi | ||
VITE_SITE_NAME = iconpub | ||
VITE_SITE_BEGIN = 2022 | ||
VITE_DOMAIN_BEIAN = 苏公网安备32010602011142号 | ||
VITE_DOMAIN_ICP = 苏ICP备2022030674号-1 | ||
|
||
# social | ||
VITE_SOCIAL_GMAIL = [email protected] | ||
VITE_SOCIAL_GITHUB = https://github.com/guocaoyi/iconpub | ||
VITE_SOCIAL_TWITTER = without_horn | ||
|
||
# domain | ||
VITE_GA_ID = G-SYF7WXXMDG # google analytics id | ||
VITE_TRACE_ID = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
src/components.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* eslint-env node */ | ||
require('@rushstack/eslint-patch/modern-module-resolution') | ||
|
||
module.exports = { | ||
root: true, | ||
extends: [ | ||
'plugin:vue/vue3-recommended', | ||
'eslint:recommended', | ||
'@vue/eslint-config-typescript/recommended', | ||
'@vue/eslint-config-prettier', | ||
], | ||
env: { | ||
'vue/setup-compiler-macros': true, | ||
}, | ||
rules: { | ||
// all rules docs https://eslint.org/docs/rules/ | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
jsxSingleQuote: false, | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
endOfLine: 'lf', | ||
printWidth: 100, | ||
semi: false, | ||
tabWidth: 2, | ||
useTabs: false, | ||
}, | ||
], | ||
'vue/multi-word-component-names': [ | ||
'error', | ||
{ | ||
ignores: ['index'], | ||
}, | ||
], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"recommendations": ["Vue.volar"] | ||
"recommendations": ["Vue.volar", "antfu.unocss"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"unocss.root": "packages/iconpub-webapp" | ||
"editor.formatOnSave": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 34 additions & 8 deletions
42
packages/iconpub-webapp/src/components/LayoutFooter/BaseFooter.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,46 @@ | ||
<script lang="ts" setup> | ||
import config from '@/config' | ||
const id = config.domainBeian.match(/\d+/gi)?.[0] ?? '' | ||
const licenses = [ | ||
{ | ||
src: 'http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=32010602011142', | ||
lable: 'about.license.police', | ||
lable: config.domainBeian, | ||
type: 'police', | ||
link: `http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=${id}`, | ||
}, | ||
{ src: 'https://beian.miit.gov.cn/#/integrated/index', lable: 'about.license.icp' }, | ||
] | ||
{ | ||
lable: config.domainIcp, | ||
type: 'icp', | ||
link: 'https://beian.miit.gov.cn', | ||
}, | ||
].filter((license) => !!license.lable) | ||
</script> | ||
|
||
<template> | ||
<footer h-12 flex justify-center items-center text-xs> | ||
<span>©Copyright 2022-{{ config.siteBegin }} {{ config.siteName.toUpperCase() }} </span> | ||
<a c-black decoration-none mr-1 v-for="(item, index) in licenses" :key="index" :href="item.src"> | ||
{{ $t(item.lable) }}</a | ||
<footer | ||
bg="light dark:dark-800" | ||
mx-4 | ||
flex | ||
flex-col | ||
text-xs | ||
md:mx-20 | ||
md:h-12 | ||
md:flex-col | ||
xl:flex-col | ||
> | ||
<span c="dark-800 dark:light" mr-2> | ||
©Copyright 2022-{{ config.now }} {{ config.siteName.toUpperCase() }} | ||
</span> | ||
<a | ||
v-for="(item, i) in licenses" | ||
:key="i" | ||
:href="item.link" | ||
target="_blank" | ||
decoration-none | ||
mr-2 | ||
c="dark-800 dark:light" | ||
> | ||
{{ $t(item.lable) }} | ||
</a> | ||
</footer> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.