Type editor and schema viewer. Poppables and help icon

This commit is contained in:
Emma
2023-06-11 10:25:32 -06:00
parent 42c0004150
commit b951d1970d
36 changed files with 1190 additions and 77 deletions

View File

@@ -8,7 +8,7 @@ export const GameSystemsService = {
return { status: 200 }
},
// todo - connect to service to fetch schema for game
getSchema: async (id: string) => {
getSchema: async (id: string): Promise<{status: 200 | 404, json: () => Promise<Schema>}> => {
const schema = localStorage.getItem('schema');
if (schema)
@@ -18,7 +18,8 @@ export const GameSystemsService = {
}
return {
status: 404
status: 404,
json: async () => ({name:'', types: {}})
}
}
}