From 3b44926ce10bdc673bc12161bb3077fbdfdad176 Mon Sep 17 00:00:00 2001 From: kaimbacher Date: Fri, 14 Jan 2022 16:49:31 +0100 Subject: [PATCH] - rename of the folder for the dataset-detail.component --- src/app.ts | 2 +- src/app2.ts | 2 +- src/router/index.ts | 2 +- src/router/route1.ts | 2 +- .../dataset-detail.component.ts | 4 ++-- .../dataset-detail.component.vue | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) rename src/views/{dataset-detail.component.ts => dataset-detail.component}/dataset-detail.component.ts (98%) rename src/views/{dataset-detail.component.ts => dataset-detail.component}/dataset-detail.component.vue (98%) diff --git a/src/app.ts b/src/app.ts index 4d257e8..ae25b76 100644 --- a/src/app.ts +++ b/src/app.ts @@ -5,7 +5,7 @@ import HelloWorld from "./components/HelloWorld/HelloWorld.vue"; import HomeViewComponent from "./views/home-view/home-view-component.vue"; import HelpViewComponent from "./views/map-view/help-view-component.vue"; import SearchViewComponent from "./views/search-view/search-view-component.vue"; -import DatasetDetailComponent from "./views/dataset-detail.component.ts/dataset-detail.component.vue"; +import DatasetDetailComponent from "./views/dataset-detail.component/dataset-detail.component.vue"; import ServiceViewComponent from "./views/services-view/service-view-component.vue"; import OaiViewComponent from "./views/oai-view/oai-view-component.vue"; import ContactViewComponent from "./views/contact-view/contact-view-component.vue"; diff --git a/src/app2.ts b/src/app2.ts index f174b4d..0044597 100644 --- a/src/app2.ts +++ b/src/app2.ts @@ -5,7 +5,7 @@ import HelloWorld from "./components/HelloWorld/HelloWorld.vue"; import HomeViewComponent from "./views/home-view/home-view-component.vue"; import HelpViewComponent from "./views/map-view/help-view-component.vue"; import SearchViewComponent from "./views/search-view/search-view-component.vue"; -import DatasetDetailComponent from "./views/dataset-detail.component.ts/dataset-detail.component.vue"; +import DatasetDetailComponent from "./views/dataset-detail.component/dataset-detail.component.vue"; import ServiceViewComponent from "./views/services-view/service-view-component.vue"; import OaiViewComponent from "./views/oai-view/oai-view-component.vue"; import ContactViewComponent from "./views/contact-view/contact-view-component.vue"; diff --git a/src/router/index.ts b/src/router/index.ts index b0778d8..c1d6964 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -8,7 +8,7 @@ import ContactViewComponent from "@/views/contact-view/contact-view-component.vu 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"; -import DatasetDetailComponent from "@/views/dataset-detail.component.ts/dataset-detail.component.vue"; +import DatasetDetailComponent from "@/views/dataset-detail.component/dataset-detail.component.vue"; const routes = [ { diff --git a/src/router/route1.ts b/src/router/route1.ts index 00993eb..fe60feb 100644 --- a/src/router/route1.ts +++ b/src/router/route1.ts @@ -1,7 +1,7 @@ // import Vue from 'vue'; // import Router from 'vue-router'; import { createWebHistory, createRouter } from "vue-router"; -import DatasetDetailComponent from "@/views/dataset-detail.component.ts/dataset-detail.component"; +import DatasetDetailComponent from "@/views/dataset-detail.component/dataset-detail.component"; // Vue.use(Router); diff --git a/src/views/dataset-detail.component.ts/dataset-detail.component.ts b/src/views/dataset-detail.component/dataset-detail.component.ts similarity index 98% rename from src/views/dataset-detail.component.ts/dataset-detail.component.ts rename to src/views/dataset-detail.component/dataset-detail.component.ts index ccae28a..994e6f1 100644 --- a/src/views/dataset-detail.component.ts/dataset-detail.component.ts +++ b/src/views/dataset-detail.component/dataset-detail.component.ts @@ -47,11 +47,11 @@ export default class DatasetDetailComponent extends Vue { let term; if (typeof suggestion === "string") { term = suggestion; - window.open("https://tethys.at/search/" + term); + window.open("https://tethys.at/search/" + term, "_self"); } else if (suggestion instanceof Suggestion) { term = suggestion.value; const type = suggestion.type; - window.open("https://tethys.at/search/" + term + "/" + type); + window.open("https://tethys.at/search/" + term + "/" + type, "_self"); } } else { let term; diff --git a/src/views/dataset-detail.component.ts/dataset-detail.component.vue b/src/views/dataset-detail.component/dataset-detail.component.vue similarity index 98% rename from src/views/dataset-detail.component.ts/dataset-detail.component.vue rename to src/views/dataset-detail.component/dataset-detail.component.vue index 2f0372a..f8853c7 100644 --- a/src/views/dataset-detail.component.ts/dataset-detail.component.vue +++ b/src/views/dataset-detail.component/dataset-detail.component.vue @@ -56,7 +56,7 @@