@operato/shell
Advanced tools
Comparing version 0.3.22 to 0.3.24
@@ -6,2 +6,21 @@ # Change Log | ||
### [0.3.24](https://github.com/hatiolab/operato/compare/v0.3.23...v0.3.24) (2022-01-30) | ||
### :bug: Bug Fix | ||
* 'lit/decorators' => 'lit/decorators.js' ([5eb1fea](https://github.com/hatiolab/operato/commit/5eb1fea57f5deb2fab7b99f6c272d109c64b82ed)) | ||
* escape conflict between shell and layout ([115aeeb](https://github.com/hatiolab/operato/commit/115aeeb3f7ed6a20bfc3a1dbf6175cc31468b30a)) | ||
* shell, help, i18n, layout module ([d5bb29a](https://github.com/hatiolab/operato/commit/d5bb29ad476d4cb182d3210f4c94772ba72e83a5)) | ||
### [0.3.23](https://github.com/hatiolab/operato/compare/v0.3.22...v0.3.23) (2022-01-30) | ||
**Note:** Version bump only for package @operato/shell | ||
### [0.3.22](https://github.com/hatiolab/operato/compare/v0.3.21...v0.3.22) (2022-01-30) | ||
@@ -8,0 +27,0 @@ |
@@ -31,5 +31,11 @@ import { getPathInfo } from '@operato/utils'; | ||
const id = matchReturn[2]; | ||
if (!params) { | ||
params = {}; | ||
new URLSearchParams(search).forEach((value, key) => { | ||
params[key] = value; | ||
}); | ||
} | ||
// Any other info you might want to extract from the path (like page type), | ||
// you can do here | ||
dispatch(loadPage(page, id, params || new URLSearchParams(search))); | ||
dispatch(loadPage(page, id, params)); | ||
}; | ||
@@ -36,0 +42,0 @@ const _preLoadPage = (page) => { |
import { __decorate } from "tslib"; | ||
import { html, LitElement } from 'lit'; | ||
import { state } from 'lit/decorators'; | ||
import { state } from 'lit/decorators.js'; | ||
import { connect } from 'pwa-helpers/connect-mixin.js'; | ||
@@ -25,13 +25,13 @@ import { installRouter } from 'pwa-helpers/router.js'; | ||
return html ` | ||
<header-bar ?fullbleed=${fullbleed}></header-bar> | ||
<ox-header-bar ?fullbleed=${fullbleed}></ox-header-bar> | ||
<nav-bar ?fullbleed=${fullbleed || widebleed}></nav-bar> | ||
<ox-nav-bar ?fullbleed=${fullbleed || widebleed}></ox-nav-bar> | ||
<main></main> | ||
<aside-bar ?fullbleed=${fullbleed || widebleed}></aside-bar> | ||
<ox-aside-bar ?fullbleed=${fullbleed || widebleed}></ox-aside-bar> | ||
<footer-bar ?fullbleed=${fullbleed}></footer-bar> | ||
<ox-footer-bar ?fullbleed=${fullbleed}></ox-footer-bar> | ||
<snack-bar></snack-bar> | ||
<ox-snack-bar></ox-snack-bar> | ||
`; | ||
@@ -38,0 +38,0 @@ } |
@@ -5,3 +5,3 @@ import { __decorate } from "tslib"; | ||
import { css, html, LitElement } from 'lit'; | ||
import { customElement } from 'lit/decorators'; | ||
import { customElement } from 'lit/decorators.js'; | ||
let HomePage = class HomePage extends LitElement { | ||
@@ -8,0 +8,0 @@ render() { |
@@ -6,3 +6,3 @@ { | ||
"author": "heartyoh", | ||
"version": "0.3.22", | ||
"version": "0.3.24", | ||
"main": "dist/src/index.js", | ||
@@ -38,4 +38,4 @@ "module": "dist/src/index.js", | ||
"@material/mwc-icon-button": "^0.25.3", | ||
"@operato/styles": "^0.3.22", | ||
"@operato/utils": "^0.3.22", | ||
"@operato/styles": "^0.3.24", | ||
"@operato/utils": "^0.3.24", | ||
"lit": "^2.0.2", | ||
@@ -79,3 +79,3 @@ "lodash": "^4.17.21", | ||
}, | ||
"gitHead": "368032e9ae07d6e82a2d7f35486f67a197db179c" | ||
"gitHead": "425093cf62045d73a0faa453d6a9b88f30dfdb22" | ||
} |
@@ -40,5 +40,13 @@ import { getPathInfo } from '@operato/utils' | ||
if (!params) { | ||
params = {} | ||
new URLSearchParams(search).forEach((value, key) => { | ||
params![key] = value | ||
}) | ||
} | ||
// Any other info you might want to extract from the path (like page type), | ||
// you can do here | ||
dispatch(loadPage(page, id, params || new URLSearchParams(search))) | ||
dispatch(loadPage(page, id, params)) | ||
} | ||
@@ -45,0 +53,0 @@ |
import { html, LitElement, PropertyValues } from 'lit' | ||
import { state } from 'lit/decorators' | ||
import { state } from 'lit/decorators.js' | ||
import { connect } from 'pwa-helpers/connect-mixin.js' | ||
@@ -35,13 +35,13 @@ import { installRouter } from 'pwa-helpers/router.js' | ||
return html` | ||
<header-bar ?fullbleed=${fullbleed}></header-bar> | ||
<ox-header-bar ?fullbleed=${fullbleed}></ox-header-bar> | ||
<nav-bar ?fullbleed=${fullbleed || widebleed}></nav-bar> | ||
<ox-nav-bar ?fullbleed=${fullbleed || widebleed}></ox-nav-bar> | ||
<main></main> | ||
<aside-bar ?fullbleed=${fullbleed || widebleed}></aside-bar> | ||
<ox-aside-bar ?fullbleed=${fullbleed || widebleed}></ox-aside-bar> | ||
<footer-bar ?fullbleed=${fullbleed}></footer-bar> | ||
<ox-footer-bar ?fullbleed=${fullbleed}></ox-footer-bar> | ||
<snack-bar></snack-bar> | ||
<ox-snack-bar></ox-snack-bar> | ||
` | ||
@@ -48,0 +48,0 @@ } |
@@ -5,3 +5,3 @@ import '@material/mwc-icon-button' | ||
import { css, html, LitElement } from 'lit' | ||
import { customElement } from 'lit/decorators' | ||
import { customElement } from 'lit/decorators.js' | ||
@@ -8,0 +8,0 @@ @customElement('home-page') |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
139636
1631
Updated@operato/styles@^0.3.24
Updated@operato/utils@^0.3.24