Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/src/i18n/en.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"menu": {
"Dashboard1:": "Default password:{msg}",
"add_interface_credentials": "Please add interface credentials",
"Data Q&A": "Data Q&A",
"Data Connections": "Data Sources",
Expand Down
1 change: 1 addition & 0 deletions frontend/src/i18n/ko-KR.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"menu": {
"Dashboard1:": "기본 비밀번호:{msg}",
"add_interface_credentials": "인터페이스 자격 증명을 추가하십시오",
"Data Q&A": "스마트 데이터 조회",
"Data Connections": "데이터 소스",
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/i18n/zh-CN.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"menu": {
"Dashboard1": "默认密码:{msg}",
"add_interface_credentials": "请添加接口凭证",
"kkk:": "默认密码:{msg}",
"Data Q&A": "智能问数",
"Data Connections": "数据源",
"Dashboard": "仪表盘",
Expand Down Expand Up @@ -716,4 +718,4 @@
"input_account": "请输入账号",
"redirect_2_auth": "正在跳转至 {0} 认证,{1} 秒..."
}
}
}
6 changes: 3 additions & 3 deletions frontend/src/views/chat/ChatList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ const handleConfirmPassword = () => {
box-shadow: 0px 4px 8px 0px #1f23291a;
border-radius: 4px;
border: 1px solid #dee0e3;
width: 120px !important;
width: fit-content !important;
min-width: 120px !important;
padding: 0;
.content {
Expand All @@ -417,7 +417,7 @@ const handleConfirmPassword = () => {
}
.item {
position: relative;
padding-left: 12px;
padding: 0 12px;
height: 40px;
display: flex;
align-items: center;
Expand All @@ -434,7 +434,7 @@ const handleConfirmPassword = () => {

&::after {
content: '';
width: 112px;
width: calc(100% - 8px);
height: 32px;
border-radius: 4px;
position: absolute;
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/views/ds/Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ const onClickOutside = () => {
box-shadow: 0px 4px 8px 0px #1f23291a;
border-radius: 4px;
border: 1px solid #dee0e3;
width: 120px !important;
width: fit-content !important;
min-width: 120px !important;
padding: 0;

Expand All @@ -278,7 +278,7 @@ const onClickOutside = () => {

.item {
position: relative;
padding-left: 12px;
padding: 0 12px;
height: 40px;
display: flex;
align-items: center;
Expand All @@ -297,7 +297,7 @@ const onClickOutside = () => {

&::after {
content: '';
width: 112px;
width: calc(100% - 8px);
height: 32px;
border-radius: 4px;
position: absolute;
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/views/system/embedded/Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ const pageLogo = computed(() => {
box-shadow: 0px 4px 8px 0px #1f23291a;
border-radius: 4px;
border: 1px solid #dee0e3;
width: 120px !important;
width: fit-content !important;
min-width: 120px !important;
padding: 0;

Expand All @@ -279,7 +279,7 @@ const pageLogo = computed(() => {

.item {
position: relative;
padding-left: 12px;
padding: 0 12px;
height: 40px;
display: flex;
align-items: center;
Expand All @@ -298,7 +298,7 @@ const pageLogo = computed(() => {

&::after {
content: '';
width: 112px;
width: calc(100% - 8px);
height: 32px;
border-radius: 4px;
position: absolute;
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/views/system/embedded/DsCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const handlePublic = () => {
box-shadow: 0px 4px 8px 0px #1f23291a;
border-radius: 4px;
border: 1px solid #dee0e3;
width: 120px !important;
width: fit-content !important;
min-width: 120px !important;
padding: 0;
.content {
Expand All @@ -231,7 +231,7 @@ const handlePublic = () => {
}
.item {
position: relative;
padding-left: 12px;
padding: 0 12px;
height: 40px;
display: flex;
align-items: center;
Expand All @@ -248,7 +248,7 @@ const handlePublic = () => {

&::after {
content: '';
width: 112px;
width: calc(100% - 8px);
height: 32px;
border-radius: 4px;
position: absolute;
Expand Down
23 changes: 23 additions & 0 deletions frontend/src/views/system/user/User.vue
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,19 @@
size="600px"
:before-close="onFormClose"
>
<div style="margin-bottom: 12px" class="down-template">
<span class="icon-span">
<el-icon>
<Icon name="icon_warning_filled"><icon_warning_filled class="svg-icon" /></Icon>
</el-icon>
</span>
<div class="down-template-content" style="align-items: center">
<span>{{ t('menu.Dashboard1', { msg: 'SQLBot@123456' }) }}</span>
<el-button style="margin-left: 4px" size="small" text @click="copyPassword">{{
t('datasource.copy')
}}</el-button>
</div>
</div>
<el-form
ref="termFormRef"
:model="state.form"
Expand Down Expand Up @@ -521,6 +534,16 @@ const copyText = () => {
})
}

const copyPassword = () => {
copy('SQLBot@123456')
.then(function () {
ElMessage.success(t('embedded.copy_successful'))
})
.catch(function () {
ElMessage.error(t('embedded.copy_failed'))
})
}

const setButtonRef = (el: any, row: any) => {
row.buttonRef = el
}
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/views/system/workspace/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ const handleCurrentChange = (val: number) => {
box-shadow: 0px 4px 8px 0px #1f23291a;
border-radius: 4px;
border: 1px solid #dee0e3;
width: 120px !important;
width: fit-content !important;
min-width: 120px !important;
padding: 0;
.content {
Expand All @@ -885,7 +885,7 @@ const handleCurrentChange = (val: number) => {
}
.item {
position: relative;
padding-left: 12px;
padding: 0 12px;
height: 40px;
display: flex;
align-items: center;
Expand All @@ -902,7 +902,7 @@ const handleCurrentChange = (val: number) => {

&::after {
content: '';
width: 112px;
width: calc(100% - 8px);
height: 32px;
border-radius: 4px;
position: absolute;
Expand Down