Compare commits

..

865 Commits

Author SHA1 Message Date
fit2bot
7250a6be01 feat: Update v2.28.3 2022-12-12 17:12:13 +08:00
jiangweidong
5667c39bcb fix: 解决命令过滤获取不到一些应用的系统用户问题 2022-11-24 09:37:57 +08:00
jiangweidong
982ce90a9a fix: 去掉clickhouse改密页面入口 2022-11-22 18:39:40 +08:00
吴小白
86ce758adb feat: 更新 action node 版本 2022-11-17 21:56:54 +08:00
Jiangjie.Bai
582a84178d Merge pull request #2187 from jumpserver/dev
v2.28.0
2022-11-17 17:44:19 +08:00
“huailei000”
73de782756 fix: 修复绑定企业微信弹窗时input样式遮挡问题 2022-11-17 16:55:11 +08:00
Jiangjie.Bai
9b9f7c936c Merge pull request #2184 from jumpserver/dev
v2.28.0-rc5
2022-11-17 14:18:15 +08:00
jiangweidong
55100e64a1 perf: 翻译用户的[邮件]改为[邮箱] 2022-11-17 14:16:00 +08:00
jiangweidong
6d74959b64 perf: 翻译用户的[邮件]改为[邮箱] 2022-11-17 14:16:00 +08:00
Jiangjie.Bai
2a6100957f Merge pull request #2182 from jumpserver/dev
v2.28.0-rc4
2022-11-16 21:08:55 +08:00
feng626
6a3f6f8914 Merge pull request #2180 from jumpserver/pr@dev@ticket_expire_time
pef: ticket expire time
2022-11-15 17:34:08 +08:00
“huailei000”
704ae0b294 fix: 修复改密计划详情中列表和资产树添加资产到节点时table会获取url中参数问题 2022-11-15 17:11:40 +08:00
feng
9bf4597d8d pef: ticket expire time 2022-11-15 16:54:45 +08:00
Jiangjie.Bai
16606d6a27 Merge pull request #2176 from jumpserver/dev
v2.28.0-rc2
2022-11-14 10:01:05 +08:00
jiangweidong
bb1d19610e perf: 优化操作日志界面显示随主题变化 2022-11-14 09:47:12 +08:00
老广
ca871b16c4 Revert "perf: 优化刷新页面方法,避免刷新时页面出现空白"
This reverts commit a514e88b78.
2022-11-11 19:39:14 +08:00
Jiangjie.Bai
0a612f50e6 Merge pull request #2164 from jumpserver/dev
v2.28.0-rc1
2022-11-10 17:45:47 +08:00
“huailei000”
d566adb644 fix: 修复账号信息更新消息订阅从新进入页面状态没有改变问题 2022-11-10 17:43:28 +08:00
jiangweidong
242f958428 feat: 云资产同步支持选择IP类型 2022-11-10 17:42:14 +08:00
“huailei000”
f97d46814d perf: update yarn.lock 2022-11-08 15:28:11 +08:00
Jiangjie.Bai
5cc501f5af perf: 优化优先使用系统设置中的 rdp_resolution 配置 2022-11-07 18:47:29 +08:00
jiangweidong
31fd0ecde0 feat: 显示部分资源的批量删除操作按钮 2022-11-04 14:34:14 +08:00
jiangweidong
9d6ac3907a feat: 重构操作日志 (#2088)
* feat: 操作日志重构-支持查看变更资源信息

* feat: 修改界面

* feat: 优化操作日志详情界面

* feat: 修改显示样式
2022-11-04 14:33:02 +08:00
jiangweidong
784bd16e87 feat: 支持纳管 clickhouse[Web Terminal] (#2112) 2022-11-04 14:31:54 +08:00
jiangweidong
4a11ea2c57 feat: 云同步支持金山云 (#2125) 2022-11-04 14:31:20 +08:00
Jiangjie.Bai
4a2ffc754f fix: 修复创建第三方用户时 need_update_password 默认为 true 的问题 2022-11-01 16:38:06 +08:00
吴小白
d31929eb33 perf: 优化构建 2022-10-24 09:51:15 +08:00
Jiangjie.Bai
fe36fa9390 Merge pull request #2117 from jumpserver/dev
v2.27.0-rc4
2022-10-18 21:02:10 +08:00
“huailei000”
a97de8afb4 perf: 重置element-ui的message组件,防止重复点击重复弹出提示 2022-10-18 20:59:39 +08:00
Jiangjie.Bai
ba109900ec Merge pull request #2113 from jumpserver/dev
v2.27.0-rc3
2022-10-18 11:20:57 +08:00
“huailei000”
f8649457d6 perf: 优化页面布局 2022-10-18 10:34:18 +08:00
“huailei000”
8863693541 fix: 修复平台列表修复克隆名称带空格不能创建问题 2022-10-18 10:29:15 +08:00
“huailei000”
c2cbd3f5b0 fix: 修复切换组织下拉框icon图标颜色不明显 2022-10-17 16:32:07 +08:00
“huailei000”
0b84b96afb fix: 修复终端设置-创建录像存储设置默认存储字段不生效问题 2022-10-17 14:50:43 +08:00
Jiangjie.Bai
ec7768267f Merge pull request #2105 from jumpserver/dev
v2.27.0-rc2
2022-10-14 11:01:32 +08:00
吴小白
4aefb6779f fix: 修正错误的构建参数 2022-10-14 10:52:14 +08:00
吴小白
06fd007c62 Revert "revert: 还原 dockerfile"
This reverts commit 6f4e029537.
2022-10-14 10:52:14 +08:00
ibuler
6f4e029537 revert: 还原 dockerfile 2022-10-14 10:29:27 +08:00
Jiangjie.Bai
cc58b374ab Merge pull request #2101 from jumpserver/dev
v2.27.0-rc1
2022-10-13 17:44:53 +08:00
“huailei000”
07f35dbbb2 fix: jQuery undefined 2022-10-13 17:41:08 +08:00
Jiangjie.Bai
04ffbb8fd6 Merge pull request #2097 from jumpserver/dev
v2.27.0-rc1
2022-10-13 15:14:40 +08:00
“huailei000”
12a501d559 perf: update jquery 2022-10-13 11:20:29 +08:00
feng626
7dcd4490ba Merge pull request #2093 from jumpserver/pr@dev@task_log
fix: 修复任务列表无法查看日志信息bug
2022-10-13 10:54:48 +08:00
feng626
dd1ac7c7f8 fix: 修复任务列表无法查看日志信息bug 2022-10-13 10:50:53 +08:00
“huailei000”
471910e0b8 pref: 作业中心任务详情添加查看输出快捷键 2022-10-12 19:13:08 +08:00
“huailei000”
a514e88b78 perf: 优化刷新页面方法,避免刷新时页面出现空白 2022-10-11 16:21:02 +08:00
Jiangjie.Bai
b79fefdee8 feat: 命令过滤器支持关联节点; 2022-10-09 19:02:17 +08:00
Jiangjie.Bai
d2b3025709 perf: 优化用户创建默认勾选登录后需要修改密码 2022-10-09 16:57:02 +08:00
吴小白
386e2417e3 Merge pull request #2075 from YonezawaYukar/dev
fix: 修正 Dockerfile
2022-10-08 09:38:21 +08:00
米泽由香里
fd57b37cea Update Dockerfile
修改一处错误
RUN重复两次 导致无法正常build
2022-10-04 03:28:10 +08:00
吴小白
a6222f87d2 fix: 编译时修改版本 2022-09-30 10:08:14 +08:00
吴小白
5cd4e5b40b perf: 使用 yarn 构建 2022-09-30 10:08:14 +08:00
吴小白
eb3d9089e0 perf: 构建时使用缓存 2022-09-30 10:08:14 +08:00
jiangweidong
56c22cffe6 perf: 优化短信配置错误提示不友好问题 2022-09-26 14:53:03 +08:00
“huailei000”
fe1e26957a fix: 修复全局组织下更新、删除:用户、端点、端点规则、组织权限 2022-09-26 14:52:16 +08:00
“huailei000”
bc366947f0 fix: 实例同步列表不显示多选框;设置云同步详情页面的菜单高亮显示;云同步进入详情不主动激活detail页卡 2022-09-26 14:51:06 +08:00
“huailei000”
86150cc571 fix: 修复账号信息内容更新不及时问题 2022-09-26 14:49:56 +08:00
Jiangjie.Bai
f11fc947af feat: 修改 Endpoint 的创建页面; 修改 Oracle 数据库创建不包含版本号字段 2022-09-22 19:24:15 +08:00
Jiangjie.Bai
49880f6739 Merge pull request #2059 from jumpserver/dev
v2.26.0
2022-09-15 17:49:44 +08:00
“huailei000”
82faf0f99e perf: 资产详情-授权用户没有数据时显示暂无数据 2022-09-15 17:48:41 +08:00
Jiangjie.Bai
e6f98d58c4 Merge pull request #2057 from jumpserver/dev
v2.26.0-rc4
2022-09-15 16:18:03 +08:00
“huailei000”
3536a94976 fix: 修复全局组织下命令过滤不能创建 2022-09-15 15:59:53 +08:00
“huailei000”
45276010e0 fix: 创建数据库端口设置为必填项 2022-09-15 15:34:00 +08:00
“huailei000”
2e47f42366 fix: 修复批量命令列表可点击链接颜色 2022-09-15 15:33:41 +08:00
“huailei000”
dd6e9a1512 fix: 修复批量命令列表可点击链接颜色 2022-09-15 15:33:41 +08:00
Jiangjie.Bai
fd1f16d43c Merge pull request #2050 from jumpserver/dev
v2.26.0-rc2
2022-09-13 17:41:39 +08:00
feng626
24931a9f5a perf: 工单新增相关过滤 2022-09-13 15:33:22 +08:00
ibuler
f51924bf1d perf: 优化密码加密,如果没有key就不加密了 2022-09-13 15:32:53 +08:00
“huailei000”
f82257edb8 fix: 修复创建、更新用户后点击邀请用户接口404问题 2022-09-13 15:31:53 +08:00
jiangweidong
286e9894c0 perf: 屏蔽--secure参数,目前redis-cli版本为6.0,暂时用不到 2022-09-13 11:50:06 +08:00
Jiangjie.Bai
968b2415b1 Merge pull request #2043 from jumpserver/dev
v2.26.0-rc1
2022-09-08 15:46:44 +08:00
“huailei000”
e0f6fb305d perf: cas用户属性映射不能为空,至少设置username 2022-09-08 15:46:08 +08:00
jiangweidong
e0fd33f376 fix: 修复数据库创建页面有多个mongdob的问题 (#2041) 2022-09-08 15:16:54 +08:00
jiangweidong
7ad86062b4 perf: 支持连接开启ssl且自签证书的Redis/MongoDB (#2039)
* perf: 支持连接开启ssl且自签证书的Redis/MongoDB

* 修改字段文案

* 修改字段名称

* 修改变量名
2022-09-07 16:09:07 +08:00
“huailei000”
1fce7561db fix: 修复用户首次登录页面翻译 2022-09-06 19:38:49 +08:00
“huailei000”
3b17235b6e fix: 批量更新不请求接口 2022-09-06 19:06:14 +08:00
jiangweidong
52c9b9503b feat: 支持MFA可配置华为云平台短信对接 2022-09-06 17:33:42 +08:00
Jiangjie.Bai
48a2b20320 Merge pull request #2025 from jumpserver/pr@dev@feat_cloud_support_ctyun_private
feat: 云同步支持同步天翼私有云平台资产
2022-09-06 17:31:01 +08:00
Jiangjie.Bai
e6cc8cd2e8 Merge branch 'dev' into pr@dev@feat_cloud_support_ctyun_private 2022-09-06 17:30:47 +08:00
jiangweidong
3a183ddf53 feat: 支持OAuth2协议自定义注销功能 2022-09-06 17:27:11 +08:00
jiangweidong
7eb77487d1 feat: feat: 支持连接开启了ssl的Redis数据库 2022-09-06 16:55:37 +08:00
jiangweidong
a5da581317 feat: 云同步支持资产同步腾讯云(轻量应用服务器) 2022-09-06 16:19:58 +08:00
“huailei000”
6bda9a372e fix: moment.js 插件升级修复官方漏洞 2022-09-05 13:55:52 +08:00
jiangweidong
a8de087137 feat: 云同步支持同步天翼私有云平台资产 2022-09-02 17:37:27 +08:00
jiangweidong
34d9790a04 feat: MongoDB支持连接SSL类型 2022-08-24 15:00:56 +08:00
“huailei000”
5bfe2497fd fix: 修复新建用户个人信息确认后跳转路由还会返回个人信息确认页问题 2022-08-24 14:48:08 +08:00
jiangweidong
e16a775037 feat: 改密计划支持MongoDB改密 2022-08-24 14:47:46 +08:00
“huailei000”
42fab92237 fix: 调整按钮大小 2022-08-19 16:24:29 +08:00
Jiangjie.Bai
e2eac83615 fix: 修复上传json文件上传问题 2022-08-19 13:36:22 +08:00
“huailei000”
04465a1da3 fix: 修复LDAP用户导入失败弹出提示 2022-08-19 11:05:31 +08:00
“huailei000”
2adb1ee980 fix: 升级lodash 2022-08-19 11:04:43 +08:00
Jiangjie.Bai
776090d6ba Merge pull request #2001 from jumpserver/dev
v2.25.0
2022-08-18 16:12:45 +08:00
feng626
2c66bec7c9 Merge pull request #2000 from jumpserver/pr@dev@ticket_translate
fix: 修复工单翻译
2022-08-18 15:10:45 +08:00
feng626
b10f7faf25 fix: 修复工单翻译 2022-08-18 15:09:26 +08:00
feng626
450014ab16 Merge pull request #1999 from jumpserver/pr@dev@batch_command_filter
perf: 批量命令搜索优化
2022-08-18 11:48:22 +08:00
feng626
8ad0d2ac58 perf: 批量命令搜索优化 2022-08-18 11:44:45 +08:00
Jiangjie.Bai
bd41f96df3 fix: 修复属性映射字段值不显示的问题 2022-08-18 11:01:13 +08:00
Jiangjie.Bai
3a37952288 Merge pull request #1996 from jumpserver/dev
v2.25.0-rc4
2022-08-17 16:53:23 +08:00
Jiangjie.Bai
5346eb1ef1 fix: 修复云同步 lan attrs ip_group 必填项问题,gcp 上传文件不显示问题 2022-08-17 16:46:32 +08:00
Jiangjie.Bai
62b8fc0e3b Merge pull request #1994 from jumpserver/dev
v2.25.0-rc3
2022-08-16 19:08:23 +08:00
“huailei000”
f532d624e0 fix: 字段设置为必填项 2022-08-16 16:31:13 +08:00
“huailei000”
4ce6f49b30 fix: 修复应用授权远程应用以外的类型不显示字段说明 2022-08-16 15:55:19 +08:00
Jiangjie.Bai
2fb160b5f7 fix: 修改表单默认值的设置,gcp 的 attrs 字段中是 child 不是 children 2022-08-16 15:53:25 +08:00
“huailei000”
4ed9fb2acc fix: 取消树搜索input自动提示最近输入 2022-08-16 14:25:54 +08:00
“huailei000”
722fc083cb perf: 替换资产树title 2022-08-16 12:24:35 +08:00
Jiangjie.Bai
4356b79ecc perf: 优化 attrs 字段 default 值的返回 2022-08-15 16:23:13 +08:00
feng626
5eff817b05 Merge pull request #1987 from jumpserver/pr@dev@update_TICKET_AUTHORIZE_DEFAULT_TIME
fix: 配置工单授权时间后更新vuex
2022-08-15 11:28:12 +08:00
feng626
4f08fef25a fix: 配置工单授权时间后更新vuex 2022-08-15 11:27:13 +08:00
Jiangjie.Bai
b2028869cb Merge pull request #1986 from jumpserver/dev
v2.25.0-rc2
2022-08-12 18:06:56 +08:00
feng626
325f21f8b5 Merge pull request #1985 from jumpserver/fix_tree_search_url
fix: 资产树默认关闭搜索;调整搜索url携带的参数
2022-08-12 16:53:33 +08:00
“huailei000”
802d6f6cd3 fix: 资产树默认关闭搜索;调整搜索url携带的参数 2022-08-12 16:49:47 +08:00
feng626
f2120521d6 Merge pull request #1984 from jumpserver/pr@dev@ticket_flow
fix: 还原工单流逻辑
2022-08-12 14:27:02 +08:00
feng626
cbdeea9be7 fix: 还原工单流逻辑 2022-08-12 14:21:53 +08:00
“huailei000”
8d2d38327a fix: 添加正则过滤表情符号方法;修复创建云同步名称能输入表情符号问题 2022-08-12 11:33:22 +08:00
“huailei000”
5c564c42dc fix: 修复资产树右键不显示菜单问题 2022-08-12 11:33:00 +08:00
feng626
0c47f8f962 Merge pull request #1981 from jumpserver/pr@dev@ticket_flow
fix:  全局组织下不能修改工单流
2022-08-12 10:44:12 +08:00
feng626
65d625ad3c fix: 全局组织下不能修改工单流 2022-08-12 10:43:20 +08:00
feng626
0e65b7f1be Merge pull request #1979 from jumpserver/pr@dev@actions
fix: 修复授权动作不展示
2022-08-11 18:05:27 +08:00
feng626
22cfaf8665 fix: 修复授权动作不展示 2022-08-11 18:03:30 +08:00
feng626
b3670fe528 fix: 修复系统工具切换时 清空终端信息 2022-08-11 16:26:19 +08:00
Jiangjie.Bai
2f80b66b07 perf: 云同步 LAN 添加测试超时时间选项 2022-08-11 16:25:54 +08:00
Jiangjie.Bai
5277a725f8 Merge pull request #1973 from jumpserver/dev
v2.25.0-rc1
2022-08-11 14:11:59 +08:00
“huailei000”
b400c13965 perf: 优化资产树搜索等待时间 2022-08-11 14:11:29 +08:00
fit2bot
c71f0c17fc feat: 添加树的title显示模块 (#1975)
* feat: 树组件增加搜索功能

* feat: 添加插入节点

* feat: zTree组件增加搜索功能配置、创建根节点配置

* feat: 添加树的title显示模块

Co-authored-by: “huailei000” <2280131253@qq.com>
2022-08-11 13:43:08 +08:00
fit2bot
a952477c3b fix: 修复创建应用工单action (#1971)
* fix: 修复创建应用工单action

* 调整结构

Co-authored-by: feng626 <1304903146@qq.com>
2022-08-10 19:36:22 +08:00
feng626
1153a3b38b fix: 修复翻译 2022-08-10 11:01:56 +08:00
fit2bot
2e69cd86aa feat: 系统工具Ping和Telnet (#1961)
Co-authored-by: halo <wuyihuangw@gmail.com>
Co-authored-by: Jiangjie.Bai <32935519+BaiJiangJie@users.noreply.github.com>
2022-08-09 17:55:14 +08:00
jiangweidong
a5ea6360bd perf: 优化测试按钮交互 2022-08-09 16:10:39 +08:00
jiangweidong
0639b139d7 feat: 支持CMPPv2.0协议短信网关 2022-08-09 16:10:39 +08:00
ibuler
a8867dee83 perf: aes key 强制最大 16 2022-08-05 14:55:00 +08:00
Jiangjie.Bai
c4d0462362 feat: Cloud 支持局域网 IP 扫描 2022-08-05 14:38:23 +08:00
“huailei000”
db97240ad3 perf: 调整导航栏对齐;替换站内信图标 2022-08-04 14:46:52 +08:00
jiangweidong
5b6f06ac0e feat: 认证方式支持OAuth2.0协议 (#1963)
* feat: 认证方式支持OAuth2.0协议

* 增加scope参数

* perf: 优化 OAuth2 认证逻辑和Logo,支持上传图标

* perf: 优化 OAuth2 认证逻辑和Logo,支持上传图标

Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
2022-08-04 14:41:20 +08:00
“huailei000”
51de827c2b fix: 修复浏览器控制台提示icons提示告警问题 2022-08-03 14:24:55 +08:00
ibuler
49566cdae7 perf: 修改头像 2022-08-03 14:24:37 +08:00
“huailei000”
b6786687b6 fix: 修复修改个人信息后点击tip链接跳转失败问题 2022-08-03 14:24:06 +08:00
feng626
c83abe32c6 Merge pull request #1960 from jumpserver/pr@dev@ticket_app_add_action
feat: 应用工单支持选择动作
2022-07-22 16:25:10 +08:00
feng626
1b19e0201d feat: 应用工单支持选择动作 2022-07-22 16:20:48 +08:00
feng626
7681250fff Merge pull request #1959 from jumpserver/pr@dev@ticket_perm_default_time
feat: 添加默认工单授权时间
2022-07-22 15:23:02 +08:00
feng626
9fe4e0b613 feat: 添加默认工单授权时间 2022-07-22 15:21:22 +08:00
Jiangjie.Bai
f137788c1a Merge pull request #1957 from jumpserver/dev
v2.24.0-rc5
2022-07-20 19:06:03 +08:00
“huailei000”
2f09c3f355 fix: 修复会话记录跳转链接颜色问题 2022-07-20 15:03:28 +08:00
“huailei000”
ea047e01d1 fix: 修复element-button类型为danger&plain的颜色问题 2022-07-20 15:02:59 +08:00
Jiangjie.Bai
f7d17c8de7 Merge pull request #1954 from jumpserver/dev
v2.24.0-rc4
2022-07-19 16:18:13 +08:00
“huailei000”
86ead72858 fix: 创建工单-切换组织时清空节点、资产、系统用户 2022-07-19 16:17:53 +08:00
ibuler
48b22edace perf: 修改 org 变量名称 2022-07-19 15:59:10 +08:00
ibuler
ea682a2aaa perf: 优化 dialog footer padding 2022-07-19 15:39:29 +08:00
fit2bot
8b499d8f7f pref: 优化体验 (#1952)
* perf: 修改 padding

* pref: 优化体验

Co-authored-by: ibuler <ibuler@qq.com>
2022-07-19 15:14:45 +08:00
“huailei000”
25c04e9c05 fix: 修复下拉选中项鼠标hover颜色问题 2022-07-19 15:10:44 +08:00
huangzhiwen
5dca562a12 fix: 修改动作选择为默认全展开 2022-07-19 14:58:18 +08:00
“huailei000”
7701bc9b67 fix: 修复从审批工单进入资产授权点击更新后获取不到数据问题 2022-07-18 17:17:30 +08:00
“huailei000”
157bc08f84 fix: 修复右键资产树后点击切换到其他组织不生效问题 2022-07-18 15:15:17 +08:00
Jiangjie.Bai
feea70b0be Merge pull request #1944 from jumpserver/dev
v2.24.0-rc3
2022-07-18 12:05:42 +08:00
“huailei000”
7921f1f9e5 fix: 修复element-ui 字体图标加载不出来问题 2022-07-18 10:59:06 +08:00
“huailei000”
a7252d16d1 fix: 修复element-ui字体图标加载失败问题 2022-07-17 11:20:20 +08:00
Jiangjie.Bai
04696ef3d6 Merge pull request #1940 from jumpserver/dev
v2.24.0-rc2
2022-07-15 18:07:37 +08:00
feng626
cdde3799af Merge pull request #1939 from jumpserver/pr@dev@confirm_css
fix: confirm css
2022-07-15 16:55:40 +08:00
feng626
f0b987ed54 fix: confirm css 2022-07-15 16:55:01 +08:00
jiangweidong
af60fdabda perf: 优化测试邮箱连接等功能时,交互界面优化,显示loading 2022-07-15 14:57:06 +08:00
“huailei000”
af0d6202bb perf: 优化首屏加载速度 2022-07-15 14:19:15 +08:00
feng626
c1e3c23523 Merge pull request #1937 from jumpserver/pr@dev@ticket_org
fix: 修复工单选择资源组织问题
2022-07-15 11:42:17 +08:00
feng626
7232706a7f fix: 修复工单选择资源组织问题 2022-07-15 11:41:06 +08:00
“huailei000”
dd2b76473f fix: 修复站内信链接颜色 2022-07-15 11:07:52 +08:00
“huailei000”
b41c3ac687 fix: 修复默认主题颜色配置不全问题 2022-07-15 11:01:08 +08:00
Jiangjie.Bai
1731f4f788 Merge pull request #1934 from jumpserver/dev
v2.24.0-rc1
2022-07-14 18:27:51 +08:00
feng626
fa74dad83d fix: vuex add notRootWorkbenchOrgs 2022-07-14 18:11:21 +08:00
Jiangjie.Bai
6f25d93909 Merge pull request #1931 from jumpserver/dev
v2.24.0-rc1
2022-07-14 17:51:58 +08:00
feng626
06a09b90e2 Merge pull request #1932 from jumpserver/pr@dev@ticket_title_css
fix: 修改创建更新工单 标题的css
2022-07-14 16:39:46 +08:00
feng626
3c9767b791 fix: 修改创建更新工单 标题的css 2022-07-14 16:38:17 +08:00
Jiangjie.Bai
da66f5e123 perf: 优化命令过滤器页面说明文案 2022-07-14 15:30:59 +08:00
feng626
e4f33cce14 Merge pull request #1928 from jumpserver/pr@dev@ticket_default_org
fix: ticket del global org
2022-07-14 15:14:50 +08:00
feng626
a5b374e524 fix: ticket del global org 2022-07-14 15:13:02 +08:00
Jiangjie.Bai
46461ec324 Merge pull request #1925 from jumpserver/dev
v2.24.0-rc1
2022-07-14 15:12:15 +08:00
Jiangjie.Bai
0dfcf42635 Merge pull request #1927 from jumpserver/pr@dev@fix_mergemaster
fix: merge dev
2022-07-14 15:11:42 +08:00
Jiangjie.Bai
0aa42bc72a fix: merge dev 2022-07-14 15:10:26 +08:00
fit2bot
cbf76c17d5 pref: 系统用户有 key 后,更新显示指纹 (#1906)
Co-authored-by: ibuler <ibuler@qq.com>
2022-07-14 14:54:55 +08:00
“huailei000”
216a2df6da perf:优化默认主题文件格式 2022-07-14 14:53:36 +08:00
“huailei000”
0b2db0615e fix: 系统用户-telnet协议用户名设置为非必填 2022-07-14 14:47:22 +08:00
“huailei000”
3544fe5bfa fix: 修复无痕模式下其他组织创建新用户登录没有权限问题 2022-07-14 14:42:55 +08:00
feng626
2cd30fc9d8 Merge pull request #1921 from jumpserver/pr@dev@del_history_account
perf: 暂时禁用账号历史
2022-07-14 10:40:45 +08:00
feng626
71bbe7b0c5 perf: 暂时禁用账号历史 2022-07-14 10:38:51 +08:00
feng626
29f1523113 Merge pull request #1919 from jumpserver/pr@dev@audit_command_filter
perf: 批量命令添加搜索项
2022-07-13 17:34:24 +08:00
feng626
6b5981e3af perf: 批量命令添加搜索项 2022-07-13 17:33:13 +08:00
Jiangjie.Bai
273a6cbb3b feat: Endpoint 支持 oracle 版本 2022-07-13 16:32:01 +08:00
feng626
6c78f04d12 Merge pull request #1731 from jumpserver/pr@dev@ticket
fix: 工单 bug
2022-07-13 15:50:08 +08:00
feng626
1b86b4e4cd fix: ticket bug 2022-07-13 15:47:36 +08:00
“huailei000”
94d3560410 fix:资产授权-资产节点列表默认显示资产 2022-07-13 14:03:47 +08:00
“huailei000”
897749547d fix: 修复资产账号连续点击查看不触发问题 2022-07-13 14:03:06 +08:00
ibuler
6fb34451d9 perf: 修改主题 btn 颜色 2022-07-13 11:13:23 +08:00
ibuler
3fba41b27b perf: 优化配色 2022-07-13 10:03:11 +08:00
Jiangjie.Bai
6c5f991494 fix: 修改连接令牌 is_valid 字段 2022-07-12 18:33:58 +08:00
ibuler
e80499b7b4 fix: 修复普通用户登录默认 404
perf: 添加注释
2022-07-12 17:12:03 +08:00
feng626
732788ac72 Merge pull request #1905 from jumpserver/pr@dev@confirm
fix: oauth bind confirm url
2022-07-12 16:02:57 +08:00
feng626
5a63cd253d fix: oauth bind confirm url 2022-07-12 15:59:58 +08:00
feng626
bc17b5c504 feat: 工单支持审批时修改资产 2022-07-12 15:29:27 +08:00
feng626
5dfcfd7b71 Merge pull request #1904 from jumpserver/pr@dev@perf_colors
fix: theme colors default
2022-07-12 14:56:21 +08:00
feng626
39766553fa fix: theme colors default 2022-07-12 14:55:02 +08:00
ibuler
b6be60c584 perf: 优化 theme color 2022-07-12 14:15:45 +08:00
fit2bot
a6d9bd1ab3 perf: 优化 btn 颜色 (#1902)
* perf: 修改 theme

* perf: 优化 btn 颜色

Co-authored-by: ibuler <ibuler@qq.com>
2022-07-12 13:43:33 +08:00
ibuler
940a3c50f3 perf: 修改 theme 2022-07-12 13:28:28 +08:00
ibuler
ca45f61c2c perf: remove unused css 2022-07-12 10:29:05 +08:00
fit2bot
7644bffe12 feat: 添加连接令牌页面 (#1891)
* feat: 修改 API Key action 启停->启用/禁用

* feat: 添加连接令牌页面

* feat: 添加连接令牌页面

* feat: 修改敏感字段组件

* feat: 添加help text

Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
2022-07-11 19:38:56 +08:00
feng626
ba1923cd21 Merge pull request #1899 from jumpserver/pr@dev@yarn_lock
perf: update yarn lock
2022-07-11 18:23:21 +08:00
feng626
e0dc7ab451 perf: update yarn lock 2022-07-11 18:21:57 +08:00
“huailei000”
3a1f0b6d38 fix: 修复info类型button的样式特殊处理 2022-07-11 18:19:52 +08:00
“huailei000”
13b91a541c fix: 修复el-link边框颜色 2022-07-11 17:06:59 +08:00
“huailei000”
0cd96e1d82 fix: 修复混合颜色方法判断错误问题 2022-07-11 15:55:51 +08:00
ibuler
efe6247dbc perf: 修改 theme color 2022-07-11 15:17:34 +08:00
ibuler
b8b7c73bb1 perf: 修改主题 2022-07-11 11:18:23 +08:00
“huailei000”
3b1ea689d1 perf: 删除没有引用的主题文件 2022-07-11 11:16:35 +08:00
“huailei000”
c5a611af06 perf: 修改淘宝镜像新域名 2022-07-11 11:09:25 +08:00
ibuler
ef41dc809c perf: 修改 demo 2022-07-08 15:38:42 +08:00
“huailei000”
bc0ca617a1 fix: 修复修改密码组件颜色随主题色变化 2022-07-08 15:38:11 +08:00
“huailei000”
d25620ecfe fix: 修复element-ui,link标签hover状态的颜色 2022-07-08 15:37:45 +08:00
“huailei000”
bc9d0aeeb3 fix: 修复工单查看受理人翻译问题、颜色问题;修复button focus状态下颜色问题 2022-07-08 13:34:54 +08:00
“huailei000”
bbd2951496 fix: 修复命令存储默认初始值不准确问题 2022-07-08 11:19:58 +08:00
“huailei000”
0d80eca595 feat: 添加主题预览功能 2022-07-07 19:43:03 +08:00
fit2bot
d8cf5ad553 perf: 修改一些名字 (#1882)
* perf: 修改一些名字

* perf: 修改 colors

Co-authored-by: ibuler <ibuler@qq.com>
2022-07-07 18:34:15 +08:00
“huailei000”
ec9b8f0005 perf: 优化修改主题相关方法传参 2022-07-07 18:07:38 +08:00
feng626
d98c961fd8 Merge pull request #1880 from jumpserver/pr@dev@confirm
fix: 调整confirm
2022-07-07 17:07:28 +08:00
feng626
639122aeca fix: 调整confirm 2022-07-07 17:04:54 +08:00
“huailei000”
45852eb4b9 fix: 修复修改主题颜色以后button hover颜色不一致问题 2022-07-07 15:03:15 +08:00
“huailei000”
24e716df5d fix: 修复修改主题颜色后提交保存页面刷新不生效问题 2022-07-07 12:55:24 +08:00
dependabot[bot]
fbda43b9dd build(deps): bump shell-quote from 1.7.2 to 1.7.3
Bumps [shell-quote](https://github.com/substack/node-shell-quote) from 1.7.2 to 1.7.3.
- [Release notes](https://github.com/substack/node-shell-quote/releases)
- [Changelog](https://github.com/substack/node-shell-quote/blob/master/CHANGELOG.md)
- [Commits](https://github.com/substack/node-shell-quote/compare/v1.7.2...1.7.3)

---
updated-dependencies:
- dependency-name: shell-quote
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-07 09:35:02 +08:00
“huailei000”
e5f18fa2bb perf: 去掉预览效果 2022-07-06 20:02:42 +08:00
“huailei000”
a3e97cb039 fix: 修复菜单颜色不变化问题 2022-07-06 19:50:28 +08:00
fit2bot
f4292796fc perf: 优化配色 (#1871)
* perf: 优化配色

* perf: 修改 interface

Co-authored-by: ibuler <ibuler@qq.com>
2022-07-06 19:45:44 +08:00
“huailei000”
bc991fe762 perf: 调整主题配置文件结构 2022-07-06 19:43:18 +08:00
“huailei000”
3de65f9a5b fix: 修复仪表盘不随主题颜色变化问题;修复SAML2-link标签颜色;修复select-down显示颜色 2022-07-06 17:49:38 +08:00
“huailei000”
000c8da6ae perf: 优化主题配置文件对象写法 2022-07-06 15:03:48 +08:00
ibuler
bc253c26b9 perf: 修改 css 名称 2022-07-06 11:01:13 +08:00
“huailei000”
abc3738309 perf: 优化css文件命名;删除没用css文件;解决设置主题保存也生效问题 2022-07-06 10:50:01 +08:00
ibuler
c305ca2e22 pref: 还原高度 2022-07-05 20:17:53 +08:00
“huailei000”
6618afc72f fix: 修复倒入组件报错问题 2022-07-05 20:17:17 +08:00
huailei
ab4b4d5230 Feat addtheme (#1864)
* feat: 删除没用的css文件

* feat: 添加修改主题组件

* feat: 设置全局css变量

* feat: 替换修改主题方法

* perf: 修改 bg color

* perf: 修改 left bar css

* perf: 修改 element

* perf: 暂存与喜爱

* feat: 添加颜色转换方法

* perf: 修改一些

* perf: 修改颜色

* feat: 修改默认elemet-ui样式

* feat: 暂存

* feat: 添加切换菜单栏颜色方法

* feat: 调整配置颜色

* feat: 调整主题相关配色
1、修复弹窗出现黑屏问题
2、修复左侧菜单展开、折叠出现白色闪动问题
3、迁移element-ui.scss文件内容到extra.css文件里

* feat: 调整styles下文件结构;升级sass插件修复构建提示语法错误问题

* feat: 拆分主题配置文件;添加设置到基本设置里

* feat: 修复public-fonts目录下文件内容

* fix: 解决冲突

* feat: 修改颜色配置

Co-authored-by: ibuler <ibuler@qq.com>
2022-07-05 20:06:28 +08:00
fit2bot
be842a3e3a perf: 修改颜色 (#1862)
* perf: 修改颜色

* perf: 优化主题

Co-authored-by: ibuler <ibuler@qq.com>
2022-07-05 17:35:05 +08:00
fit2bot
114704f668 perf: 优化主题配色 (#1859)
* perf: 优化主题配色

* perf: 修改主题

* perf: 修改更新 theme

* perf: 修改主题

* perf: 修改 avart

* perf: css

* perf: css

Co-authored-by: ibuler <ibuler@qq.com>
2022-07-05 14:31:50 +08:00
fit2bot
5f8b3f1986 feat: 账号历史信息 (#1841)
* perf: 账号历史信息

* del app

Co-authored-by: feng626 <1304903146@qq.com>
2022-07-04 18:55:46 +08:00
“huailei000”
4b376b65b3 fix: 修复当前用户加入组织后创建工单不显示加入的组织问题 2022-07-04 11:27:54 +08:00
feng626
f5c7abcbd8 perf: confirm 优化 2022-07-04 11:24:25 +08:00
Jiangjie.Bai
bb91fbb327 perf: 会话列表显示终端名称; 2022-07-04 11:22:30 +08:00
fit2bot
c3cc54a2d2 perf: 简单修改配色 (#1857)
* perf: 简单修改配色

* perf: 吸怪透明度

* perf: 默认红色

Co-authored-by: ibuler <ibuler@qq.com>
2022-07-01 16:12:36 +08:00
fit2bot
109b40f3b2 perf: 修改 css (#1856)
* perf: 修改 css

* perf: 菜单颜色

* perf: 修改主题

* perf: 统一颜色 css

* perf: 修改 css

* perf: 修改 css

Co-authored-by: ibuler <ibuler@qq.com>
2022-07-01 15:15:17 +08:00
Jiangjie.Bai
47a3005b6a perf: 创建更新用户和用户列表添加 is_active 字段 2022-06-30 18:28:35 +08:00
ibuler
7c6530d9e8 perf: 修改统一 css 2022-06-30 18:28:17 +08:00
ibuler
8e57d76713 perf: 整理 css 2022-06-30 18:28:17 +08:00
ibuler
8f6c9af3fb perf: 修改主题 2022-06-30 13:07:22 +08:00
ibuler
2719925f8b perf: remove duplicate css 2022-06-30 13:07:22 +08:00
feng626
51c7a3e8cc Merge pull request #1852 from jumpserver/pr@dev@ticket_bug
fix: 修复工单命令复合显示bug
2022-06-30 11:17:46 +08:00
feng626
0946fedce2 fix: 修复工单命令复合显示bug 2022-06-30 11:16:16 +08:00
Jiangjie.Bai
8b11146e44 feat: Endpoint 添加帮助信息 2022-06-29 18:51:05 +08:00
“huailei000”
263ab8c913 fix: 修复进入工单流程设置详情页,页面布局出现遮挡问题 2022-06-29 10:51:43 +08:00
“huailei000”
33b8e7a21b perf: 修复工单-创建应用授权error提示方式 2022-06-29 10:49:21 +08:00
“huailei000”
ccecaf7aae fix: 修复工单页面刷新会返回到工作台问题 2022-06-28 18:14:19 +08:00
feng626
fc8d9b4509 Merge pull request #1844 from jumpserver/pr@dev@fix_ticket_bug
fix: 解决一些工单已知问题
2022-06-28 17:19:54 +08:00
feng626
25999801d5 fix: 解决一些工单已知问题 2022-06-28 17:15:02 +08:00
“huailei000”
763c8338ef fix: 修复终端管理操作不显示问题 2022-06-28 16:32:49 +08:00
“huailei000”
340516297b fix: 修复密码过期组件变量没找到报错问题 2022-06-28 15:55:42 +08:00
ibuler
069ba9cfc4 perf: 修改 msg 2022-06-23 17:28:11 +08:00
ibuler
4c88a331d5 perf: 修改 license 提示 2022-06-23 17:28:11 +08:00
“huailei000”
d7016c5de2 perf: 优化左侧菜单折叠后title修改为显示图标 2022-06-23 15:54:41 +08:00
feng626
3d41215a63 Merge pull request #1780 from jumpserver/pr@dev@refactor_tickiets
perf: 工单重构
2022-06-23 14:38:44 +08:00
feng626
57e5452220 优化一波 2022-06-23 14:31:06 +08:00
“huailei000”
cc94eb6d4e perf: 优化帮助文案 2022-06-22 16:40:51 +08:00
“huailei000”
0b82947e8f fix: 修复左侧菜单英文翻译问题 2022-06-22 16:22:10 +08:00
ibuler
e4507e35fd perf: 优化站内信布局 2022-06-21 14:27:16 +08:00
“huailei000”
40fd62cd2b fix: 修改在更新页面下切换组织,点击浏览器后退操作接口500问题 2022-06-17 19:00:21 +08:00
ibuler
5e8c1b4881 pref: 优化添加批量删除 2022-06-17 18:20:03 +08:00
ibuler
5f984ecbe6 perf: 修改移动设备下的表现 2022-06-17 18:19:30 +08:00
feng626
111d3d56e2 perf: 优化confirm 重新登录翻译 2022-06-16 18:47:37 +08:00
feng626
91c6a4d6b2 perf: 优化confirm 重新登录翻译 2022-06-16 18:32:14 +08:00
Jiangjie.Bai
58ab7139d6 Merge pull request #1817 from jumpserver/dev
v2.23.0 rc6
2022-06-16 18:13:04 +08:00
“huailei000”
81d8cd971c fix: 切换视图提示信息判断移动端不显示 2022-06-16 18:11:20 +08:00
ibuler
ea3e26b92c perf: 修改移动端 table 2022-06-16 18:09:26 +08:00
feng626
a076a277c9 fix: confirm bug 2022-06-16 18:08:40 +08:00
feng626
3c9a3b693b 修啊修 2022-06-16 17:53:50 +08:00
Jiangjie.Bai
79f6bea423 perf: 优化会话加入记录结束状态显示 2022-06-16 16:42:08 +08:00
Jiangjie.Bai
ea8af7deb3 Merge pull request #1810 from jumpserver/dev
v2.23.0 rc5
2022-06-16 15:53:41 +08:00
ibuler
fcfd26c58f perf: 优化 icon 2022-06-16 15:47:49 +08:00
“huailei000”
a6c1e16339 fix: 修复资产列表右击资产搜索框出现空白tag问题 2022-06-16 15:45:08 +08:00
“huailei000”
c899b209d7 fix: 修复全局组织下不能创建判断;平台列表全局组织可以创建、克隆判断 2022-06-16 14:50:34 +08:00
“huailei000”
bba8f8a9a0 fix: 修复终端管理-翻译问题 2022-06-16 14:50:18 +08:00
“huailei000”
d1b620956e perf: 帮助下拉内容与luna保持一致 2022-06-16 14:15:54 +08:00
Jiangjie.Bai
f260979a11 fix: 修复创建、更新用户时need_update_password字段样式 2022-06-16 13:56:34 +08:00
feng626
f3bc6bdd46 Merge pull request #1804 from jumpserver/pr@dev@confirm_bug
fix: confirm bug
2022-06-16 12:44:03 +08:00
feng626
7fe91756c9 fix: confirm bug 2022-06-16 12:39:41 +08:00
feng626
0fa05aaeb4 Merge pull request #1803 from jumpserver/pr@dev@confirm_input_perf
perf: user confirm input
2022-06-16 12:32:02 +08:00
feng626
2183e6bc89 perf: user confirm input 2022-06-16 12:31:03 +08:00
Jiangjie.Bai
1ecc57b21b Merge pull request #1797 from jumpserver/dev
v2.23.0 rc4
2022-06-15 19:35:36 +08:00
feng626
76085f42c5 fix: 修复profile更新 会取消三方绑定账号问题 2022-06-15 19:31:33 +08:00
“huailei000”
ba0a425359 fix: 修复全局组织下克隆权限判断 2022-06-15 19:31:16 +08:00
feng626
c18f712b84 修改一点 2022-06-15 18:59:00 +08:00
“huailei000”
6815d3be13 fix: 修复资产列表自定义搜索显示true问题 2022-06-15 17:46:52 +08:00
ibuler
385e654fbe perf: 搜索下拉 ID 2022-06-15 16:34:08 +08:00
“huailei000”
09010e4e94 fix: 修复创建用户表单翻译问题 2022-06-15 15:36:12 +08:00
ibuler
f347833ea8 perf: 优化 license 报错 2022-06-15 15:35:18 +08:00
“huailei000”
ae9c5c389d fix: 修复任务列表-删除任务名称不一样问题 2022-06-15 15:31:16 +08:00
Jiangjie.Bai
15a53c4b90 Merge pull request #1791 from jumpserver/dev
v2.23.0-rc3
2022-06-13 17:43:21 +08:00
“huailei000”
703898e707 fix: 修复资产树右键-显示资产详情弹窗不显示问题 2022-06-13 17:39:19 +08:00
feng626
fe0d7a7e3f 修改 2022-06-13 16:25:30 +08:00
Jiangjie.Bai
09b6bc1c18 Merge pull request #1789 from jumpserver/dev
v2.23.0-rc1
2022-06-09 17:40:42 +08:00
Jiangjie.Bai
d1a2564359 perf: 优化Su用户提示信息颜色样式 2022-06-09 17:20:47 +08:00
feng626
a3193beabf 改又改 2022-06-09 14:26:08 +08:00
dependabot[bot]
f46a1054ea build(deps): bump async from 2.6.3 to 2.6.4
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-09 10:34:58 +08:00
dependabot[bot]
64813f9cb6 build(deps): bump follow-redirects from 1.13.1 to 1.14.8
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.13.1 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.13.1...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-09 10:34:34 +08:00
dependabot[bot]
a6c0207c7e build(deps): bump moment from 2.29.1 to 2.29.2
Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-09 10:33:48 +08:00
dependabot[bot]
bf207285a8 build(deps): bump eventsource from 1.0.7 to 1.1.1
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.0.7 to 1.1.1.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](https://github.com/EventSource/eventsource/compare/v1.0.7...v1.1.1)

---
updated-dependencies:
- dependency-name: eventsource
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-09 10:33:29 +08:00
ibuler
dd026f11ee perf: 修改 tree add 2022-06-09 10:23:08 +08:00
feng626
a58accca4d Merge pull request #1786 from jumpserver/pr@dev@relogin_bug
fix: relogin visible
2022-06-08 19:41:09 +08:00
feng626
bb572a3de9 fix: relogin visible 2022-06-08 19:39:27 +08:00
feng626
8836284b88 Merge pull request #1785 from jumpserver/pr@dev@user_confirm
perf: 统一校验当前用户api
2022-06-07 19:25:58 +08:00
feng626
68d97242cc perf: 统一校验当前用户api 2022-06-07 19:20:50 +08:00
Jiangjie.Bai
1bb3f0a48e feat: 添加组件类型 razor 并替换 XRDP_ENABLED 2022-06-07 13:42:24 +08:00
Jiangjie.Bai
7b566ae46f feat: 创建API增加clone_from查询参数 2022-06-06 16:12:41 +08:00
feng626
9dd89fe7ae fix: 合并后的bug 2022-06-02 15:05:51 +08:00
feng626
db67aa9b39 merge pr@dev@refactor_tickets 2022-06-02 11:39:59 +08:00
feng626
df96ce4112 perf: 工单重构 2022-06-02 10:34:05 +08:00
ibuler
4d27014330 perf: 优化工单 2022-06-02 08:48:53 +08:00
Jiangjie.Bai
1cb10902d5 feat: OIDC 用户添加属性映射值 2022-05-31 16:04:12 +08:00
“huailei000”
b71b602433 fix: 修复删除已绑定用户的角色,重复提示报错问题
1、删除组件内错误提示信息,统一走全局错误提示信息
2022-05-31 15:55:27 +08:00
ibuler
e39c4fc339 perf: 优化 ldap 导入 2022-05-30 11:41:21 +08:00
“huailei000”
9107c6a76a feat: 命令过滤详情添加用户、用户组、应用右侧卡片快捷入口 2022-05-30 10:31:26 +08:00
ibuler
55a83a2064 perf: 速度慢点,为以后优化留下空间 2022-05-30 10:30:43 +08:00
ibuler
92f52b100a perf: 优化动画速度 2022-05-30 10:21:18 +08:00
“huailei000”
5cd3aea0a3 feat: 应用授权详情按钮添加权限控制 2022-05-25 09:50:21 +08:00
ibuler
78b72ec68a perf: bool 使用 switcher 2022-05-20 11:43:21 +08:00
fit2bot
04c0c10d46 perf: remote app, cloud, setting 字段支持加密 (#1763)
* stash: 暂存

* pref: 其它字段也加密

* perf: 设置存储字段支持加密

Co-authored-by: ibuler <ibuler@qq.com>
2022-05-20 11:33:18 +08:00
Jiangjie.Bai
c2833cefc2 Merge pull request #1770 from jumpserver/dev
v2.22.0-rc5
2022-05-19 13:07:56 +08:00
“huailei000”
1878376295 fix: 修复消息订阅接受人数不准确问题 2022-05-19 11:44:03 +08:00
Jiangjie.Bai
b25b7dfbc9 Merge pull request #1767 from jumpserver/dev
v2.22.0-rc4
2022-05-18 19:49:38 +08:00
Jiangjie.Bai
98c2677571 fix: 修改 es 翻译 2022-05-18 19:46:33 +08:00
“huailei000”
dd58f400a6 fix: 命令存储索引转换为小写 2022-05-18 19:40:49 +08:00
“huailei000”
a0baca0859 fix: 修复导入弹窗组件参数类型报错问题 2022-05-18 17:35:10 +08:00
“huailei000”
8f7bcc2e26 fix: 修复zTree添加、移动资产时menu无法关闭问题 2022-05-18 17:34:51 +08:00
ibuler
5835ac7f70 perf: 添加 session guard 2022-05-18 14:50:16 +08:00
Jiangjie.Bai
fe5941e078 Merge pull request #1758 from jumpserver/dev
v2.22.0-rc3
2022-05-17 21:13:32 +08:00
ibuler
b497f80a76 perf: 开启工单启用 2022-05-17 18:59:24 +08:00
ibuler
8efb405fc0 perf: 恢复 tickets 2022-05-17 18:01:36 +08:00
“huailei000”
51d0861550 fix: 修复工单详情跳转资产授权、应用授权权限位判断问题 2022-05-17 17:28:58 +08:00
Jiangjie.Bai
3050b09b2d Merge pull request #1753 from jumpserver/dev
v2.22.0-rc2
2022-05-17 15:22:01 +08:00
fit2bot
aa00f1e4a6 perf: 修改 console.log() 语句为 debug() 标识 (#1749)
Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
Co-authored-by: Jiangjie.Bai <32935519+BaiJiangJie@users.noreply.github.com>
2022-05-17 15:16:33 +08:00
ibuler
c604957e66 perf: 账户更新加密 2022-05-17 15:14:18 +08:00
ibuler
91d0f6f92b revert: 暂时还原一下 2022-05-17 14:58:47 +08:00
feng626
f11131e9ad Merge pull request #1751 from jumpserver/pr@dev@fix_bulk_update
fix: 修复批量提交的问题
2022-05-17 12:08:01 +08:00
ibuler
db1b02c262 fix: 修复批量提交的问题 2022-05-17 12:02:04 +08:00
jiangweidong
2610645703 feat: 云同步资产支持Fusion Compute私有云 2022-05-16 18:11:03 +08:00
feng626
a9ee9ac919 Merge pull request #1747 from jumpserver/pr@dev@ticket_perm_workbench
fix: 修复申请工单时未选择工作台权限没有对应组织bug
2022-05-16 13:06:58 +08:00
feng626
b9cd54127c fix: 修复申请工单时未选择工作台权限没有对应组织bug 2022-05-16 13:05:53 +08:00
Jiangjie.Bai
b24deb6c1e Merge pull request #1745 from jumpserver/dev
v2.22.0 rc1
2022-05-12 17:03:12 +08:00
ibuler
ee901e54d3 perf: 修改 token 2022-05-12 15:43:54 +08:00
Jiangjie.Bai
0b5820edba feat: Endpoint添加Redis Port 2022-05-12 14:48:15 +08:00
ibuler
f10118d9d2 perf: 关闭浏览器失效会话 2022-05-12 11:36:05 +08:00
Jiangjie.Bai
c7bf054af7 fix: 删除用户向导配置项 2022-05-11 17:31:47 +08:00
Jiangjie.Bai
fd9916b21b feat: LDAP同步用户支持组织 2022-05-11 11:10:12 +08:00
fit2bot
e78e0cf132 perf: 优化加密传输 (#1739)
* perf: 优化加密

* perf: 优化加密传输

Co-authored-by: ibuler <ibuler@qq.com>
2022-05-10 17:41:14 +08:00
ibuler
441c1eb91d perf: 优化加密 2022-05-10 17:29:07 +08:00
feng626
ab4edd37d4 Merge pull request #1738 from jumpserver/pr@dev@terminal_bulk_update_command_storage
fix: 修复终端存储批量更新
2022-05-10 11:34:30 +08:00
feng626
def43f8e07 fix: 修复终端存储批量更新 2022-05-10 11:32:45 +08:00
“huailei000”
ea1148159b fix: 调整切换视图提示位置 2022-05-10 10:46:00 +08:00
jiangweidong
92a23c6e69 perf: 优化字段 2022-05-09 16:38:23 +08:00
jiangweidong
d6c3cce161 perf: 命令存储ES可根据日期动态建立索引 2022-05-09 16:38:23 +08:00
ibuler
fe5649fbd2 perf: 优化 view switch 切换,增加提示 2022-05-09 14:50:51 +08:00
ibuler
e91ca71812 perf: 修改使用 rsa 加密数据 2022-05-07 15:42:46 +08:00
Jiangjie.Bai
4a8305979e feat: public settings 区分 public 和 open 2022-05-07 12:22:55 +08:00
Frank
b81cbb3d16 文件上传的时候 会让人误以为是直接点击上传按钮。其实是两种方式:要么退拽到此处,或者点击此处上传文件。 2022-05-07 11:11:58 +08:00
“huailei000”
b95867d229 fix: 系统用户应用账号列表设置为不可点击 2022-05-05 16:05:21 +08:00
jiangweidong
1ac9ca4593 feat: 账号管理下的资产账号及系统用户下的资产账号支持批量删除 2022-05-05 16:04:47 +08:00
jiangweidong
e59a71285d perf: 查看账号管理中的密码记录日志 2022-05-05 16:04:21 +08:00
Jiangjie.Bai
fac0c6ff9a feat: 添加License数量限制超过提示 2022-05-05 15:54:38 +08:00
Jiangjie.Bai
688eb5838f perf: 优化 OIDC 支持选择认证方式 2022-04-29 14:28:28 +08:00
“huailei000”
075ad0358b fix: 修复临时密码提示翻译 2022-04-29 10:45:49 +08:00
“huailei000”
1187892370 fix: 修复不同语言下switcherview边距问题 2022-04-29 10:44:06 +08:00
feng626
68e30c29fa fix: 开放platform 权限 2022-04-29 10:39:02 +08:00
fit2bot
565ed805da perf: 优化 tree table (#1722)
* perf: 优化 tree table

* perf: 还原信息

Co-authored-by: ibuler <ibuler@qq.com>
2022-04-28 16:06:02 +08:00
feng626
59fa4cd6e0 Merge pull request #1712 from jumpserver/pr@dev@workbench_orgs
fix: myorgs -> workbench_orgs
2022-04-25 11:37:17 +08:00
feng626
547263d44c fix: myorgs -> workbench_orgs 2022-04-25 11:33:32 +08:00
feng626
59a0a41586 Merge pull request #1710 from jumpserver/pr@dev@fix_temporary_password_text
fix: 修改临时密码提示文案
2022-04-25 11:05:52 +08:00
“huailei000”
2d887df226 fix: 修改临时密码提示文案 2022-04-25 03:00:15 +00:00
ibuler
03ad4cc73c perf: 修改 build 2022-04-24 09:32:23 +08:00
Jiangjie.Bai
4fd8956b0d Merge pull request #1707 from jumpserver/dev
v2.21.0
2022-04-21 18:10:49 +08:00
ibuler
9d75e2e6fd perf: 修改 组织 2022-04-21 17:38:17 +08:00
ibuler
6317400da8 perf: 去掉 reload 2022-04-21 17:38:17 +08:00
fit2bot
7f963e9991 perf: 修改 view 切换 (#1705)
* perf: 修改 view 切换

* fix: 修改 view 跳转 bug

* perf:去掉 reload

Co-authored-by: ibuler <ibuler@qq.com>
2022-04-21 17:23:58 +08:00
“huailei000”
8a731937cf fix: 修复用户列表批量更新弹窗组件不重新渲染问题 2022-04-21 17:01:57 +08:00
fit2bot
a593da7fea perf: 修改 cookie get (#1703)
Co-authored-by: ibuler <ibuler@qq.com>
2022-04-21 15:52:39 +08:00
fit2bot
b9547214b7 perf: view switch 默认值 (#1702)
* perf: view switch 默认值

* perf: 去掉冗余

Co-authored-by: ibuler <ibuler@qq.com>
2022-04-21 13:59:58 +08:00
fit2bot
0e7b60a001 fix: 切换视图的问题,修复组织切换的问题 (#1701)
* fix: 切换视图的问题,修复组织切换的问题

* perf: 优化写法

Co-authored-by: ibuler <ibuler@qq.com>
2022-04-21 11:07:56 +08:00
Jiangjie.Bai
20f84db466 Merge pull request #1700 from jumpserver/dev
v2.21.0-rc6
2022-04-20 20:26:24 +08:00
“huailei000”
c5495d9846 fix: 修复会话录像时间1秒显示问题 2022-04-20 20:22:18 +08:00
ibuler
332cd2c073 perf: 修改 org 2022-04-20 19:54:52 +08:00
“huailei000”
2b4d827789 fix: dashboard页面在线用户文案修改为 连接用户 2022-04-20 19:54:29 +08:00
“huailei000”
92144e4f69 fix: 修复移动端搜索框不对齐问题 2022-04-20 17:58:43 +08:00
“huailei000”
41d42c04a6 fix: 修复用户列表批量移除权限位 2022-04-20 17:58:11 +08:00
“huailei000”
f4f42639aa fix: 导入弹框权限根据路由自动判断 2022-04-20 17:57:45 +08:00
“huailei000”
a37af9ed7d fix: 修复命令记录跳转去权限 2022-04-20 16:49:30 +08:00
Jiangjie.Bai
1f0fe18533 fix: 修改系统设置-终端设置创建权限控制 2022-04-20 16:49:01 +08:00
feng626
bc21d7ac17 Merge pull request #1694 from jumpserver/pr@dev@add_orgrolebinding
fix: 修复角色添加用户权限问题
2022-04-20 15:48:35 +08:00
feng626
922ecbf096 fix: 修复角色添加用户权限问题 2022-04-20 15:47:23 +08:00
fit2bot
a162a206bc perf: 修改 tickets orgs (#1691)
* perf: 修改 tickets orgs

* perf: 修改 orgs 切换

Co-authored-by: ibuler <ibuler@qq.com>
2022-04-20 15:27:04 +08:00
fit2bot
12a85da6f7 fix: 修复点击资产授权树勾选框报错的问题 (#1687)
* fix: 修复点击资产授权树勾选狂报错的问题

* fix: 修复点击资产授权树勾选狂报错的问题

Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
2022-04-20 11:32:25 +08:00
Jiangjie.Bai
585f5e04d6 Merge pull request #1686 from jumpserver/dev
v2.21.0-rc5
2022-04-19 21:59:27 +08:00
feng626
6db90fce09 perf: add org remind 2022-04-19 21:56:18 +08:00
Jiangjie.Bai
69e392b069 fix: 请求设置默认org_id 2022-04-19 20:23:57 +08:00
“huailei000”
e5b2bd7008 fix: 修复会话详情页button 按钮权限位控制 2022-04-19 20:19:00 +08:00
Jiangjie.Bai
c6aaaaf1fd perf: 优化临时密码route控制 2022-04-19 20:18:37 +08:00
“huailei000”
1ab6ed6109 fix: 修复用户详情页按钮权限 2022-04-19 20:18:08 +08:00
“huailei000”
c17d983b2f fix: 修复应用改密计划详情页执行列表操作权限 2022-04-19 20:17:38 +08:00
Jiangjie.Bai
484fb63577 fix: 修复ldap同步interval必填 2022-04-19 18:29:28 +08:00
Jiangjie.Bai
2c8d8c6e66 fix: 修复ldap同步interval必填 2022-04-19 18:29:28 +08:00
Jiangjie.Bai
5577051416 fix: 修改日期搜索默认8天内 2022-04-19 17:45:13 +08:00
“huailei000”
cd51596d45 fix: 恢复资产列表展示字段 2022-04-19 16:18:15 +08:00
Jiangjie.Bai
dd5b805da9 feat: 添加配置项 KoKo SSH Client 方式 2022-04-19 16:17:09 +08:00
ibuler
54097f07be perf: 修改 view orgs 2022-04-19 13:21:22 +08:00
老广
ef5c1b2e23 Merge pull request #1674 from jumpserver/dev
v2.21.0-rc5
2022-04-19 13:15:38 +08:00
ibuler
f104376e92 perf: 优化一些写法 2022-04-19 10:20:41 +08:00
fit2bot
62ed11e7ec perf: 修改用户所属的 org (#1662)
* perf: 修改用户所属的 org

* perf: 修改组织问题

* perf: 修改优化 nav 切换

* perf: 修改 org id

* perf: 修改验证逻辑

* perf: 修改 orgs

Co-authored-by: ibuler <ibuler@qq.com>
2022-04-18 20:20:32 +08:00
“huailei000”
3fd8e23c2c fix: 修改站内信文案为全部已读;调整布局遮挡问题 2022-04-18 16:48:41 +08:00
Jiangjie.Bai
a93ecac15c fix: 修改云任务执行权限控制 2022-04-18 16:05:33 +08:00
Jiangjie.Bai
1fb75fbce0 Merge pull request #1668 from jumpserver/dev
v2.21.0-rc4
2022-04-18 15:34:13 +08:00
“huailei000”
1d594fc594 fix: 修复dialog组件不能关闭问题 2022-04-18 15:33:12 +08:00
“huailei000”
a4abe63ec9 fix: 修复资产列表显示空白字段问题 2022-04-18 15:32:23 +08:00
“huailei000”
4262410038 fix: 内部的message通知使用v-html显示 2022-04-18 15:31:34 +08:00
Jiangjie.Bai
2735d638a2 Merge pull request #1664 from jumpserver/dev
v2.21.0-rc3
2022-04-18 11:44:56 +08:00
Jiangjie.Bai
f9bade6a7c feat: 控制临时密码菜单 2022-04-18 11:32:42 +08:00
Jiangjie.Bai
eaf3c5b013 feat: 设置SessionCookieNamePrefix 2022-04-15 21:14:48 +08:00
“huailei000”
2c2e7d10f9 feat: 增加列表查看、复制组件 2022-04-15 20:06:51 +08:00
Jiangjie.Bai
9243a6699c fix: 系统监控添加Magnus 2022-04-15 16:40:08 +08:00
Jiangjie.Bai
e9a2818580 Merge pull request #1656 from jumpserver/dev
v2.21.0-rc2
2022-04-14 18:40:55 +08:00
feng626
4b318c0aaf Merge pull request #1655 from jumpserver/pr@dev@site_msg
feat: 站内信一键已读
2022-04-14 12:18:29 +08:00
feng626
e9211205cb feat: 站内信一键已读 2022-04-14 11:59:36 +08:00
Jiangjie.Bai
e14a31f31c Merge pull request #1654 from jumpserver/dev
v2.21.0-rc1
2022-04-13 20:31:57 +08:00
jiangweidong
b85db6b73f feat: temp password 2022-04-13 20:09:45 +08:00
jiangweidong
6d8dc058cb feat: 支持临时密码 (one-time-password) 登录 2022-04-13 20:09:45 +08:00
jiangweidong
2b3090b44c feat: 支持资产授权和应用授权的批量更新 2022-04-13 16:53:56 +08:00
“huailei000”
f08b3708d4 fix: 修复更多按钮样式 2022-04-13 14:48:58 +08:00
fit2bot
a8a7538655 feat: 添加Endpoint (#1651)
* feat: 添加Endpoint页面

* feat: 添加Endpoint Rule页面

* feat: 获取connect-url连接地址

* feat: 删除配置KOKO、XRDP、MAGNUS

* feat: 修改翻译

* feat: 修改默认endpoint不能删除

Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
2022-04-12 19:28:42 +08:00
fit2bot
364f2aaf12 perf: 修改翻译 (#1650)
* perf: 修改 workspace

* perf: 修改翻译

Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: Jiangjie.Bai <32935519+BaiJiangJie@users.noreply.github.com>
2022-04-12 13:52:21 +08:00
“huailei000”
dcb87c6216 perf: 调整table列表-操作内容居中显示 2022-04-11 17:06:57 +08:00
“huailei000”
06bd68a874 fix: 概览页显示模块位置调整,增加公告显示;修复概览页跳转权限判断 2022-04-11 15:00:53 +08:00
feng626
4a2b663220 fix: 修复消息订阅无法更新bug 2022-04-08 16:05:34 +08:00
“huailei000”
59342b65c8 fix: 修复终端管理-批量更新弹窗不显示label问题 2022-04-08 15:14:08 +08:00
jiangweidong
4edd9097ab feat: 云同步支持京东云 2022-04-07 11:28:41 +08:00
“huailei000”
6e10f4ccc1 fix: 修复公告对齐展示 2022-04-07 11:25:26 +08:00
“huailei000”
9510dec9e0 fix: 在线会话-命令单行文本省略展示 2022-04-07 11:25:01 +08:00
feng626
31bb679a8e feat: ldap一键导入及设置用户组织 2022-04-06 17:51:31 +08:00
feng626
357b67ffe0 fix: 修改系统用户类型 2022-04-06 14:25:22 +08:00
“huailei000”
07036cdea7 feat: i18n获取浏览器默认语言 2022-04-01 16:28:58 +08:00
一路向北
ec2674a956 Update README.md 2022-04-01 15:24:09 +08:00
“huailei000”
e5791c184d feat: 公告支持换行显示 2022-04-01 15:23:38 +08:00
feng626
bcd0384baa Merge pull request #1622 from jumpserver/pr@dev@koko_setting
feat: koko setting
2022-03-30 19:52:24 +08:00
feng626
461a385596 feat: koko setting 2022-03-30 19:51:05 +08:00
ibuler
0c9440d835 perf: terminal icon 2022-03-30 11:27:01 +08:00
ibuler
9f7c145065 perf: 修改lang 2022-03-29 19:58:33 +08:00
Jiangjie.Bai
05d66c4c4f feat: 改密计划支持su切换用户执行 2022-03-29 16:42:39 +08:00
“huailei000”
c1498d4de5 fix: 修复数据库-创建类型 2022-03-29 14:54:32 +08:00
jiangweidong
34f17beb3c feat: 支持日语 (#1612) 2022-03-28 10:08:53 +08:00
halo
c6f39c79fa perf: 优化长命令记录页面自动换行 2022-03-25 19:40:04 +08:00
ibuler
ae5005ceef feat: 修改 app type 2022-03-25 19:39:29 +08:00
Jiangjie.Bai
dad107d768 Revert "perf:: 修复empty组件为函数式组件"
This reverts commit 8ae14bfb37.
2022-03-25 17:04:25 +08:00
“huailei000”
021dbe6e2e fix:修复资产列表-从节点移除 权限位不准确问题 2022-03-25 14:43:30 +08:00
“huailei000”
8ae14bfb37 perf:: 修复empty组件为函数式组件 2022-03-25 14:42:49 +08:00
“huailei000”
ea2c3f1a11 fix: 修复工单详情detail组件布局问题 2022-03-25 14:38:00 +08:00
“huailei000”
dadeea6d1e perf: 优化日期组件显示遮挡问题 2022-03-22 16:59:21 +08:00
feng626
05e5bcc10d fix: user org perm 2022-03-22 16:58:56 +08:00
ibuler
87d211563f perf: 优化 mongo db 2022-03-22 11:31:06 +08:00
ibuler
6b7f868538 feat: mongodb 支持 2022-03-22 11:31:06 +08:00
ibuler
d3c2d0e7e8 perf: 优化名称显示 2022-03-22 10:52:51 +08:00
“huailei000”
088dbc4e42 fix: 修复系统用户-资产列表按钮权限不准确问题 2022-03-21 19:24:37 +08:00
jiangweidong
18016ffdba feat: 支持百度云资产同步 2022-03-21 19:23:56 +08:00
feng626
b57e65a100 Merge pull request #1599 from jumpserver/pr@dev@asset_user_perm
fix: 修复资产详情中授权用户可查看用户权限
2022-03-21 11:16:49 +08:00
feng626
8852924d45 fix: 修复资产详情中授权用户可查看用户权限 2022-03-21 10:55:27 +08:00
“huailei000”
da1f322e1c fix: 修复apikey权限位问题 2022-03-18 18:16:51 +08:00
“huailei000”
b22b01529a fix: 修复2个tab只给其中一个tab权限接口提示报错问题 2022-03-18 17:15:43 +08:00
Jiangjie.Bai
26ba2c091e fix: 从节点移除资产权限位修改 2022-03-18 17:10:58 +08:00
Jiangjie.Bai
23ee181c63 fix: 修复资产详情系统用户页面权限控制 2022-03-18 16:53:49 +08:00
Jiangjie.Bai
3aca8cdffd fix: 修复工单中会话卡片按钮的权限控制 2022-03-18 16:41:20 +08:00
“huailei000”
b5cd17485e fix: 修复工作台-待我审批权限位问题 2022-03-18 15:11:29 +08:00
Jiangjie.Bai
4db98964dd fix: 修复角色更新、删除权限控制 2022-03-18 14:52:21 +08:00
“huailei000”
3a1870cae1 fix: 修复dashboard页权限位 2022-03-18 12:46:40 +08:00
“huailei000”
c36cc7b15f fix: 修复css样式文件报错 2022-03-18 11:31:06 +08:00
“huailei000”
07b69ab9a8 fix: 修复tab组件没有权限页卡不显示时还会提示接口403问题 2022-03-18 11:22:34 +08:00
fit2bot
222eb4fcb0 perf: 优化详情中各种 box (#1582)
* perf: 优化移动到表单

* perf: 优化详情中各种 box

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-18 11:21:25 +08:00
fit2bot
632dc064d9 perf: 优化手机端 view 切换 (#1583)
* perf: 优化手机端 view 切换

* perf: 优化table 移动端适配

* perf: 优化 pagger overflow

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-18 11:20:18 +08:00
ibuler
cc513c96f5 perf: 优化 form label 位置 2022-03-17 20:31:07 +08:00
ibuler
b3752ba867 perf: 优化详情中btn 2022-03-17 19:52:20 +08:00
ibuler
f18e46ba22 perf: 优化移动端显示 2022-03-17 19:47:16 +08:00
Jiangjie.Bai
ec86037107 Merge pull request #1575 from jumpserver/dev
v2.20.0
2022-03-17 19:24:25 +08:00
“huailei000”
4e9b97700b fix: 修复菜单兼容移动端 2022-03-17 19:09:23 +08:00
ibuler
d189751d67 perf: 修改 table 布局 2022-03-17 18:51:36 +08:00
“huailei000”
6cc04d944b feat: 收集用户-任务执行列表不显示搜索组件 2022-03-17 18:45:32 +08:00
Jiangjie.Bai
35451931b2 fix: 修复工单详情会话卡片按钮权限控制 2022-03-17 18:44:10 +08:00
Jiangjie.Bai
de57c78925 fix: 修复权限依赖 2022-03-17 18:44:10 +08:00
Jiangjie.Bai
96a0d9c5e2 fix: 改密计划权限位 2022-03-17 18:20:52 +08:00
Jiangjie.Bai
977328ff41 fix: 网关测试权限位 2022-03-17 17:59:14 +08:00
Jiangjie.Bai
98c29bb338 fix: 修改工单流程关联工单 2022-03-17 17:59:14 +08:00
Jiangjie.Bai
38c76d0a59 fix: 修复组织创建问题(全局组织);修复资产详情系统用户页面的按钮权限控制 2022-03-17 17:51:29 +08:00
ibuler
c061014d7e perf: 收集用户依赖 2022-03-17 17:24:04 +08:00
Jiangjie.Bai
ca84cb85f4 fix: 修复资产详情授权用户tab页的权限位 2022-03-17 17:23:43 +08:00
Jiangjie.Bai
fc82b4ec30 Merge pull request #1564 from jumpserver/dev
v2.20.0-rc6
2022-03-17 17:08:13 +08:00
Jiangjie.Bai
b3a9c8b8b5 fix: 修改改密计划权限位联动 2022-03-17 17:06:26 +08:00
Jiangjie.Bai
edf09d3260 fix: 修改改密计划权限位联动 2022-03-17 17:06:26 +08:00
fit2bot
fc9b09f5fd perf: 修改 change auth plan (#1561)
* perf: 修改 change auth plan

* perf: 还原

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-17 16:41:00 +08:00
Jiangjie.Bai
79d0144ea0 fix: 创建系统用户su_from必填 2022-03-17 15:22:29 +08:00
Jiangjie.Bai
159e90f48c fix: 资产详情标签加载权限控制 2022-03-17 15:14:45 +08:00
Jiangjie.Bai
3007849abb fix: 修改角色详情中授权用户搜索字段 2022-03-17 15:11:27 +08:00
feng626
e45935ce97 Merge pull request #1557 from jumpserver/pr@dev@view_userapps
fix: view_userapps
2022-03-17 15:04:32 +08:00
feng626
4bef495773 fix: view_userapps 2022-03-17 15:02:36 +08:00
ibuler
e79bd251cb perf: 修改一些bug 2022-03-17 14:55:58 +08:00
Jiangjie.Bai
21c3b1a6cb fix: 修改改密计划路由 2022-03-17 14:55:08 +08:00
feng626
a3653859f8 Merge pull request #1554 from jumpserver/pr@dev@user_match
fix: user match
2022-03-17 14:47:08 +08:00
feng626
fae0104392 fix: user match 2022-03-17 14:44:58 +08:00
Jiangjie.Bai
9ffe34d788 fix: 修改系统用户详情页面权限控制 2022-03-17 14:38:45 +08:00
Jiangjie.Bai
df98ce3a6f fix: 兼容之前的sessiondetail 2022-03-17 14:05:37 +08:00
Jiangjie.Bai
fbed123991 fix: 修复工单详情路由获取 2022-03-17 14:05:37 +08:00
ibuler
51d025b93a perf: 修改创建后的跳转 2022-03-17 12:41:41 +08:00
ibuler
b6004c399c perf: 修改一些依赖 2022-03-17 12:41:41 +08:00
ibuler
2f5e575cb8 perf: 修改批量操作权限 2022-03-17 12:41:41 +08:00
ibuler
c0571bc026 perf: 修改树 2022-03-17 12:41:41 +08:00
“huailei000”
fb9896800a fix: 云同步-同步实例任务执行详情按钮权限控制 2022-03-17 11:51:47 +08:00
Jiangjie.Bai
b63d187f13 fix: 修改组件监控权限控制 2022-03-17 11:51:25 +08:00
Jiangjie.Bai
0f4cb3b916 fix: 去除角色列表搜索项socpe 2022-03-17 11:51:25 +08:00
“huailei000”
09c0647a94 fix: 修复用户列表移除按钮权限位 2022-03-17 11:50:55 +08:00
feng626
7d1e75e4b9 fix: change assetpermission 2022-03-17 11:47:50 +08:00
feng626
df72ced6e8 fix: ticket session bug 2022-03-17 10:42:55 +08:00
Jiangjie.Bai
d794e17f80 Merge pull request #1541 from jumpserver/dev
v2.20.0-rc5
2022-03-16 21:11:54 +08:00
Jiangjie.Bai
39b759661f Merge pull request #1545 from jumpserver/pr@dev@merge_dev
v2.20.0-rc5
2022-03-16 21:11:15 +08:00
fit2bot
14da9fee65 fix: 解决冲突 (#1543)
* chore: 更新Submodule指向

* fix: 修复Build失败的问题

* fix(clone): 修复会话页面产生的clone的问题

* fix: 修复资产授权创建时默认选中了点击的资产和节点问题

修改为指保留最后一次选中的资产或者节点

* fix: 修改命令过滤器添加系统用户协议限制

* fix: 云同步账号详情404

* fix: 修复创建角色成功后跳转详情的问题

* fix: 修复角色详情更新失败的问题

* fix: 删除资产授权刷新缓存接口

* fix: 优化tabmenu默认显示判断

* fix: 修复录像、命令存储权限控制

* perf: 修改订阅,站内信显示禁用 (#1491)

* perf: 修改订阅,站内信显示禁用

* perf: 修改一些 bug

Co-authored-by: ibuler <ibuler@qq.com>

* fix: 修复系统设置终端录像/命令存储创建/更新成功后跳转问题

* fix: 修复会话记录进入详情空白问题

* perf: 修改 tickets 权限

* fix: 修复系统设置终端设置问题

* perf: ticket flow perf

* fix: 修复系统设置终端设置问题

* perf: 优化 perm tree icon

* fix: 修复命令记录列表导出按钮权限

* fix: 修复改密计划-任务列表跳转资产空白页面问题

* fix: 修复终端设置权限依赖关系

* fix: 修复存储测试权限位

* fix: 修复用户列表-授权的应用详情不能点击跳转问题

* fix: 组织管理 详情bug

* fix: 资产树右击菜单

* perf: 优化应用树,统一 dropdown

* perf: 修改 terminal 权限

* fix: 日志审计批量日志过滤资产字段

* fix: 去除change_setting权限位

* fix: 过滤收集用户搜索条件重复问题

* fix: 修复应用改密计划权限控制

* fix: 修复资产管理-平台列表权限位不准确问题

* fix: 修复网管批量删除

* perf: 修复一些bug

* fix: 解决冲突

Co-authored-by: Orange <orangemtony@gmail.com>
Co-authored-by: Jiangjie.Bai <32935519+BaiJiangJie@users.noreply.github.com>
Co-authored-by: 老广 <ibuler@qq.com>
Co-authored-by: Eric_Lee <xplzv@126.com>
Co-authored-by: “怀磊” <2280131253@qq.com>
Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
Co-authored-by: feng626 <1304903146@qq.com>
2022-03-16 21:01:29 +08:00
Jiangjie.Bai
b1ea8a0b4b fix: 解决冲突 2022-03-16 20:59:56 +08:00
Jiangjie.Bai
25f9a1dd04 fix: 解决冲突 2022-03-16 20:58:04 +08:00
Jiangjie.Bai
f6ee5a7078 fix: 更新资产详情授权用户权限 2022-03-16 20:49:10 +08:00
Jiangjie.Bai
7ab0f5e4b7 fix: 更新用户权限控制 2022-03-16 20:43:05 +08:00
feng626
7e2df6b2eb Merge pull request #1539 from jumpserver/pr@dev@ticket_bug
fix: 修复工单选择org问题
2022-03-16 20:36:41 +08:00
feng626
fdf91c3495 fix: 修复工单选择org问题 2022-03-16 20:31:54 +08:00
fit2bot
96eeda7b4f perf: 修复一些bug (#1538)
* perf: 修改一些翻译

* perf: 修改 权限联动

* perf: 修改消息订阅,站内信默认 check

* perf: 修改 bug

* perf: 修复一些bug

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-16 20:29:57 +08:00
fit2bot
0d39277dae perf: 修改一些翻译 (#1532)
* perf: 修改一些翻译

* perf: 修改 权限联动

* perf: 修改消息订阅,站内信默认 check

* perf: 修改 bug

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-16 20:28:18 +08:00
“huailei000”
59b3deb754 fix: 修复工单详情跳转到命令记录、会话管理权限位;修复跳转之后清楚会话请求 2022-03-16 19:55:14 +08:00
Jiangjie.Bai
3e7ba36f01 fix: 修复终端详情更新权限 2022-03-16 19:33:04 +08:00
feng626
b27a72c295 Merge pull request #1535 from jumpserver/pr@dev@ticketflow
fix: 修复工单流联动
2022-03-16 19:31:11 +08:00
feng626
b5fc2553fe fix: 修复工单流联动 2022-03-16 19:29:46 +08:00
Jiangjie.Bai
f7d528919a fix: 修复adhoc权限 2022-03-16 19:27:03 +08:00
feng626
c1c6592cb2 Merge pull request #1530 from jumpserver/pr@dev@ticket_session
fix: 工单关闭后频繁请求
2022-03-16 19:04:55 +08:00
feng626
e94d95456d Merge pull request #1531 from jumpserver/pr@dev@ticket_touer
fix: ticket bug
2022-03-16 19:04:29 +08:00
feng626
b4201960f9 fix: ticket bug 2022-03-16 19:00:59 +08:00
feng626
fdbde9d010 fix: 工单关闭后频繁请求 2022-03-16 18:23:44 +08:00
fit2bot
796bd11ff7 perf: 修改权限位置 (#1528)
* fix: 修复导入引起的问题

* fix: 修改角色中的用户

* perf: 修改权限位置

* perf: 去掉 debug

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-16 18:16:18 +08:00
Jiangjie.Bai
ba91cdce0d fix: 修复创建k8s系统用户 2022-03-16 18:10:55 +08:00
Jiangjie.Bai
c2b9f0d1dc fix: 修复命令过滤器包含k8s应用 2022-03-16 18:10:36 +08:00
feng626
e62e79e929 fix: 修复用户组详情urlbug 2022-03-16 17:17:03 +08:00
feng626
e181360f27 fix: UserLoginACLDetail title 2022-03-16 17:16:44 +08:00
ibuler
290ac9a6e6 fix: 修改角色中的用户 2022-03-16 17:16:21 +08:00
ibuler
c032dee40c fix: 修复导入引起的问题 2022-03-16 17:16:21 +08:00
feng626
f6bef8d77a fix: ticket perm 2022-03-16 17:15:34 +08:00
Jiangjie.Bai
cea0285523 fix: 修改用户profile更新按钮 2022-03-16 15:39:48 +08:00
Jiangjie.Bai
f44e63db37 fix: 修改工单管理权限位 2022-03-16 14:55:42 +08:00
feng626
09b66476d1 fix: 修复工单命令复合跳转 2022-03-16 14:26:41 +08:00
Jiangjie.Bai
86b5360e0c fix: 修复命令过滤器规则复核人必填 2022-03-16 14:26:18 +08:00
ibuler
2103ccee29 fix: 修复一些 bug 2022-03-16 14:22:37 +08:00
ibuler
500a91914c perf: 修改一些小 bug 2022-03-16 14:22:37 +08:00
ibuler
4ae2f63a88 perf: 修复一些bug 2022-03-15 20:55:43 +08:00
feng626
68999da21f fix: 修复网管批量删除 2022-03-15 20:55:43 +08:00
“huailei000”
b75abba2c1 fix: 修复资产管理-平台列表权限位不准确问题 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
b43328cceb fix: 修复应用改密计划权限控制 2022-03-15 20:55:43 +08:00
“huailei000”
6b54fa8363 fix: 过滤收集用户搜索条件重复问题 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
3a5f427891 fix: 去除change_setting权限位 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
5f1d6bf7f9 fix: 日志审计批量日志过滤资产字段 2022-03-15 20:55:43 +08:00
ibuler
e11e2bfb46 perf: 修改 terminal 权限 2022-03-15 20:55:43 +08:00
ibuler
484b71cbc9 perf: 优化应用树,统一 dropdown 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
7ed866c61f fix: 资产树右击菜单 2022-03-15 20:55:43 +08:00
feng626
daa7de217b fix: 组织管理 详情bug 2022-03-15 20:55:43 +08:00
“huailei000”
f3011a0139 fix: 修复用户列表-授权的应用详情不能点击跳转问题 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
a696048ce8 fix: 修复存储测试权限位 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
15a0bf61fa fix: 修复终端设置权限依赖关系 2022-03-15 20:55:43 +08:00
“huailei000”
90f63c4c45 fix: 修复改密计划-任务列表跳转资产空白页面问题 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
db6e51d077 fix: 修复命令记录列表导出按钮权限 2022-03-15 20:55:43 +08:00
ibuler
f5c25fde74 perf: 优化 perm tree icon 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
87410fd653 fix: 修复系统设置终端设置问题 2022-03-15 20:55:43 +08:00
feng626
1de931ce2a perf: ticket flow perf 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
5bb3e95e23 fix: 修复系统设置终端设置问题 2022-03-15 20:55:43 +08:00
ibuler
f6588a28d9 perf: 修改 tickets 权限 2022-03-15 20:55:43 +08:00
“huailei000”
3ea1fc192a fix: 修复会话记录进入详情空白问题 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
d14cdcf05d fix: 修复系统设置终端录像/命令存储创建/更新成功后跳转问题 2022-03-15 20:55:43 +08:00
fit2bot
d92528ca7c perf: 修改订阅,站内信显示禁用 (#1491)
* perf: 修改订阅,站内信显示禁用

* perf: 修改一些 bug

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-15 20:55:43 +08:00
Jiangjie.Bai
9e55e1145b fix: 修复录像、命令存储权限控制 2022-03-15 20:55:43 +08:00
“huailei000”
666dbce88a fix: 优化tabmenu默认显示判断 2022-03-15 20:55:43 +08:00
feng626
802084a350 fix: 删除资产授权刷新缓存接口 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
408e4d10e8 fix: 修复角色详情更新失败的问题 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
d0504e8970 fix: 修复创建角色成功后跳转详情的问题 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
5f516f1fd1 fix: 云同步账号详情404 2022-03-15 20:55:43 +08:00
Jiangjie.Bai
f804b13b73 fix: 修改命令过滤器添加系统用户协议限制 2022-03-15 20:55:43 +08:00
ibuler
8e4f79fc84 perf: 修复一些bug 2022-03-15 20:55:15 +08:00
feng626
4b76a58b48 Merge pull request #1514 from jumpserver/pr@dev@gateway_del_bulk_update
fix: 修复网管批量删除
2022-03-15 20:46:53 +08:00
feng626
dca4379763 fix: 修复网管批量删除 2022-03-15 20:45:48 +08:00
“huailei000”
167b5df2d8 fix: 修复资产管理-平台列表权限位不准确问题 2022-03-15 20:45:02 +08:00
Jiangjie.Bai
8467a64e9f fix: 修复应用改密计划权限控制 2022-03-15 20:44:29 +08:00
“huailei000”
03431f98c8 fix: 过滤收集用户搜索条件重复问题 2022-03-15 20:24:37 +08:00
Jiangjie.Bai
64591a0ed5 fix: 去除change_setting权限位 2022-03-15 20:24:05 +08:00
Jiangjie.Bai
6f3aea89dd fix: 日志审计批量日志过滤资产字段 2022-03-15 20:17:22 +08:00
ibuler
5730ea8a75 perf: 修改 terminal 权限 2022-03-15 20:08:55 +08:00
ibuler
1282b465f1 perf: 优化应用树,统一 dropdown 2022-03-15 20:08:55 +08:00
Jiangjie.Bai
897e691522 fix: 资产树右击菜单 2022-03-15 20:07:13 +08:00
feng626
57b80ef3fe Merge pull request #1506 from jumpserver/pr@dev@org_detail_del_bug
fix: 组织管理 详情bug
2022-03-15 19:45:55 +08:00
feng626
9ae57dba83 fix: 组织管理 详情bug 2022-03-15 19:44:55 +08:00
“huailei000”
12c17951f5 fix: 修复用户列表-授权的应用详情不能点击跳转问题 2022-03-15 19:40:49 +08:00
Jiangjie.Bai
e9674fd754 fix: 修复存储测试权限位 2022-03-15 19:40:27 +08:00
Jiangjie.Bai
435e324b44 fix: 修复终端设置权限依赖关系 2022-03-15 19:40:04 +08:00
“huailei000”
015209443c fix: 修复改密计划-任务列表跳转资产空白页面问题 2022-03-15 18:45:45 +08:00
Jiangjie.Bai
07c856713a fix: 修复命令记录列表导出按钮权限 2022-03-15 18:45:32 +08:00
ibuler
647065107f perf: 优化 perm tree icon 2022-03-15 18:45:13 +08:00
Jiangjie.Bai
7d98bcd9f5 fix: 修复系统设置终端设置问题 2022-03-15 18:30:43 +08:00
feng626
aafeaa62e4 Merge pull request #1498 from jumpserver/pr@dev@ticket_flow
perf: ticket flow perf
2022-03-15 18:28:31 +08:00
feng626
75aca38fa9 perf: ticket flow perf 2022-03-15 18:26:32 +08:00
Jiangjie.Bai
0a6f6897bf fix: 修复系统设置终端设置问题 2022-03-15 18:20:34 +08:00
ibuler
6b399cb62f perf: 修改 tickets 权限 2022-03-15 18:20:02 +08:00
“huailei000”
4b2d4ab98f fix: 修复会话记录进入详情空白问题 2022-03-15 16:39:07 +08:00
Jiangjie.Bai
105b53e7fa fix: 修复系统设置终端录像/命令存储创建/更新成功后跳转问题 2022-03-15 16:38:32 +08:00
fit2bot
adca72af97 perf: 修改订阅,站内信显示禁用 (#1491)
* perf: 修改订阅,站内信显示禁用

* perf: 修改一些 bug

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-15 16:22:30 +08:00
Jiangjie.Bai
eb8a24a23f fix: 修复录像、命令存储权限控制 2022-03-15 15:42:54 +08:00
“huailei000”
b89fca2af0 fix: 优化tabmenu默认显示判断 2022-03-15 15:28:16 +08:00
feng626
574ec20f18 fix: 删除资产授权刷新缓存接口 2022-03-15 15:24:27 +08:00
Jiangjie.Bai
751b6dcbb5 fix: 修复角色详情更新失败的问题 2022-03-15 14:50:54 +08:00
Jiangjie.Bai
8e887ca271 fix: 修复创建角色成功后跳转详情的问题 2022-03-15 14:50:54 +08:00
Jiangjie.Bai
6f6577b2c8 fix: 云同步账号详情404 2022-03-15 14:19:18 +08:00
Jiangjie.Bai
09ac5be631 fix: 修改命令过滤器添加系统用户协议限制 2022-03-15 13:15:06 +08:00
Jiangjie.Bai
550701a3bc Merge pull request #1482 from jumpserver/dev
v2.20.0-rc3
2022-03-15 11:46:45 +08:00
Jiangjie.Bai
6461a66bc1 fix: 修改列表中字段跳转权限判断 2022-03-15 11:46:24 +08:00
feng626
ebbc5ceb3e fix: asset acl priority required 2022-03-15 11:46:03 +08:00
“huailei000”
9703c335ff fix: 修复收集用户-任务列表权限问题 2022-03-15 11:45:23 +08:00
ibuler
c755f9460f perf: 修复一些权限bug 2022-03-15 11:17:04 +08:00
Jiangjie.Bai
0abf64ad8b fix: 组织详情删除成员tab 2022-03-15 10:52:19 +08:00
“huailei000”
2bf2170088 fix: 修复工单权限位 2022-03-15 10:41:52 +08:00
“huailei000”
df228f5256 fix: 修复作业中心-任务列表路由权限不准确问题 2022-03-15 10:36:54 +08:00
“huailei000”
3ea1353101 fix: 修复资产列表-配置更多信息rbac权限 2022-03-15 10:35:39 +08:00
ibuler
451271fbcf perf: 优化 active menu 2022-03-15 10:35:16 +08:00
Jiangjie.Bai
60df78833c fix: 修复批量命令权限 2022-03-14 20:36:35 +08:00
Jiangjie.Bai
e0fbc57e89 fix: 修复资产改密计划权限控制 2022-03-14 19:13:36 +08:00
feng626
45383bd18e fix: invite user translate 2022-03-14 18:26:05 +08:00
“huailei000”
426724081f fix: 修复更多组件,更新选项重复问题
1、leftSide组件使用_.uniqBy对name相同的选项进行过滤
2、默认使用传入的选项,如果没有穿使用默认的
3、例:组件通过设置name: actionUpdateSelected,重写默认更新选项
2022-03-14 18:25:34 +08:00
ibuler
e598146fa0 perf: default system role 2022-03-14 18:24:10 +08:00
ibuler
d053f6bef7 perf: 修复资产批量 perm 2022-03-14 18:02:28 +08:00
fit2bot
4e0247977b perf: 修改一些 Perm 依赖 (#1468)
Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: Jiangjie.Bai <32935519+BaiJiangJie@users.noreply.github.com>
2022-03-14 17:53:47 +08:00
Jiangjie.Bai
d52c624128 fix: 修复更新资产账号权限控制 2022-03-14 17:51:41 +08:00
Jiangjie.Bai
a51edf359b fix: 修复资产/应用账号相关权限 2022-03-14 17:51:41 +08:00
“huailei000”
16f9329869 fix: 修复云同步permissions权限位不生效问题 2022-03-14 16:50:42 +08:00
feng626
326868880e fix: app relation api 2022-03-14 16:49:54 +08:00
“huailei000”
085a18e217 fix: 修复登录复合工单详情不能查看问题 2022-03-14 16:49:22 +08:00
Jiangjie.Bai
aacdb5adb5 fix: 修复页面按钮权限控制(应用账号) 2022-03-14 16:48:13 +08:00
Jiangjie.Bai
8a1556ccdb fix: 修复页面按钮权限控制(资产账号/应用账号) 2022-03-14 16:48:13 +08:00
Jiangjie.Bai
ea435a6c57 fix: 修复页面按钮权限控制(资产账号) 2022-03-14 16:48:13 +08:00
Jiangjie.Bai
e265314b37 Merge pull request #1461 from jumpserver/dev
perf: 修改 perm 依赖
2022-03-14 15:16:20 +08:00
Jiangjie.Bai
cead0fc04b fix: 修改权限树依赖(查看资产账号依赖查看节点) 2022-03-14 15:16:06 +08:00
Jiangjie.Bai
88971327b1 fix: 修改授权显示(工单菜单) 2022-03-14 15:16:06 +08:00
“huailei000”
f15ca7439c fix: 修复用户详情页面报错问题 2022-03-14 15:15:42 +08:00
feng626
fbe2b356fe fix: node perm 2022-03-14 14:43:43 +08:00
“huailei000”
2e3dc366e8 fix: 修复刷新浏览器后页面跳转到404问题 2022-03-14 11:48:42 +08:00
“huailei000”
fe33798972 fix: 修复收集用户权限判断不生效问题 2022-03-14 11:45:49 +08:00
fit2bot
bd028b5bb9 perf: 修改消息订阅 (#1457)
* perf: 修改消息订阅

* perf: 修改一些依赖

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-14 11:17:45 +08:00
Jiangjie.Bai
f467e0e1ab Merge pull request #1456 from jumpserver/dev
v2.20.0-rc2
2022-03-14 10:39:43 +08:00
ibuler
74f997d8f9 perf: 优化依赖 2022-03-14 10:37:05 +08:00
“huailei000”
0e160e2520 fix: 路由不准确重定向到404页面 2022-03-14 10:36:24 +08:00
ibuler
0e34955be1 perf: 去掉 debug 2022-03-11 21:02:06 +08:00
ibuler
74c6981a42 perf: 修改 role perm 联动 2022-03-11 21:02:06 +08:00
Jiangjie.Bai
954d2d9f0e fix: 系统设置移除工单设置 2022-03-11 20:41:15 +08:00
ibuler
f40af3295f perf: 修复角色 clone 2022-03-11 20:40:50 +08:00
ibuler
cc73a74d93 perf: 修改 user detail,修改权限 2022-03-11 20:40:50 +08:00
“huailei000”
a45ab4f197 fix: 修复组织管理创建、删除权限不生效问题;进入详情页报错问题 2022-03-11 20:38:56 +08:00
“huailei000”
3f92156595 fix: 修复云同步权限位不准确问题 2022-03-11 20:38:14 +08:00
“huailei000”
e949623a1d fix: 修复工单权限位问题 2022-03-11 20:37:49 +08:00
feng626
aa5658b078 fix: 邀请用户bug 2022-03-11 19:22:18 +08:00
ibuler
ab99ff3973 perf: 权限树定义依赖联动 2022-03-11 18:42:26 +08:00
老广
1731c70d8e Merge pull request #1442 from jumpserver/dev
v2.20.0-rc1
2022-03-10 20:32:49 +08:00
ibuler
1f7090712b perf: 修改 interface 判断 2022-03-10 20:32:26 +08:00
“huailei000”
a0c5782d5b fix: 修复系统设置-终端设置权限位 2022-03-10 20:19:54 +08:00
fit2bot
be118172e2 perf: 修改路由过滤 (#1443)
* perf: 修改路由过滤

* fix: 去掉 debug

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-10 20:18:58 +08:00
Jiangjie.Bai
a8beac0b7a fix: 修改视图名称 2022-03-10 19:18:48 +08:00
feng626
2b48a3a49a Merge pull request #1440 from jumpserver/pr@dev@workspace
fix: user workspace
2022-03-10 19:14:35 +08:00
feng626
75492c33cc fix: user workspace 2022-03-10 19:12:17 +08:00
“huailei000”
f7e4079523 fix: 修复系统用户详情相关permissions权限 2022-03-10 19:11:05 +08:00
feng626
76d83aa24b Merge pull request #1439 from jumpserver/pr@dev@fix_menu_rbac
fix: 修改菜单rbac权限位
2022-03-10 18:55:18 +08:00
“huailei000”
a3a7a1c7c4 fix: 修改菜单rbac权限位 2022-03-10 18:52:51 +08:00
fit2bot
3c75ab58e4 fix: 修复资产详情中的权限判断 (#1437)
* fix: 修复资产详情中的权限判断

* fix: change

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-10 18:25:39 +08:00
ibuler
5482d6cf83 perf: 修改资产节点创建 2022-03-10 17:48:31 +08:00
“huailei000”
80d109e0ce fix: 修复用户列表权限 2022-03-10 17:48:09 +08:00
feng626
cfdc110bc9 Merge pull request #1435 from jumpserver/pr@dev@fix_assets_cloud_permissions
fix: 修复云同步permissions权限问题
2022-03-10 17:42:11 +08:00
“huailei000”
a6b946ba51 fix: 修复云同步permissions权限问题 2022-03-10 17:39:28 +08:00
feng626
aa62a2c266 Merge pull request #1434 from jumpserver/pr@dev@ticket_add
fix: ticket not create
2022-03-10 17:24:17 +08:00
feng626
7d3321fafe fix: ticket not create 2022-03-10 17:21:39 +08:00
feng626
280217b913 fix: 修复用户详情角色显示bug 2022-03-10 17:13:54 +08:00
“huailei000”
86d3aaa443 fix: 用户列表批量操作添加提示 2022-03-10 17:12:42 +08:00
“huailei000”
ff200aedbc fix: select2组件添加disabled状态判断 2022-03-10 17:12:08 +08:00
Jiangjie.Bai
e575a69f45 revert: 回滚权限树 2022-03-10 15:26:58 +08:00
fit2bot
1f2cda6f63 fix: 修复 asset nodes (#1428)
* perf: 修改 tree nodes

* perf: 去掉 perms

* perf: 修改 perm nodes

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-10 15:14:56 +08:00
Jiangjie.Bai
6f429ef156 fix: 修复role info push id 2022-03-10 13:54:28 +08:00
“huailei000”
acf2d81a8e fix:特权用户的权限和系统用户一样 2022-03-10 11:28:52 +08:00
feng626
930bcab66d Merge pull request #1426 from jumpserver/perf_rbacpermtree
fix: 优化权限树(1)
2022-03-10 11:28:21 +08:00
“huailei000”
cfbd88011a fix: 修复资产授权详情权限显示不准确问题 2022-03-10 11:28:14 +08:00
“huailei000”
d917c0576c fix: 修复用户组进入详情页空白问题 2022-03-10 11:28:14 +08:00
Jiangjie.Bai
98f1dc88ff fix: 优化权限树(1) 2022-03-10 07:00:30 +08:00
“huailei000”
1bf3371a00 fix: select2添加axios参数无权限时不弹出提示 2022-03-09 21:24:56 +08:00
fit2bot
2b984cb456 perf: 修改路由守卫 (#1421)
* perf: 修改路由守卫

* perf: 路由守卫

* perf: 去掉 debug

* perf: 修改img to

* perf: 修改路由

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-09 20:42:36 +08:00
feng626
148f818349 Merge pull request #1420 from jumpserver/pr@dev@admin-user-perm
fix: admin user 按钮权限
2022-03-09 19:18:12 +08:00
feng626
d29b4ee357 fix: admin user 按钮权限 2022-03-09 19:04:21 +08:00
“huailei000”
de8f491832 fix: 修复命令过滤规则权限问题 2022-03-09 18:28:28 +08:00
“huailei000”
75326ae5ab fix: 修复命令过滤perms权限 2022-03-09 18:28:28 +08:00
halo
574fe8b868 feat: 云管中心增加同步实例列表ip字段 2022-03-09 18:06:12 +08:00
feng626
969f0867a0 Merge pull request #1418 from jumpserver/pr@dev@view_setting
fix: 系统设置perm
2022-03-09 18:00:26 +08:00
feng626
9ccb35d329 fix: 系统设置perm 2022-03-09 17:59:23 +08:00
fit2bot
34ac945cb1 fix: 简单修复一下,没有任何权限导致的白屏行为 (#1417)
* fix: 简单修复一下,没有任何权限导致的白屏行为

* perf: 修改路由

* perf: 去掉 index

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-09 17:30:47 +08:00
“huailei000”
d27d0f1e1a fix: 切换组织组件修改判断,有创建或者查看权限时才显示组织管理分组 2022-03-09 17:14:47 +08:00
feng626
c63a4fc672 Merge pull request #1416 from jumpserver/pr@dev@acl_perm
fix: acl perm bug
2022-03-09 16:32:27 +08:00
feng626
1210f8bb18 fix: acl perm bug 2022-03-09 16:31:03 +08:00
“huailei000”
ac34f9de9e fix: 切换组织组件,创建、查看添加权限位控制 2022-03-09 15:37:52 +08:00
“huailei000”
e13a62c206 fix:修复角色列表组件切换数据不准确问题 2022-03-09 15:37:14 +08:00
fit2bot
5897c52268 perf: 优化权限判断 (#1413)
* stash: 暂存 api 权限判断

* perf: 优化列表权限判断,通过 url 来

* perf: 优化权限判断

* perf: remove console

* perf: 还原默认值

* perf: 修改 detail

* perf: 修改路由

* perf: 修改路由

* perf: 修复 table perm

* perf: 修改 home

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-09 15:36:38 +08:00
“huailei000”
833dd305bf feat: 概览页公告添加跳转链接 2022-03-09 14:35:31 +08:00
ibuler
353ab4467b fix: 修复组织切换的问题 2022-03-08 21:13:54 +08:00
feng626
a6c020d8db Merge pull request #1407 from jumpserver/pr@dev@fix_tickets_flow_update_disabled
fix: 修复工单流不能更新问题
2022-03-08 20:33:52 +08:00
feng626
072b880893 Merge pull request #1408 from jumpserver/pr@dev@fix_assets_nopermission_show
fix: 修复资产列表没有权限显示空白menu问题
2022-03-08 20:33:25 +08:00
“huailei000”
0c25dffcce fix: 修复资产列表没有权限显示空白menu问题 2022-03-08 20:11:46 +08:00
“huailei000”
90e6cad407 fix: 修复工单流不能更新问题 2022-03-08 18:56:11 +08:00
“huailei000”
40f331ebfc fix: 修复api key的rbac权限判断 2022-03-08 18:29:23 +08:00
“huailei000”
93d8e6850f fix: 工作台显示切换组织 2022-03-08 17:37:26 +08:00
ibuler
20a91cba24 perf: 联动修改 2022-03-08 17:37:08 +08:00
“huailei000”
5fdf3817ed fix: 修复会话记录详情页的rbac权限判断 2022-03-08 17:36:28 +08:00
“huailei000”
980bb970b6 fix: 修复初始化控制台title报错问题;修复社区版不显示组织管理 2022-03-08 15:29:50 +08:00
“huailei000”
3eb28f5517 fix: 修复云同步点击进入详情页面没有权限问题 2022-03-08 15:13:20 +08:00
“huailei000”
c5c412ccac fix: 修复社区版本判断不准确问题 2022-03-08 15:12:26 +08:00
ibuler
90a1cc8735 perf: perm node 级联选择 2022-03-08 13:49:03 +08:00
ibuler
764096ad1d perf: 优化节点算则 2022-03-08 13:49:03 +08:00
“huailei000”
cf143c8502 fix: 修改概况权限判断页面显示 2022-03-08 11:49:57 +08:00
feng626
740c7a7836 Merge pull request #1397 from jumpserver/pr@dev@perf_ztree_default
perf: 修改 tree check
2022-03-07 20:52:31 +08:00
ibuler
3f6d4606c6 perf: 去掉console 2022-03-07 20:50:00 +08:00
ibuler
381792716b perf: 修改 tree check 2022-03-07 20:43:11 +08:00
feng626
b69b359fc7 Merge pull request #1396 from jumpserver/pr@dev@perf_account_backup
perf: 优化账号备份
2022-03-07 20:15:40 +08:00
ibuler
f2e7cfa5de perf: 优化账号备份 2022-03-07 20:11:06 +08:00
fit2bot
067fdd5993 perf: 修改概览权限判断 (#1395)
* perf: 修改概览权限判断

* perf: 修改路由

Co-authored-by: ibuler <ibuler@qq.com>
2022-03-07 19:55:29 +08:00
“huailei000”
58a7ed3632 fix: 修复云导入perms权限问题;修改名称为云同步 2022-03-07 19:04:44 +08:00
ibuler
23613301d5 perf: 优化工作台菜单 2022-03-07 19:03:45 +08:00
Jiangjie.Bai
dcbeeec964 fix: 修改角色详情 2022-03-07 19:03:03 +08:00
“huailei000”
9f36c18560 fix: MariaDB在社区版开放;替换系统设置-短信设置的布局组件 2022-03-07 17:05:38 +08:00
“huailei000”
d613f5a893 fix: 区分企业版和社区版功能 2022-03-07 16:35:03 +08:00
Jiangjie.Bai
69d963f2a9 fix: 修改角色详情区分系统角色、组织角色;修改邀请用户时的用户名称显示 2022-03-07 15:06:30 +08:00
fit2bot
c93b1a6769 perf: 自动勾选 perm view node (#1388)
Co-authored-by: ibuler <ibuler@qq.com>
2022-03-07 14:43:03 +08:00
“怀磊”
b5008db265 fix: 修复网域列表没有权限也能点击网关跳转问题 2022-03-07 14:21:07 +08:00
feng626
ef228c6442 Merge pull request #1386 from jumpserver/pr@dev@fix_update_role_perms
fix: 修复更新 role perms
2022-03-07 13:29:23 +08:00
ibuler
0730f10e79 fix: 修复更新 role perms 2022-03-07 11:49:07 +08:00
“怀磊”
86dea655a4 fix: 修复会话审计详情页页跳转不成功问题;日志审计perms权限判断问题 2022-03-07 11:33:25 +08:00
Jiangjie.Bai
e14f344b68 fix: 修复创建用户roles必填问题 2022-03-07 11:23:39 +08:00
Jiangjie.Bai
561148521b fix: 修复创建用户roles必填问题 2022-03-07 11:23:39 +08:00
feng626
c8825e52b6 fix: user list perm 2022-03-04 17:59:08 +08:00
“怀磊”
c48e1603b9 fix: 修复系统角色详情-授权用户,不能删除成员问题 2022-03-04 17:18:54 +08:00
“怀磊”
631c03c715 fix: 修复系统角色进入详情之后返回页面空白问题 2022-03-04 15:38:58 +08:00
feng626
842168e16b fix: 修复组织管理员角色权限问题 2022-03-04 14:20:48 +08:00
ibuler
5eb9a58f61 perf: 优化权限判断,支持或的关系 2022-03-04 14:18:07 +08:00
老广
8d0f71f681 Fix rbac (#1375)
* fix: 修复邀请用户为全局用户及工单orgs bug

* fix: 修复资产账号列表点击更新时弹窗不出现的问题

* fix: 修复组织管理员无法进入详情页问题

* perf: 优化角色

* fix: 修复工单流权限问题

* fix: 修复判断默认跳转路由的方法

* fix: 修复perms 许可证判断逻辑

* feat: 修改导航中英文翻译

Co-authored-by: feng626 <1304903146@qq.com>
Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
Co-authored-by: “怀磊” <2280131253@qq.com>
Co-authored-by: feng626 <57284900+feng626@users.noreply.github.com>
2022-03-04 10:11:57 +08:00
“怀磊”
872add340b fix: 修复vm的this指针问题 2022-03-03 11:26:54 +08:00
Jiangjie.Bai
17e6d2fe84 feat: 用户详情tab页rbac控制 (#1359) (#1362)
* perf: debug account

* Debug: 添加 debug

* debug: 添加线上debug

* debug: remove vue config

* chore: diglog 添加vif

* debug: authbook

* chore: debug account

* fix: 修改资产账号更新弹窗组件传参方式

* perf: 修改 authbook

* fix: 修复资产账号的更新组件不生效问题

* perf: change build scropt

* feat: 配置概况页的路由权限

* fix: 修复工单流自定义用户获取全局用户bug

* feat: 用户详情tab页rbac控制

* feat: 用户组详情tab添加rbac

* feat: 资产详情tab添加rbac

* feat: 角色列表详情tab添加rbac

* feat: 资产管理详情页tab添加rbac

* feat: 账号管理详情tab增加rbac

* feat: 权限管理详情tab添加rbac

* feat: 作业中心详情tab添加rbac

* feat: 系统设置tab添加rbac

Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: “怀磊” <2280131253@qq.com>
Co-authored-by: feng626 <1304903146@qq.com>

Co-authored-by: fit2bot <68588906+fit2bot@users.noreply.github.com>
Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: “怀磊” <2280131253@qq.com>
Co-authored-by: feng626 <1304903146@qq.com>
2022-03-03 10:36:05 +08:00
fit2bot
c0448afda4 Fix rbac (#1361)
* perf: debug account

* Debug: 添加 debug

* debug: 添加线上debug

* debug: remove vue config

* chore: diglog 添加vif

* debug: authbook

* chore: debug account

* fix: 修改资产账号更新弹窗组件传参方式

* perf: 修改 authbook

* fix: 修复资产账号的更新组件不生效问题

* perf: change build scropt

* feat: 配置概况页的路由权限

* fix: 修复工单流自定义用户获取全局用户bug

* fix: 修复系统角色绑定用户为全局用户

* fix: 修改i18n cn.json=>zh-hans.json 文件名

* fix: 修改i18n cn.json 文件名

Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: “怀磊” <2280131253@qq.com>
Co-authored-by: feng626 <1304903146@qq.com>
Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>
2022-03-02 20:49:23 +08:00
Jiangjie.Bai
10655a3ff4 feat: 修改存储翻译信息 2022-02-28 19:27:37 +08:00
Jiangjie.Bai
22bd95b55a feat: 支持COS对象存储 2022-02-28 19:27:37 +08:00
Jiangjie.Bai
263e7a0f34 feat: 支持COS对象存储 2022-02-28 19:27:37 +08:00
ibuler
4366e5b1c8 fix: 去掉一部分role filter 2022-02-28 19:27:37 +08:00
ibuler
20b6b09840 fix: 修复 detail 问题 2022-02-28 19:27:37 +08:00
ibuler
111bb97c65 fix: 修复上次提交的错误 2022-02-28 19:27:37 +08:00
Jiangjie.Bai
88c86c8257 feat: 功能优化 2022-02-28 19:27:37 +08:00
ibuler
8573bc53aa perf: 修改 url 2022-02-28 19:27:37 +08:00
ibuler
340efcfbdf perf: 修改了css 2022-02-28 19:27:37 +08:00
ibuler
500b5e51a2 perf: 修改名称 2022-02-28 19:27:37 +08:00
“怀磊”
13eca9da63 feat: 增加默认进入上次登录的角色功能;优化权限判断逻辑 2022-02-28 19:27:37 +08:00
Jiangjie.Bai
db825c5c30 Fix rbac (#1344)
* fix: 修改导航组件样式;组织组件分组文案颜色

* perf: 修改邀请

* perf: 修改组织样式

* fix: 修复站内信点击打开弹窗遮罩层不能关闭问题

* fix: 过滤用户列表创建用户时系统角色的数据-系统组件

* fix: 修复工单流程设置不能进入详情、不能更新问题

* feat: 修改工单路由配置
1、修改工单路由配置
2、流程设置可以显示切换组织组件
3、修复申请资产授权表单报错问题
4、修复申请应用授权表单报错问题

* fix: 修复api key点击创建报错问题

Co-authored-by: “怀磊” <2280131253@qq.com>
Co-authored-by: ibuler <ibuler@qq.com>
2022-02-25 19:24:52 +08:00
Jiangjie.Bai
2e7f62b7f0 Fix rbac (#1341)
* fix: 修改导航组件样式;组织组件分组文案颜色

* fix: 修复Select2组件没有处理array数据的问题, 触发场景比如(邀请用户的对话框)

Co-authored-by: “怀磊” <2280131253@qq.com>
2022-02-24 12:04:59 +08:00
老广
8e08c5c8e5 Merge pull request #1339 from jumpserver/fix_rbac
fix: rbac
2022-02-24 10:07:26 +08:00
ibuler
55c6fce439 perf: 还原 css 2022-02-24 10:00:48 +08:00
ibuler
b2eea8946d Merge branch 'fix_rbac' of github.com:jumpserver/lina into fix_rbac 2022-02-23 19:54:53 +08:00
ibuler
612d440b21 perf: 修改 css 2022-02-23 19:53:56 +08:00
“怀磊”
01e81105c1 Merge branch 'fix_rbac' of github.com:jumpserver/lina into fix_rbac 2022-02-23 19:25:59 +08:00
“怀磊”
76485bd994 feat: 切换组织组件添加快捷入口到组织管理 2022-02-23 19:25:46 +08:00
feng626
240bcde424 fix: 云导入router perm 2022-02-23 19:22:17 +08:00
“怀磊”
15253267fc feat: api key列表页迁移到个人信息模块下 2022-02-23 18:04:46 +08:00
ibuler
0ad9945765 Merge branch 'fix_rbac' of github.com:jumpserver/lina into fix_rbac 2022-02-23 17:06:16 +08:00
“怀磊”
efcd4aa55c fix: 修复界面设置接口文件找不到报错问题 2022-02-23 17:05:40 +08:00
“怀磊”
1824519d6c Merge branch 'fix_rbac' of github.com:jumpserver/lina into fix_rbac 2022-02-23 16:53:20 +08:00
“怀磊”
6e88e67052 feat: 拆分x-pack模块
1、运营中心迁移到资产列表,创建按钮右侧增加云导入点击跳转
2、界面设置迁移到系统设置
3、组织管理迁移到系统设置,组织下拉组件快捷跳转待添加。。。
4、系统监控迁移到系统设置里的终端设置下添加一个tab显示,名称修改为组件监控
2022-02-23 16:52:46 +08:00
ibuler
d04a5a6d8a perf: 修改 path 2022-02-23 16:23:14 +08:00
ibuler
71d5832c2e perf: 优化一波 profile 2022-02-23 16:14:48 +08:00
ibuler
2954385b62 perf: 修改 nav view switch 2022-02-23 14:54:16 +08:00
ibuler
48efdff4e2 perf: 修改 nav view 2022-02-23 14:00:14 +08:00
“怀磊”
fbb5ce031f feat: ftp日志文件目录、路由迁移到会话审计模块下 2022-02-22 19:46:27 +08:00
“怀磊”
68a53c0e90 fix: 首页展示页卡、展示字段调整 2022-02-22 19:32:36 +08:00
ibuler
2fee1f5a16 perf: 修改用户的概览页 2022-02-22 18:54:27 +08:00
ibuler
8e6b817d5f perf: 修复 v-perms 2022-02-22 18:54:27 +08:00
Jiangjie.Bai
3cef40b2b1 fix: 合并 rbac (#1336)
* fix: 修复访问控制路由权限

* fix: 修复个人信息页跳转错误问题

* perf: 修改 rbac (#1332)

* perf: 修改 route name

* fix: perm app router

* fix: 修复资产应用授权路由权限问题

* perf: 修改 rbac

Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: feng626 <1304903146@qq.com>

* fix: 导航

* feat: 修改首页布局风格;修改仪表盘文案为概况

* feat: 调整录像存储、命令存储为终端设置的tab页卡展示

* feat: 修改首页侧边栏图标颜色

* fix: 修复命令过滤权限问题

* perf: 修改 nav icon 颜色 (#1334)

* perf: 修改 nav icon 颜色

* perf: 修改左侧收缩栏图表颜色

Co-authored-by: ibuler <ibuler@qq.com>

* feat: 修改工单路由

* perf: 修改图表

* fix: 修改首页接口

Co-authored-by: feng626 <1304903146@qq.com>
Co-authored-by: “怀磊” <2280131253@qq.com>
Co-authored-by: fit2bot <68588906+fit2bot@users.noreply.github.com>
Co-authored-by: ibuler <ibuler@qq.com>
2022-02-22 18:29:36 +08:00
jiangweidong
7a8d35b986 feat: 支持 MongoDB 数据库的纳管 2022-02-22 10:13:44 +08:00
Jiangjie.Bai
96157bb18d fix: rbac 合并 (#1329)
* perf: 修改 route name

* fix: perm app router

* fix: 修复资产应用授权路由权限问题

* feat: home页放到user里,调整文件位置

* perf: 修复 view change routers (#1326)

Co-authored-by: ibuler <ibuler@qq.com>

* fix: 修复搜集用户 改密计划 账号备份路由

* feat: 终端管理、存储配置文件路径修改,放到系统设置中显示

Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: feng626 <1304903146@qq.com>
Co-authored-by: “怀磊” <2280131253@qq.com>
Co-authored-by: fit2bot <68588906+fit2bot@users.noreply.github.com>
2022-02-21 16:24:43 +08:00
dependabot[bot]
172f970a0b build(deps): bump url-parse from 1.4.7 to 1.5.7
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.4.7 to 1.5.7.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.7)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-21 10:29:51 +08:00
fit2bot
d7200ecd62 feat: 添加rbac (#1322)
* stash

* perf: 修改切换

* perf: stash

* perf: 修改组件名称

* perf: 修改acl

* perf: 修改路由

* perf: 修改路由切换

* perf: 完成切换

* perf: 修改菜单

* perf: 优化布局

* perf: route rbac

* perf: 固定heading

* perf: 使用class控制header

* perf: 修改margin

* perf: stash 自动生成permissions

* perf: 暂存rbac

* stash

* perf: 优化rbac

* fix: 还原之前的hidden

* pref: 组件还原名称

* pref: 添加角色创建

* perf: 修改sidebar

* perf: 暂存一下

* feat: 添加 角色详情

* stash: 暂存一下

* feat: 添加首页路由及页面布局

* stash: 暂存一下

* feat: 获取切换视图数据

* feat: 获取切换视图数据

* feat: 调整首页页面布局及组件封装

* perf: 使用统一的 role list

* feat: 调整角色权限按钮

* feat: 主页添加会话模块

* feat: 主页添加会话模块

* feat: 设置table不显示多选

* feat: 调整首页模块展示字段

* fix: 修复菜单父级选中不高亮问题

* feat: 替换首页背景图

* perf: 修改一下

* feat: 更新首页卡片接口

* perf: 修改 rbac

* feat: 工单路由、系统设置路由单独拆分出来,并对系统设置路由进行权限判断

* perf: 修改权限

* feat: 系统设置相关页面更换布局组件

* fix: 修复 profile page

* perf: 修改xpack route

* perf: 优化角色详情

* perf: 优化 role user 处理

* perf: 权限位放到详情里

* perf: 修改role info 和 i18n

* feat: 系统设置相关页面修改布局组件;增加路由大标题

1、系统设置-认证设置:修改布局容器组件
2、系统设置-ldap:页面合并到认证设置里
3、左侧路由菜单顶部增加大标题
4、系统设置路由菜单设置新图标

* feat: 调整切换组织组件显示位置,替换组织icon

* feat: 调整切换组织组件显示位置,替换组织icon

* feat: 拆分个人信息页面相关路由,单独的view显示

* feat: 切换组织组件放到头像左边实现,web终端放到帮助左边图标显示

* style: 角色权限组件设置不可选中样式

* perf: add terminal svg

* feat: 替换邮箱svg

* perf: 修改触发方式

* perf: 完成角色搜索

* perf: 修改位置

* perf: 修改触发方式

* perf: 修复 user create 的role

* feat: 修改切换组织组件显示位置和ui样式
1、站内信、web终端图标添加hover效果提示
2、突出退出登录添加icon
3、修改切换组织组件显示位置和ui样式

* perf: 修改一些 权限

* perf: 修改菜单隐藏判断

* perf: 修改 org

* perf: 修改radius

* perf: 还原 radius

* feat: 调整终端管理文件,统一放到系统设置目录下
1、调整切换组织组件文件位置,放到header目录下
2、调整终端管理相关页面的文件位置放在系统设置目录下
3、终端管理部分页面为迁移完。。。

* perf: 修改了些 css

* perf: 修改分割线颜色

* perf: 修改分隔线样式

* perf: 修改是否显示组织

* perf: 优化继承

* perf: 还原 resource 的处理

* perf: 修改 app api url

* fix: 修复原来 detailApi 引起的问题

* perf: 修改一点 css

* perf: 修改 views

* perf: 修改视图切换

* perf: 修改位置

Co-authored-by: ibuler <ibuler@qq.com>
Co-authored-by: “怀磊” <2280131253@qq.com>
2022-02-18 10:51:15 +08:00
“怀磊”
c093e7d621 fix: 修复资产授权创建时默认选中了点击的资产和节点问题
修改为指保留最后一次选中的资产或者节点
2022-02-17 18:20:47 +08:00
“怀磊”
70d2599d4a fix: 修复资产授权创建时默认选中了点击的资产和节点问题
修改为指保留最后一次选中的资产或者节点
2022-02-17 11:33:39 +08:00
Jiangjie.Bai
b4183b421f Merge pull request #1316 from jumpserver/dev
v2.19.0-rc3
2022-02-16 16:42:58 +08:00
“怀磊”
9c6281cf02 fix: 修复资产账号导出条数不准确问题 2022-02-16 16:41:10 +08:00
feng626
e7bdf6276d fix: 工单流需要超级管理员配置 2022-02-16 14:50:45 +08:00
“怀磊”
fa860dbd85 fix: 修复命令记录页面筛选数据时tree自动刷新问题 2022-02-15 18:04:42 +08:00
Jiangjie.Bai
2bb4ca3ec0 fix: 修改LDAP SYNC相关参数设置 2022-02-15 17:58:20 +08:00
feng626
93a08d265b fix: 修复工单流只在当前组织管理员或系统管理员显示 2022-02-15 17:01:07 +08:00
Jiangjie.Bai
b7be7784c6 Merge pull request #1310 from jumpserver/dev
v2.19.0-rc2
2022-02-14 18:33:51 +08:00
“怀磊”
375c6bf44b fix: 修复搜索组件在页面刷新后搜索条件是布尔类型时页面不显示中文问题
1、优化获取url中搜索条件的算法
2022-02-14 18:23:03 +08:00
feng626
542e34208e feat: 工单添加redis类型 2022-02-14 17:46:07 +08:00
“怀磊”
f041b0de74 fix: 修复命令记录页面layout布局不能自适应问题 2022-02-14 16:16:59 +08:00
“怀磊”
7ff75280a5 fix: 修复search组件去重搜索不准确问题 2022-02-14 16:16:29 +08:00
ibuler
d76009de3a pref: 优化数据库协议翻译 2022-02-14 15:01:45 +08:00
“怀磊”
851f4508e2 fix: 资产账号替换密码框组件 2022-02-10 15:04:56 +08:00
feng626
a36e5196f8 perf: 工单流显示组织名称 2022-02-10 15:04:09 +08:00
Jiangjie.Bai
d22d16681e Merge pull request #1300 from jumpserver/dev
v2.19.0-rc1
2022-02-10 10:50:21 +08:00
“怀磊”
31c86fb281 feat: table搜索框支持多级自定义搜索 2022-02-09 18:47:24 +08:00
Michael Bai
f83739b496 fix: 修改第三方认证用户进行MFA认证配置项变量名 2022-02-09 10:34:09 +08:00
Michael Bai
1d9eddb11f feat: 增加系统设置(安全)控制第三方认证用户是否进行MFA认证 2022-02-08 17:49:21 +08:00
Michael Bai
da14abc83b feat: 命令过滤规则增加忽略大小写选项 2022-02-08 12:31:48 +08:00
“怀磊”
7b705dfc75 perf: 表单自动滚动到校验出错位置 2022-01-21 18:35:13 +08:00
“怀磊”
4516d83ce4 fix: 修复搜索框不能搜索false选项的问题 2022-01-20 15:05:35 +08:00
Jiangjie.Bai
db753bd1c2 Merge pull request #1292 from jumpserver/dev
v2.18
2022-01-20 13:48:00 +08:00
Michael Bai
ac14e5964d fix: 修复强制启用用户MFA后,个人信息页面设置按钮被禁用的问题 2022-01-20 11:59:56 +08:00
feng626
232c22c8ae fix: 应用改密去掉redis 2022-01-20 11:00:08 +08:00
Jiangjie.Bai
610da9f9b2 Merge pull request #1289 from jumpserver/dev
v2.18.0-rc4
2022-01-19 19:40:47 +08:00
Michael Bai
29631b1eaf fix: 修改IP(Doamin) -> IP(Host)翻译信息 2022-01-19 19:09:13 +08:00
“怀磊”
537887553d fix: 修复资产账号、账号备份、上传ssh密钥组件翻译问题
1、替换了改密计划-资产改密,密码框组件
2022-01-19 14:12:43 +08:00
“怀磊”
c1ddc0f8e0 fix: 修复工单创建应用保存时报错问题 2022-01-19 13:54:48 +08:00
feng626
316b39d15b fix: 修复工单命令复合跳转非当前组织404问题 2022-01-19 11:26:04 +08:00
Jiangjie.Bai
b18b05b8fb Merge pull request #1284 from jumpserver/dev
v2.18.0-rc3
2022-01-18 19:36:45 +08:00
“怀磊”
cd5534c20a feat: 系统用户上传ssh协议i18n翻译 2022-01-18 19:34:00 +08:00
feng626
048fee7ede Merge pull request #1279 from jumpserver/pr@dev@fix_accounts_edit_password_errortip
fix: 修复资产账号修改密码时报错提示重复问题
2022-01-18 19:16:34 +08:00
feng626
083b4bc499 Merge pull request #1282 from jumpserver/pr@dev@translate
fix: 改密翻译修改
2022-01-18 19:15:44 +08:00
怀磊
eb44856807 Merge branch 'dev' into pr@dev@translate 2022-01-18 19:09:39 +08:00
feng626
fff2288069 fix: 改密翻译修改 2022-01-18 19:07:17 +08:00
feng626
d5fc939a40 fix: 改密翻译修改 2022-01-18 19:07:15 +08:00
“怀磊”
6489cbe488 fix:修复应用授权克隆报错问题 2022-01-18 19:03:04 +08:00
“怀磊”
941f1d855e fix: 修复资产账号修改密码时报错提示重复问题 2022-01-18 17:13:14 +08:00
“怀磊”
ff88a0bd42 fix: 修复table搜索框回车搜索时重复搜索问题 2022-01-18 16:01:10 +08:00
Michael Bai
c87412f4c0 fix: 修改审计日志操作日志动作翻译问题 2022-01-18 15:21:11 +08:00
Michael Bai
2da4e4f7a0 fix: 修复应用账号查询问题 2022-01-18 15:03:46 +08:00
Michael Bai
848bdcba36 fix: 修改审计日志中支持i18n的显示字段display 2022-01-18 14:34:26 +08:00
“怀磊”
96206f10a2 perf: 优化table搜索框切换搜索字段后不能回车搜索问题 2022-01-18 14:03:37 +08:00
“怀磊”
a6012eba4a fix: 修复资产授权详情用户组添加会显示更多 2022-01-18 11:21:12 +08:00
Jiangjie.Bai
2570aa63fc Merge pull request #1272 from jumpserver/dev
v2.18.0-rc2
2022-01-17 19:22:44 +08:00
“怀磊”
43797c2f46 fix: 修复工单搜索条件-动作可编辑问题;增加搜索选项关闭动画 2022-01-17 16:31:01 +08:00
feng626
e98e23dad8 perf: 账号备份优化 2022-01-17 15:59:25 +08:00
v-hleihuai
11c845c0fd fix: 修复自定义字段展示,没有label的字段不在列表中展示 2022-01-17 15:49:46 +08:00
feng626
6310fae385 feat: 特权用户添加ssh密钥密码 2022-01-17 15:46:44 +08:00
“怀磊”
c20453a1de feat: 修改工单会话展示字段 2022-01-14 16:57:23 +08:00
Michael Bai
b1733835a4 feat: 修改Copyright信息 2022-01-13 18:56:06 +08:00
ibuler
4e1c921451 perf: 优化 ops 任务名称,支持 i18n 2022-01-13 15:04:34 +08:00
Jiangjie.Bai
0a4238fe93 Merge pull request #1262 from jumpserver/dev
v2.18.0-rc1
2022-01-12 20:35:54 +08:00
“怀磊”
2aad1110d0 feat: 账号备份详情页替换接口 2022-01-12 20:25:56 +08:00
feng626
03031e94c1 feat: 逃生通道 2022-01-12 20:25:56 +08:00
“怀磊”
aa94c1792c feat: 工单列表和详情添加编号字段 2022-01-12 14:34:30 +08:00
“怀磊”
f13bc4fccb fix: 修复上传下载组件展示问题 2022-01-10 17:32:45 +08:00
v-hleihuai
def153cc42 fix: 修改i18n中文国际化 2022-01-10 10:30:07 +08:00
“怀磊”
8add1b7f92 feat: lina 修改时间区间 2022-01-04 15:08:54 +08:00
xinwen
0cafadd230 feat: 资产列表增加 is_active 字段 2021-12-31 17:25:56 +08:00
“怀磊”
61c777532b feat: 工单会话添加状态字段 2021-12-31 17:25:25 +08:00
feng626
e13f2b34ff fix: ticket bug 2021-12-31 16:36:21 +08:00
“怀磊”
fa3daea82d feat: 工单添加会话功能 2021-12-31 16:29:32 +08:00
feng626
16c6f4c77f feat: add passphrase 2021-12-31 14:48:56 +08:00
Michael Bai
31e699bd2d feat: 应用授权增加Action动作控制 2021-12-30 17:24:21 +08:00
“怀磊”
4ecdf1575d fix: 应用管理类型搜索,搜索条件过滤 2021-12-30 10:27:45 +08:00
xinwen
ec00a541f8 feat: 命令记录接口增加 remote_addr 字段 2021-12-28 18:48:09 +08:00
jiangweidong
ef97df09cb feat: 支持 Redis 数据库的纳管 (#1246)
* feat: 支持 Redis 数据库的纳管

* feat: 支持Redis数据库的纳管, 将redis_acl协议合并到redis协议中
2021-12-28 18:16:13 +08:00
567 changed files with 21137 additions and 9929 deletions

View File

@@ -20,6 +20,6 @@ VUE_APP_LOGOUT_PATH = '/core/auth/logout/'
# Dev server for core proxy
VUE_APP_CORE_HOST = 'http://localhost:8080/'
VUE_APP_CORE_WS = 'http://localhost:8080/'
VUE_APP_CORE_HOST = 'http://localhost:8080'
VUE_APP_CORE_WS = 'ws://localhost:8080'
VUE_APP_ENV = 'development'

View File

@@ -39,7 +39,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build it and upload
uses: jumpserver/action-build-upload-assets@node10
uses: jumpserver/action-build-upload-assets@node14.16
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:

View File

@@ -1,23 +1,26 @@
FROM node:10 as stage-build
ARG VERSION
ENV VERSION=$VERSION
ARG NPM_REGISTRY="https://registry.npm.taobao.org"
FROM node:14.16 as stage-build
ARG TARGETARCH
ARG NPM_REGISTRY="https://registry.npmmirror.com"
ENV NPM_REGISTY=$NPM_REGISTRY
ARG SASS_BINARY_SITE="https://npm.taobao.org/mirrors/node-sass"
ENV SASS_BINARY_SITE=$SASS_BINARY_SITE
WORKDIR /data
RUN npm config set sass_binary_site=${SASS_BINARY_SITE}
RUN npm config set registry ${NPM_REGISTRY}
RUN yarn config set registry ${NPM_REGISTRY}
COPY package.json yarn.lock /data/
RUN yarn install
RUN npm rebuild node-sass
RUN set -ex \
&& npm config set registry ${NPM_REGISTRY} \
&& yarn config set registry ${NPM_REGISTRY} \
&& yarn config set cache-folder /root/.cache/yarn/lina
ADD package.json yarn.lock /data
RUN --mount=type=cache,target=/root/.cache/yarn \
yarn install
ARG VERSION
ENV VERSION=$VERSION
ADD . /data
RUN cd utils && bash -xieu build.sh build
RUN --mount=type=cache,target=/root/.cache/yarn \
sed -i "s@Version <strong>.*</strong>@Version <strong>${VERSION}</strong>@g" src/layout/components/Footer/index.vue \
&& yarn build
FROM nginx:alpine
COPY --from=stage-build /data/release/lina /opt/lina
COPY --from=stage-build /data/lina /opt/lina
COPY nginx.conf /etc/nginx/conf.d/default.conf

1
GITSHA Normal file
View File

@@ -0,0 +1 @@
5667c39bcb45300676b63d25754fd022543dca06

View File

@@ -19,7 +19,7 @@ VUE_APP_CORE_HOST = 'JUMPSERVER_APIHOST'
$ yarn serve
4. 构建
$ yarn build
$ yarn build:prod
```
## 生产中部署
@@ -46,12 +46,4 @@ server {
## License & Copyright
Copyright (c) 2014-2021 飞致云 FIT2CLOUD, All rights reserved.
Licensed under The GNU General Public License version 2 (GPLv2) (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://github.com/jumpserver/lina/blob/dev/LICENSE
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Be consistent with [jumpserver](https://github.com/jumpserver/jumpserver)

View File

@@ -24,9 +24,9 @@ if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
)
app.listen(port, function () {
console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`))
// debug(chalk.green(`> Preview at http://localhost:${port}${publicPath}`))
if (report) {
console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`))
// debug(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`))
}
})

View File

@@ -56,7 +56,7 @@ const responseFake = (url, type, respond) => {
url: new RegExp(`${process.env.VUE_APP_BASE_API}${url}`),
type: type || 'get',
response(req, res) {
console.log('request invoke:' + req.path)
// debug('request invoke:' + req.path)
res.json(Mock.mock(respond instanceof Function ? respond(req, res) : respond))
}
}

View File

@@ -59,9 +59,9 @@ module.exports = app => {
mockRoutesLength = mockRoutes.mockRoutesLength
mockStartIndex = mockRoutes.mockStartIndex
console.log(chalk.magentaBright(`\n > Mock Server hot reload success! changed ${path}`))
// debug(chalk.magentaBright(`\n > Mock Server hot reload success! changed ${path}`))
} catch (error) {
console.log(chalk.redBright(error))
// debug(chalk.redBright(error))
}
}
})

View File

@@ -1,4 +1,3 @@
const tokens = {
admin: {
token: 'admin-token'
@@ -46,7 +45,6 @@ export default [
}
}
},
// get user info
{
url: '/vue-admin-template/user/info\.*',

View File

@@ -7,6 +7,7 @@
"scripts": {
"dev": "vue-cli-service serve",
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview",
@@ -25,17 +26,20 @@
"axios": "0.21.1",
"axios-retry": "^3.1.9",
"cron-parser": "^4.0.0",
"crypto-js": "^4.1.1",
"css-color-function": "^1.3.3",
"deepmerge": "^4.2.2",
"echarts": "^4.7.0",
"element-ui": "2.13.2",
"eslint-plugin-html": "^6.0.0",
"install": "^0.13.0",
"jquery": "^3.5.0",
"jquery": "^3.6.1",
"js-cookie": "2.2.0",
"jsencrypt": "^3.2.1",
"krry-transfer": "^1.7.3",
"less": "^3.10.3",
"less-loader": "^5.0.0",
"lodash": "^4.17.15",
"lodash": "^4.17.21",
"lodash.clonedeep": "^4.5.0",
"lodash.frompairs": "^4.0.1",
"lodash.get": "^4.4.2",
@@ -47,8 +51,8 @@
"lodash.set": "^4.3.2",
"lodash.topairs": "^4.3.0",
"lodash.values": "^4.3.0",
"moment": "^2.29.1",
"moment-parseformat": "^3.0.0",
"moment": "^2.29.4",
"moment-parseformat": "^4.0.0",
"normalize.css": "7.0.0",
"npm": "^7.8.0",
"nprogress": "0.2.0",
@@ -94,7 +98,7 @@
"lint-staged": "^10.1.2",
"mockjs": "1.0.1-beta3",
"runjs": "^4.3.2",
"sass": "^1.26.10",
"sass": "~1.32.6",
"sass-loader": "^7.1.0",
"script-ext-html-webpack-plugin": "2.1.3",
"script-loader": "0.7.2",

View File

@@ -9,23 +9,7 @@
<meta http-equiv="Cache" content="no-cache">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title><%= webpackConfig.name %></title>
<style>
::-webkit-scrollbar {
width:14px;
}
::-webkit-scrollbar-track {
border-radius:10px;
}
::-webkit-scrollbar-thumb {
border-radius: 8px;
box-shadow: 8px 10px 20px #C6C6C6 inset;
border: 3px solid rgba(0, 0, 0, 0);
}
::-webkit-scrollbar-thumb:hover {
box-shadow: 8px 10px 20px #878787 inset;
}
</style>
<link rel="stylesheet" href="<%= BASE_URL %>theme/element-ui.css">
</head>
<body>
<noscript>

23
public/theme/README.md Normal file
View File

@@ -0,0 +1,23 @@
# 主题颜色
```
alpha-1: "rgba(64, 158, 255, 0.1)"
alpha-2: "rgba(64, 158, 255, 0.2)"
alpha-3: "rgba(64, 158, 255, 0.3)"
alpha-4: "rgba(64, 158, 255, 0.4)"
alpha-5: "rgba(64, 158, 255, 0.5)"
alpha-6: "rgba(64, 158, 255, 0.6)"
alpha-7: "rgba(64, 158, 255, 0.7)"
alpha-8: "rgba(64, 158, 255, 0.8)"
alpha-9: "rgba(64, 158, 255, 0.9)"
light-1: "#53a8ff"
light-2: "#66b1ff"
light-3: "#79bbff"
light-4: "#8cc5ff"
light-5: "#a0cfff"
light-6: "#b3d8ff"
light-7: "#c6e2ff"
light-8: "#d9ecff"
light-9: "#ecf5ff"
primary: "#409EFF"
```
primary是初始主题颜色其他颜色均属于primary的系列颜色

View File

@@ -1,66 +1,84 @@
// cover some element-ui styles
/* 这里只写element-variables里面改不动的、且和主题系列颜色相关的样式 */
/* 主题相关看该文件夹下的README.md */
/* info type special treatment */
.el-button--info {
background-color: info;
border-color: info;
}
.el-button--text {
padding: 5px
}
.el-button--text:hover {
background-color: rgba(0, 0, 0, .05);
}
.el-button--success {
background-color: success;
border-color: success;
}
.el-alert--info.is-light {
background-color: light-9;
color: light-2;
border: 1px solid;
}
.el-alert--info .el-alert__description {
color: light-2;
}
.el-pagination.is-background .el-pager li:not(.disabled):hover {
color: white;
background-color: primary;
}
.el-pagination.is-background .btn-next,
.el-pagination.is-background .btn-prev,
.el-pagination.is-background .el-pager li {
margin: 0 5px;
background-color: white;
color: #606266;
min-width: 28px;
border-radius: 2px;
border: 1px solid #DCDFE6;
font-size: 12px;
line-height: 26px;
font-weight: 400;
}
.el-breadcrumb__inner,
.el-breadcrumb__inner a {
font-weight: 400 !important;
}
$--color-primary: #1ab394;
$--color-success: #1c84c6;
$--color-info: #23c6c8;
$--color-warning: #f8ac59;
$--color-danger: #ed5565;
$--color-link: #1c84c6;
$--color-link-highlight: #23527c;
$--color-text-primary: #303133;
/// color|1|Font Color|2
$--color-text-regular: #606266;
.el-upload {
input[type="file"] {
display: none !important;
}
.el-upload input[type="file"] {
display: none !important;
}
.el-upload__input {
display: none;
}
// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
transform: none;
left: 0;
position: relative;
margin: 0 auto;
}
// refine element ui upload
.upload-container {
.el-upload {
.upload-container .el-upload {
width: 100%;
.el-upload-dragger {
width: 100%;
height: 200px;
}
}
}
// dropdown
.el-dropdown-menu {
a {
display: block
}
.upload-container .el-upload .el-upload-dragger {
width: 100%;
height: 200px;
}
.el-dropdown-menu a {
display: block
}
.el-table th > .cell {
color: rgb(104, 106, 108);
}
// to fix el-date-picker css style
.el-range-separator {
box-sizing: content-box;
}
@@ -111,22 +129,6 @@ td .el-button.el-button--mini {
border-left-color: rgb(220, 223, 230);
}
.el-alert--success.is-light {
border: #bce8f1 solid 1px;
}
.el-alert--info.is-light {
border: #bce8f1 solid 1px;
}
.el-alert--warning.is-light {
border: #faebcc solid 1px;
}
.el-alert--error.is-light {
border: #f1dfe2 solid 1px;
}
.el-alert__content {
line-height: 1.5;
}
@@ -140,32 +142,32 @@ td .el-button.el-button--mini {
}
.el-card.primary > .el-card__header {
background-color: $--color-primary;
border-color: $--color-primary;
background-color: primary;
border-color: primary;
color: white;
}
.el-card.success > .el-card__header {
background-color: $--color-success;
border-color: $--color-success;
background-color: success;
border-color: success;
color: #ffffff;
}
.el-card.info > .el-card__header {
background-color: $--color-info;
border-color: $--color-info;
background-color: info;
border-color: info;
color: #ffffff;
}
.el-card.warning > .el-card__header {
background-color: $--color-warning;
border-color: $--color-warning;
background-color: warning;
border-color: warning;
color: #ffffff;
}
.el-card.danger > .el-card__header {
background-color: $--color-danger;
border-color: $--color-danger;
background-color: danger;
border-color: danger;
color: #ffffff;
}
@@ -192,28 +194,14 @@ td .el-button.el-button--mini {
line-height: 34px;
}
.el-select-dropdown__item.selected {
font-weight: 400;
color: $--color-text-primary;
background-color: #ddd;
}
.el-select-dropdown.is-multiple .el-select-dropdown__item.selected {
color: #606266;
background-color: #ddd;
font-weight: 400;
}
//.el-select-dropdown.is-multiple .el-select-dropdown__item.selected {
// color: #606266;
// background-color: #ddd;
// font-weight: 400;
//}
.el-select-dropdown__item.hover, .el-select-dropdown__item:hover {
background-color: $--color-primary;
.el-select-dropdown__item.hover {
background-color: primary;
color: white;
}
@@ -222,27 +210,27 @@ td .el-button.el-button--mini {
}
.el-select-dropdown.is-multiple .el-select-dropdown__item.selected::after {
color: $--color-primary;
color: primary;
}
.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.hover {
color: white;
background-color: $--color-primary;
background-color: primary;
}
.el-tag.el-tag--info {
background-color: #f1f1f1;
border-color: #e5e6e7;
color: #333333;
background-color: #f1f1f1!important;
border-color: #e5e6e7!important;
color: #333333!important;
}
.el-tag.el-tag--info .el-tag__close {
color: #333333;
color: #333333!important;
background-color: inherit;
}
.el-tag.el-tag--info.is-hit {
border-color: #e5e6e7;
border-color: #e5e6e7!important;
}
.el-tag.el-tag--info .el-tag__close:hover {
@@ -259,120 +247,71 @@ td .el-button.el-button--mini {
border-top-color: #676a6c;
}
.text-link {
color: info!important;
}
.text-link:hover {
color: info!important;
filter: opacity(65%)!important;
}
.text-danger {
color: $--color-danger;
color: danger;
}
.text-primary {
color: $--color-primary;
color: primary;
}
.text-info {
color: $--color-info;
color: info;
}
.text-warning {
color: $--color-warning;
color: warning;
}
.text-success {
color: $--color-success;
color: success;
}
.el-radio__input.is-checked+.el-radio__label {
color: inherit;
}
.el-radio__input.is-checked .el-radio__inner {
border-color: #409EFF;
background-color: #409EFF;
}
.el-checkbox__input.is-checked .el-checkbox__inner {
border-color: #409EFF;
background-color: #409EFF;
}
.el-radio__inner:hover {
border-color: #409EFF;
}
.el-textarea__inner {
border-radius: 0;
}
.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner {
border-color: #409EFF;
background-color: #409EFF;
}
.el-checkbox__input.is-checked+.el-checkbox__label {
color: #606266;
}
.el-checkbox__inner:hover {
border-color: #409EFF;
}
.el-checkbox__input.is-focus .el-checkbox__inner {
border-color: #409EFF;
}
.el-pagination.is-background .btn-next, .el-pagination.is-background .btn-prev, .el-pagination.is-background .el-pager li {
margin: 0 5px;
background-color: white;
color: #606266;
min-width: 28px;
border-radius: 2px;
border: 1px solid #DCDFE6;
font-size: 12px;
line-height: 26px;
font-weight: 400;
}
.el-pagination.is-background .el-pager li:not(.disabled):hover {
color: white;
background-color: $--color-primary;
}
.el-pagination.is-background .number {
padding: 0;
}
.el-card.primary .el-card__header {
background-color: primary;
}
.el-card.success .el-card__header {
background-color: success;
}
.el-card.info .el-card__header {
background-color: info;
}
.el-card.warning .el-card__header {
background-color: warning;
}
.el-card.danger .el-card__header {
background-color: danger;
}
.el-message-box__headerbtn .el-message-box__close {
color: #606266;
}
.el-card.primary {
.el-card__header {
background-color: $--color-primary;
}
}
.el-card.success {
.el-card__header {
background-color: $--color-success;
}
}
.el-card.info {
.el-card__header {
background-color: $--color-info;
}
}
.el-card.warning {
.el-card__header {
background-color: $--color-warning;
}
}
.el-card.danger {
.el-card__header {
background-color: $--color-danger;
}
}
.el-tooltip__popper.is-light {
background: #FFF;
border: 1px solid #e7eaec;
@@ -391,21 +330,13 @@ td .el-button.el-button--mini {
border-bottom: 1px solid #e7e7e7 !important;
}
.el-table .cell, .el-table--border td:first-child .cell, .el-table--border th:first-child .cell {
.el-table .cell,
.el-table--border td:first-child .cell,
.el-table--border th:first-child .cell {
padding-left: 10px;
padding-right: 14px;
}
.el-tag--dark.el-tag--info {
background-color: #23c6c8;
border-color: #23c6c8;
color: #fff;
}
a {
color: $--color-link !important;
text-decoration: none;
}
.el-tag--default.el-tag--dark {
background-color: #d1dade;
@@ -417,7 +348,6 @@ a {
color: #676a6c;
}
.el-table__empty-block {
width: 100% !important;
}
@@ -433,62 +363,101 @@ a {
color: #000;
font-size: 22px;
font-weight: 800;
//color: red;
}
.el-tag--default.el-tag--dark {
background-color: #d1dade;
color: #5e5e5e;
border: none;
}
.el-card {
color: #676a6c;
}
.el-table__empty-block {
width: 100% !important;
}
.el-dialog__headerbtn .el-dialog__close {
font-size: 21px;
font-weight: 700;
color: #000;
text-shadow: 0 1px 0 #fff;
}
.el-dialog__headerbtn:focus .el-dialog__close, .el-dialog__headerbtn:hover .el-dialog__close {
color: #000;
font-size: 22px;
font-weight: 800;
}
.el-button--danger.is-plain {
color: $--color-danger;
color: danger;
background: #ffffff;
border-color: $--color-danger;
border-color: danger;
}
.el-button--danger.is-plain.is-disabled,
.el-button--danger.is-plain.is-disabled:active,
.el-button--danger.is-plain.is-disabled:focus,
.el-button--danger.is-plain.is-disabled:hover {
color: white;
}
.el-alert .el-alert__description {
margin: 1px 0 0;
}
.el-input-group__prepend div.el-select .el-input__inner {
color: $--color-text-primary;
}
.el-input-group__prepend div.el-select .el-input__inner:hover {
color: $--color-text-primary;
}
.el-table {
font-size: 13px;
}
.el-table-filter__list-item:hover {
color: $--color-text-primary;
}
.el-dialog {
// 居中弹框
position: absolute;
top: 50%;
left: 50%;
margin: 0 !important;
transform: translate(-50%, -50%);
// 防止超出视窗
max-height: calc(100% - 30px);
max-width: calc(100% - 30px);
//实现body内部滚动
display: flex;
flex-direction: column;
.el-dialog__body {
max-height: 90vh;
overflow: auto;
}
}
.el-button--text {
color: $--color-link;
padding: 5px;
.el-dialog .el-dialog__body {
max-height: 90vh;
overflow: auto;
padding: 30px;
}
.el-button--text:hover {
color: $--color-link-highlight;
background-color: rgba(0,0,0,.05)
.el-dialog .el-dialog__body form {
padding-right: 20px;
}
.el-dialog .el-dialog__footer {
padding: 10px 30px 30px;
}
.el-cascader {
line-height: 34px;
}
.el-input__icon {
line-height: 34px;
}
.el-checkbox__input.is-checked+.el-checkbox__label {
color: #606266;
}
.el-select-dropdown__item.selected {
font-weight: 400;
color: #606266;
background-color: #ddd;
}
.el-input-group__prepend div.el-select .el-input__inner,
.el-input-group__prepend div.el-select .el-input__inner:hover {
color: #303133;
}

File diff suppressed because one or more lines are too long

View File

@@ -9,3 +9,6 @@ export default {
name: 'App'
}
</script>
<style>
</style>

View File

@@ -1,8 +1,8 @@
import request from '@/utils/request'
export function postInterface(formData) {
export function updateInterface(formData) {
return request({
url: '/api/v1/xpack/interface/setting',
url: '/api/v1/xpack/interface/setting/',
method: 'put',
headers: {
'Content-Type': 'multipart/form-data'
@@ -12,15 +12,15 @@ export function postInterface(formData) {
}
export function getInterfaceInfo() {
return request({
url: '/api/v1/xpack/interface/setting',
url: '/api/v1/xpack/interface/setting/',
method: 'get'
})
}
export function restoreInterface() {
return request({
url: '/api/v1/xpack/interface/restore',
method: 'get'
url: '/api/v1/xpack/interface/setting/restore/',
method: 'put'
})
}
@@ -34,3 +34,10 @@ export function importLicense(formData) {
data: formData
})
}
export function previewThemes() {
return request({
url: `/api/v1/xpack/interface/setting/themes/`,
method: 'get'
})
}

View File

@@ -13,3 +13,9 @@ export function getCurrentOrg() {
method: 'get'
})
}
export default {
getCurrentOrg,
getOrgDetail
}

View File

@@ -68,15 +68,21 @@ export function importLdapUser(data) {
})
}
export function getPublicSettings() {
export function getPublicSettings(isOpen) {
let url
if (isOpen) {
url = '/api/v1/settings/public/open/'
} else {
url = '/api/v1/settings/public/'
}
return request({
url: '/api/v1/settings/public/',
url: url,
method: 'get'
})
}
export function getLogo() {
return request({
url: '/api/v1/xpack/interface/setting',
url: '/api/v1/xpack/interface/setting/',
method: 'get'
})
}

View File

@@ -69,3 +69,8 @@ export function logout() {
export function refreshSessionIdAge() {
return getProfile()
}
export default {
getProfile,
getUserList
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
src/assets/img/header-profile.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1,156 @@
<template>
<div>
<GenericListPage :table-config="tableConfig" :header-actions="headerActions" :help-message="title" />
<ShowSecretInfo v-if="showViewSecretDialog" :visible.sync="showViewSecretDialog" :account="account" />
</div>
</template>
<script>
import { ActionsFormatter, DetailFormatter, DisplayFormatter } from '@/components/TableFormatters'
import ShowSecretInfo from '../AccountListTable/ShowSecretInfo'
import { GenericListPage } from '@/layout/components'
export default {
name: 'AccountHistoryTable',
components: {
GenericListPage,
ShowSecretInfo
},
props: {
url: {
type: String,
required: true
},
exportUrl: {
type: String,
default() {
return this.url.replace('/assets/accounts-history/', '/assets/account-history-secrets/')
}
},
hasLeftActions: {
type: Boolean,
default: false
},
otherActions: {
type: Array,
default: null
},
hasClone: {
type: Boolean,
default: false
}
},
data() {
const vm = this
return {
showViewSecretDialog: false,
account: {},
tableConfig: {
url: this.url,
permissions: {
app: 'assets',
resource: 'authbook'
},
columns: [
'hostname', 'ip', 'username', 'version',
'systemuser', 'date_created', 'date_updated', 'actions'
],
columnsShow: {
min: ['username', 'actions'],
default: ['hostname', 'ip', 'username', 'version', 'actions']
},
columnsMeta: {
hostname: {
prop: 'hostname',
label: this.$t('assets.Hostname'),
showOverflowTooltip: true,
formatter: DetailFormatter,
formatterArgs: {
can: this.$hasPerm('assets.view_asset'),
getRoute({ row }) {
return {
name: 'AssetDetail',
params: { id: row.asset }
}
}
}
},
ip: {
width: '120px'
},
username: {
showOverflowTooltip: true
},
systemuser: {
formatter: DisplayFormatter
},
version: {
width: '70px'
},
actions: {
formatter: ActionsFormatter,
formatterArgs: {
hasUpdate: false, // can set function(row, value)
hasDelete: false, // can set function(row, value)
hasClone: this.hasClone,
moreActionsTitle: this.$t('common.More'),
extraActions: [
{
name: 'View',
title: this.$t('common.View'),
can: this.$hasPerm('assets.view_assethistoryaccountsecret'),
type: 'primary',
callback: ({ row }) => {
vm.account = row
vm.showViewSecretDialog = true
}
}
]
}
}
}
},
headerActions: {
hasLeftActions: this.hasLeftActions,
hasMoreActions: false,
hasCreate: false,
hasImport: false,
hasExport: this.$hasPerm('assets.view_assethistoryaccountsecret'),
exportOptions: {
url: this.exportUrl,
mfaVerifyRequired: true
},
searchConfig: {
exclude: ['systemuser', 'asset']
},
hasSearch: true
}
}
},
computed: {
title() {
return this.$t('accounts.AccountHistableHelpMessage')
}
},
watch: {
url(iNew) {
this.$set(this.tableConfig, 'url', iNew)
this.$set(this.headerActions.exportOptions, 'url', iNew.replace('/accounts-history/', '/account-history-secrets/'))
}
},
mounted() {
if (this.otherActions) {
const actionColumn = this.tableConfig.columns[this.tableConfig.columns.length - 1]
for (const item of this.otherActions) {
actionColumn.formatterArgs.extraActions.push(item)
}
}
},
methods: {
}
}
</script>
<style lang='less' scoped>
</style>

View File

@@ -1,8 +1,9 @@
<template>
<div>
<MFAVerifyDialog
@MFAVerifyDone="getAuthInfo"
@MFAVerifyCancel="exit"
<UserConfirmDialog
:url="url"
@UserConfirmDone="getAuthInfo"
@UserConfirmCancel="exit"
/>
<Dialog
:title="dialogTitle"
@@ -25,7 +26,7 @@
<el-form-item :label="this.$t('assets.Password')">
<el-input v-model="authInfo.password" type="password" show-password />
</el-form-item>
<el-form-item :label="this.$t('assets.SSHKey')">
<el-form-item :label="this.$t('users.SSHKey')">
<el-input v-model="authInfo['private_key']" class="item-textarea" type="textarea" show-password />
</el-form-item>
</el-form>
@@ -36,12 +37,12 @@
<script>
import Dialog from '@/components/Dialog'
import MFAVerifyDialog from '@/components/MFAVerifyDialog'
import UserConfirmDialog from '@/components/UserConfirmDialog'
export default {
name: 'ShowSecretInfo',
components: {
Dialog,
MFAVerifyDialog
UserConfirmDialog
},
props: {
account: {
@@ -57,16 +58,13 @@ export default {
return {
dialogTitle: this.$t('common.ViewSecret'),
authInfo: {},
showAuthInfo: false
showAuthInfo: false,
url: `/api/v1/assets/account-secrets/${this.account.id}/`
}
},
mounted() {
this.getAuthInfo()
},
methods: {
getAuthInfo() {
const url = `/api/v1/assets/account-secrets/${this.account.id}/`
this.$axios.get(url, { disableFlashErrorMsg: true }).then(resp => {
this.$axios.get(this.url, { disableFlashErrorMsg: true }).then(resp => {
this.authInfo = resp
this.showAuthInfo = true
})

View File

@@ -2,13 +2,13 @@
<Dialog
width="50"
:title="this.$t('assets.UpdateAssetUserToken')"
:visible.sync="visible"
:destroy-on-close="true"
v-bind="$attrs"
@confirm="handleConfirm()"
@cancel="handleCancel()"
v-on="$listeners"
>
<el-form label-position="right" label-width="80px">
<el-form label-position="right" label-width="90px">
<el-form-item :label="this.$t('assets.Hostname')">
<el-input v-model="account.hostname" readonly />
</el-form-item>
@@ -16,10 +16,13 @@
<el-input v-model="account['username']" readonly />
</el-form-item>
<el-form-item :label="this.$t('assets.Password')">
<el-input v-model="authInfo.password" type="password" />
<UpdateToken v-model="authInfo.password" />
</el-form-item>
<el-form-item :label="this.$t('assets.SSHKey')">
<input type="file" @change="onPrivateKeyLoaded">
<el-form-item :label="this.$t('assets.SSHSecretKey')">
<UploadKey @input="getFile" />
</el-form-item>
<el-form-item :label="this.$t('assets.Passphrase')">
<UpdateToken v-model="authInfo.passphrase" />
</el-form-item>
</el-form>
</Dialog>
@@ -27,22 +30,31 @@
<script>
import Dialog from '@/components/Dialog'
import { UpdateToken, UploadKey } from '@/components/FormFields'
import { encryptPassword } from '@/utils/crypto'
export default {
name: 'UpdateSecretInfo',
components: {
Dialog
Dialog,
UploadKey,
UpdateToken
},
props: {
account: {
type: Object,
default: () => ({})
},
visible: {
type: Boolean,
default: false
}
},
data() {
return {
authInfo: {
password: '',
private_key: ''
private_key: '',
passphrase: ''
}
}
},
@@ -50,14 +62,16 @@ export default {
handleConfirm() {
const data = {}
if (this.authInfo.password !== '') {
data.password = this.authInfo.password
data.password = encryptPassword(this.authInfo.password)
}
if (this.authInfo.private_key !== '') {
data.private_key = this.authInfo.private_key
data.private_key = encryptPassword(this.authInfo.private_key)
if (this.authInfo.passphrase) data.passphrase = this.authInfo.passphrase
}
this.$axios.patch(
`/api/v1/assets/accounts/${this.account.id}/`,
data
data,
{ disableFlashErrorMsg: true }
).then(res => {
this.authInfo = { password: '', private_key: '' }
this.$message.success(this.$tc('common.updateSuccessMsg'))
@@ -72,16 +86,8 @@ export default {
handleCancel() {
this.$emit('update:visible', false)
},
onPrivateKeyLoaded(e) {
const vm = this
// TODO 校验文件类型
const reader = new FileReader()
reader.onload = function() {
vm.authInfo.private_key = this.result
}
reader.readAsText(
e.target.files[0]
)
getFile(file) {
this.authInfo.private_key = file
}
}
}

View File

@@ -2,7 +2,7 @@
<div>
<ListTable ref="ListTable" :table-config="tableConfig" :header-actions="headerActions" />
<ShowSecretInfo v-if="showViewSecretDialog" :visible.sync="showViewSecretDialog" :account="account" />
<UpdateSecretInfo :visible.sync="showUpdateSecretDialog" :account="account" @updateAuthDone="onUpdateAuthDone" />
<UpdateSecretInfo v-if="showUpdateSecretDialog" :visible.sync="showUpdateSecretDialog" :account="account" @updateAuthDone="onUpdateAuthDone" />
</div>
</template>
@@ -13,6 +13,7 @@ import ShowSecretInfo from './ShowSecretInfo'
import UpdateSecretInfo from './UpdateSecretInfo'
import { connectivityMeta } from './const'
import { openTaskPage } from '@/utils/jms'
// import i18n from '@/i18n/i18n'
export default {
name: 'AccountListTable',
@@ -46,12 +47,17 @@ export default {
}
},
data() {
const vm = this
return {
showViewSecretDialog: false,
showUpdateSecretDialog: false,
account: {},
tableConfig: {
url: this.url,
permissions: {
app: 'assets',
resource: 'authbook'
},
columns: [
'hostname', 'ip', 'username', 'version', 'connectivity',
'systemuser', 'date_created', 'date_updated', 'actions'
@@ -67,6 +73,7 @@ export default {
showOverflowTooltip: true,
formatter: DetailFormatter,
formatterArgs: {
can: this.$hasPerm('assets.view_asset'),
getRoute({ row }) {
return {
name: 'AssetDetail',
@@ -99,15 +106,20 @@ export default {
{
name: 'View',
title: this.$t('common.View'),
can: this.$hasPerm('assets.view_assetaccountsecret'),
type: 'primary',
callback: function({ row }) {
this.account = row
this.showViewSecretDialog = true
}.bind(this)
callback: ({ row }) => {
vm.account = row
vm.showViewSecretDialog = false
setTimeout(() => {
vm.showViewSecretDialog = true
})
}
},
{
name: 'Delete',
title: this.$t('common.Delete'),
can: this.$hasPerm('assets.delete_authbook'),
type: 'primary',
callback: ({ row }) => {
this.$axios.delete(`/api/v1/assets/accounts/${row.id}/`).then(() => {
@@ -119,6 +131,7 @@ export default {
{
name: 'Test',
title: this.$t('common.Test'),
can: this.$hasPerm('assets.test_authbook'),
callback: ({ row }) => {
this.$axios.post(
`/api/v1/assets/accounts/${row.id}/verify/`,
@@ -131,12 +144,26 @@ export default {
{
name: 'Update',
title: this.$t('common.Update'),
can: !this.$store.getters.currentOrgIsRoot,
callback: function({ row }) {
this.account = row
this.showUpdateSecretDialog = true
}.bind(this)
can: this.$hasPerm('assets.change_assetaccountsecret') && !this.$store.getters.currentOrgIsRoot,
callback: ({ row }) => {
vm.account = row
vm.showUpdateSecretDialog = false
setTimeout(() => {
vm.showUpdateSecretDialog = true
})
}
}
// {
// name: 'History',
// title: i18n.t('common.History'),
// can: this.$hasPerm('assets.view_assethistoryaccount') && !this.$store.getters.currentOrgIsRoot,
// callback: ({ row }) => {
// this.$router.push({
// name: 'AssetAccountHistoryList',
// query: { id: row.id }
// })
// }
// }
]
}
}
@@ -144,9 +171,10 @@ export default {
},
headerActions: {
hasLeftActions: this.hasLeftActions,
hasMoreActions: false,
hasMoreActions: true,
hasCreate: false,
hasImport: false,
hasExport: true,
hasExport: this.$hasPerm('assets.view_assetaccountsecret'),
exportOptions: {
url: this.exportUrl,
mfaVerifyRequired: true
@@ -161,6 +189,7 @@ export default {
watch: {
url(iNew) {
this.$set(this.tableConfig, 'url', iNew)
this.$set(this.headerActions.exportOptions, 'url', iNew.replace('/accounts/', '/account-secrets/'))
}
},
mounted() {

View File

@@ -7,12 +7,12 @@
:title="title"
@close="onClose"
>
<span class="announcement-main"> {{ announcement.content }}</span>
<span class="announcement-main">{{ announcement.content }}</span>
<span v-if="announcement.link">
<el-link :href="announcement.link" target="_blank" class="link-more">
{{ $t('common.ViewMore') }}
</el-link>
<i class="fa fa-share-square-o" />
<i class="fa fa-external-link" />
</span>
</el-alert>
</template>
@@ -60,6 +60,7 @@ export default {
}
.announcement-main {
word-wrap:break-word;
white-space: pre-wrap;
}
.link-more {
font-size: 10px;

View File

@@ -1,8 +1,9 @@
<template>
<div>
<MFAVerifyDialog
@MFAVerifyDone="getAuthInfo"
@MFAVerifyCancel="exit"
<UserConfirmDialog
:url="url"
@UserConfirmDone="getAuthInfo"
@UserConfirmCancel="exit"
/>
<Dialog
:title="dialogTitle"
@@ -33,12 +34,12 @@
<script>
import Dialog from '@/components/Dialog'
import MFAVerifyDialog from '@/components/MFAVerifyDialog'
import UserConfirmDialog from '@/components/UserConfirmDialog'
export default {
name: 'ShowSecretInfo',
components: {
Dialog,
MFAVerifyDialog
UserConfirmDialog
},
props: {
account: {
@@ -54,16 +55,13 @@ export default {
return {
dialogTitle: this.$t('common.ViewSecret'),
authInfo: {},
showAuthInfo: false
showAuthInfo: false,
url: `/api/v1/applications/account-secrets/${this.account.id}/`
}
},
mounted() {
this.getAuthInfo()
},
methods: {
getAuthInfo() {
const url = `/api/v1/applications/account-secrets/${this.account.id}/`
this.$axios.get(url, { disableFlashErrorMsg: true }).then(resp => {
this.$axios.get(this.url, { disableFlashErrorMsg: true }).then(resp => {
this.authInfo = resp
this.showAuthInfo = true
})

View File

@@ -38,6 +38,10 @@ export default {
hasClone: {
type: Boolean,
default: false
},
systemUserDisabled: {
type: Boolean,
default: true
}
},
data() {
@@ -84,6 +88,7 @@ export default {
showOverflowTooltip: true,
formatter: DetailFormatter,
formatterArgs: {
can: this.systemUserDisabled && this.$hasPerm('assets.view_systemuser'),
getTitle({ row }) {
return row.systemuser_display
},
@@ -107,6 +112,7 @@ export default {
name: 'View',
title: this.$t('common.View'),
type: 'primary',
can: this.$hasPerm('applications.view_applicationaccountsecret'),
callback: function({ row }) {
this.account = row
this.showViewSecretDialog = true
@@ -129,13 +135,13 @@ export default {
hasLeftActions: this.hasLeftActions,
hasMoreActions: false,
hasImport: false,
hasExport: true,
hasExport: this.$hasPerm('applications.view_applicationaccountsecret'),
exportOptions: {
url: this.exportUrl,
mfaVerifyRequired: true
},
searchConfig: {
exclude: ['systemuser', 'asset']
exclude: ['systemuser', 'app']
},
hasSearch: true
}

View File

@@ -13,7 +13,7 @@
:title="this.$t('assets.Assets')"
:visible.sync="dialogVisible"
custom-class="asset-select-dialog"
width="70%"
width="80vw"
top="1vh"
@confirm="handleConfirm"
@cancel="handleCancel"
@@ -75,6 +75,8 @@ export default {
showMenu: false,
showRefresh: true,
showAssets: false,
showSearch: true,
customTreeHeader: true,
url: '/api/v1/assets/assets/?fields_size=mini',
nodeUrl: '/api/v1/assets/nodes/',
// ?assets=0不显示资产. =1显示资产
@@ -192,7 +194,7 @@ export default {
.el-dialog__wrapper ::v-deep .el-dialog__body{
padding: 5px 10px;
}
.page ::v-deep .treebox{
.page ::v-deep .treebox {
height: inherit !important;
}
.asset-select-dialog >>> .transition-box:first-child {

View File

@@ -78,15 +78,22 @@ export default {
},
_cleanFormValue(form, remoteMeta) {
for (const [k, v] of Object.entries(remoteMeta)) {
if (v.default === undefined) {
continue
let valueSet = form[k]
if (v.type === 'nested object' && v.children) {
// 有一些字段属性时 nested object 类型,但是没有 children没有children的不需要走递归逻辑
// 比如:认证配置中的属性映射字段
if (typeof valueSet !== 'object') {
// 处理一些前端没有设置初始值的情况
valueSet = {}
}
form[k] = valueSet
this._cleanFormValue(valueSet, v.children)
}
const valueSet = form[k]
if (valueSet !== undefined) {
continue
}
if (v.type === 'nested object' && typeof valueSet === 'object') {
this._cleanFormValue(valueSet, v.children)
if (v.default === undefined) {
continue
}
form[k] = v.default
}

View File

@@ -1,6 +1,7 @@
import Vue from 'vue'
import Select2 from '@/components/FormFields/Select2'
import NestedField from '@/components/AutoDataForm/components/NestedField'
import Swicher from '@/components/FormFields/Swicher'
import rules from '@/components/DataForm/rules'
import { assignIfNot } from '@/utils/common'
@@ -18,6 +19,9 @@ export class FormFieldGenerator {
})
}
break
case 'multiple choice':
field.el.choices = fieldRemoteMeta['choices']
break
case 'datetime':
type = 'date-picker'
field.el = {
@@ -42,7 +46,8 @@ export class FormFieldGenerator {
}
break
case 'boolean':
type = 'checkbox'
type = ''
field.component = Swicher
break
case 'nested object':
type = 'nestedField'

View File

@@ -4,9 +4,12 @@
<script>
import TagSearch from '@/components/TagSearch'
import i18n from '@/i18n/i18n'
export default {
name: 'AutoDataSearch',
components: { TagSearch },
components: {
TagSearch
},
props: {
url: {
type: String,
@@ -78,10 +81,13 @@ export default {
}
if (field.type === 'boolean') {
option.children = [
{ label: this.$t('common.Yes'), value: true },
{ label: this.$t('common.No'), value: false }
{ label: i18n.t('common.Yes'), value: true },
{ label: i18n.t('common.No'), value: false }
]
}
if (option.value === 'id') {
option.label = 'ID'
}
vm.internalOptions.push(option)
}
},

View File

@@ -64,7 +64,6 @@ export default {
}
},
computed: {
},
watch: {
config: {
@@ -174,8 +173,8 @@ export default {
}
if (column.type === 'boolean') {
col.filters = [
{ text: this.$t('common.Yes'), value: true },
{ text: this.$t('common.No'), value: false }
{ text: i18n.t('common.Yes'), value: true },
{ text: i18n.t('common.No'), value: false }
]
col.sortable = false
col['column-key'] = col.prop
@@ -211,7 +210,7 @@ export default {
},
generateTotalColumns() {
const config = _.cloneDeep(this.config)
const columns = []
let columns = []
for (let col of config.columns) {
if (typeof col === 'object') {
columns.push(col)
@@ -220,6 +219,15 @@ export default {
columns.push(col)
}
}
columns = columns.filter(item => {
let has = item.has
if (has === undefined) {
has = true
} else if (typeof has === 'function') {
has = has()
}
return has
})
// 第一次初始化时记录 totalColumns
this.totalColumns = columns
config.columns = columns
@@ -274,8 +282,10 @@ export default {
})
},
generatePopoverColumns() {
this.popoverColumns.totalColumnsList = this.totalColumns.map(obj => {
return { prop: obj.prop, label: obj.label }
this.popoverColumns.totalColumnsList = this.totalColumns.filter(obj => {
if (obj.label) {
return { prop: obj.prop, label: obj.label }
}
})
this.popoverColumns.currentCols = this.cleanedColumnsShow.show
this.popoverColumns.minCols = this.cleanedColumnsShow.min

View File

@@ -1,13 +1,13 @@
<template>
<DataZTree ref="dataztree" :setting="treeSetting" class="data-z-tree" v-on="$listeners">
<slot v-if="treeSetting.hasRightMenu" slot="rMenu">
<li id="m_create" class="rmenu" tabindex="-1" @click="createTreeNode">
<li v-if="treeSetting.showCreate" id="m_create" class="rmenu" tabindex="-1" @click="createTreeNode">
<i class="fa fa-plus-square-o" /> {{ this.$t('tree.CreateNode') }}
</li>
<li id="m_edit" class="rmenu" tabindex="-1" @click="editTreeNode">
<li v-if="treeSetting.showUpdate" id="m_edit" class="rmenu" tabindex="-1" @click="editTreeNode">
<i class="fa fa-pencil-square-o" /> {{ this.$t('tree.RenameNode') }}
</li>
<li id="m_del" class="rmenu" tabindex="-1" @click="removeTreeNode">
<li v-if="treeSetting.showDelete" id="m_del" class="rmenu" tabindex="-1" @click="removeTreeNode">
<i class="fa fa-minus-square" /> {{ this.$t('tree.DeleteNode') }}
</li>
<slot name="rMenu" />
@@ -18,6 +18,7 @@
<script>
import DataZTree from '../DataZTree'
import $ from '@/utils/jquery-vendor'
import { mapGetters } from 'vuex'
export default {
name: 'AutoDataZTree',
@@ -34,6 +35,13 @@ export default {
data() {
return {
defaultSetting: {
showCreate: true,
showDelete: true,
showUpdate: true,
showSearch: false,
// 自定义header
customTreeHeader: false,
customTreeHeaderName: this.$t('assets.AssetTree'),
async: {
enable: true,
url: (process.env.VUE_APP_ENV === 'production') ? (`${this.setting.treeUrl}`) : (`${process.env.VUE_APP_BASE_API}${this.setting.treeUrl}`),
@@ -63,6 +71,9 @@ export default {
}
},
computed: {
...mapGetters([
'currentOrg'
]),
treeSetting() {
this.$log.debug('Settings: ', this.setting)
return _.merge(this.defaultSetting, this.setting)
@@ -79,8 +90,8 @@ export default {
},
methods: {
refreshTree: function() {
const refreshIconRef = $('#tree-refresh')
refreshIconRef.click()
// const refreshIconRef = $('#tree-refresh')
// refreshIconRef.click()
},
editTreeNode: function() {
this.hideRMenu()
@@ -100,20 +111,26 @@ export default {
// Request URL: http://localhost/api/v1/assets/assets/?node_id=d8212328-538d-41a6-bcfd-1e8cc7e3aed4&show_current_asset=null&draw=2&limit=15&offset=0&_=1587022917769
onSelected: function(event, treeNode) {
const show_current_asset = this.$cookie.get('show_current_asset') || '0'
if (!this.setting.url) {
return
}
let combinator = '?'
if (this.setting.url.indexOf('?') !== -1) {
combinator = '&'
}
let url = ''
const query = Object.assign({}, this.$route.query)
const objectId = treeNode.meta.data.id
if (treeNode.meta.type === 'node') {
this.currentNode = treeNode
this.currentNodeId = treeNode.meta.data.id
query['node'] = this.currentNodeId
url = `${this.setting.url}${combinator}node_id=${treeNode.meta.data.id}&show_current_asset=${show_current_asset}`
query['asset'] = ''
url = `${this.setting.url}${combinator}node_id=${objectId}&show_current_asset=${show_current_asset}`
} else if (treeNode.meta.type === 'asset') {
query['asset'] = treeNode.meta.data.id
url = `${this.setting.url}${combinator}asset_id=${treeNode.meta.data.id}&show_current_asset=${show_current_asset}`
query['node'] = ''
url = `${this.setting.url}${combinator}asset_id=${objectId}&show_current_asset=${show_current_asset}`
}
this.$router.push({ query })
this.$emit('urlChange', url)
@@ -143,11 +160,12 @@ export default {
url,
{ 'value': treeNode.name }
).then(res => {
let assetsAmount = treeNode.meta.data.assetsAmount
let assetsAmount = treeNode.meta.data['assetsAmount']
if (!assetsAmount) {
assetsAmount = 0
}
treeNode.name = treeNode.name + ' (' + assetsAmount + ')'
treeNode.meta.data = res
this.zTree.updateNode(treeNode)
this.$message.success(this.$t('common.updateSuccessMsg'))
}).finally(() => { this.refreshTree() })
@@ -162,7 +180,7 @@ export default {
const rMenuID = this.$refs.dataztree.$refs.ztree.iRMenuID
const zTreeID = this.$refs.dataztree.$refs.ztree.iZTreeID
const offset = $(`#${zTreeID}`).offset()
const scrollTop = document.querySelector('.treebox').scrollTop
const scrollTop = document.querySelector('.treebox')?.scrollTop
x -= offset.left
// Tmp
y -= (offset.top + scrollTop) / 3 - 10
@@ -182,7 +200,7 @@ export default {
return
}
// 屏蔽收藏资产
if (treeNode.id === '-12') {
if (treeNode?.id === '-12') {
return
}
if (!treeNode && event.target.tagName.toLowerCase() !== 'button' && $(event.target).parents('a').length === 0) {
@@ -219,7 +237,7 @@ export default {
this.$message.success(this.$t('common.updateSuccessMsg'))
}).catch(error => {
this.$message.error(this.$t('common.updateErrorMsg' + ' ' + error))
}).finally(() => this.refreshTree())
}).finally()
},
createTreeNode: function() {
this.hideRMenu()
@@ -235,13 +253,14 @@ export default {
id: data['key'],
name: data['value'],
pId: parentNode.id,
isParent: true,
meta: {
data: data
data: data,
type: 'node'
}
}
newNode.checked = this.zTree.getSelectedNodes()[0].checked
this.zTree.addNodes(parentNode, 0, newNode)
// vm.$refs.dataztree.refresh()
const node = this.zTree.getNodeByParam('id', newNode.id, parentNode)
this.currentNodeId = node.meta.data.id || newNode.id
this.zTree.editName(node)

View File

@@ -238,7 +238,7 @@ export default {
updateContabValue(name, value, from) {
this.contabValueObj[name] = value
if (from && from !== name) {
console.log(`来自组件 ${from} 改变了 ${name} ${value}`)
// debug(`来自组件 ${from} 改变了 ${name} ${value}`)
this.changeRadio(name, value)
}
},

View File

@@ -53,7 +53,7 @@ export default {
}
} catch (error) {
this.isShow = false
console.log(error, 'error')
// debug(error, 'error')
}
}
}

View File

@@ -1,5 +1,5 @@
<template>
<div :class="grouped ? 'el-button-group' : 'el-button-ungroup'">
<div :class="grouped ? 'el-button-group' : 'el-button-ungroup'" class="layout">
<template v-for="action in iActions">
<el-dropdown
v-if="action.dropdown"
@@ -13,9 +13,14 @@
<el-button :size="size" v-bind="cleanButtonAction(action)">
{{ action.title }}<i class="el-icon-arrow-down el-icon--right" />
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-menu slot="dropdown" style="overflow: auto;max-height: 60vh">
<template v-for="option in action.dropdown">
<div v-if="option.group" :key="'group:'+option.name" class="dropdown-menu-title">
<div
v-if="option.group"
:key="'group:'+option.name"
class="dropdown-menu-title"
style="width:130px"
>
{{ option.group }}
</div>
<el-dropdown-item
@@ -149,6 +154,11 @@ export default {
</script>
<style scoped>
.layout {
display: flex;
justify-content: center;
}
.dropdown-menu-title {
text-align: left;
font-size: 12px;
@@ -165,7 +175,7 @@ export default {
}
.el-button-ungroup .action-item {
margin-left: 4px
margin-left: 4px;
}
.el-button-ungroup .action-item:first-child {

View File

@@ -146,7 +146,7 @@ export default {
* - el-form 的 resetFields 不会触发 input & change 事件,无法监听
* - bug1: https://github.com/FEMessage/el-data-table/issues/176#issuecomment-587280825
* - bug2:
* 0. 建议先在监听器 watch.value 里 console.log(v.name, oldV.name)
* 0. 建议先在监听器 watch.value 里 // debug(v.name, oldV.name)
* 1. 打开 basic 示例
* 2. 在 label 为 name 的输入框里输入 1此时 log'1' ''
* 3. 点击 reset 按钮,此时 log 两条数据: '1' '1', '' ''

View File

@@ -1,9 +1,10 @@
<template>
<ElFormRender
ref="form"
:class="mobile? 'mobile' : 'desktop'"
:content="fields"
:form="basicForm"
label-position="right"
:label-position="labelPosition"
label-width="20%"
v-bind="$attrs"
v-on="$listeners"
@@ -13,7 +14,7 @@
<slot v-for="item in fields" :slot="`$id:${item.id}`" :name="`$id:${item.id}`" />
<el-form-item v-if="hasButtons" class="form-buttons">
<el-button v-for="button in moreButtons" :key="button.title" size="small" v-bind="button" @click="handleClick(button)">{{ button.title }}</el-button>
<el-button v-for="button in moreButtons" :key="button.title" size="small" v-bind="button" :loading="button.loading" @click="handleClick(button)">{{ button.title }}</el-button>
<el-button v-if="defaultButton && hasReset" size="small" @click="resetForm('form')">{{ $t('common.Reset') }}</el-button>
<el-button v-if="defaultButton && hasSaveContinue" size="small" @click="submitForm('form', true)">{{ $t('common.SaveAndAddAnother') }}</el-button>
<el-button v-if="defaultButton" size="small" :loading="isSubmitting" type="primary" @click="submitForm('form')">{{ $t('common.Submit') }}</el-button>
@@ -23,6 +24,7 @@
<script>
import ElFormRender from './components/el-form-renderer'
import { scrollToError } from '@/utils'
export default {
components: {
ElFormRender
@@ -67,6 +69,14 @@ export default {
basicForm: this.form
}
},
computed: {
mobile() {
return this.$store.state.app.device === 'mobile'
},
labelPosition() {
return this.mobile ? 'top' : 'right'
}
},
methods: {
// 获取表单数据
submitForm(formName, addContinue) {
@@ -76,6 +86,7 @@ export default {
this.$emit('submit', form.getFormValue(), form, addContinue)
} else {
this.$emit('invalid', valid)
scrollToError(form.$el)
return false
}
})
@@ -86,38 +97,46 @@ export default {
},
handleClick(button) {
const callback = button.callback || function(values, form) {
// console.log('Click ', button.title, ': ', values)
// debug('Click ', button.title, ': ', values)
}
const form = this.$refs['form']
const values = form.getFormValue()
callback(values, form)
callback(values, form, button)
}
}
}
</script>
<style lang="less" scoped>
.el-form ::v-deep .el-form-item {
.el-form ::v-deep .el-form-item {
margin-bottom: 12px;
}
.el-form ::v-deep .el-form-item__content {
.el-form ::v-deep .el-form-item__content {
width: 75%;
}
.el-form ::v-deep .el-form-item__label {
.mobile.el-form ::v-deep .el-form-item__content {
width: 100%;
}
.el-form ::v-deep .el-form-item__label {
padding: 0 30px 0 0;
}
.el-form ::v-deep .el-form-item__error {
.el-form ::v-deep .el-form-item__error {
position: inherit;
}
.el-form ::v-deep .form-group-header {
.el-form ::v-deep .form-group-header {
margin-left: 50px;
}
.el-form ::v-deep .help-block {
.el-form.mobile ::v-deep .form-group-header {
margin-left: 0;
}
.el-form ::v-deep .help-block {
display: block;
margin-top: 5px;
margin-bottom: 10px;
@@ -125,7 +144,10 @@ export default {
font-size: 12px;
line-height: 18px;
}
.el-form ::v-deep .help-block a {
color: #1c84c6;
.el-form ::v-deep .help-block a {
color: var(--color-primary);
}
.form-buttons {
padding-top: 10px;
}
</style>

View File

@@ -14,10 +14,23 @@ export const EmailCheck = {
trigger: ['blur', 'change']
}
export const specialEmojiCheck = {
validator: (rule, value, callback) => {
value = value.trim()
if (/[\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/.test(value)) {
callback(new Error(i18n.t('common.NotSpecialEmoji')))
} else {
callback()
}
},
trigger: ['blur', 'change']
}
export default {
Required,
RequiredChange,
EmailCheck
EmailCheck,
specialEmojiCheck
}
export const JsonRequired = {
@@ -32,3 +45,20 @@ export const JsonRequired = {
}
}
}
export const JsonRequiredUserNameMapped = {
required: true,
trigger: 'change',
validator: (rule, value, callback) => {
try {
JSON.parse(value)
const hasUserName = _.map(JSON.parse(value), (value) => value)
if (!hasUserName.includes('username')) {
callback(new Error(i18n.t('common.requiredHasUserNameMapped')))
}
callback()
} catch (e) {
callback(new Error(i18n.t('common.InvalidJson')))
}
}
}

View File

@@ -1,14 +1,50 @@
<template>
<div>
<ul v-show="loading" class="ztree">
{{ this.$t('common.tree.Loading') }}...
</ul>
<div v-show="!loading" class="treebox">
<ul :id="iZTreeID" class="ztree">
<div
v-if="treeSetting.customTreeHeader"
class="tree-header treebox"
>
<div class="content">
<span class="title">
{{ treeSetting.customTreeHeaderName }}
</span>
<span class="tree-banner-icon-zone">
<a id="searchIcon" class="tree-search special">
<i
class="fa fa-search tree-banner-icon"
@click.stop="treeSearch"
/>
<input
id="searchInput"
v-model="treeSearchValue"
type="text"
autocomplete="off"
class="tree-input"
>
</a>
<i
class="fa fa-refresh tree-banner-icon"
style="margin-right: 2px;"
@click.stop="refresh"
/>
</span>
</div>
<ul v-show="loading" class="ztree">
{{ this.$t('common.tree.Loading') }}...
</ul>
<div v-if="treeSetting.treeUrl===''">
{{ this.$t('common.tree.Empty') }}<a id="tree-refresh"><i class="fa fa-refresh" /></a>
<ul v-show="!loading" :id="iZTreeID" class="ztree" />
<div v-if="treeSetting.treeUrl===''" class="tree-empty">
{{ this.$t('common.tree.Empty') }}
</div>
</div>
<div v-else class="treebox">
<ul v-show="loading" class="ztree">
{{ this.$t('common.tree.Loading') }}...
</ul>
<ul v-show="!loading" :id="iZTreeID" class="ztree" />
<div v-if="treeSetting.treeUrl===''" class="tree-empty">
{{ this.$t('common.tree.Empty') }}
<a id="tree-refresh"><i class="fa fa-refresh" /></a>
</div>
</div>
<div :id="iRMenuID" class="rMenu">
@@ -24,6 +60,7 @@
// eslint-disable-next-line no-unused-vars
import $ from '@/utils/jquery-vendor.js'
import '@ztree/ztree_v3/js/jquery.ztree.all.min.js'
import '@ztree/ztree_v3/js/jquery.ztree.exhide.min.js'
import '@/styles/ztree.css'
import axiosRetry from 'axios-retry'
@@ -45,7 +82,8 @@ export default {
zTree: '',
rMenu: '',
init: false,
loading: false
loading: false,
treeSearchValue: ''
}
},
computed: {
@@ -54,8 +92,9 @@ export default {
}
},
mounted() {
window.refresh = this.refresh
window.treeSearch = this.treeSearch
this.initTree()
// $('.treebox').css('height', window.innerHeight - 60)
},
beforeDestroy() {
$.fn.zTree.destroy(this.iZTreeID)
@@ -82,9 +121,7 @@ export default {
retryDelay: () => { return 5000 }
}
}).then(res => {
if (!res) {
res = []
}
if (!res) res = []
if (res.length === 0) {
res.push({
name: this.$t('common.tree.Empty')
@@ -94,15 +131,13 @@ export default {
if (this.init) {
vm.zTree.destroy()
}
this.zTree = $.fn.zTree.init($(`#${this.iZTreeID}`), this.treeSetting, res)
if (!this.treeSetting.customTreeHeader) {
this.rootNodeAddDom(this.zTree)
}
// 手动上报事件, Tree加载完成
this.$emit('TreeInitFinish', this.zTree)
if (this.treeSetting.showRefresh) {
this.rootNodeAddDom(
this.zTree,
this.treeSetting.callback.refresh
)
}
if (this.treeSetting.showMenu) {
this.rMenu = $(`#${this.iRMenuID}`)
@@ -115,43 +150,196 @@ export default {
vm.init = true
})
},
rootNodeAddDom: function(ztree, callback) {
const vm = this
const refreshIcon = "<a id='tree-refresh'><i class='fa fa-refresh'></i></a>"
rootNodeAddDom(ztree) {
const { showSearch, showRefresh } = this.treeSetting
const searchIcon = `<a class="tree-search" id="searchIcon">
<i class='fa fa-search tree-banner-icon' onclick="treeSearch()" /></i>
<input type="text" autocomplete="off" id="searchInput" class="tree-input" />
</a>`
const refreshIcon = "<a id='tree-refresh' onclick='refresh()'><i class='fa fa-refresh'></i></a>"
const treeActions = `${showSearch ? searchIcon : ''}${showRefresh ? refreshIcon : ''}`
const icons = `<span class="">${treeActions}</span>`
const rootNode = ztree.getNodes()[0]
let $rootNodeRef
if (rootNode) {
$rootNodeRef = $('#' + rootNode.tId + '_a')
$rootNodeRef.after(refreshIcon)
} else {
$rootNodeRef = $('#' + ztree.setting.treeId)
$rootNodeRef.html(refreshIcon)
const $rootNodeRef = $('#' + rootNode.tId + '_a')
$rootNodeRef.after(icons)
}
const refreshIconRef = $('#tree-refresh')
refreshIconRef.bind('click', function() {
const result = callback()
if (result && result.then) {
result.finally(() => {
vm.initTree()
})
} else {
vm.initTree()
}
})
},
refresh: function() {
const refreshIconRef = $('#tree-refresh')
refreshIconRef.click()
refresh() {
this.treeSearchValue = ''
const result = this.treeSetting?.callback?.refresh()
if (result && result.then) {
result.finally(() => {
this.initTree()
})
} else {
this.initTree()
}
},
treeSearch() {
const searchIcon = document.getElementById(`searchIcon`)
const searchInput = document.getElementById(`searchInput`)
searchIcon.classList.toggle('active')
searchInput.focus()
searchInput.onclick = (e) => {
e.stopPropagation()
}
searchInput.onblur = (e) => {
e.stopPropagation()
if (!(e.target.value)) {
searchIcon.classList.toggle('active')
}
}
searchInput.oninput = _.debounce((e) => {
e.stopPropagation()
const value = e.target.value || ''
if (this.treeSetting.async.enable) {
this.filterAssetsServer(value)
} else {
this.filterTree(value)
}
}, 600)
},
getCheckedNodes: function() {
return this.zTree.getCheckedNodes(true)
},
recurseParent(node) {
const parentNode = node.getParentNode()
if (parentNode && parentNode.pId) {
return [parentNode, ...this.recurseParent(parentNode)]
} else if (parentNode) {
return [parentNode]
} else {
return []
}
},
recurseChildren(node) {
if (!node.isParent) {
return []
}
const children = node.children
if (!children) {
return []
}
let allChildren = []
children.forEach((n) => {
allChildren = [...children, ...this.recurseChildren(n)]
})
return allChildren
},
groupBy(array, filter) {
const groups = {}
array.forEach(function(o) {
const group = JSON.stringify(filter(o))
groups[group] = groups[group] || []
groups[group].push(o)
})
return Object.keys(groups).map(function(group) {
return groups[group]
})
},
filterTree(keyword, tree = this.zTree) {
if (!this.zTree) return
const searchNode = tree.getNodesByFilter((node) => node.id === 'search')
if (searchNode) tree.removeNode(searchNode[0])
const nodes = tree.transformToArray(tree.getNodes())
if (!keyword) {
tree.showNodes(nodes)
return
}
if (!keyword) {
if (tree.hiddenNodes) {
tree.showNodes(tree.hiddenNodes)
tree.hiddenNodes = null
}
if (tree.expandNodes) {
tree.expandNodes.forEach((node) => {
if (node.id !== nodes[0].id) {
tree.expandNode(node, false)
}
})
tree.expandNodes = null
}
return null
}
let shouldShow = []
const matchedNodes = tree.getNodesByFilter((node) => {
return node.name.toLowerCase().indexOf(keyword.toLowerCase()) > -1
})
if (matchedNodes.length < 1) {
let name = this.$t('common.Search')
const assetsAmount = matchedNodes.length
name = `${name} (${assetsAmount})`
const newNode = { id: 'search', name: name, isParent: false, open: false }
tree.addNodes(null, newNode)
}
matchedNodes.forEach((node) => {
const parents = this.recurseParent(node)
const children = this.recurseChildren(node)
shouldShow = [...shouldShow, ...parents, ...children, node]
})
tree.hiddenNodes = nodes
tree.expandNodes = shouldShow
tree.hideNodes(nodes)
tree.showNodes(shouldShow)
for (const node of shouldShow) {
if (node.isParent) {
tree.expandNode(node, true)
}
}
},
filterAssetsServer(keyword) {
if (!this.zTree) return
let searchNode = this.zTree.getNodesByFilter((node) => node.id === 'search')
if (searchNode) {
this.zTree.removeChildNodes(searchNode[0])
this.zTree.removeNode(searchNode[0])
}
const treeNodes = this.zTree.getNodes()
if (!keyword) {
if (treeNodes.length !== 0) {
this.zTree.showNodes(treeNodes)
}
return
}
if (treeNodes.length !== 0) {
this.zTree.hideNodes(treeNodes)
}
let treeUrl = this.treeSetting.treeUrl
const filterField = treeUrl.includes('?') ? `&search=${keyword}` : `?search=${keyword}`
if (treeUrl.indexOf('assets/nodes/children/tree') > -1) {
treeUrl = treeUrl + '&all=all'
}
const searchUrl = `${treeUrl}${filterField}`
this.$axios.get(searchUrl).then(nodes => {
let name = this.$t('common.Search')
const assetsAmount = nodes.length
name = `${name} (${assetsAmount})`
const newNode = { id: 'search', name: name, isParent: true, open: true, zAsync: true }
searchNode = this.zTree.addNodes(null, newNode)[0]
searchNode.zAsync = true
const nodesGroupByOrg = this.groupBy(nodes, (node) => {
return node.meta.data.org_name
})
for (const item of nodesGroupByOrg) {
this.zTree.addNodes(searchNode, item)
}
searchNode.open = true
})
return
}
}
}
</script>
<style lang='less' scoped>
<style lang='scss' scoped>
div.rMenu {
position: absolute;
visibility: hidden;
@@ -191,7 +379,7 @@ export default {
top: 100%;
z-index: 1000;
}
.ztree ::v-deep .fa-refresh {
.ztree ::v-deep .fa {
font: normal normal normal 14px/1 FontAwesome !important;
}
.dropdown a:hover {
@@ -218,4 +406,106 @@ export default {
height: 80vh;
overflow: auto;
}
::v-deep #tree-refresh {
margin-left: 3px;
}
::v-deep .tree-banner-icon-zone {
position: absolute;
right: 7px;
height: 30px;
overflow: hidden;
.fa {
color: #838385!important;;
&:hover {
color: #606266!important;;
}
}
}
::v-deep .tree-search {
position: relative;
top: -2px;
width: 20px;
height: 20px;
display: inline-block;
border-radius: 12px;
vertical-align: sub;
transition: .25s;
overflow: hidden;
.fa {
width: 13px!important;
}
.fa-search {
padding-top: 1px;
}
}
::v-deep .tree-search .tree-banner-icon {
position: absolute;
top: 1px;
left: 6px;
width: 6px;
height: 6px;
border-radius: 12px;
padding: 10px 6px;
overflow: hidden;
background-color: transparent!important;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
::v-deep .tree-search.active {
width: 160px;
background-color: #ffffff!important;
}
::v-deep .tree-search.active:hover {
border-radius: 12px;
}
::v-deep .tree-search input {
position: relative;
left: 20px;
width: 133px;
height: 100%;
background-color: #ffffff!important;
color: #606266;
display: flex;
justify-content: center;
align-items: center;
border: none;
outline: none;
}
.tree-header {
position: relative;
.title {
font-weight: 500;
}
.content {
height: 30px;
line-height: 30px;
border-bottom: 1px solid #e0e0e0;
border-radius: 3px;
padding: 0 5px;
box-sizing: border-box;
overflow: hidden;
cursor: pointer;
background-color: #D7D8DC;
.rotate {
transition: all .1.8s;
transform: rotate(-90deg);
}
.fa-caret-down {
font-size: 16px;
}
.special {
top: 1px!important;
}
}
}
.tree-empty {
margin-left: 4px;
}
</style>

View File

@@ -72,7 +72,7 @@ export default {
},
methods: {
defaultCallback: function(action) {
// console.log(action)
// debug(action)
}
}
}

View File

@@ -2,8 +2,11 @@
<el-dialog
:title="title"
:top="top"
:width="iWidth"
class="dialog"
v-bind="$attrs"
:append-to-body="false"
:modal-append-to-body="false"
v-on="$listeners"
>
<slot />
@@ -38,6 +41,10 @@ export default {
type: String,
default: '3vh'
},
width: {
type: String,
default: '60%'
},
showConfirm: {
type: Boolean,
default: true
@@ -57,6 +64,11 @@ export default {
return {
}
},
computed: {
iWidth() {
return this.$store.getters.isMobile ? '80%' : this.width
}
},
methods: {
onCancel() {
this.$emit('cancel')

View File

@@ -91,18 +91,22 @@ export default {
}
</script>
<style lang='less' scoped>
<style lang='scss' scoped>
.datepicker{
width: 233px;
&>>> .el-range__icon {
margin-top: 2px;
margin-right: 3px;
}
&>>> .el-range-input {
width: 49%;
}
}
.el-input__inner{
border: 1px solid #dcdee2;
border-radius: 3px;
height: 36px;
height: 32x;
}
/*.el-date-editor ::v-deep .el-input__icon{*/
/* line-height: 28px;*/
/*}*/
.el-date-editor ::v-deep .el-range-separator{
line-height: 28px;
}

View File

@@ -52,6 +52,7 @@ export default {
</script>
<style lang="scss" scoped>
@import "~@/styles/variables.scss";
.json-editor {
&>>> .jsoneditor {
border: 1px solid #e5e6e7;
@@ -66,8 +67,8 @@ export default {
display: none;
}
&>>> .jsoneditor-menu {
background: #1ab394;
border-bottom: 1px solid #1ab394;
background: var(--color-primary);
border-bottom: 1px solid var(--color-primary);
}
}
</style>

View File

@@ -1,5 +1,5 @@
<template>
<el-link @click="onClick">
<el-link :disabled="disabled" @click="onClick">
{{ title }}
</el-link>
</template>
@@ -15,6 +15,10 @@ export default {
title: {
type: String,
default: ''
},
disabled: {
type: Boolean,
default: false
}
},
methods: {

View File

@@ -1,5 +1,5 @@
<template>
<password
<Password
:value="value"
v-bind="iAttrs"
class="el-input password-input"
@@ -32,7 +32,8 @@ export default {
const defaultAttrs = {
secureLength: 7,
defaultClass: 'el-input__inner',
toggle: true
toggle: true,
showStrengthMeter: false
}
return Object.assign(defaultAttrs, this.attrs)
}
@@ -46,17 +47,16 @@ export default {
</script>
<style lang="scss" scoped>
@import "~@/styles/element-variables.scss";
.password-input >>> .Password__badge--error {
background-color: $--color-danger;
background-color: var(--color-danger);
}
.password-input >>> .Password__strength-meter--fill[data-score="4"] {
background: $--color-primary;
background: var(--color-success);
width: 100%;
}
.password-input >>> .Password__badge--success {
background: $--color-primary;
background: var(--color-success);
}
.password-input >>> .Password__strength-meter {

View File

@@ -12,6 +12,7 @@
filterable
popper-append-to-body
class="select2"
:disabled="selectDisabled"
v-bind="$attrs"
@change="onChange"
@visible-change="onVisibleChange"
@@ -85,9 +86,14 @@ export default {
disabledValues: {
type: Array,
default: () => []
},
disabled: {
type: Boolean,
default: false
}
},
data() {
const vm = this
const defaultPageSize = 10
const defaultParams = {
search: '',
@@ -95,7 +101,20 @@ export default {
hasMore: true,
pageSize: defaultPageSize
}
// 设置axios全局报错提示不显示
const validateStatus = (status) => {
if (status === 403) {
setTimeout(() => {
vm.initialized = true
vm.selectDisabled = true
}, 200)
return 200
}
return status
}
return {
validateStatus,
selectDisabled: this.disabled,
loading: false,
initialized: false,
defaultParams: _.cloneDeep(defaultParams),
@@ -143,10 +162,19 @@ export default {
}
const transformOption = this.ajax.transformOption || defaultTransformOption
const defaultProcessResults = (data) => {
let results = data.results
let results = []
let more = false
let total = 0
if (Array.isArray(data)) {
results = data
total = data.length
} else if (typeof data === 'object') {
results = data?.results || []
more = !!data.next
total = data.count
}
results = results.map(transformOption)
const more = !!data.next
const total = data.count
results = results.filter(Boolean)
return { results: results, pagination: more, total: total }
}
const defaultAjax = {
@@ -154,7 +182,8 @@ export default {
pageSize: defaultPageSize,
makeParams: defaultMakeParams,
transformOption: defaultTransformOption,
processResults: defaultProcessResults
processResults: defaultProcessResults,
validateStatus: this.validateStatus
}
return Object.assign(defaultAjax, this.ajax, this.url ? { url: this.url } : {})
}
@@ -222,9 +251,13 @@ export default {
this.getOptions()
},
async getInitialOptions() {
const { url, processResults, validateStatus } = this.iAjax
const params = this.safeMakeParams(this.params)
let data = await this.$axios.get(this.iAjax.url, { params: params })
data = this.iAjax.processResults.bind(this)(data)
let data = await this.$axios.get(url, {
params,
validateStatus
})
data = processResults.bind(this)(data)
data.results.forEach((v) => {
this.initialOptions.push(v)
if (this.optionsValues.indexOf(v.value) === -1) {
@@ -242,9 +275,13 @@ export default {
}
},
async getOptions() {
const { url, processResults, validateStatus } = this.iAjax
const params = this.safeMakeParams(this.params)
const resp = await this.$axios.get(this.iAjax.url, { params: params })
const data = this.iAjax.processResults.bind(this)(resp)
const resp = await this.$axios.get(url, {
params,
validateStatus
})
const data = processResults.bind(this)(resp)
if (!data.pagination) {
this.params.hasMore = false
}

View File

@@ -1,8 +1,8 @@
<template>
<el-switch
v-model="iValue"
:active-color="activeColor"
inactive-color="#dcdfe6"
:class="type"
v-bind="$attrs"
v-on="$listeners"
/>
@@ -26,21 +26,6 @@ export default {
}
},
computed: {
activeColor() {
// $--color-primary: #1ab394;
// $--color-success: #1c84c6;
// $--color-info: #23c6c8;
// $--color-warning: #f8ac59;
// $--color-danger: #ed5565;
switch (this.type) {
case 'primary':
return '#1ab394'
case 'danger':
return '#ed5565'
default:
return '#1ab394'
}
},
iValue: {
set: function(newValue) {
this.$emit('input', newValue)

View File

@@ -0,0 +1,26 @@
<template>
<span>
{{ text }}
</span>
</template>
<script>
export default {
name: 'Text',
props: {
text: {
type: String,
default: ''
}
},
methods: {
onClick() {
window.open(this.href)
}
}
}
</script>
<style scoped>
</style>

View File

@@ -1,6 +1,10 @@
<template>
<div>
<input type="file" @change="Onchange">
<input ref="upLoadFile" type="file" style="display: none" @change="Onchange">
<el-button size="mini" @click.native.stop="onUpLoad">
{{ this.$t('common.SelectFile') }}
</el-button>
<span>{{ fileName }}</span>
<div v-if="tip !== ''">{{ tip }}</div>
<input v-model="value" type="text" hidden v-on="$listeners">
<div>
@@ -23,6 +27,7 @@ export default {
},
data() {
return {
fileName: '',
initial: this.value,
preview: this.value
}
@@ -34,16 +39,21 @@ export default {
}
},
methods: {
onUpLoad() {
this.$refs.upLoadFile.click()
},
onInput(val) {
this.$emit('input', val)
},
Onchange(e) {
if (e.target.files[0] === undefined) {
const upLoadFile = e.target.files[0]
if (upLoadFile === undefined) {
this.$emit('input', this.initial)
return
}
this.$emit('fileChange', e.target.files[0])
this.$emit('input', this.getObjectURL(e.target.files[0]))
this.fileName = upLoadFile?.name || ''
this.$emit('fileChange', upLoadFile)
this.$emit('input', this.getObjectURL(upLoadFile))
},
getObjectURL(file) {
let url = null

View File

@@ -1,6 +1,16 @@
<template>
<div class="upload-key">
<input type="file" @change="onChange">
<input ref="upLoadFile" type="file" style="display: none" @change="onChange">
<el-button v-if="!fingerprint" size="mini" @click.native.stop="onUpLoad">
{{ this.$t('common.SelectFile') }}
</el-button>
<span v-else>
<el-button type="text" icon="el-icon-edit" @click.native.stop="onUpLoad">
{{ this.$t('common.Update') }}
</el-button>
<span v-if="!fileName" class="fingerprint">{{ fingerprint }}</span>
</span>
<span>{{ fileName }}</span>
<div v-if="tip !== ''">{{ tip }}</div>
</div>
</template>
@@ -8,10 +18,6 @@
<script>
export default {
props: {
// value: {
// type: String,
// default: () => ''
// },
tip: {
type: String,
default: () => ''
@@ -19,24 +25,38 @@ export default {
toFormat: {
type: String,
default: () => 'string'
},
fingerprint: {
type: String,
default: ''
}
},
data() {
return {
fileName: ''
}
},
methods: {
onUpLoad() {
this.$refs.upLoadFile.click()
},
onChange(e) {
if (e.target.files.length === 0) {
const upLoadFile = e.target.files
if (upLoadFile.length === 0) {
return
}
const vm = this
this.fileName = upLoadFile[0].name || ''
const reader = new FileReader()
reader.onload = function() {
let result = this.result
if (vm.toFormat === 'object') {
if (vm.toFormat === 'object' && vm.fileName.endsWith('.json')) {
result = JSON.parse(result)
}
vm.$emit('input', result)
}
reader.readAsText(
e.target.files[0]
upLoadFile[0]
)
}
}
@@ -44,4 +64,7 @@ export default {
</script>
<style scoped>
.fingerprint {
font-size: 12px
}
</style>

View File

@@ -32,16 +32,16 @@ export default {
return callback()
}
const patterns = []
if (passwordRule.SECURITY_PASSWORD_UPPER_CASE) {
if (passwordRule['SECURITY_PASSWORD_UPPER_CASE']) {
patterns.push([/[A-Z]/, i18n.t('common.password.UPPER_CASE_REQUIRED')])
}
if (passwordRule.SECURITY_PASSWORD_LOWER_CASE) {
if (passwordRule['SECURITY_PASSWORD_LOWER_CASE']) {
patterns.push([/[a-z]/, i18n.t('common.password.LOWER_CASE_REQUIRED')])
}
if (passwordRule.SECURITY_PASSWORD_NUMBER) {
if (passwordRule['SECURITY_PASSWORD_NUMBER']) {
patterns.push([/\d/, i18n.t('common.password.NUMBER_REQUIRED')])
}
if (passwordRule.SECURITY_PASSWORD_SPECIAL_CHAR) {
if (passwordRule['SECURITY_PASSWORD_SPECIAL_CHAR']) {
const pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~@#¥……&*()——|{}【】‘;:”“'。,、?]")
patterns.push([pattern, i18n.t('common.password.SPECIAL_CHAR_REQUIRED')])
}
@@ -50,7 +50,7 @@ export default {
return callback(new Error(msg))
}
}
let secureLength = passwordRule ? passwordRule.SECURITY_PASSWORD_MIN_LENGTH : 7
let secureLength = passwordRule ? passwordRule['SECURITY_PASSWORD_MIN_LENGTH'] : 7
if (userIsOrgAdmin) {
secureLength = passwordRule ? passwordRule.SECURITY_ADMIN_USER_PASSWORD_MIN_LENGTH : 7
}
@@ -66,6 +66,7 @@ export default {
data() {
return {
attrs: {
showStrengthMeter: true
}
}
},

View File

@@ -9,6 +9,7 @@ import UserPassword from './UserPassword'
import WeekCronSelect from './WeekCronSelect'
import UpdateToken from './UpdateToken'
import JsonEditor from './JsonEditor'
import Text from './Text'
export default {
DatetimeRangePicker,
@@ -21,7 +22,8 @@ export default {
UserPassword,
WeekCronSelect,
UpdateToken,
JsonEditor
JsonEditor,
Text
}
export {
@@ -35,5 +37,6 @@ export {
UserPassword,
WeekCronSelect,
UpdateToken,
JsonEditor
JsonEditor,
Text
}

View File

@@ -1,8 +1,6 @@
<template>
<div style="">
<el-button type="primary" class="hamburger" size="mini" @click="toggleClick">
<i class="fa fa-bars" style="color: white; margin-right: 0" />
</el-button>
<div style="padding: 0 15px;" @click="toggleClick">
<svg-icon icon-class="hamburger" class="hamburger" :class="{'is-active':isActive}" />
</div>
</template>
@@ -23,13 +21,15 @@ export default {
}
</script>
<style scoped>
<style lang="scss" scoped>
@import "~@/styles/variables.scss";
.hamburger {
padding: 7px 12px;
display: inline-block;
vertical-align: middle;
font-size: 20px;
color: $menuText;
}
.hamburger.is-active {
transform: rotate(180deg);
}
</style>

View File

@@ -1,9 +1,10 @@
<template>
<div>
<MFAVerifyDialog
<UserConfirmDialog
v-if="mfaDialogShow"
@MFAVerifyDone="showExportDialog"
@MFAVerifyCancel="handleExportCancel"
:url="url"
@UserConfirmDone="showExportDialog"
@UserConfirmCancel="handleExportCancel"
/>
<Dialog
v-if="exportDialogShow"
@@ -31,7 +32,7 @@
<script>
import Dialog from '@/components/Dialog'
import MFAVerifyDialog from '@/components/MFAVerifyDialog'
import UserConfirmDialog from '@/components/UserConfirmDialog'
import { createSourceIdCache } from '@/api/common'
import * as queryUtil from '@/components/DataTable/compenents/el-data-table/utils/query'
@@ -39,7 +40,7 @@ export default {
name: 'ExportDialog',
components: {
Dialog,
MFAVerifyDialog
UserConfirmDialog
},
props: {
selectedRows: {
@@ -92,11 +93,11 @@ export default {
return this.selectedRows.length > 0
},
tableQuery() {
const listTableRef = this.$parent.$parent.$parent.$parent
const listTableRef = this.$parent?.$parent?.$parent?.$parent
if (!listTableRef) {
return {}
}
const query = listTableRef.dataTable.getQuery()
const query = listTableRef?.dataTable?.getQuery() || {}
delete query['limit']
delete query['offset']
delete query['date_from']
@@ -199,8 +200,11 @@ export default {
this.mfaDialogShow = false
},
handleExportCancel() {
this.exportDialogShow = false
this.mfaDialogShow = false
const vm = this
setTimeout(() => {
vm.exportDialogShow = false
vm.mfaDialogShow = false
}, 100)
}
}
}

View File

@@ -13,8 +13,12 @@
>
<el-form v-if="!showTable" label-position="left" style="padding-left: 50px">
<el-form-item :label="$t('common.Import' )" :label-width="'100px'">
<el-radio v-model="importOption" class="export-item" label="create">{{ this.$t('common.Create') }}</el-radio>
<el-radio v-model="importOption" class="export-item" label="update">{{ this.$t('common.Update') }}</el-radio>
<el-radio v-if="canImportCreate" v-model="importOption" class="export-item" label="create">
{{ this.$t('common.Create') }}
</el-radio>
<el-radio v-if="canImportUpdate" v-model="importOption" class="export-item" label="update">
{{ this.$t('common.Update') }}
</el-radio>
<div style="line-height: 1.5">
<span class="el-upload__tip">
{{ downloadTemplateTitle }}
@@ -77,12 +81,20 @@ export default {
url: {
type: String,
default: () => ''
},
canImportCreate: {
type: [Boolean, Function],
default: false
},
canImportUpdate: {
type: Boolean,
default: false
}
},
data() {
return {
showImportDialog: false,
importOption: 'create',
importOption: this.canImportCreate && this.canImportUpdate ? 'create' : this.canImportCreate ? 'create' : 'update',
errorMsg: '',
loadStatus: false,
importTypeOption: 'csv',
@@ -193,8 +205,9 @@ export default {
}
return this.url.indexOf('?') === -1 ? `${this.url}?${query}` : `${this.url}&${query}`
},
// eslint-disable-next-line handle-callback-err
catchError(error) {
console.log(error)
// debug(error)
},
onSuccess(msg) {
this.errorMsg = ''
@@ -220,7 +233,7 @@ export default {
</script>
<style lang='scss' scoped>
@import "~@/styles/element-variables.scss";
@import "~@/styles/variables.scss";
.error-msg {
color: $--color-danger;
}

View File

@@ -1,7 +1,7 @@
<template>
<div>
<el-row>
<el-col :span="8">
<el-col :md="8" :sm="24">
<div class="tableFilter">
<el-radio-group v-model="importStatusFilter" size="small">
<el-radio-button label="all">{{ $t('common.Total') }}</el-radio-button>
@@ -11,7 +11,7 @@
</el-radio-group>
</div>
</el-col>
<el-col :span="8" style="text-align: center">
<el-col :md="8" :sm="24" style="text-align: center">
<span class="summary-item summary-total"> {{ $t('common.Total') }}: {{ totalCount }}</span>
<span class="summary-item summary-success"> {{ $t('common.Success') }}: {{ successCount }}</span>
<span class="summary-item summary-failed"> {{ $t('common.Failed') }}: {{ failedCount }}</span>
@@ -202,11 +202,14 @@ export default {
}]
for (const item of tableTitles) {
const dataItemLens = tableData.map(d => {
const prop = item[1]
const itemColData = d[prop]
if (!d) {
return 0
}
const prop = item[1]
const itemColData = d[prop]
if (typeof itemColData === 'boolean') {
return 5 // boolean is 5 characters long 并且 boolean.length 是 undefined
}
if (typeof itemColData !== 'number' && (!itemColData || !itemColData.length)) {
return 0
}
@@ -405,7 +408,7 @@ export default {
</script>
<style lang="scss" scoped>
@import "~@/styles/element-variables.scss";
@import "~@/styles/variables.scss";
.summary-item {
padding: 0 10px
}

View File

@@ -27,7 +27,7 @@ export default {
createRoute: {
type: [String, Object, Function],
default: function() {
return this.$route.name.replace('List', 'Create')
return this.$route.name?.replace('List', 'Create')
}
},
createInNewPage: {
@@ -35,7 +35,9 @@ export default {
default: false
},
hasBulkDelete: defaultTrue,
canBulkDelete: defaultTrue,
hasBulkUpdate: defaultFalse,
canBulkUpdate: defaultTrue,
hasMoreActions: defaultTrue,
tableUrl: {
type: String,
@@ -98,6 +100,7 @@ export default {
const createCreateAction = Object.assign(defaultMoreCreate, this.moreCreates)
defaultActions.push(createCreateAction)
}
const vm = this
return {
defaultActions: defaultActions,
defaultMoreActions: [
@@ -107,7 +110,7 @@ export default {
has: this.hasBulkDelete,
can({ selectedRows }) {
// vm.$log.debug('Delete select rows length: ', selectedRows.length)
return selectedRows.length > 0
return selectedRows.length > 0 && vm.canBulkDelete
},
callback: this.defaultBulkDeleteCallback
},
@@ -115,7 +118,9 @@ export default {
title: this.$t('common.updateSelected'),
name: 'actionUpdateSelected',
has: this.hasBulkUpdate,
can: ({ selectedRows }) => selectedRows.length > 0,
can: ({ selectedRows }) => {
return selectedRows.length > 0 && vm.canBulkUpdate
},
callback: this.handleBulkUpdate
}
]
@@ -136,7 +141,7 @@ export default {
if (!this.hasMoreActions) {
return
}
let dropdown = [...this.defaultMoreActions, ...this.extraMoreActions]
let dropdown = _.uniqBy([...this.extraMoreActions, ...this.defaultMoreActions], 'name')
dropdown = cleanActions(dropdown, true, {
selectedRows: this.selectedRows,
reloadTable: this.reloadTable

View File

@@ -76,6 +76,14 @@ export default {
extraRightSideActions: {
type: Array,
default: () => []
},
canCreate: {
type: [Boolean, Function],
default: false
},
canBulkUpdate: {
type: Boolean,
default: false
}
},
data() {
@@ -102,7 +110,11 @@ export default {
return this.selectedRows.length > 0
},
iImportOptions() {
return assignIfNot(this.importOptions, { url: this.tableUrl })
return assignIfNot(this.importOptions, {
url: this.tableUrl,
canImportCreate: this.canCreate,
canImportUpdate: this.canBulkUpdate
})
},
iExportOptions() {
const options = assignIfNot(this.exportOptions, { url: this.tableUrl })
@@ -164,8 +176,4 @@ export default {
justify-content:center;
}
.export-item {
}
</style>

View File

@@ -1,17 +1,11 @@
<template>
<div class="table-header">
<div class="table-header clearfix" :class="device">
<slot name="header">
<div class="table-header-left-side">
<LeftSide v-if="hasLeftActions" :selected-rows="selectedRows" :table-url="tableUrl" v-bind="$attrs" v-on="$listeners" />
<span v-else style="display: flex;flex-direction: row">
<AutoDataSearch v-if="hasSearch" class="right-side-item action-search" v-bind="iSearchTableConfig" @tagSearch="handleTagSearch" />
<DatetimeRangePicker v-if="hasDatePicker" v-bind="datePicker" class="datepicker" @dateChange="handleDateChange" />
</span>
</div>
<div class="table-action-right-side">
<AutoDataSearch v-if="hasLeftActions && hasSearch" class="right-side-item action-search" v-bind="iSearchTableConfig" @tagSearch="handleTagSearch" />
<DatetimeRangePicker v-if="hasDatePicker && hasLeftActions" v-bind="datePicker" class="datepicker" @dateChange="handleDateChange" />
<RightSide v-if="hasRightActions" :selected-rows="selectedRows" :table-url="tableUrl" v-bind="$attrs" v-on="$listeners" />
<LeftSide v-if="hasLeftActions" class="left-side" :selected-rows="selectedRows" :table-url="tableUrl" v-bind="$attrs" v-on="$listeners" />
<RightSide v-if="hasRightActions" class="right-side" :selected-rows="selectedRows" :table-url="tableUrl" v-bind="$attrs" v-on="$listeners" />
<div class="search" :class="searchClass">
<AutoDataSearch v-if="hasSearch" class="right-side-item action-search" v-bind="iSearchTableConfig" @tagSearch="handleTagSearch" />
<DatetimeRangePicker v-if="hasDatePicker" v-bind="datePicker" class="datepicker" @dateChange="handleDateChange" />
</div>
</slot>
</div>
@@ -77,6 +71,15 @@ export default {
url: this.tableUrl
}
return Object.assign(configDefault, this.searchConfig)
},
device() {
if (this.$store.state.app.device === 'mobile') {
return 'mobile'
}
return ''
},
searchClass() {
return this.hasLeftActions ? 'right' : 'left'
}
},
methods: {
@@ -92,9 +95,9 @@ export default {
<style scoped>
.table-header {
display: flex;
flex-direction: row;
justify-content: space-between;
/*display: flex;*/
/*flex-direction: row;*/
/*justify-content: space-between;*/
}
.right-side-item {
@@ -124,6 +127,10 @@ export default {
color: #888;
}
.action-search >>> .el-cascader {
line-height: 32px !important;
}
.right-side-actions {
display: flex;
padding-left: 10px;
@@ -143,5 +150,43 @@ export default {
.datepicker{
margin-left: 10px;
}
.table-header {
line-height: 32px;
}
.left-side {
float: left;
display: block;
}
.right-side {
float: right;
}
.search {
display: flex;
flex-direction: row;
}
.mobile .search {
display: inherit;
}
.mobile .search .datepicker {
margin-left: 0;
}
.search.left {
float: left;
}
.search.right {
float: right;
}
.mobile .search.right {
float: none;
}
.mobile .search.right .action-search {
width: 100%;
}
.mobile .right-side {
padding-top: 5px;
}
.filter-field.right-side-item.action-search {
height: 34px;
}
</style>

View File

@@ -1,5 +1,5 @@
export function cleanActions(actions, canDefaults, { selectedRows, reloadTable }) {
// console.log('Start clean actions: ', selectedRows.length, reloadTable)
// debug('Start clean actions: ', selectedRows.length, reloadTable)
const cleanedActions = []
const cloneActions = _.cloneDeep(actions)
cloneActions.forEach((action) => {

View File

@@ -6,7 +6,7 @@
:date-pick="handleDateChange"
:selected-rows="selectedRows"
:reload-table="reloadTable"
v-bind="headerActions"
v-bind="iHeaderActions"
/>
<IBox class="table-content">
<AutoDataTable
@@ -25,7 +25,9 @@ import AutoDataTable from '../AutoDataTable'
import IBox from '../IBox'
import TableAction from './TableAction'
import Emitter from '@/mixins/emitter'
import { getResourceFromApiUrl } from '@/utils/jms'
import deepmerge from 'deepmerge'
import { mapGetters } from 'vuex'
export default {
name: 'ListTable',
@@ -55,17 +57,72 @@ export default {
}
},
computed: {
...mapGetters(['currentOrgIsRoot']),
dataTable() {
return this.$refs.dataTable.$refs.dataTable
},
iHeaderActions() {
const actions = {
canCreate: { action: 'add', checkRoot: true },
canBulkDelete: { action: 'delete', checkRoot: false },
canBulkUpdate: { action: 'change', checkRoot: true },
hasImport: { action: 'add|change', checkRoot: true },
hasExport: { action: 'view', checkRoot: false }
}
const defaults = {}
for (const [k, v] of Object.entries(actions)) {
let hasPerm = v.action.split('|').some(i => this.hasActionPerm(i.trim()))
if (v.checkRoot) {
hasPerm = hasPerm && !this.currentOrgIsRoot
}
defaults[k] = hasPerm
}
return Object.assign(defaults, this.headerActions)
},
iTableConfig() {
const config = deepmerge(this.tableConfig, { extraQuery: this.extraQuery })
const config = deepmerge(this.tableConfig, {
extraQuery: this.extraQuery
})
const formatterArgs = {
'columnsMeta.actions.formatterArgs.canUpdate': () => {
return this.hasActionPerm('change') && !this.currentOrgIsRoot
},
'columnsMeta.actions.formatterArgs.canDelete': 'delete',
'columnsMeta.actions.formatterArgs.canClone': () => {
return this.hasActionPerm('add') && !this.currentOrgIsRoot
},
'columnsMeta.name.formatterArgs.can': 'view'
}
for (const [arg, action] of Object.entries(formatterArgs)) {
const notSet = _.get(config, arg) === undefined
const isFunction = typeof action === 'function'
if (notSet) {
const hasActionPerm = isFunction ? action() : this.hasActionPerm(action)
_.set(config, arg, hasActionPerm)
}
}
this.$log.debug('Header actions', this.headerActions)
this.$log.debug('ListTable: iTableConfig change', config)
return config
},
tableUrl() {
return this.iTableConfig.url
return this.tableConfig.url
},
permissions() {
// 获取 permissions获取不到通过 url 解析
const permissions = this.tableConfig.permissions || {}
const { app: apiApp, resource: apiResource } = getResourceFromApiUrl(this.tableUrl)
const app = permissions.app || apiApp
const resource = permissions.resource || apiResource
const actions = ['add', 'change', 'delete', 'view']
const defaultPermissions = actions.reduce((result, action) => {
result[action] = `${app}.${action}_${resource}`
return result
}, {})
const perms = Object.assign(defaultPermissions, permissions)
// this.$log.debug('Permissions: ', perms)
return perms
}
},
watch: {
@@ -97,6 +154,10 @@ export default {
this.$emit('TagFilter', attrs)
this.$refs.dataTable.$refs.dataTable.search(attrs, true)
},
hasActionPerm(action) {
const permRequired = this.permissions[action]
return this.$hasPerm(permRequired)
},
handleDateChange(attrs) {
let dateFrom = ''
let dateTo = ''
@@ -139,6 +200,15 @@ export default {
& >>> .el-table__header thead > tr > th {
background-color: white;
}
&>>> .el-table__row .cell {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
&>>> .el-table__expanded-cell pre {
max-height: 500px;
overflow-y: scroll;
}
}
//修改颜色

View File

@@ -1,77 +0,0 @@
<template>
<Dialog
:title="$t('common.MFAVerify')"
:width="'50'"
:show-confirm="false"
:show-cancel="false"
:visible.sync="visible"
:destroy-on-close="true"
v-bind="$attrs"
v-on="$listeners"
>
<el-row :gutter="20">
<el-col :span="4">
<div style="line-height: 34px;text-align: center">MFA</div>
</el-col>
<el-col :span="14">
<el-input v-model="MFAToken" />
<span class="help-tips help-block">{{ $t('common.MFARequireForSecurity') }}</span>
</el-col>
<el-col :span="4">
<el-button size="mini" type="primary" style="line-height:20px " @click="verifyMFA">
{{ this.$t('common.Confirm') }}
</el-button>
</el-col>
</el-row>
</Dialog>
</template>
<script>
import Dialog from '@/components/Dialog'
export default {
name: 'MFAVerifyDialog',
components: {
Dialog
},
data() {
return {
MFAToken: '',
visible: false
}
},
watch: {
visible(val) {
if (!val) {
this.$emit('MFAVerifyCancel', true)
}
}
},
mounted() {
this.$axios.get('/api/v1/authentication/otp/verify/', { disableFlashErrorMsg: true }).then(() => {
this.$emit('MFAVerifyDone', true)
}).catch(err => {
this.$log.debug('Verify otp code error: ', err)
this.visible = true
})
},
methods: {
verifyMFA() {
if (this.MFAToken.length !== 6) {
return this.$message.error(this.$tc('common.MFAErrorMsg'))
}
this.$axios.post(
`/api/v1/authentication/otp/verify/`, {
code: this.MFAToken
}
).then(res => {
this.$emit('MFAVerifyDone', true)
})
}
}
}
</script>
<style scoped>
</style>

View File

@@ -217,9 +217,17 @@ export default {
async loadHasObjects() {
this.$log.debug('Start loadHasObject: ', this.params)
const params = this.safeMakeParams(this.params)
let data = await this.$axios.get(this.iAjax.url, { params: params })
let data = await this.$axios.get(this.iAjax.url, {
params: params,
validateStatus: (status) => {
if (status === 403) {
return 200
}
return status
}
})
data = this.iAjax.processResults.bind(this)(data)
data.results.forEach((v) => {
data.results && data.results.forEach((v) => {
if (!this.hasObjects.find((item) => item.value === v.value)) {
this.iHasObjects.push(v)
}

View File

@@ -61,10 +61,6 @@ const defaultDeleteCallback = function({ row, col, cellValue, reload }) {
done()
reload()
this.$message.success(this.$t('common.deleteSuccessMsg'))
} catch (error) {
if (!error.response || !error.response.data || !error.response.data.msg) {
this.$message.error(this.$t('common.deleteErrorMsg') + ' ' + error)
}
} finally {
instance.confirmButtonLoading = false
}
@@ -84,15 +80,11 @@ export default {
default: function() {
return {
hasUpdate: true, // can set function(row, value)
canUpdate: () => {
return !this.$store.getters.currentOrgIsRoot
}, // can set function(row, value)
canUpdate: true, // can set function(row, value)
hasDelete: true, // can set function(row, value)
canDelete: true,
hasClone: true,
canClone: () => {
return !this.$store.getters.currentOrgIsRoot
},
canClone: true,
updateRoute: this.$route.name.replace('List', 'Update'),
cloneRoute: this.$route.name.replace('List', 'Create'),
performDelete: defaultPerformDelete,
@@ -153,6 +145,7 @@ export default {
v.fa = this.cleanValue(v, 'fa')
v.order = v.order || 100
v.tip = this.cleanValue(v, 'tip')
v.title = this.cleanValue(v, 'title')
return v
})
actions = actions.filter((v) => v.has)

View File

@@ -17,7 +17,7 @@ export default {
}
// const locale = this.$i18n.locale
// const value = dt.toLocaleString(locale, { hourCycle: 'h23' })
// console.log(this.$i18n.locale)
// debug(this.$i18n.locale)
return {
value: value
}

View File

@@ -1,5 +1,11 @@
<template>
<el-button ref="deleteButton" size="mini" type="danger" :disabled="iDisabled" @click="onDelete(col, row, cellValue, reload)">
<el-button
ref="deleteButton"
size="mini"
type="danger"
:disabled="iDisabled"
@click="onDelete(col, row, cellValue, reload)"
>
<i class="fa fa-minus" />
</el-button>
</template>

View File

@@ -1,9 +1,17 @@
<template>
<el-link class="detail" :type="col.type || 'success'" @click="goDetail">{{ iTitle }}</el-link>
<el-link
class="detail"
:disabled="disabled"
:type="col.type || 'info'"
@click="goDetail"
>
{{ iTitle }}
</el-link>
</template>
<script>
import BaseFormatter from './base'
export default {
name: 'DetailFormatter',
extends: BaseFormatter,
@@ -14,7 +22,8 @@ export default {
return {
route: this.$route.name.replace('List', 'Detail'),
getRoute: null,
routeQuery: {},
routeQuery: null,
can: true,
getTitle({ col, row, cellValue }) {
return cellValue
}
@@ -35,6 +44,13 @@ export default {
row: this.row,
cellValue: this.cellValue
})
},
disabled() {
let can = this.formatterArgs.can
if (typeof can === 'function') {
can = can(this.col)
}
return !can
}
},
methods: {
@@ -42,13 +58,17 @@ export default {
// const defaultRoute = this.$route.name.replace('List', 'Detail')
let route = this.formatterArgs.route
if (this.formatterArgs.getRoute && typeof this.formatterArgs.getRoute === 'function') {
route = this.formatterArgs.getRoute({ row: this.row, col: this.col, cellValue: this.cellValue })
route = this.formatterArgs.getRoute({
row: this.row,
col: this.col,
cellValue: this.cellValue
})
}
if (!route) {
console.error('No route found')
return
}
let detailRoute = {}
let detailRoute = { replace: true }
if (typeof route === 'string') {
detailRoute.name = route
detailRoute.params = { id: this.row.id }

View File

@@ -0,0 +1,82 @@
<template>
<div class="content">
<span>{{ currentValue }}</span>
<span class="right">
<el-tooltip
effect="dark"
placement="top"
:content="this.$t('common.View')"
>
<i class="el-icon-view" @click="onShow()" />
</el-tooltip>
<el-tooltip
effect="dark"
placement="top"
:content="this.$t('common.Copy')"
>
<i class="el-icon-copy-document" @click="onCopy()" />
</el-tooltip>
</span>
</div>
</template>
<script>
import BaseFormatter from './base'
export default {
name: 'ShowKeyCopyFormatter',
extends: BaseFormatter,
proops: {
cellValue: {
type: String,
default: () => ''
}
},
data() {
return {
currentValue: this.switchShowValue()
}
},
methods: {
switchShowValue() {
return '******' + this.cellValue.replace(/[\w-]/g, '')
},
onShow() {
const { currentValue, cellValue, switchShowValue } = this
this.currentValue = currentValue === cellValue ? switchShowValue() : cellValue
},
onCopy: _.throttle(function() {
const inputDom = document.createElement('input')
inputDom.id = 'creatInputDom'
inputDom.value = this.cellValue
document.body.appendChild(inputDom)
inputDom.select()
document?.execCommand('copy')
this.$message({
message: this.$t('common.CopySuccess'),
type: 'success',
duration: 1400
})
document.body.removeChild(inputDom)
}, 1800)
}
}
</script>
<style lang="scss" scoped>
.content {
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
.right {
float: right;
font-size: 15px;
cursor: pointer;
.el-icon-view, .el-icon-copy-document {
&:hover {
color: #1c84c6;
}
}
}
}
</style>

View File

@@ -0,0 +1,61 @@
<template>
<el-row :gutter="10">
<div v-if="isAllEmpty()" style="text-align: center">
{{ this.$t('common.NoContent') }}
</div>
<div v-else>
<el-col :span="rightEmpty() ? 24 : 12">
<div v-if="!leftEmpty()">
<el-tag type="primary" effect="dark" :closable="false" style="width: 100%;">{{ row.leftTitle }}</el-tag>
<div v-for="(value, key, index) in row.left" :key="index">
<el-tag type="primary"><strong>{{ key }}: </strong>{{ value }}</el-tag>
</div>
</div>
</el-col>
<el-col :span="leftEmpty() ? 24 : 12">
<div v-if="!rightEmpty()">
<el-tag type="primary" effect="dark" :closable="false" style="width: 100%;">{{ row.rightTitle }}</el-tag>
<div v-for="(value, key, index) in row.right" :key="index">
<el-tag type="primary"><strong>{{ key }}: </strong>{{ value }}</el-tag>
</div>
</div>
</el-col>
</div>
</el-row>
</template>
<script>
export default {
name: 'TwoTabFormatter',
props: {
row: {
type: Object,
default: () => ({})
}
},
methods: {
isEmpty(content) {
return !content || JSON.stringify(content) === '{}'
},
leftEmpty() {
return this.isEmpty(this.row.left)
},
rightEmpty() {
return this.isEmpty(this.row.right)
},
isAllEmpty() {
return this.leftEmpty() && this.rightEmpty()
}
}
}
</script>
<style scoped>
.el-tag{
width: 100%;
white-space: normal;
height:auto;
}
</style>

View File

@@ -7,10 +7,12 @@ import DeleteActionFormatter from './DeleteActionFormatter'
import DateFormatter from './DateFormatter'
import SystemUserFormatter from './GrantedSystemUsersShowFormatter'
import ShowKeyFormatter from '@/components/TableFormatters/ShowKeyFormatter'
import ShowKeyCopyFormatter from './ShowKeyCopyFormatter'
import DialogDetailFormatter from './DialogDetailFormatter'
import EditableInputFormatter from './EditableInputFormatter'
import StatusFormatter from './StatusFormatter'
import TagsFormatter from './TagsFormatter'
import TwoTabFormatter from './TwoTabFormatter'
export default {
DetailFormatter,
@@ -21,11 +23,13 @@ export default {
DateFormatter,
SystemUserFormatter,
ShowKeyFormatter,
ShowKeyCopyFormatter,
DialogDetailFormatter,
ArrayFormatter,
EditableInputFormatter,
StatusFormatter,
TagsFormatter
TagsFormatter,
TwoTabFormatter
}
export {
@@ -37,9 +41,11 @@ export {
DateFormatter,
SystemUserFormatter,
ShowKeyFormatter,
ShowKeyCopyFormatter,
DialogDetailFormatter,
ArrayFormatter,
EditableInputFormatter,
StatusFormatter,
TagsFormatter
TagsFormatter,
TwoTabFormatter
}

View File

@@ -34,6 +34,7 @@
@blur="focus = false"
@focus="focus = true"
@change="handleConfirm"
@keyup.enter.native="handleConfirm"
/>
</div>
@@ -85,7 +86,11 @@ export default {
if (key === '') {
key = 'search'
}
data[key] = value
if (key.startsWith('search')) {
data['search'] = (data.search ? data.search + ',' : '') + value
} else {
data[key] = value
}
}
return data
},
@@ -97,30 +102,13 @@ export default {
}
},
watch: {
// filterTags: {
// handler(val) {
// this.$nextTick(() => this.$emit('tagSearch', this.filterMaps))
// // this.$emit('tagSearch', this.filterMaps)
// },
// deep: true
// }
options: {
handler(val) {
if (val && val.length > 0) {
const routeFilter = this.checkInTableColumns()
const asFilterTags = _.cloneDeep(this.filterTags)
this.filterTags = {
...asFilterTags,
...routeFilter
}
if (Object.keys(routeFilter).length > 0) {
setTimeout(() => {
return this.$emit('tagSearch', this.filterMaps)
}, 490)
}
this.filterTagSearch(routeFilter)
}
},
immediate: true,
deep: true
}
},
@@ -129,43 +117,96 @@ export default {
if (Object.keys(this.filterMaps).length > 0) {
return this.$emit('tagSearch', this.filterMaps)
}
}
, 400)
}, 400)
// this.$nextTick(() => this.$emit('tagSearch', this.filterMaps))
},
methods: {
// 判断url中的查询条件
// 获取url中的查询条件,判断是不是包含在当前查询条件里
checkInTableColumns() {
const searchFieldOptions = {}
const queryInfoValues = this.options.map((i) => i.value)
const routeQuery = this.getUrlQuery ? this.$route?.query : {}
const routeQueryKeys = Object.keys(routeQuery)
const keys = {}
if (routeQueryKeys.length < 1) return keys
if (routeQueryKeys.length > 0) {
for (let i = 0; i < routeQueryKeys.length; i++) {
const key = routeQueryKeys[i]
const valueDecode = decodeURI(routeQuery[key])
const isSearch = key !== 'search'
for (let k = 0, len = this.options.length; k < len; k++) {
const cur = this.options[k]
if (key === cur.value || !isSearch) {
const curChildren = cur.children || []
keys[key] = {
key,
label: isSearch ? cur.label : '',
value: valueDecode
}
if (isSearch && curChildren.length > 0) {
curChildren.forEach(item => {
if (valueDecode === item.value) {
keys[key].valueLabel = item.label
}
})
const routeQueryKeysLength = Object.keys(routeQuery).length
if (routeQueryKeysLength < 1) return searchFieldOptions
for (const [key, value] of Object.entries(routeQuery)) {
const valueDecode = decodeURI(value)
const isSearch = key === 'search'
if (isSearch) {
searchFieldOptions[key] = {
key,
label: '',
value: valueDecode
}
continue
}
if (queryInfoValues.includes(key)) {
searchFieldOptions[key] = this.getInQueryInfoFields(key, value)
}
}
return searchFieldOptions
},
getInQueryInfoFields(key, value) {
let searchFieldOption = {}
let valueDecode = decodeURI(value)
const currentOptions = this.options || []
for (let k = 0, len = currentOptions.length; k < len; k++) {
const current = currentOptions[k]
if (key === current.value) {
const curChildren = current.children || []
if (current?.type === 'boolean') {
valueDecode = !!valueDecode
}
searchFieldOption = {
...current,
key,
label: current.label,
value: valueDecode
}
if (curChildren.length > 0) {
for (const item of curChildren) {
if (valueDecode === item.value) {
searchFieldOption.valueLabel = item.label
break
}
}
}
break
}
}
return keys
return searchFieldOption
},
filterTagSearch(routeFilter) {
const routerSearch = routeFilter.search || {}
let routerSearchAttrs = []
if (typeof routerSearch?.value === 'string') {
routerSearchAttrs = routerSearch?.value?.split(',') || []
}
for (const attr of routerSearchAttrs) {
routeFilter[`search_${attr}`] = {
...routerSearch,
value: attr
}
}
if (routerSearchAttrs.length !== 0) {
delete routeFilter.search
}
const asFilterTags = _.cloneDeep(this.filterTags)
this.filterTags = {
...asFilterTags,
...routeFilter
}
if (Object.keys(routeFilter).length > 0) {
setTimeout(() => {
return this.$emit('tagSearch', this.filterMaps)
}, 490)
}
},
getValueLabel(key, value) {
for (const field of this.options) {
@@ -199,22 +240,28 @@ export default {
this.$nextTick(() => this.$refs.Cascade.handleClear())
},
handleTagClose(evt) {
this.checkUrlFilds(evt)
this.$delete(this.filterTags, evt)
this.checkUrlFilds(evt)
this.$emit('tagSearch', this.filterMaps)
return true
},
handleConfirm() {
if (this.filterValue === '') return
if (this.filterValue && !this.filterKey) {
this.filterKey = 'search'
this.filterKey = 'search' + '_' + this.filterValue
}
const tag = { key: this.filterKey, label: this.keyLabel, value: this.filterValue, valueLabel: this.valueLabel }
this.$set(this.filterTags, this.filterKey, tag)
this.$emit('tagSearch', this.filterMaps)
// 修改查询参数时改变url中保存的参数
if (this.getUrlQuery) {
let newQuery = _.cloneDeep(this.$route.query)
newQuery = { ...newQuery, [this.filterKey]: encodeURI(this.filterValue) }
if (this.filterKey.startsWith('search')) {
newQuery = { ...newQuery, search: encodeURI(this.filterMaps.search) }
} else {
newQuery = { ...newQuery, [this.filterKey]: encodeURI(this.filterValue) }
}
this.$router.replace({ query: newQuery })
}
@@ -247,7 +294,15 @@ export default {
},
// 删除查询条件时改变url
checkUrlFilds(evt) {
const newQuery = _.omit(this.$route.query, evt)
let newQuery = _.omit(this.$route.query, evt)
if (this.getUrlQuery && evt.startsWith('search')) {
if (newQuery.search) delete newQuery.search
const filterMapsSearch = this.filterMaps.search || ''
newQuery = {
...newQuery,
...(filterMapsSearch && { search: encodeURI(filterMapsSearch) })
}
}
this.$router.replace({ query: newQuery })
}
}

View File

@@ -1,7 +1,7 @@
<template>
<el-collapse-transition>
<div style="display: flex;justify-items: center; flex-wrap: nowrap;justify-content:space-between;">
<div v-show="iShowTree" :style="iShowTree?('width:20%;'):('width:0;')" class="transition-box">
<div v-show="iShowTree" :style="iShowTree?('width:20%;'):('width:0;')" class="transition-box left">
<component
:is="component"
ref="AutoDataZTree"
@@ -76,6 +76,9 @@ export default {
deep: true
}
},
mounted() {
// debug(this.treeSetting)
},
methods: {
handleUrlChange(url) {
this.$set(this.iTableConfig, 'url', url)
@@ -110,12 +113,13 @@ export default {
float: right;
text-align: center;
padding: 5px 0;
background-color: #1ab394;
border-color: #1ab394;
background-color: var(--color-primary);
border-color: var(--color-primary);
color: #FFFFFF;
border-radius: 3px;
line-height: 1.428;
cursor:pointer;
height: 30px;
}
.el-tree{
background-color: inherit !important;
@@ -129,4 +133,10 @@ export default {
overflow: auto;
/*border-right: solid 1px red;*/
}
.transition-box.left {
background: #f3f3f3;
border: 1px solid #e0e0e0;
border-radius: 3px;
margin-right: 2px;
}
</style>

View File

@@ -0,0 +1,230 @@
<template>
<Dialog
:title="title"
:width="'36%'"
:show-confirm="false"
:show-cancel="false"
:visible.sync="visible"
:destroy-on-close="true"
v-bind="$attrs"
class="dialog-content"
v-on="$listeners"
>
<div v-if="ConfirmType === 'relogin'">
<el-row :gutter="24" style="margin: 0 auto;">
<el-col :md="24" :sm="24">
<el-alert
:title="this.$t('auth.ReLoginTitle')"
type="info"
center
:closable="false"
style="margin-bottom: 20px;"
/>
</el-col>
</el-row>
<el-row :gutter="24" style="margin: 0 auto;">
<el-col :md="24" :sm="24">
<el-button
size="mini"
type="primary"
style="width: 100%; line-height:20px;"
@click="logOut"
>
{{ this.$t('auth.ReLogin') }}
</el-button>
</el-col>
</el-row>
</div>
<div v-else>
<el-row :gutter="24" style="margin: 0 auto;">
<el-col :span="24" :md="24" :sm="24" class="add">
<el-select
v-model="Select"
:disabled="ConfirmType === 'password'"
style="width: 100%; margin-bottom: 20px;"
@change="helpText(Select)"
>
<el-option
v-for="(item, i) of Content"
:key="i"
:label="item.display_name"
:value="item.name"
:disabled="item.disabled"
/>
</el-select>
</el-col>
</el-row>
<el-row :gutter="24" style="margin: 0 auto;">
<el-col :md="24" :sm="24" style="display: flex; margin-bottom: 20px;">
<el-input v-model="SecretKey" :show-password="showPassword" :placeholder="HelpText" />
<span v-if="Select === 'sms'" style="margin: -1px 0 0 20px;">
<el-button
size="mini"
type="primary"
style="line-height:20px; float: right;"
:disabled="smsBtndisabled"
@click="sendChallengeCode"
>
{{ smsBtnText }}
</el-button>
</span>
</el-col>
</el-row>
<el-row :gutter="24" style="margin: 0 auto;">
<el-col :md="24" :sm="24">
<el-button
size="mini"
type="primary"
style="width: 100%; line-height:20px;"
@click="userConfirm"
>
{{ this.$t('common.Confirm') }}
</el-button>
</el-col>
</el-row>
</div>
</Dialog>
</template>
<script>
import Dialog from '@/components/Dialog'
export default {
name: 'UserConfirmDialog',
components: {
Dialog
},
props: {
url: {
type: String,
default: () => ''
}
},
data() {
return {
title: '',
smsWidth: 0,
Select: '',
Level: null,
HelpText: '',
smsBtnText: '',
smsBtndisabled: false,
ConfirmType: '',
Content: null,
SecretKey: '',
visible: false
}
},
computed: {
showPassword() {
if (this.ConfirmType === 'password') {
return true
}
return false
}
},
watch: {
visible(val) {
if (!val) {
this.$emit('UserConfirmCancel', true)
}
}
},
mounted() {
this.smsBtnText = this.$t('common.SendVerificationCode')
this.$axios.get(`${this.url}`, { disableFlashErrorMsg: true }).then(
() => { this.$emit('UserConfirmDone', true) }).catch((err) => {
const confirm_type = err.response.data.code
this.$axios.get('/api/v1/authentication/confirm/', { params: { confirm_type: confirm_type }}).then((data) => {
this.ConfirmType = data.confirm_type
this.Content = data.content
if (this.ConfirmType === 'relogin') {
this.$axios.post(
`/api/v1/authentication/confirm/`,
{
confirm_type: this.ConfirmType,
secret_key: ''
},
{ disableFlashErrorMsg: true },
).then(() => { this.$emit('UserConfirmDone', true) }).catch(() => {
this.title = this.$t('auth.NeedReLogin')
this.visible = true
})
return
}
if (this.ConfirmType === 'mfa') {
this.Select = this.Content.filter(item => !item.disabled)[0].name
if (this.Select === 'sms') {
this.smsWidth = 6
}
this.HelpText = this.Content.filter(item => !item.disabled)[0].placeholder
} else if (this.ConfirmType === 'password') {
this.Select = this.$t('setting.password')
this.HelpText = this.$t('common.PasswordRequireForSecurity')
this.Content = [{ 'name': 'password' }]
}
this.title = this.$t('common.CurrentUserVerify')
this.visible = true
})
})
},
methods: {
helpText(val) {
this.HelpText = this.Content.filter(item => item.name === val)[0]?.placeholder
if (val === 'sms') {
this.smsWidth = 6
} else {
this.smsWidth = 0
}
},
logOut() {
window.location.href = `${process.env.VUE_APP_LOGOUT_PATH}?next=${this.$route.fullPath}`
},
sendChallengeCode() {
this.$axios.post(
`/api/v1/authentication/mfa/select/`, {
type: 'sms'
}
).then(res => {
this.$message.success(this.$t('common.VerificationCodeSent'))
let time = 60
const interval = setInterval(() => {
this.smsBtnText = this.$t('common.Pending') + `: ${time}`
this.smsBtndisabled = true
time -= 1
if (time === 0) {
this.smsBtnText = this.$t('common.SendVerificationCode')
this.smsBtndisabled = false
clearInterval(interval)
}
}, 1000)
})
},
userConfirm() {
if (this.Select === 'otp' && this.SecretKey.length !== 6) {
return this.$message.error(this.$t('common.MFAErrorMsg'))
}
this.$axios.post(
`/api/v1/authentication/confirm/`, {
confirm_type: this.ConfirmType,
mfa_type: this.ConfirmType === 'password' ? undefined : this.Select,
secret_key: this.SecretKey
}
).then(res => {
this.$emit('UserConfirmDone', true)
})
}
}
}
</script>
<style lang="scss" scoped>
.dialog-content >>> .el-dialog__footer{
padding: 0;
}
.dialog-content >>> .el-dialog{
padding: 8px;
}
</style>

View File

@@ -25,6 +25,6 @@ export { default as UploadField } from './FormFields/UploadField'
export { default as AccountListTable } from './AccountListTable/index'
export { default as AppAccountListTable } from './AppAccountListTable'
export { default as AssetRelationCard } from './AssetRelationCard'
export { default as MFAVerifyDialog } from './MFAVerifyDialog'
export { default as UserConfirmDialog } from './UserConfirmDialog'
export { default as Announcement } from './Announcement'
export { default as CronTab } from './CronTab'

1
src/directive/index.js Normal file
View File

@@ -0,0 +1 @@
import './permission'

View File

@@ -0,0 +1,39 @@
import { hasPermission, getRouteRequiredPerms, getApiUrlRequirePerms } from '@/utils/jms'
import permission from './permission'
import Vue from 'vue'
const install = function(Vue) {
Vue.directive('perms', permission)
Vue.prototype.$hasPerm = function(perms) {
return hasPermission(perms)
}
Vue.prototype.$hasApiActionPerm = function(url, action) {
const permsRequired = getApiUrlRequirePerms(url, action)
return hasPermission(permsRequired)
}
Vue.prototype.$getCurrentResActionPerms = function(action) {
return getRouteRequiredPerms(this.$route, action)
}
Vue.prototype.$hasCurrentResAction = function(action) {
const permsRequired = getRouteRequiredPerms(this.$route, action)
return hasPermission(permsRequired)
}
Vue.prototype.$hasLicense = function() {
return this.$store.getters.hasValidLicense
}
Vue.prototype.$isRootOrg = function() {
return this.$store.getters.currentOrgIsRoot
}
}
window['permission'] = permission
Vue.use(install); // eslint-disable-line
permission.install = install
export default permission

View File

@@ -0,0 +1,18 @@
import { hasPermission } from '@/utils/jms'
function checkPermission(el, binding) {
const { value } = binding
if (!hasPermission(value)) {
el.parentNode && el.parentNode.removeChild(el)
}
}
export default {
inserted(el, binding) {
checkPermission(el, binding)
},
update(el, binding) {
checkPermission(el, binding)
}
}

47
src/guards.js Normal file
View File

@@ -0,0 +1,47 @@
/* eslint-disable no-unused-vars */
import router from './router'
import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css' // progress bar style
import { startup } from '@/utils/startup'
import store from '@/store'
import { isSameView } from '@/utils/jms'
NProgress.configure({
showSpinner: false
}) // NProgress Configuration
router.beforeEach(async(to, from, next) => {
// start progress bar
NProgress.start()
try {
await startup({ to, from, next })
next()
} catch (e) {
const msg = 'Start service error: ' + e
// debug(e)
}
})
function generateViewRoutesIfChange({ to, from }) {
const sameView = isSameView(to, from)
if (!sameView) {
return store.dispatch('permission/generateViewRoutes', { to: to, from: from })
}
}
function setPageTitle() {
const currentRoute = router.currentRoute
const loginTitle = store.getters.publicSettings['INTERFACE']['login_title']
const routeTitle = currentRoute.meta.title
if (routeTitle) {
document.title = routeTitle + ' - ' + loginTitle
}
}
router.afterEach(async(to, from) => {
// finish progress bar
await setPageTitle()
await generateViewRoutesIfChange({ to, from })
NProgress.done()
})

View File

@@ -26,5 +26,19 @@ export default {
year: 'numeric', month: 'short', day: 'numeric',
hour: 'numeric', minute: 'numeric', hour12: true
}
},
'ja': {
short: {
year: 'numeric', month: 'short', day: 'numeric'
},
medium: {
year: 'numeric', month: '2-digit', day: '2-digit',
hour: '2-digit', minute: '2-digit', second: '2-digit',
hourCycle: 'h23', hour12: false
},
long: {
year: 'numeric', month: 'short', day: 'numeric',
hour: 'numeric', minute: 'numeric', hour12: true
}
}
}

View File

@@ -4,10 +4,15 @@ import locale from 'element-ui/lib/locale'
import VueI18n from 'vue-i18n'
import messages from './langs'
import date from './date'
import VueCookie from 'vue-cookie'
Vue.use(VueI18n)
const cookieLang = VueCookie.get('django_language')
const browserLang = navigator.systemLanguage || navigator.language
let lang = cookieLang || browserLang || 'zh'
lang = lang.slice(0, 2)
const i18n = new VueI18n({
locale: localStorage.lang || 'cn',
locale: lang,
fallbackLocale: 'en',
silentFallbackWarn: true,
silentTranslationWarn: true,

View File

@@ -1,6 +1,7 @@
{
"": "",
"accounts": {
"AccountHistableHelpMessage": "Record the historical version of the current account",
"PleaseClickLeftAssetToViewAssetAccount": "Asset account list, please click on the assets on the left to view",
"PleaseClickLeftApplicationToViewApplicationAccount": "Application account list, please click on the application on the left to view",
"PleaseClickLeftAssetToViewGatheredUser": "Gathered user list, please click on the assets on the left to view"
@@ -44,6 +45,9 @@
"postgresql": "PostgreSQL",
"mariadb": "MariaDB",
"sqlserver": "SQLServer",
"redis": "Redis",
"mongodb": "MongoDB",
"clickhouse": "ClickHouse",
"k8s": "kubernetes"
},
"applicationsCategory": {
@@ -83,7 +87,9 @@
"cluster": "Cluster",
"kubernetes":"Kubernetes",
"clusterHelpTextMessage": "Tips: https://172.16.8.8:8443",
"DBInfo": "Database Info"
"DBInfo": "Database Info",
"RDBProtocol": "RDS Protocol",
"NoSQLProtocol": "NoSQL Protocol"
},
"assets": {
"AppList": "Application list",
@@ -93,6 +99,7 @@
"Action": "Action",
"ActiveSelected": "Active selected",
"AdminUser": "Admin user",
"AssetTree": "Asset tree",
"ReplaceNodeAssetsAdminUser":"Replace node assets admin user with this",
"AdminUserDetail": "Admin user detail",
"DynamicUsername": "Dynamic username",
@@ -121,7 +128,7 @@
"Charset": "Charset",
"CmdFilter": "CmdFilter",
"CommandFilterDetail": "Command filter detail",
"CommandFilterHelpMessage": "System user bound some command filter, each command filter has some rules, When user login asset with this system user, then run a command, The command will be filter by rules, higher priority rule run first, When a rule matched, if rule action is allow, then allow command execute, else if action is deny, then command with be deny, else match next rule, if none matched, allowed",
"CommandFilterHelpMessage": "The system user supports binding multiple command filters to achieve the effect of prohibiting the input of certain commands; multiple rules can be configured in the filter. When the system user is used to connect to the asset, the input command takes effect according to the priority of the rules configured in the filter. <br>Example: The first matched rule is \"Allow\", the command is executed, the first matched rule is \"Forbidden\", the command execution is prohibited; if the last rule is not matched, it is allowed to be executed.",
"CommandFilterRuleContentHelpText": "One line one command",
"CommandFilterRulePriorityHelpText": "1-100, the higher will be match first",
"CommandFilterRules": "Command filter rules",
@@ -165,6 +172,7 @@
"Os": "Os",
"Other": "Other",
"Password": "Password",
"Passphrase": "Passphrase",
"PasswordWithoutSpecialCharHelpText": "Password can't has special chars ",
"Pending": "Pending",
"Platform": "Platform",
@@ -215,13 +223,16 @@
"sshKeyFingerprint": "SSH fingerprint",
"ip": "IP",
"sshkey": "sshkey",
"SSHSecretKey": "SSh key",
"GroupsHelpMessage": "Please fill in user groups, separated by commas if there are multiple user groups(Please fill in the existing user groups)",
"HomeHelpMessage": "Default home directory: /home/system username",
"Home": "Home",
"LinuxUserAffiliateGroup": "Linux user affiliate group",
"ipDomain": "IP(Domain)",
"ipDomain": "IP(Host)",
"HostProtocol": "Host Protocol",
"DatabaseProtocol": "Database Protocol",
"RDBProtocol": "RDS Protocol",
"NoSQLProtocol": "NoSQL Protocol",
"OtherProtocol": "Other Protocol",
"PasswordOrToken": "Password / Token"
},
@@ -231,13 +242,28 @@
"User": "User",
"Username": "Username",
"SystemUserName": "System username",
"View": "View"
"View": "View",
"LoginIP": "Login IP",
"LoginCity": "Login city",
"LoginDate": "Login date",
"BeforeChange": "Before change",
"AfterChange": "After change"
},
"auth": {
"LoginRequiredMsg": "You account has logout, Please login again",
"ReLogin": "Re-Login"
"ReLogin": "Re-Login",
"ReLoginTitle": "The current three-party login user (cas/saml) is not bound to MFA and does not support password verification. Please login again",
"NeedReLogin": "Need Re-Login",
"ReLoginErr": "Login time has exceeded 5 minutes, please login again"
},
"common": {
"NoContent": "No content",
"NeedAddAppsOrSystemUserErrMsg": "Please add apps or system user",
"VerificationCodeSent": "The verification code has been sent",
"SendVerificationCode": "Send verification code",
"History": "History",
"ChangeViewHelpText": "Click to change view",
"Component": "component",
"PrivateCloud": "Private cloud",
"PublicCloud": "Public cloud",
"Correlation": "Correlation",
@@ -245,12 +271,24 @@
"IPLoginLimit": "IP login limit",
"Setting": "Setting",
"Certificate": "Certificate",
"CACertificate": "CA Certificate",
"ClientCertificate": "Client certificate",
"CertificateKey": "Certificate key file",
"AllowInvalidCert": "Allow invalid cert",
"UseSSL": "Use SSL/TLS",
"SecretKey": "Secret key",
"Scope": "Type",
"Builtin": "Builtin",
"DateCreated": "Date created",
"UpdatedBy": "Update by",
"ViewMore": "View more",
"Announcement": "Announcement",
"Logging": "Logging",
"RecentLogin": "Recent login",
"Database": "Database",
"Params": "Params",
"MFAVerify": "Verify MFA",
"CurrentUserVerify": "Verify Current User",
"ViewSecret": "View secret",
"ConnectWebSocketError": "Connect Websocket failed",
"Nothing": "Nothing",
@@ -283,6 +321,7 @@
"Close": "Close",
"Command filter": "Command filter",
"Comment": "Comment",
"Number": "Number",
"Confirm": "Confirm",
"Create": "Create",
"CreatedBy": "Created by",
@@ -297,12 +336,15 @@
"Delete": "Delete",
"Disable": "Disable",
"Download": "Download",
"Copy": "Copy",
"CopySuccess": "Copy success",
"Enable": "Enable",
"On/Off": "On/Off",
"EnterForSearch": "Press enter to search",
"Export": "Export",
"Import": "Import",
"ContinueImport": "ContinueImport",
"ImportAll": "Import All",
"Continue": "Continue",
"Stop": "Stop",
"Finished": "Finished",
@@ -371,9 +413,12 @@
"deleteFailedMsg": "Delete failed",
"deleteSelected": "Delete selected",
"deleteSuccessMsg": "Delete success",
"activateSuccessMsg": "Active success",
"deleteWarningMsg": "Are you sure to delete ",
"disableSelected": "Disable selected",
"disableSuccessMsg": "Disable success",
"fieldRequiredError": "This field is required",
"requiredHasUserNameMapped": "The mapping of the username field must be included, such as {'uid': 'username'}",
"getErrorMsg": "Get failed",
"fileType": "File type",
"Status": "Status",
@@ -390,21 +435,32 @@
"downloadImportTemplateMsg": "Download import template",
"downloadUpdateTemplateMsg": "Download update template",
"onlyCSVFilesTips": "Only csv supported",
"ImportFail": "Import fail",
"updateSuccessMsg": "Update success, total: {count}",
"dragUploadFileInfo": "Drag file here or click to upload",
"dragUploadFileInfo": "Drag file here or click here to upload",
"uploadCsvLth10MHelpText": "csv/xlsx files with a size less than 10M",
"hasImportErrorItemMsg": "There is an error item, click the x icon to view the details, and continue to import after editing"
},
"isValid": "Is valid",
"nav": {
"TempPassword": "Temporary password",
"ConnectionToken": "Connection token",
"APIKey": "API Key",
"AdminPage": "Admin page",
"Workbench": "Workbench",
"Navigation": "Navigation",
"Console": "Console",
"Audits": "Audit",
"HomePage": "Home page",
"QuickAccess": "Quick access",
"SwitchPage": "Switch page",
"Docs": "Docs",
"Help": "Help",
"Logout": "Logout",
"Profile": "Profile",
"Support": "Support",
"Download": "Download",
"UserPage": "User page",
"View": "View",
"EnterpriseEdition": "Enterprise edition"
},
"passwordOrPassphrase": "Password or Passphrase",
@@ -417,6 +473,7 @@
"Loading": "Loading"
},
"updateErrorMsg": "Update failed",
"ErrorMsg": "Error",
"updateSelected": "Update selected",
"updateSuccessMsg": "Update success",
"SelectProperties": "Select properties",
@@ -430,6 +487,7 @@
"SPECIAL_CHAR_REQUIRED": "Special char required",
"MIN_LENGTH_ERROR": "Password minimum length {}"
},
"noAnnouncement": "No announcement",
"lastCannotBeDeleteMsg": "The last one can't be delete",
"InvalidJson": "Not a valid json format",
"time_period": "Time period",
@@ -470,6 +528,7 @@
},
"Cycle": "Cycle",
"FormatError": "Format error",
"NotSpecialEmoji": "Special emoticons are not allowed",
"WeekCronSelect": {
"Monday": "Monday",
"Tuesday": "Tuesday",
@@ -506,6 +565,7 @@
"Monthly": "Monthly",
"OnlineSessions": "Online sessions",
"OnlineUsers": "Online users",
"ConnectUsers": "Connect users",
"TimesWeekUnit": "times/week",
"TopAssetsOfWeek": "Top assets of week",
"TopUsersOfWeek": "Top user of week",
@@ -558,11 +618,12 @@
"version": "Version",
"versionDetail": "Version detail",
"versionRunExecution": "Version run execution",
"Unkown": "Unkown"
"Unkown": "Unkown",
"Unknown": "Unknown"
},
"perms": {
"": "",
"Actions": "Permission",
"Actions": "Actions",
"Permission": "Permissions",
"Asset": "Asset",
"Basic": "Basic",
@@ -622,10 +683,27 @@
},
"route": {
"": "",
"AssignedTicketList": "Assigned tickets",
"CreateEndpoint": "Create endpoint",
"UpdateEndpoint": "Update endpoint",
"CreateEndpointRule": "Create endpoint rule",
"UpdateEndpointRule": "Update endpoint rule",
"SystemSetting": "System setting",
"Index": "Index",
"Role": "Role",
"Overview": "Overview",
"OrgRole": "Org role",
"OrgRoles": "Organization roles",
"SystemRole": "System roles",
"RoleList": "Roles",
"RoleCreate": "Role create",
"RoleUpdate": "Role update",
"RoleDetail": "Role detail",
"SessionDetail": "SessionDetail",
"Accounts": "Accounts",
"AssetAccount": "Asset account",
"ApplicationAccount": "Application account",
"AssetAccount": "Asset Account",
"AssetHistoryAccount": "Asset History Account",
"ApplicationAccount": "Application Account",
"Ticket": "Tickets",
"CommandConfirm": "Command confirm",
"AdminUserCreate": "Admin user create",
@@ -642,9 +720,11 @@
"AssetPermissionUpdate": "Asset permissions update",
"AssetUpdate": "Asset update",
"Assets": "Assets",
"Audits": "Audits",
"LogsAudit": "Logs audit",
"SessionsAudit": "Sessions audit",
"SessionList": "Session list",
"BatchCommand": "Batch Command",
"BatchCommandLog": "Batch Command Log",
"BatchCommandLog": "Batch Command Logs",
"CeleryTaskLog": "Celery task log",
"CommandExecutions": "CommandExecutions ",
"CommandFilterCreate": "Command filter create",
@@ -655,6 +735,7 @@
"CommandFilterUpdate": "Command filter update",
"CommandStorageUpdate": "Command storage update",
"Commands": "Commands",
"FileTransfer": "File transfer",
"CreateCommandStorage": "Create command storage",
"CreateReplayStorage": "Create replay storage",
"Dashboard": "Dashboard",
@@ -692,7 +773,7 @@
"FtpLog": "FTP Logs",
"GatewayCreate": "Gateway create",
"GatewayUpdate": "Gateway update",
"JobCenter": "Jobcenter",
"JobCenter": "Devops",
"LabelCreate": "Label create",
"LabelList": "Labels",
"LabelUpdate": "Label update",
@@ -702,7 +783,7 @@
"OperateLog": "Operation Logs",
"PasswordChangeLog": "Password Update Logs",
"Perms": "Permissions",
"PersonalInformationImprovement": "PersonalInformationImprovement",
"PersonalInformationImprovement": "Personal information improvement",
"PlatformCreate": "Platform create",
"PlatformDetail": "Platform detail",
"PlatformList": "Platforms",
@@ -724,6 +805,7 @@
"Activity": "Activity",
"SessionOffline": "Sessions offline",
"SessionOnline": "Sessions online",
"RecentSession": "Recent session",
"Sessions": "Sessions",
"Settings": "Settings",
"SystemUserCreate": "System user create",
@@ -742,7 +824,7 @@
"UserFirstLogin": "UserFirstLogin",
"UserGroupCreate": "User group create",
"UserGroupDetail": "User group detail",
"UserGroupList": "User Groups",
"UserGroupList": "Groups",
"UserGroupUpdate": "User group update",
"UserGuide": "UserGuide",
"UserList": "Users",
@@ -753,7 +835,16 @@
"WebTerminal": "Web Terminal",
"Notifications": "Notifications",
"SiteMessageList": "Site message",
"UserLoginACL": "User Login ACL"
"UserLoginACL": "User Login ACL",
"UserLoginACLDetail": "User Login ACL",
"NoPermission403": "403 No permission",
"NoPermissionVew": "No permission view current page",
"AjaxError404": "404 ajax error",
"CannotAccess": "Unable to access the current page",
"GoHomePage": "Go home page"
},
"rbac": {
"Permissions": "Permissions"
},
"sessions": {
"SetToDefaultStorage": "Set to default storage",
@@ -765,6 +856,7 @@
"accountName": "Account name",
"active": "active",
"alive": "alive",
"noAlive": "no alive",
"asset": "Asset",
"target": "Target",
"bucket": "Bucket",
@@ -820,24 +912,35 @@
"riskLevels": {
"common": "common"
},
"SessionID": "Session ID",
"TargetResources": "Target resources",
"UseProtocol": "Use protocol",
"SessionState": "Session state",
"Monitor": "Monitor",
"XRDPNotSupport": "RDP Client session not support now",
"RazorNotSupport": "RDP Client session not support now",
"sessionMonitor": "Session Monitor",
"TerminateTaskSendSuccessMsg": "Terminate task has been send, Please check later",
"helpText": {
"esUrl": "Tip: If you have multiple hosts, use comma (, ) to split (eg: http://www.jumpserver.a.com, http://www.jumpserver.b.com)",
"esIndex":"Es provides the default index: jumpserver",
"esDocType": "Es provides the default document type: command",
"s3Endpoint": "S3: http://s3.{REGION_NAME}.amazonaws.com<br>S3(China): http://s3.{REGION_NAME}.amazonaws.com.cn<br>Example: http://s3.cn-north-1.amazonaws.com.cn",
"ossEndpoint": "OSS: http://{REGION_NAME}.aliyuncs.com<br>Example: http://oss-cn-hangzhou.aliyuncs.com"
"esIndex":"Es provides the default index: jumpserver. If you choose to build an index by date, this blank is the index prefix",
"esDocType": "Es provides the default document type: command"
}
},
"setting": {
"OAuth2LogoTip": "Tip: Authentication Service Provider (recommended image size: 64px*64px)",
"EndpointListHelpMessage": "The service endpoint is the address (port) for the user to access the service. When the user connects to the asset, the service endpoint will be selected according to the endpoint rules and asset tags, and the connection will be established as the access entry to realize the distributed connection of assets.",
"EndpointRuleListHelpMessage": "For the service endpoint selection strategy, two types are currently supported: <br>1. Specify the endpoint according to the endpoint rule (current page); <br>2. Select the endpoint through the asset tag. The tag name is fixed to endpoint, and the value is the name of the `endpoint`. <br>Two methods preferentially use label matching, because the IP segment may conflict, and the label method exists as a supplement to the rules.",
"EnableKoKoSSHHelpText": "Enabled, connect assets to display SSH Client pull-up method",
"SettingInEndpointHelpText": "Configure the service address and port in System Settings / Terminal Settings / Service Endpoints",
"Feature": "Feature",
"SMSProvider": "SMS provider",
"SMSProvider": "SMS provider / Protocol",
"SMS": "SMS",
"AlibabaCloud": "Alibaba cloud",
"TencentCloud": "Tencent cloud",
"HuaweiCloud": "Huawei cloud",
"SignChannelNum": "Signature Channel Number",
"AppEndpoint": "App access address",
"CMPP2": "CMPP v2.0",
"VerifySignTmpl": "Verification code template",
"Radius": "Radius",
"Enable": "Enable",
@@ -845,6 +948,7 @@
"SMTP": "SMTP server",
"Setting": "Setting",
"AuthMethod": "Auth methods",
"SSO": "SSO",
"AuthLimit": "Auth limit",
"Ops": "Task",
"OTP": "OTP(MFA)",
@@ -852,6 +956,8 @@
"Cleaning": "Period clean",
"Perms": "Perms",
"CASSetting": "CAS setting",
"CAS": "CAS",
"OIDC": "OIDC",
"Other": "More...",
"Auth": "Auth",
"SyncSetting": "Sync setting",
@@ -888,9 +994,12 @@
"authLdapServerUri": "LDAP server",
"authLdapUserAttrMap": "User attr map",
"authUserAttrMap": "User attr map",
"authUserAttrMapHelpText": "Mapping relationship { idp_key: sp_key}",
"authUserAttrMapHelpText": "The key on the left is the JumpServer user property, and the value on the right is the authenticated platform user property",
"SAML2": "SAML2",
"OAuth2": "OAuth2",
"enableSAML2Auth": "Enable SAML2 Auth",
"enableOAuth2Auth": "Enable OAuth2 Auth",
"tokenHTTPMethod": "Token Obtaining Method",
"SAML2Auth": "SAML2 Auth",
"authSAML2Xml": "IDP metadata XML",
"authSAML2MetadataUrl": "IDP metadata URL",
@@ -924,7 +1033,9 @@
"LDAPUser": "LDAP User",
"InsecureCommandAlert": "Insecure command alert",
"helpText": {
"TempPassword": "For a while, there is a period of 300 seconds, failure immediately after use",
"ApiKeyList": "The API key is used to sign the request header. The header of each request is different. Please refer to the usage documentation",
"ConnectionTokenList": "The connection token is a kind of authentication information that combines authentication and connection assets. It allows users to log in to assets with one click. Currently supported components include: KoKo, Lion, Magnus, Razor, etc.",
"authLdapSearchFilter": "Choice may be (cn|uid|sAMAccountName)=%(user)s)",
"authLdapSearchOu": "Use | split User OUs",
"authLdapUserAttrMap": "User attr map present how to map LDAP user attr to jumpserver, username, name, email is jumpserver attr",
@@ -999,16 +1110,23 @@
"refreshLdapCache":"Refreshing Ldap cache ",
"LicenseExpired": "License expired",
"LicenseWillBe": "License will expire at ",
"Expire": "",
"LicenseReachedAssetAmountLimit": "The number of assets has exceeded the license limit",
"LicenseForTest": "Testing license, This license is only for testing",
"Expire": "Expire",
"WeCom": "WeCom",
"DingTalk": "DingTalk",
"dingTalkTest": "Test",
"weComTest": "Test",
"FeiShu": "FeiShu",
"feiShuTest": "Test",
"setting": "Setting"
"setting": "Setting",
"SystemTools": "System Tools",
"basicTools": "Basic Tools",
"destinationIP": "Destination IP",
"testPort": "Test Port",
"testTools": "Test",
"testHelpText": "Please enter the destination address for testing"
},
"tickets": {
"PermissionName": "Permission name",
"Accept": "Accept",
@@ -1022,6 +1140,7 @@
"OpenTicket": "Open Ticket",
"HandleTicket": "Handle Ticket",
"FinishedTicket": "Finished Ticket",
"CheckViewAcceptor": "Click to view the acceptor",
"Assignees": "Assignees",
"Close": "Close",
"OpenStatus":"Open",
@@ -1035,6 +1154,10 @@
"reply": "Reply",
"status": "Status",
"title": "Title",
"RelevantApp": "App",
"RelevantAsset": "Asset",
"RelevantCommand": "Command",
"RelevantSystemUser": "System user",
"type": "Type",
"user": "User",
"Status": "Status",
@@ -1077,12 +1200,19 @@
"UpdateNodeAssetHardwareInfo": "Update node asset hardware information"
},
"users": {
"InviteSuccess": "Invite success",
"FileEncryptionPassword": "File encryption password",
"OrgRoles": "Org roles",
"RoleUsers": "Role users",
"RoleInfo": "Role info",
"RolePerms": "Role perms",
"MessageSubscription": "Message Subscription",
"AuthSettings": "Auth settings",
"UserName": "Name",
"Account": "Account",
"Existing":"Existing",
"AccountInformation": "Account information",
"PersonalSetting": "Personal setting",
"Authentication": "Account",
"Comment": "Comment",
"ConfirmPassword": "Confirm password",
@@ -1114,7 +1244,8 @@
"MFAOfUserFirstLoginPersonalInformationImprovementPage": "Enable multi-factor authentication to make the account more secure <br/> After is enabled, you will enter the multi-factor authentication binding process on your next login <br/> You can also bind directly in (personal information -> fast modifier -> modifier multiple factor Settings)",
"MFAOfUserFirstLoginUserGuidePage": "To protect the security of you and the company <br/> please properly keep your account, password, key and other important and sensitive information <br/> (e.g., set a complex password and enable multi-factor authentication)",
"SSHKeyOfProfileSSHUpdatePage": "Copy your public key here",
"OrgRoleHelpText": "Organizational roles are the user's role in the current organization"
"OrgRoleHelpText": "Organizational roles are the user's role in the current organization",
"addRolePermissions": "After add or update success, set permissions in detail page"
},
"IAgree": "I agree",
"ImprovePersonalInformation": "Improve personal information",
@@ -1133,8 +1264,8 @@
"ResetAndDownloadSSHKey": "Reset and download SSH Key",
"ResetPublicKeyAndDownload": "Reset public key and download",
"Role": "Role",
"SuperRole": "Super role",
"OrgRole": "Org role",
"SystemRoles": "System roles",
"OrgRole": "Org roles",
"SSHKey": "SSH Key",
"SSHKeySetting": "SSH Key setting",
"Secure": "Secure",
@@ -1198,12 +1329,14 @@
"Sender": "Sender",
"MarkAsRead": "Mark as read",
"OneClickRead": "Currently read",
"AllClickRead": "All read",
"OneClickReadMsg": "Are you sure you want to mark the current information as read?",
"NoUnreadMsg": "No unread messages",
"SiteMessage": "Site messages",
"SMS": "SMS"
},
"xpack": {
"Images": "Images",
"NavHelp": "Navigation Link",
"helpDocument": "Docs link",
"helpSupport": "Support link",
@@ -1212,6 +1345,7 @@
"officialWebsiteTip": "You can change the URL of the site navigation bar help -> Website",
"Admin": "Admin",
"Asset": "Asset",
"ip": "IP",
"Database": "Database",
"AssetCount": "Asset count",
"Auditor": "Auditor",
@@ -1259,6 +1393,10 @@
"Name": "Name",
"NodeAmount": "Node",
"PasswordLength": "Password length",
"ChangePassword": "Change password",
"ModifySSHKey": "Modify SSH Key",
"Addressee": "Addressee",
"OnlyMailSend": "Currently only mail sending is supported",
"PasswordStrategy": "Password strategy",
"SecretKeyStrategy": "Secret key strategy",
"RegularlyPerform": "Regularly perform",
@@ -1271,18 +1409,37 @@
"TimerPeriod": "Timer period",
"Username": "Username"
},
"AccountBackupPlan": {
"Types": "Types",
"Backup": "Backup",
"AccountBackupPlan": "Account Backup Plan",
"AccountBackupPlanCreate": "Account backup plan create",
"AccountBackupPlanUpdate": "Account backup plan update",
"ExecutionDetail": "Execution detail",
"MailRecipient": "Mail recipient",
"IsSuccess": "Is success",
"Reason": "Reason"
},
"Cloud": {
"CloudSync": "Cloud sync",
"ServerAccountKey": "Server Account Key",
"IPNetworkSegment": "Ip Network Segment",
"Aliyun": "Ali Cloud",
"Qcloud": "Tencent Cloud",
"QcloudLighthouse": "Tencent Cloud(Lighthouse)",
"QingyunPrivatecloud": "Qingyun Private Cloud",
"HuaweiPrivatecloud": "Huawei Private Cloud",
"OpenStack": "OpenStack",
"CTYunPrivate": "CTYun Private Cloud",
"GCP": "Google Cloud Platform",
"FC": "Fusion Compute",
"LAN": "LAN",
"AWS_China": "AWS(China)",
"AWS_Int": "AWS(International)",
"HuaweiCloud": "Huawei Cloud",
"BaiduCloud": "Baidu Cloud",
"JDCloud": "JD Cloud",
"KingSoftCloud": "KingSoft Cloud",
"Azure":"Azure(China)",
"Azure_Int": "Azure(International)",
"HostnameStrategy": "Used to produce the asset hostname. For example, 1. Instance name (instanceDemo)2. Instance name and Partial IP (instanceDemo-250.1)",
@@ -1348,7 +1505,9 @@
"InterfaceSettings": "Interface Setting",
"License": "License",
"LicenseDetail": "License detail",
"SystemMonitor": "System Monitor",
"ComponentMonitor": "System Monitor",
"Endpoint": "Endpoint",
"EndpointRule": "Endpoint rule",
"ServiceRatio": "Service ratio",
"LoadStatus":"Status",
"NormalLoad":"Normal",
@@ -1359,7 +1518,9 @@
"NoLicense": "No License",
"Node": "Node",
"Organization": {
"AllOrganization": "All organization",
"OrganizationCreate": "Create organization",
"OrganizationLists": "Organization lists",
"OrganizationDetail": "Org detail",
"OrganizationList": "Organizations",
"OrganizationUpdate": "Update org",
@@ -1402,6 +1563,9 @@
"technologyConsult": "Technology Consult",
"RegularlyPerform": "Regularly perform",
"CyclePerform": "Cycle perform",
"ModifyTheme": "Modify theme",
"ClassicGreen": "Classic green",
"ChinaRed": "China red",
"HelpText": {
"CrontabOfCreateUpdatePage": "For example: every Sunday at 03:05 execute <5 3 * * 0> <br/> Using the 5-bit Linux crontab expression <minute hour day month week> (<a href=\"https://tool.lu/crontab/\" target=\"_blank\"> Online tool </a>) <br/> If both regularly perform and cycle perform execution are set, use regularly perform first",
"IntervalOfCreateUpdatePage": "Unit: hour",

View File

@@ -1,15 +1,21 @@
import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
import enLocale from 'element-ui/lib/locale/lang/en'
import zh from './cn.json'
import jaLocale from 'element-ui/lib/locale/lang/ja'
import zh from './zh.json'
import en from './en.json'
import ja from './ja.json'
export default {
cn: {
zh: {
...zhLocale,
...zh
},
en: {
...enLocale,
...en
},
ja: {
...jaLocale,
...ja
}
}

1621
src/i18n/langs/ja.json Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -4,7 +4,8 @@ import json
i18n_report_path = '/tmp/abc.json'
lang_paths = {
'cn': 'cn.json',
'en': 'en.json'
'en': 'en.json',
'ja': 'ja.json'
}
@@ -51,5 +52,5 @@ def remove_keys(lang):
f.write(data)
for i in ['cn', 'en']:
for i in ['cn', 'en', 'ja']:
remove_keys(i)

View File

@@ -1,6 +1,7 @@
{
"": "",
"accounts": {
"AccountHistableHelpMessage": "记录当前账号的历史版本",
"PleaseClickLeftAssetToViewAssetAccount": "资产账号列表,点击左侧资产进行查看",
"PleaseClickLeftApplicationToViewApplicationAccount": "应用账号列表,点击左侧应用进行查看",
"PleaseClickLeftAssetToViewGatheredUser": "收集用户列表,点击左侧资产进行查看"
@@ -49,6 +50,9 @@
"postgresql": "PostgreSQL",
"mariadb": "MariaDB",
"sqlserver": "SQLServer",
"redis": "Redis",
"mongodb": "MongoDB",
"clickhouse": "ClickHouse",
"k8s": "Kubernetes"
},
"applicationsCategory": {
@@ -88,7 +92,9 @@
"cluster": "集群",
"kubernetes":"Kubernetes",
"clusterHelpTextMessage": "例如https://172.16.8.8:8443",
"DBInfo": "数据库信息"
"DBInfo": "数据库信息",
"RDBProtocol": "关系型数据库",
"NoSQLProtocol": "非关系数据库"
},
"assets": {
"AppList": "应用列表",
@@ -105,6 +111,7 @@
"AssetDetail": "资产详情",
"AssetList": "资产列表",
"ReplaceNodeAssetsAdminUser":"替换节点资产的管理员",
"AssetTree": "资产树",
"AssetListHelpMessage": "左侧是资产树,右击可以新建、删除、更改树节点,授权资产也是以节点方式组织的,右侧是属于该节点下的资产\n",
"TestGatewayTestConnection":"测试连接网关",
"TestGatewayHelpMessage": "如果使用了nat端口映射请设置为ssh真实监听的端口",
@@ -123,7 +130,7 @@
"Charset": "字符集",
"CmdFilter": "命令过滤器",
"CommandFilterDetail": "命令过滤器详情",
"CommandFilterHelpMessage": "系统用户可以绑定一些命令过滤器,一个过滤器可以定义一些规则 当用户使用这个系统用户登录资产,然后执行一个命令 这个命令需要被绑定过滤器的所有规则匹配,高优先级先被匹配, 当一个规则匹配到了,如果规则的动作是允许,这个命令会被放行, 如果规则的动作是禁止,命令将会被禁止执行, 否则就匹配下一个规则,如果最后没有匹配到规则,则允许执行",
"CommandFilterHelpMessage": "系统用户支持绑定多个命令过滤器实现禁止输入某些命令的效果;过滤器中可配置多个规则,在使用该系统用户连接资产时,输入的命令按照过滤器中配置的规则优先级生效。<br>例:首先匹配到的规则是“允许”,则该命令执行,首先匹配到的规则为“禁止”,则禁止该命令执行;如果最后匹配到规则,则允许执行",
"CommandFilterRuleContentHelpText": "每行一个命令",
"CommandFilterRulePriorityHelpText": "优先级可选范围为1-1001最低优先级100最高优先级",
"CommandFilterRules": "命令过滤器规则",
@@ -168,6 +175,7 @@
"Other": "其它",
"Hardware": "硬件信息",
"Password": "密码",
"Passphrase": "密钥密码",
"PasswordWithoutSpecialCharHelpText": "不能包含特殊字符",
"Pending": "等待",
"Platform": "系统平台",
@@ -220,7 +228,7 @@
"sshKeyFingerprint": "SSH 指纹",
"ip": "IP",
"sshkey": "sshkey",
"SSHKey": "SSH 密钥",
"SSHSecretKey": "SSH 密钥",
"GroupsHelpMessage": "请输入用户组,多个用户组使用逗号分隔(需填写已存在的用户组)",
"HomeHelpMessage": "默认家目录 /home/系统用户名: /home/username",
"Home": "家目录",
@@ -228,6 +236,8 @@
"ipDomain": "IP(域名)",
"HostProtocol": "主机协议",
"DatabaseProtocol": "数据库协议",
"RDBProtocol": "关系型数据库",
"NoSQLProtocol": "非关系数据库",
"OtherProtocol": "其它协议",
"PasswordOrToken": "密码 / 令牌"
},
@@ -237,13 +247,28 @@
"User": "用户",
"Username": "用户名",
"View": "查看",
"SystemUserName": "系统用户名"
"SystemUserName": "系统用户名",
"LoginIP": "登录IP",
"LoginCity": "登录城市",
"LoginDate": "登录日期",
"BeforeChange": "变更前",
"AfterChange": "变更后"
},
"auth": {
"LoginRequiredMsg": "账号已退出,请重新登录",
"ReLogin": "重新登录"
"ReLogin": "重新登录",
"ReLoginTitle": "当前三方登录用户CAS/SAML未绑定 MFA 且不支持密码校验,请重新登录。",
"NeedReLogin": "需要重新登录",
"ReLoginErr": "登录时长已超过 5 分钟,请重新登录"
},
"common": {
"NoContent": "暂无内容",
"NeedAddAppsOrSystemUserErrMsg": "需要添加应用或系统用户",
"VerificationCodeSent": "验证码已发送",
"SendVerificationCode": "发送验证码",
"History": "历史",
"ChangeViewHelpText": "点击切换不同视图",
"Component": "组件",
"PrivateCloud": "私有云",
"PublicCloud": "公有云",
"Correlation": "关联",
@@ -251,15 +276,27 @@
"IPLoginLimit": "IP 登录限制",
"Setting": "设置",
"Certificate": "证书",
"CACertificate": "CA 证书",
"ClientCertificate": "客户端证书",
"CertificateKey": "证书秘钥文件",
"AllowInvalidCert": "忽略证书检查",
"UseSSL": "使用 SSL/TLS",
"SecretKey": "密钥",
"Scope": "类别",
"Builtin": "内置",
"DateCreated": "创建日期",
"UpdatedBy": "更新者",
"ViewMore": "查看更多",
"Announcement": "公告",
"Logging": "日志记录",
"RecentLogin": "最近登录",
"Database": "数据库记录",
"Params": "参数",
"BasicInfo": "基本信息",
"DateUpdated": "更新日期",
"ApprovaLevel": "审批信息",
"MFAVerify": "验证 MFA",
"CurrentUserVerify": "验证当前用户",
"ViewSecret": "查看密码",
"ConnectWebSocketError": "连接 WebSocket 失败",
"Action": "动作",
@@ -296,6 +333,7 @@
"Close": "关闭",
"Command filter": "命令过滤器",
"Comment": "备注",
"Number": "编号",
"Confirm": "确认",
"Create": "创建",
"CreatedBy": "创建者",
@@ -310,12 +348,15 @@
"Delete": "删除",
"Disable": "禁用",
"Download": "下载",
"Copy": "复制",
"CopySuccess": "复制成功",
"Enable": "启用",
"On/Off": "启/停",
"EnterForSearch": "按回车进行搜索",
"Export": "导出",
"Import": "导入",
"ContinueImport": "继续导入",
"ImportAll": "导入全部",
"Continue": "继续",
"Stop": "停止",
"Finished": "完成",
@@ -335,7 +376,7 @@
"NoData": "暂无数据",
"Open": "打开",
"Other": "其它",
"Others": "其",
"Others": "其",
"Push": "推送",
"QuickUpdate": "快速更新",
"RemoveSuccessMsg": "移除成功",
@@ -381,9 +422,12 @@
"deleteFailedMsg": "删除失败",
"deleteSelected": "删除所选",
"deleteSuccessMsg": "删除成功",
"activateSuccessMsg": "激活成功",
"deleteWarningMsg": "你确定要删除",
"disableSelected": "禁用所选",
"disableSuccessMsg": "禁用成功",
"fieldRequiredError": "这个字段是必填项",
"requiredHasUserNameMapped": "必须包含 username 字段的映射,如 { 'uid': 'username' }",
"getErrorMsg": "获取失败",
"MFAErrorMsg": "MFA错误请检查",
"Total": "总共",
@@ -402,22 +446,33 @@
"downloadImportTemplateMsg": "下载创建模板",
"downloadUpdateTemplateMsg": "下载更新模板",
"onlyCSVFilesTips": "仅支持csv文件导入",
"ImportFail": "导入失败",
"updateSuccessMsg": "导入更新成功,总共:{count}",
"uploadCsvLth10MHelpText": "只能上传 csv/xlsx, 且不超过 10M",
"dragUploadFileInfo": "将文件拖到此处,或点击上传",
"dragUploadFileInfo": "将文件拖到此处,或点击此处上传",
"hasImportErrorItemMsg": "存在导入失败项,点击左侧 x 查看失败原因,点击表格编辑后,可以继续导入失败项"
},
"fileType": "文件类型",
"isValid": "有效",
"nav": {
"TempPassword": "临时密码",
"ConnectionToken": "连接令牌",
"APIKey": "API Key",
"AdminPage": "管理页面",
"Workbench": "工作台",
"Navigation": "导航",
"Console": "控制台",
"Audits": "审计台",
"HomePage": "首页",
"QuickAccess": "快速访问",
"SwitchPage": "切换视图",
"Docs": "文档",
"Help": "帮助",
"Logout": "退出登录",
"Profile": "个人信息",
"Support": "支持",
"UserPage": "用户页面",
"Download": "下载",
"UserPage": "用户视图",
"View": "视图",
"EnterpriseEdition": "企业版"
},
"passwordOrPassphrase": "密码或密钥密码",
@@ -430,6 +485,7 @@
"Loading": "加载中"
},
"updateErrorMsg": "更新失败",
"ErrorMsg": "错误",
"updateSelected": "更新所选",
"updateSuccessMsg": "更新成功",
"SelectProperties": "选择属性",
@@ -443,10 +499,12 @@
"SPECIAL_CHAR_REQUIRED": "须包含特殊字符",
"MIN_LENGTH_ERROR": "密码最小长度 {0} 位"
},
"noAnnouncement": "暂无公告",
"lastCannotBeDeleteMsg": "最后一项,不能被删除",
"InvalidJson": "不是合法 JSON",
"time_period": "时段",
"FormatError": "格式错误",
"NotSpecialEmoji": "不允许输入特殊表情符号",
"WeekCronSelect": {
"Monday": "星期一",
"Tuesday": "星期二",
@@ -518,6 +576,7 @@
"Monthly": "按月",
"OnlineSessions": "在线会话",
"OnlineUsers": "在线用户",
"ConnectUsers": "连接用户",
"TimesWeekUnit": "次/周",
"TopAssetsOfWeek": "周资产 TOP10",
"TopUsersOfWeek": "周用户 TOP10",
@@ -570,11 +629,12 @@
"version": "版本",
"versionDetail": "版本详情",
"versionRunExecution": "执行历史",
"Unkown": "未知"
"Unkown": "未知",
"Unknown": "未知"
},
"perms": {
"": "",
"Actions": "权限",
"Actions": "动作",
"Asset": "资产",
"Basic": "基本",
"Exclude": "不包含",
@@ -621,7 +681,7 @@
"appsList":"应用列表",
"DatabaseAppCount": "数据库应用数量",
"KubernetesAppCount": "Kubernetes应用数量",
"systemUserCount": "系统用户数量",
"systemUserCount": "系统用户",
"upDownload": "上传下载",
"uploadFile": "上传文件",
"clipboardCopyPaste":"剪贴板复制粘贴",
@@ -633,13 +693,31 @@
},
"route": {
"": "",
"CreateEndpoint": "创建端点",
"UpdateEndpoint": "更新端点",
"CreateEndpointRule": "创建端点规则",
"UpdateEndpointRule": "更新端点规则",
"Index": "首页",
"SystemSetting": "系统设置",
"WorkBench": "工作台",
"Role": "角色",
"Overview": "概览",
"RoleDetail": "角色详情",
"RoleList": "角色列表",
"RoleCreate": "创建角色",
"RoleUpdate": "更新角色",
"OrgRole": "组织角色",
"SystemRole": "系统角色",
"TicketFlow": "工单流",
"TicketFlowCreate": "创建审批流",
"TicketFlowUpdate": "更新审批流",
"Accounts": "账号管理",
"AssetAccount": "资产账号",
"AssetHistoryAccount": "资产历史账号",
"ApplicationAccount": "应用账号",
"Ticket":"工单",
"MyTickets": "我的申请",
"AssignedTicketList": "待我审批",
"SessionDetail": "会话详情",
"CommandConfirm": "命令复核",
"AdminUserCreate": "创建管理用户",
@@ -657,8 +735,13 @@
"AssetPermissionUpdate": "更新资产授权规则",
"AssetUpdate": "更新资产",
"Assets": "资产管理",
"Audits": "日志审计",
"SessionsAudit": "会话审计",
"LogsAudit": "日志审计",
"SessionList": "会话记录",
"BatchCommand": "批量命令",
"TicketsTodo": "待办工单",
"TicketsDone": "已办工单",
"TicketsNew": "提交工单",
"BatchCommandLog": "批量命令",
"CeleryTaskLog": "Celery任务日志",
"CommandExecutions": "命令执行",
@@ -670,6 +753,7 @@
"CommandFilterUpdate": "更新命令过滤器",
"CommandStorageUpdate": "更新命令存储",
"Commands": "命令记录",
"FileTransfer": "文件传输",
"CreateCommandStorage": "创建命令存储",
"CreateReplayStorage": "创建录像存储",
"Dashboard": "仪表盘",
@@ -738,6 +822,7 @@
"Detail": "详情",
"SessionOffline": "历史会话",
"SessionOnline": "在线会话",
"RecentSession": "最近会话",
"Sessions": "会话管理",
"Settings": "系统设置",
"SystemUserCreate": "创建系统用户",
@@ -751,7 +836,7 @@
"Terminal": "终端管理",
"TicketDetail": "工单详情",
"TicketCreate": "创建工单",
"Tickets": "工单管理",
"Tickets": "工单列表",
"Templates": "模版管理",
"TemplateDetail": "模版详情",
"TemplateCreate": "创建模版",
@@ -772,7 +857,16 @@
"WebTerminal": "Web终端",
"Notifications": "通知",
"SiteMessageList": "站内信",
"UserLoginACL": "用户登录"
"UserLoginACL": "用户登录",
"UserLoginACLDetail": "用户登录限制",
"NoPermission403": "403 暂无权限",
"NoPermissionVew": "没有权限查看当前页面",
"AjaxError404": "404 请求错误",
"CannotAccess": "无法访问当前页面",
"GoHomePage": "去往首页"
},
"rbac": {
"Permissions": "权限"
},
"sessions": {
"SetToDefaultStorage": "设置为默认存储",
@@ -784,6 +878,7 @@
"accountName": "账户名称",
"active": "激活中",
"alive": "在线",
"noAlive": "离线",
"asset": "资产",
"target": "目标",
"bucket": "桶名称",
@@ -839,22 +934,33 @@
"riskLevels": {
"common": "普通"
},
"SessionID": "会话ID",
"TargetResources": "目标资源",
"UseProtocol": "使用协议",
"SessionState": "会话状态",
"Monitor": "监控",
"XRDPNotSupport": "RDP 客户端会话, 暂不支持监控",
"RazorNotSupport": "RDP 客户端会话, 暂不支持监控",
"sessionMonitor": "监控",
"TerminateTaskSendSuccessMsg": "终断任务已下发,请稍后刷新查看",
"helpText": {
"esUrl": "提示:如果有多台主机,请使用逗号 ( , ) 进行分割。eg: http://www.jumpserver.a.com:3000,http://www.jumpserver.b.com:3000",
"esIndex": "es提供默认indexjumpserver",
"esDocType": "es默认文档类型command",
"s3Endpoint": "S3 格式: http://s3.{REGION_NAME}.amazonaws.com<br>S3(China) 格式: http://s3.{REGION_NAME}.amazonaws.com.cn<br>如: http://s3.cn-north-1.amazonaws.com.cn",
"ossEndpoint": "OSS 格式: http://{REGION_NAME}.aliyuncs.com<br>如: http://oss-cn-hangzhou.aliyuncs.com"
"esIndex": "es 提供默认 indexjumpserver。如果开启按日期建立索引,那么输入的值会作为索引前缀",
"esDocType": "es 默认文档类型command"
}
},
"setting": {
"OAuth2LogoTip": "提示:认证服务提供商(建议图片大小为: 64px*64px",
"EndpointListHelpMessage": "服务端点是用户访问服务的地址(端口),当用户在连接资产时,会根据端点规则和资产标签选择服务端点,作为访问入口建立连接,实现分布式连接资产",
"EndpointRuleListHelpMessage": "对于服务端点选择策略,目前支持两种:<br>1、根据端点规则指定端点(当前页面)<br>2、通过资产标签选择端点标签名固定是 endpoint值是端点的名称。<br>两种方式优先使用标签匹配,因为 IP 段可能冲突,标签方式是作为规则的补充存在的。",
"EnableKoKoSSHHelpText": "开启时连接资产会显示 SSH Client 拉起方式",
"SettingInEndpointHelpText": "在 系统设置 / 终端设置 / 服务端点 中配置服务地址和端口",
"Feature": "功能",
"AlibabaCloud": "阿里云",
"TencentCloud": "腾讯云",
"HuaweiCloud": "华为云",
"SignChannelNum": "签名通道号",
"AppEndpoint": "应用接入地址",
"CMPP2": "CMPP v2.0",
"Radius": "Radius",
"VerifySignTmpl": "验证码短信模板",
"Enable": "启用",
@@ -874,6 +980,8 @@
"Cleaning": "定期清理",
"Other": "其它设置",
"CASSetting": "CAS 配置",
"CAS": "CAS",
"OIDC": "OIDC",
"Auth": "认证设置",
"SyncSetting": "同步设置",
"Advanced": "高级设置",
@@ -910,9 +1018,10 @@
"authLdapServerUri": "LDAP地址",
"authLdapUserAttrMap": "用户属性映射",
"authUserAttrMap": "用户属性映射",
"authUserAttrMapHelpText": "映射关系 {idpsp}",
"SAML2": "SAML2",
"enableSAML2Auth": "开启 SAML2 认证",
"authUserAttrMapHelpText": "左侧的键为 JumpServer 用户属性,右侧的值为认证平台用户属性",
"OAuth2": "OAuth2",
"enableOAuth2Auth": "开启 OAuth2 认证",
"tokenHTTPMethod": "Token 获取方法",
"SAML2Auth": "SAML2 认证",
"authSAML2Xml": "IDP metadata XML",
"authSAML2MetadataUrl": "IDP metadata URL",
@@ -949,7 +1058,9 @@
"LDAPServerInfo": "LDAP 服务器",
"LDAPUser": "LDAP 用户",
"helpText": {
"TempPassword": "临时密码有效期为 300 秒,使用后立刻失效",
"ApiKeyList": "使用api key签名请求头每个请求的头部是不一样的, 请查阅使用文档",
"ConnectionTokenList": "连接令牌是将身份验证和连接资产结合起来使用的一种认证信息支持用户一键登录到资产目前支持的组件包括KoKo、Lion、Magnus、Razor 等",
"authLdapSearchFilter": "可能的选项是(cn或uid或sAMAccountName=%(user)s)",
"authLdapSearchOu": "使用|分隔各OU",
"authLdapUserAttrMap": "用户属性映射代表怎样将LDAP中用户属性映射到jumpserver用户上username, name,email 是jumpserver的属性",
@@ -1026,6 +1137,8 @@
"refreshLdapCache":"刷新Ldap缓存请稍后",
"LicenseExpired": "许可证已经过期",
"LicenseWillBe": "许可证即将在 ",
"LicenseReachedAssetAmountLimit": "资产数量已经超过许可证数量限制",
"LicenseForTest": "测试用途许可证, 本许可证仅用于 开发、测试PoC和演示",
"Expire": " 过期",
"WeCom": "企业微信",
"DingTalk": "钉钉",
@@ -1035,7 +1148,14 @@
"SMS": "短信设置",
"feiShuTest": "测试",
"setting": "设置",
"SMSProvider": "短信服务商"
"SMSProvider": "短信服务商",
"SystemTools": "系统工具",
"basicTools": "基本工具",
"destinationIP": "目的地址",
"testPort": "端口",
"testTools": "测试",
"testHelpText": "请输入目的地址进行测试",
"SMSProvider": "短信服务商 / 协议"
},
"tickets": {
"OneAssigneeType": "一级受理人类型",
@@ -1057,8 +1177,8 @@
"Assignee": "处理人",
"Assignees": "待处理人",
"Close": "关闭",
"OpenStatus":"开启",
"CloseStatus":"关闭",
"OpenStatus":"审批中",
"CloseStatus":"已完成",
"Comment": "备注",
"MyTickets": "我发起的",
"RequestPerm":"授权申请",
@@ -1067,6 +1187,10 @@
"reply": "回复",
"status": "状态",
"title": "标题",
"RelevantApp": "应用",
"RelevantAsset": "资产",
"RelevantCommand": "命令",
"RelevantSystemUser": "系统用户",
"action": "动作",
"type": "类型",
"user": "用户",
@@ -1077,6 +1201,7 @@
"OpenTicket": "创建工单",
"HandleTicket": "处理工单",
"FinishedTicket": "完成工单",
"CheckViewAcceptor": "点击查看受理人",
"IP": "IP",
"Hostname": "主机名",
"Asset": "资产",
@@ -1115,11 +1240,17 @@
"UpdateNodeAssetHardwareInfo": "更新节点资产硬件信息"
},
"users": {
"InviteSuccess": "邀请成功",
"FileEncryptionPassword": "文件加密密码",
"RoleUsers": "授权用户",
"RoleInfo": "角色信息",
"RolePerms": "角色权限",
"MessageSubscription": "消息订阅",
"AuthSettings": "认证配置",
"UserName": "姓名",
"Account": "账户",
"AccountInformation": "账号信息",
"PersonalSetting": "个人设置",
"Authentication": "认证",
"Comment": "备注",
"ConfirmPassword": "确认密码",
@@ -1129,7 +1260,7 @@
"DatePasswordLastUpdated": "最后更新密码日期",
"DatePasswordUpdated": "密码更新日期",
"DescribeOfGuide": "欢迎使用JumpServer堡垒机系统获取更多信息请点击",
"Email": "邮",
"Email": "邮",
"Phone": "手机号",
"WeCom": "企业微信",
"DingTalk": "钉钉",
@@ -1150,7 +1281,8 @@
"MFAOfUserFirstLoginPersonalInformationImprovementPage": "启用多因子认证,使账号更加安全。<br/> 启用之后您将会在下次登录时进入多因子认证绑定流程;您也可以在(个人信息->快速修改->更改多因子设置)中直接绑定!",
"MFAOfUserFirstLoginUserGuidePage": "为了保护您和公司的安全,请妥善保管您的账户、密码和密钥等重要敏感信息;(如:设置复杂密码,并启用多因子认证)",
"SSHKeyOfProfileSSHUpdatePage": "复制你的公钥到这里",
"OrgRoleHelpText": "组织角色是用户在当前组织中的角色"
"OrgRoleHelpText": "组织角色是用户在当前组织中的角色",
"addRolePermissions": "创建/更新成功后,详情中添加权限"
},
"IAgree": "我同意",
"ImprovePersonalInformation": "完善个人信息",
@@ -1170,8 +1302,8 @@
"ResetAndDownloadSSHKey": "重置并下载密钥",
"ResetPublicKeyAndDownload": "重置并下载SSH密钥",
"Role": "角色",
"SuperRole": "系统角色",
"OrgRole": "组织角色",
"SystemRoles": "系统角色",
"OrgRoles": "组织角色",
"SSHKey": "SSH公钥",
"SSHKeySetting": "SSH公钥设置",
"Secure": "安全",
@@ -1238,12 +1370,14 @@
"Sender": "发送人",
"MarkAsRead": "标记已读",
"OneClickRead": "当前已读",
"AllClickRead": "全部已读",
"OneClickReadMsg": "你确定要将当前信息标记为已读吗?",
"NoUnreadMsg": "暂无未读消息",
"SiteMessage": "站内信",
"SMS": "短信"
},
"xpack": {
"Images": "图片",
"NavHelp": "导航栏链接",
"helpDocument": "文档链接",
"helpSupport": "支持链接",
@@ -1253,6 +1387,7 @@
"officialWebsiteTip": "可以更改网站导航栏 帮助 -> 官网 的网址",
"Admin": "管理员",
"Asset": "资产",
"ip": "IP",
"Database": "数据库",
"AssetCount": "资产数量",
"Auditor": "审计员",
@@ -1302,6 +1437,10 @@
"Name": "名称",
"NodeAmount": "节点数量",
"PasswordLength": "密码长度",
"ChangePassword": "更改密码",
"ModifySSHKey": "修改 SSH Key",
"Addressee": "收件人",
"OnlyMailSend": "当前只支持邮件发送",
"PasswordStrategy": "密码策略",
"SecretKeyStrategy": "密钥策略",
"RegularlyPerform": "定期执行",
@@ -1314,18 +1453,37 @@
"TimerPeriod": "定时执行周期",
"Username": "用户名"
},
"AccountBackupPlan": {
"Types": "类型",
"Backup": "备份",
"AccountBackupPlan": "账号备份",
"AccountBackupPlanCreate": "创建账号备份",
"AccountBackupPlanUpdate": "更新账号备份",
"ExecutionDetail": "执行详情",
"MailRecipient": "邮件收件人",
"IsSuccess": "是否成功",
"Reason": "原因"
},
"Cloud": {
"CloudSync": "云同步",
"ServerAccountKey": "服务账号密钥",
"IPNetworkSegment": "IP网段",
"Aliyun": "阿里云",
"Qcloud": "腾讯云",
"QcloudLighthouse": "腾讯云(轻量应用服务器)",
"QingyunPrivatecloud": "青云私有云",
"HuaweiPrivatecloud": "华为私有云",
"CTYunPrivate": "天翼私有云",
"OpenStack": "OpenStack",
"GCP": "谷歌云",
"FC": "Fusion Compute",
"LAN": "局域网",
"AWS_China": "AWS(中国)",
"AWS_Int": "AWS(国际)",
"HuaweiCloud": "华为云",
"BaiduCloud": "百度云",
"JDCloud": "京东云",
"KingSoftCloud": "金山云",
"Azure":"Azure(中国)",
"Azure_Int": "Azure(国际)",
"HostnameStrategy": "用于生成资产主机名。例如1. 实例名称 (instanceDemo)2. 实例名称和部分IP(后两位) (instanceDemo-250.1)",
@@ -1393,7 +1551,9 @@
"ImportLicenseTip": "请导入许可证",
"InterfaceSettings": "界面设置",
"License": "许可证",
"SystemMonitor": "系统监控",
"ComponentMonitor": "组件监控",
"Endpoint": "服务端点",
"EndpointRule": "端点规则",
"ServiceRatio": "组件负载统计",
"LoadStatus":"组件状态",
"NormalLoad":"正常",
@@ -1405,7 +1565,9 @@
"NoLicense": "暂无许可证",
"Node": "节点",
"Organization": {
"AllOrganization": "组织列表",
"OrganizationCreate": "创建组织",
"OrganizationLists": "组织列表",
"OrganizationDetail": "组织详情",
"OrganizationList": "组织管理",
"OrganizationUpdate": "更新组织",
@@ -1413,14 +1575,14 @@
"DeleteOrgTitle": "请确保组织内的以下信息已删除",
"DeleteOrgMsg": "用户列表、用户组、资产列表、网域列表、管理用户、系统用户、标签管理、资产授权规则",
"OrgRole": "组织角色",
"users_amount": "用户数量",
"groups_amount": "用户组数量",
"assets_amount": "资产数量",
"admin_users_amount": "特权用户数量",
"system_users_amount": "系统用户数量",
"applications_amount": "应用数量",
"asset_perms_amount": "资产授权数量",
"app_perms_amount": "应用授权数量",
"users_amount": "用户",
"groups_amount": "用户组",
"assets_amount": "资产",
"admin_users_amount": "特权用户",
"system_users_amount": "系统用户",
"applications_amount": "应用",
"asset_perms_amount": "资产授权",
"app_perms_amount": "应用授权",
"CreateOrgMsg": "请去组织详情内添加用户",
"AddOrgMembers": "添加组织成员"
},
@@ -1448,6 +1610,9 @@
"technologyConsult": "技术咨询",
"RegularlyPerform": "定期执行",
"CyclePerform": "周期执行",
"ModifyTheme": "修改主题",
"ClassicGreen": "经典绿",
"ChinaRed": "中国红",
"HelpText": {
"CrontabOfCreateUpdatePage": "例如:每周日 03:05 执行 <5 3 * * 0> <br/> 使用5位 Linux crontab 表达式 <分 时 日 月 星期> <a href=\"https://tool.lu/crontab/\" target=\"_blank\">在线工具</a> <br/> 如果同时设置了定期执行和周期执行,优先使用定期执行",
"IntervalOfCreateUpdatePage": "单位:时",

View File

@@ -0,0 +1 @@
<svg t="1659513943772" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5163" width="200" height="200"><path d="M1024 146.285714v731.428572H0V146.285714h1024z m-149.942857 94.573715L512 602.88l-362.057143-362.057143L98.267429 292.571429 512 706.340571 925.769143 292.571429l-51.748572-51.712z" fill="#7c7e7f" p-id="5164"></path></svg>

After

Width:  |  Height:  |  Size: 377 B

2
src/icons/svg/email.svg Normal file
View File

@@ -0,0 +1,2 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg t="1644305786242" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7592" width="160" height="160"><path d="M64 186.688 512 506.688 960 186.688 960 272 512 592 64 272Z" p-id="7593"></path><path d="M0 128l0 768 1024 0L1024 128 0 128zM960 832 64 832 64 192l896 0L960 832z" p-id="7594"></path></svg>

After

Width:  |  Height:  |  Size: 479 B

View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1584946926481" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2735" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z" p-id="2736"></path></svg>

After

Width:  |  Height:  |  Size: 868 B

2
src/icons/svg/logout.svg Normal file
View File

@@ -0,0 +1,2 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg t="1644392731383" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2175" width="660" height="660"><path d="M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5-32.6 32.5-70.5 58.1-112.7 75.9-43.6 18.4-90 27.8-137.9 27.8-47.9 0-94.3-9.4-137.9-27.8-42.2-17.8-80.1-43.4-112.7-75.9-32.6-32.5-58.1-70.4-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-0.4-12.3-6.7-12.3z" p-id="2176"></path><path d="M956.9 505.7L815 393.7c-5.3-4.2-13-0.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112c4.1-3.2 4.1-9.4 0-12.6z" p-id="2177"></path></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1645523497356" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8682" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M512.5 390.6c-29.9 0-57.9 11.6-79.1 32.8-21.1 21.2-32.8 49.2-32.8 79.1 0 29.9 11.7 57.9 32.8 79.1 21.2 21.1 49.2 32.8 79.1 32.8 29.9 0 57.9-11.7 79.1-32.8 21.1-21.2 32.8-49.2 32.8-79.1 0-29.9-11.7-57.9-32.8-79.1-21.2-21.2-49.2-32.8-79.1-32.8z" p-id="8683"></path><path d="M924.8 626.1l-65.4-55.9c3.1-19 4.7-38.4 4.7-57.7s-1.6-38.8-4.7-57.7l65.4-55.9c10.1-8.6 13.8-22.6 9.3-35.2l-0.9-2.6c-18.1-50.4-44.8-96.8-79.6-137.7l-1.8-2.1c-8.6-10.1-22.5-13.9-35.1-9.5l-81.2 28.9c-30-24.6-63.4-44-99.6-57.5l-15.7-84.9c-2.4-13.1-12.7-23.3-25.8-25.7l-2.7-0.5c-52-9.4-106.8-9.4-158.8 0l-2.7 0.5c-13.1 2.4-23.4 12.6-25.8 25.7l-15.8 85.3c-35.9 13.6-69.1 32.9-98.9 57.3l-81.8-29.1c-12.5-4.4-26.5-0.7-35.1 9.5l-1.8 2.1c-34.8 41.1-61.5 87.4-79.6 137.7l-0.9 2.6c-4.5 12.5-0.8 26.5 9.3 35.2l66.2 56.5c-3.1 18.8-4.6 38-4.6 57 0 19.2 1.5 38.4 4.6 57l-66 56.5c-10.1 8.6-13.8 22.6-9.3 35.2l0.9 2.6c18.1 50.3 44.8 96.8 79.6 137.7l1.8 2.1c8.6 10.1 22.5 13.9 35.1 9.5l81.8-29.1c29.8 24.5 63 43.9 98.9 57.3l15.8 85.3c2.4 13.1 12.7 23.3 25.8 25.7l2.7 0.5c26.1 4.7 52.7 7.1 79.4 7.1 26.7 0 53.4-2.4 79.4-7.1l2.7-0.5c13.1-2.4 23.4-12.6 25.8-25.7l15.7-84.9c36.2-13.6 69.6-32.9 99.6-57.5l81.2 28.9c12.5 4.4 26.5 0.7 35.1-9.5l1.8-2.1c34.8-41.1 61.5-87.4 79.6-137.7l0.9-2.6c4.3-12.4 0.6-26.3-9.5-35z m-412.3 52.2c-97.1 0-175.8-78.7-175.8-175.8s78.7-175.8 175.8-175.8 175.8 78.7 175.8 175.8-78.7 175.8-175.8 175.8z" p-id="8684"></path></svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1645506884918" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2221" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M872.554667 306.304c-22.613333 8.128-45.696 9.941333-69.162667 4.373333a119.722667 119.722667 0 0 1-85.504-158.144c1.749333-4.842667 0.853333-6.954667-3.605333-8.96-17.92-8.106667-35.541333-16.917333-53.674667-24.533333-11.925333-4.992-24.533333-8.384-36.501333-12.373333-23.146667 47.658667-59.456 74.88-112.064 74.88-52.821333 0-89.258667-27.306667-111.978667-74.538667a411.733333 411.733333 0 0 0-95.530667 39.573333c17.216 49.493333 10.922667 94.634667-26.538666 131.925334-37.376 37.205333-82.496 43.712-131.776 26.282666A413.290667 413.290667 0 0 0 106.666667 400.298667c46.933333 22.656 74.197333 58.666667 74.517333 110.997333 0.32 53.162667-26.986667 89.770667-74.538667 112.768a410.154667 410.154667 0 0 0 39.637334 95.530667c47.808-16.789333 91.669333-11.370667 128.64 23.253333 39.957333 37.44 47.274667 83.626667 29.653333 134.933333a404.949333 404.949333 0 0 0 95.530667 39.466667c23.04-47.36 59.349333-74.474667 111.978666-74.453333 52.885333 0.064 89.216 27.541333 111.893334 74.538666a411.584 411.584 0 0 0 95.488-39.616c-17.386667-49.493333-10.816-94.4 26.24-131.626666 37.290667-37.418667 82.432-43.776 132.053333-26.538667a407.637333 407.637333 0 0 0 39.509333-95.509333c-47.786667-23.210667-74.986667-59.946667-74.517333-113.066667 0.448-52.053333 27.562667-87.957333 74.56-110.656a420.394667 420.394667 0 0 0-38.016-92.970667c-2.048-3.712-4.309333-1.92-6.762667-1.066666z m85.952 82.794667a42.666667 42.666667 0 0 1-22.613334 49.642666c-34.602667 16.725333-50.176 39.146667-50.453333 72.618667-0.298667 34.282667 15.253333 57.194667 50.496 74.304a42.666667 42.666667 0 0 1 22.549333 49.536 450.304 450.304 0 0 1-43.669333 105.472 42.666667 42.666667 0 0 1-51.050667 19.178667c-36.650667-12.736-63.850667-7.68-87.808 16.362666-23.914667 24.021333-28.949333 51.093333-16.213333 87.381334a42.666667 42.666667 0 0 1-19.072 51.178666 454.229333 454.229333 0 0 1-105.344 43.690667 42.666667 42.666667 0 0 1-49.770667-22.592c-16.725333-34.688-39.509333-50.368-73.493333-50.389333-33.92-0.021333-56.597333 15.509333-73.578667 50.432a42.666667 42.666667 0 0 1-49.322666 22.570666 447.338667 447.338667 0 0 1-105.6-43.562666 42.666667 42.666667 0 0 1-19.328-50.986667c13.034667-37.973333 7.381333-65.728-18.474667-89.941333-23.594667-22.101333-50.090667-26.517333-85.333333-14.144a42.666667 42.666667 0 0 1-51.157334-19.050667 452.821333 452.821333 0 0 1-43.733333-105.450667 42.666667 42.666667 0 0 1 22.549333-49.706666c35.072-16.938667 50.666667-39.808 50.453334-74.069334-0.213333-33.642667-15.786667-56.149333-50.389334-72.853333A42.666667 42.666667 0 0 1 65.493333 389.12a455.808 455.808 0 0 1 43.541334-105.344 42.666667 42.666667 0 0 1 51.392-19.242667c36.096 12.778667 63.317333 7.722667 87.466666-16.298666 24-23.893333 29.034667-51.072 16.32-87.68a42.666667 42.666667 0 0 1 19.178667-51.050667 454.4 454.4 0 0 1 105.386667-43.669333 42.666667 42.666667 0 0 1 49.706666 22.656c16.725333 34.730667 39.509333 50.389333 73.536 50.368 33.898667 0 56.576-15.616 73.664-50.837334a42.666667 42.666667 0 0 1 51.882667-21.845333c2.517333 0.832 4.992 1.621333 9.28 2.965333l7.530667 2.346667c8.96 2.88 15.786667 5.290667 22.698666 8.192 10.154667 4.245333 18.090667 7.872 35.029334 15.829333 10.069333 4.736 14.4 6.741333 19.733333 9.152 25.024 11.306667 35.349333 36.821333 26.154667 62.336-16 44.352 9.344 91.221333 55.253333 102.144 14.805333 3.52 29.418667 2.538667 44.864-3.029333a33.28 33.28 0 0 1 4.48-1.621333c5.269333-1.621333 10.88-2.453333 17.322667-1.941334 16.853333 1.344 29.525333 11.093333 36.736 24.170667a462.890667 462.890667 0 0 1 41.813333 102.357333zM522.666667 320a202.666667 202.666667 0 1 0 166.4 86.954667 21.333333 21.333333 0 0 0-35.008 24.384 160 160 0 1 1-69.184-56.128 21.333333 21.333333 0 0 0 16.597333-39.317334A202.090667 202.090667 0 0 0 522.666667 320z" fill="#3D3D3D" p-id="2222"></path></svg>

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1645509489750" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1546" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M1021.5936 836.5056 702.3616 480.9216 1021.0304 185.0368C1022.5152 189.3376 1023.8976 193.6896 1023.8976 198.3488L1023.8976 825.6C1023.8976 829.4912 1022.5664 832.9216 1021.5936 836.5056ZM39.168 155.1872C42.0864 154.6752 44.6464 153.5488 47.5648 153.5488L976.5376 153.5488C979.456 153.5488 982.0672 154.6752 984.9344 155.1872L512.0512 572.416 39.168 155.1872ZM2.4576 836.5568C1.536 832.9728 0.1024 829.5424 0.1024 825.6L0.1024 198.3488C0.1024 193.5872 1.5872 189.2864 3.0208 184.9856L321.8432 480.9216 2.4576 836.5568ZM496.8448 618.8032C501.248 622.336 506.6752 624.0256 512.0512 624.0256 517.4784 624.0256 522.8032 622.336 527.1552 618.8032L665.7536 509.7472 988.1088 868.1984C984.32 869.12 980.6336 870.4512 976.5376 870.4512L47.5648 870.4512C43.52 870.4512 39.8336 869.12 36.096 868.1984L358.4 509.7472 496.8448 618.8032Z" p-id="1547"></path></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1645509271413" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3715" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M0 128v768h1024V128H0z m242.816 577.536L192 654.72l154.304-154.368L192 346.048l50.816-50.816L448 500.352l-205.184 205.184z m584.32 13.248H512V640h315.072v78.72z" fill="#262626" p-id="3716"></path></svg>

After

Width:  |  Height:  |  Size: 579 B

View File

@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1645509388374" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3850" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M0 64l0 896 1024 0 0-896-1024 0zM960 896l-896 0 0-768 896 0 0 768zM896 192l-768 0 0 640 768 0 0-640zM448 512l-64 0 0 64-64 0 0 64-64 0 0-64 64 0 0-64 64 0 0-64-64 0 0-64-64 0 0-64 64 0 0 64 64 0 0 64 64 0 0 64zM704 640l-192 0 0-64 192 0 0 64z" p-id="3851"></path></svg>

After

Width:  |  Height:  |  Size: 646 B

View File

@@ -32,7 +32,7 @@ export default {
/*padding: 10px 20px 10px;*/
}
.fixed-header+.app-main {
padding-top: 50px;
padding-top: 55px;
}
.hasTagsView {
.app-main {

Some files were not shown because too many files have changed in this diff Show More