Skip to content

Commit

Permalink
feat: 操作记录
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 18771
  • Loading branch information
leafage-collb committed Sep 19, 2024
1 parent 1faba91 commit cbfc01f
Show file tree
Hide file tree
Showing 20 changed files with 1,227 additions and 18 deletions.
60 changes: 60 additions & 0 deletions webfe/package_vue/src/assets/iconfont/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -1485,6 +1485,30 @@ <h2 class="page-title">
<span class="icon paasng-icon paasng-diff-4"></span>
<p class="icon-text">diff-4</p>
</li>
<li class="icon-item" title="cronjob">
<span class="icon paasng-icon paasng-cronjob"></span>
<p class="icon-text">cronjob</p>
</li>
<li class="icon-item" title="ing">
<span class="icon paasng-icon paasng-ing"></span>
<p class="icon-text">ing</p>
</li>
<li class="icon-item" title="deploy-5">
<span class="icon paasng-icon paasng-deploy-5"></span>
<p class="icon-text">deploy-5</p>
</li>
<li class="icon-item" title="job">
<span class="icon paasng-icon paasng-job"></span>
<p class="icon-text">job</p>
</li>
<li class="icon-item" title="svc">
<span class="icon paasng-icon paasng-svc"></span>
<p class="icon-text">svc</p>
</li>
<li class="icon-item" title="caozuojilu">
<span class="icon paasng-icon paasng-caozuojilu"></span>
<p class="icon-text">caozuojilu</p>
</li>
</ul>
<h3 class="describe-title">为什么使用</h3>
<ul class="use-describe">
Expand Down Expand Up @@ -3554,6 +3578,42 @@ <h3 class="describe-title">如何使用</h3>
</svg>
<p class="icon-text">diff-4</p>
</li>
<li class="colorful-icon">
<svg class="icon svg-icon">
<use xlink:href="#paasng-cronjob"></use>
</svg>
<p class="icon-text">cronjob</p>
</li>
<li class="colorful-icon">
<svg class="icon svg-icon">
<use xlink:href="#paasng-ing"></use>
</svg>
<p class="icon-text">ing</p>
</li>
<li class="colorful-icon">
<svg class="icon svg-icon">
<use xlink:href="#paasng-deploy-5"></use>
</svg>
<p class="icon-text">deploy-5</p>
</li>
<li class="colorful-icon">
<svg class="icon svg-icon">
<use xlink:href="#paasng-job"></use>
</svg>
<p class="icon-text">job</p>
</li>
<li class="colorful-icon">
<svg class="icon svg-icon">
<use xlink:href="#paasng-svc"></use>
</svg>
<p class="icon-text">svc</p>
</li>
<li class="colorful-icon">
<svg class="icon svg-icon">
<use xlink:href="#paasng-caozuojilu"></use>
</svg>
<p class="icon-text">caozuojilu</p>
</li>
</ul>
<h3 class="describe-title">为什么使用</h3>
<ul class="use-describe">
Expand Down
Binary file modified webfe/package_vue/src/assets/iconfont/fonts/iconcool.eot
Binary file not shown.
18 changes: 18 additions & 0 deletions webfe/package_vue/src/assets/iconfont/fonts/iconcool.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified webfe/package_vue/src/assets/iconfont/fonts/iconcool.ttf
Binary file not shown.
Binary file modified webfe/package_vue/src/assets/iconfont/fonts/iconcool.woff
Binary file not shown.
2 changes: 1 addition & 1 deletion webfe/package_vue/src/assets/iconfont/iconcool.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion webfe/package_vue/src/assets/iconfont/iconcool.json

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions webfe/package_vue/src/assets/iconfont/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1049,3 +1049,21 @@ url("fonts/iconcool.eot?#iefix") format("embedded-opentype");
.paasng-diff-4:before {
content: "\e270";
}
.paasng-cronjob:before {
content: "\e280";
}
.paasng-ing:before {
content: "\e283";
}
.paasng-deploy-5:before {
content: "\e282";
}
.paasng-job:before {
content: "\e284";
}
.paasng-svc:before {
content: "\e281";
}
.paasng-caozuojilu:before {
content: "\e285";
}
57 changes: 57 additions & 0 deletions webfe/package_vue/src/common/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,3 +275,60 @@ export const CIRCLED_NUMBERS = [
'①', '②', '③', '④', '⑤', '⑥', '⑦', '⑧', '⑨', '⑩',
'⑪', '⑫', '⑬', '⑭', '⑮', '⑯', '⑰', '⑱', '⑲', '⑳',
];

/**
* 操作记录-操作对象
*/
export const APP_OPERATION_TARGET = {
app: '应用',
module: '模块',
process: '进程',
env_var: '环境变量',
addon: '增强服务',
cloud_api: '云 API 权限',
secret: '密钥',
app_domain: '访问地址',
app_member: '应用成员',
build_config: '构建配置',
volume_mount: '挂载卷',
service_discovery: '服务发现',
domain_resolution: '域名解析',
deploy_restriction: '部署限制',
exit_ip: '出口 IP',
access_control: '用户限制',
};

/**
* 操作记录-操作类型
*/
export const APP_OPERATION = {
create: '新建',
delete: '删除',
modify: '修改',
create_app: '创建应用',
online_to_market: '发布到应用市场',
offline_from_market: '从应用市场下架',
modify_market_info: '完善应用市场配置',
modify_market_url: '修改应用市场访问地址',
modify_basic_info: '修改基本信息',
start: '启动',
stop: '停止',
scale: '扩缩容',
enable: '启用',
disable: '停用',
apply: '申请',
renew: '续期',
deploy: '部署',
offline: '下架',
};


/**
* 操作记录-状态
*/
export const APP_RESULT_CODE = {
0: '成功',
1: '执行中',
'-1': '失败',
'-2': '中断',
};
Loading

0 comments on commit cbfc01f

Please sign in to comment.