Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

追加 #2

Open
wants to merge 50 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
a0f37d5
feat: actions
bokotomo Apr 23, 2020
df858ed
feat
bokotomo Apr 23, 2020
d153beb
feat: message inprogress
bokotomo Apr 23, 2020
4ce96f9
feat: message compornets
bokotomo Apr 23, 2020
6219188
feat: 微調整
bokotomo Apr 25, 2020
f8e4a1d
feat: producton docker
bokotomo Apr 25, 2020
9fc9764
feat: 微調整
bokotomo Apr 25, 2020
8f8a55c
feat: message delete
bokotomo Apr 25, 2020
5ee2c42
feat: update task
bokotomo Apr 26, 2020
8058c87
feat: task date
bokotomo Apr 26, 2020
3c86014
feat: add type style
bokotomo Apr 26, 2020
93f4bad
feat: css
bokotomo Apr 26, 2020
8e7ceb6
feat: css
bokotomo Apr 26, 2020
bd7226c
feat: css
bokotomo Apr 27, 2020
3562cd9
feat: css
bokotomo Apr 27, 2020
6f2d58d
refactor: 微調整
bokotomo Apr 27, 2020
c7c9aa8
refactor: 微調整
bokotomo Apr 27, 2020
d12ec46
refactor: 微調整
bokotomo Apr 27, 2020
8fbf836
refactor: 微調整
bokotomo Apr 27, 2020
02857d9
feat: css
bokotomo Apr 27, 2020
53e9b43
feat: add svg and notasktext
bokotomo Apr 27, 2020
acd539a
feat: add svg and modal
bokotomo Apr 28, 2020
4eae296
feat: add tapioka svg
bokotomo Apr 28, 2020
49aeece
fix: tapioka fix
bokotomo Apr 28, 2020
9967982
feat: reaction modal
bokotomo Apr 28, 2020
a12133b
feat: reaction modal icon
bokotomo Apr 28, 2020
74f060f
fix: key
bokotomo Apr 28, 2020
13c7c78
feat: reaction css
bokotomo Apr 28, 2020
f76d450
feat: reaction css
bokotomo Apr 28, 2020
934ed64
feat
bokotomo Apr 29, 2020
b46d640
feat: auth
bokotomo May 8, 2020
721c674
feat: auth
bokotomo May 8, 2020
542bd76
refactor
bokotomo May 8, 2020
fb757c2
feat
bokotomo May 10, 2020
d7e483d
feat
bokotomo May 10, 2020
b0022fc
feat
bokotomo May 13, 2020
026e6e1
feat
bokotomo May 13, 2020
b3e0b8a
feat: auth
bokotomo May 13, 2020
dd58aa3
feat: package
bokotomo May 13, 2020
b39961c
refactor
bokotomo May 14, 2020
6282e3b
feat: add saga, refactor
bokotomo May 14, 2020
1c8cf2c
feat
bokotomo May 14, 2020
b653cd0
feat: saga
bokotomo May 14, 2020
4b204d0
refactor
bokotomo May 14, 2020
3fab6ce
refactor: redux hooks
bokotomo May 15, 2020
28f2a1a
refactor
bokotomo May 15, 2020
02571bd
refactor
bokotomo May 15, 2020
63b0d33
refactor
bokotomo May 15, 2020
fccb72f
refactor
bokotomo May 15, 2020
d02c241
refactor
bokotomo May 15, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .env.dev
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
REACT_APP_API_ENDPOINT=
# API
REACT_APP_API_ENDPOINT=wss://
6 changes: 2 additions & 4 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: ESlint

on:
push:
branches: [master]
pull_request:
branches: [master]

Expand All @@ -15,12 +13,12 @@ jobs:
node-version: [10]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: yarn install, eslint
- name: yarn install and eslint
run: |
yarn
yarn lint
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,20 @@ npm run lint-fix
# API

https://github.com/bokotomo/WorkMode-api

## メモ

・reduxHooks はモーダル処理だけに限定して使用してみてる。
あまり広く使いすぎると関心がごちゃごちゃになるので、reduxhooks は用途を制限して使う方がいい気がしてる。
・onClick とかの Dom から呼び出す関数名には、on プレフィックスを付けてる。

## Check Production

check production by nginx and docker

```
cd ./infrastructure/docker
docker-compose up -d

// open http://localhost:9998
```
1 change: 0 additions & 1 deletion infrastructure/docker/Dockerfile

This file was deleted.

