From aded19b6a0bbfcf44994e0977fcaac90558b4006 Mon Sep 17 00:00:00 2001 From: Arno Kaimbacher Date: Mon, 6 Dec 2021 14:11:20 +0100 Subject: [PATCH] + add terms-view-component + add oai links --- .env | 1 - src/app.ts | 2 + src/router/index.ts | 6 + src/views/home-view/home-view-component.vue | 3 +- src/views/oai-view/oai-view-component.vue | 35 ++- src/views/terms-view/terms-view-component.ts | 12 + src/views/terms-view/terms-view-component.vue | 211 ++++++++++++++++++ 7 files changed, 266 insertions(+), 4 deletions(-) create mode 100644 src/views/terms-view/terms-view-component.ts create mode 100644 src/views/terms-view/terms-view-component.vue diff --git a/.env b/.env index d015796..e191efd 100644 --- a/.env +++ b/.env @@ -1,5 +1,4 @@ #NODE_ENV=production NODE_ENV=development -CONSTANT_VALUE=1234567 VUE_APP_PORTAL=//repository.geologie.ac.at/portal \ No newline at end of file diff --git a/src/app.ts b/src/app.ts index e81e87f..362f60d 100644 --- a/src/app.ts +++ b/src/app.ts @@ -10,6 +10,7 @@ import OaiViewComponent from "./views/oai-view/oai-view-component.vue"; import ContactViewComponent from "./views/contact-view/contact-view-component.vue"; import SitelinkViewComponent from "./views/sitelink-view/sitelink-view-component.vue"; import ImprintViewComponent from "./views/imprint-view/imprint-view-component.vue"; +import TermsViewComponent from "./views/terms-view/terms-view-component"; import { VUE_APP_PORTAL } from "./constants"; // import VsInput from "./components/vs-input/vs-input.vue"; // import VsResult from "./components/vs-result/vs-result.vue"; @@ -38,6 +39,7 @@ import { VUE_APP_PORTAL } from "./constants"; ContactViewComponent, SitelinkViewComponent, ImprintViewComponent, + TermsViewComponent, }, }) export default class App extends Vue { diff --git a/src/router/index.ts b/src/router/index.ts index 2a32447..102ef7b 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -7,6 +7,7 @@ import OaiViewComponent from "@/views/oai-view/oai-view-component.vue"; import ContactViewComponent from "@/views/contact-view/contact-view-component.vue"; import SitelinkViewComponent from "@/views/sitelink-view/sitelink-view-component.vue"; import ImprintViewComponent from "@/views/imprint-view/imprint-view-component.vue"; +import TermsViewComponent from "@/views/terms-view/terms-view-component.vue"; const routes = [ { @@ -49,6 +50,11 @@ const routes = [ name: "Imprint", component: ImprintViewComponent, }, + { + path: "/terms-and-conditions", + name: "Terms", + component: TermsViewComponent, + }, ]; const router = createRouter({ diff --git a/src/views/home-view/home-view-component.vue b/src/views/home-view/home-view-component.vue index f4c9d83..a5f64cb 100644 --- a/src/views/home-view/home-view-component.vue +++ b/src/views/home-view/home-view-component.vue @@ -214,7 +214,8 @@ Sitelinks
  • - Terms & Conditions + + Terms & Conditions
  • rdr bei GitHub diff --git a/src/views/oai-view/oai-view-component.vue b/src/views/oai-view/oai-view-component.vue index 7d4afb1..f3a155e 100644 --- a/src/views/oai-view/oai-view-component.vue +++ b/src/views/oai-view/oai-view-component.vue @@ -23,13 +23,13 @@ Derzeit unterstützt das OAI-Service den Metadatenstandard DC (OAI-PMH Dublin Core) und eingeschränkt den Standard DataCite (aktuell in dieser Testkonfiguration noch ohne Vergabe einer im Schema verpflichtenden DOI).

    - + @@ -38,3 +38,34 @@ import OaiViewComponent from "./oai-view-component"; export default OaiViewComponent; + + diff --git a/src/views/terms-view/terms-view-component.ts b/src/views/terms-view/terms-view-component.ts new file mode 100644 index 0000000..3c96047 --- /dev/null +++ b/src/views/terms-view/terms-view-component.ts @@ -0,0 +1,12 @@ +import { Options, Vue } from "vue-class-component"; + +@Options({ + name: "TermsViewComponent", + // components: { + // VsInput, + // VsResult, + // FacetCategory, + // ActiveFacetCategory, + // }, +}) +export default class TermsViewComponent extends Vue {} diff --git a/src/views/terms-view/terms-view-component.vue b/src/views/terms-view/terms-view-component.vue new file mode 100644 index 0000000..aa90b93 --- /dev/null +++ b/src/views/terms-view/terms-view-component.vue @@ -0,0 +1,211 @@ + + + + +