Skip to content

Commit

Permalink
💩 save 49
Browse files Browse the repository at this point in the history
  • Loading branch information
jannik.lange committed May 23, 2024
1 parent d298770 commit 60c60f9
Show file tree
Hide file tree
Showing 8 changed files with 296 additions and 1,872 deletions.
2,101 changes: 230 additions & 1,871 deletions frontend/package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"jspdf": "^2.5.1",
"marked": "^4.3.0",
"moment": "^2.24.0",
"tiptap-vuetify": "^2.24.0",
"vue": "^2.7",
"vue-class-component": "^7.2.3",
"vue-dompurify-html": "^4.0.0",
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/core/core.router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Vue from "vue";
import Router from "vue-router";
// Add this import at the top of core.router.ts
import vuetify, { adminTheme, kobitTheme } from "@/core/plugins/vuetify";

import {theTestRoutes} from "@/features/test/the-test.routes"
import {theMainRoutes} from "@/features/the-main/the-main.routes";
import {erfahreMehrRoutes} from "@/features/the-additional/the-additional.routes";
import {
Expand Down Expand Up @@ -70,6 +70,7 @@ routerMethods.forEach((method: string) => {
const router = new Router({
base: process.env.BASE_URL,
routes: [
theTestRoutes,
theMainRoutes,
theUnterstuetzungsfinderRoutes,
erfahreMehrRoutes,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<template>
<div>
<!-- Use the component in the right place of the template -->
<tiptap-vuetify
v-model="content"
:extensions="extensions"
/>
</div>
</template>

<script lang="ts">
import {Vue, Component} from 'vue-property-decorator';
@Component({})
export default class TipTapEditor extends Vue {
}
</script>



<style scoped>
</style>
18 changes: 18 additions & 0 deletions frontend/src/features/test/TestPage.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<script lang="ts">
import {Vue, Component} from 'vue-property-decorator';
@Component({})
export default class TestPage extends Vue {
}
</script>

<template>
<div>
HALLLOOOO
</div>
</template>

<style scoped>
</style>
12 changes: 12 additions & 0 deletions frontend/src/features/test/the-test.routes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import test from "./TestPage.vue";
export const MAIN_ROUTE_PATH = "/test";
export const MAIN_ROUTE_NAME = "TestPage";

export const theTestRoutes = {
name: MAIN_ROUTE_NAME,
path: MAIN_ROUTE_PATH,
component: test,
meta: {
icon: "mdi-test-tube"
}
};
7 changes: 7 additions & 0 deletions frontend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Toast from "vue-toastification";
import i18n from "@/core/plugins/i18n";
import { VueQueryPlugin } from "@tanstack/vue-query";
import vuetify, { adminTheme, kobitTheme } from "@/core/plugins/vuetify";
import { TiptapVuetifyPlugin } from 'tiptap-vuetify'

Vue.config.productionTip = false;

Expand Down Expand Up @@ -45,6 +46,12 @@ new Vue({
},
}).$mount("#app");

Vue.use(TiptapVuetifyPlugin, {
vuetify: Vuetify,
iconsGroup: "html"
})


// Use Vue.nextTick to wait for the theme to be applied before rendering the page
Vue.nextTick(() => {
new Vue({
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/shims-vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ declare module '*.vue' {
import Vue from 'vue';
export default Vue;
}

declare module 'tiptap-vuetify'

0 comments on commit 60c60f9

Please sign in to comment.