-
Notifications
You must be signed in to change notification settings - Fork 8
update version #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update version #163
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,18 +7,25 @@ | |
| <body> | ||
| <h1>Solid Logic UMD Bundle Browser Test</h1> | ||
| <pre id="output"></pre> | ||
| <!--- !!!--- first build dist with npm run build-dist ---!!! --> | ||
| <!-- Load solid-logic UMD bundle (adjust path if needed) --> | ||
| <script src="../../dist/solid-logic.js"></script> | ||
| <script> | ||
| // Test if SolidLogic is available | ||
| <script type="importmap"> | ||
| { | ||
| "imports": { | ||
| "rdflib": "https://esm.sh/rdflib", | ||
| "solid-logic": "https://esm.sh/solid-logic" | ||
|
Comment on lines
+13
to
+14
|
||
| } | ||
| } | ||
| </script> | ||
| <script type="module"> | ||
| import * as $rdf from "rdflib"; | ||
| import { solidLogicSingleton, store, authn } from "solid-logic"; | ||
| const output = document.getElementById('output'); | ||
| if (window.SolidLogic) { | ||
| output.textContent = 'SolidLogic loaded!'; | ||
| // Example: test a function if available | ||
| // output.textContent += '\n' + window.SolidLogic.someFunction(); | ||
| if ($rdf && solidLogicSingleton && store && authn) { | ||
| output.textContent = 'SolidLogic and rdflib loaded as ESM!'; | ||
| // Example usage | ||
| output.textContent += '\nStore: ' + (store ? 'available' : 'missing'); | ||
| output.textContent += '\nAuthentication: ' + (authn.currentUser ? authn.currentUser() : 'missing'); | ||
| } else { | ||
| output.textContent = 'SolidLogic NOT loaded!'; | ||
| output.textContent = 'SolidLogic or rdflib NOT loaded!'; | ||
| } | ||
| </script> | ||
| </body> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading still says "Solid Logic UMD Bundle Browser Test", but the test has been converted to use ES modules (ESM) with import maps instead of a UMD bundle. The heading should be updated to "Solid Logic ESM Module Browser Test" or similar to accurately reflect what is being tested.