mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 11:22:19 +03:00
6c317054c1
refs TryGhost/Ghost#7628 (issue), refs TryGhost/Ghost#7631 (required) - update `config` service to fetch from public configuration endpoint - add `beforeModel` to `application` route to fetch config and pause further processing until the request is complete - remove `<meta name="env-*">` tags from generated `default.hbs` and internal testing `index.html` - add mirage config to simulate configuration endpoint and helper to simulate enabled oauth config - update `ghost-oauth2` torii provider to use auth server URL from server-provided config
51 lines
1.5 KiB
HTML
51 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<title>Ghost Tests</title>
|
|
<meta name="description" content="">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
{{content-for "head"}}
|
|
{{content-for "test-head"}}
|
|
|
|
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css">
|
|
<link rel="stylesheet" href="{{rootURL}}assets/ghost.css">
|
|
<link rel="stylesheet" href="{{rootURL}}assets/test-support.css">
|
|
|
|
{{content-for "head-footer"}}
|
|
{{content-for "test-head-footer"}}
|
|
|
|
<style>
|
|
/* fix to ensure we use full viewport height when testing */
|
|
#ember-testing {
|
|
height: 100%;
|
|
}
|
|
#ember-testing > div {
|
|
height: 100%;
|
|
}
|
|
/* fix firefox not supporting `zoom: 50%` */
|
|
_::-moz-range-track, body:last-child #ember-testing {
|
|
-moz-transform-origin: 0 0;
|
|
-moz-transform: scale(0.5);
|
|
width: 200%;
|
|
height: 200%;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
{{content-for "body"}}
|
|
{{content-for "test-body"}}
|
|
|
|
<script src="/testem.js" integrity=""></script>
|
|
<script src="{{rootURL}}assets/vendor.js"></script>
|
|
<script src="{{rootURL}}assets/test-support.js"></script>
|
|
<script src="{{rootURL}}assets/ghost.js"></script>
|
|
<script src="{{rootURL}}assets/tests.js"></script>
|
|
|
|
{{content-for "body-footer"}}
|
|
{{content-for "test-body-footer"}}
|
|
</body>
|
|
</html>
|