mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
Starting to add error status pages.
This commit is contained in:
parent
bad0ca9cc7
commit
2ca3619057
4 changed files with 35 additions and 0 deletions
|
@ -71,6 +71,7 @@ module.exports = function(options) {
|
||||||
serveStatic(pathutil.resource('bower_components/stf-site/v2-features')))
|
serveStatic(pathutil.resource('bower_components/stf-site/v2-features')))
|
||||||
app.use('/static/data', serveStatic(pathutil.resource('data')))
|
app.use('/static/data', serveStatic(pathutil.resource('data')))
|
||||||
app.use('/static/build', serveStatic(pathutil.resource('build')))
|
app.use('/static/build', serveStatic(pathutil.resource('build')))
|
||||||
|
app.use('/static/status', serveStatic(pathutil.resource('common/status')))
|
||||||
app.use('/static/browsers', browserIconMiddleware())
|
app.use('/static/browsers', browserIconMiddleware())
|
||||||
app.use('/static/devices', deviceIconMiddleware())
|
app.use('/static/devices', deviceIconMiddleware())
|
||||||
app.use('/static', serveStatic(pathutil.resource('app')))
|
app.use('/static', serveStatic(pathutil.resource('app')))
|
||||||
|
|
14
res/common/status/404.jade
Normal file
14
res/common/status/404.jade
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
doctype html
|
||||||
|
html
|
||||||
|
head
|
||||||
|
title STF Not Found
|
||||||
|
meta(charset='utf-8')
|
||||||
|
meta(name='viewport', content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui')
|
||||||
|
include partials/styles
|
||||||
|
body(ng-cloak).forofour.bg-danger
|
||||||
|
script(src='/static/bower_components/stf-analytics/analytics.js')
|
||||||
|
div(ng-view)
|
||||||
|
.forofour-container
|
||||||
|
h1
|
||||||
|
i.fa.fa-unlink.fa-4x
|
||||||
|
h2 アクセスしようとしたページが見つかりません。
|
15
res/common/status/maintenance.jade
Normal file
15
res/common/status/maintenance.jade
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
doctype html
|
||||||
|
html
|
||||||
|
head
|
||||||
|
title STF Maintenance
|
||||||
|
meta(charset='utf-8')
|
||||||
|
meta(name='viewport', content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui')
|
||||||
|
include partials/styles
|
||||||
|
body(ng-cloak).forofour.bg-danger
|
||||||
|
script(src='/static/bower_components/stf-analytics/analytics.js')
|
||||||
|
div(ng-view)
|
||||||
|
.forofour-container
|
||||||
|
h1
|
||||||
|
i.fa.fa-unlink.fa-4x
|
||||||
|
h2 しばらくお待ちください
|
||||||
|
h3 STFをアップデート中です。
|
5
res/common/status/partials/styles.jade
Normal file
5
res/common/status/partials/styles.jade
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
link(href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700', media='all', rel='stylesheet', type='text/css')
|
||||||
|
link(rel='stylesheet', href='/static/bower_components/se7en-bootstrap-3/build/stylesheets/bootstrap.min.css')
|
||||||
|
link(rel='stylesheet', href='/static/bower_components/se7en-bootstrap-3/build/stylesheets/se7en-font.css')
|
||||||
|
link(rel='stylesheet', href='/static/bower_components/se7en-bootstrap-3/build/stylesheets/style.css')
|
||||||
|
link(rel='stylesheet', href='/static/bower_components/se7en-bootstrap-3/build/stylesheets/font-awesome.min.css')
|
Loading…
Add table
Add a link
Reference in a new issue