Skip to content

Develop #86

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

Merged
merged 284 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
284 commits
Select commit Hold shift + click to select a range
96a9549
Fix: change time to relative time
JuneLin2001 Aug 26, 2024
f59610e
Fix: change time to relative time
JuneLin2001 Aug 26, 2024
dc55780
Merge branch 'feature/issuePageUI' of https://github.com/JuneLin2001/…
JuneLin2001 Aug 26, 2024
47bce0f
feat: dynamic get issue number from website
JuneLin2001 Aug 26, 2024
1ab5b0e
feat: temp
rebeccaS47 Aug 26, 2024
64e1878
feat: pass repoName through router parameters
Aug 26, 2024
3c8475c
feat: move getIssueComments to utils/api.jsx
rebeccaS47 Aug 26, 2024
7801136
feat: add `comment` component temp
Aug 26, 2024
b0a9a56
temp
Aug 26, 2024
e676f25
Merge branch 'feature/getCommentsList' of https://github.com/JuneLin2…
Aug 26, 2024
49d06b2
temp
Aug 26, 2024
846e65a
style: add center component
JuneLin2001 Aug 26, 2024
7d7734f
feat: link issue and comment page
JuneLin2001 Aug 26, 2024
5fc8dcb
Merge pull request #13 from JuneLin2001/feature/passParamsToIssuePage
hsin-2333 Aug 26, 2024
43930e6
Merge branch 'develop' into feature/issuePageUI
JuneLin2001 Aug 26, 2024
bb03e85
Merge pull request #14 from JuneLin2001/feature/issuePageUI
JuneLin2001 Aug 26, 2024
4066fb8
fix: conflict gone
JuneLin2001 Aug 26, 2024
ab2a758
fix: misspell comment"s" to comment
JuneLin2001 Aug 26, 2024
9701d10
style: website's icon
JuneLin2001 Aug 26, 2024
2214153
feat: can get search value from URL
JuneLin2001 Aug 27, 2024
e06feba
fix: get label and author from URL
JuneLin2001 Aug 27, 2024
84e2cf6
feat: move getIssueComments to utils/api.jsx
rebeccaS47 Aug 26, 2024
498790c
fix: fetchData add timestamp not from cache
rebeccaS47 Aug 26, 2024
c2cccb9
feat: add router, use Param to get issueNumber
rebeccaS47 Aug 27, 2024
91bffc9
feat: change issue_number to issueNumber
rebeccaS47 Aug 27, 2024
4bb01f7
feat: add remove and update comment feature
rebeccaS47 Aug 27, 2024
d2cd66d
fix: remove<></> let map child has uniqe key
rebeccaS47 Aug 27, 2024
b9b161e
fix: author and lebel's search logic
JuneLin2001 Aug 27, 2024
c1ba0ef
feat: add comment discussion UI style
Aug 27, 2024
cb0eba2
Merge branch 'feature/getCommentsList' of https://github.com/JuneLin2…
Aug 27, 2024
73aa96b
Merge branch 'feature/reviseCommentUI' into feature/getCommentsList
Aug 27, 2024
464bce3
style: rename TimelineComment component for clarification
Aug 27, 2024
ff149aa
Merge branch 'feature/getCommentsList' of https://github.com/JuneLin2…
rebeccaS47 Aug 27, 2024
3b2a4ec
fix: dynamic get search value from URL and change placeholder
JuneLin2001 Aug 27, 2024
594d0ad
feat: add lots UI in issue page
JuneLin2001 Aug 27, 2024
15ae860
feat: add IssueSearch Component UI
Aug 27, 2024
3d0a6a4
fix: select author function
JuneLin2001 Aug 27, 2024
99a4237
feat: can get closed issues
JuneLin2001 Aug 28, 2024
a1bda79
style: improve actionMenu UI
Aug 28, 2024
a55acbb
feat: add buttonGroup UI
Aug 28, 2024
1fdffd8
feat: add button group
JuneLin2001 Aug 28, 2024
bad3959
style: import primitive CSS variables (color, font, spacing...)
Aug 28, 2024
7078e1b
feat: printwidth=80
rebeccaS47 Aug 28, 2024
7f5f5d6
fix: fetchInitData in comment, after update delete create use fetchData
rebeccaS47 Aug 28, 2024
545e2c2
feat: add getIssueBody, createComment and commentPage layout
rebeccaS47 Aug 28, 2024
428f422
feat: display how many comments that issue have
JuneLin2001 Aug 28, 2024
5e9b3c1
Merge remote-tracking branch 'origin/feature/IssueSearchForm' into fe…
JuneLin2001 Aug 28, 2024
31f9cab
feat: temp commentContext
rebeccaS47 Aug 28, 2024
209e0e9
fix: search functions
JuneLin2001 Aug 28, 2024
b080391
fix: pass issueNumber to commentContext by fetchInitData function
rebeccaS47 Aug 28, 2024
f6c9527
feat: remove reduntant code
rebeccaS47 Aug 28, 2024
f1ea7df
style: font size
JuneLin2001 Aug 28, 2024
30157cf
feat: add comment page layout
Aug 28, 2024
96fe88d
fix: commentContext get issueNumber from useParam, and modify getIssu…
rebeccaS47 Aug 28, 2024
3ae5782
Merge branch 'feature/pagelayout' into feature/getCommentsList
Aug 28, 2024
e78fbf6
feat: commit temp
rebeccaS47 Aug 28, 2024
a0f57d8
Merge branch 'feature/getCommentsList' of https://github.com/JuneLin2…
rebeccaS47 Aug 28, 2024
6d61790
style: issue page
JuneLin2001 Aug 28, 2024
94f2e61
feat: get how many are open issues
JuneLin2001 Aug 28, 2024
2c22943
feat: extract timeline comment from CommentPage component into Timeli…
rebeccaS47 Aug 28, 2024
8d2a0df
feat: Extract issuebody from CommentPage into IssueBody component, an…
rebeccaS47 Aug 28, 2024
3961ec5
feat: implement auto logout after 8 hours
Aug 28, 2024
1b0fbc7
Fix: handle website when choose labels
JuneLin2001 Aug 28, 2024
35e038a
fix: update URL by select author
JuneLin2001 Aug 28, 2024
ec42f03
style: set search input width to 100% to make it stretch
Aug 28, 2024
97dd0a8
fix: can get correct issue from label select
JuneLin2001 Aug 28, 2024
1f39db0
fix: multiple select logic
JuneLin2001 Aug 28, 2024
15771de
fix: handle search
JuneLin2001 Aug 28, 2024
4cdc8b0
fix: update current url when select
JuneLin2001 Aug 28, 2024
ada2d84
style: font weight bold and labels's padding
JuneLin2001 Aug 28, 2024
b368a74
style: resolve conflict and synchronizing bold
JuneLin2001 Aug 28, 2024
8907ff9
Merge branch 'develop' into feature/issuePageUINew
JuneLin2001 Aug 28, 2024
05354ce
style: modify `commentBox` UI
Aug 29, 2024
efd5ec0
feat: commentContext get owner data from AuthContext user
rebeccaS47 Aug 29, 2024
19c77a4
Merge branch 'feature/getCommentsList' of https://github.com/JuneLin2…
rebeccaS47 Aug 29, 2024
566d47e
fix: add PointerBox
rebeccaS47 Aug 29, 2024
7d6038f
fix: remove useless component
JuneLin2001 Aug 29, 2024
cb90f5d
feat: remove useless code
rebeccaS47 Aug 29, 2024
9043a84
Revert "fix: remove useless component"
JuneLin2001 Aug 29, 2024
fe0320e
Merge pull request #17 from JuneLin2001/feature/autoLogout
hsin-2333 Aug 29, 2024
6274864
fix: remove useless component
JuneLin2001 Aug 29, 2024
e3a5a17
fix: add pull request filter in how many issues calculator
JuneLin2001 Aug 29, 2024
ef01133
Merge branch 'feature/getCommentsList' into develop
rebeccaS47 Aug 29, 2024
74e00f2
Update index.css
JuneLin2001 Aug 29, 2024
c947768
fix: resolve conflict
JuneLin2001 Aug 29, 2024
06a6b03
Merge pull request #16 from JuneLin2001/feature/issuePageUINew
JuneLin2001 Aug 29, 2024
82bcf7b
fix: resolve merge conflict
Aug 29, 2024
139984d
fix: add repoName to router
Aug 29, 2024
b2c49bf
style: remove buttom line in <a>
JuneLin2001 Aug 29, 2024
5bff0e3
style: add layout component on loginPage
Aug 29, 2024
e31b122
Merge branch 'develop' of https://github.com/JuneLin2001/91APP_front-…
Aug 29, 2024
e2bdaca
style: remove useless box-shadow in button
JuneLin2001 Aug 29, 2024
bb415c8
style: misspell
JuneLin2001 Aug 29, 2024
227d085
feat: add commentPage PageLayout
rebeccaS47 Aug 29, 2024
6722713
Merge branch 'develop' of https://github.com/JuneLin2001/91APP_front-…
rebeccaS47 Aug 29, 2024
1083185
style: remove useless box-shadow in button
JuneLin2001 Aug 29, 2024
e0530f2
style: misspell
JuneLin2001 Aug 29, 2024
e8150b5
Merge branch 'feature/issuePageURL' of https://github.com/JuneLin2001…
JuneLin2001 Aug 29, 2024
de209a5
chore: add firebase to gitignore
Aug 29, 2024
ffe7256
Merge branch 'develop' of https://github.com/JuneLin2001/91APP_front-…
Aug 29, 2024
b483f3d
Update README.md
JuneLin2001 Aug 29, 2024
834e384
chore: modify build and firebase path
Aug 29, 2024
827f3f0
Merge branch 'develop' of https://github.com/JuneLin2001/91APP_front-…
Aug 29, 2024
217f47b
Update README.md
JuneLin2001 Aug 29, 2024
e991456
Update README.md
hsin-2333 Aug 29, 2024
31b553a
feat: get repo type = "all"
Aug 29, 2024
e3df3fa
fix: separate components
JuneLin2001 Aug 29, 2024
1aec842
feat: get repo type = "all"
Aug 29, 2024
aa61c0a
fix: owner now from URL
JuneLin2001 Aug 29, 2024
fa09a0d
Merge branch 'feature/getRepoOwner' of https://github.com/JuneLin2001…
JuneLin2001 Aug 29, 2024
db65392
fix: move issuePage components to Pages file
JuneLin2001 Aug 29, 2024
3972c00
style: modify commentBox UI
Aug 29, 2024
9b6924c
Merge branch 'feature/commentBox' into develop
Aug 29, 2024
f8aaffa
fix: replace user to repo owner on issue page
Aug 29, 2024
56a0810
fix: get open and closed issue's number
JuneLin2001 Aug 29, 2024
6115214
fix: add owner useParams
rebeccaS47 Aug 29, 2024
e3b0987
feat: try add debounce in api request
JuneLin2001 Aug 29, 2024
eec095c
fix: combine apis
JuneLin2001 Aug 29, 2024
76e2e11
Merge branch 'feature/IssuePageHandleURL' into develop
JuneLin2001 Aug 29, 2024
351c035
fix: debounce function
JuneLin2001 Aug 30, 2024
169b4da
feat: navigate to error page when something went wrong
Aug 30, 2024
4cd52dc
Merge branch 'feature/handleError' into develop
Aug 30, 2024
556d6d0
fix: resolve merge conflict
Aug 30, 2024
321fe6b
fix: resolve merge bug on issuePage
Aug 30, 2024
b79958d
style: modify the icon color of the IssueClosedIcon in the commentBox…
Aug 30, 2024
b67c9f6
fix: search logic and placeholder
JuneLin2001 Aug 30, 2024
5a705cf
feat: add private router to prevent unauthenticated users
Aug 30, 2024
b888cd2
feat: modify timeline item margin and label position
Aug 30, 2024
273e081
feat: add event types layout
rebeccaS47 Aug 30, 2024
169c054
feat: remove redundant code
rebeccaS47 Aug 30, 2024
e3872f3
Merge branch 'develop' of https://github.com/JuneLin2001/91APP_front-…
rebeccaS47 Aug 30, 2024
fd02d52
feat: timeline comment owner UI
rebeccaS47 Aug 30, 2024
88504a4
fix: CommentPage IssueBody ActionMenu layout
rebeccaS47 Aug 30, 2024
e74f7bb
fix: catch error
JuneLin2001 Aug 30, 2024
cc56a6e
Merge branch 'develop' into feature/IssuePageHandleURL
JuneLin2001 Aug 30, 2024
3753b20
Merge branch 'develop' into feature/IssuePageHandleURL
JuneLin2001 Aug 30, 2024
8408dd6
Merge branch 'feature/IssuePageHandleURL' of https://github.com/JuneL…
JuneLin2001 Aug 30, 2024
43ef2d8
fix: TimelineComment and IssueBody markdownbtn not show
rebeccaS47 Aug 30, 2024
04883c9
Merge pull request #21 from JuneLin2001/feature/privateRoute
hsin-2333 Aug 30, 2024
a007a49
fix: search function
JuneLin2001 Aug 30, 2024
9693e70
fix: add renamed event type
rebeccaS47 Aug 30, 2024
7205403
fix: get result from api
JuneLin2001 Aug 30, 2024
f0b1306
style: modify login css
Aug 30, 2024
6ba931d
Merge branch 'develop' of https://github.com/JuneLin2001/91APP_front-…
Aug 30, 2024
7b8bbe5
chore: adjust file naming and path
Aug 30, 2024
fc1b8cc
fix: search function
JuneLin2001 Aug 30, 2024
9c69b74
Merge pull request #22 from JuneLin2001/feature/IssuePageHandleURL
JuneLin2001 Aug 30, 2024
c42052e
feat: organize the commentData by event and author, add color contras…
Sep 1, 2024
d1f4162
fix: can correctly handle URL change
JuneLin2001 Sep 1, 2024
3d7a443
fix: placeholder logic
JuneLin2001 Sep 1, 2024
097a9b8
fix: label with space
JuneLin2001 Sep 1, 2024
9a9714c
fix: remove useless parts in q while handle URL
JuneLin2001 Sep 1, 2024
a22c267
fix: handle search
JuneLin2001 Sep 1, 2024
4c3232e
fix: remove ?q= in URL when every is default
JuneLin2001 Sep 1, 2024
99c953b
fix: remove redundant "is:issue" in URL
JuneLin2001 Sep 1, 2024
c25f2f0
feat: click comment icon can go to comment page
JuneLin2001 Sep 1, 2024
b38c70b
style: rename variables
JuneLin2001 Sep 1, 2024
b06752e
feat: add reset button
JuneLin2001 Sep 1, 2024
8c14f94
fix: synchronous label reset
JuneLin2001 Sep 1, 2024
544030f
refactor: move processComment, seperate getBrightness functions
Sep 2, 2024
3e6a67d
Merge pull request #24 from JuneLin2001/feature/IssuePageTryGetFromURL
JuneLin2001 Sep 2, 2024
9f53787
Merge pull request #25 from JuneLin2001/feature/commentTimeline
hsin-2333 Sep 2, 2024
0d5a921
feat: add anchor to link and modify header Text
rebeccaS47 Sep 2, 2024
4aec46c
Merge branch 'feature/getSameTimelineItem' into develop
rebeccaS47 Sep 2, 2024
01e79de
style: labels in issue page
JuneLin2001 Sep 2, 2024
48dbe70
fix: move states to context
JuneLin2001 Sep 2, 2024
ebed63e
fix: owner and repoName now can pass correctly
JuneLin2001 Sep 2, 2024
e53658b
Merge pull request #26 from JuneLin2001/feature/IssuePageHandleStateI…
JuneLin2001 Sep 2, 2024
aa3396c
feat: add not planned state in issue page
JuneLin2001 Sep 2, 2024
6bab1f9
feat: add not planned state in issue page
JuneLin2001 Sep 2, 2024
afc3010
feat: add all selected state
JuneLin2001 Sep 2, 2024
e0077d5
Merge branch 'feature/issuePageNotPlannedState' of https://github.com…
JuneLin2001 Sep 2, 2024
3e4195d
feat: all select in header's checkbox
JuneLin2001 Sep 2, 2024
e71c79f
Merge pull request #27 from JuneLin2001/feature/issuePageNotPlannedState
JuneLin2001 Sep 2, 2024
d984768
feat: add "renamed" event content in timelineComment
Sep 2, 2024
983e11e
feat: add labels in pageLayout component
Sep 2, 2024
8a76ab9
feat: add tooltip with label description based on context labels
Sep 2, 2024
5b15a18
feat: link to new issue page
JuneLin2001 Sep 2, 2024
4095580
feat: post new issue
JuneLin2001 Sep 2, 2024
db5a316
Merge branch 'feature/commentPageUI' into feature/PostNewIssue
JuneLin2001 Sep 2, 2024
363c159
fix: handle error in handleCreateIssue
JuneLin2001 Sep 2, 2024
db316e9
feat: add layout.pane into newIssuePage
Sep 2, 2024
09e56d8
Merge branch 'feature/PostNewIssue' of https://github.com/JuneLin2001…
Sep 2, 2024
e65021f
feat: add layout pane to new issue page and onClick to launch new iss…
Sep 2, 2024
cd60a27
fix: load initial data than don't error reload
JuneLin2001 Sep 2, 2024
c9dfa97
refactor: separate labels into an independent component
Sep 2, 2024
6d1845c
feat: add IssuePageNewIssueAddLabel button
JuneLin2001 Sep 2, 2024
6e1ad47
Merge branch 'feature/labels' into feature/PostNewIssue
JuneLin2001 Sep 2, 2024
4e797e0
feat: read all labels in PageLayoutPane
JuneLin2001 Sep 2, 2024
3f5bd19
feat: add labels in comment page
JuneLin2001 Sep 2, 2024
4776dc3
fix: send API request to update labels when the panel closes
Sep 3, 2024
cc0b7ca
feat: set original label selected status, and update labels based on …
Sep 3, 2024
62d8065
refactor: move components
JuneLin2001 Sep 3, 2024
797d2c3
fix: show label tooltip when description is present
Sep 3, 2024
4f7e073
feat: new issue with labels
JuneLin2001 Sep 3, 2024
fafa13e
fix: add labels in issue that already have
JuneLin2001 Sep 3, 2024
df0f38f
style: label button in IssuePageNewIssueAddLabel.jsx
JuneLin2001 Sep 3, 2024
4882820
style: inner of select panels
JuneLin2001 Sep 3, 2024
1842fda
feat: add upadte issue state and add header labelState
rebeccaS47 Sep 3, 2024
1f58172
Merge branch 'feature/updateIssueState' into develop
rebeccaS47 Sep 3, 2024
25f81b6
fix: remove useless parts
JuneLin2001 Sep 3, 2024
9a7e1f8
feat: add pagination
JuneLin2001 Sep 3, 2024
7019acf
fix: show buttons on commentPage when window size>768px
Sep 3, 2024
423c5d9
feat: Pagination logic
JuneLin2001 Sep 3, 2024
f7b79c0
style: remove useless parts
JuneLin2001 Sep 3, 2024
2820722
Merge pull request #51 from JuneLin2001/feature/issuePagePagination
JuneLin2001 Sep 3, 2024
68229e9
feat: add issue edit function on comment page
Sep 3, 2024
2b33064
fix: add fetch after update Issue state
rebeccaS47 Sep 3, 2024
72703df
Merge branch 'develop' of https://github.com/JuneLin2001/91APP_front-…
rebeccaS47 Sep 3, 2024
5c1ef4a
Merge branch 'feature/editIssueTitle' into develop
Sep 3, 2024
f6c4458
fix: don't send useless api request
JuneLin2001 Sep 3, 2024
0233073
fix: add token in api request
JuneLin2001 Sep 3, 2024
37aa60d
refactor: remove useless parts
JuneLin2001 Sep 3, 2024
b96b804
fix: select author and search function
JuneLin2001 Sep 3, 2024
14d0fd5
fix: show label change on pane layout
rebeccaS47 Sep 3, 2024
607ea5e
Merge branch 'develop' of https://github.com/JuneLin2001/91APP_front-…
rebeccaS47 Sep 3, 2024
10d3962
fix: search function crash
JuneLin2001 Sep 3, 2024
816133d
style: issue title margin right to separate with labels
JuneLin2001 Sep 3, 2024
eb2a8e9
fix: Issue title only update when click save, and setIsEditingTitle=f…
rebeccaS47 Sep 3, 2024
df062c8
fix: add if in onLabelsChange function
JuneLin2001 Sep 3, 2024
0334796
fix: add fetch fetchIssueBody and fetchTimelineComments after create …
rebeccaS47 Sep 3, 2024
faee9be
feat: change handleDelete to handleDeleteComment
rebeccaS47 Sep 3, 2024
6665a5b
feat: move handleNewIssueClick to commentContext
rebeccaS47 Sep 3, 2024
6159162
fix: set current page to 1 after select
JuneLin2001 Sep 4, 2024
f59e0aa
Revert "fix: set current page to 1 after select"
JuneLin2001 Sep 4, 2024
184111f
fix: set current page to 1 after select
JuneLin2001 Sep 4, 2024
5b08732
fix: add "added" on timeline comment
Sep 4, 2024
78d6d45
Merge branch 'develop' of https://github.com/JuneLin2001/91APP_front-…
Sep 4, 2024
c9cf037
fix: remove redundant <br />
Sep 4, 2024
5bf0682
fix: display selected labels in new lssue page
JuneLin2001 Sep 4, 2024
aabb7df
Merge branch 'feature/newIssuePageLabelDisplay' into develop
JuneLin2001 Sep 4, 2024
391bb9b
feat: textarea temp
rebeccaS47 Sep 4, 2024
ffd2bad
Merge branch 'feature/addFetchAfterUpdateData' into develop
rebeccaS47 Sep 4, 2024
0618f30
fix: align start in issue page
JuneLin2001 Sep 4, 2024
b97b916
style: select button in PageLayoutPane
JuneLin2001 Sep 4, 2024
08fec1e
Merge branch 'feature/IssuePageRemoveAlignCenter' into develop
JuneLin2001 Sep 4, 2024
3cbde53
style: comment page edit title's input size
JuneLin2001 Sep 4, 2024
a17e202
feat: add Link from comment Page to Issue Page
rebeccaS47 Sep 4, 2024
4e32e09
fix: show Issue page pagination after fetch
JuneLin2001 Sep 4, 2024
3229102
Merge branch 'feature/addPreviousLink' into develop
rebeccaS47 Sep 4, 2024
5659009
fix: current page to 1 after state change
JuneLin2001 Sep 4, 2024
f302527
Merge branch 'develop' of https://github.com/JuneLin2001/91APP_front-…
JuneLin2001 Sep 4, 2024
041ae13
feat: add loading gif when loading
Sep 4, 2024
958b564
Merge branch 'develop' of https://github.com/JuneLin2001/91APP_front-…
Sep 4, 2024
a9c9c87
refactor: separate ActionBarIcons from commentBox
Sep 4, 2024
1c79178
fix: add body at api.updateIssueState to update issueBody
rebeccaS47 Sep 4, 2024
54f79ef
Merge branch 'feature/updateIssueBody' into develop
rebeccaS47 Sep 4, 2024
776c484
feat: add PropType in issue page components
JuneLin2001 Sep 5, 2024
a443109
refactor: remove useless console.log
JuneLin2001 Sep 5, 2024
7aa8285
fix: handle URL logic
JuneLin2001 Sep 5, 2024
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
4 changes: 4 additions & 0 deletions .firebase/hosting.ZGlzdA.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
vite.svg,1724322156064,59ec4b6085a0cb1bf712a5e48dd5f35b08e34830d49c2026c18241be04e05d5a
index.html,1724341293930,6a20493b5a7dc91692ee68a928ece02df5b84f6a6558e36c74f7297e40a22ab4
assets/index-DiwrgTda.css,1724341293930,2dd284f47ac7308a238a3c03dce70a7a2375753520b14f262cfe39920569fdc5
assets/index-A1JK3vx-.js,1724341293931,1f02aad0779c842aa297eefbeb60c0b4906f51a442d0c40d15eeda14f2295442
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "f2e-2bac8"
}
}
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy
on:
push:
branches:
- main
- develop

