aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/svg.js
diff options
context:
space:
mode:
authorAndré Jaenisch <Ryuno-Ki@users.noreply.github.com>2022-10-01 16:26:38 +0200
committerGitHub <noreply@github.com>2022-10-01 22:26:38 +0800
commit04e97b83115e7439d43c0ede5fe2d1b50d201c52 (patch)
tree073a20e9377c5197112327afd11d7a6f2cccb268 /web_src/js/svg.js
parent726afe8a9e33128476e1dc85f262fe56f995d12c (diff)
downloadgitea-04e97b83115e7439d43c0ede5fe2d1b50d201c52.tar.gz
gitea-04e97b83115e7439d43c0ede5fe2d1b50d201c52.zip
Refactor from Vue2 to Vue3 (#20044)
Close #19902
Diffstat (limited to 'web_src/js/svg.js')
-rw-r--r--web_src/js/svg.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/web_src/js/svg.js b/web_src/js/svg.js
index 6677bf83cb..dedc126303 100644
--- a/web_src/js/svg.js
+++ b/web_src/js/svg.js
@@ -26,8 +26,6 @@ import octiconSidebarExpand from '../../public/img/svg/octicon-sidebar-expand.sv
import octiconSidebarCollapse from '../../public/img/svg/octicon-sidebar-collapse.svg';
-import Vue from 'vue';
-
export const svgs = {
'octicon-chevron-down': octiconChevronDown,
'octicon-chevron-right': octiconChevronRight,
@@ -74,7 +72,8 @@ export function svg(name, size = 16, className = '') {
return serializer.serializeToString(svgNode);
}
-export const SvgIcon = Vue.component('SvgIcon', {
+export const SvgIcon = {
+ name: 'SvgIcon',
props: {
name: {type: String, required: true},
size: {type: Number, default: 16},
@@ -88,4 +87,4 @@ export const SvgIcon = Vue.component('SvgIcon', {
},
template: `<span v-html="svg" />`
-});
+};