Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
93237cda
Commit
93237cda
authored
Aug 26, 2019
by
Nick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: broken unauthorized page
parent
fd0335c6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
13 deletions
+35
-13
client-app.js
client/client-app.js
+1
-0
unauthorized.vue
client/components/unauthorized.vue
+33
-0
unauthorized.pug
server/views/unauthorized.pug
+1
-13
No files found.
client/client-app.js
View file @
93237cda
...
...
@@ -164,6 +164,7 @@ Vue.component('profile', () => import(/* webpackChunkName: "profile" */ './compo
Vue
.
component
(
'register'
,
()
=>
import
(
/* webpackChunkName: "register" */
'./components/register.vue'
))
Vue
.
component
(
'v-card-chin'
,
()
=>
import
(
/* webpackPrefetch: true, webpackChunkName: "ui-extra" */
'./components/common/v-card-chin.vue'
))
Vue
.
component
(
'search-results'
,
()
=>
import
(
/* webpackPrefetch: true, webpackChunkName: "ui-extra" */
'./components/common/search-results.vue'
))
Vue
.
component
(
'unauthorized'
,
()
=>
import
(
/* webpackChunkName: "unauthorized" */
'./components/unauthorized.vue'
))
Vue
.
component
(
'welcome'
,
()
=>
import
(
/* webpackChunkName: "welcome" */
'./components/welcome.vue'
))
Vue
.
component
(
'nav-footer'
,
()
=>
import
(
/* webpackChunkName: "theme-page" */
'./themes/'
+
process
.
env
.
CURRENT_THEME
+
'/components/nav-footer.vue'
))
...
...
client/components/unauthorized.vue
0 → 100644
View file @
93237cda
<
template
lang=
'pug'
>
v-app
.unauthorized
.unauthorized-content
img.animated.fadeIn(src='/svg/icon-delete-shield.svg', alt='Unauthorized')
.headline
{{
$t
(
'unauthorized.title'
)
}}
.subtitle-1.mt-3
{{
$t
(
'unauthorized.action.'
+
action
)
}}
v-btn.mt-5(href='/login', x-large)
v-icon(left) mdi-login
span
{{
$t
(
'unauthorized.login'
)
}}
v-btn.mt-5(color='red lighten-4', href='javascript:window.history.go(-1);', outlined)
v-icon(left) mdi-arrow-left
span
{{
$t
(
'unauthorized.goback'
)
}}
</
template
>
<
script
>
export
default
{
props
:
{
action
:
{
type
:
String
,
default
:
'view'
}
},
data
()
{
return
{
}
}
}
</
script
>
<
style
lang=
'scss'
>
</
style
>
server/views/unauthorized.pug
View file @
93237cda
...
...
@@ -2,16 +2,4 @@ extends master.pug
block body
#root.is-fullscreen
v-app
.unauthorized
.unauthorized-content
img.animated.fadeIn(src='/svg/icon-delete-shield.svg', alt='Unauthorized')
.headline= t('unauthorized.title')
.subheading.mt-3= t('unauthorized.action.' + action)
.mt-5
v-btn(color='red lighten-4', href='javascript:window.history.go(-1);', large, outline)
v-icon(left) arrow_back
span= t('unauthorized.goback')
v-btn(color='red lighten-4', href='/login', large, outline)
v-icon(left) person_outline
span= t('unauthorized.login')
unauthorized(action=action)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment