mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2026-12-01 14:57:52 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cba84471ba | ||
|
|
7617110dbd | ||
|
|
7705e7ae1c | ||
|
|
0bcb4bbfcc | ||
|
|
8209c080e3 | ||
|
|
8853c4b44e | ||
|
|
ea27af8c80 | ||
|
|
60d1f387e4 | ||
|
|
ddd4de353d | ||
|
|
cd4848e739 | ||
|
|
11b9dbff58 | ||
|
|
f2d416b189 | ||
|
|
ecf3ab9aeb | ||
|
|
d32f667869 | ||
|
|
558eeaa51c | ||
|
|
c3787f9dff | ||
|
|
f3797aa3c3 | ||
|
|
874fec1446 | ||
|
|
37a8a25111 | ||
|
|
ca08fa9804 | ||
|
|
6688c9d35c |
@@ -0,0 +1,27 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: '1.19'
|
||||||
|
|
||||||
|
- name: Install golint
|
||||||
|
run: go install golang.org/x/lint/golint@latest
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: go build ./...
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: go test ./...
|
||||||
@@ -8,7 +8,6 @@ on:
|
|||||||
- 'v*'
|
- 'v*'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# github.repository as <account>/<repo>
|
|
||||||
DOCKER_IMAGE_NAME: missuo/deeplx
|
DOCKER_IMAGE_NAME: missuo/deeplx
|
||||||
GHCR_IMAGE_NAME: ${{ github.repository }}
|
GHCR_IMAGE_NAME: ${{ github.repository }}
|
||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
|||||||
@@ -4,16 +4,16 @@ on:
|
|||||||
- 'v*'
|
- 'v*'
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
name: Build Release
|
name: Release
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
Build:
|
Build:
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: "1.19"
|
go-version: "1.19"
|
||||||
|
|
||||||
@@ -2,29 +2,35 @@
|
|||||||
* @Author: Vincent Young
|
* @Author: Vincent Young
|
||||||
* @Date: 2022-10-18 07:32:29
|
* @Date: 2022-10-18 07:32:29
|
||||||
* @LastEditors: Vincent Young
|
* @LastEditors: Vincent Young
|
||||||
* @LastEditTime: 2023-10-28 22:45:58
|
* @LastEditTime: 2023-11-19 19:21:24
|
||||||
* @FilePath: /DeepLX/README.md
|
* @FilePath: /DeepLX/README.md
|
||||||
* @Telegram: https://t.me/missuo
|
* @Telegram: https://t.me/missuo
|
||||||
*
|
*
|
||||||
* Copyright © 2022 by Vincent, All Rights Reserved.
|
* Copyright © 2022 by Vincent, All Rights Reserved.
|
||||||
-->
|
-->
|
||||||
<h1 align="center">
|
|
||||||
<br>DeepL X<br>
|
[![GitHub Workflow][1]](https://github.com/OwO-Network/DeepLX/actions)
|
||||||
</h1>
|
[![Go Version][2]](https://github.com/OwO-Network/DeepLX/blob/main/go.mod)
|
||||||
<h4 align="center">Permanently free DeepL API written in Golang.</h4>
|
[![Go Report][3]](https://goreportcard.com/badge/github.com/OwO-Network/DeepLX)
|
||||||
<p align="center">
|
[![Maintainability][4]](https://codeclimate.com/github/OwO-Network/DeepLX/maintainability)
|
||||||
<a href="https://goreportcard.com/report/github.com/OwO-Network/DeepLX">
|
[![GitHub License][5]](https://github.com/OwO-Network/DeepLX/blob/main/LICENSE)
|
||||||
<img src="https://goreportcard.com/badge/github.com/OwO-Network/DeepLX?style=flat-square">
|
[![Docker Pulls][6]](https://hub.docker.com/r/missuo/deeplx)
|
||||||
</a>
|
[![Releases][7]](https://github.com/OwO-Network/DeepLX/releases)
|
||||||
<a href="https://github.com/OwO-Network/DeepLX/releases">
|
|
||||||
<img src="https://img.shields.io/github/release/OwO-Network/DeepLX/all.svg?style=flat-square">
|
[1]: https://img.shields.io/github/actions/workflow/status/OwO-Network/DeepLX/release.yaml?logo=github
|
||||||
</a>
|
[2]: https://img.shields.io/github/go-mod/go-version/OwO-Network/DeepLX?logo=go
|
||||||
</p>
|
[3]: https://goreportcard.com/badge/github.com/OwO-Network/DeepLX
|
||||||
|
[4]: https://api.codeclimate.com/v1/badges/b5b30239174fc6603aca/maintainability
|
||||||
|
[5]: https://img.shields.io/github/license/OwO-Network/DeepLX
|
||||||
|
[6]: https://img.shields.io/docker/pulls/missuo/deeplx?logo=docker
|
||||||
|
[7]: https://img.shields.io/github/v/release/OwO-Network/DeepLX?logo=smartthings
|
||||||
|
|
||||||
## **Related Projects**
|
## **Related Projects**
|
||||||
[OwO-Network/PyDeepLX](https://github.com/OwO-Network/PyDeepLX): Python Package for DeepLX.
|
| Link | Description | Maintainer |
|
||||||
|
| ------------------------------------------ | -------------------------------------- | ----------------- |
|
||||||
[OwO-Network/gdeeplx](https://github.com/OwO-Network/gdeeplx): Golang Package for DeepLX.
|
| [OwO-Network/PyDeepLX](https://github.com/OwO-Network/PyDeepLX) | Python Package for DeepLX | OwO-Network |
|
||||||
|
| [OwO-Network/gdeeplx](https://github.com/OwO-Network/gdeeplx) | Golang Package for DeepLX | OwO-Network |
|
||||||
|
| [ifyour/deeplx](https://github.com/ifyour/deeplx) | JS Package for DeepLX (JavaScript) | ifyour |
|
||||||
|
|
||||||
## Discussion Group
|
## Discussion Group
|
||||||
[Telegram Group](https://t.me/+8KDGHKJCxEVkNzll)
|
[Telegram Group](https://t.me/+8KDGHKJCxEVkNzll)
|
||||||
@@ -193,5 +199,5 @@ docker run -itd -p 1188:80 missuo/deeplx-bk
|
|||||||
```
|
```
|
||||||
**This docker image is not related to this project, as the original author deleted the image, it is only for backup.**
|
**This docker image is not related to this project, as the original author deleted the image, it is only for backup.**
|
||||||
|
|
||||||
## Author
|
## License
|
||||||
**DeepL X** © [DeepL X Contributors](https://github.com/OwO-Network/DeepLX/graphs/contributors), Released under the [MIT](./LICENSE) License.<br>
|
[](https://app.fossa.com/projects/git%2Bgithub.com%2FOwO-Network%2FDeepLX?ref=badge_large)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @Author: Vincent Young
|
* @Author: Vincent Young
|
||||||
* @Date: 2023-07-01 21:45:34
|
* @Date: 2023-07-01 21:45:34
|
||||||
* @LastEditors: Vincent Young
|
* @LastEditors: Vincent Young
|
||||||
* @LastEditTime: 2023-10-28 22:42:08
|
* @LastEditTime: 2023-11-18 04:12:49
|
||||||
* @FilePath: /DeepLX/main.go
|
* @FilePath: /DeepLX/main.go
|
||||||
* @Telegram: https://t.me/missuo
|
* @Telegram: https://t.me/missuo
|
||||||
*
|
*
|
||||||
@@ -158,7 +158,7 @@ func main() {
|
|||||||
r.GET("/", func(c *gin.Context) {
|
r.GET("/", func(c *gin.Context) {
|
||||||
c.JSON(200, gin.H{
|
c.JSON(200, gin.H{
|
||||||
"code": 200,
|
"code": 200,
|
||||||
"message": "DeepL Free API, Developed by sjlleo <i@leo.moe> and missuo <me@missuo.me>. Go to /translate with POST. http://github.com/OwO-Network/DeepLX",
|
"message": "DeepL Free API, Developed by sjlleo and missuo. Go to /translate with POST. http://github.com/OwO-Network/DeepLX",
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user