-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from jumpserver/pr@dev@feat_i18n
Pr@dev@feat i18n
- Loading branch information
Showing
23 changed files
with
497 additions
and
101 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# build.yml | ||
|
||
name: Auto Build | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
- release-test | ||
|
||
|
||
|
||
env: | ||
ELECTRON_OUTPUT_PATH: interface/dist_electron | ||
CSC_LINK: ${{ secrets.CSC_LINK }} | ||
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | ||
|
||
|
||
jobs: | ||
release: | ||
name: build and release electron app | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-11, windows-latest] | ||
|
||
steps: | ||
- name: Check out git repository | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
|
||
- name: build go client | ||
run: make build-client | ||
working-directory: go-client | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16.x' | ||
|
||
- name: Install system deps | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils | ||
- name: Yarn install | ||
run: | | ||
yarn | ||
yarn global add xvfb-maybe | ||
- name: Build & release app | ||
run: | | ||
yarn build | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
XCODE_APP_TEAM_ID: ${{ secrets.XCODE_APP_TEAM_ID }} | ||
XCODE_APP_LOADER_EMAIL: ${{ secrets.XCODE_APP_LOADER_EMAIL }} | ||
XCODE_APP_LOADER_PASSWORD: ${{ secrets.XCODE_APP_LOADER_PASSWORD }} | ||
BUILD_CERTIFICATE_BASE64: ${{ secrets.CSC_LINK }} | ||
P12_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Jumpserve Clients | ||
# Jumpserve Client | ||
|
||
JumpServer 客户端,支持本地本地客户端拉起。 | ||
## 概览 | ||
|
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,58 @@ | ||
# Jumpserve Client | ||
|
||
JumpServer client, supports local client pull up. | ||
|
||
## Overview | ||
|
||
 | ||
