Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新源码eslint规范 #1225

Open
wants to merge 614 commits into
base: lesscode-code-eslint
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
614 commits
Select commit Hold shift + click to select a range
1f79da5
锁定babel版本
zhanxu33 Jul 29, 2024
1099898
Merge pull request #1331 from zhanxu33/feature_doc_117572311
terlinhe Jul 29, 2024
5fc4320
更新babel版本
zhanxu33 Jul 29, 2024
e4d0b60
Merge pull request #1332 from zhanxu33/feature_doc_117572311
terlinhe Jul 29, 2024
4f35ba8
feat: 画布元素编辑
luofann Jul 29, 2024
7a4e11f
feat: 流程配置编辑
luofann Jul 30, 2024
38d4d2d
merge branch
luofann Jul 30, 2024
5ee54f3
feat: vue3组件库属性配置补充
LivySara Jul 31, 2024
e7fec4d
fix: 最近部署时间展示异常问题
terlinhe Jul 31, 2024
0df9b4a
feat: 英文时替换首页图片
terlinhe Jul 31, 2024
a593cda
feat: 没有应用模板时不展示推荐
terlinhe Jul 31, 2024
fb4d168
fix: textarea组件属性配置修正
LivySara Aug 1, 2024
b28d6a2
feat: sql字段增加加密提示
terlinhe Aug 1, 2024
732a124
fix: vue3的导航页面预览时多余padding置为0
LivySara Aug 1, 2024
7965f88
Merge pull request #1334 from LivySara/dev_pr
terlinhe Aug 1, 2024
ec3a456
fix: vue3tab组件画布可切换tab
terlinhe Aug 6, 2024
f2fc2b6
fix: 语言切换不符合规范 --bug=128202061
terlinhe Aug 7, 2024
e24418e
feat: title规范调整
terlinhe Aug 7, 2024
83bdb6a
fix: favicon出现拉伸 --bug=128202087
terlinhe Aug 7, 2024
3b05158
feat: 删除多余图片
terlinhe Aug 7, 2024
eb278f8
fix: 国际化问题处理
terlinhe Aug 7, 2024
535a36d
feat: 英文语言下, 只展示属性名称 --story=119082206
terlinhe Aug 7, 2024
a88f5fd
fix: catch网关报错
terlinhe Aug 7, 2024
a1eaa90
fix: bkrepo/npm前置判断
terlinhe Aug 7, 2024
6fbee86
feat: apigw文档调整
terlinhe Aug 7, 2024
cbe0c3f
feat: apigw文档调整
terlinhe Aug 7, 2024
efd95fa
Merge pull request #1335 from terlinhe/feat_config
ielgnaw Aug 7, 2024
d846861
fix: 修复表单容器按钮隐藏失效问题
terlinhe Aug 8, 2024
d7d5ab7
fix: 编辑属性时, 当中文输入, 偶现拼音跟中文一起输入 --bug=128667599
terlinhe Aug 8, 2024
c7401de
fix: 修复表单容器按钮隐藏失效问题 --bug=128667647
terlinhe Aug 8, 2024
4ebc83b
Merge pull request #1336 from terlinhe/feat_config
ielgnaw Aug 8, 2024
645582f
feat: 全局配置支持productName --story=119166622
terlinhe Aug 13, 2024
aae1a31
Merge pull request #1337 from terlinhe/feat_config
ielgnaw Aug 13, 2024
dbce2c3
feat: v1.1.8changelog
terlinhe Aug 19, 2024
5b7c2d4
feat: v1.1.8changelog
terlinhe Aug 19, 2024
35f7bed
Merge pull request #1338 from terlinhe/feat_config
ielgnaw Aug 19, 2024
63d56db
feat: 流程结构转换
luofann Aug 22, 2024
7957593
feat: 画布元素绑定操作流程事件
luofann Aug 23, 2024
3ee538a
feat: 流程任务相关调试
luofann Aug 26, 2024
2bb5e68
feat: 数据处理节点
luofann Aug 28, 2024
bfc5e8f
feat: 人工节点联调
luofann Aug 28, 2024
c9fafec
feat: 表单绑定预览
luofann Aug 29, 2024
945ed01
fix: 源码changelang方法缺少,
terlinhe Aug 29, 2024
7dab14b
feat: 表单绑定编辑
luofann Aug 29, 2024
d99f3fa
Merge pull request #1333 from luofann/feat_integration_bkflow
terlinhe Aug 30, 2024
41aa0ac
Merge pull request #1340 from TencentBlueKing/develop
terlinhe Aug 30, 2024
ba3fd10
feat: 增加应用内是否有旧流程判断,动态设侧边导航项
luofann Aug 30, 2024
4fa8a1d
Merge pull request #1341 from luofann/feat_integration_bkflow
terlinhe Aug 30, 2024
4142383
Merge pull request #1342 from TencentBlueKing/develop
terlinhe Aug 30, 2024
ae21df7
feat: 任务状态对接BkFlow
luofann Sep 2, 2024
bd23438
feat: 流程通知配置
luofann Sep 2, 2024
8d15038
Merge pull request #1343 from luofann/feat_integration_bkflow
terlinhe Sep 2, 2024
db595f5
Merge pull request #1344 from TencentBlueKing/develop
terlinhe Sep 2, 2024
3c6e4de
fix: vue2应用旧流程导航入口切换判断条件修改
luofann Sep 2, 2024
8eaf545
Merge pull request #1345 from luofann/feat_integration_bkflow
terlinhe Sep 2, 2024
daa376a
Merge pull request #1346 from TencentBlueKing/develop
terlinhe Sep 2, 2024
396dcb3
feat: 添加 flow 管理容器,已在 vue2 验证; 待 vue3 验证、getFilter 方法以及FIELDS_NOT_DIS…
forrany Aug 22, 2024
70f68ff
Merge pull request #1347 from forrany/feat_integration_bkflow
terlinhe Sep 3, 2024
03dbcd2
Merge pull request #1332 from zhanxu33/feature_doc_117572311
LivySara Jul 31, 2024
b1ac894
feat: vue2.6.x升级到vue2.7.x
LivySara Aug 1, 2024
dcfc21e
feat: vue2组件缺失的属性补充
LivySara Sep 3, 2024
fc5406c
添加 vue3 & 修复交互问题
forrany Sep 4, 2024
32d3646
chore: 引入@vue/composition-api改为vue
LivySara Sep 6, 2024
ef858fe
Merge pull request #1348 from LivySara/vue2_update
terlinhe Sep 6, 2024
4f26a06
Merge pull request #1349 from forrany/feat_integration_bkflow
terlinhe Sep 9, 2024
741abc4
feat: 基于vue2的组件库事件displayName配置添加
LivySara Sep 10, 2024
12ad388
fix: 流程验收问题修复
luofann Sep 10, 2024
0dcc5c2
minor: 任务列表支持按创建人和创建时间筛选
luofann Sep 10, 2024
f566671
Merge pull request #1350 from luofann/feat_integration_bkflow
terlinhe Sep 10, 2024
ac3177c
feat: 基于vue3的组件库事件displayName配置添加
LivySara Sep 10, 2024
8cd21e1
Merge pull request #1351 from LivySara/dev_local
terlinhe Sep 10, 2024
7e4780a
minor: 国际化修改
luofann Sep 14, 2024
afd9f87
feat: vue2组件属性分类
LivySara Sep 19, 2024
c347244
Merge pull request #1352 from LivySara/dev_local
terlinhe Sep 19, 2024
304b63a
fix: 属性名样式
LivySara Sep 20, 2024
ddbc106
fix: 补充vue2表单容器组件属性分类
LivySara Sep 20, 2024
ce1e35b
feat: vue3组件属性分类
LivySara Sep 20, 2024
424ec54
Merge branch 'develop' of https://github.com/TencentBlueKing/bk-lessc…
terlinhe Sep 21, 2024
068cbb4
fix: 修改cheerio版本
terlinhe Sep 21, 2024
0c96032
feat: 文案规范修改
terlinhe Sep 21, 2024
1654efc
feat: 插槽配置渲染页面修改
LivySara Sep 23, 2024
4d86218
feat: vue2组件插槽配置belongGroup添加
LivySara Sep 23, 2024
004cd1e
feat: vue3组件插槽配置belongGroup添加
LivySara Sep 23, 2024
7b15b1b
Merge pull request #1353 from LivySara/dev_local
terlinhe Sep 23, 2024
9c954fb
feat: 使用chrome浏览器提示
terlinhe Sep 23, 2024
47c3283
Merge pull request #1354 from terlinhe/feat_config
ielgnaw Sep 23, 2024
99c3866
flowManage 组件适配下载和部署
forrany Sep 23, 2024
8f9dc38
Merge pull request #1355 from forrany/feat_integration_bkflow
terlinhe Sep 23, 2024
35ebb71
fix: 插槽和属性分组UI细节修改
LivySara Sep 23, 2024
c718118
Merge pull request #1356 from LivySara/dev_local
terlinhe Sep 23, 2024
603d766
fix: vue2组件插槽和属性分组修改
LivySara Sep 24, 2024
163293e
fix: vue3组件插槽和属性分组修改
LivySara Sep 24, 2024
a448b07
feat: 表单、表单容器&数据管理容器属性面板样式调整
LivySara Sep 24, 2024
c56606d
feat: 页面&表单容器内表单项属性配置UI调整
LivySara Sep 24, 2024
0ffcc9f
Merge pull request #1357 from LivySara/dev_local
terlinhe Sep 24, 2024
9aa7df7
fix: 页面开发中配置页面样式进行微调
LivySara Sep 25, 2024
c67f257
Merge pull request #1358 from LivySara/dev_local
terlinhe Sep 25, 2024
f0afae7
fix: 搜索属性时进入页面条件修改
LivySara Sep 26, 2024
c09f2ed
Merge pull request #1359 from LivySara/dev_local
terlinhe Sep 26, 2024
3fb417c
feat: vue2的vant组件属性和插槽分组
LivySara Sep 27, 2024
173358d
feat: vue3的vant组件属性和插槽分组
LivySara Sep 27, 2024
1745d04
Merge branch 'lesscode-nocode' into feat_integration_bkflow
luofann Sep 30, 2024
4187e95
feat: echarts配置部分简化
LivySara Sep 30, 2024
de70c5f
feat: 处理bktooltips默认allowHTML属性
terlinhe Oct 1, 2024
0b6993e
feat: 兼容当组件的数据中,含有连字符跟驼峰格式的的相同属性 --story=119941102
terlinhe Oct 4, 2024
af72b22
Merge branch 'develop' of https://github.com/TencentBlueKing/bk-lessc…
terlinhe Oct 4, 2024
dc42871
Merge pull request #1360 from LivySara/dev_local
terlinhe Oct 8, 2024
7936ada
fix: project id置空
terlinhe Oct 8, 2024
5dea56b
Merge pull request #1361 from terlinhe/feat_config
ielgnaw Oct 8, 2024
7c8f021
fix: 新增数据入库时置空id字段
terlinhe Oct 11, 2024
bf15fc9
fix: 不返回codeurl
terlinhe Oct 11, 2024
d6be3ea
fix: 部署后iamappid
terlinhe Oct 12, 2024
de3c0da
Merge pull request #1363 from terlinhe/feat_config
ielgnaw Oct 12, 2024
02115c3
优化AI使用模板的流程
zhanxu33 Oct 12, 2024
05ee977
Merge pull request #1364 from zhanxu33/develop
terlinhe Oct 12, 2024
78391c5
refactor: 数据管理容器详情
luofann Oct 13, 2024
9505abf
fix: 流程跳转问题修复
luofann Oct 14, 2024
afb0074
Merge pull request #1365 from luofann/feat_integration_bkflow
terlinhe Oct 14, 2024
76da16b
refactor: 移动端页面去掉表单编辑器相关菜单模块
luofann Oct 14, 2024
037bb69
Merge pull request #1366 from luofann/feat_integration_bkflow
terlinhe Oct 14, 2024
bc4acd1
refactor: 画布元素事件绑定执行流程操作增加部署状态逻辑相关优化
luofann Oct 14, 2024
789e277
feat: 模板中应用变量和函数资源脱离项目
LivySara Oct 14, 2024
2649a53
feat: 模板市场未添加应用不可拖拽
LivySara Oct 14, 2024
ee2e070
Merge pull request #1367 from luofann/feat_integration_bkflow
terlinhe Oct 14, 2024
6c31a65
feat: 市场模板直接预览时需传递变量和函数
LivySara Oct 14, 2024
29fc9ef
feat: 模板市场直接下载源码时需传递变量和函数
LivySara Oct 14, 2024
e377069
Merge pull request #1362 from LivySara/dev_local
terlinhe Oct 14, 2024
40d1b3f
fix: 新增时id置空问题修复
terlinhe Oct 14, 2024
387e71f
Merge pull request #1368 from terlinhe/feat_config
ielgnaw Oct 14, 2024
3650ead
fix: newFuncGroups传值修改
LivySara Oct 15, 2024
b58e3e1
Merge pull request #1369 from LivySara/dev_local
terlinhe Oct 15, 2024
b50bd8c
feat: 数据处理节点支持选择流程前置节点中的表单变量
luofann Oct 15, 2024
f9c9cc0
update: 流程添加分页 & formId 逻辑修改
forrany Oct 15, 2024
73ee64b
fix: 修复节点表单出现 undefined 接口的问题
forrany Oct 15, 2024
d783647
refactor: 流程变量值替换
luofann Oct 15, 2024
00264e4
Merge pull request #1371 from forrany/feat_integration_bkflow
terlinhe Oct 15, 2024
5e39a22
Merge pull request #1370 from luofann/feat_integration_bkflow
terlinhe Oct 15, 2024
83983a0
refator: 增加系统自动添加数据处理节点逻辑
luofann Oct 16, 2024
8077b20
Merge pull request #1372 from luofann/feat_integration_bkflow
terlinhe Oct 16, 2024
599c7ba
feat: 流程详情页增加url中的流程id是否属于当前项目维度的判断
luofann Oct 16, 2024
c4126e1
fix: 请求参数错误修复
luofann Oct 16, 2024
be25b02
minor: 流程通知方式去掉企微机器人
luofann Oct 16, 2024
9c49793
Merge pull request #1373 from luofann/feat_integration_bkflow
terlinhe Oct 16, 2024
5805687
refactor: 网关回写接口去掉项目鉴权装饰器
luofann Oct 16, 2024
e970ea2
Merge pull request #1374 from luofann/feat_integration_bkflow
terlinhe Oct 16, 2024
ca05c4b
refator: 旧流程自动创建表单时表名统一做小写处理
luofann Oct 16, 2024
348571c
Merge pull request #1375 from luofann/feat_integration_bkflow
ielgnaw Oct 16, 2024
ce4d433
feat: 流程编辑页测试执行功能
luofann Oct 16, 2024
8dbdefa
minor: 联调环境网关stage取值修改
luofann Oct 16, 2024
0f759d3
Merge pull request #1376 from luofann/feat_integration_bkflow
terlinhe Oct 17, 2024
90cf940
feat: 测试执行流程节点处理面板
luofann Oct 17, 2024
37e88d3
minor: 去掉debug代码
luofann Oct 17, 2024
b5c8fae
Merge pull request #1377 from luofann/feat_integration_bkflow
terlinhe Oct 17, 2024
e89d183
fix: 退出测试执行流程
luofann Oct 17, 2024
3e9fca8
Merge pull request #1378 from luofann/feat_integration_bkflow
terlinhe Oct 17, 2024
1cc80a2
fix: 画布、saas页面卸载时释放锁调整
LivySara Oct 17, 2024
ac28810
Merge pull request #1379 from LivySara/dev_local
terlinhe Oct 17, 2024
d371a11
fix: 同一属性的短线和驼峰命名的值转换
LivySara Oct 18, 2024
873f282
Merge pull request #1380 from LivySara/dev_local
terlinhe Oct 18, 2024
1959559
fix: 流程测试相关问题修复
luofann Oct 18, 2024
3b4d47d
Merge pull request #1381 from luofann/feat_integration_bkflow
terlinhe Oct 18, 2024
b222281
feat: 应用部署对接流程
luofann Oct 22, 2024
e5f2858
merge branch
luofann Oct 22, 2024
e04e6e4
feat: 应用部署调试
luofann Oct 22, 2024
32c09c4
feat: 流程应用部署调试
luofann Oct 22, 2024
7068d2f
feat: 应用部署对接流程调试
luofann Oct 22, 2024
50b0f18
Merge pull request #1382 from luofann/feat_integration_bkflow
terlinhe Oct 22, 2024
8dbc57e
refactor: 平台部署的应用在引擎服务收敛为一个空间
luofann Oct 22, 2024
1e3e05d
refactor: 源码eslint规范修复
luofann Oct 22, 2024
9692c41
refactor: 认证信息模板字符串替换
luofann Oct 22, 2024
42c1e5b
refactor: 应用源码分别适配vue2/3
luofann Oct 22, 2024
e256001
Merge pull request #1383 from luofann/feat_integration_bkflow
terlinhe Oct 23, 2024
d8291a5
refactor: 应用生成源码修改
luofann Oct 25, 2024
312de0c
refactor: vue3源码render修改
luofann Oct 25, 2024
4f039db
Merge pull request #1384 from luofann/feat_integration_bkflow
ielgnaw Oct 25, 2024
9dc6962
fix: vue3应用流程数据管理容器render函数语法配置修复
luofann Oct 25, 2024
0c234a0
refactor: 去掉多余的国际化
luofann Oct 25, 2024
8f858ff
Merge pull request #1385 from luofann/feat_integration_bkflow
ielgnaw Oct 25, 2024
5e035af
refactor: 应用生成网关增加新版流程判断
luofann Oct 28, 2024
4c447e3
refactor: 去掉多余空格
luofann Oct 28, 2024
2a8b13e
Merge pull request #1386 from luofann/feat_integration_bkflow
terlinhe Oct 28, 2024
e6d85cb
refactor: 部署应用时网关为自己授权
luofann Oct 28, 2024
7d9f5c1
Merge pull request #1387 from luofann/feat_integration_bkflow
terlinhe Oct 28, 2024
fc2c2ba
fix: 体验问题修复(文案优化)
forrany Oct 29, 2024
d821271
Merge pull request #1388 from forrany/feat_integration_bkflow
terlinhe Oct 29, 2024
6da5bd3
fix: 修复部署应用的流程数据管理容器问题
luofann Oct 29, 2024
732a26e
refactor: 去掉多余逗号
luofann Oct 29, 2024
13dc754
Merge pull request #1389 from luofann/feat_integration_bkflow
terlinhe Oct 30, 2024
66f4865
feat: 体验问题修复
terlinhe Nov 1, 2024
196f448
feat: 允许用户自定义表名并在表单选择对话框中显示表名和表名提示信息
forrany Nov 4, 2024
5b57890
Merge pull request #1390 from forrany/feat_integration_bkflow
terlinhe Nov 4, 2024
549dd12
feat: 流程表单画布保存是支持自定义输入数据表表名
luofann Nov 4, 2024
4bf480f
feat: 人工节点数据表表名默认值修改
luofann Nov 5, 2024
e42efd1
fix: 编辑页面属性面板样式修复
LivySara Nov 5, 2024
b70f90a
feat: 体验问题修复
terlinhe Nov 5, 2024
7f28646
refactor: 数据表表名相关问题优化
luofann Nov 5, 2024
adb3235
Merge pull request #1392 from LivySara/dev_local
terlinhe Nov 6, 2024
1263165
refactor: 数据管理容器数据表可选项显示名称优化
luofann Nov 6, 2024
c0e8910
fix: 应用模板时添加framework字段
LivySara Nov 6, 2024
f17c878
Merge pull request #1395 from LivySara/dev_local
terlinhe Nov 6, 2024
529e54b
refactor: 部署应用在bkflow按单独空间隔离
luofann Nov 6, 2024
02d882f
feat: lesscode网关apiname支持通过环境变量配置
luofann Nov 7, 2024
ccf6607
refactor: 取应用配置文件修改
luofann Nov 7, 2024
48d7ff7
解决代码冲突
luofann Nov 7, 2024
bc6cf97
feat: v1.1.9 changelog
terlinhe Nov 7, 2024
fd501a1
Merge pull request #1398 from luofann/feat_integration_bkflow
terlinhe Nov 7, 2024
44fae71
Merge pull request #1399 from terlinhe/feat_config
ielgnaw Nov 7, 2024
16796aa
refactor: 去掉vue composition-api模块的导入
luofann Nov 7, 2024
f52f8fb
Merge pull request #1400 from luofann/feat_integration_bkflow
terlinhe Nov 7, 2024
87824ba
fix: 应用源码网关访问环境改为从环境变量读取
luofann Nov 7, 2024
bd66784
refactor: 应用源码babel依赖声明版本支持npm8以下版本
luofann Nov 7, 2024
c47a95b
Merge pull request #1402 from luofann/feat_integration_bkflow
terlinhe Nov 7, 2024
b71ad47
feat: 创建bkflow空间时传入管理员信息
luofann Nov 8, 2024
953e7e3
fix: 兼容旧数据中renderEvents缺少新属性的问题
terlinhe Nov 8, 2024
2007a84
Merge pull request #1405 from terlinhe/feat_config
ielgnaw Nov 8, 2024
baecefc
fix: 修复移动端模板预览的问题
forrany Nov 11, 2024
89662ef
Merge pull request #1406 from forrany/bugfix/mobile-preview1
terlinhe Nov 11, 2024
93eb93c
fix: vue3表格物料部分属性未生效修复
LivySara Nov 11, 2024
bb31d60
Merge pull request #1407 from LivySara/dev_local
terlinhe Nov 11, 2024
923f768
fix: 设置应用公开时异常问题
terlinhe Nov 11, 2024
1ead6a7
feat: 数据表api增加函数示例
terlinhe Nov 11, 2024
74d0cbe
feat(flow-manage-container): 添加图标 & 优化交互和UI
forrany Nov 13, 2024
e518517
Merge pull request #1408 from forrany/bugfix/flow-style
terlinhe Nov 13, 2024
4c931be
Merge pull request #1403 from luofann/feat_integration_bkflow
terlinhe Nov 13, 2024
f89a406
feat: 表单容器文案修改
terlinhe Nov 14, 2024
bdeb1ff
merge
terlinhe Nov 14, 2024
58f8b8a
Merge pull request #1410 from terlinhe/feat_config
ielgnaw Nov 14, 2024
06357f5
feat: 页面配置增加pagecode字段展示
terlinhe Nov 14, 2024
ff2f9b4
refactor(project-code): 增加对数据库中未设置框架的兼容性处理 & 默认为 vue2
forrany Nov 14, 2024
df792c0
Merge pull request #1411 from forrany/bugfix/flow-style
terlinhe Nov 14, 2024
f5b8756
refactor(preview): 增加移动端预览的高度调整逻辑【仅在移动端预览时,设置 swiper-container 的高度】
forrany Nov 15, 2024
6ccb0f6
fix: trycatch时响应内容用ctx.send
LivySara Nov 18, 2024
afe2b93
Merge branch 'develop' of https://github.com/TencentBlueKing/bk-lessc…
terlinhe Nov 19, 2024
3238f1a
fix: vue3中table列配置隐藏多选框&索引
LivySara Nov 26, 2024
b4a5db8
Merge pull request #1414 from LivySara/dev_local
terlinhe Nov 26, 2024
6294c82
fix: sideslider默认层级问题
terlinhe Nov 26, 2024
0c935f9
Merge pull request #1415 from terlinhe/feat_config
ielgnaw Nov 26, 2024
20ecf4a
Merge pull request #1412 from forrany/bugfix/flow-style
terlinhe Nov 26, 2024
36cf716
feat(移动布局): 增强移动页面容器功能 & 优化交互
forrany Nov 13, 2024
8bb8b22
Merge pull request #1413 from forrany/bugfix/mobile-preview1
terlinhe Nov 26, 2024
6755d5e
fix(preview): 修复移动端预览Swiper高度设置
forrany Nov 26, 2024
2bcd46b
Merge pull request #1416 from forrany/bugfix/mobile-preview1
terlinhe Nov 26, 2024
b315516
优化AI小鲸组件
zhanxu33 Dec 2, 2024
0f57860
Merge pull request #1418 from zhanxu33/develop
terlinhe Dec 2, 2024
99f1de4
AI小鲸组件优化
zhanxu33 Dec 2, 2024
a7edf4b
Merge pull request #1419 from zhanxu33/develop
terlinhe Dec 2, 2024
4bf6451
ai小鲸组件优化
zhanxu33 Dec 2, 2024
ce81f03
Merge pull request #1420 from zhanxu33/develop
terlinhe Dec 2, 2024
5a68b88
修改导出的date格式
zhanxu33 Dec 6, 2024
e2b090b
关闭小鲸划词功能
zhanxu33 Dec 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .bk.production.env
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,16 @@ BK_COMPONENT_API_URL = {{ BK_COMPONENT_API_URL }}
// cookie domian
BKPAAS_BK_DOMAIN = {{ BKPAAS_BK_DOMAIN }}

