Skip to content

Commit

Permalink
update tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Gzh0821 committed Mar 3, 2025
1 parent 137d6c8 commit 563e09e
Show file tree
Hide file tree
Showing 8 changed files with 1,164 additions and 284 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"vuepress-theme-hope": "2.0.0-rc.71"
},
"dependencies": {
"@intlify/unplugin-vue-i18n": "^6.0.3",
"@vuepress/plugin-watermark": "2.0.0-rc.78",
"ant-design-vue": "~4.2.6",
"axios": "^1.8.1",
Expand Down
1,385 changes: 1,127 additions & 258 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

15 changes: 13 additions & 2 deletions src/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { defineUserConfig } from "vuepress";

import { viteBundler } from "@vuepress/bundler-vite";
import theme from "./theme.js";
import vueI18n from '@intlify/unplugin-vue-i18n/vite'
import { resolve, dirname } from 'node:path'
import { fileURLToPath } from 'node:url'

export default defineUserConfig({
base: "/",
Expand Down Expand Up @@ -41,7 +44,15 @@ export default defineUserConfig({
description: "《PvZ2 Gardendless》的官方网站。《PVZ2 Gardendless》是一款完全重制的,全PC平台的《植物大战僵尸2》(Plants vs Zombies 2)游戏。",
},
},

bundler: viteBundler({
viteOptions: {
plugins: [
vueI18n({
ssr: true
})
],
}
}),
theme,

// Enable it with pwa
Expand Down
8 changes: 4 additions & 4 deletions src/components/level-list/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
<a-list-item>
<template #actions>
<span v-if="item.version">
<HopeIcon icon="code-branch" /> {{ item.version }}
<VPIcon icon="code-branch" /> {{ item.version }}
</span>
<span v-if="item.difficulty">
<HopeIcon icon="fire" /> {{ item.difficulty }}
<VPIcon icon="fire" /> {{ item.difficulty }}
</span>
<span v-if="item.category">
<HopeIcon icon="tag" /> {{ item.category }}
<VPIcon icon="tag" /> {{ item.category }}
</span>
<span v-if="item.updatedAt">
<HopeIcon icon="clock" /> {{ item.updatedAt }}
<VPIcon icon="clock" /> {{ item.updatedAt }}
</span>
</template>
<a-list-item-meta :description="item.introduction">
Expand Down
3 changes: 1 addition & 2 deletions src/components/save-editor/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<a-page-header :title="t('title')" style="font-family: 'pvzgFont'">
<template #extra>
<a-upload :before-upload="handleUpload" accept=".json" :showUploadList="false">
<a-button type="primary"> <upload-outlined /> {{ t('upload save') }} </a-button>
<a-button type="primary"> {{ t('upload save') }} </a-button>
</a-upload>
<a-button @click="newArchive">{{ t('new save') }}</a-button>
<a-button @click="clearArchive" danger>{{ t('clear save') }}</a-button>
Expand Down Expand Up @@ -165,7 +165,6 @@
import { ref, reactive, computed, inject } from 'vue'
import { message, theme } from 'ant-design-vue'
import { useI18n } from 'vue-i18n'
import { getPlantIdMap } from '../plantsAlmanac/formatPlants.ts'
import i18nJson from './vue-i18n.json'
Expand Down
12 changes: 6 additions & 6 deletions src/en/guide/requirement.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ comment: false
index: true
order: 4
---
## <HopeIcon icon="gear" size="1.7rem" color="#585888" /> Configuration
## Configuration
The minimum configuration requirement is the minimum configuration to run the game, and the recommended configuration is to get a standard gaming experience.

#### Minimum Configuration:
Expand All @@ -29,7 +29,7 @@ The minimum configuration requirement is the minimum configuration to run the ga
| DirectX | DirectX 12 |
| Resolution | 1920x1080 |

## <HopeIcon icon="brands fa-windows" size="1.7rem" color="rgb(0, 168, 232)" /> Client System Requirements
## Client System Requirements

| Requirement | Specification |
| ---------------------- | ---------------------------------------------------------------- |
Expand All @@ -38,12 +38,12 @@ The minimum configuration requirement is the minimum configuration to run the ga
| **Necessary Components** | Windows Update |
| Optional Components | WebView2 Runtime |

## <HopeIcon icon="solid fa-earth-americas" size="1.7rem" /> Online Play Requirements
## Online Play Requirements

We recommend that you use the following browser types to access the web version of "PvZ2 Gardendless":
| Browser | Introduction |
| ---------------------- | ---------------------------------------------------------------- |
| <HopeIcon icon="brands fa-chrome"/> Chrome | Chrome 114 or higher is recommended |
| <HopeIcon icon="brands fa-edge"/> Microsoft Edge | Comes with Windows 10/11 |
| <HopeIcon icon="brands fa-firefox-browser"/>Firefox | May have some compatibility issues |
| Chrome | Chrome 114 or higher is recommended |
| Microsoft Edge | Comes with Windows 10/11 |
| Firefox | May have some compatibility issues |

12 changes: 6 additions & 6 deletions src/guide/requirement.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ comment: false
index: true
order: 4
---
## <HopeIcon icon="gear" size="1.7rem" color="#585888" /> 推荐配置
## 推荐配置
最低配置要求是能够运行游戏的最低配置,推荐配置是为了获得标准的游戏体验。

#### 最低配置:
Expand All @@ -28,7 +28,7 @@ order: 4
| 存储 | 2GB 可用空间 |
| DirectX | DirectX 12 |
| 屏幕分辨率 | 1920x1080 |
## <HopeIcon icon="brands fa-windows" size="1.7rem" color="rgb(0, 168, 232)" /> 客户端系统要求
## 客户端系统要求

| 要求 | 规格 |
| ---------------------- | ---------------------------------------------------------------- |
Expand All @@ -37,12 +37,12 @@ order: 4
| **必要组件** | Windows Update |
| 可选组件 | WebView2 Runtime |

## <HopeIcon icon="solid fa-earth-americas" size="1.7rem" /> 网页版要求
## 网页版要求

我们建议您使用以下类型的浏览器访问网页版《PvZ2 Gardendless》:
| 浏览器 | 介绍 |
| ---------------------- | ---------------------------------------------------------------- |
| <HopeIcon icon="brands fa-chrome"/> Chrome | 推荐使用 Chrome 114 或更高版本 |
| <HopeIcon icon="brands fa-edge"/> Microsoft Edge | Windows 10/11系统自带的浏览器 |
| <HopeIcon icon="brands fa-firefox-browser"/>Firefox | 可能存在部分兼容性问题 |
| Chrome | 推荐使用 Chrome 114 或更高版本 |
| Microsoft Edge | Windows 10/11系统自带的浏览器 |
| Firefox | 可能存在部分兼容性问题 |

12 changes: 6 additions & 6 deletions src/ru-RU/guide/requirement.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ comment: false
index: true
order: 3
---
## <HopeIcon icon="gear" size="1.7rem" color="#585888" /> Конфигурация
## Конфигурация
Требования к минимальной конфигурации - это минимальная конфигурация для запуска игры, а рекомендуемая конфигурация предназначена для получения стандартного игрового опыта.

#### минимальные требования:
Expand All @@ -29,7 +29,7 @@ order: 3
| DirectX | DirectX 12 |
| Resolution | 1920x1080 |

## <HopeIcon icon="brands fa-windows" size="1.7rem" color="rgb(0, 168, 232)" /> Системные требования клиента
## Системные требования клиента

| Requirement | Specification |
| ---------------------- | ---------------------------------------------------------------- |
Expand All @@ -38,12 +38,12 @@ order: 3
| **Necessary Components** | Windows Update |
| Optional Components | WebView2 Runtime |

## <HopeIcon icon="solid fa-earth-americas" size="1.7rem" /> Требования к онлайн-игре
## Требования к онлайн-игре

Мы рекомендуем вам использовать следующие типы браузеров для доступа к веб-версии "PvZ2 Gardendless":
| Browser | Introduction |
| ---------------------- | ---------------------------------------------------------------- |
| <HopeIcon icon="brands fa-chrome"/> Chrome | Chrome 114 or higher is recommended |
| <HopeIcon icon="brands fa-edge"/> Microsoft Edge | Comes with Windows 10/11 |
| <HopeIcon icon="brands fa-firefox-browser"/>Firefox | May have some compatibility issues |
| Chrome | Chrome 114 or higher is recommended |
| Microsoft Edge | Comes with Windows 10/11 |
| Firefox | May have some compatibility issues |

0 comments on commit 563e09e

Please sign in to comment.