Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • 2285489
  • /
  • TheNavBar.vue
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:041810c73272f435489de04dec4ed565528cc5fa
directory badge Iframe embedding
swh:1:dir:22854890bacf341dc104eb129425e04c4690e5c9

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
TheNavBar.vue
<script setup lang="ts">
const { BASE_URL } = import.meta.env
const parts = document.URL.split('/')
const relativePath = parts[parts.length - 1]
</script>

<template>
  <nav
    class="flex"
    border="b gray-200"
    p="x-3 y-1"
  >
    <img
      class="h-28px pr-1"
      src="/favicon.svg"
    >
    <span class="text-lg font-bold">
      OldVisOnline
    </span>
    <div class="flex gap-6 text-sm items-center ml-auto">
      <a
        icon-btn
        display="none sm:inherit"
        :href="`${BASE_URL}View`"
        :class="{ 'text-teal-600': ['View', ''].includes(relativePath) }"
      >
        View
      </a>
      <a
        icon-btn
        display="none sm:inherit"
        :href="`${BASE_URL}Contribute`"
        :class="{ 'text-teal-600': relativePath === 'Contribute' }"
      >
        Contribute
      </a>
      <TheDialogAbout />
      <button icon-btn @click="toggleDark()">
        <div i-fa6-regular:sun dark:i-fa6-regular:moon />
      </button>
      <a
        i-fa6-brands:github icon-btn
        rel="noreferrer"
        href="https://github.com/oldvis/gallery"
        target="_blank"
        title="GitHub"
      />
    </div>
  </nav>
</template>

back to top

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API