summaryrefslogtreecommitdiffstats
path: root/web_src/js/components/DiffFileTreeItem.vue
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-12-23 17:03:11 +0100
committerGitHub <noreply@github.com>2022-12-24 00:03:11 +0800
commit2cf0cf0de1fc298f1b44a0452c8dbb2c2f9dd71c (patch)
tree17afa61c3128109ce8b28505a19f302018de26f9 /web_src/js/components/DiffFileTreeItem.vue
parent71ca3067bcc6c7c7772d38fc7590505c8c7148ed (diff)
downloadgitea-2cf0cf0de1fc298f1b44a0452c8dbb2c2f9dd71c.tar.gz
gitea-2cf0cf0de1fc298f1b44a0452c8dbb2c2f9dd71c.zip
JS refactors (#22227)
- Replace all default exports with named exports, except for Vue SFCs - Remove names from Vue SFCs, they are automatically inferred from the filename - Misc whitespace-related tweaks
Diffstat (limited to 'web_src/js/components/DiffFileTreeItem.vue')
-rw-r--r--web_src/js/components/DiffFileTreeItem.vue7
1 files changed, 1 insertions, 6 deletions
diff --git a/web_src/js/components/DiffFileTreeItem.vue b/web_src/js/components/DiffFileTreeItem.vue
index 4f20f1e66a..4089e51410 100644
--- a/web_src/js/components/DiffFileTreeItem.vue
+++ b/web_src/js/components/DiffFileTreeItem.vue
@@ -43,11 +43,7 @@
import {SvgIcon} from '../svg.js';
export default {
- name: 'DiffFileTreeItem',
- components: {
- SvgIcon,
- },
-
+ components: {SvgIcon},
props: {
item: {
type: Object,
@@ -59,7 +55,6 @@ export default {
default: true
}
},
-
data: () => ({
collapsed: false,
}),