You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by ki...@apache.org on 2022/03/01 21:18:41 UTC

[jena] 02/03: JENA-2295: Add a 404 page

This is an automated email from the ASF dual-hosted git repository.

kinow pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git

commit 788e0634c9302c70447ba33dd396d546971221f3
Author: Bruno P. Kinoshita <ki...@apache.org>
AuthorDate: Tue Mar 1 17:35:20 2022 +1300

    JENA-2295: Add a 404 page
---
 jena-fuseki2/jena-fuseki-ui/src/router/index.js    |  6 +++
 jena-fuseki2/jena-fuseki-ui/src/views/NotFound.vue | 49 ++++++++++++++++++++++
 2 files changed, 55 insertions(+)

diff --git a/jena-fuseki2/jena-fuseki-ui/src/router/index.js b/jena-fuseki2/jena-fuseki-ui/src/router/index.js
index f4b3e2f..2d96376 100644
--- a/jena-fuseki2/jena-fuseki-ui/src/router/index.js
+++ b/jena-fuseki2/jena-fuseki-ui/src/router/index.js
@@ -18,6 +18,7 @@
 import Vue from 'vue'
 import VueRouter from 'vue-router'
 import Home from '../views/Home'
+import NotFound from '@/views/NotFound'
 
 Vue.use(VueRouter)
 
@@ -70,6 +71,11 @@ const routes = [
     path: '/documentation',
     name: 'Help',
     component: () => import(/* webpackChunkName: "documentation" */ '../views/Help')
+  },
+  {
+    path: '*',
+    name: 'Not Found',
+    component: NotFound
   }
 ]
 
diff --git a/jena-fuseki2/jena-fuseki-ui/src/views/NotFound.vue b/jena-fuseki2/jena-fuseki-ui/src/views/NotFound.vue
new file mode 100644
index 0000000..1093235
--- /dev/null
+++ b/jena-fuseki2/jena-fuseki-ui/src/views/NotFound.vue
@@ -0,0 +1,49 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+
+<template>
+  <b-container fluid>
+    <b-row class="mt-2">
+      <b-col cols="12">
+        <div class="jumbotron">
+          <h1 class="display-4">404 Page Not Found</h1>
+          <p class="lead">
+            <b-btn variant="primary" href="/">
+              <FontAwesomeIcon icon="arrow-left" /> Back to Home
+            </b-btn>
+          </p>
+        </div>
+      </b-col>
+    </b-row>
+  </b-container>
+</template>
+
+<script>
+import { library } from '@fortawesome/fontawesome-svg-core'
+import { faArrowLeft } from '@fortawesome/free-solid-svg-icons'
+import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
+
+library.add(faArrowLeft)
+
+export default {
+  name: 'NotFound',
+
+  components: {
+    FontAwesomeIcon
+  }
+}
+</script>