| | |
| | | * geloggt. |
| | | * |
| | | * Anwendungsbeispiel |
| | | * |
| | | * const MC = new LocalStorageBasedApi(); |
| | | * const contextFile = await MC.ide.getContextFile() // use the api |
| | | * import { Helpers } from "@mathcoach/ide-api"; |
| | | * const _MC = Helpers.createStorageBasedApi(); |
| | | * const contextFile = await _MC.ide.getContextFile() // use the api |
| | | */ |
| | | export function createStorageBasedApi(contextFileExtension: string = "dummy.json"): MathCoach.Api { |
| | | const fileIdentifier = (file: MathCoach.File) => `mock-file://${file.owner}@${file.part}/${file.path}`; |