Skip to content

Commit

Permalink
Merge pull request #3 from A-big-fish-in-a-small-pond/release-junho
Browse files Browse the repository at this point in the history
Release junho
  • Loading branch information
libtv committed Jun 2, 2022
2 parents e5557c5 + debbeba commit ac62afb
Show file tree
Hide file tree
Showing 61 changed files with 1,915 additions and 1,778 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ dist

# TernJS port file
.tern-port

# package-lock.json
package-lock.json
26 changes: 26 additions & 0 deletions Client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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*

# package-lock.json
package-lock.json
54 changes: 26 additions & 28 deletions Client/README.md
Original file line number Diff line number Diff line change
@@ -1,48 +1,46 @@
# <div align="center"> Linux-Js-Online-Interpreter Client </div>
# Getting Started with Create React App

<div align="center">
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

The Linux-Js-Online-Interpreter Client runs the contents of the Linux Shell and Js files on the server and returns the results.
## Available Scripts

</div>
In the project directory, you can run:

### Alternate Rate Limiters
### `npm 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.

## Installation
### `npm test`

From npm:
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.

```sh
npm install --save express-access-limit
```
### `npm run build`

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

```sh
> git clone https://github.com/A-big-fish-in-a-small-pond/Express-Concurrent-Control.git
```
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

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

## Issues and Contributing
### `npm run eject`

If you encounter a bug or want to see something added/changed, please go ahead
and [open an issue](https://github.com/A-big-fish-in-a-small-pond/Express-Concurrent-Control/issues/new)!
If you need help with something, feel free to
[start a discussion](https://github.com/A-big-fish-in-a-small-pond/Express-Concurrent-Control/discussions/new)!
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

## HomePage
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.

Github © [Page](https://github.com/A-big-fish-in-a-small-pond/Express-Concurrent-Control)
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.

NPM © [Page](https://www.npmjs.com/package/express-access-limit)
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.

## License
## Learn More

MIT © [Park and Kim](http://github.com/nusgnojkrap)
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

MIT © [Park and Kim](http://github.com/libtv)
To learn React, check out the [React documentation](https://reactjs.org/).
63 changes: 63 additions & 0 deletions Client/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"name": "client",
"version": "0.1.0",
"private": true,
"dependencies": {
"@monaco-editor/react": "^4.4.5",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.2.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.1",
"@types/node": "^16.11.36",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.4",
"axios": "^0.27.2",
"jquery": "^3.6.0",
"jquery.terminal": "^2.33.3",
"react": "^18.1.0",
"react-device-detect": "^2.2.2",
"react-dom": "^18.1.0",
"react-icons": "^4.3.1",
"react-redux": "^8.0.2",
"react-responsive": "^9.0.0-beta.8",
"react-router-dom": "^6.3.0",
"react-scripts": "5.0.1",
"redux": "^4.2.0",
"redux-logger": "^3.0.6",
"redux-persist": "^6.0.0",
"redux-thunk": "^2.4.1",
"styled-components": "^5.3.5",
"typescript": "^4.6.4",
"web-vitals": "^2.1.4",
"xterm": "^4.18.0",
"xterm-addon-fit": "^0.5.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"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"
]
},
"devDependencies": {
"@types/jquery": "^3.5.14",
"@types/styled-components": "^5.1.25"
}
}
Binary file added Client/public/favicon.ico
Binary file not shown.
39 changes: 39 additions & 0 deletions Client/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web site created using create-react-app" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Linux Server</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>
Binary file added Client/public/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Client/public/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions Client/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions Client/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:
1 change: 1 addition & 0 deletions Client/src/@types/jquery.terminal/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module "jquery.terminal";
31 changes: 31 additions & 0 deletions Client/src/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { Navigate, Route, Routes } from "react-router-dom";
import { Mobile, PC } from "./utils/checkPlatform";
import LoginRoutePC from "./pages/pc/login";
import NotFoundRoute from "./pages/pc/notFound";
import LoginRouteMobile from "./pages/mobile/login";
import MainRoutePC from "./pages/pc/main";

function App() {
return (
<div className="App">
<Mobile>
<Routes>
<Route path="*" element={<Navigate to="/m_login" replace />} />
<Route path={"/m_login"} element={<LoginRouteMobile />} />
<Route path={"*"} element={<NotFoundRoute />} />
</Routes>
</Mobile>

<PC>
<Routes>
<Route path="*" element={<Navigate to="/login" replace />} />
<Route path={"/login"} element={<LoginRoutePC />} />
<Route path={"/main"} element={<MainRoutePC />} />
<Route path={"*"} element={<NotFoundRoute />} />
</Routes>
</PC>
</div>
);
}

export default App;
71 changes: 71 additions & 0 deletions Client/src/asset/css/login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
.login {
position: absolute;
width: 100%;
height: 100%;
background-color: white;
}

.login-header {
width: 100%;
height: 50%;
background-color: #6a75ca;
}

.login-footer {
width: 100%;
height: 50%;
background-color: #eff2f8;
}

.login-content {
width: 470px;
height: 460px;

border: none;
padding: 30px 70px;
box-sizing: border-box;
box-shadow: 2px 2px 2px solid;

background-color: #ffffff;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}

.login-content img {
width: 100%;
}

.login-content-form {
position: relative;
padding-top: 70px;
text-align: center;
}

.login-content-form::before {
content: " ";
position: absolute;

width: 15%;
height: 2px;

left: 50%;
top: 15px;

transform: translate(-50%);
background-color: #6a75ca;
}

.login-content h2 {
width: 100%;
margin-bottom: 10px;
}

.login-content-form input {
margin-top: 15px;
}

.login-content-form button {
margin-top: 30px;
}
Loading

0 comments on commit ac62afb

Please sign in to comment.