Skip to content
Snippets Groups Projects
Select Git revision
  • ca016a9e8f2f0cc19557b5cb64a3e6906790cc7c
  • main default protected
  • dev-mosaic
  • df-esm protected
  • marochef-main-patch-84880
  • insantos-main-patch-26719
  • ldunands-main-patch-06034
  • alroubau-main-patch-20822
  • kkoule-main-patch-53237
  • ekorotae-main-patch-05559
  • frthibau-main-patch-06305
  • crohel-main-patch-09648
  • hcibla-main-patch-01375
  • tgardais-main-patch-10011
  • dev protected
  • tclabby-main-patch-26246
  • operon-struct-type
  • operon-struct-type-article
  • remove-duplicate-structure-Lamassu-Fam_PDDEXK
  • operon-struct-type-article-update
  • system-distribution-plot
21 results

EditGitlab.vue

Blame
  • EditGitlab.vue 622 B
    <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-divider> </v-divider>
        </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 baseUrl = ref(new URL("https://gitlab.pasteur.fr"));
    
    const path = computed(() => {
      return new URL(
        `/${owner.value}/${repo.value}/-/edit/${branch.value}/content/${page.value._file}`,
        baseUrl.value
      ).href
    })
    </script>