Skip to content

Commit a8fb466

Browse files
committed
Auto publishing site from packit/status@625e42a
0 parents  commit a8fb466

File tree

291 files changed

+109700
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

291 files changed

+109700
-0
lines changed

404.html

Lines changed: 591 additions & 0 deletions
Large diffs are not rendered by default.

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
status.packit.dev

admin/config.yml

Lines changed: 372 additions & 0 deletions
Large diffs are not rendered by default.

admin/index.html

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>cState Admin</title>
7+
</head>
8+
<body>
9+
<!--
10+
To easily manage your status on Netlify,
11+
much like on WordPress, you need to keep
12+
this directory. Platforms which do not
13+
support Netlify CMS do not need this
14+
/admin/ directory.
15+
-->
16+
17+
<script>console.log('You are using cState. The version can be looked at from the console on the homepage or incidents view. https://github.com/cstate')</script>
18+
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
19+
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
20+
<script>
21+
var IssuePreview = createClass({
22+
render: function() {
23+
var entry = this.props.entry;
24+
25+
var layoutPostDate = entry.getIn(['data', 'date']);
26+
var layoutPostDateEnd = entry.getIn(['data', 'resolvedWhen']);
27+
28+
var resultOfStateProps = {"class": "warning"};
29+
var resultOfState = 'This incident has not yet been resolved.';
30+
31+
if (entry.getIn(['data', 'resolved']) === true) {
32+
var resultOfStateProps = {"class": "green"};
33+
var resultOfState = 'This incident has been resolved.';
34+
}
35+
36+
if (entry.getIn(['data', 'informational']) === true) {
37+
var resultOfStateProps = {"class": "green"};
38+
var resultOfState = '';
39+
}
40+
41+
42+
return h('div', {},
43+
h('h1', {}, entry.getIn(['data', 'title'])),
44+
h('p', {},
45+
h('strong', resultOfStateProps, resultOfState)
46+
),
47+
h('div', {"className": "text"}, this.props.widgetFor('body'))
48+
);
49+
}
50+
});
51+
CMS.registerPreviewTemplate("issues", IssuePreview, { raw: true });
52+
53+
const previewStyles = `
54+
html,
55+
body {
56+
padding: 16px;
57+
color: #444;
58+
background: #fff;
59+
font: 100%/1.5 BlinkMacSystemFont, -apple-system, "San Francisco Text", "Roboto", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
60+
}
61+
62+
h1 {
63+
line-height: 1;
64+
margin: 0;
65+
color: #000;
66+
font-weight: normal;
67+
font-size: 40px;
68+
font-family: "Segoe UI", BlinkMacSystemFont, -apple-system, "San Francisco Text", "Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
69+
}
70+
71+
small {
72+
margin-top: 12px;
73+
color: #666;
74+
font-variant: small-caps;
75+
display: block;
76+
}
77+
78+
.text {
79+
padding-top: 12px;
80+
border-top: 1px solid #ccc;
81+
}
82+
83+
.green { color: #228B22; }
84+
.red { color: #DC143C; }
85+
.warning { color: #EE7600; }
86+
`;
87+
CMS.registerPreviewStyle(previewStyles, { raw: true });
88+
</script>
89+
</body>
90+
</html>

0 commit comments

Comments
 (0)