js editor + fix js runner

This commit is contained in:
Sirttas
2026-06-08 08:27:42 +02:00
parent a201a95756
commit c444f51423
5 changed files with 79 additions and 8 deletions
+4 -1
View File
@@ -45,4 +45,7 @@ export const findCharacterRuleBookByCharacterId = (characterId: number): Promise
.catch(() => ({characterId, ruleBookId: '', bindings: {}}));
export const setCharacterRuleBookForCharacter = (characterId: number, ruleBook: SetCharacterRuleBookRequest): Promise<CharacterRuleBookResponse> => characterRuleBookApi.setCharacterRuleBookForCharacter(characterId, ruleBook)
.then(response => response.data);
.then(response => response.data);
export const fetchScriptDefinitions = (): Promise<string> =>
ruleBookApi.getScriptDefinitions({responseType: 'text'}).then(response => response.data);