19 changes: 7 additions & 12 deletions infrastructure/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
version: "3.7"
version: '3.7'
services:
work-mode-front:
build:
context: .
dockerfile: Dockerfile
container_name: "work-mode"
volumes:
- ../../:/src
tty: true
expose:
- 80
privileged: true
work-mode-front-prod:
image: nginx:1.17-alpine
ports:
- '9998:80'
volumes:
- ../../build:/usr/share/nginx/html
2,756 changes: 800 additions & 1,956 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
"@fortawesome/free-brands-svg-icons": "^5.13.0",
"@fortawesome/free-solid-svg-icons": "^5.13.0",
"@fortawesome/react-fontawesome": "^0.1.9",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.4.0",
"@testing-library/user-event": "^7.2.1",
"@types/jest": "^24.9.1",
"@types/node": "^12.12.25",
"@types/react": "^16.9.19",
"@types/react-beautiful-dnd": "^12.1.2",
"@types/react-dom": "^16.9.5",
"@types/react-modal": "^3.10.5",
"@types/react-redux": "^7.1.7",
"@types/redux-thunk": "^2.1.0",
"@types/jest": "^24.9.1",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.4.0",
"@testing-library/user-event": "^7.2.1",
"@types/react-router-dom": "^5.1.5",
"dotenv": "^8.2.0",
"moment": "^2.24.0",
"react": "^16.12.0",
Expand All @@ -27,12 +27,14 @@
"react-dom": "^16.12.0",
"react-modal": "^3.11.2",
"react-redux": "^7.1.3",
"react-router-dom": "^5.1.2",
"react-scripts": "^3.4.1",
"redux": "^4.0.5",
"redux-thunk": "^2.3.0",
"redux-saga": "^1.1.3",
"typescript": "^3.7.5",
"typescript-fsa": "^3.0.0",
"typescript-fsa-reducers": "^1.2.1"
"typescript-fsa-reducers": "^1.2.1",
"typestyle": "^2.1.0"
},
"scripts": {
"start": "npm run lint-fix && react-app-rewired start",
Expand Down
28 changes: 11 additions & 17 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
import React from 'react';
import Modal from 'react-modal';
import { BrowserRouter, Route } from 'react-router-dom';
import { withCookies } from 'react-cookie';
import { library } from '@fortawesome/fontawesome-svg-core';
import { fab } from '@fortawesome/free-brands-svg-icons';
import {
faPlus,
faCaretDown,
faThumbsUp,
faEdit,
faTimes,
faMoon,
} from '@fortawesome/free-solid-svg-icons';
import TopPageContainer from './containers/TopPageContainer';
import '@/setting/fontawesome';
import '@/setting/reactmodal';
import TopPageContainer from '@/containers/TopPage';
import { ValidationPage } from '@/components/validation/Base';

Modal.setAppElement('#root');

library.add(fab, faPlus, faCaretDown, faThumbsUp, faEdit, faTimes, faMoon);

const App: React.FC = () => <TopPageContainer />;
const App: React.FC = () => (
<BrowserRouter>
<Route path="/" exact component={TopPageContainer} />
<Route path="/validation" component={ValidationPage} />
</BrowserRouter>
);

export default withCookies(App);
2 changes: 1 addition & 1 deletion src/components/atom/MessageLineBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
export const MessageLineBar: React.FC = () => (
<div
style={{
background: '#3e547a',
background: '#2F466B',
height: 1,
}}
/>
Expand Down
41 changes: 41 additions & 0 deletions src/components/atom/UserIconItem.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import React from 'react';
import { style } from '@/css/style';

interface Props {
readonly name: string;
readonly color: string;
}
export const UserIconItem: React.FC<Props> = (props) => {
const getTopName = (name: string) => name.slice(0, 1);
const css = {
item: style({
position: 'relative',
width: 40,
height: 40,
lineHeight: '40px',
background: props.color,
borderRadius: 40,
margin: 'auto',
color: '#ffffffad',
textAlign: 'center',
fontSize: 20,
fontWeight: 900,
}),
activeMark: style({
position: 'absolute',
background: '#48BB33',
border: '1px solid #8EBD84',
borderRadius: 10,
width: 10,
height: 10,
right: 0,
bottom: 0,
}),
};
return (
<div className={css.item}>
<div className={css.activeMark} />
{getTopName(props.name)}
</div>
);
};
26 changes: 26 additions & 0 deletions src/components/atom/UserIconItemMessage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from 'react';
import { style } from '@/css/style';

interface Props {
readonly name: string;
readonly color: string;
}
export const UserIconItemMessage: React.FC<Props> = (props) => {
const getTopName = (name: string) => name.slice(0, 1);
const css = {
item: style({
width: 50,
height: 50,
borderRadius: 50,
cursor: 'pointer',
lineHeight: '50px',
background: props.color,
margin: 'auto',
color: '#ffffffad',
textAlign: 'center',
fontSize: 20,
fontWeight: 900,
}),
};
return <div className={css.item}>{getTopName(props.name)}</div>;
};
Loading