Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wiki
Manage
Activity
Members
Labels
Plan
Issues
53
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MDM Lab
Wiki
Commits
71fc464a
Commit
71fc464a
authored
1 year ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
Make refseq path handle baseUrl
parent
ffa4f812
No related branches found
No related tags found
No related merge requests found
Pipeline
#112512
passed with stages
Stage:
Stage:
Stage:
Stage:
in 6 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/Nav/Navbar.vue
+17
-1
17 additions, 1 deletion
components/Nav/Navbar.vue
with
17 additions
and
1 deletion
components/Nav/Navbar.vue
+
17
−
1
View file @
71fc464a
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
// import { useCustomTheme } from '~/composables/useCustomTheme'
// import { useCustomTheme } from '~/composables/useCustomTheme'
import
{
useDisplay
,
useTheme
}
from
"
vuetify
"
;
import
{
useDisplay
,
useTheme
}
from
"
vuetify
"
;
import
{
withTrailingSlash
,
withLeadingSlash
,
joinURL
}
from
"
ufo
"
;
const
runtimeConfig
=
useRuntimeConfig
();
const
runtimeConfig
=
useRuntimeConfig
();
const
{
navigation
}
=
useContent
();
const
{
navigation
}
=
useContent
();
...
@@ -47,13 +48,28 @@ const theme = useTheme();
...
@@ -47,13 +48,28 @@ const theme = useTheme();
function
toggleTheme
()
{
function
toggleTheme
()
{
theme
.
global
.
name
.
value
=
theme
.
global
.
current
.
value
.
dark
?
"
light
"
:
"
dark
"
;
theme
.
global
.
name
.
value
=
theme
.
global
.
current
.
value
.
dark
?
"
light
"
:
"
dark
"
;
}
}
const
refSeqPath
=
ref
(
"
/refseq
"
);
const
refinedRefSeqPath
=
computed
(()
=>
{
if
(
refSeqPath
.
value
?.
startsWith
(
"
/
"
)
&&
!
refSeqPath
.
value
.
startsWith
(
"
//
"
))
{
const
_base
=
withLeadingSlash
(
withTrailingSlash
(
useRuntimeConfig
().
app
.
baseURL
)
);
if
(
_base
!==
"
/
"
&&
!
refSeqPath
.
value
.
startsWith
(
_base
))
{
return
joinURL
(
_base
,
refSeqPath
.
value
);
}
}
return
refSeqPath
;
});
const
sections
=
ref
([
const
sections
=
ref
([
{
{
id
:
"
webservice
"
,
id
:
"
webservice
"
,
label
:
"
webservice
"
,
label
:
"
webservice
"
,
href
:
runtimeConfig
.
public
.
defenseFinderWebservice
,
href
:
runtimeConfig
.
public
.
defenseFinderWebservice
,
},
},
{
id
:
"
refseq
"
,
label
:
"
REFSEQ
"
,
href
:
"
/
ref
seq
"
},
{
id
:
"
refseq
"
,
label
:
"
REFSEQ
"
,
href
:
ref
inedRefSeqPath
},
]);
]);
const
drawer
=
ref
(
true
);
const
drawer
=
ref
(
true
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment