Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
d341a1ac
提交
d341a1ac
authored
4月 14, 2022
作者:
fit2cloud-chenyw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 帮助文档及首页支持链接自定义
上级
11ed4119
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
46 行增加
和
7 行删除
+46
-7
PanelLinkService.java
...main/java/io/dataease/service/panel/PanelLinkService.java
+1
-1
V34__1.10.sql
backend/src/main/resources/db/migration/V34__1.10.sql
+0
-0
en.js
frontend/src/lang/en.js
+4
-1
tw.js
frontend/src/lang/tw.js
+4
-1
zh.js
frontend/src/lang/zh.js
+4
-1
Topbar.vue
frontend/src/layout/components/Topbar.vue
+7
-1
index.vue
frontend/src/views/wizard/index.vue
+26
-2
没有找到文件。
backend/src/main/java/io/dataease/service/panel/PanelLinkService.java
浏览文件 @
d341a1ac
...
...
@@ -35,7 +35,7 @@ public class PanelLinkService {
private
static
final
String
USERPARAM
=
"&user="
;
private
static
final
String
SHORT_URL_PREFIX
=
"/link/"
;
@Value
(
"${server.servlet.context-path}"
)
@Value
(
"${server.servlet.context-path
:#{null}
}"
)
private
String
contextPath
;
@Resource
...
...
backend/src/main/resources/db/migration/V34__1.10.sql
浏览文件 @
d341a1ac
This source diff could not be displayed because it is too large. You can
view the blob
instead.
frontend/src/lang/en.js
浏览文件 @
d341a1ac
...
...
@@ -1683,7 +1683,10 @@ export default {
themeDark
:
'Dark'
,
themeCustom
:
'Custom'
,
openHomePage
:
'Show Home Page'
,
mobileBG
:
'Mobile Login page BG'
mobileBG
:
'Mobile Login page BG'
,
helpLink
:
'Help Document Link'
,
homeLink
:
'Home Link'
,
defaultHomeLink
:
'Default is the system built-in home page'
},
auth
:
{
...
...
frontend/src/lang/tw.js
浏览文件 @
d341a1ac
...
...
@@ -1693,7 +1693,10 @@ export default {
themeCustom
:
'自定義'
,
openHomePage
:
'顯示首頁'
,
mobileBG
:
'移動端登錄頁背景'
mobileBG
:
'移動端登錄頁背景'
,
helpLink
:
'幫助文檔鏈接'
,
homeLink
:
'首頁鏈接'
,
defaultHomeLink
:
'默認為系統內置首頁'
},
auth
:
{
...
...
frontend/src/lang/zh.js
浏览文件 @
d341a1ac
...
...
@@ -1701,7 +1701,10 @@ export default {
themeDark
:
'深色'
,
themeCustom
:
'自定义'
,
openHomePage
:
'显示首页'
,
mobileBG
:
'移动端登录页背景'
mobileBG
:
'移动端登录页背景'
,
helpLink
:
'帮助文档链接'
,
homeLink
:
'首页链接'
,
defaultHomeLink
:
'默认为系统内置首页'
},
auth
:
{
...
...
frontend/src/layout/components/Topbar.vue
浏览文件 @
d341a1ac
...
...
@@ -27,7 +27,7 @@
<lang-select
class=
"right-menu-item hover-effect"
/>
<div
style=
"height: 100%;padding: 0 8px;"
class=
"right-menu-item hover-effect"
>
<a
href=
"https://dataease.io/docs/
"
:href=
"helpLink
"
target=
"_blank"
style=
"display: flex;height: 100%;width: 100%;justify-content: center;align-items: center;"
>
...
...
@@ -151,6 +151,12 @@ export default {
}
return
this
.
variables
.
topBarMenuTextActive
},
helpLink
()
{
if
(
this
.
$store
.
getters
.
uiInfo
&&
this
.
$store
.
getters
.
uiInfo
[
'ui.helpLink'
]
&&
this
.
$store
.
getters
.
uiInfo
[
'ui.helpLink'
].
paramValue
)
{
return
this
.
$store
.
getters
.
uiInfo
[
'ui.helpLink'
].
paramValue
}
return
'https://dataease.io/docs/'
},
/* topMenuColor() {
return this.$store.getters.uiInfo.topMenuColor
}, */
...
...
frontend/src/views/wizard/index.vue
浏览文件 @
d341a1ac
<
template
>
<el-row
class=
"main_container"
>
<div
v-if=
"loading"
v-loading=
"loading"
style=
"position:absolute;top:55px;width: 100%;height: calc(100% - 55px);"
/>
<div
v-else-if=
"homeLink"
>
<iframe
id=
"mobsf"
:src=
"homeLink"
frameborder=
"0"
style=
"position:absolute;top:55px;width: 100%;height: calc(100% - 55px);"
/>
</div>
<el-row
v-else
class=
"main_container"
>
<el-row
class=
"head"
>
<span
class=
"hint_head"
>
{{
$t
(
'wizard.welcome_title'
)
}}
</span>
<br>
<span
class=
"hint_content"
>
{{
$t
(
'wizard.welcome_hint'
)
}}
</span>
...
...
@@ -73,9 +81,25 @@ export default {
href
:
'https://www.dataease.io'
,
component
:
'CardDetail'
}
]
],
loading
:
true
}
},
computed
:
{
homeLink
()
{
if
(
this
.
$store
.
getters
.
uiInfo
&&
this
.
$store
.
getters
.
uiInfo
[
'ui.homeLink'
]
&&
this
.
$store
.
getters
.
uiInfo
[
'ui.homeLink'
].
paramValue
)
{
return
this
.
$store
.
getters
.
uiInfo
[
'ui.homeLink'
].
paramValue
}
return
null
}
},
mounted
()
{
setTimeout
(()
=>
{
this
.
loading
=
false
},
1000
)
},
created
()
{
this
.
init
()
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论