Skip to content

Commit b50f930

Browse files
committed
Merge: merge remote-tracking branch 'form/master'
2 parents f7e1044 + 2ae7e7e commit b50f930

83 files changed

Lines changed: 16447 additions & 0 deletions

Some content is hidden

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

packages/form/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GENERATE_SOURCEMAP=false

packages/form/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# testing
7+
/coverage
8+
9+
# production
10+
# /build
11+
12+
# misc
13+
.git
14+
.idea
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

packages/form/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:alpine
2+
3+
RUN npm install -g yarn
4+
5+
WORKDIR /usr/share/nginx/form
6+
7+
COPY package.json .
8+
9+
RUN yarn
10+
11+
COPY . .
12+
13+
RUN yarn build

packages/form/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 UniqueStudio
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/form/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Unique Recruitment Form
2+
3+
## Description
4+
5+
Unique Recruitment System is the integrated project to solve the problem of the complicated recruitment process in Unique Studio.
6+
7+
There are two parts of Unique Recruitment System,
8+
one is [Form (this repo)](https://github.com/UniqueStudio/UniqueRecruitmentForm),
9+
the other is [Dashboard](https://github.com/UniqueStudio/UniqueRecruitmentDashboard).
10+
11+
## Features
12+
13+
1. Simple and beautiful recruitment form which is independent from recruitment website and official website
14+
2. Return receipt form in which candidates can select interview / stay-up-test time
15+
16+
## Toolchain (possibly will be changed)
17+
18+
1. `TypeScript`
19+
2. `React`
20+
3. `CRA`
21+
4. `Sass`
22+
5. `Material UI`
23+
6. ...

packages/form/docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: "3"
2+
services:
3+
nginx:
4+
build:
5+
context: nginx
6+
ports:
7+
- 6655:6655

packages/form/getChinese.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
grep -ohPI '[\p{Han}]' -r $PATTERN ./src/* | tr -d '\n'

packages/form/nginx/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM nginx:1.15.2-alpine
2+
3+
COPY nginx.conf /etc/nginx/nginx.conf
4+
5+
CMD ["nginx", "-g", "daemon off;"]

packages/form/nginx/nginx.conf

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
user nobody;
2+
worker_processes auto;
3+
pid /run/nginx.pid;
4+
5+
events {
6+
worker_connections 768;
7+
# multi_accept on;
8+
}
9+
10+
http {
11+
server {
12+
listen 6655;
13+
location / {
14+
root /usr/share/nginx/form;
15+
try_files $uri /index.html =404;
16+
}
17+
}
18+
19+
##
20+
# Basic Settings
21+
##
22+
23+
sendfile on;
24+
tcp_nopush on;
25+
tcp_nodelay on;
26+
keepalive_timeout 65;
27+
types_hash_max_size 2048;
28+
# server_tokens off;
29+
30+
# server_names_hash_bucket_size 64;
31+
# server_name_in_redirect off;
32+
33+
include /etc/nginx/mime.types;
34+
default_type application/octet-stream;
35+
36+
##
37+
# Logging Settings
38+
##
39+
40+
access_log /var/log/nginx/access.log;
41+
error_log /var/log/nginx/error.log;
42+
43+
##
44+
# Virtual Host ../configs
45+
##
46+
47+
include /etc/nginx/conf.d/*.conf;
48+
include /etc/nginx/sites-enabled/*;
49+
}

packages/form/package.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "unique-recruitment-form",
3+
"version": "2.0.0",
4+
"description": "the form for recruitment of Unique Studio",
5+
"author": "@winderica",
6+
"private": true,
7+
"homepage": "/",
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/UniqueStudio/UniqueRecruitmentForm.git"
11+
},
12+
"contributors": [
13+
{
14+
"name": "winderica",
15+
"email": "winderica@gmail.com"
16+
}
17+
],
18+
"dependencies": {
19+
"@material-ui/core": "^4.2.0",
20+
"@material-ui/icons": "^4.2.1",
21+
"classnames": "^2.2.6",
22+
"node-sass": "^4.11.0",
23+
"react": "^16.9.0",
24+
"react-autosuggest": "^9.4.3",
25+
"react-dom": "^16.9.0",
26+
"react-scripts": "^3.1.1",
27+
"typescript": "^3.5.2"
28+
},
29+
"devDependencies": {
30+
"@types/classnames": "^2.2.7",
31+
"@types/node": "^10.12.20",
32+
"@types/react": "^16.9.2",
33+
"@types/react-autocomplete": "^1.8.5",
34+
"@types/react-autosuggest": "^9.3.9",
35+
"@types/react-dom": "^16.9.0",
36+
"font-spider": "^1.3.4",
37+
"redux-devtools-extension": "^2.13.7",
38+
"tslint": "^5.19.0"
39+
},
40+
"scripts": {
41+
"start": "react-scripts start",
42+
"build": "react-scripts build",
43+
"test": "react-scripts test --env=jsdom",
44+
"eject": "react-scripts eject"
45+
},
46+
"browserslist": [
47+
">0.2%",
48+
"not dead",
49+
"not ie <= 11",
50+
"not op_mini all"
51+
]
52+
}

0 commit comments

Comments
 (0)