-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
6,428 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"dockerComposeFile": ["../docker-compose.yml", "./docker-compose.yml"], | ||
"postCreateCommand": "test -e /app/.git || cp -Tr /original /app", | ||
"service": "app", | ||
"workspaceFolder": "/app" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
version: "3.7" | ||
services: | ||
app: &app | ||
build: | ||
context: . | ||
target: workspace | ||
environment: | ||
SHELL: /bin/zsh | ||
YAICHI_EXCLUDED_LISTENING_PORTS: 12345 | ||
command: | | ||
sh -c 'while sleep 3600; do :; done' | ||
volumes: | ||
- app:/app | ||
- home:/root | ||
- .:/original:cached | ||
- ~/.gitconfig:/root/.gitconfig:ro | ||
- ~/.zshrc:/root/.zshrc:ro | ||
- ~/.netrc:/root/.netrc:ro | ||
volumes: | ||
app: | ||
home: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
front/node_modules/ | ||
front/.cache/ | ||
front/dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,4 @@ jobs: | |
- setup_remote_docker: | ||
version: 17.07.0-ce | ||
- run: | | ||
rm docker-compose.override.yml | ||
bin/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
<meta http-equiv="Content-Style-Type" content="text/css" /> | ||
<title>Yaichi</title> | ||
<link rel="icon" type="image/png" href="./data/favicon.png" /> | ||
</head> | ||
<body> | ||
<a href="https://github.com/mtsmfm/yaichi"> | ||
<img | ||
style="position: absolute; top: 0; right: 0; border: 0;" | ||
src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" | ||
alt="Fork me on GitHub" | ||
data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" | ||
/> | ||
</a> | ||
<div id="root"></div> | ||
<script src="./src/index.tsx"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "client", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@material-ui/core": "^4.5.1", | ||
"@material-ui/icons": "^4.5.1", | ||
"@types/react": "^16.9.9", | ||
"@types/react-dom": "^16.9.2", | ||
"parcel-bundler": "^1.12.4", | ||
"react": "^16.10.2", | ||
"react-dom": "^16.10.2" | ||
}, | ||
"devDependencies": { | ||
"parcel-plugin-bundle-visualiser": "^1.2.0", | ||
"typescript": "^3.6.4" | ||
}, | ||
"browserslist": [ | ||
"last 1 Chrome version" | ||
], | ||
"scripts": { | ||
"start": "parcel index.html data/**/* --port 1234 --hmr-port 12345", | ||
"build": "NODE_ENV=production parcel build index.html data/**/*" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
declare module "*.png"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import * as React from "react"; | ||
import { Waiting } from "./Waiting"; | ||
import { Dashboard } from "./Dashboard"; | ||
import CssBaseline from "@material-ui/core/CssBaseline"; | ||
|
||
export const App = () => { | ||
const Main = () => { | ||
switch (location.hostname) { | ||
case "localhost": | ||
case "lvh.me": | ||
return <Dashboard />; | ||
default: | ||
return ( | ||
<Waiting | ||
fqdn={location.hostname} | ||
port={Number(location.port.length === 0 ? 80 : location.port)} | ||
/> | ||
); | ||
} | ||
}; | ||
|
||
return ( | ||
<React.Fragment> | ||
<CssBaseline /> | ||
<Main /> | ||
</React.Fragment> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import * as React from "react"; | ||
import ListItem from "@material-ui/core/ListItem"; | ||
import ListItemText from "@material-ui/core/ListItemText"; | ||
import ListItemIcon from "@material-ui/core/ListItemIcon"; | ||
import Switch from "@material-ui/core/Switch"; | ||
import Notifications from "@material-ui/icons/Notifications"; | ||
import { Container } from "../hooks/useContainerProxiable"; | ||
|
||
export const ContainerItem: React.FC<{ | ||
container: Container; | ||
enableNotification: () => void; | ||
disableNotification: () => void; | ||
notificationEnabled: boolean; | ||
}> = ({ | ||
container, | ||
notificationEnabled, | ||
enableNotification, | ||
disableNotification | ||
}) => { | ||
return ( | ||
<> | ||
<ListItem> | ||
<ListItemText primary={container.name} /> | ||
<ListItemIcon> | ||
<Notifications /> | ||
</ListItemIcon> | ||
<Switch | ||
checked={notificationEnabled} | ||
onChange={e => { | ||
if (e.target.checked) { | ||
enableNotification(); | ||
} else { | ||
disableNotification(); | ||
} | ||
}} | ||
/> | ||
</ListItem> | ||
</> | ||
); | ||
}; |
Oops, something went wrong.