-
Notifications
You must be signed in to change notification settings - Fork 0
メッセージ送信機能 #45
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
メッセージ送信機能 #45
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
7f258e0
feat: check is the user joined channel
newt239 bb982f3
feat: join channel
newt239 f2f5150
feat: send message
newt239 32df491
fix: message position
newt239 8f6438c
refactor: add jsdoc
newt239 7db27c0
feat: add assets
newt239 c06064b
feat: send assets
newt239 9428c0f
feat: preview uploaded image
newt239 7823fb2
style: improve text editor position
newt239 52ded43
feat: add assets
newt239 2f6bbef
Merge branch 'main' into feature/send-message
newt239 140f1f1
docs: update readme
newt239 cfc54ef
fix: type error
newt239 2c5855a
fix: markdown parser
newt239 4c14f52
fix: message layout
newt239 7783d02
feat: auto scroll on send message
newt239 f8f8259
refactor: run eslint
newt239 44227a8
fix: 露出されたsessionを隠した
newt239 299350b
fix: 数式が表示されない問題を修正
newt239 2dac47b
refactor: remove console.log
newt239 48b663c
fix: broken eslint config
newt239 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # 認証のセットアップ(暫定対応) | ||
|
|
||
| 1. `.env` ファイルを更新 (メンテナーに聞いてください) | ||
| 2. 開発サーバを起動する | ||
| 3. Postman等を使用してAPIを叩き、ユーザーを仮登録する(下記参照) | ||
| 4. Prisma Studioを起動、User テーブルを開き verifiedAt が null のユーザーデータが作成されていることを確認 | ||
| 5. `http://localhost:3000/login` にアクセス | ||
| 6. 大学Googleアカウントを選択してログイン | ||
| 7. ログインに成功した場合、 localhost:3000/joined に移行する | ||
| 失敗した場合は 3. からやり直す | ||
| (この時点では /channels 等のページを開こうとしても /joined にリダイレクトされるようになっている) | ||
| 8. Joinedページの手順を全て完了し、「Digichatをはじめる」ボタンを押す | ||
| 9. /channels 下など、他ページを開けることを確認 | ||
| 10. Prisma Studioを開き、先ほどの User の verifiedAt に本登録を行った日時が書き込まれていることを確認 | ||
|
|
||
| ## リクエスト形式 | ||
|
|
||
| - URL: `http://localhost:3000/api/ext/users/create` | ||
| - Method: `POST` | ||
| - Headers: | ||
| - `Content-Type: application/json` | ||
| - `Authorization: {EXT_API_SECRET}` | ||
| - Body: | ||
| ```json | ||
| { | ||
| "name": "テストユーザー", | ||
| "email": "(大学メールアドレス)", | ||
| "slug": "(一意な文字列)" | ||
| } | ||
| ``` |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
タグで囲まれた部分が表示されなくなってしまったため、remark-parseからrehype-parseに変えました
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
この点コメントしたので確認お願いします!
#45 (comment)