Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TIDO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
subugoe
emo
TIDO
Merge requests
!290
refactor: convert all components to composition API
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
refactor: convert all components to composition API
vue2tovue3
into
develop
Overview
17
Commits
4
Pipelines
4
Changes
31
All threads resolved!
Hide all comments
Merged
Amtul Noor
requested to merge
vue2tovue3
into
develop
1 year ago
Overview
17
Commits
4
Pipelines
4
Changes
31
All threads resolved!
Hide all comments
Expand
0
0
Merge request reports
Compare
develop
version 3
d60006d2
1 year ago
version 2
9096b71c
1 year ago
version 1
bf7dcbf4
1 year ago
develop (base)
and
latest version
latest version
f1ef572f
4 commits,
1 year ago
version 3
d60006d2
3 commits,
1 year ago
version 2
9096b71c
2 commits,
1 year ago
version 1
bf7dcbf4
1 commit,
1 year ago
31 files
+
1213
−
1452
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
31
Search (e.g. *.vue) (Ctrl+P)
src/components/annotations/AnnotationIcon.vue
+
15
−
23
Options
@@ -6,33 +6,25 @@
@@ -6,33 +6,25 @@
size=
"16px"
size=
"16px"
/>
/>
</
template
>
</
template
>
<
script
>
<
script
setup
>
import
{
computed
}
from
'
vue
'
;
import
{
Dark
}
from
'
quasar
'
;
import
{
Dark
}
from
'
quasar
'
;
import
{
isUrl
}
from
'
@/utils
'
;
import
{
isUrl
}
from
'
@/utils
'
;
import
{
icon
}
from
'
@/utils/icon
'
;
import
{
icon
}
from
'
@/utils/icon
'
;
export
default
{
const
props
=
defineProps
({
name
:
'
AnnotationIcon
'
,
name
:
String
,
props
:
{
});
name
:
String
,
},
const
isDarkMode
=
computed
(()
=>
Dark
.
isActive
);
computed
:
{
const
iconName
=
computed
(()
=>
(
show
()
{
isUrl
(
props
.
name
)
?
`img:
${
props
.
name
}
`
:
getIcon
(
props
.
name
)
return
!!
(
this
.
types
.
find
((
type
)
=>
type
.
name
===
this
.
contentType
)?.
icon
);
));
},
isDarkMode
()
{
function
getIcon
()
{
return
Dark
.
isActive
;
return
icon
(
props
.
name
);
},
}
iconName
()
{
return
isUrl
(
this
.
name
)
?
`img:
${
this
.
name
}
`
:
this
.
getIcon
(
this
.
name
);
},
},
methods
:
{
getIcon
(
name
)
{
return
icon
(
name
);
},
},
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
Loading