Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
koyuawsmbrtn committed May 13, 2021
0 parents commit 31405a4
Show file tree
Hide file tree
Showing 17 changed files with 12,090 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
68 changes: 68 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Getting Started with koyu.space Uptime

## Available Scripts

In the project directory, you can run:

### `yarn start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `yarn test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `yarn build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `yarn eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `yarn build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
45 changes: 45 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "uptime",
"version": "1.0.0",
"private": false,
"homepage": "https://up.koyu.space",
"license": "MIT",
"dependencies": {
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"gh-pages": "^3.1.0",
"jquery": "^3.6.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"twemoji": "^13.0.2",
"web-vitals": "^1.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
1 change: 1 addition & 0 deletions public/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
up.koyu.space
Binary file added public/favicon.ico
Binary file not shown.
23 changes: 23 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>koyu.space Uptime</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
27 changes: 27 additions & 0 deletions public/monitors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"name": "chara",
"url": "https://web.koyu.space",
"enabled": true
},
{
"name": "koyuspace",
"url": "https://koyu.space/api/v1/instance",
"enabled": true
},
{
"name": "updates",
"url": "https://updates.koyu.space",
"enabled": true
},
{
"name": "vhs",
"url": "https://vhs.koyu.space",
"enabled": true
},
{
"name": "mail",
"url": "https://mail.dyne.link",
"enabled": false
}
]
3 changes: 3 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
171 changes: 171 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
@font-face {
font-family: "Titan One";
src: url(https://koyu.space/fonts/titan-one.woff2);
}

body {
background: #223;
padding-top: 60px;
}

.App {
padding: 30px;
}

#logofont {
font-family: "Titan One";
font-weight: bold;
font-size: 48pt;
display: inline;
color: #FE53E1;
}

#logo {
vertical-align: middle;
margin-top: -15px;
}

header {
text-align: center;
padding-bottom: 20px;
}

#content {
color: #fff;
margin-left: 28%;
}

.online {
display: block;
background: lime;
width: 48px;
height: 48px;
border-radius: 50%;
margin-bottom: 10px;
}

.servicename {
color: #fff;
font-weight: bold;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
position: absolute;
vertical-align: middle;
margin-left: 58px;
margin-top: -44px;
}

#statuses {
position: absolute;
}

.mention,
.hashtag {
display: none;
}

#incidents li {
list-style: none;
border-bottom: 1px solid #ccc;
padding-bottom: 10px;
padding-top: 10px;
}

#incidents {
width: 50%;
margin: 0 auto;
}

h2 {
text-align: center;
}

.error {
display: block;
margin: 0 auto;
text-align: center;
color: #777;
padding: 10px;
background: #fff;
border-radius: 4px;
width: 50%;
min-height: 20px;
}

.emoji {
width: 16px;
height: 16px;
vertical-align: middle;
}

a, a:visited {
color: #fff;
}

a:hover {
text-decoration: none;
}

@media(min-width:800px) {
body {
background: url(https://koyu.space/img/bg.jpg) #223;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
}

.App {
background: #223;
margin: 30px;
padding: 40px;
padding-top: 80px;
border-radius: 20px;
min-height: 560px;
width: 50%;
margin: 0 auto;
}
}

@media(max-width:800px) {
#logo {
width: 48px;
margin-top: -8px;
}

#logofont {
font-size: 18pt;
}

.online {
display: block;
background: lime;
width: 24px;
height: 24px;
border-radius: 50%;
margin: 10px;
}

header {
padding-bottom: 30px;
}

body {
padding-top: 0px;
}

.error {
width: 100%;
margin-left: -10px;
}

#incidents {
width: 90%;
}

#statuses {
position: relative;
}

#content {
margin-left: 0;
}
}
Loading

0 comments on commit 31405a4

Please sign in to comment.