Skip to content

Commit

Permalink
feat: added imprint page to OADFooter.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviareichl committed Oct 17, 2023
1 parent 56949cf commit 380123e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/OADFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const frontenVersion = `${config.public.gitTag ?? "version"} - ${
<v-footer border class="py-2">
<div class="w-50 mx-auto d-flex justify-center justify-space-between align-center">
<div>
<NuxtLink style="text-decoration: none; color: inherit" to="/">Home</NuxtLink>
<NuxtLink style="text-decoration: none; color: inherit" to="/imprint">{{ $t('global.imprint') }}</NuxtLink>
</div>

<div class="text-center" style="font-size: 0.75em">
Expand Down
4 changes: 2 additions & 2 deletions deployment/loadContent.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import fs from "fs-extra";

const clonedContentPath = "temp";

// from env variable or argument or default value
// from .env variable or argument or default value
const repo =
process.env.CONTENT_REPO ?? process.argv[2] ?? "acdh-oeaw/OpenAtlas-Discovery-Content-Template";
const branch = process.env.CONTENT_BRANCH ?? process.argv[3] ?? "main";
Expand Down Expand Up @@ -40,7 +40,7 @@ if (fs.existsSync(clonedContentPath)) {
*/
function cloneRepo(targetpath, repo, branch, useHttp = true) {
// From https://cheatcode.co/tutorials/how-to-clone-and-sync-a-github-repo-via-node-js
// child_process.execSync(`git clone ${getBranch(branch)} https://${username}:${process.env.PERSONAL_ACCESS_TOKEN}@github.com/${username}/${repo}.git ${targetpath}`);
// child_process.execSync(`git clone ${getBranch(branch)} https://${username}:${process..env.PERSONAL_ACCESS_TOKEN}@github.com/${username}/${repo}.git ${targetpath}`);

if (fs.existsSync(targetpath)) {
fs.rmSync(clonedContentPath, { recursive: true, force: true });
Expand Down
1 change: 1 addition & 0 deletions pages/imprint.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ const { locale } = useI18n();
const { data } = await useFetch(imprintServiceURL + serviceID + `/?locale=${locale.value}`);
</script>

0 comments on commit 380123e

Please sign in to comment.