Skip to content

Commit

Permalink
Auto publishing site from packit/status@7fe6baf
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarcziova committed Jul 22, 2024
0 parents commit 7883f44
Show file tree
Hide file tree
Showing 255 changed files with 93,513 additions and 0 deletions.
591 changes: 591 additions & 0 deletions 404.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
status.packit.dev
372 changes: 372 additions & 0 deletions admin/config.yml

Large diffs are not rendered by default.

90 changes: 90 additions & 0 deletions admin/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>cState Admin</title>
</head>
<body>
<!--
To easily manage your status on Netlify,
much like on WordPress, you need to keep
this directory. Platforms which do not
support Netlify CMS do not need this
/admin/ directory.
-->

<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>
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
<script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script>
<script>
var IssuePreview = createClass({
render: function() {
var entry = this.props.entry;

var layoutPostDate = entry.getIn(['data', 'date']);
var layoutPostDateEnd = entry.getIn(['data', 'resolvedWhen']);

var resultOfStateProps = {"class": "warning"};
var resultOfState = 'This incident has not yet been resolved.';

if (entry.getIn(['data', 'resolved']) === true) {
var resultOfStateProps = {"class": "green"};
var resultOfState = 'This incident has been resolved.';
}

if (entry.getIn(['data', 'informational']) === true) {
var resultOfStateProps = {"class": "green"};
var resultOfState = '';
}


return h('div', {},
h('h1', {}, entry.getIn(['data', 'title'])),
h('p', {},
h('strong', resultOfStateProps, resultOfState)
),
h('div', {"className": "text"}, this.props.widgetFor('body'))
);
}
});
CMS.registerPreviewTemplate("issues", IssuePreview, { raw: true });

const previewStyles = `
html,
body {
padding: 16px;
color: #444;
background: #fff;
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";
}
h1 {
line-height: 1;
margin: 0;
color: #000;
font-weight: normal;
font-size: 40px;
font-family: "Segoe UI", BlinkMacSystemFont, -apple-system, "San Francisco Text", "Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
small {
margin-top: 12px;
color: #666;
font-variant: small-caps;
display: block;
}
.text {
padding-top: 12px;
border-top: 1px solid #ccc;
}
.green { color: #228B22; }
.red { color: #DC143C; }
.warning { color: #EE7600; }
`;
CMS.registerPreviewStyle(previewStyles, { raw: true });
</script>
</body>
</html>
Loading

0 comments on commit 7883f44

Please sign in to comment.