// share url
BK_SHARED_RES_URL = {{ BK_SHARED_RES_URL }}

// apigateway 地址
BK_API_GATEWAY_ORIGIN = ${BK_API_URL_TMPL}

// 静态资源前缀
BK_STATIC_URL = {{ BK_STATIC_URL }}


// itsm 地址
BK_ITSM_URL =

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ lib/server/conf/data-source.js
lib/server/conf/encrypt-secret-key.js
lib/server/conf/no-code.js
lib/server/conf/iam.js
lib/server/conf/flow.js

!lib/server/project-template/project-init-code/bin
lib/server/project-template/project-target*
Expand Down
6 changes: 3 additions & 3 deletions lib/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
<!DOCTYPE html>
<html>
<head>
<link rel="icon" href="<%= process.env.BK_STATIC_URL %>/static/images/logo.png" type="image/x-icon" />
<link rel="shortcut icon" href="<%= process.env.BK_STATIC_URL %>/static/images/logo.png" type="image/x-icon" />
<link rel="shortcut icon" type="image/x-icon" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<title>运维开发平台 | 腾讯蓝鲸智云</title>
<title>运维开发平台 | 蓝鲸智云</title>
<script>
var customCompontensPlugin = []
function register(callback) {
Expand All @@ -31,6 +30,7 @@
var BKPAAS_ENVIRONMENT = '<%= process.env.BK_PAAS_ENVIRONMENT %>'
var BK_COMPONENT_API_URL = '<%= process.env.BK_COMPONENT_API_URL %>'
var BKPAAS_BK_DOMAIN = '<%= process.env.BKPAAS_BK_DOMAIN %>'
var BK_SHARED_RES_URL = '<%= process.env.BK_SHARED_RES_URL %>'
var BK_API_URL_TMPL = '{{ BK_API_URL_TMPL }}'
var BKPAAS_ENGINE_REGION = '<%= process.env.BK_PAAS_ENGINE_REGION %>'
var BK_APP_APIGW_PREFIX = '<%= process.env.BK_API_GATEWAY_ORIGIN.replace('{api_name}', 'bk-lesscode') + '/' + process.env.BK_LESSCODE_ENVIRONMENT || '' %>'
Expand Down
7 changes: 3 additions & 4 deletions lib/client/preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@
<!DOCTYPE html>
<html>
<head>
<link rel="icon" href="<%= process.env.BK_STATIC_URL %>/static/images/logo.png" type="image/x-icon" />
<link rel="shortcut icon" href="<%= process.env.BK_STATIC_URL %>/static/images/logo.png" type="image/x-icon" />
<link rel="shortcut icon" href="<%= process.env.BK_STATIC_URL %>/static/images/favion.png" type="image/x-icon" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>运维开发平台 | 腾讯蓝鲸智云</title>
<title>运维开发平台 | 蓝鲸智云</title>
<style>
html, body, #app {
html, body, #preview-app, #app {
height: 100%;
}
html::-webkit-scrollbar {
Expand Down
22 changes: 18 additions & 4 deletions lib/client/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
</section>
<section v-else-if="authed">
<div id="app" :class="systemCls">
<chrome-tips :domain="cookieDomain" />
<notice-component :api-url="noticeUrl" @show-alert-change="showAlertChange" />
<app-header></app-header>
<div class="page-body" :style="{ height: bodyHeight }" >
Expand All @@ -38,15 +39,21 @@
import ApplyPage from './components/apply-permission/apply-page.vue'
import NoticeComponent from '@blueking/notice-component-vue2'
import '@blueking/notice-component-vue2/dist/style.css'
import ChromeTips from '@blueking/chrome-tips/vue2'
import '@blueking/chrome-tips/vue2/vue2.css'

import { getPlatformConfig, setDocumentTitle, setShortcutIcon } from '@blueking/platform-config';

export default {
name: 'app',
components: {
ApplyPage,
NoticeComponent
NoticeComponent,
ChromeTips
},
data () {
return {
cookieDomain: window.BKPAAS_BK_DOMAIN,
noticeUrl: `${process.env.BK_AJAX_URL_PREFIX}/notice-center/getNoticeList`,
systemCls: 'mac',
position: 'middle',
Expand Down Expand Up @@ -82,6 +89,7 @@

computed: {
...mapGetters(['mainContentLoading', 'bodyHeight']),
...mapGetters('platformConfig', ['defaultConfig', 'platformConfig']),
emptyPage () {
return this.$route.name === 'preview' || this.$route.name === 'previewTemplate' || this.$route.name === 'previewMobile' || this.$route.meta?.navigation === 'empty'
},
Expand Down Expand Up @@ -117,6 +125,7 @@
this.$once('hook:beforeDestroy', () => {
bus.$off('not-exist', this.notExistHold)
})
this.initPlatformConfig()
await Promise.all([
this.$store.dispatch('checkIamNoResourcesPerm'),
this.$store.dispatch('ai/checkAiAvailable'),
Expand All @@ -129,9 +138,6 @@
if (platform.indexOf('win') === 0) {
this.systemCls = 'win'
}
bus.$on('redirect-login', data => {
window.location.replace(data.loginUrl)
})
},
methods: {
permissionHold (authResult) {
Expand All @@ -146,6 +152,14 @@

showAlertChange (isShow) {
this.$store.commit('updateShowAlertNotice', isShow)
},

async initPlatformConfig () {
const url = `${window.BK_SHARED_RES_URL}/lesscode/base.js`
const config = await getPlatformConfig(url, this.defaultConfig)
this.$store.commit('platformConfig/update', config)
setDocumentTitle(config.i18n)
setShortcutIcon(config.favicon)
}
}
}
Expand Down
14 changes: 11 additions & 3 deletions lib/client/src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import RequestQueue from './request-queue'
import { bus } from '../common/bus'
import { bkMessage } from 'bk-magic-vue'

import { showLoginModal } from '@blueking/login-modal'

// 解析错误
axios.interceptors.response.use(
// 后端 API 响应成功(http status 200)
Expand Down Expand Up @@ -68,13 +70,19 @@ axios.interceptors.response.use(undefined, error => {
switch (code) {
// 用户登录状态失效
case 401:
bus.$emit('redirect-login', response.data.data || {})
const successUrl = `${window.location.origin}/static/login_success.html`

const loginBaseUrl = new URL(process.env.BK_LOGIN_URL + '/')

const loginUrl = `${loginBaseUrl}plain/?c_url=${encodeURIComponent(successUrl)}`

showLoginModal({ loginUrl })
}
// 全局捕获错误给出提示
if (response) {
const { config } = response
if (config.globalError) {
bkMessage({ theme: 'error', message, ellipsisLine: 3 })
bkMessage({ theme: 'error', message, ellipsisLine: 3, limit: 1 })
}
}
return Promise.reject(error)
Expand Down Expand Up @@ -133,7 +141,7 @@ allMethods.forEach(method => {
Object.defineProperty(http, method, {
get () {
return (url, payload, config = {}) => {
const execResult = /\/project\/([^\/]+)/.exec(location.href) || []
const execResult = /\/project\/([^(\/|\?)]+)/.exec(location.href) || []
const axiosConfig = {
baseURL: `${process.env.BK_AJAX_URL_PREFIX}`,
url,
Expand Down
2 changes: 1 addition & 1 deletion lib/client/src/api/pureAxios.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function handleReject (error, config) {
* @return {Promise} 本次 http 请求的 Promise
*/
function initConfig (method, url, userConfig) {
const execResult = /\/project\/([^\/]+)/.exec(location.href) || []
const execResult = /\/project\/([^(\/|\?)]+)/.exec(location.href) || []
const defaultConfig = {
...getCancelToken(),
// http 请求默认 id
Expand Down
Loading