Skip to content

Commit

Permalink
Revert "#116 #102 enhancement (#177)" (#179)
Browse files Browse the repository at this point in the history
This reverts commit 9670956.
  • Loading branch information
wangcheng15 authored Apr 12, 2022
1 parent 9670956 commit c13bc40
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 374 deletions.
1 change: 0 additions & 1 deletion src/assets/css/variable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ $cellTextColor: #39414D;
$cellCommentColor: #66A0A4;
$cellStringColor: #1021D5;
$cellKeywordColor: #CF2F72;
$pattern-grey-100: #A5B2C5;
$pattern-blue-100: #CEE6FD;
$pattern-blue-200: #e6f1fb;
$pattern-blue-300: #3991e1;
Expand Down
7 changes: 1 addition & 6 deletions src/components/CreateConnection/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
<div class="connect-form">
<el-form size="small" ref="form" :model="form" :rules="rules">
<el-form-item :label="$t('settings.connectionName')" prop="name">
<el-input v-model.trim="form.name" :placeholder="$t('pleaseInput')">
<template slot="prepend">{{ userInfo.username + '_' }}</template>
</el-input>
<el-input v-model.trim="form.name" :placeholder="$t('pleaseInput')" />
</el-form-item>
<el-form-item :label="$t('settings.dataSource')" prop="datasource">
<el-select v-model="form.datasource" style="width: 100%;" @change="value => handleInput('datasource', value)" :placeholder="$t('pleaseSelect')">
Expand Down Expand Up @@ -72,9 +70,6 @@ import { encryptData } from '@/util'
@Component({
computed: {
...mapState({
userInfo: state => state.user.userInfo
}),
...mapState('CreateConnectionModal', {
form: state => state.form,
type: state => state.type,
Expand Down
5 changes: 1 addition & 4 deletions src/components/CreateConnection/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ import Form from './Form.vue'
@Component({
computed: {
...mapState({
userInfo: state => state.user.userInfo
}),
...mapState('CreateConnectionModal', {
isShow: state => state.isShow,
form: state => state.form,
Expand Down Expand Up @@ -86,7 +83,7 @@ export default class CreateConnectionModal extends Vue {
await this.$refs.ruleForm.checkForm()
this.isSubmiting = true
const params = {
name: this.userInfo.username + '_' + this.form.name,
name: this.form.name,
content: { ...this.form }
}
if (params.content.password) {
Expand Down
192 changes: 0 additions & 192 deletions src/components/Header/EngineInfo.vue

This file was deleted.

8 changes: 2 additions & 6 deletions src/components/Header/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<header-menu v-if="!isLoginPage"></header-menu>
</div>
<div class="page-header-right">
<EngineInfo />
<GlobalHelp />
<ChangeLang />
<UserInfo class="page-header-right-item" v-if="!isLoginPage" />
Expand All @@ -19,20 +18,17 @@ import { Component } from 'vue-property-decorator'
import HeaderMenu from './HeaderMenu'
import UserInfo from './UserInfo'
import GlobalHelp from './GlobalHelp'
import ChangeLang from './ChangeLang'
import EngineInfo from './EngineInfo'
import ChangeLang from './ChangeLang.vue'
import { mapState } from 'vuex'
@Component({
components: {
HeaderMenu,
UserInfo,
GlobalHelp,
ChangeLang,
EngineInfo
ChangeLang
},
computed: {
...mapState({
userInfo: state => state.user.userInfo,
isTrial: state => state.global.is_trial
}),
isLoginPage () {
Expand Down
5 changes: 0 additions & 5 deletions src/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,3 @@ export const ACTION_OF_STATE = {
[INSTANCE_STATE['9']]: [0, 0, 5, 0],
[INSTANCE_STATE['10']]: [0, 0, 5, 0]
}

export const ENGINE_STATUS = {
0: 'unavailable',
2: 'available'
}
16 changes: 1 addition & 15 deletions src/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,7 @@
"schedules": "Schedules",
"settings": "Settings",
"give_feedback": "Give Feedback",
"Byzer_docs": "Byzer Notebook Docs",
"engine_status": "Engine State: ",
"heart_beat": "Heartbeat Detection: ",
"usage": "Resource Rate: ",
"state": {
"available": "Running",
"unavailable": "Disabled"
},
"percentage": {
"available": "Normal",
"unavailable": "Disabled",
"crowded": "Crowded"
},
"step": "Auto-refresh engine state every 10 seconds",
"refresh_success": "Engine state refreshed successfully"
"Byzer_docs": "Byzer Notebook Docs"
},
"home": {
"quick_start": "Quick Start",
Expand Down
16 changes: 1 addition & 15 deletions src/locale/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,7 @@
"schedules": "调度",
"settings": "设置",
"give_feedback": "反馈",
"Byzer_docs": "Byzer Notebook 手册",
"engine_status": "引擎状态:",
"heart_beat": "心跳检测:",
"usage": "资源占比:",
"state": {
"available": "运行中",
"unavailable": "不可用"
},
"percentage": {
"available": "正常",
"unavailable": "不可用",
"crowded": "拥挤"
},
"step": "每 10 秒自动刷新引擎状态",
"refresh_success": "引擎状态刷新成功"
"Byzer_docs": "Byzer Notebook 手册"
},
"home": {
"quick_start": "快速开始",
Expand Down
Loading

0 comments on commit c13bc40

Please sign in to comment.