diff --git a/src/assets/css/font/iconfont.css b/src/assets/css/font/iconfont.css new file mode 100644 index 00000000..99b2b0f1 --- /dev/null +++ b/src/assets/css/font/iconfont.css @@ -0,0 +1,187 @@ +@font-face { + font-family: "cn-icon"; /* Project id 2614877 */ + src: url('iconfont.woff2?t=1624000421294') format('woff2'), + url('iconfont.woff?t=1624000421294') format('woff'), + url('iconfont.ttf?t=1624000421294') format('truetype'); +} + +.cn-icon { + font-family: "cn-icon" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.cn-icon-view1:before { + content: "\e702"; +} + +.cn-icon-more3:before { + content: "\e739"; +} + +.cn-icon-edit:before { + content: "\e68c"; +} + +.cn-icon-delete:before { + content: "\e68f"; +} + +.cn-icon-more1:before { + content: "\e677"; +} + +.cn-icon-gear:before { + content: "\e694"; +} + +.cn-icon-add:before { + content: "\e738"; +} + +.cn-icon-xiangshang:before { + content: "\e732"; +} + +.cn-icon-xiangxia:before { + content: "\e737"; +} + +.cn-icon-arrow-left:before { + content: "\e735"; +} + +.cn-icon-arrow-right:before { + content: "\e736"; +} + +.cn-icon-id:before { + content: "\e734"; +} + +.cn-icon-position:before { + content: "\e72e"; +} + +.cn-icon-dns:before { + content: "\e72f"; +} + +.cn-icon-sub-category:before { + content: "\e730"; +} + +.cn-icon-risk:before { + content: "\e731"; +} + +.cn-icon-category:before { + content: "\e733"; +} + +.cn-icon-alert:before { + content: "\e72d"; +} + +.cn-icon-dropdown:before { + content: "\e724"; +} + +.cn-icon-download:before { + content: "\e725"; +} + +.cn-icon-check:before { + content: "\e726"; +} + +.cn-icon-refresh:before { + content: "\e727"; +} + +.cn-icon-language:before { + content: "\e728"; +} + +.cn-icon-more:before { + content: "\e729"; +} + +.cn-icon-style:before { + content: "\e72a"; +} + +.cn-icon-expand:before { + content: "\e72b"; +} + +.cn-icon-full-screen:before { + content: "\e72c"; +} + +.cn-icon-upload:before { + content: "\e71f"; +} + +.cn-icon-package-loss:before { + content: "\e720"; +} + +.cn-icon-http:before { + content: "\e721"; +} + +.cn-icon-time:before { + content: "\e722"; +} + +.cn-icon-ssl:before { + content: "\e723"; +} + +.cn-icon-root-domain:before { + content: "\e71d"; +} + +.cn-icon-doh-domain:before { + content: "\e71a"; +} + +.cn-icon-recursive-domain:before { + content: "\e71b"; +} + +.cn-icon-authoritative-domain:before { + content: "\e71c"; +} + +.cn-icon-top-level-domain:before { + content: "\e71e"; +} + +.cn-icon-dashboard:before { + content: "\e714"; +} + +.cn-icon-entitles:before { + content: "\e715"; +} + +.cn-icon-incidents:before { + content: "\e716"; +} + +.cn-icon-artifacts-brower:before { + content: "\e717"; +} + +.cn-icon-setting:before { + content: "\e718"; +} + +.cn-icon-reports:before { + content: "\e719"; +} + diff --git a/src/assets/css/font/iconfont.js b/src/assets/css/font/iconfont.js new file mode 100644 index 00000000..5524137c --- /dev/null +++ b/src/assets/css/font/iconfont.js @@ -0,0 +1 @@ +!function(a){var c,l,o,i,h,t,m='',e=(e=document.getElementsByTagName("script"))[e.length-1].getAttribute("data-injectcss");if(e&&!a.__iconfont__svg__cssinject__){a.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(a){console&&console.log(a)}}function n(){h||(h=!0,o())}c=function(){var a,c,l;(l=document.createElement("div")).innerHTML=m,m=null,(c=l.getElementsByTagName("svg")[0])&&(c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.width=0,c.style.height=0,c.style.overflow="hidden",a=c,(l=document.body).firstChild?(c=l.firstChild).parentNode.insertBefore(a,c):l.appendChild(a))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(c,0):(l=function(){document.removeEventListener("DOMContentLoaded",l,!1),c()},document.addEventListener("DOMContentLoaded",l,!1)):document.attachEvent&&(o=c,i=a.document,h=!1,(t=function(){try{i.documentElement.doScroll("left")}catch(a){return void setTimeout(t,50)}n()})(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,n())})}(window); \ No newline at end of file diff --git a/src/assets/css/font/iconfont.json b/src/assets/css/font/iconfont.json new file mode 100644 index 00000000..534813d3 --- /dev/null +++ b/src/assets/css/font/iconfont.json @@ -0,0 +1,310 @@ +{ + "id": "2614877", + "name": "Cyber Narrator", + "font_family": "cn-icon", + "css_prefix_text": "cn-icon-", + "description": "", + "glyphs": [ + { + "icon_id": "20712322", + "name": "view", + "font_class": "view1", + "unicode": "e702", + "unicode_decimal": 59138 + }, + { + "icon_id": "21907756", + "name": "更多操作1", + "font_class": "more3", + "unicode": "e739", + "unicode_decimal": 59193 + }, + { + "icon_id": "16827143", + "name": "编辑", + "font_class": "edit", + "unicode": "e68c", + "unicode_decimal": 59020 + }, + { + "icon_id": "16827146", + "name": "删除", + "font_class": "delete", + "unicode": "e68f", + "unicode_decimal": 59023 + }, + { + "icon_id": "21119423", + "name": "更 多", + "font_class": "more1", + "unicode": "e677", + "unicode_decimal": 58999 + }, + { + "icon_id": "16827151", + "name": "设置", + "font_class": "gear", + "unicode": "e694", + "unicode_decimal": 59028 + }, + { + "icon_id": "21209541", + "name": "Add", + "font_class": "add", + "unicode": "e738", + "unicode_decimal": 59192 + }, + { + "icon_id": "22325159", + "name": "向上", + "font_class": "xiangshang", + "unicode": "e732", + "unicode_decimal": 59186 + }, + { + "icon_id": "22325160", + "name": "向下", + "font_class": "xiangxia", + "unicode": "e737", + "unicode_decimal": 59191 + }, + { + "icon_id": "22324980", + "name": "左箭头", + "font_class": "arrow-left", + "unicode": "e735", + "unicode_decimal": 59189 + }, + { + "icon_id": "22324981", + "name": "右箭头", + "font_class": "arrow-right", + "unicode": "e736", + "unicode_decimal": 59190 + }, + { + "icon_id": "22320764", + "name": "id", + "font_class": "id", + "unicode": "e734", + "unicode_decimal": 59188 + }, + { + "icon_id": "22318866", + "name": "地理位置", + "font_class": "position", + "unicode": "e72e", + "unicode_decimal": 59182 + }, + { + "icon_id": "22318867", + "name": "DNS", + "font_class": "dns", + "unicode": "e72f", + "unicode_decimal": 59183 + }, + { + "icon_id": "22318868", + "name": "子分类", + "font_class": "sub-category", + "unicode": "e730", + "unicode_decimal": 59184 + }, + { + "icon_id": "22318869", + "name": "风险", + "font_class": "risk", + "unicode": "e731", + "unicode_decimal": 59185 + }, + { + "icon_id": "22318871", + "name": "类别", + "font_class": "category", + "unicode": "e733", + "unicode_decimal": 59187 + }, + { + "icon_id": "22292878", + "name": "告警", + "font_class": "alert", + "unicode": "e72d", + "unicode_decimal": 59181 + }, + { + "icon_id": "22292845", + "name": "下拉", + "font_class": "dropdown", + "unicode": "e724", + "unicode_decimal": 59172 + }, + { + "icon_id": "22292846", + "name": "下载", + "font_class": "download", + "unicode": "e725", + "unicode_decimal": 59173 + }, + { + "icon_id": "22292847", + "name": "选中", + "font_class": "check", + "unicode": "e726", + "unicode_decimal": 59174 + }, + { + "icon_id": "22292848", + "name": "刷新", + "font_class": "refresh", + "unicode": "e727", + "unicode_decimal": 59175 + }, + { + "icon_id": "22292849", + "name": "中英文", + "font_class": "language", + "unicode": "e728", + "unicode_decimal": 59176 + }, + { + "icon_id": "22292850", + "name": "更多", + "font_class": "more", + "unicode": "e729", + "unicode_decimal": 59177 + }, + { + "icon_id": "22292851", + "name": "样式", + "font_class": "style", + "unicode": "e72a", + "unicode_decimal": 59178 + }, + { + "icon_id": "22292852", + "name": "展开", + "font_class": "expand", + "unicode": "e72b", + "unicode_decimal": 59179 + }, + { + "icon_id": "22292853", + "name": "最大化", + "font_class": "full-screen", + "unicode": "e72c", + "unicode_decimal": 59180 + }, + { + "icon_id": "22292732", + "name": "重传", + "font_class": "upload", + "unicode": "e71f", + "unicode_decimal": 59167 + }, + { + "icon_id": "22292733", + "name": "丢包率", + "font_class": "package-loss", + "unicode": "e720", + "unicode_decimal": 59168 + }, + { + "icon_id": "22292734", + "name": "HTTP", + "font_class": "http", + "unicode": "e721", + "unicode_decimal": 59169 + }, + { + "icon_id": "22292735", + "name": "时间", + "font_class": "time", + "unicode": "e722", + "unicode_decimal": 59170 + }, + { + "icon_id": "22292736", + "name": "SSL", + "font_class": "ssl", + "unicode": "e723", + "unicode_decimal": 59171 + }, + { + "icon_id": "22292709", + "name": "根域名", + "font_class": "root-domain", + "unicode": "e71d", + "unicode_decimal": 59165 + }, + { + "icon_id": "22292704", + "name": "DOH域名", + "font_class": "doh-domain", + "unicode": "e71a", + "unicode_decimal": 59162 + }, + { + "icon_id": "22290483", + "name": "递归域名", + "font_class": "recursive-domain", + "unicode": "e71b", + "unicode_decimal": 59163 + }, + { + "icon_id": "22290484", + "name": "权威域名", + "font_class": "authoritative-domain", + "unicode": "e71c", + "unicode_decimal": 59164 + }, + { + "icon_id": "22290486", + "name": "顶级域名", + "font_class": "top-level-domain", + "unicode": "e71e", + "unicode_decimal": 59166 + }, + { + "icon_id": "22290435", + "name": "Dashboard", + "font_class": "dashboard", + "unicode": "e714", + "unicode_decimal": 59156 + }, + { + "icon_id": "22290436", + "name": "Entitles", + "font_class": "entitles", + "unicode": "e715", + "unicode_decimal": 59157 + }, + { + "icon_id": "22290437", + "name": "Incidents", + "font_class": "incidents", + "unicode": "e716", + "unicode_decimal": 59158 + }, + { + "icon_id": "22290438", + "name": "Artifacts Brower", + "font_class": "artifacts-brower", + "unicode": "e717", + "unicode_decimal": 59159 + }, + { + "icon_id": "22290439", + "name": "Setting", + "font_class": "setting", + "unicode": "e718", + "unicode_decimal": 59160 + }, + { + "icon_id": "22290440", + "name": "Reports", + "font_class": "reports", + "unicode": "e719", + "unicode_decimal": 59161 + } + ] +} diff --git a/src/assets/css/font/iconfont.ttf b/src/assets/css/font/iconfont.ttf new file mode 100644 index 00000000..1a9d01ee Binary files /dev/null and b/src/assets/css/font/iconfont.ttf differ diff --git a/src/assets/css/font/iconfont.woff b/src/assets/css/font/iconfont.woff new file mode 100644 index 00000000..f4a61876 Binary files /dev/null and b/src/assets/css/font/iconfont.woff differ diff --git a/src/assets/css/font/iconfont.woff2 b/src/assets/css/font/iconfont.woff2 new file mode 100644 index 00000000..ebb30523 Binary files /dev/null and b/src/assets/css/font/iconfont.woff2 differ diff --git a/src/assets/css/main.scss b/src/assets/css/main.scss index 3c3acd95..85f30c2f 100644 --- a/src/assets/css/main.scss +++ b/src/assets/css/main.scss @@ -3,4 +3,5 @@ @import './common'; @import './rightBoxCommon'; @import './tableCommon'; -@import '../stylus/index.scss'; \ No newline at end of file +@import '../stylus/index.scss'; +@import './font/iconfont.css'; diff --git a/src/assets/css/rightBoxCommon.scss b/src/assets/css/rightBoxCommon.scss index 2a90a7c8..ea96c467 100644 --- a/src/assets/css/rightBoxCommon.scss +++ b/src/assets/css/rightBoxCommon.scss @@ -293,7 +293,7 @@ } } } -.nz-icon-minus-position { +.cn-icon-minus-position { display: inline-flex; flex-direction: column; position: absolute; diff --git a/src/assets/css/tableCommon.scss b/src/assets/css/tableCommon.scss index 3b0c3b2c..32ee65ec 100644 --- a/src/assets/css/tableCommon.scss +++ b/src/assets/css/tableCommon.scss @@ -387,3 +387,9 @@ height: 100%; cursor: col-resize; } +.margin-r-10{ + margin-right: 10px; +} +.margin-r-20{ + margin-right: 20px; +} diff --git a/src/components/rightBox/settings/RoleBox.vue b/src/components/rightBox/settings/RoleBox.vue index 837e549e..95605587 100644 --- a/src/components/rightBox/settings/RoleBox.vue +++ b/src/components/rightBox/settings/RoleBox.vue @@ -3,7 +3,7 @@
{{editRole.id ? $t('config.roles.editRole') : $t('config.roles.createRole')}}
- +
@@ -21,7 +21,7 @@