Skip to content

Commit a9c57ef

Browse files
committed
updates
1 parent 5b4f1ab commit a9c57ef

File tree

8 files changed

+259
-224
lines changed

8 files changed

+259
-224
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ dist-ssr
55
*.log
66
*.swp
77
*~
8-
*.local
9-
.vscode
8+
*.local

.vitepress/config.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,7 @@ const config = {
6767
logo: '/sponsors/nuxt.png'
6868
}
6969
],
70-
sliver: [
71-
{
72-
title: 'BabelEdit',
73-
link:
74-
'https://www.codeandweb.com/babeledit?utm_campaign=vue-i18n-2019-01',
75-
logo: '/sponsors/babeledit.png'
76-
}
77-
],
70+
sliver: [],
7871
bronze: [
7972
{
8073
title: 'ZenArchitects',

.vitepress/theme/Layout.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,17 @@ ja:
5151
<div class="inner">
5252
<h2>{{ t('SponsorTitle') }}</h2>
5353
<Sponsor
54+
v-if="$site.customData.sponsors.gold.length"
5455
:banners="$site.customData.sponsors.gold"
5556
tier="gold"
5657
/>
5758
<Sponsor
59+
v-if="$site.customData.sponsors.sliver.length"
5860
:banners="$site.customData.sponsors.sliver"
5961
tier="silver"
6062
/>
6163
<Sponsor
64+
v-if="$site.customData.sponsors.bronze.length"
6265
:banners="$site.customData.sponsors.bronze"
6366
tier="bronze"
6467
/>

.vitepress/theme/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import './style.css'
33
import Layout from './Layout.vue'
44
import { watch } from 'vue'
55
import { createI18n } from 'vue-i18n'
6-
import messages from '@intlify/vite-plugin-vue-i18n/messages'
6+
// TODO: SSR
7+
// import messages from '@intlify/vite-plugin-vue-i18n/messages'
78

89
export default {
910
Layout,
@@ -13,7 +14,7 @@ export default {
1314
legacy: false,
1415
locale: siteData.value.lang,
1516
globalInjection: true,
16-
messages
17+
messages: {}
1718
})
1819
app.use(i18n)
1920

.vscode/settings.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"files.associations": {
3+
"*.json": "jsonc"
4+
},
5+
"[typescript]": {
6+
"editor.defaultFormatter": "esbenp.prettier-vscode"
7+
},
8+
"editor.formatOnSave": true,
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll.eslint": true
11+
},
12+
"typescript.tsdk": "node_modules/typescript/lib"
13+
}

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@
77
"email": "[email protected]"
88
},
99
"devDependencies": {
10-
"@intlify/eslint-plugin-vue-i18n": "^0.10.0",
10+
"@intlify/eslint-plugin-vue-i18n": "^0.11.1",
1111
"@intlify/vite-plugin-vue-i18n": "^1.0.0-beta.16",
1212
"@tailwindcss/typography": "^0.3.1",
13-
"@typescript-eslint/eslint-plugin": "^4.11.0",
14-
"@typescript-eslint/parser": "^4.11.0",
13+
"@typescript-eslint/eslint-plugin": "^4.21.0",
14+
"@typescript-eslint/parser": "^4.21.0",
1515
"@vuedx/typecheck": "^0.4.1",
1616
"@vuedx/typescript-plugin-vue": "^0.4.1",
1717
"autoprefixer": "^10.2.1",
18-
"eslint": "^7.18.0",
18+
"eslint": "^7.23.0",
1919
"eslint-config-prettier": "^7.0.0",
20-
"eslint-plugin-vue": "^7.5.0",
20+
"eslint-plugin-vue": "^7.8.0",
2121
"eslint-plugin-vue-libs": "^4.0.0",
2222
"npm-run-all": "^4.1.5",
2323
"postcss": "^8.2.4",
2424
"prettier": "^2.2.1",
2525
"tailwindcss": "^2.0.2",
26-
"typescript": "^4.1.3",
26+
"typescript": "^4.2.3",
2727
"typescript-eslint-language-service": "^4.1.3",
28-
"vitepress": "^0.12.0"
28+
"vitepress": "^0.13.0"
2929
},
3030
"license": "MIT",
3131
"private": true,
@@ -43,6 +43,6 @@
4343
"serve": "vitepress serve"
4444
},
4545
"dependencies": {
46-
"vue-i18n": "^9.0.0-rc.6"
46+
"vue-i18n": "^9.1.2"
4747
}
4848
}

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
5252
// "typeRoots": [], /* List of folders to include type definitions from. */
5353
// "types": [], /* Type declaration files to be included in compilation. */
54+
"types": ["@intlify/vite-plugin-vue-i18n/client"],
5455
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
5556
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
5657
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */

0 commit comments

Comments
 (0)