adminjs
Version:
Admin panel for apps written in node.js
6 lines • 404 B
JavaScript
import { createRequire } from 'node:module';
import path from 'path';
const require = createRequire(import.meta.url);
const getAdminjsThemesDir = () => path.parse(require.resolve('@adminjs/themes')).dir;
export const bundlePath = theme => path.join(getAdminjsThemesDir(), `themes/${theme}/theme.bundle.js`);
export const stylePath = theme => path.join(getAdminjsThemesDir(), `themes/${theme}/style.css`);