Initial commit: Aurora Admin plugin
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { createApp } from 'vue';
|
||||
import '@/shell/shell-frame.css';
|
||||
import ActivityLog from '@/pages/activity-log/ActivityLog.vue';
|
||||
|
||||
const mountEl = document.getElementById('aurora-admin-activity-log-root');
|
||||
|
||||
if (mountEl) {
|
||||
const data = JSON.parse(mountEl.dataset.auroraAdmin || '{}');
|
||||
createApp(ActivityLog, { serverData: data }).mount(mountEl);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { createApp } from 'vue';
|
||||
import '@/shell/shell-frame.css';
|
||||
import AdminNotices from '@/pages/admin-notices/AdminNotices.vue';
|
||||
|
||||
const mountEl = document.getElementById('aurora-admin-admin-notices-root');
|
||||
|
||||
if (mountEl) {
|
||||
const data = JSON.parse(mountEl.dataset.auroraAdmin || '{}');
|
||||
createApp(AdminNotices, { serverData: data }).mount(mountEl);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import { createApp } from 'vue';
|
||||
// Pulls in the shared --aurora-* theme variables. Harmless if the site-wide
|
||||
// shell already loaded them (identical values); keeps this page self-sufficient.
|
||||
import '@/shell/shell-frame.css';
|
||||
import DashboardPage from '@/pages/dashboard/Dashboard.vue';
|
||||
|
||||
const mountEl = document.getElementById('aurora-admin-dashboard-root');
|
||||
|
||||
if (mountEl) {
|
||||
const data = JSON.parse(mountEl.dataset.auroraAdmin || '{}');
|
||||
createApp(DashboardPage, { serverData: data }).mount(mountEl);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { createApp } from 'vue';
|
||||
import '@/shell/shell-frame.css';
|
||||
import DatabaseExplorer from '@/pages/database-explorer/DatabaseExplorer.vue';
|
||||
|
||||
const mountEl = document.getElementById('aurora-admin-database-explorer-root');
|
||||
|
||||
if (mountEl) {
|
||||
const data = JSON.parse(mountEl.dataset.auroraAdmin || '{}');
|
||||
createApp(DatabaseExplorer, { serverData: data }).mount(mountEl);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { createApp } from 'vue';
|
||||
import '@/shell/shell-frame.css';
|
||||
import MenuCreator from '@/pages/menu-creator/MenuCreator.vue';
|
||||
|
||||
const mountEl = document.getElementById('aurora-admin-menu-creator-root');
|
||||
|
||||
if (mountEl) {
|
||||
const data = JSON.parse(mountEl.dataset.auroraAdmin || '{}');
|
||||
createApp(MenuCreator, { serverData: data }).mount(mountEl);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { createApp } from 'vue';
|
||||
import '@/shell/shell-frame.css';
|
||||
import RoleEditor from '@/pages/role-editor/RoleEditor.vue';
|
||||
|
||||
const mountEl = document.getElementById('aurora-admin-role-editor-root');
|
||||
|
||||
if (mountEl) {
|
||||
const data = JSON.parse(mountEl.dataset.auroraAdmin || '{}');
|
||||
createApp(RoleEditor, { serverData: data }).mount(mountEl);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { createApp } from 'vue';
|
||||
import '@/shell/shell-frame.css';
|
||||
import SettingsPage from '@/pages/settings/Settings.vue';
|
||||
|
||||
const mountEl = document.getElementById('aurora-admin-settings-root');
|
||||
|
||||
if (mountEl) {
|
||||
const data = JSON.parse(mountEl.dataset.auroraAdmin || '{}');
|
||||
createApp(SettingsPage, { serverData: data }).mount(mountEl);
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { createApp } from 'vue';
|
||||
import '@/shell/shell-frame.css';
|
||||
import SiteShell from '@/shell/SiteShell.vue';
|
||||
|
||||
const mountEl = document.getElementById('aurora-admin-shell-root');
|
||||
|
||||
if (mountEl) {
|
||||
const data = JSON.parse(mountEl.dataset.auroraAdmin || '{}');
|
||||
createApp(SiteShell, { serverData: data }).mount(mountEl);
|
||||
}
|
||||
Reference in New Issue
Block a user