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

feat: 操作记录 #1611

Merged
merged 2 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
jiayuan929 marked this conversation as resolved.
Show resolved Hide resolved
</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 @@ -289,3 +289,60 @@ export const CODECC_RELEASE_STATUS = {
rolled_back: '已回滚',
interrupted: '已终止',
};

/**
* 操作记录-操作对象
*/
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