juxscript 1.0.70 → 1.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/create/layout.jux +1 -60
- package/machinery/compiler.js +7 -1
- package/package.json +1 -1
package/create/layout.jux
CHANGED
|
@@ -1,63 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
// Import the layout styles - testing link.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// ═══════════════════════════════════════════════════════════════════
|
|
7
|
-
// GRID LAYOUT - INITIALIZATION FUNCTION
|
|
8
|
-
// ═══════════════════════════════════════════════════════════════════
|
|
9
|
-
// Note: #app is automatically created by the Jux compiler
|
|
10
|
-
|
|
11
|
-
export function initializeGrid() {
|
|
12
|
-
// add the base jux styles via style tag import
|
|
13
|
-
Element('layout-css', { tag: 'style' })
|
|
14
|
-
.text('@import "style.css";')
|
|
15
|
-
.render(document.head);
|
|
16
|
-
|
|
17
|
-
// Header area
|
|
18
|
-
const appHeader = Element('appheader').render('#app');
|
|
19
|
-
const appHeaderContent = Element('appheader-content').render('#appheader');
|
|
20
|
-
const appHeaderLogo = Element('appheader-logo').render('#appheader-content');
|
|
21
|
-
const appHeaderNav = Element('appheader-nav').render('#appheader-content');
|
|
22
|
-
const appHeaderActions = Element('appheader-actions').render('#appheader-content');
|
|
23
|
-
|
|
24
|
-
// Left sidebar
|
|
25
|
-
const appAside = Element('appaside').render('#app');
|
|
26
|
-
|
|
27
|
-
// Main content area
|
|
28
|
-
const appMain = Element('appmain').render('#app');
|
|
29
|
-
const appMainContent = Element('appmain-content').render('#appmain');
|
|
30
|
-
|
|
31
|
-
// Right sidebar (optional - starts hidden)
|
|
32
|
-
const appSidebar = Element('appsidebar').render('#app');
|
|
33
|
-
const appSidebarHeader = Element('appsidebar-header').render('#appsidebar');
|
|
34
|
-
const appSidebarContent = Element('appsidebar-content').render('#appsidebar');
|
|
35
|
-
const appSidebarFooter = Element('appsidebar-footer').render('#appsidebar');
|
|
36
|
-
|
|
37
|
-
// Footer area
|
|
38
|
-
const appFooter = Element('appfooter').render('#app');
|
|
39
|
-
const appFooterContent = Element('appfooter-content').render('#appfooter');
|
|
40
|
-
const appFooterLegal = Element('appfooter-legal').render('#appfooter-content');
|
|
41
|
-
|
|
42
|
-
// Return references to all containers
|
|
43
|
-
return {
|
|
44
|
-
appHeader,
|
|
45
|
-
appHeaderContent,
|
|
46
|
-
appHeaderLogo,
|
|
47
|
-
appHeaderNav,
|
|
48
|
-
appHeaderActions,
|
|
49
|
-
appAside,
|
|
50
|
-
appMain,
|
|
51
|
-
appMainContent,
|
|
52
|
-
appSidebar,
|
|
53
|
-
appSidebarHeader,
|
|
54
|
-
appSidebarContent,
|
|
55
|
-
appSidebarFooter,
|
|
56
|
-
appFooter,
|
|
57
|
-
appFooterContent,
|
|
58
|
-
appFooterLegal
|
|
59
|
-
};
|
|
60
|
-
}
|
|
1
|
+
import { Grid } from 'juxscript';
|
|
61
2
|
|
|
62
3
|
export function LandingLayout() {
|
|
63
4
|
// Defines a classic landing page structure using JUX Grid
|
package/machinery/compiler.js
CHANGED
|
@@ -341,7 +341,13 @@ function generateRouterBundle(views, routes, sharedModules = new Map(), allImpor
|
|
|
341
341
|
return 'juxscript' + subPath.replace(/\\/g, '/');
|
|
342
342
|
}
|
|
343
343
|
if (joinedPath.includes('lib/components')) return 'juxscript/components';
|
|
344
|
-
|
|
344
|
+
|
|
345
|
+
// ✅ FIX: Ensure local paths start with ./ or / to avoid Ghost Dependency errors in Verifier
|
|
346
|
+
let normalized = joinedPath.replace(/\\/g, '/');
|
|
347
|
+
if (!normalized.startsWith('.') && !normalized.startsWith('/')) {
|
|
348
|
+
normalized = './' + normalized;
|
|
349
|
+
}
|
|
350
|
+
return normalized;
|
|
345
351
|
};
|
|
346
352
|
|
|
347
353
|
const importList = Array.isArray(allImports) ? allImports : Array.from(allImports);
|