This commit is contained in:
Peter Zimon 2024-11-18 10:39:05 +01:00
parent c229042d33
commit 4e2db73016
9 changed files with 489 additions and 480 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
import { f as O, C as U, i as H, j as I, c as M0, a as i, R as E, b as t, u as o0, d as u0, e as I0, g as P, N as G, h as d0 } from "./index-b060828d.mjs"; import { f as O, C as U, i as H, j as I, c as M0, a as i, R as E, b as t, u as o0, d as u0, e as I0, g as P, N as G, h as d0 } from "./index-dba6ef57.mjs";
function D0(e, o) { function D0(e, o) {
typeof e == "function" ? e(o) : e != null && (e.current = o); typeof e == "function" ? e(o) : e != null && (e.current = o);
} }
@ -1125,4 +1125,4 @@ const Ao = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", r0 = ({
export { export {
ko as default ko as default
}; };
//# sourceMappingURL=modals-8550f7b5.mjs.map //# sourceMappingURL=modals-6ff42da2.mjs.map

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
import MainContent from './MainContent';
import {DesignSystemApp, DesignSystemAppProps} from '@tryghost/admin-x-design-system'; import {DesignSystemApp, DesignSystemAppProps} from '@tryghost/admin-x-design-system';
import {FrameworkProvider, TopLevelFrameworkProps} from '@tryghost/admin-x-framework'; import {FrameworkProvider, TopLevelFrameworkProps} from '@tryghost/admin-x-framework';
import {RoutingProvider} from '@tryghost/admin-x-framework/routing'; import {RoutingProvider} from '@tryghost/admin-x-framework/routing';
import PostAnalytics from './PostAnalytics';
interface AppProps { interface AppProps {
framework: TopLevelFrameworkProps; framework: TopLevelFrameworkProps;
@ -20,7 +20,7 @@ const App: React.FC<AppProps> = ({framework, designSystem}) => {
<FrameworkProvider {...framework}> <FrameworkProvider {...framework}>
<RoutingProvider basePath='post-analytics-spike' modals={modals}> <RoutingProvider basePath='post-analytics-spike' modals={modals}>
<DesignSystemApp className='post-analytics-spike' {...designSystem}> <DesignSystemApp className='post-analytics-spike' {...designSystem}>
<MainContent /> <PostAnalytics />
</DesignSystemApp> </DesignSystemApp>
</RoutingProvider> </RoutingProvider>
</FrameworkProvider> </FrameworkProvider>

View File

@ -0,0 +1,9 @@
const PostAnalytics = () => {
return (
<div>
<h1>Post analytics</h1>
</div>
);
}
export default PostAnalytics;

View File

@ -83,6 +83,7 @@ export const importComponent = async (packageName) => {
window[packageName] = await import(`https://${url.host}${url.pathname}${url.search}`); window[packageName] = await import(`https://${url.host}${url.pathname}${url.search}`);
} }
// e.g. http://localhost:2368/ghost/assets/post-analytics-spike/post-analytics-spike.js?v=development
console.log('import URL: ', `http://${url.host}${url.pathname}${url.search}`); console.log('import URL: ', `http://${url.host}${url.pathname}${url.search}`);
return window[packageName]; return window[packageName];