@flow-os/router 0.0.51-dev.1772054682 → 0.0.51-dev.1772055924
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/config/index.html +17 -0
- package/package.json +5 -2
- package/src/jsx-runtime/index.ts +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="it">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8"/>
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
6
|
+
<title>Flow</title>
|
|
7
|
+
<style>html,body{margin:0;padding:0;min-height:100vh}#app{min-height:100vh;box-sizing:border-box}*,*::before,*::after{box-sizing:inherit}</style>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="app"></div>
|
|
11
|
+
<script type="module">
|
|
12
|
+
import { run } from '@flow-os/router';
|
|
13
|
+
import Root from '/client/root.tsx';
|
|
14
|
+
run(Root, import.meta.glob('./client/routes/**/*.{ts,tsx}'));
|
|
15
|
+
</script>
|
|
16
|
+
</body>
|
|
17
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flow-os/router",
|
|
3
|
-
"version": "0.0.51-dev.
|
|
3
|
+
"version": "0.0.51-dev.1772055924",
|
|
4
4
|
"license": "PolyForm-Shield-1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -25,5 +25,8 @@
|
|
|
25
25
|
"default": "./src/jsx-runtime/index.ts"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
"dependencies": {
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@flow-os/client": "0.0.51",
|
|
30
|
+
"@flow-os/style": "0.0.1"
|
|
31
|
+
}
|
|
29
32
|
}
|
package/src/jsx-runtime/index.ts
CHANGED
|
@@ -36,7 +36,7 @@ function applyProps(el: HTMLElement, props: Props): void {
|
|
|
36
36
|
if (classNameProp != null) el.className = String(classNameProp);
|
|
37
37
|
if (styleProp != null && typeof styleProp === 'object') {
|
|
38
38
|
for (const [k, v] of Object.entries(styleProp)) {
|
|
39
|
-
if (v != null) (el.style as Record<string, string>)[k] = String(v);
|
|
39
|
+
if (v != null) (el.style as unknown as Record<string, string>)[k] = String(v);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
for (const [k, v] of Object.entries(rest)) {
|