Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nodenogg-duplicate
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adam Procter
nodenogg-duplicate
Commits
18268cd1
Commit
18268cd1
authored
4 years ago
by
Adam Procter
Browse files
Options
Downloads
Patches
Plain Diff
added 404 component
parent
fcf2452d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/src/router/index.js
+8
-6
8 additions, 6 deletions
app/src/router/index.js
app/src/views/NotFound.vue
+12
-0
12 additions, 0 deletions
app/src/views/NotFound.vue
with
20 additions
and
6 deletions
app/src/router/index.js
+
8
−
6
View file @
18268cd1
import
Vue
from
'
vue
'
import
Vue
from
'
vue
'
import
VueRouter
from
'
vue-router
'
import
VueRouter
from
'
vue-router
'
import
Home
from
'
../views/Home.vue
'
import
Home
from
'
../views/Home.vue
'
import
NotFound
from
'
../views/NotFound.vue
'
Vue
.
use
(
VueRouter
)
Vue
.
use
(
VueRouter
)
...
@@ -23,17 +24,18 @@ const routes = [
...
@@ -23,17 +24,18 @@ const routes = [
{
{
path
:
'
/microcosm/:microcosm
'
,
path
:
'
/microcosm/:microcosm
'
,
component
:
Home
component
:
Home
},
{
path
:
'
*
'
,
name
:
'
NotFound
'
,
component
:
NotFound
}
}
// TODO: Nodecard ID in URL
// to get into editing a specific node??
// {
// path: '/microcosm/:microcosm/:nodecard',
// component: Home
// }
]
]
const
router
=
new
VueRouter
({
const
router
=
new
VueRouter
({
mode
:
'
history
'
,
mode
:
'
history
'
,
base
:
process
.
env
.
VUE_APP_HTTP
+
'
://
'
+
process
.
env
.
VUE_APP_URL
+
'
/
'
,
routes
routes
})
})
...
...
This diff is collapsed.
Click to expand it.
app/src/views/NotFound.vue
0 → 100644
+
12
−
0
View file @
18268cd1
<
template
>
<div>
<p>
A real 404
</p>
</div>
</
template
>
<
script
>
export
default
{}
</
script
>
<
style
lang=
"css"
scoped
>
</
style
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment