forked from kingmo888/rustdesk-api-server
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/kingmo888/rustdesk-api-se…
- Loading branch information
Showing
26 changed files
with
1,340 additions
and
166 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
name: RustDesk Web Api | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
docker_username: | ||
description: 'docker user name' | ||
required: true | ||
default: '' | ||
docker_password: | ||
description: 'docker user password' | ||
required: true | ||
default: '' | ||
|
||
jobs: | ||
alpine: | ||
runs-on: ubuntu-latest | ||
name: Build Docker Image (Alpine) | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- | ||
name: Release version | ||
id: release_version | ||
run: | | ||
app_version=$(cat version.py |sed -ne "s/APP_VERSION\s=\s'v\(.*\)'/\1/gp") | ||
echo "app_version=${app_version}" >> $GITHUB_ENV | ||
- name: Docker metadata | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: | | ||
${{ github.event.inputs.docker_username }}/rustdesk-api-server | ||
tags: | | ||
type=raw,value=${{ env.app_version }} | ||
type=raw,value=latest | ||
- | ||
name: Set Up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- | ||
name: Set Up Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- | ||
name: Login DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ github.event.inputs.docker_username }} | ||
password: ${{ github.event.inputs.docker_password }} | ||
|
||
- | ||
name: Build Image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: docker | ||
file: docker/Dockerfile | ||
platforms: | | ||
linux/amd64 | ||
linux/arm64 | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
debian: | ||
runs-on: ubuntu-latest | ||
name: Build Docker Image (Debian) | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- | ||
name: Release version | ||
id: release_version | ||
run: | | ||
app_version=$(cat version.py |sed -ne "s/APP_VERSION\s=\s'v\(.*\)'/\1/gp") | ||
echo "app_version=${app_version}-debian" >> $GITHUB_ENV | ||
- name: Docker metadata | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: | | ||
${{ github.event.inputs.docker_username }}/rustdesk-api-server | ||
tags: | | ||
type=raw,value=${{ env.app_version }} | ||
type=raw,value=debian | ||
- | ||
name: Set Up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- | ||
name: Set Up Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- | ||
name: Login DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ github.event.inputs.docker_username }} | ||
password: ${{ github.event.inputs.docker_password }} | ||
|
||
- | ||
name: Build Image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: docker | ||
file: docker/debian.Dockerfile | ||
platforms: | | ||
linux/amd64 | ||
linux/arm64 | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
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 |
---|---|---|
|
@@ -25,4 +25,7 @@ dist_py38 | |
|
||
LICENSE.rst | ||
|
||
db/test_db.sqlite3 | ||
db/test_db.sqlite3 | ||
job2en.py | ||
|
||
新建文本文档.txt |
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,60 @@ | ||
from django.utils.translation import gettext as _ | ||
|
||
|
||
_('管理后台') | ||
_('ID列表') | ||
_('分享机器') | ||
_('这么简易的东西,忘记密码这功能就没必要了吧。') | ||
_('立即注册') | ||
_('创建时间') | ||
_('注册成功,请前往登录页登录。') | ||
_('注册日期') | ||
_('2、所分享的机器,被分享人享有相同的权限,如果机器设置了保存密码,被分享人也可以直接连接。') | ||
_('导出xlsx') | ||
_('生成分享链接') | ||
_('请输入8~20位密码。可以包含字母、数字和特殊字符。') | ||
_('尾页') | ||
_('请确认密码') | ||
_('注册') | ||
_('内存') | ||
_('首页') | ||
_('网页控制') | ||
_('注册时间') | ||
_('链接地址') | ||
_('请输入密码') | ||
_('系统用户名') | ||
_('状态') | ||
_('已有账号?立即登录') | ||
_('密码') | ||
_('别名') | ||
_('上一页') | ||
_('更新时间') | ||
_('综合屏') | ||
_('平台') | ||
_('全部用户') | ||
_('注册页') | ||
_('分享机器给其他用户') | ||
_('所有设备') | ||
_('连接密码') | ||
_('设备统计') | ||
_('所属用户') | ||
_('分享') | ||
_('请输入用户名') | ||
_('1、链接有效期为15分钟,切勿随意分享给他人。') | ||
_('CPU') | ||
_('客户端ID') | ||
_('下一页') | ||
_('登录') | ||
_('退出') | ||
_('请将要分享的机器调整到右侧') | ||
_('成功!如需分享,请复制以下链接给其他人:<br>') | ||
_('忘记密码?') | ||
_('计算机名') | ||
_('两次输入密码不一致!') | ||
_('页码') | ||
_('版本') | ||
_('用户名') | ||
_('3、为保障安全,链接有效期为15分钟、链接仅有效1次。链接一旦被(非分享人的登录用户)访问,分享生效,后续访问链接失效。') | ||
_('系统') | ||
_('我的机器') | ||
_('信息') |
Oops, something went wrong.