UNPKG

q42-cms-components

Version:

Front-end package that provides a UI on top of the QMS back-end

18 lines (12 loc) 351 B
import { CRUDStore } from './crud-store.js'; const stores = {}; class CRUDStores { getStore(path) { return stores[path] = stores[path] || new CRUDStore(path); } getStoreBySchemaRef($ref) { var path = $ref.match(/^(.*)\/schema$/)[1]; return this.getStore(path); } } export const crudStores = new CRUDStores();