create-flow-os 0.0.1-dev.1771691512 → 0.0.1-dev.1771777269
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/LICENSE +97 -0
- package/bin/index.js +15 -12
- package/config.json +1 -0
- package/package.json +5 -2
- package/packages/client/client/root.css +9 -0
- package/packages/client/client/root.tsx +2 -4
- package/packages/client/client/routes/404.tsx +24 -0
- package/profiles/client/LICENSE +97 -0
- package/profiles/client/README.md +2 -0
- package/profiles/client/client/root.css +1 -0
- package/profiles/client/client/root.tsx +2 -4
- package/profiles/client/client/routes/404.tsx +25 -0
- package/profiles/client/client/routes/index.tsx +1 -1
- package/profiles/client/package.json +1 -0
- package/profiles/client/packages/client/LICENSE +97 -0
- package/profiles/client/packages/client/package.json +3 -2
- package/profiles/client/packages/client/vite.ts +4 -1
- package/profiles/client/packages/core/LICENSE +97 -0
- package/profiles/client/packages/core/package.json +3 -2
- package/profiles/client/packages/router/LICENSE +97 -0
- package/profiles/client/packages/router/index.ts +43 -8
- package/profiles/client/packages/router/package.json +8 -3
- package/profiles/client/packages/style/LICENSE +97 -0
- package/profiles/client/packages/style/package.json +3 -2
- package/profiles/full/LICENSE +97 -0
- package/profiles/full/README.md +2 -0
- package/profiles/full/client/root.css +1 -0
- package/profiles/full/client/root.tsx +2 -4
- package/profiles/full/client/routes/404.tsx +25 -0
- package/profiles/full/client/routes/index.tsx +1 -1
- package/profiles/full/package.json +1 -0
- package/profiles/full/packages/client/LICENSE +97 -0
- package/profiles/full/packages/client/package.json +3 -2
- package/profiles/full/packages/client/vite.ts +4 -1
- package/profiles/full/packages/core/LICENSE +97 -0
- package/profiles/full/packages/core/package.json +3 -2
- package/profiles/full/packages/router/LICENSE +97 -0
- package/profiles/full/packages/router/index.ts +43 -8
- package/profiles/full/packages/router/package.json +8 -3
- package/profiles/full/packages/server/LICENSE +97 -0
- package/profiles/full/packages/server/package.json +6 -3
- package/profiles/full/packages/style/LICENSE +97 -0
- package/profiles/full/packages/style/package.json +3 -2
- package/profiles/server/LICENSE +97 -0
- package/profiles/server/README.md +2 -0
- package/profiles/server/package.json +1 -0
- package/profiles/server/packages/core/LICENSE +97 -0
- package/profiles/server/packages/core/package.json +3 -2
- package/profiles/server/packages/router/LICENSE +97 -0
- package/profiles/server/packages/router/index.ts +43 -8
- package/profiles/server/packages/router/package.json +8 -3
- package/profiles/server/packages/server/LICENSE +97 -0
- package/profiles/server/packages/server/package.json +6 -3
- package/profiles/server/packages/style/LICENSE +97 -0
- package/profiles/server/packages/style/package.json +3 -2
- package/profiles/client/client/routes/about.tsx +0 -22
- package/profiles/full/client/routes/about.tsx +0 -22
- /package/packages/{core → client}/client/routes/index.tsx +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
Flow OS Framework and all packages in this repository are licensed under the
|
|
2
|
+
PolyForm Shield License 1.0.0. This license applies to the entire repository
|
|
3
|
+
(framework, packages/*, client, server, and any other code herein).
|
|
4
|
+
|
|
5
|
+
Required Notice: Copyright (c) Flow OS. All rights reserved.
|
|
6
|
+
|
|
7
|
+
-------------------------------------------------------------------------------
|
|
8
|
+
|
|
9
|
+
# PolyForm Shield License 1.0.0
|
|
10
|
+
|
|
11
|
+
## Acceptance
|
|
12
|
+
|
|
13
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
14
|
+
|
|
15
|
+
## Copyright License
|
|
16
|
+
|
|
17
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
|
|
18
|
+
|
|
19
|
+
## Distribution License
|
|
20
|
+
|
|
21
|
+
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
|
|
22
|
+
|
|
23
|
+
## Notices
|
|
24
|
+
|
|
25
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
|
|
26
|
+
|
|
27
|
+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
28
|
+
|
|
29
|
+
## Changes and New Works License
|
|
30
|
+
|
|
31
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
32
|
+
|
|
33
|
+
## Patent License
|
|
34
|
+
|
|
35
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
36
|
+
|
|
37
|
+
## Noncompete
|
|
38
|
+
|
|
39
|
+
Any purpose is a permitted purpose, except for providing any product that competes with the software or any product the licensor or any of its affiliates provides using the software.
|
|
40
|
+
|
|
41
|
+
## Competition
|
|
42
|
+
|
|
43
|
+
Goods and services compete even when they provide functionality through different kinds of interfaces or for different technical platforms. Applications can compete with services, libraries with plugins, frameworks with development tools, and so on, even if they're written in different programming languages or for different computer architectures. Goods and services compete even when provided free of charge. If you market a product as a practical substitute for the software or another product, it definitely competes.
|
|
44
|
+
|
|
45
|
+
## New Products
|
|
46
|
+
|
|
47
|
+
If you are using the software to provide a product that does not compete, but the licensor or any of its affiliates brings your product into competition by providing a new version of the software or another product using the software, you may continue using versions of the software available under these terms beforehand to provide your competing product, but not any later versions.
|
|
48
|
+
|
|
49
|
+
## Discontinued Products
|
|
50
|
+
|
|
51
|
+
You may begin using the software to compete with a product or service that the licensor or any of its affiliates has stopped providing, unless the licensor includes a plain-text line beginning with `Licensor Line of Business:` with the software that mentions that line of business. For example:
|
|
52
|
+
|
|
53
|
+
> Licensor Line of Business: YoyodyneCMS Content Management System (http://example.com/cms)
|
|
54
|
+
|
|
55
|
+
Licensor Line of Business: Flow OS application framework and development tooling (create-flow, @flow.os/* packages, and related framework components).
|
|
56
|
+
|
|
57
|
+
## Sales of Business
|
|
58
|
+
|
|
59
|
+
If the licensor or any of its affiliates sells a line of business developing the software or using the software to provide a product, the buyer can also enforce [Noncompete](#noncompete) for that product.
|
|
60
|
+
|
|
61
|
+
## Fair Use
|
|
62
|
+
|
|
63
|
+
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
64
|
+
|
|
65
|
+
## No Other Rights
|
|
66
|
+
|
|
67
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
68
|
+
|
|
69
|
+
## Patent Defense
|
|
70
|
+
|
|
71
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
72
|
+
|
|
73
|
+
## Violations
|
|
74
|
+
|
|
75
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
76
|
+
|
|
77
|
+
## No Liability
|
|
78
|
+
|
|
79
|
+
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
|
|
80
|
+
|
|
81
|
+
## Definitions
|
|
82
|
+
|
|
83
|
+
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
|
|
84
|
+
|
|
85
|
+
A **product** can be a good or service, or a combination of them.
|
|
86
|
+
|
|
87
|
+
**You** refers to the individual or entity agreeing to these terms.
|
|
88
|
+
|
|
89
|
+
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all its affiliates.
|
|
90
|
+
|
|
91
|
+
**Affiliates** means the other organizations than an organization has control over, is under the control of, or is under common control with.
|
|
92
|
+
|
|
93
|
+
**Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
94
|
+
|
|
95
|
+
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
96
|
+
|
|
97
|
+
**Use** means anything you do with the software requiring one of your licenses.
|
package/bin/index.js
CHANGED
|
@@ -817,6 +817,17 @@ function transformPackageJson(pkg, projectName, extraPackages = {}, useWorkspace
|
|
|
817
817
|
}
|
|
818
818
|
return out;
|
|
819
819
|
}
|
|
820
|
+
function transformScriptsForCreatedProject(scripts) {
|
|
821
|
+
if (!scripts)
|
|
822
|
+
return scripts;
|
|
823
|
+
const out = {};
|
|
824
|
+
for (const [key, value] of Object.entries(scripts)) {
|
|
825
|
+
if (key === "release")
|
|
826
|
+
continue;
|
|
827
|
+
out[key] = value.replace(/packages\/([^/]+)\//g, "node_modules/@flow.os/$1/");
|
|
828
|
+
}
|
|
829
|
+
return Object.keys(out).length ? out : undefined;
|
|
830
|
+
}
|
|
820
831
|
async function copyWithExclude(srcDir, destDir, exclude) {
|
|
821
832
|
const set = new Set(exclude.map((e2) => e2.toLowerCase()));
|
|
822
833
|
async function w2(dir, rel) {
|
|
@@ -1043,13 +1054,7 @@ async function main() {
|
|
|
1043
1054
|
await rm(projectPathNew, { recursive: true, force: true });
|
|
1044
1055
|
const createSpinner = _2();
|
|
1045
1056
|
createSpinner.start(c2.cyan(ICON.rocket + " Creating project\u2026"));
|
|
1046
|
-
await copyWithExclude(profileDir, projectPathNew, ["node_modules", ".git"]);
|
|
1047
|
-
for (const id of selected) {
|
|
1048
|
-
const pkgDir = join2(DIR, "packages", id);
|
|
1049
|
-
try {
|
|
1050
|
-
await copyWithExclude(pkgDir, projectPathNew, []);
|
|
1051
|
-
} catch {}
|
|
1052
|
-
}
|
|
1057
|
+
await copyWithExclude(profileDir, projectPathNew, ["node_modules", ".git", "packages"]);
|
|
1053
1058
|
createSpinner.stop(c2.cyan(ICON.rocket + " Project created"));
|
|
1054
1059
|
const extraDeps = {};
|
|
1055
1060
|
for (const id of selected) {
|
|
@@ -1070,6 +1075,9 @@ async function main() {
|
|
|
1070
1075
|
}
|
|
1071
1076
|
const finalPkg = await Bun.file(pkgPath).json();
|
|
1072
1077
|
delete finalPkg.workspaces;
|
|
1078
|
+
const transformedScripts = transformScriptsForCreatedProject(finalPkg.scripts);
|
|
1079
|
+
if (transformedScripts)
|
|
1080
|
+
finalPkg.scripts = transformedScripts;
|
|
1073
1081
|
if (finalPkg.dependencies) {
|
|
1074
1082
|
const isDevFromRepo = await isDevFromRepoPromise;
|
|
1075
1083
|
const flowKeys = Object.keys(finalPkg.dependencies).filter((k3) => k3 === "@flow.os" || k3.startsWith("@flow.os/"));
|
|
@@ -1097,11 +1105,6 @@ async function main() {
|
|
|
1097
1105
|
finalPkg.dependencies = Object.fromEntries(Object.entries(finalPkg.dependencies).filter(([key]) => key !== "@flow.os"));
|
|
1098
1106
|
}
|
|
1099
1107
|
await Bun.write(pkgPath, JSON.stringify(finalPkg, null, 2));
|
|
1100
|
-
if (useDevTag) {
|
|
1101
|
-
try {
|
|
1102
|
-
await rm(join2(projectPathNew, "packages"), { recursive: true, force: true });
|
|
1103
|
-
} catch {}
|
|
1104
|
-
}
|
|
1105
1108
|
if (!noInstall) {
|
|
1106
1109
|
const s = _2();
|
|
1107
1110
|
s.start(c2.cyan(ICON.deps + " Installing dependencies\u2026"));
|
package/config.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-flow-os",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.1771777269",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-flow-os": "bin/index.js"
|
|
@@ -10,13 +10,16 @@
|
|
|
10
10
|
"config.json",
|
|
11
11
|
"flow.config.client.ts",
|
|
12
12
|
"profiles",
|
|
13
|
-
"packages"
|
|
13
|
+
"packages",
|
|
14
|
+
"LICENSE"
|
|
14
15
|
],
|
|
16
|
+
"license": "PolyForm-Shield-1.0.0",
|
|
15
17
|
"scripts": {
|
|
16
18
|
"gen": "bun gen.ts",
|
|
17
19
|
"create": "bun index.ts",
|
|
18
20
|
"build": "bun build ./index.ts --outdir=bin --target=bun",
|
|
19
21
|
"publish:dev": "bun publish-dev.ts",
|
|
22
|
+
"version": "bun version.ts",
|
|
20
23
|
"release": "bun publish.ts"
|
|
21
24
|
},
|
|
22
25
|
"dependencies": {
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import './root.css';
|
|
2
2
|
import { App } from '@flow.os/router';
|
|
3
|
+
import NotFound from './routes/404';
|
|
3
4
|
|
|
4
|
-
export const
|
|
5
|
+
export const notFound = NotFound;
|
|
5
6
|
|
|
6
7
|
export default function Root() {
|
|
7
8
|
return (
|
|
8
9
|
<>
|
|
9
|
-
<nav>
|
|
10
|
-
<a href="/">Home</a> | <a href="/about">About</a>
|
|
11
|
-
</nav>
|
|
12
10
|
<App />
|
|
13
11
|
</>
|
|
14
12
|
);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** Pagina 404 full-page (senza layout comune). Mostrata dal router per route inesistenti; raggiungibile anche da /404. */
|
|
2
|
+
export default function NotFound(path: string) {
|
|
3
|
+
return (
|
|
4
|
+
<div
|
|
5
|
+
role="alert"
|
|
6
|
+
style={{
|
|
7
|
+
minHeight: '100vh',
|
|
8
|
+
display: 'flex',
|
|
9
|
+
flexDirection: 'column',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
justifyContent: 'center',
|
|
12
|
+
gap: '0.5rem',
|
|
13
|
+
}}
|
|
14
|
+
>
|
|
15
|
+
<h1 style={{ margin: 0, fontSize: '2rem' }}>404</h1>
|
|
16
|
+
<p style={{ margin: 0, color: 'var(--muted, #666)' }}>
|
|
17
|
+
{path ? `Pagina non trovata: ${path}` : 'Pagina non trovata'}
|
|
18
|
+
</p>
|
|
19
|
+
<a href="/" style={{ marginTop: '1rem' }}>
|
|
20
|
+
Torna alla home
|
|
21
|
+
</a>
|
|
22
|
+
</div>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
Flow OS Framework and all packages in this repository are licensed under the
|
|
2
|
+
PolyForm Shield License 1.0.0. This license applies to the entire repository
|
|
3
|
+
(framework, packages/*, client, server, and any other code herein).
|
|
4
|
+
|
|
5
|
+
Required Notice: Copyright (c) Flow OS. All rights reserved.
|
|
6
|
+
|
|
7
|
+
-------------------------------------------------------------------------------
|
|
8
|
+
|
|
9
|
+
# PolyForm Shield License 1.0.0
|
|
10
|
+
|
|
11
|
+
## Acceptance
|
|
12
|
+
|
|
13
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
14
|
+
|
|
15
|
+
## Copyright License
|
|
16
|
+
|
|
17
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
|
|
18
|
+
|
|
19
|
+
## Distribution License
|
|
20
|
+
|
|
21
|
+
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
|
|
22
|
+
|
|
23
|
+
## Notices
|
|
24
|
+
|
|
25
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
|
|
26
|
+
|
|
27
|
+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
28
|
+
|
|
29
|
+
## Changes and New Works License
|
|
30
|
+
|
|
31
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
32
|
+
|
|
33
|
+
## Patent License
|
|
34
|
+
|
|
35
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
36
|
+
|
|
37
|
+
## Noncompete
|
|
38
|
+
|
|
39
|
+
Any purpose is a permitted purpose, except for providing any product that competes with the software or any product the licensor or any of its affiliates provides using the software.
|
|
40
|
+
|
|
41
|
+
## Competition
|
|
42
|
+
|
|
43
|
+
Goods and services compete even when they provide functionality through different kinds of interfaces or for different technical platforms. Applications can compete with services, libraries with plugins, frameworks with development tools, and so on, even if they're written in different programming languages or for different computer architectures. Goods and services compete even when provided free of charge. If you market a product as a practical substitute for the software or another product, it definitely competes.
|
|
44
|
+
|
|
45
|
+
## New Products
|
|
46
|
+
|
|
47
|
+
If you are using the software to provide a product that does not compete, but the licensor or any of its affiliates brings your product into competition by providing a new version of the software or another product using the software, you may continue using versions of the software available under these terms beforehand to provide your competing product, but not any later versions.
|
|
48
|
+
|
|
49
|
+
## Discontinued Products
|
|
50
|
+
|
|
51
|
+
You may begin using the software to compete with a product or service that the licensor or any of its affiliates has stopped providing, unless the licensor includes a plain-text line beginning with `Licensor Line of Business:` with the software that mentions that line of business. For example:
|
|
52
|
+
|
|
53
|
+
> Licensor Line of Business: YoyodyneCMS Content Management System (http://example.com/cms)
|
|
54
|
+
|
|
55
|
+
Licensor Line of Business: Flow OS application framework and development tooling (create-flow, @flow.os/* packages, and related framework components).
|
|
56
|
+
|
|
57
|
+
## Sales of Business
|
|
58
|
+
|
|
59
|
+
If the licensor or any of its affiliates sells a line of business developing the software or using the software to provide a product, the buyer can also enforce [Noncompete](#noncompete) for that product.
|
|
60
|
+
|
|
61
|
+
## Fair Use
|
|
62
|
+
|
|
63
|
+
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
64
|
+
|
|
65
|
+
## No Other Rights
|
|
66
|
+
|
|
67
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
68
|
+
|
|
69
|
+
## Patent Defense
|
|
70
|
+
|
|
71
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
72
|
+
|
|
73
|
+
## Violations
|
|
74
|
+
|
|
75
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
76
|
+
|
|
77
|
+
## No Liability
|
|
78
|
+
|
|
79
|
+
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
|
|
80
|
+
|
|
81
|
+
## Definitions
|
|
82
|
+
|
|
83
|
+
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
|
|
84
|
+
|
|
85
|
+
A **product** can be a good or service, or a combination of them.
|
|
86
|
+
|
|
87
|
+
**You** refers to the individual or entity agreeing to these terms.
|
|
88
|
+
|
|
89
|
+
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all its affiliates.
|
|
90
|
+
|
|
91
|
+
**Affiliates** means the other organizations than an organization has control over, is under the control of, or is under common control with.
|
|
92
|
+
|
|
93
|
+
**Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
94
|
+
|
|
95
|
+
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
96
|
+
|
|
97
|
+
**Use** means anything you do with the software requiring one of your licenses.
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
// @flow: client
|
|
2
2
|
import './root.css';
|
|
3
3
|
import { App } from '@flow.os/router';
|
|
4
|
+
import NotFound from './routes/404';
|
|
4
5
|
|
|
5
|
-
export const
|
|
6
|
+
export const notFound = NotFound;
|
|
6
7
|
|
|
7
8
|
export default function Root() {
|
|
8
9
|
return (
|
|
9
10
|
<>
|
|
10
|
-
<nav>
|
|
11
|
-
<a href="/">Home</a> | <a href="/about">About</a>
|
|
12
|
-
</nav>
|
|
13
11
|
<App />
|
|
14
12
|
</>
|
|
15
13
|
);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// @flow: client
|
|
2
|
+
/** Pagina 404 full-page (senza layout comune). Mostrata dal router per route inesistenti; raggiungibile anche da /404. */
|
|
3
|
+
export default function NotFound(path: string) {
|
|
4
|
+
return (
|
|
5
|
+
<div
|
|
6
|
+
role="alert"
|
|
7
|
+
style={{
|
|
8
|
+
minHeight: '100vh',
|
|
9
|
+
display: 'flex',
|
|
10
|
+
flexDirection: 'column',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
justifyContent: 'center',
|
|
13
|
+
gap: '0.5rem',
|
|
14
|
+
}}
|
|
15
|
+
>
|
|
16
|
+
<h1 style={{ margin: 0, fontSize: '2rem' }}>404</h1>
|
|
17
|
+
<p style={{ margin: 0, color: 'var(--muted, #666)' }}>
|
|
18
|
+
{path ? `Pagina non trovata: ${path}` : 'Pagina non trovata'}
|
|
19
|
+
</p>
|
|
20
|
+
<a href="/" style={{ marginTop: '1rem' }}>
|
|
21
|
+
Torna alla home
|
|
22
|
+
</a>
|
|
23
|
+
</div>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
Flow OS Framework and all packages in this repository are licensed under the
|
|
2
|
+
PolyForm Shield License 1.0.0. This license applies to the entire repository
|
|
3
|
+
(framework, packages/*, client, server, and any other code herein).
|
|
4
|
+
|
|
5
|
+
Required Notice: Copyright (c) Flow OS. All rights reserved.
|
|
6
|
+
|
|
7
|
+
-------------------------------------------------------------------------------
|
|
8
|
+
|
|
9
|
+
# PolyForm Shield License 1.0.0
|
|
10
|
+
|
|
11
|
+
## Acceptance
|
|
12
|
+
|
|
13
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
14
|
+
|
|
15
|
+
## Copyright License
|
|
16
|
+
|
|
17
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
|
|
18
|
+
|
|
19
|
+
## Distribution License
|
|
20
|
+
|
|
21
|
+
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
|
|
22
|
+
|
|
23
|
+
## Notices
|
|
24
|
+
|
|
25
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
|
|
26
|
+
|
|
27
|
+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
28
|
+
|
|
29
|
+
## Changes and New Works License
|
|
30
|
+
|
|
31
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
32
|
+
|
|
33
|
+
## Patent License
|
|
34
|
+
|
|
35
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
36
|
+
|
|
37
|
+
## Noncompete
|
|
38
|
+
|
|
39
|
+
Any purpose is a permitted purpose, except for providing any product that competes with the software or any product the licensor or any of its affiliates provides using the software.
|
|
40
|
+
|
|
41
|
+
## Competition
|
|
42
|
+
|
|
43
|
+
Goods and services compete even when they provide functionality through different kinds of interfaces or for different technical platforms. Applications can compete with services, libraries with plugins, frameworks with development tools, and so on, even if they're written in different programming languages or for different computer architectures. Goods and services compete even when provided free of charge. If you market a product as a practical substitute for the software or another product, it definitely competes.
|
|
44
|
+
|
|
45
|
+
## New Products
|
|
46
|
+
|
|
47
|
+
If you are using the software to provide a product that does not compete, but the licensor or any of its affiliates brings your product into competition by providing a new version of the software or another product using the software, you may continue using versions of the software available under these terms beforehand to provide your competing product, but not any later versions.
|
|
48
|
+
|
|
49
|
+
## Discontinued Products
|
|
50
|
+
|
|
51
|
+
You may begin using the software to compete with a product or service that the licensor or any of its affiliates has stopped providing, unless the licensor includes a plain-text line beginning with `Licensor Line of Business:` with the software that mentions that line of business. For example:
|
|
52
|
+
|
|
53
|
+
> Licensor Line of Business: YoyodyneCMS Content Management System (http://example.com/cms)
|
|
54
|
+
|
|
55
|
+
Licensor Line of Business: Flow OS application framework and development tooling (create-flow, @flow.os/* packages, and related framework components).
|
|
56
|
+
|
|
57
|
+
## Sales of Business
|
|
58
|
+
|
|
59
|
+
If the licensor or any of its affiliates sells a line of business developing the software or using the software to provide a product, the buyer can also enforce [Noncompete](#noncompete) for that product.
|
|
60
|
+
|
|
61
|
+
## Fair Use
|
|
62
|
+
|
|
63
|
+
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
64
|
+
|
|
65
|
+
## No Other Rights
|
|
66
|
+
|
|
67
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
68
|
+
|
|
69
|
+
## Patent Defense
|
|
70
|
+
|
|
71
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
72
|
+
|
|
73
|
+
## Violations
|
|
74
|
+
|
|
75
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
76
|
+
|
|
77
|
+
## No Liability
|
|
78
|
+
|
|
79
|
+
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
|
|
80
|
+
|
|
81
|
+
## Definitions
|
|
82
|
+
|
|
83
|
+
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
|
|
84
|
+
|
|
85
|
+
A **product** can be a good or service, or a combination of them.
|
|
86
|
+
|
|
87
|
+
**You** refers to the individual or entity agreeing to these terms.
|
|
88
|
+
|
|
89
|
+
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all its affiliates.
|
|
90
|
+
|
|
91
|
+
**Affiliates** means the other organizations than an organization has control over, is under the control of, or is under common control with.
|
|
92
|
+
|
|
93
|
+
**Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
94
|
+
|
|
95
|
+
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
96
|
+
|
|
97
|
+
**Use** means anything you do with the software requiring one of your licenses.
|
|
@@ -6,7 +6,10 @@ import type { Plugin } from 'vite';
|
|
|
6
6
|
const FLOW_ENTRY_ID = '\0flow-entry';
|
|
7
7
|
const ENTRY_CODE = `import * as root from '/client/root.tsx';
|
|
8
8
|
import { run } from '@flow.os/router';
|
|
9
|
-
|
|
9
|
+
const opts = {};
|
|
10
|
+
if (root.fallback != null) opts.fallback = root.fallback;
|
|
11
|
+
if (root.notFound != null) opts.notFound = root.notFound;
|
|
12
|
+
run(root.default, import.meta.glob('/client/routes/**/*.tsx'), Object.keys(opts).length ? opts : undefined);
|
|
10
13
|
`;
|
|
11
14
|
|
|
12
15
|
/** Reset stili browser: niente margin/padding di default, layout full viewport. */
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
Flow OS Framework and all packages in this repository are licensed under the
|
|
2
|
+
PolyForm Shield License 1.0.0. This license applies to the entire repository
|
|
3
|
+
(framework, packages/*, client, server, and any other code herein).
|
|
4
|
+
|
|
5
|
+
Required Notice: Copyright (c) Flow OS. All rights reserved.
|
|
6
|
+
|
|
7
|
+
-------------------------------------------------------------------------------
|
|
8
|
+
|
|
9
|
+
# PolyForm Shield License 1.0.0
|
|
10
|
+
|
|
11
|
+
## Acceptance
|
|
12
|
+
|
|
13
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
14
|
+
|
|
15
|
+
## Copyright License
|
|
16
|
+
|
|
17
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
|
|
18
|
+
|
|
19
|
+
## Distribution License
|
|
20
|
+
|
|
21
|
+
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
|
|
22
|
+
|
|
23
|
+
## Notices
|
|
24
|
+
|
|
25
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
|
|
26
|
+
|
|
27
|
+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
28
|
+
|
|
29
|
+
## Changes and New Works License
|
|
30
|
+
|
|
31
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
32
|
+
|
|
33
|
+
## Patent License
|
|
34
|
+
|
|
35
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
36
|
+
|
|
37
|
+
## Noncompete
|
|
38
|
+
|
|
39
|
+
Any purpose is a permitted purpose, except for providing any product that competes with the software or any product the licensor or any of its affiliates provides using the software.
|
|
40
|
+
|
|
41
|
+
## Competition
|
|
42
|
+
|
|
43
|
+
Goods and services compete even when they provide functionality through different kinds of interfaces or for different technical platforms. Applications can compete with services, libraries with plugins, frameworks with development tools, and so on, even if they're written in different programming languages or for different computer architectures. Goods and services compete even when provided free of charge. If you market a product as a practical substitute for the software or another product, it definitely competes.
|
|
44
|
+
|
|
45
|
+
## New Products
|
|
46
|
+
|
|
47
|
+
If you are using the software to provide a product that does not compete, but the licensor or any of its affiliates brings your product into competition by providing a new version of the software or another product using the software, you may continue using versions of the software available under these terms beforehand to provide your competing product, but not any later versions.
|
|
48
|
+
|
|
49
|
+
## Discontinued Products
|
|
50
|
+
|
|
51
|
+
You may begin using the software to compete with a product or service that the licensor or any of its affiliates has stopped providing, unless the licensor includes a plain-text line beginning with `Licensor Line of Business:` with the software that mentions that line of business. For example:
|
|
52
|
+
|
|
53
|
+
> Licensor Line of Business: YoyodyneCMS Content Management System (http://example.com/cms)
|
|
54
|
+
|
|
55
|
+
Licensor Line of Business: Flow OS application framework and development tooling (create-flow, @flow.os/* packages, and related framework components).
|
|
56
|
+
|
|
57
|
+
## Sales of Business
|
|
58
|
+
|
|
59
|
+
If the licensor or any of its affiliates sells a line of business developing the software or using the software to provide a product, the buyer can also enforce [Noncompete](#noncompete) for that product.
|
|
60
|
+
|
|
61
|
+
## Fair Use
|
|
62
|
+
|
|
63
|
+
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
64
|
+
|
|
65
|
+
## No Other Rights
|
|
66
|
+
|
|
67
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
68
|
+
|
|
69
|
+
## Patent Defense
|
|
70
|
+
|
|
71
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
72
|
+
|
|
73
|
+
## Violations
|
|
74
|
+
|
|
75
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
76
|
+
|
|
77
|
+
## No Liability
|
|
78
|
+
|
|
79
|
+
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
|
|
80
|
+
|
|
81
|
+
## Definitions
|
|
82
|
+
|
|
83
|
+
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
|
|
84
|
+
|
|
85
|
+
A **product** can be a good or service, or a combination of them.
|
|
86
|
+
|
|
87
|
+
**You** refers to the individual or entity agreeing to these terms.
|
|
88
|
+
|
|
89
|
+
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all its affiliates.
|
|
90
|
+
|
|
91
|
+
**Affiliates** means the other organizations than an organization has control over, is under the control of, or is under common control with.
|
|
92
|
+
|
|
93
|
+
**Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
94
|
+
|
|
95
|
+
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
96
|
+
|
|
97
|
+
**Use** means anything you do with the software requiring one of your licenses.
|