-
Strix
+
Strix
{{ $t("exports.tools.help.strix") }}
diff --git a/src/home/news.yaml b/src/home/news.yaml
index c444bc7..36451e0 100644
--- a/src/home/news.yaml
+++ b/src/home/news.yaml
@@ -1,7 +1,9 @@
-- date: 2023-01-31
- title:
- en: Released for testing
- sv: Släppt för testning
- body:
- en: During the first half of 2023, Mink is being progressively rolled out for testing. If you are interested in participating, please contact Språkbanken Text at sb-info@svenska.gu.se. A public release is scheduled for September, 2023.
- sv: Under våren 2023 rullas Mink gradvis ut för testning. Om du är intresserad av att delta är du välkommen att kontakta Språkbanken Text på sb-info@svenska.gu.se. Ett öppet släpp planeras till september 2023.
+[]
+# Template:
+# - date: 2023-01-31
+# title:
+# en: Released for testing
+# sv: Släppt för testning
+# body:
+# en: During the first half of 2023, Mink is being progressively rolled out for testing. If you are interested in participating, please contact Språkbanken Text at sb-info@svenska.gu.se. A public release is scheduled for September, 2023.
+# sv: Under våren 2023 rullas Mink gradvis ut för testning. Om du är intresserad av att delta är du välkommen att kontakta Språkbanken Text på sb-info@svenska.gu.se. Ett öppet släpp planeras till september 2023.
diff --git a/src/i18n/locales/en.yaml b/src/i18n/locales/en.yaml
index 085fc05..4e99dcc 100644
--- a/src/i18n/locales/en.yaml
+++ b/src/i18n/locales/en.yaml
@@ -194,9 +194,7 @@ annotations.info: |
Sparv documentation.
accessdenied: Access denied
-accessdenied.contact: If you want access to Mink, please contact sb-info{'@'}svenska.gu.se
+accessdenied.contact: If you have questions, or you want to report a bug, please contact sb-info{'@'}svenska.gu.se. Thank you!
notfound: Page not found
notfound.description: Something went wrong, and there is nothing to see at this address.
notfound.contact: If you have questions, or you want to report a bug, please contact sb-info{'@'}svenska.gu.se. Thank you!
-devnotice.title: Under construction
-devnotice.description: Please note that Mink is still in an early development stage, and access to it is thus currently restricted to Språkbanken Text employees.
diff --git a/src/i18n/locales/sv.yaml b/src/i18n/locales/sv.yaml
index ee93014..20a7cd4 100644
--- a/src/i18n/locales/sv.yaml
+++ b/src/i18n/locales/sv.yaml
@@ -84,7 +84,7 @@ jwt.refreshing: Uppdaterar konto
tools: Utforska
exports.loading: Hämtar resultatlista
exports.tools.help: Använd den här datan i Språkbankens korpusverktyg. Din data visas bara för dig, i ett särskilt Mink-läge.
-exports.tools.help.korp: I Korp finns konkordanssökning, detaljerade sökfrågor, frekvensstatistik m m.
+exports.tools.help.korp: I Korp finns konkordanssökning, detaljerade sökfrågor, frekvensstatistik med mera.
exports.tools.help.korp.manual.url: https://spraakbanken.gu.se/verktyg/korp/anvandarhandledning
exports.tools.help.korp.manual.text: Användarhandledning
exports.tools.help.strix: I Strix kan de berikade texterna undersökas i sin helhet.
@@ -196,9 +196,7 @@ annotations.info: |
Sparvs dokumentation.
accessdenied: Åtkomst nekad
-accessdenied.contact: Om du vill få tillgång till Mink, hör av dig till sb-info{'@'}svenska.gu.se
+accessdenied.contact: Om du har frågor eller vill rapportera en bugg, kontakta gärna sb-info{'@'}svenska.gu.se. Tack!
notfound: Sidan kan inte hittas
notfound.description: Något har gått fel, och det finns ingenting att visa på den här adressen.
notfound.contact: Om du har frågor eller vill rapportera en bugg, kontakta gärna sb-info{'@'}svenska.gu.se. Tack!
-devnotice.title: Under konstruktion
-devnotice.description: Observera att Mink är inne i en testfas, och tillgången är för närvarande begränsad till anställda på Språkbanken Text.
diff --git a/src/main.js b/src/main.js
index fd3e212..a315e13 100644
--- a/src/main.js
+++ b/src/main.js
@@ -5,14 +5,25 @@ import { createPinia } from "pinia";
import i18n from "./i18n/i18n";
import { formkit, formkitConfig } from "./formkit";
import { FontAwesomeIcon } from "./fontawesome";
+import matomo from "vue-matomo";
import "./index.css";
const pinia = createPinia();
-createApp(App) //
+const app = createApp(App) //
.use(router)
.use(pinia)
.use(i18n)
.use(formkit, formkitConfig)
- .component("icon", FontAwesomeIcon)
- .mount("#app");
+ .component("icon", FontAwesomeIcon);
+
+// Use the Matomo plugin only if configured in env.
+if (import.meta.env.VITE_MATOMO_URL && import.meta.env.VITE_MATOMO_ID) {
+ app.use(matomo, {
+ host: import.meta.env.VITE_MATOMO_URL,
+ siteId: import.meta.env.VITE_MATOMO_ID,
+ router: router,
+ });
+}
+
+app.mount("#app");
diff --git a/src/Breadcrumb.vue b/src/page/Breadcrumb.vue
similarity index 100%
rename from src/Breadcrumb.vue
rename to src/page/Breadcrumb.vue
diff --git a/src/NotFound.vue b/src/page/NotFound.vue
similarity index 100%
rename from src/NotFound.vue
rename to src/page/NotFound.vue
diff --git a/src/title.composable.js b/src/page/title.composable.js
similarity index 79%
rename from src/title.composable.js
rename to src/page/title.composable.js
index a319b8b..cda262e 100644
--- a/src/title.composable.js
+++ b/src/page/title.composable.js
@@ -1,10 +1,10 @@
import { computed } from "vue";
import { useRoute } from "vue-router";
import { useI18n } from "vue-i18n";
-import useLocale from "./i18n/locale.composable";
-import { useCorpusStore } from "./store/corpus.store";
+import useLocale from "../i18n/locale.composable";
+import { useCorpusStore } from "../store/corpus.store";
-/** Handle the custom title/createTitle route meta options. */
+/** Handle the custom title/createTitle route meta options. */
export default function usePageTitle() {
const route = useRoute();
const { t } = useI18n();
diff --git a/src/router.js b/src/router.js
index 007726e..26343a7 100644
--- a/src/router.js
+++ b/src/router.js
@@ -14,7 +14,7 @@ import CorpusDelete from "@/corpus/CorpusDelete.vue";
import Source from "@/corpus/sources/Source.vue";
import User from "@/user/User.vue";
import AccessDenied from "@/auth/AccessDenied.vue";
-import NotFound from "@/NotFound.vue";
+import NotFound from "@/page/NotFound.vue";
const routes = [
{
diff --git a/yarn.lock b/yarn.lock
index 51ae28f..1484b33 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2302,6 +2302,11 @@ vue-i18n@9:
"@intlify/vue-devtools" "9.2.2"
"@vue/devtools-api" "^6.2.1"
+vue-matomo@^4.2.0:
+ version "4.2.0"
+ resolved "https://registry.yarnpkg.com/vue-matomo/-/vue-matomo-4.2.0.tgz#d65e369e4ead1d95ef790bef3627512cac3d25e9"
+ integrity sha512-m5hCw7LH3wPDcERaF4sp/ojR9sEx7Rl8TpOyH/4jjQxMF2DuY/q5pO+i9o5Dx+BXLSa9+IQ0qhAbWYRyESQXmA==
+
vue-router@4:
version "4.1.6"
resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-4.1.6.tgz#b70303737e12b4814578d21d68d21618469375a1"
@@ -2391,9 +2396,9 @@ which@^2.0.1:
isexe "^2.0.0"
word-wrap@^1.2.3:
- version "1.2.3"
- resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c"
- integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==
+ version "1.2.4"
+ resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.4.tgz#cb4b50ec9aca570abd1f52f33cd45b6c61739a9f"
+ integrity sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA==
wrap-ansi@^7.0.0:
version "7.0.0"