Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add setup page#3476

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
BrunoQuaresma merged 19 commits intomainfrombq/3225
Aug 11, 2022
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
19 commits
Select commitHold shift + click to select a range
2eccbf1
Check if has first user
BrunoQuaresmaAug 10, 2022
a3fabe3
Add missing handler
BrunoQuaresmaAug 10, 2022
5d3701b
Add setup
BrunoQuaresmaAug 10, 2022
87b55cc
Make user login after creation
BrunoQuaresmaAug 10, 2022
d6fe749
Authenticate user when setup is done
BrunoQuaresmaAug 10, 2022
f81942d
Fix setup flow
Aug 11, 2022
7b37e0e
Apply suggestions from code review
BrunoQuaresmaAug 11, 2022
4e4008f
Add comment into hasFirtUser
Aug 11, 2022
a0ef036
Move to language object
Aug 11, 2022
186a37c
Refactor tests to not use spy
Aug 11, 2022
e50648f
Merge
Aug 11, 2022
2cdebbd
Merge branch 'bq/3225' of github.com:coder/coder into bq/3225
Aug 11, 2022
d88d470
Merge branch 'main' of github.com:coder/coder into bq/3225
Aug 11, 2022
42fd362
Add back first user on dev script
Aug 11, 2022
5d988cd
Update site/src/pages/SetupPage/SetupPage.tsx
BrunoQuaresmaAug 11, 2022
7959e44
Apply suggestions from code review
BrunoQuaresmaAug 11, 2022
3895a0b
Better handle hasFirstUser error
Aug 11, 2022
b5e0a63
Fix formatting
Aug 11, 2022
4d13c28
Fix login machine
Aug 11, 2022
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
PrevPrevious commit
NextNext commit
Add missing handler
  • Loading branch information
@BrunoQuaresma
BrunoQuaresma committedAug 10, 2022
commita3fabe3761fda2e88f6d45bca00b0abe1634a56f
2 changes: 1 addition & 1 deletionsite/src/api/api.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -283,7 +283,7 @@ export const suspendUser = async (userId: TypesGen.User["id"]): Promise<TypesGen
}

export const hasFirstUser = async (): Promise<boolean> => {
const response = await axios.get(`/api/v2/users/first`)
const response = await axios.get("/api/v2/users/first")
return response.status === 200
}

Expand Down
5 changes: 5 additions & 0 deletionssite/src/testHelpers/handlers.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -87,6 +87,11 @@ export const handlers = [
return res(ctx.status(200), ctx.json(M.MockWorkspace))
}),

// First user
rest.get("/api/v2/users/first", async (req, res, ctx) => {
return res(ctx.status(200))
}),

// workspaces
rest.get("/api/v2/workspaces", async (req, res, ctx) => {
return res(ctx.status(200), ctx.json([M.MockWorkspace]))
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp