mirror of
https://github.com/Physton/sd-webui-prompt-all-in-one.git
synced 2026-04-30 19:21:43 +00:00
UI optimization of About window
关于窗口UI优化
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -23,7 +23,7 @@
|
||||
<div class="version-sha"><a :href="commitUrl(item.version)" target="_blank">{{ formatVersion(item.version) }}</a></div>
|
||||
<div class="version-date">{{ item.date }}</div>
|
||||
</div>
|
||||
<div class="version-msg">{{ item.message }}</div>
|
||||
<div class="version-msg" v-html="message(item.message)"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -124,6 +124,14 @@ export default {
|
||||
if (!version) return this.getLang('unknown_version')
|
||||
return version.slice(0, 7)
|
||||
},
|
||||
message(text) {
|
||||
text = common.escapeHtml(text)
|
||||
text = text.replace(/Former-commit-id: [a-z0-9]{40}/g, '')
|
||||
text = text.trim()
|
||||
text = text.replace("\n", '<br/>')
|
||||
text = text.replace(/#(\d+)/g, '<a href="https://github.com/Physton/sd-webui-prompt-all-in-one/issues/$1" target="_blank">#$1</a>')
|
||||
return text
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user