diff --git a/polylan_submitter/src/ErrorPage.vue b/polylan_submitter/src/ErrorPage.vue new file mode 100644 index 0000000..c3c4930 --- /dev/null +++ b/polylan_submitter/src/ErrorPage.vue @@ -0,0 +1,36 @@ + + + diff --git a/polylan_submitter/src/error.ts b/polylan_submitter/src/error.ts new file mode 100644 index 0000000..711fd32 --- /dev/null +++ b/polylan_submitter/src/error.ts @@ -0,0 +1,8 @@ +import { createApp } from 'vue' +import ErrorPage from '@/ErrorPage.vue' +import '@/style.css' + +const selector = "#app" +const mountData = document.querySelector(selector) +const app = createApp(ErrorPage, { ...mountData?.dataset }) +app.mount(selector) diff --git a/polylan_submitter/templates/404.html b/polylan_submitter/templates/404.html new file mode 100644 index 0000000..0b436de --- /dev/null +++ b/polylan_submitter/templates/404.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% load django_vite %} + +{% block title %}Page Not Found{% endblock %} + +{% block head %} + {% vite_asset 'src/error.ts' %} +{% endblock %} + +{% block content %} +
+{% endblock %} diff --git a/polylan_submitter/templates/500.html b/polylan_submitter/templates/500.html new file mode 100644 index 0000000..3d8069d --- /dev/null +++ b/polylan_submitter/templates/500.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% load django_vite %} + +{% block title %}Server Error{% endblock %} + +{% block head %} + {% vite_asset 'src/error.ts' %} +{% endblock %} + +{% block content %} +
+{% endblock %}