@pod-os/elements 0.26.0 → 0.26.1-rc.d4c6cc6.0

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.
@@ -3151,14 +3151,23 @@ const PosAppBrowser = class {
3151
3151
  /**
3152
3152
  * The mode the app is running in:
3153
3153
  *
3154
- * - standalone: use this when you deploy it as a standalone web application
3154
+ * - standalone: use this when you deploy it as a standalone web application
3155
3155
  * - pod: use this when you host this app as a default interface for you pod
3156
3156
  */
3157
3157
  this.mode = 'standalone';
3158
3158
  this.uri = '';
3159
3159
  }
3160
3160
  render() {
3161
- return (h(Host, { key: '50b6e91f4e98be29cfa37552eb799883aeb49c9e' }, h("pos-app", { key: '652617d5eaf3653caeb58b9e93dff09810a587a3', restorePreviousSession: this.restorePreviousSession }, h("pos-error-toast", { key: 'f4a29b30c2a4caece50c0da046426bc50a3b402e' }, h("pos-router", { key: 'd3f2307db47406c4d84c9b27ac767d263ae81c32', mode: this.mode, "onPod-os:route-changed": e => (this.uri = e.detail) }, h("header", { key: '521c8469dae209a27780d62a5922f8a15d393e07' }, h("pos-add-new-thing", { key: '2fdd9716da4b3590fb0983a4b50f8c63eca26dce', referenceUri: this.uri }), h("pos-navigation-bar", { key: '6add9651de9ff5ca8496470c0df1341927683001', uri: this.uri === 'pod-os:dashboard' ? '' : this.uri }), h("pos-login", { key: '87a60cc03fc63a2ca68b294726e7e44a09bdc835' })), h("main", { key: 'dd2b3de09ca7f8957b240b030cafeeac37e76c1b' }, this.uri.startsWith('pod-os:') ? (h("pos-internal-router", { uri: this.uri })) : (h("pos-resource", { key: this.uri, uri: this.uri }, h("pos-type-router", null)))), h("footer", { key: 'ea1444713656c8740d81c5ac777b72bb6e287729' }, h(Logo, { key: '1bba3eec9e30c30f9132a6524e00ec212169f402' }), h("span", { key: '3b38a5e1704559f271075b60a27d8334f41a09dc' }, "PodOS Browser"), h("span", { key: '848dd110da12d70ec7798bfcf042638af8f7b121' }, "|"), h("a", { key: '8b748b91e4ae5351d0b2081dcb2af09867a00aee', class: "settings", href: "?uri=pod-os%3Asettings" }, "\u2699 Settings")))))));
3161
+ return (h(Host, { key: 'd2c863f8abf790352cdf9c830a1baa8d7aee95a8' }, h("pos-app", { key: '163415bea00a0a18f5e97f5cb7f3e5b9f5910f61', restorePreviousSession: this.restorePreviousSession }, h("pos-error-toast", { key: '799735b00aff86946259013132079814520ced7e' }, h("pos-router", { key: 'bdb89d03d93937399ec38b0b2c1d695feea248b9', mode: this.mode, "onPod-os:route-changed": e => (this.uri = e.detail) }, h("header", { key: 'e828af57fa2d8842c058197a826ac488cbb2a968' }, h("pos-add-new-thing", { key: '28eed0a89a4e554e88ea4fce13b2dd59c5ce0149', referenceUri: this.uri }), h("pos-navigation-bar", { key: '7cfa339b537b62240d5f2bbe7397107e8a1a7e8f', uri: this.uri === 'pod-os:dashboard' ? '' : this.uri }), h("pos-login", { key: 'c72bcdc0fdaa31a7e324dbbccc2e0e50125d021c' })), h("main", { key: 'a02ba7b0060f53346e49f10a85a856bf91a2d694' }, this.mainContent()), h("footer", { key: 'bf1dd2d6bc955fb7b84697ba8c3265146e537dd2' }, h(Logo, { key: 'ede51e21902c8f9c7c14fd41acd152536e65be79' }), h("span", { key: 'ab72f5096bb7049eb8e6d434ddd6e7f5ac2bc2f4' }, "PodOS Browser"), h("span", { key: '0beba45e269eeec9e9c85f058023174820962c3c' }, "|"), h("a", { key: 'f57e94eee1df69da8d61b5c8afe47caf921f428b', class: "settings", href: "?uri=pod-os%3Asettings" }, "\u2699 Settings")))))));
3162
+ }
3163
+ mainContent() {
3164
+ if (this.uri === '') {
3165
+ return null;
3166
+ }
3167
+ if (this.uri.startsWith('pod-os:')) {
3168
+ return h("pos-internal-router", { uri: this.uri });
3169
+ }
3170
+ return (h("pos-resource", { key: this.uri, uri: this.uri }, h("pos-type-router", null)));
3162
3171
  }
3163
3172
  };
3164
3173
  const Logo = () => {