@ossy/platform 1.15.3 → 1.15.5
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.
- package/package.json +4 -4
- package/src/server.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ossy/platform",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.5",
|
|
4
4
|
"description": "Ossy application server runtime",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"author": "Ossy <yourfriends@ossy.se> (https://ossy.se)",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@ossy/router": "^1.16.
|
|
26
|
-
"@ossy/sdk": "^1.16.
|
|
25
|
+
"@ossy/router": "^1.16.5",
|
|
26
|
+
"@ossy/sdk": "^1.16.5",
|
|
27
27
|
"cookie-parser": "^1.4.7",
|
|
28
28
|
"dotenv": ">=16.0.0 <17.0.0",
|
|
29
29
|
"express": ">=5.0.0 <6.0.0",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"files": [
|
|
33
33
|
"src"
|
|
34
34
|
],
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "da7427b2b46b9069ff9a1a05751e275eb11ddc50"
|
|
36
36
|
}
|
package/src/server.js
CHANGED
|
@@ -155,14 +155,14 @@ export async function startServer (options = {}) {
|
|
|
155
155
|
}
|
|
156
156
|
const props = {
|
|
157
157
|
...config,
|
|
158
|
-
|
|
158
|
+
...(req.userAppSettings || {}),
|
|
159
|
+
theme: req.userAppSettings?.theme || cloneSerializable(config?.theme),
|
|
159
160
|
themes: cloneSerializable(config?.themes),
|
|
160
161
|
resourceTemplates: cloneSerializable(config?.resourceTemplates),
|
|
161
162
|
url: requestUrl,
|
|
162
163
|
isAuthenticated: !!req.isAuthenticated,
|
|
163
164
|
pages: manifest.pages.map((page) => ({ id: page.id, path: page.path })),
|
|
164
165
|
pageId: pageRoute.id,
|
|
165
|
-
sidebarPrimaryCollapsed: false,
|
|
166
166
|
}
|
|
167
167
|
const html = await mod.render(props)
|
|
168
168
|
res.status(200).type('html').send(html)
|