This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #214 from new5558/master
version 0.92 beta
Showing
21 changed files
with
179 additions
and
71 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 |
---|---|---|
@@ -1,16 +1,50 @@ | ||
# CU Blood Component Template | ||
# CU Blood FrontEnd | ||
|
||
|
||
## Starting Development Server | ||
``` | ||
yarn go | ||
yarn start:prod | ||
``` | ||
|
||
Runs the app in the development mode.<br> | ||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. | ||
|
||
## Run production mode | ||
``` | ||
yarn install | ||
yarn gencss | ||
yarn next:build | ||
yarn start | ||
``` | ||
|
||
Need pm2 to always run the node | ||
and nginx to reverse proxy to port 80 | ||
|
||
### There is a login bug when login from localhost | ||
Since this is only appear in localhost, there will not be a fix for this. | ||
- we have provided manual login for localhost use by the following steps: | ||
1. login from http://next.fives.cloud and copy cookie named "connect.sid" which has value familair to the image | ||
|
||
 | ||
|
||
2. open localhost:3000 and use browser's dev tool to create new cookie named "connect.sid" with the same value copied from the previous step. | ||
|
||
 | ||
|
||
3. refreshthe web. you will be now logged in. | ||
|
||
 | ||
|
||
|
||
## Directory Referencing | ||
|
||
Symbol | Directory | Example Usage | ||
--- | --- | --- | ||
@ | ./components | `import FacebookCard from '@/shared-components/FacebookCard'` | ||
@ | ./components | `import FacebookCard from '@/shared-components/FacebookCard'` | ||
|
||
|
||
## Available deployment sites | ||
https://new5558.surge.sh << old build before migrate from static site to express rendering. | ||
https://cu-blood.herokuapp.com << master branch CI/CD NO DOCKER. | ||
https://poom-cublood.herokuapp.com << poom branch CI/CD NO DOCKER. | ||
http://next.fives.cloud << production branch (same as master but less frequent update)(digital ocean 5$ droplet) NO CD ONLY MANUAL DEPLOY. |
13 changes: 8 additions & 5 deletions
13
components/announcement/local-components/AnnouncementCard.jsx
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
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
{ | ||
|
||
"userLogin_Email" : "Email", | ||
"userLoginLogin" : "LOGIN", | ||
"userLoginRegister" : "REGISTER", | ||
"userLogin_Password": "Password", | ||
"userLoginForgotPassword": "Forgot Password?", | ||
"userLoginTitleSmall": "เข้าสู่ระบบ", | ||
"userLoginTitleBig": "LOGIN", | ||
"wrongPassword": "Wrong password", | ||
"userNotFound": "User not found" | ||
} |
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
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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
{ | ||
|
||
"userLogin_Email" : "อีเมล์", | ||
"userLoginLogin" : "เข้าสู่ระบบ", | ||
"userLoginRegister" : "ลงทะเบียน", | ||
"userLogin_Password": "รหัสผ่าน", | ||
"userLoginForgotPassword": "ลืมรหัสผ่าน?", | ||
"userLoginTitleBig": "เข้าสู่ระบบ", | ||
"userLoginTitleSmall": "LOGIN", | ||
"wrongPassword": "รหัสผ่านไม่ถูกต้อง", | ||
"userNotFound": "ไม่พบชื่อผู้ใช้นี้" | ||
} |
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