Преглед на файлове

refactor: Updated marked import after v4.0.0 breaking changes

Owen Diffey преди 3 години
родител
ревизия
507ade3481
променени са 3 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      frontend/src/components/modals/EditNews.vue
  2. 1 1
      frontend/src/components/modals/WhatIsNew.vue
  3. 1 1
      frontend/src/pages/News.vue

+ 1 - 1
frontend/src/components/modals/EditNews.vue

@@ -62,7 +62,7 @@
 
 <script>
 import { mapActions, mapGetters, mapState } from "vuex";
-import marked from "marked";
+import { marked } from "marked";
 import { sanitize } from "dompurify";
 import Toast from "toasters";
 import { formatDistance } from "date-fns";

+ 1 - 1
frontend/src/components/modals/WhatIsNew.vue

@@ -29,7 +29,7 @@
 
 <script>
 import { formatDistance } from "date-fns";
-import marked from "marked";
+import { marked } from "marked";
 import { sanitize } from "dompurify";
 import { mapGetters, mapActions } from "vuex";
 import ws from "@/ws";

+ 1 - 1
frontend/src/pages/News.vue

@@ -39,7 +39,7 @@
 <script>
 import { formatDistance } from "date-fns";
 import { mapGetters } from "vuex";
-import marked from "marked";
+import { marked } from "marked";
 import { sanitize } from "dompurify";
 
 import ws from "@/ws";