Skip to content

Commit 46370f4

Browse files
Add UI export and update index.html to use solid-shim
- Export UI from solid-ui-jss for login.loginStatusBox compatibility - Update index.html to use local solid-shim.min.js instead of mashlib CDN - Update footer link to solid-shim repo
1 parent 80e75d1 commit 46370f4

3 files changed

Lines changed: 30 additions & 3 deletions

File tree

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>SolidOS Browser</title>
88
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/mashlib/dist/mash.css" />
9-
<script src="https://cdn.jsdelivr.net/npm/mashlib/dist/mashlib.min.js"></script>
9+
<!-- Using solid-shim instead of mashlib -->
10+
<script src="dist/solid-shim.min.js"></script>
1011
<style>
1112
:root {
1213
--primary: #7C3AED;
@@ -397,7 +398,7 @@ <h2>Welcome to SolidOS Browser</h2>
397398

398399
<footer class="footer">
399400
<p>
400-
Powered by <a href="https://github.com/SolidOS/mashlib" target="_blank">mashlib</a> |
401+
Powered by <a href="https://github.com/JavaScriptSolidServer/solid-shim" target="_blank">solid-shim</a> |
401402
<a href="https://solid-docs.github.io/docs/" target="_blank">Developer Docs</a> |
402403
<a href="https://solidproject.org/" target="_blank">Solid Project</a>
403404
</p>

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import * as $rdf from 'rdflib'
99
import * as panes from 'solid-panes-jss'
10+
import * as UI from 'solid-ui-jss'
1011
import { authn, solidLogicSingleton, authSession, store } from 'solid-logic-jss'
1112
import { versionInfo } from './versionInfo'
1213
import { shimStyle } from './styles'
@@ -16,6 +17,7 @@ const global: any = window
1617
// Expose globals - same interface as mashlib
1718
global.$rdf = $rdf
1819
global.panes = panes
20+
global.UI = UI
1921
global.SolidLogic = {
2022
authn,
2123
authSession,
@@ -78,4 +80,4 @@ global.dump = dump
7880

7981
// Export for ES modules
8082
export { versionInfo }
81-
export { $rdf, panes, authn, authSession, store, solidLogicSingleton }
83+
export { $rdf, panes, UI, authn, authSession, store, solidLogicSingleton }

src/types.d.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,27 @@ declare module 'solid-logic-jss' {
1111
export const store: any
1212
export const solidLogicSingleton: any
1313
}
14+
15+
declare module 'solid-ui-jss' {
16+
export const login: any
17+
export const widgets: any
18+
export const icons: any
19+
export const ns: any
20+
export const style: any
21+
export const utils: any
22+
export const dom: any
23+
export const acl: any
24+
export const aclControl: any
25+
export const create: any
26+
export const log: any
27+
export const matrix: any
28+
export const media: any
29+
export const messageArea: any
30+
export const pad: any
31+
export const participation: any
32+
export const preferences: any
33+
export const table: any
34+
export const tabs: any
35+
export const initHeader: any
36+
export const initFooter: any
37+
}

0 commit comments

Comments
 (0)