|
||
|
||
## Install | ||
|
||
### Mac | ||
|
||
Download the Mac installation package, install JumpServer.dmg and put JumpServer.app into Applications. Double-click to open JumpServer.app to complete the custom protocol. | ||
|
||
|
||
### Win | ||
|
||
Download the Win installation package and double-click the JumpServer installation package file (you need to wait for 10 seconds). | ||
|
||
|
||
### Linux | ||
|
||
Download the Linux installation package, double-click the Deb installation package file, and open the installation package manager to install it. Or install it using the command | ||
|
||
``` | ||
sudo dpkg -i <package_file> | ||
``` | ||
|
||
|
||
## uninstall | ||
|
||
### Windows | ||
|
||
Just uninstall the control panel directly. | ||
|
||
|
||
### Mac | ||
|
||
Remove JumpServer.app. | ||
|
||
|
||
### Linux | ||
|
||
Click to open Software Manager to uninstall. Or use the command to uninstall | ||
|
||
``` | ||
sudo dpkg --purge <package_file> | ||
``` | ||
|
||
|
||
## package | ||
|
||
- [packaging scheme](https://github.com/jumpserver/apps/blob/master/README_PACK.md) |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "jumpserver-client", | ||
"author": "Fit2Cloud Technology Co., Ltd.; <[email protected]>", | ||
"version": "v2.0.3", | ||
"version": "v2.1.0", | ||
"homepage": "https://jumpserver.org", | ||
"private": true, | ||
"scripts": { | ||
|
@@ -22,6 +22,7 @@ | |
"element-plus": "^2.3.0", | ||
"fs-extra": "^11.1.1", | ||
"vue": "^3.2.13", | ||
"vue-i18n": "^9.6.5", | ||
"vue-router": "^4.1.6" | ||
}, | ||
"devDependencies": { | ||
|
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,17 @@ | ||
import { createI18n } from 'vue-i18n' | ||
import messages from './langs' | ||
|
||
|
||
const browserLang = navigator.systemLanguage || navigator.language | ||
let lang = browserLang || 'zh' | ||
lang = localStorage.getItem('lang') || lang.slice(0, 2) | ||
const i18n = createI18n({ | ||
locale: lang, | ||
legacy: false, | ||
fallbackLocale: 'en', | ||
silentFallbackWarn: true, | ||
silentTranslationWarn: true, | ||
messages | ||
}) | ||
|
||
export default i18n |
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,43 @@ | ||
{ | ||
"Common": { | ||
"JumpServerClient": "JumpServerClient", | ||
"AppDesc": "Introduction", | ||
"DownloadUrl":"Download Link", | ||
"AppPath": "Application Path", | ||
"Priority": "Priority Matching", | ||
"ProtocolPlaceholder": "Please select the database protocol that matches first", | ||
"ProtocolValidate": "Protocol cannot be empty", | ||
"PathValidate": "Path cannot be empty", | ||
"PathPlaceholder": "Please select the database tool launcher path", | ||
"DefaultApp": "Default Application", | ||
"Configured": "Configured", | ||
"NotConfigured": "Not Configured", | ||
"OracleOCI": "The client needs to use OCI version 21.0 and above to connect to the Oracle." | ||
}, | ||
"Dialog": { | ||
"Save&Default": "Save And Default", | ||
"Cancel": "Cancel", | ||
"Save":"Save" | ||
}, | ||
"Router": { | ||
"Terminal": "Terminal", | ||
"RemoteDesktop": "Remote Desktop", | ||
"FileTransfer": "File Transfer", | ||
"Database": "Database", | ||
"AboutUs": "About Us", | ||
"Language": "Language" | ||
}, | ||
"AboutUs": { | ||
"Author": "Author", | ||
"Version": "Version", | ||
"Copyright": "Copyright", | ||
"AllRightsReserved": "All Rights Reserved", | ||
"OfficialWebsite": "Official Website", | ||
"OnlineDocumentation": "Online Documentation", | ||
"CommunityForum": "Community Forum", | ||
"AboutUs": "About Us" | ||
}, | ||
"Language": { | ||
"ChooseLanguage": "Choose Language" | ||
} | ||
} |
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,15 @@ | ||
import zhLocale from "element-plus/lib/locale/lang/zh-cn"; | ||
import enLocale from "element-plus/lib/locale/lang/en"; | ||
import zh from './zh.json' | ||
import en from './en.json' | ||
|
||
export default { | ||
zh: { | ||
...zhLocale, | ||
...zh | ||
}, | ||
en: { | ||
...enLocale, | ||
...en | ||
} | ||
} |
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,43 @@ | ||
{ | ||
"Common": { | ||
"JumpServerClient": "JumpServer客户端", | ||
"AppDesc": "应用说明", | ||
"DownloadUrl":"下载地址", | ||
"AppPath": "应用路径", | ||
"Priority": "优先匹配", | ||
"ProtocolPlaceholder": "请选择优先匹配的数据库协议", | ||
"ProtocolValidate": "协议不能为空", | ||
"PathValidate": "路径不能为空", | ||
"PathPlaceholder": "请选择数据库工具启动程序路径", | ||
"DefaultApp": "默认应用", | ||
"Configured": "已配置", | ||
"NotConfigured": "未配置", | ||
"OracleOCI": "本地客户端连 Oracle 数据库需要使用 21.0 及以上版本 OCI" | ||
}, | ||
"Dialog": { | ||
"Save&Default": "保存且默认", | ||
"Cancel": "关闭", | ||
"Save":"保存" | ||
}, | ||
"Router": { | ||
"Terminal": "远程终端", | ||
"RemoteDesktop": "远程桌面", | ||
"FileTransfer": "文件传输", | ||
"Database": "数据库", | ||
"AboutUs": "关于我们", | ||
"Language": "语言设置" | ||
}, | ||
"AboutUs": { | ||
"Author": "作者", | ||
"Version": "版本", | ||
"Copyright": "版权公告", | ||
"AllRightsReserved": "版权所有", | ||
"OfficialWebsite": "产品官网", | ||
"OnlineDocumentation": "在线文档", | ||
"CommunityForum": "社区论坛", | ||
"AboutUs": "关于我们" | ||
}, | ||
"Language": { | ||
"ChooseLanguage": "选择语言" | ||
} | ||
} |
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
Oops, something went wrong.