Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Physton committed Jun 21, 2023
1 parent 6e62e05 commit bc78a2d
Show file tree
Hide file tree
Showing 312 changed files with 1,238 additions and 582 deletions.
72 changes: 48 additions & 24 deletions docs-src/src/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,21 @@ export default {
sidebar: [
'/Installation.md',
'/InstallationPackages.md',
'/ExtensionUpdateDescription.md',
{
text: 'Toolbar', link: '', children: [
'/LanguageSelection.md',
'/TranslationApiConfiguration.md',
'/FormatOfPrompts.md',
'/ThemeStyle.md',
'/AutomaticTranslation.md',
'/Tooltip.md',
{
text: 'Settings', link: '', children: [
'/TranslationApiConfiguration.md',
'/FormatOfPrompts.md',
'/ThemeStyle.md',
'/Theme.md',
'/About.md',
'/AutomaticTranslation.md',
'/Tooltip.md',
]
},
'/History.md',
'/Favorite.md',
'/BatchTranslation.md',
Expand All @@ -108,7 +115,6 @@ export default {
{
text: 'Other', link: '', children: [
'/WritingInWebUIInputBox.md',
'/ExtensionUpdateDescription.md',
'/Contributing.md',
]
},
Expand All @@ -126,14 +132,21 @@ export default {
sidebar: [
'/ru/Installation.md',
'/ru/InstallationPackages.md',
'/ru/ExtensionUpdateDescription.md',
{
text: 'Панель инструментов', link: '', children: [
'/ru/LanguageSelection.md',
'/ru/TranslationApiConfiguration.md',
'/ru/FormatOfPrompts.md',
'/ru/ThemeStyle.md',
'/ru/AutomaticTranslation.md',
'/ru/Tooltip.md',
{
text: 'Настройки', link: '', children: [
'/ru/TranslationApiConfiguration.md',
'/ru/FormatOfPrompts.md',
'/ru/ThemeStyle.md',
'/ru/Theme.md',
'/ru/About.md',
'/ru/AutomaticTranslation.md',
'/ru/Tooltip.md',
]
},
'/ru/History.md',
'/ru/Favorite.md',
'/ru/BatchTranslation.md',
Expand All @@ -151,7 +164,6 @@ export default {
{
text: 'Другое', link: '', children: [
'/ru/WritingInWebUIInputBox.md',
'/ru/ExtensionUpdateDescription.md',
'/ru/Contributing.md',
]
},
Expand All @@ -170,14 +182,21 @@ export default {
sidebar: [
'/zh-CN/Installation.md',
'/zh-CN/InstallationPackages.md',
'/zh-CN/ExtensionUpdateDescription.md',
{
text: '工具栏', link: '', children: [
'/zh-CN/LanguageSelection.md',
'/zh-CN/TranslationApiConfiguration.md',
'/zh-CN/FormatOfPrompts.md',
'/zh-CN/ThemeStyle.md',
'/zh-CN/AutomaticTranslation.md',
'/zh-CN/Tooltip.md',
{
text: '设置', link: '', children: [
'/zh-CN/TranslationApiConfiguration.md',
'/zh-CN/FormatOfPrompts.md',
'/zh-CN/ThemeStyle.md',
'/zh-CN/Theme.md',
'/zh-CN/About.md',
'/zh-CN/AutomaticTranslation.md',
'/zh-CN/Tooltip.md',
]
},
'/zh-CN/History.md',
'/zh-CN/Favorite.md',
'/zh-CN/BatchTranslation.md',
Expand All @@ -195,7 +214,6 @@ export default {
{
text: '其他', link: '', children: [
'/zh-CN/WritingInWebUIInputBox.md',
'/zh-CN/ExtensionUpdateDescription.md',
'/zh-CN/Contributing.md',
]
},
Expand All @@ -214,14 +232,21 @@ export default {
sidebar: [
'/zh-TW/Installation.md',
'/zh-TW/InstallationPackages.md',
'/zh-TW/ExtensionUpdateDescription.md',
{
text: '工具欄', link: '', children: [
'/zh-TW/LanguageSelection.md',
'/zh-TW/TranslationApiConfiguration.md',
'/zh-TW/FormatOfPrompts.md',
'/zh-TW/ThemeStyle.md',
'/zh-TW/AutomaticTranslation.md',
'/zh-TW/Tooltip.md',
{
text: '設置', link: '', children: [
'/zh-TW/TranslationApiConfiguration.md',
'/zh-TW/FormatOfPrompts.md',
'/zh-TW/ThemeStyle.md',
'/zh-TW/Theme.md',
'/zh-TW/About.md',
'/zh-TW/AutomaticTranslation.md',
'/zh-TW/Tooltip.md',
]
},
'/zh-TW/History.md',
'/zh-TW/Favorite.md',
'/zh-TW/BatchTranslation.md',
Expand All @@ -239,7 +264,6 @@ export default {
{
text: '其他', link: '', children: [
'/zh-TW/WritingInWebUIInputBox.md',
'/zh-TW/ExtensionUpdateDescription.md',
'/zh-TW/Contributing.md',
]
},
Expand Down
15 changes: 15 additions & 0 deletions docs-src/src/About.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# About Page

1. Hover over the `About Icon` with your mouse.

![](./assets/images/About/about_btn.png)

2. Click on the `About Icon`.

![](./assets/images/About/about.png)

3. Click on `sd-webui-prompt-all-in-one` to open the GitHub repository for this project.

4. If there is a new version available, the page will display `New version detected`.

5. To update the extension, please refer to: [Update Extension](/ExtensionUpdateDescription.md).
2 changes: 2 additions & 0 deletions docs-src/src/AutomaticTranslation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Automatic Translation

> In the English language environment, this button will be hidden.
1. Move the mouse over the "Automatic Translation Selection Box" and check it.

![](./assets/images/AutomaticTranslation/checkbox.png)
Expand Down
2 changes: 2 additions & 0 deletions docs-src/src/BatchTranslation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Batch Translation

> In the English language environment, this button will be hidden.
1. Click the "Batch Translation" button to automatically translate all the keywords below.

![](./assets/images/BatchTranslation/translate.png)
Expand Down
3 changes: 2 additions & 1 deletion docs-src/src/DonateList.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@
| 2023-06-16 | | 一键翻译太好用啦! | 10 |
| 2023-06-17 |** | 支持一下 | 5 |
| 2023-06-20 | ** | 谢谢 | 20 |
| 2023-06-20 |** | | 30 |
| 2023-06-20 |** | | 30 |
| 2023-06-21 |** | 蛮好用的 | 5 |
48 changes: 47 additions & 1 deletion docs-src/src/ExtensionUpdateDescription.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,50 @@

3. Overwriting the extension installation with a compressed file or deleting the extension and reinstalling it will result in data loss.

4. If you want to backup your data, you can copy the `storage` directory to another location and then copy it back when needed.
4. If you want to backup your data, you can copy the `storage` directory to another location and then copy it back when needed.

## Update Methods

### Method 1 (Updating with git):

> This method requires Git to be installed on your computer. If it is not installed, please refer to the official [Git documentation](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) for installation instructions.
1. Open the terminal and navigate to your extension directory.

```shell
cd path to your WebUI/extensions/sd-webui-prompt-all-in-one
```

2. Update using git.

```shell
git pull
```

![](./assets/images/Update/update_git.png)

3. Restart the Stable Diffusion WebUI.

### Method 2 (Updating within the WebUI):

1. Open the WebUI webpage.

2. Click on `Extensions` - `Installed` - `Check for Updates`.

3. Click on `Apply and Restart UI`.

![](./assets/images/Update/update_webui.png)

### Method 3 (Updating within the Qiuye Launcher):

> If you are using the Qiuye Launcher, you can update the extension within the launcher.

1. Open the Qiuye Launcher.

2. Click on `Version Management` - `Extensions` - `Refresh List`.

3. Click on the `Update` button next to `sd-webui-prompt-all-in-one`.

![](./assets/images/Update/update_qiuye.png)

4. Restart the Stable Diffusion WebUI.
4 changes: 4 additions & 0 deletions docs-src/src/ListOfKeywords.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Click the `Wrap` button to insert a line break after the current keyword.

## Translate to English

> In the English language environment, this button will be hidden.
![](./assets/images/ListOfKeywords/english.png)

Click the `Translate to English` button to translate the current keyword into English.
Expand Down Expand Up @@ -59,6 +61,8 @@ Click the `Copy` button to copy the current keyword to the clipboard.

## Translate to Local Language

> In the English language environment, this button will be hidden.
![](./assets/images/ListOfKeywords/local_language.png)

Click the `Translate to Local Language` button to translate the current keyword into the local language.
Expand Down
9 changes: 9 additions & 0 deletions docs-src/src/Theme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Switch Light/Dark Theme

1. Move the mouse over the `Switch Theme Icon`.

![](./assets/images/Theme/theme_btn.png)

2. Click the icon to switch the theme.

3. After switching the theme, the webpage will automatically refresh.
2 changes: 2 additions & 0 deletions docs-src/src/TranslationApiConfiguration.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Translation API Configuration

> In the English language environment, this button will be hidden.
## Open the Translation API Configuration Window

1. Hover your mouse over the "Settings" button icon.
Expand Down
Binary file added docs-src/src/assets/images/About/about.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs-src/src/assets/images/About/about_btn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs-src/src/assets/images/AutomaticTranslation/checkbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs-src/src/assets/images/FormatOfPrompts/format_btn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs-src/src/assets/images/Theme/theme_btn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs-src/src/assets/images/ThemeStyle/style_btn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs-src/src/assets/images/Tooltip/tooltip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs-src/src/assets/images/TranslationApiConfiguration/api_btn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs-src/src/assets/images/Update/update_git.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions docs-src/src/ru/About.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# О странице

1. Наведите курсор на значок `О странице`.

![](../assets/images/About/about_btn.png)

2. Нажмите на значок `О странице`.

![](../assets/images/About/about.png)

3. Нажмите на `sd-webui-prompt-all-in-one`, чтобы открыть репозиторий этого проекта на GitHub.

4. Если доступна новая версия, на этой странице будет отображено сообщение `Обнаружена новая версия`.

5. Если вам нужно обновить эту версию расширения, ознакомьтесь с [Инструкцией по обновлению расширения](/ru/ExtensionUpdateDescription.md).
2 changes: 2 additions & 0 deletions docs-src/src/ru/AutomaticTranslation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Автоматический перевод

> В англоязычной среде эту кнопку будут скрывать.
1. Наведите указатель мыши на поле `Флажок автоматического перевода` и отметьте его.

![](../assets/images/AutomaticTranslation/checkbox.png)
Expand Down
2 changes: 2 additions & 0 deletions docs-src/src/ru/BatchTranslation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Массовый перевод

> В англоязычной среде эту кнопку будут скрывать.
1. Нажмите кнопку "Однокнопочный перевод", чтобы автоматически перевести все ключевые слова ниже.

![](../assets/images/BatchTranslation/translate.png)
Expand Down
34 changes: 33 additions & 1 deletion docs-src/src/ru/ExtensionUpdateDescription.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,36 @@

3. При переустановке расширения путем замены файлов или удалении и последующей переустановке, ваши данные будут потеряны.

4. Если вы хотите сделать резервную копию ваших данных, скопируйте каталог `storage` в другое место и скопируйте его обратно, когда это будет необходимо.
4. Если вы хотите сделать резервную копию ваших данных, скопируйте каталог `storage` в другое место и скопируйте его обратно, когда это будет необходимо.

## Способы обновления

### Способ первый (обновление через git):

> Для этого метода требуется установленный на вашем компьютере Git. Если его нет, вы можете ознакомиться с [официальной документацией Git](https://git-scm.com/book/ru/v2/Введение-Установка-Git) и выполнить установку.
1. Откройте терминал и перейдите в папку вашего расширения.

```shell
cd путь к папке вашего WebUI\extensions\sd-webui-prompt-all-in-one
```

2. Выполните обновление с помощью git.

```shell
git pull
```

![](../assets/images/Update/update_git.png)

3. Перезапустите Stable Diffusion WebUI.

### Способ второй (обновление через WebUI):

1. Откройте веб-страницу WebUI.

2. Нажмите на `Расширения` - `Установленные` - `Проверить обновления`.

3. Нажмите на `Сохранить и перезапустить интерфейс`.

![](../assets/images/Update/update_webui.png)
4 changes: 4 additions & 0 deletions docs-src/src/ru/ListOfKeywords.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

## Перевод на английский язык

> В англоязычной среде эту кнопку будут скрывать.
![](../assets/images/ListOfKeywords/english.png)

Если текущее ключевое слово не на английском языке, вы можете нажать кнопку «перевести на английский язык», чтобы перевести его на английский язык.
Expand Down Expand Up @@ -59,6 +61,8 @@

## Перевод на локальный язык

> В англоязычной среде эту кнопку будут скрывать.
![](../assets/images/ListOfKeywords/local_language.png)

Нажмите кнопку «перевести на локальный язык», чтобы перевести текущее ключевое слово на локальный язык.
Expand Down
9 changes: 9 additions & 0 deletions docs-src/src/ru/Theme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Переключение светлой/темной темы

1. Наведите курсор на значок `Переключить тему`.

![](../assets/images/Theme/theme_btn.png)

2. Щелкните по значку, чтобы переключить тему.

3. После переключения темы страница автоматически обновится.
2 changes: 2 additions & 0 deletions docs-src/src/ru/TranslationApiConfiguration.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Настройка API перевода

> В англоязычной среде эту кнопку будут скрывать.
## Открытие окна настройки API перевода

1. Наведите курсор мыши на `иконку кнопки настроек`.
Expand Down
15 changes: 15 additions & 0 deletions docs-src/src/zh-CN/About.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 关于页面

1. 鼠标移动到 `关于图标` 上。

![](../assets/images/About/about_btn.png)

2. 点击 `关于图标`

![](../assets/images/About/about.png)

3. 点击 `sd-webui-prompt-all-in-one`,会打开本项目的 GitHub 仓库。

4. 如果有新的版本,本页面会显示 `检测到新版本`

5. 如果需要更新本扩展版本,请见:[更新扩展](/zh-CN/ExtensionUpdateDescription.md)
Loading

0 comments on commit bc78a2d

Please sign in to comment.