-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
35 changed files
with
184 additions
and
11 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
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.
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.
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.
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.
Binary file added
BIN
+13.6 KB
packages/docs/src/.vuepress/public/assets/img/oauth-app-gitea-zh-01.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
BIN
+11.2 KB
packages/docs/src/.vuepress/public/assets/img/oauth-app-gitea-zh-02.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
BIN
+15.7 KB
packages/docs/src/.vuepress/public/assets/img/oauth-app-gitea-zh-03.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
BIN
+26.4 KB
packages/docs/src/.vuepress/public/assets/img/oauth-app-gitea-zh-04.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
BIN
+45.3 KB
packages/docs/src/.vuepress/public/assets/img/oauth-app-gitea-zh-06.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
BIN
+40.5 KB
packages/docs/src/.vuepress/public/assets/img/oauth-app-gitea-zh-07.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
BIN
+44.1 KB
packages/docs/src/.vuepress/public/assets/img/oauth-app-gitea-zh-08.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
BIN
+63.8 KB
packages/docs/src/.vuepress/public/assets/img/oauth-app-gitea-zh-09.png
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
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,55 @@ | ||
# Gitea Application | ||
|
||
> Vssue can also work with self-hosted Gitea. Set the `baseURL` options to your Gitea URL. See [Options Reference - baseURL](../options/README.md#baseurl) | ||
> Gitea requires `clientSecret` because Gitea does not support implicit grant type | ||
## Create a new Application | ||
|
||
- Go to [Settings - Applications](https://gitea.com/user/settings/applications) | ||
|
||
-><- | ||
-><- | ||
|
||
- Set the `Redirect URI` to your website URL (Here we take `localhost:8080` for example) | ||
- Click `Create Application` | ||
|
||
-><- | ||
|
||
## Get the Client ID and Secret | ||
|
||
Then you've created a new Application, and here is your `Client ID` and `Client Secret`. | ||
|
||
-><- | ||
|
||
## Config and start your Vssue | ||
|
||
Copy the `Client ID` and `Client Secret`, and set `owner` and `repo`. | ||
|
||
> The URL pattern of gitea repo is `https://gitea.com/${owner}/${repo}` | ||
Here we take `https://gitea.com/meteorlxy/vssue-demo` for example, and set the `title` of issue to `Vssue Demo`. | ||
|
||
Then run `anywhere -h localhost 8080` to serve the `index.html` on `localhost:8080`. | ||
|
||
-><- | ||
|
||
## Try out Vssue locally | ||
|
||
Vssue has already run here. Click `Login` to login with gitea account and `Click to create issue`. | ||
|
||
-><- | ||
|
||
Redirect to Gitea Authorization page. Click `Authorize Application` to login. | ||
|
||
-><- | ||
|
||
Leave a comment on this page ~ | ||
|
||
-><- | ||
|
||
-><- | ||
|
||
::: tip | ||
You can go to the repo [meteorlxy/vssue-demo](https://gitea.com/meteorlxy/vssue-demo) to get the demo code. Check the [first issue](https://gitea.com/meteorlxy/vssue-demo/issues/1) of that repo to see what happened. | ||
::: |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Gitea 应用 | ||
|
||
> Vssue 同样可以配合自己搭建的 Gitea 使用。只需要将 `baseURL` 设置为你的 Gitea URL 即可。查看 [配置参考 - baseURL](../options/README.md#baseurl) | ||
> Gitea 需要设置 `clientSecret`,因为 Gitea 目前还不支持 implicit grant type | ||
## 创建一个新的应用 | ||
|
||
- 前往 [设置 - 应用](https://gitea.com/user/settings/applications) | ||
|
||
-><- | ||
-><- | ||
|
||
- 将 `重定向 URI` 设置为你的网站 URL (这里我们用 `localhost:8080` 作为示例) | ||
- 点击 `创建应用` | ||
|
||
-><- | ||
|
||
## 获取 Client ID 和 Secret | ||
|
||
现在你已经创建了一个新的第三方应用,并得到了相应的 客户端 ID (`Client ID`) 和 客户端密钥 (`Client Secret`) 。 | ||
|
||
-><- | ||
|
||
## 配置并启动你的 Vssue | ||
|
||
复制 `Client ID` 和 `Client Secret`, 并设置 `owner` 和 `repo`。 | ||
|
||
> Gitea repository 的 URL 模式为 `https://gitea.com/${owner}/${repo}` | ||
这里我们以 `https://gitea.com/meteorlxy/vssue-demo` 为例,并把 issue 的 `title` 设置为 `Vssue Demo`。 | ||
|
||
然后运行 `anywhere -h localhost 8080`,在 `localhost:8080` 监听一个 http server 并返回 `index.html`。 | ||
|
||
-><- | ||
|
||
## 在本地尝试 Vssue | ||
|
||
Vssue 已经成功运行。点击 `登录` 使用 Gitea 帐号登录,并通过 `点击创建 Issue` 创建 Issue。 | ||
|
||
-><- | ||
|
||
重定向到 Gitea 授权页面。点击 `应用授权` 来登录。 | ||
|
||
-><- | ||
|
||
在当前页面写下评论吧 ~ | ||
|
||
-><- | ||
|
||
-><- | ||
|
||
::: tip 提示 | ||
你可以前往 [meteorlxy/vssue-demo](https://gitea.com/meteorlxy/vssue-demo) 来获取 demo 代码。前往该仓库的 [第一个 issue](https://gitea.com/meteorlxy/vssue-demo/issues/1) 看看发生了什么。 | ||
::: |
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