-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: disable message sending if sender is deceased * fix: remove extra arrow from sizePerPage change button * feat: add edit character gm_notes * chore: remove placeholder for add gm notes during the game * feat: add edit artifact gm_notes --------- Co-authored-by: Nico Hagelberg <[email protected]>
- Loading branch information
Showing
13 changed files
with
590 additions
and
390 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { apiUrl } from "../api"; | ||
|
||
export async function updateArtifactGmNotes(artifactId, gmNote) { | ||
const requestBody = { | ||
id: artifactId, | ||
gm_notes: gmNote?.trim() ?? null, | ||
}; | ||
|
||
const response = await fetch(apiUrl("/science/artifact"), { | ||
method: "PUT", | ||
headers: { | ||
"Content-Type": "application/json", | ||
}, | ||
body: JSON.stringify(requestBody), | ||
}); | ||
|
||
return response; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { apiUrl } from "../api"; | ||
|
||
export async function updateCharacterGmNotes(personId, gmNotes) { | ||
const requestBody = { | ||
gm_notes: gmNotes?.trim() ?? null, | ||
}; | ||
|
||
const response = await fetch(apiUrl("/person/" + personId), { | ||
method: "PUT", | ||
headers: { | ||
"Content-Type": "application/json", | ||
}, | ||
body: JSON.stringify(requestBody), | ||
}); | ||
|
||
return response; | ||
} |
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
Oops, something went wrong.