@factor/app
Advanced tools
Comparing version 1.0.0-beta.2 to 1.0.0-beta.3
@@ -6,2 +6,10 @@ # Change Log | ||
# [1.0.0-beta.3](https://github.com/fiction-com/factor/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2019-09-29) | ||
**Note:** Version bump only for package @factor/app | ||
# [1.0.0-beta.2](https://github.com/fiction-com/factor/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2019-09-28) | ||
@@ -8,0 +16,0 @@ |
@@ -16,2 +16,4 @@ import Factor from "vue" | ||
ssrContext = Factor.$filters.apply("ssr-context", ssrContext, { app, router, store }) | ||
// set router's location | ||
@@ -25,2 +27,3 @@ router.push(fullPath !== url ? fullPath : url) | ||
// Distinguish between content and dashboard UI | ||
const { meta: { ui = "app" } = {} } = | ||
@@ -41,3 +44,3 @@ router.currentRoute.matched.find(_ => _.meta.ui) || {} | ||
ssrContext[h] = () => { | ||
return Factor.$filters.apply(h, []).join("") | ||
return Factor.$filters.apply(h, [], { ssrContext }).join("") | ||
} | ||
@@ -47,4 +50,5 @@ }) | ||
const attrHooks = [ | ||
{ name: "factor_html_attr", attr: ['lang="en"'], classes: [`factor-${ui}`] }, | ||
{ name: "factor_body_attr", attr: [], classes: [] } | ||
{ name: "factor_html_attr", attr: [], classes: [`factor-${ui}`] }, | ||
{ name: "factor_body_attr", attr: [], classes: [] }, | ||
{ name: "factor_head_attr", attr: [], classes: [] } | ||
] | ||
@@ -56,3 +60,3 @@ | ||
attr.push(`class="${classes.join(" ")}"`) | ||
return Factor.$filters.apply(name, attr).join(" ") | ||
return Factor.$filters.apply(name, attr, { ssrContext }).join(" ") | ||
} | ||
@@ -59,0 +63,0 @@ }) |
{ | ||
"name": "@factor/app", | ||
"version": "1.0.0-beta.2", | ||
"version": "1.0.0-beta.3", | ||
"main": "index.js", | ||
@@ -17,3 +17,4 @@ "license": "GPL-2.0", | ||
"@factor/app-extend": "^1.0.0-beta.0", | ||
"@factor/app-fallbacks": "^1.0.0-beta.0", | ||
"@factor/app-fallbacks": "1.0.0-beta.3", | ||
"@factor/app-meta": "1.0.0-beta.3", | ||
"@factor/app-router": "^1.0.0-beta.0", | ||
@@ -25,3 +26,3 @@ "@factor/app-settings": "1.0.0-beta.2", | ||
}, | ||
"gitHead": "d010e520d08fda51d45dd99c581d8787fba3dd3d" | ||
"gitHead": "c6f6df2af61296e75e198f4beb17ba8d7aef2c21" | ||
} |
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
28234
230
8
+ Added@factor/app-fallbacks@1.0.0-beta.3(transitive)
+ Added@factor/app-meta@1.0.0-beta.3(transitive)
+ Addeddeepmerge@4.3.1(transitive)
+ Addedvue-meta@2.4.0(transitive)
- Removed@factor/app-fallbacks@1.0.0-beta.4(transitive)