@@ -13,7 +13,7 @@ import PortalVue from 'portal-vue';
1313import FullscreenHeader from '@/components/publish/FullscreenHeader.vue' ;
1414import Portal from '@/components/portals/Portal.vue' ;
1515import PortalTargets from '@/components/portals/PortalTargets.vue' ;
16- import { portals , stacks } from '@api' ;
16+ import { keys , portals , slug , stacks } from '@api' ;
1717
1818// Intercept Inertia navigation and log to Actions tab.
1919router . on ( 'before' , ( event ) => {
@@ -31,6 +31,11 @@ setup(async (app) => {
3131 linkToDocs : true ,
3232 paginationSize : 50 ,
3333 paginationSizeOptions : [ 10 , 25 , 50 , 100 , 500 ] ,
34+ sites : [ {
35+ handle : 'default' ,
36+ lang : 'en' ,
37+ } ] ,
38+ selectedSite : 'default' ,
3439 } ;
3540
3641 return config [ key ] ?? null ;
@@ -53,6 +58,8 @@ setup(async (app) => {
5358 app . config . globalProperties . cp_url = ( url ) => url ;
5459 app . config . globalProperties . $portals = portals ;
5560 app . config . globalProperties . $stacks = stacks ;
61+ app . config . globalProperties . $slug = slug ;
62+ app . config . globalProperties . $keys = keys ;
5663
5764 app . use ( PortalVue , { portalName : 'v-portal' } ) ;
5865
@@ -77,6 +84,7 @@ const preview: Preview = {
7784 base : 'light' ,
7885 fontBase : '"Lexend", sans-serif' ,
7986 fontCode : '"Source Code Pro", monospace' ,
87+ textColor : '#181a1b' ,
8088 } ) ,
8189 source : {
8290 transform : ( code : string ) => cleanCodeSnippet ( code ) ,
0 commit comments