diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 76fde69b..57d5c442 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -33,5 +33,5 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: `Your demo site is ready! 🚀 Visit it here: https://${{github.repository_owner}}.github.io/storylines-editor/${{github.head_ref}}/#/en/editor` + body: `Your demo site is ready! 🚀 Visit it here: https://${{github.repository_owner}}.github.io/storylines-editor/${{github.head_ref}}` }) diff --git a/public/index-ca-en.html b/public/index-ca-en.html index 881d34a6..693f3195 100644 --- a/public/index-ca-en.html +++ b/public/index-ca-en.html @@ -5,7 +5,7 @@ - RAMP Storylines + RAMP Storylines Editor diff --git a/public/index-ca-fr.html b/public/index-ca-fr.html index 67739231..75672dc2 100644 --- a/public/index-ca-fr.html +++ b/public/index-ca-fr.html @@ -5,7 +5,7 @@ - Scénarios de PCAR + Éditeur de scénarios de la PCAR diff --git a/public/index.html b/public/index.html index 0d3f928c..37f60a7a 100644 --- a/public/index.html +++ b/public/index.html @@ -12,7 +12,7 @@ - <%= htmlWebpackPlugin.options.title %> + RAMP Storylines Editor
diff --git a/src/components/editor/chart-editor.vue b/src/components/chart-editor.vue similarity index 98% rename from src/components/editor/chart-editor.vue rename to src/components/chart-editor.vue index 1d8a2714..7cfed828 100644 --- a/src/components/editor/chart-editor.vue +++ b/src/components/chart-editor.vue @@ -74,8 +74,8 @@ import { SlideshowPanel, SourceCounts } from '@/definitions'; -import ChartPreviewV from '@/components/editor/helpers/chart-preview.vue'; -import ConfirmationModalV from '@/components/editor/helpers/confirmation-modal.vue'; +import ChartPreviewV from './helpers/chart-preview.vue'; +import ConfirmationModalV from './helpers/confirmation-modal.vue'; import draggable from 'vuedraggable'; @Options({ diff --git a/src/components/editor/dynamic-editor.vue b/src/components/dynamic-editor.vue similarity index 100% rename from src/components/editor/dynamic-editor.vue rename to src/components/dynamic-editor.vue diff --git a/src/components/editor/editor.vue b/src/components/editor.vue similarity index 100% rename from src/components/editor/editor.vue rename to src/components/editor.vue index c7aa1bc3..bdadf0d7 100644 --- a/src/components/editor/editor.vue +++ b/src/components/editor.vue @@ -149,8 +149,8 @@ + + diff --git a/src/components/editor/map-editor.vue b/src/components/map-editor.vue similarity index 98% rename from src/components/editor/map-editor.vue rename to src/components/map-editor.vue index a71a4c2f..86b9c2c2 100644 --- a/src/components/editor/map-editor.vue +++ b/src/components/map-editor.vue @@ -49,7 +49,7 @@ import { Options, Prop, Vue } from 'vue-property-decorator'; import { ConfigFileStructure, MapPanel, SourceCounts, TimeSliderConfig } from '@/definitions'; import { VueFinalModal } from 'vue-final-modal'; -import defaultConfig from '../../../public/ramp-default.json'; +import defaultConfig from '../../public/ramp-default.json'; import TimeSliderEditorV from './helpers/time-slider-editor.vue'; import { createInstance } from 'ramp-config-editor_editeur-config-pcar'; import 'ramp-config-editor_editeur-config-pcar/dist/style.css'; @@ -246,12 +246,12 @@ select { } } .edit-map { - content: url('../../assets/edit-icon.svg'); + content: url('../assets/edit-icon.svg'); margin: 0 auto; margin-bottom: 20px; } .add-map { - content: url('../../assets/add.svg'); + content: url('../assets/add.svg'); margin: 0 auto; margin-bottom: 20px; } diff --git a/src/components/editor/metadata-editor.vue b/src/components/metadata-editor.vue similarity index 99% rename from src/components/editor/metadata-editor.vue rename to src/components/metadata-editor.vue index 1e0cec94..f2c3d471 100644 --- a/src/components/editor/metadata-editor.vue +++ b/src/components/metadata-editor.vue @@ -317,7 +317,7 @@ import { } from '@/definitions'; import { VueSpinnerOval } from 'vue3-spinners'; import { VueFinalModal } from 'vue-final-modal'; -import { useUserStore } from '../../stores/userStore'; +import { useUserStore } from '../stores/userStore'; const JSZip = require('jszip'); const axios = require('axios').default; diff --git a/src/components/editor/preview.vue b/src/components/preview.vue similarity index 96% rename from src/components/editor/preview.vue rename to src/components/preview.vue index 69481f07..8d48ec18 100644 --- a/src/components/editor/preview.vue +++ b/src/components/preview.vue @@ -56,6 +56,7 @@ import { Options, Vue } from 'vue-property-decorator'; import { ConfigFileStructure, StoryRampConfig } from '@/definitions'; import { VueSpinnerOval } from 'vue3-spinners'; +import { AxiosError } from 'axios'; @Options({ components: { @@ -128,12 +129,13 @@ export default class StoryPreviewV extends Vue { }); } + // eslint-disable-next-line @typescript-eslint/no-explicit-any fetch(this.apiUrl + `/retrieveMessages`).then((res: any) => { axios .post(process.env.VUE_APP_NET_API_URL + '/api/log/create', { messages: res.data.messages }) - .catch((error: any) => console.log(error.response || error)); + .catch((error: AxiosError) => console.log(error.response || error)); }); }); } else { @@ -197,7 +199,7 @@ $font-list: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } .prose a:not([panel])::after { - content: url('../../assets/popout.svg'); + content: url('../assets/popout.svg'); } .w-mobile-full { diff --git a/src/components/editor/slide-editor.vue b/src/components/slide-editor.vue similarity index 100% rename from src/components/editor/slide-editor.vue rename to src/components/slide-editor.vue diff --git a/src/components/editor/slide-toc.vue b/src/components/slide-toc.vue similarity index 100% rename from src/components/editor/slide-toc.vue rename to src/components/slide-toc.vue diff --git a/src/components/editor/slideshow-editor.vue b/src/components/slideshow-editor.vue similarity index 100% rename from src/components/editor/slideshow-editor.vue rename to src/components/slideshow-editor.vue diff --git a/src/components/editor/text-editor.vue b/src/components/text-editor.vue similarity index 100% rename from src/components/editor/text-editor.vue rename to src/components/text-editor.vue diff --git a/src/components/editor/video-editor.vue b/src/components/video-editor.vue similarity index 99% rename from src/components/editor/video-editor.vue rename to src/components/video-editor.vue index 13a35475..7baf03b8 100644 --- a/src/components/editor/video-editor.vue +++ b/src/components/video-editor.vue @@ -86,8 +86,9 @@