|
8 | 8 | <link href="../dist/styles.css" rel="stylesheet" /> |
9 | 9 | </head> |
10 | 10 | <body style="margin:0px;background: #9bb791"> |
11 | | - <!-- <div id="container"></div> --> |
12 | | - |
| 11 | + <script type="module"> |
| 12 | + console.log("Waiting for Shoelace...") |
| 13 | + await Promise.allSettled([ |
| 14 | + customElements.whenDefined('sl-tab'), |
| 15 | + //customElements.whenDefined('sl-tab-group') |
| 16 | + ]); |
| 17 | + console.log("Shoelace READY!"); |
| 18 | + </script> |
13 | 19 | <script type="module"> |
14 | | - //import '@shoelace-style/shoelace/dist/themes/light.css'; |
15 | 20 | import { AppAgentWebsocket, AdminWebsocket, encodeHashToBase64, fakeDnaHash, fakeEntryHash} from '@holochain/client'; |
16 | 21 | import { ProfilesClient } from '@holochain-open-dev/profiles'; |
17 | 22 | import { ProfilesZomeMock } from "@holochain-open-dev/profiles/dist/mocks.js"; |
|
106 | 111 | //console.log("mock agentId", mockProfilesZome.myPubKey); |
107 | 112 | mockProfilesZome.myPubKey = whereCellId[1]; |
108 | 113 | //console.log("mock agentId", encodeHashToBase64(mockProfilesZome.myPubKey)); |
109 | | - mockProfilesZome.create_profile({nickname: "Bobby Joe", fields: {}}) |
| 114 | + mockProfilesZome.create_profile({nickname: "Alex", fields: {}}) |
110 | 115 |
|
111 | 116 | /** */ |
112 | 117 | const renderers = await Applet.appletViews( |
113 | 118 | appAgentWs, |
114 | 119 | whereDemoAppletId, |
115 | 120 | new ProfilesClient(mockProfilesZome, mockProfilesZome.roleName), |
116 | | - // new ProfilesClient(new ProfilesZomeMock()), |
117 | 121 | mockWeServices, |
118 | 122 | ); |
119 | | - renderers.main(document.body); // container, window.customElements |
| 123 | + renderers.main(document.body); |
120 | 124 | } |
121 | 125 |
|
| 126 | + /** Run it */ |
122 | 127 | setup(); |
123 | 128 | </script> |
124 | 129 | </body> |
|
0 commit comments