- correct citation in datset-detail.component.ts

- enable subdomain routing
This commit is contained in:
Arno Kaimbacher 2022-01-14 12:57:06 +01:00
parent 7e47b30340
commit eb8803d7a8
7 changed files with 304 additions and 12 deletions

View file

@ -1,12 +1,28 @@
import { createApp } from "vue";
import App from "./App.vue";
import App2 from "./App2.vue";
import "./assets/scss/main-styles.scss";
// import FontAwesomeIcon from "@/utilities/fontawesome";
import router from "./router/index";
import index from "./router/index";
import route1 from "./router/route1";
import "@fortawesome/fontawesome-free/css/all.css";
import VueMatomo from "vue-matomo";
createApp(App)
const host = window.location.host;
const parts = host.split(".");
// const domainLength = 2; // route1.example.com => domain length = 3
let router, app;
// let routes;
if (parts[0] === "doi") {
router = route1;
app = App2;
} else {
// If you want to do something else just comment the line below
router = index;
app = App;
}
createApp(app)
.use(VueMatomo, {
host: "https://webstat.geologie.ac.at/",
siteId: 8,