jobs:
build:
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
name: Deploy
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/develop'

steps:
- name: Download artifact
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ dist-ssr

.env
.env.local

.firebase/
27 changes: 22 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
# React + Vite
### [Firebase 部署網址](https://f2e-2bac8.web.app/login)

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
---

Currently, two official plugins are available:
# 待處理內容

| 待處理事項 | 說明 | 示意圖片(from github) |
| ------ | ------ | ------ |
| 1 | 當共同協作的 repo 刪除 comment 時,顯示不同樣式 UI | ![](https://imgur.com/ByeDSI4.png) |
| 2 | 按下 comment 時間的連結 anchor | ![](https://imgur.com/VFNcyv9.png)|
| 3 | 403網頁(github api 到達上限問題)尚未製作 | |


---

# 已完成功能

| 操作步驟 | 說明 | 專案網站圖片 |
| ------ | ------ | ------ |
| Step 1 | 點擊登入按鈕 | ![](https://i.imgur.com/h0pDatm.png) |
| Step 2 | 登入後會看到自己帳號的Repository列表 | ![](https://i.imgur.com/fbeLOlr.png)|
| Step 3 | 點擊Repository Name,進入該Repository的issue Page | ![](https://i.imgur.com/kRPF9Ld.png) |
| Step 4 | 點擊Issue標題,進入該Issue的Comment Page | ![](https://i.imgur.com/Gv8jHcw.png)
| Step 5 | 可以在Comment Page中操作CRUD功能 | ![](https://i.imgur.com/cO0SyI2.png)

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
24 changes: 24 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"hosting": {
"public": "dist",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],

"headers": [
{
"source": "**/*.js",
"headers": [
{
"key": "Content-Type",
"value": "application/javascript"
}
]
}
]
}
}
23 changes: 23 additions & 0 deletions firebaseConfig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { getAuth, GithubAuthProvider } from "firebase/auth";
import { getAnalytics } from "firebase/analytics";

const firebaseConfig = {
apiKey: import.meta.env.VITE_FIREBASE_API_KEY,
authDomain: "f2e-2bac8.firebaseapp.com",
projectId: "f2e-2bac8",
storageBucket: "f2e-2bac8.appspot.com",
messagingSenderId: "1090396320136",
appId: "1:1090396320136:web:5efeb2385745e378940a3d",
measurementId: "G-71LMXD9XE3",
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);

const auth = getAuth(app);
const provider = new GithubAuthProvider();

export { auth, provider };
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="./src/assets/mark-github.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>91APP_front-end-class</title>
</head>
Expand Down
Loading