diff --git a/frontend/src/assets/iconfont/iconfont.css b/frontend/src/assets/iconfont/iconfont.css index 874c42a64..e5aedcbc5 100644 --- a/frontend/src/assets/iconfont/iconfont.css +++ b/frontend/src/assets/iconfont/iconfont.css @@ -1,9 +1,9 @@ @font-face { font-family: "panel"; /* Project id 3575356 */ - src: url('iconfont.woff2?t=1717468101688') format('woff2'), - url('iconfont.woff?t=1717468101688') format('woff'), - url('iconfont.ttf?t=1717468101688') format('truetype'), - url('iconfont.svg?t=1717468101688#panel') format('svg'); + src: url('iconfont.woff2?t=1717570629440') format('woff2'), + url('iconfont.woff?t=1717570629440') format('woff'), + url('iconfont.ttf?t=1717570629440') format('truetype'), + url('iconfont.svg?t=1717570629440#panel') format('svg'); } .panel { @@ -15,7 +15,7 @@ } .p-docker1:before { - content: "\e689"; + content: "\e76a"; } .p-Firefox:before { diff --git a/frontend/src/assets/iconfont/iconfont.js b/frontend/src/assets/iconfont/iconfont.js index 55695b0f1..e7cd569dd 100644 --- a/frontend/src/assets/iconfont/iconfont.js +++ b/frontend/src/assets/iconfont/iconfont.js @@ -1 +1 @@ -window._iconfont_svg_string_3575356='',function(h){var l=(l=document.getElementsByTagName("script"))[l.length-1],a=l.getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var c,t,p,z,v,i=function(l,a){a.parentNode.insertBefore(l,a)};if(a&&!h.__iconfont__svg__cssinject__){h.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(l){console&&console.log(l)}}c=function(){var l,a=document.createElement("div");a.innerHTML=h._iconfont_svg_string_3575356,(a=a.getElementsByTagName("svg")[0])&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",a=a,(l=document.body).firstChild?i(a,l.firstChild):l.appendChild(a))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(c,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),c()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(p=c,z=h.document,v=!1,d(),z.onreadystatechange=function(){"complete"==z.readyState&&(z.onreadystatechange=null,m())})}function m(){v||(v=!0,p())}function d(){try{z.documentElement.doScroll("left")}catch(l){return void setTimeout(d,50)}m()}}(window); \ No newline at end of file +window._iconfont_svg_string_3575356='',function(c){var l=(l=document.getElementsByTagName("script"))[l.length-1],a=l.getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var h,t,p,z,v,i=function(l,a){a.parentNode.insertBefore(l,a)};if(a&&!c.__iconfont__svg__cssinject__){c.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(l){console&&console.log(l)}}h=function(){var l,a=document.createElement("div");a.innerHTML=c._iconfont_svg_string_3575356,(a=a.getElementsByTagName("svg")[0])&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",a=a,(l=document.body).firstChild?i(a,l.firstChild):l.appendChild(a))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(h,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),h()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(p=h,z=c.document,v=!1,d(),z.onreadystatechange=function(){"complete"==z.readyState&&(z.onreadystatechange=null,m())})}function m(){v||(v=!0,p())}function d(){try{z.documentElement.doScroll("left")}catch(l){return void setTimeout(d,50)}m()}}(window); \ No newline at end of file diff --git a/frontend/src/assets/iconfont/iconfont.json b/frontend/src/assets/iconfont/iconfont.json index b6c5480f6..22ab3cc64 100644 --- a/frontend/src/assets/iconfont/iconfont.json +++ b/frontend/src/assets/iconfont/iconfont.json @@ -6,11 +6,11 @@ "description": "", "glyphs": [ { - "icon_id": "4630923", + "icon_id": "1064806", "name": "docker", "font_class": "docker1", - "unicode": "e689", - "unicode_decimal": 59017 + "unicode": "e76a", + "unicode_decimal": 59242 }, { "icon_id": "37759945", diff --git a/frontend/src/assets/iconfont/iconfont.svg b/frontend/src/assets/iconfont/iconfont.svg index e63e80d25..6d72b92c2 100644 --- a/frontend/src/assets/iconfont/iconfont.svg +++ b/frontend/src/assets/iconfont/iconfont.svg @@ -14,7 +14,7 @@ /> - + diff --git a/frontend/src/assets/iconfont/iconfont.ttf b/frontend/src/assets/iconfont/iconfont.ttf index 68f813950..9a67b14c0 100644 Binary files a/frontend/src/assets/iconfont/iconfont.ttf and b/frontend/src/assets/iconfont/iconfont.ttf differ diff --git a/frontend/src/assets/iconfont/iconfont.woff b/frontend/src/assets/iconfont/iconfont.woff index 4cfa1a129..df3003dd6 100644 Binary files a/frontend/src/assets/iconfont/iconfont.woff and b/frontend/src/assets/iconfont/iconfont.woff differ diff --git a/frontend/src/assets/iconfont/iconfont.woff2 b/frontend/src/assets/iconfont/iconfont.woff2 index 77f403aec..f78318842 100644 Binary files a/frontend/src/assets/iconfont/iconfont.woff2 and b/frontend/src/assets/iconfont/iconfont.woff2 differ diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index ac5b7c140..69dc3512b 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -212,6 +212,8 @@ const message = { formatErr: 'Format error, please check and retry', phpExtension: 'Only supports , _ lowercase English and numbers', paramHttp: 'Must start with http:// or https://', + diffHelper: + 'The left side is the old version, the right side is the new version, after editing, click Save using custom version', }, res: { paramError: 'The request failed, please try again later!', diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index d7c000a01..992ddd9ea 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -1634,6 +1634,7 @@ const message = { useDefault: '使用預設版本', useCustom: '自訂 docker-compose.yml', useCustomHelper: '使用自訂 docker-compose.yml 文件,可能會導致應用程式升級失敗,如無必要,請勿勾選', + diffHelper: '左側為舊版本,右側為新版,編輯之後點選使用自訂版本儲存', }, website: { website: '網站', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 37c893a06..15185798c 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -1634,6 +1634,7 @@ const message = { useDefault: '使用默认版本', useCustom: '自定义 docker-compose.yml', useCustomHelper: '使用自定义 docker-compose.yml 文件,可能会导致应用升级失败,如无必要,请勿勾选', + diffHelper: '左侧为旧版本,右侧为新版,编辑之后点击使用自定义版本保存', }, website: { website: '网站', diff --git a/frontend/src/views/app-store/installed/upgrade/diff/index.vue b/frontend/src/views/app-store/installed/upgrade/diff/index.vue index 44b1a0cab..2dc63b8c9 100644 --- a/frontend/src/views/app-store/installed/upgrade/diff/index.vue +++ b/frontend/src/views/app-store/installed/upgrade/diff/index.vue @@ -7,47 +7,18 @@ width="60%" > - - {{ $t('app.oldVersion') }} - - - - {{ $t('app.newVersion') }} - 编辑之后点击使用自定义版本保存 - + + {{ $t('app.diffHelper') }} +
+ + diff --git a/frontend/src/views/app-store/installed/upgrade/index.vue b/frontend/src/views/app-store/installed/upgrade/index.vue index 0cebf9757..400a050f6 100644 --- a/frontend/src/views/app-store/installed/upgrade/index.vue +++ b/frontend/src/views/app-store/installed/upgrade/index.vue @@ -149,7 +149,10 @@ const toLink = (link: string) => { window.open(link, '_blank'); }; -const openDiff = () => { +const openDiff = async () => { + if (newContent.value === '') { + await getVersions(operateReq.version); + } composeDiffRef.value.acceptParams(oldContent.value, newContent.value); };