UNPKG

@opengis/admin

Version:

This project Softpro Admin

33 lines (25 loc) 753 B
import yamlSafe from 'js-yaml'; import { handlebars, handlebarsSync, addTemplateDir } from '@opengis/fastify-table/utils.js'; import isAdmin from './server/utils/isAdmin.js'; import addNotification from './server/utils/addNotification.js'; import sendNotification from './server/utils/sendNotification.js'; import getAdminAccess from './server/plugins/access/funcs/getAdminAccess.js'; function loadSafe(yml) { try { return yamlSafe.load(yml); } catch (err) { return { error: err.toString() }; } }; Object.assign(yamlSafe, { loadSafe }); export default null; export { isAdmin, yamlSafe, addNotification, sendNotification, getAdminAccess, handlebars, handlebarsSync, addTemplateDir, };