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
22a4c041
Commit
22a4c041
authored
1 year ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
edit on github
parent
3ad9767e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/EditGitlab.vue
+13
-13
13 additions, 13 deletions
components/EditGitlab.vue
with
13 additions
and
13 deletions
components/EditGitlab.vue
+
13
−
13
View file @
22a4c041
<
template
>
<v-row>
<v-col>
<v-btn
prepend-icon=
"mdi-gitlab"
variant=
"text"
size=
"small"
:href=
"path"
target=
"_blank"
>
Edit on gitlab
</v-btn
>
<v-btn
prepend-icon=
"mdi-github"
variant=
"text"
size=
"small"
:href=
"path"
target=
"_blank"
>
Edit on github
</v-btn>
</v-col>
</v-row>
</
template
>
<
script
setup
lang=
"ts"
>
import
{
ref
}
from
"
vue
"
;
const
{
page
}
=
useContent
();
const
owner
=
ref
(
"
mdm-lab
"
);
const
repo
=
ref
(
"
wiki
"
);
const
branch
=
ref
(
"
main
"
);
// const owner = ref("mdm-lab");
const
owner
=
ref
(
"
rplanel
"
);
// const repo = ref("wiki");
const
repo
=
ref
(
"
defense-finder-wiki-test
"
);
// const branch = ref("main");
const
branch
=
ref
(
"
dev
"
);
const
baseUrl
=
ref
(
new
URL
(
"
https://gitlab.pasteur.fr
"
));
// const baseUrl = ref(new URL("https://gitlab.pasteur.fr"));
const
baseUrl
=
ref
(
new
URL
(
"
https://github.com
"
))
// https://github.com/rplanel/defense-finder-wiki-test/edit/dev/content/1.introduction/0.index.md
const
path
=
ref
(
new
URL
(
`/
${
owner
.
value
}
/
${
repo
.
value
}
/
-/
edit/
${
branch
.
value
}
/content/
${
page
.
value
.
_file
}
`
,
`/
${
owner
.
value
}
/
${
repo
.
value
}
/edit/
${
branch
.
value
}
/content/
${
page
.
value
.
_file
}
`
,
baseUrl
.
value
).
href
);
...
...
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