create-flow-os 0.0.1-dev.1771840262 → 0.0.1-dev.1771979366
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 +8 -23
- package/{profiles/server/packages/style → src/create}/index.ts +31 -30
- package/src/index.ts +14 -0
- package/src/init/index.ts +66 -0
- package/src/init/lib.ts +36 -0
- package/src/init/scaffold.ts +43 -0
- package/LICENSE +0 -97
- package/README.md +0 -26
- package/bin/index.js +0 -1215
- package/config.json +0 -89
- package/lib/utils.ts +0 -91
- package/packages/client/client/root.css +0 -9
- package/packages/client/client/root.tsx +0 -6
- package/packages/client/client/routes/404.tsx +0 -24
- package/packages/client/client/routes/index.tsx +0 -48
- package/packages/server/server/routes/hello.get.ts +0 -3
- package/profiles/client/.dockerignore +0 -12
- package/profiles/client/.oxfmtrc.json +0 -7
- package/profiles/client/.oxlintrc.json +0 -13
- package/profiles/client/.vscode/settings.json +0 -12
- package/profiles/client/Dockerfile +0 -26
- package/profiles/client/README.md +0 -34
- package/profiles/client/bun.lock +0 -352
- package/profiles/client/client/root.css +0 -9
- package/profiles/client/client/root.tsx +0 -6
- package/profiles/client/client/routes/404.tsx +0 -24
- package/profiles/client/client/routes/about.tsx +0 -7
- package/profiles/client/client/routes/index.tsx +0 -48
- package/profiles/client/flow.config.ts +0 -6
- package/profiles/client/index.html +0 -5
- package/profiles/client/package.json +0 -32
- package/profiles/client/packages/client/LICENSE +0 -97
- package/profiles/client/packages/client/build/config.ts +0 -211
- package/profiles/client/packages/client/build/vite.ts +0 -98
- package/profiles/client/packages/client/features/attrs.ts +0 -32
- package/profiles/client/packages/client/features/class-flow.ts +0 -116
- package/profiles/client/packages/client/features/index.ts +0 -8
- package/profiles/client/packages/client/features/pseudo-injector.ts +0 -40
- package/profiles/client/packages/client/features/style-flow.ts +0 -106
- package/profiles/client/packages/client/features/style.ts +0 -27
- package/profiles/client/packages/client/features/utils.ts +0 -4
- package/profiles/client/packages/client/features/viewport.ts +0 -20
- package/profiles/client/packages/client/index.ts +0 -7
- package/profiles/client/packages/client/package.json +0 -48
- package/profiles/client/packages/client/runtime/dom.ts +0 -2
- package/profiles/client/packages/client/runtime/jsx-dev-runtime.ts +0 -1
- package/profiles/client/packages/client/runtime/jsx-runtime.ts +0 -1
- package/profiles/client/packages/client/runtime/jsx-types.d.ts +0 -66
- package/profiles/client/packages/client/runtime/jsx.ts +0 -101
- package/profiles/client/packages/client/scripts/build.ts +0 -14
- package/profiles/client/packages/client/scripts/preview.ts +0 -14
- package/profiles/client/packages/client/scripts/start-dev.ts +0 -49
- package/profiles/client/packages/core/LICENSE +0 -97
- package/profiles/client/packages/core/dom.ts +0 -43
- package/profiles/client/packages/core/for.ts +0 -42
- package/profiles/client/packages/core/index.ts +0 -5
- package/profiles/client/packages/core/lifecycle.ts +0 -6
- package/profiles/client/packages/core/package.json +0 -16
- package/profiles/client/packages/core/show-switch.ts +0 -56
- package/profiles/client/packages/core/state.ts +0 -56
- package/profiles/client/packages/router/LICENSE +0 -97
- package/profiles/client/packages/router/index.ts +0 -20
- package/profiles/client/packages/router/matcher.ts +0 -105
- package/profiles/client/packages/router/package.json +0 -15
- package/profiles/client/packages/router/router.ts +0 -185
- package/profiles/client/packages/router/types.ts +0 -34
- package/profiles/client/packages/router/utils.ts +0 -45
- package/profiles/client/packages/style/LICENSE +0 -97
- package/profiles/client/packages/style/breakpoints.ts +0 -20
- package/profiles/client/packages/style/extension/.vscodeignore +0 -5
- package/profiles/client/packages/style/extension/flow-style-colors-0.0.1.vsix +0 -0
- package/profiles/client/packages/style/extension/out/extension.js +0 -130
- package/profiles/client/packages/style/extension/package.json +0 -24
- package/profiles/client/packages/style/extension/src/extension.ts +0 -146
- package/profiles/client/packages/style/extension/tsconfig.json +0 -12
- package/profiles/client/packages/style/index.ts +0 -30
- package/profiles/client/packages/style/package.json +0 -20
- package/profiles/client/packages/style/react.ts +0 -68
- package/profiles/client/packages/style/resolve.ts +0 -127
- package/profiles/client/packages/style/server.ts +0 -299
- package/profiles/client/packages/style/shorthand.ts +0 -96
- package/profiles/client/packages/style/style-builder/button.ts +0 -41
- package/profiles/client/packages/style/style-builder/constants.ts +0 -16
- package/profiles/client/packages/style/style-builder/dom.ts +0 -18
- package/profiles/client/packages/style/style-builder/index.ts +0 -48
- package/profiles/client/packages/style/style-builder/panel.ts +0 -69
- package/profiles/client/packages/style/style-builder/position.ts +0 -25
- package/profiles/client/packages/style/visual-builder.ts +0 -822
- package/profiles/client/packages/style/vite-plugin.ts +0 -86
- package/profiles/client/tsconfig.json +0 -30
- package/profiles/full/.dockerignore +0 -12
- package/profiles/full/.oxfmtrc.json +0 -7
- package/profiles/full/.oxlintrc.json +0 -13
- package/profiles/full/.vscode/settings.json +0 -12
- package/profiles/full/Dockerfile +0 -26
- package/profiles/full/README.md +0 -34
- package/profiles/full/bun.lock +0 -352
- package/profiles/full/client/root.css +0 -9
- package/profiles/full/client/root.tsx +0 -6
- package/profiles/full/client/routes/404.tsx +0 -24
- package/profiles/full/client/routes/about.tsx +0 -7
- package/profiles/full/client/routes/index.tsx +0 -48
- package/profiles/full/flow.config.ts +0 -6
- package/profiles/full/index.html +0 -5
- package/profiles/full/package.json +0 -33
- package/profiles/full/packages/client/LICENSE +0 -97
- package/profiles/full/packages/client/build/config.ts +0 -211
- package/profiles/full/packages/client/build/vite.ts +0 -98
- package/profiles/full/packages/client/features/attrs.ts +0 -32
- package/profiles/full/packages/client/features/class-flow.ts +0 -116
- package/profiles/full/packages/client/features/index.ts +0 -8
- package/profiles/full/packages/client/features/pseudo-injector.ts +0 -40
- package/profiles/full/packages/client/features/style-flow.ts +0 -106
- package/profiles/full/packages/client/features/style.ts +0 -27
- package/profiles/full/packages/client/features/utils.ts +0 -4
- package/profiles/full/packages/client/features/viewport.ts +0 -20
- package/profiles/full/packages/client/index.ts +0 -7
- package/profiles/full/packages/client/package.json +0 -48
- package/profiles/full/packages/client/runtime/dom.ts +0 -2
- package/profiles/full/packages/client/runtime/jsx-dev-runtime.ts +0 -1
- package/profiles/full/packages/client/runtime/jsx-runtime.ts +0 -1
- package/profiles/full/packages/client/runtime/jsx-types.d.ts +0 -66
- package/profiles/full/packages/client/runtime/jsx.ts +0 -101
- package/profiles/full/packages/client/scripts/build.ts +0 -14
- package/profiles/full/packages/client/scripts/preview.ts +0 -14
- package/profiles/full/packages/client/scripts/start-dev.ts +0 -49
- package/profiles/full/packages/core/LICENSE +0 -97
- package/profiles/full/packages/core/dom.ts +0 -43
- package/profiles/full/packages/core/for.ts +0 -42
- package/profiles/full/packages/core/index.ts +0 -5
- package/profiles/full/packages/core/lifecycle.ts +0 -6
- package/profiles/full/packages/core/package.json +0 -16
- package/profiles/full/packages/core/show-switch.ts +0 -56
- package/profiles/full/packages/core/state.ts +0 -56
- package/profiles/full/packages/router/LICENSE +0 -97
- package/profiles/full/packages/router/index.ts +0 -20
- package/profiles/full/packages/router/matcher.ts +0 -105
- package/profiles/full/packages/router/package.json +0 -15
- package/profiles/full/packages/router/router.ts +0 -185
- package/profiles/full/packages/router/types.ts +0 -34
- package/profiles/full/packages/router/utils.ts +0 -45
- package/profiles/full/packages/server/LICENSE +0 -97
- package/profiles/full/packages/server/core.ts +0 -140
- package/profiles/full/packages/server/index.ts +0 -24
- package/profiles/full/packages/server/package.json +0 -32
- package/profiles/full/packages/server/plugin.ts +0 -79
- package/profiles/full/packages/server/production.ts +0 -75
- package/profiles/full/packages/server/scripts/start.ts +0 -11
- package/profiles/full/packages/style/LICENSE +0 -97
- package/profiles/full/packages/style/breakpoints.ts +0 -20
- package/profiles/full/packages/style/extension/.vscodeignore +0 -5
- package/profiles/full/packages/style/extension/flow-style-colors-0.0.1.vsix +0 -0
- package/profiles/full/packages/style/extension/out/extension.js +0 -130
- package/profiles/full/packages/style/extension/package.json +0 -24
- package/profiles/full/packages/style/extension/src/extension.ts +0 -146
- package/profiles/full/packages/style/extension/tsconfig.json +0 -12
- package/profiles/full/packages/style/index.ts +0 -30
- package/profiles/full/packages/style/package.json +0 -20
- package/profiles/full/packages/style/react.ts +0 -68
- package/profiles/full/packages/style/resolve.ts +0 -127
- package/profiles/full/packages/style/server.ts +0 -299
- package/profiles/full/packages/style/shorthand.ts +0 -96
- package/profiles/full/packages/style/style-builder/button.ts +0 -41
- package/profiles/full/packages/style/style-builder/constants.ts +0 -16
- package/profiles/full/packages/style/style-builder/dom.ts +0 -18
- package/profiles/full/packages/style/style-builder/index.ts +0 -48
- package/profiles/full/packages/style/style-builder/panel.ts +0 -69
- package/profiles/full/packages/style/style-builder/position.ts +0 -25
- package/profiles/full/packages/style/visual-builder.ts +0 -822
- package/profiles/full/packages/style/vite-plugin.ts +0 -86
- package/profiles/full/server/routes/hello.get.ts +0 -3
- package/profiles/full/tsconfig.json +0 -30
- package/profiles/server/.dockerignore +0 -12
- package/profiles/server/.oxfmtrc.json +0 -7
- package/profiles/server/.oxlintrc.json +0 -13
- package/profiles/server/.vscode/settings.json +0 -12
- package/profiles/server/Dockerfile +0 -26
- package/profiles/server/README.md +0 -34
- package/profiles/server/bun.lock +0 -352
- package/profiles/server/flow.config.ts +0 -7
- package/profiles/server/index.html +0 -5
- package/profiles/server/package.json +0 -30
- package/profiles/server/packages/core/LICENSE +0 -97
- package/profiles/server/packages/core/dom.ts +0 -43
- package/profiles/server/packages/core/for.ts +0 -42
- package/profiles/server/packages/core/index.ts +0 -5
- package/profiles/server/packages/core/lifecycle.ts +0 -6
- package/profiles/server/packages/core/package.json +0 -16
- package/profiles/server/packages/core/show-switch.ts +0 -56
- package/profiles/server/packages/core/state.ts +0 -56
- package/profiles/server/packages/router/LICENSE +0 -97
- package/profiles/server/packages/router/index.ts +0 -20
- package/profiles/server/packages/router/matcher.ts +0 -105
- package/profiles/server/packages/router/package.json +0 -15
- package/profiles/server/packages/router/router.ts +0 -185
- package/profiles/server/packages/router/types.ts +0 -34
- package/profiles/server/packages/router/utils.ts +0 -45
- package/profiles/server/packages/server/LICENSE +0 -97
- package/profiles/server/packages/server/core.ts +0 -140
- package/profiles/server/packages/server/index.ts +0 -24
- package/profiles/server/packages/server/package.json +0 -32
- package/profiles/server/packages/server/plugin.ts +0 -79
- package/profiles/server/packages/server/production.ts +0 -75
- package/profiles/server/packages/server/scripts/start.ts +0 -11
- package/profiles/server/packages/style/LICENSE +0 -97
- package/profiles/server/packages/style/breakpoints.ts +0 -20
- package/profiles/server/packages/style/extension/.vscodeignore +0 -5
- package/profiles/server/packages/style/extension/flow-style-colors-0.0.1.vsix +0 -0
- package/profiles/server/packages/style/extension/out/extension.js +0 -130
- package/profiles/server/packages/style/extension/package.json +0 -24
- package/profiles/server/packages/style/extension/src/extension.ts +0 -146
- package/profiles/server/packages/style/extension/tsconfig.json +0 -12
- package/profiles/server/packages/style/package.json +0 -20
- package/profiles/server/packages/style/react.ts +0 -68
- package/profiles/server/packages/style/resolve.ts +0 -127
- package/profiles/server/packages/style/server.ts +0 -299
- package/profiles/server/packages/style/shorthand.ts +0 -96
- package/profiles/server/packages/style/style-builder/button.ts +0 -41
- package/profiles/server/packages/style/style-builder/constants.ts +0 -16
- package/profiles/server/packages/style/style-builder/dom.ts +0 -18
- package/profiles/server/packages/style/style-builder/index.ts +0 -48
- package/profiles/server/packages/style/style-builder/panel.ts +0 -69
- package/profiles/server/packages/style/style-builder/position.ts +0 -25
- package/profiles/server/packages/style/visual-builder.ts +0 -822
- package/profiles/server/packages/style/vite-plugin.ts +0 -86
- package/profiles/server/server/routes/hello.get.ts +0 -3
- package/profiles/server/tsconfig.json +0 -30
- package/templates/flow.config.client.ts +0 -6
- package/templates/flow.config.full.ts +0 -6
- package/templates/flow.config.server.ts +0 -7
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/** Pannello laterale del Flow Style Builder. */
|
|
2
|
-
|
|
3
|
-
import { createEl } from './dom.js';
|
|
4
|
-
import { PANEL_ID, PANEL_WIDTH, THEME } from './constants.js';
|
|
5
|
-
|
|
6
|
-
export function createPanel(initialRight: boolean, onClose: () => void): {
|
|
7
|
-
element: HTMLDivElement;
|
|
8
|
-
open: () => void;
|
|
9
|
-
close: () => void;
|
|
10
|
-
} {
|
|
11
|
-
const panel = createEl('div', {
|
|
12
|
-
position: 'fixed',
|
|
13
|
-
top: '0',
|
|
14
|
-
width: `${PANEL_WIDTH}px`,
|
|
15
|
-
height: '100vh',
|
|
16
|
-
background: THEME.bg,
|
|
17
|
-
color: THEME.text,
|
|
18
|
-
fontFamily: 'ui-sans-serif, system-ui, sans-serif',
|
|
19
|
-
fontSize: '12px',
|
|
20
|
-
boxShadow: '0 0 24px rgba(0,0,0,0.4)',
|
|
21
|
-
display: 'none',
|
|
22
|
-
flexDirection: 'column',
|
|
23
|
-
zIndex: '2147483646',
|
|
24
|
-
overflow: 'hidden',
|
|
25
|
-
});
|
|
26
|
-
panel.id = PANEL_ID;
|
|
27
|
-
|
|
28
|
-
function open(): void {
|
|
29
|
-
const s = panel.style as unknown as Record<string, string>;
|
|
30
|
-
s['right'] = initialRight ? '0' : '';
|
|
31
|
-
s['left'] = initialRight ? '' : '0';
|
|
32
|
-
panel.style.display = 'flex';
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function close(): void {
|
|
36
|
-
panel.style.display = 'none';
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const header = createEl('div', {
|
|
40
|
-
padding: '10px 12px',
|
|
41
|
-
borderBottom: `1px solid ${THEME.border}`,
|
|
42
|
-
display: 'flex',
|
|
43
|
-
alignItems: 'center',
|
|
44
|
-
justifyContent: 'space-between',
|
|
45
|
-
background: THEME.surface,
|
|
46
|
-
});
|
|
47
|
-
const title = createEl('span', { fontWeight: '600', fontSize: '13px' });
|
|
48
|
-
title.textContent = 'Flow Style Builder';
|
|
49
|
-
const closeBtn = createEl('button', {
|
|
50
|
-
padding: '6px',
|
|
51
|
-
border: `1px solid ${THEME.border}`,
|
|
52
|
-
borderRadius: '6px',
|
|
53
|
-
background: 'transparent',
|
|
54
|
-
color: THEME.muted,
|
|
55
|
-
cursor: 'pointer',
|
|
56
|
-
}) as HTMLButtonElement;
|
|
57
|
-
closeBtn.innerHTML = '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M18 6L6 18M6 6l12 12"/></svg>';
|
|
58
|
-
closeBtn.title = 'Chiudi';
|
|
59
|
-
closeBtn.addEventListener('click', onClose);
|
|
60
|
-
header.appendChild(title);
|
|
61
|
-
header.appendChild(closeBtn);
|
|
62
|
-
panel.appendChild(header);
|
|
63
|
-
|
|
64
|
-
const body = createEl('div', { flex: '1', overflow: 'auto', padding: '12px', color: THEME.muted });
|
|
65
|
-
body.textContent = 'Contenuto da aggiungere.';
|
|
66
|
-
panel.appendChild(body);
|
|
67
|
-
|
|
68
|
-
return { element: panel, open, close };
|
|
69
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/** Posizione del pulsante: uno dei quattro angoli. */
|
|
2
|
-
|
|
3
|
-
import { MARGIN } from './constants.js';
|
|
4
|
-
|
|
5
|
-
export type FlowStyleBuilderPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
6
|
-
|
|
7
|
-
/** Passa la posizione (es. flowStyleBuilder: flowStyleBuilder('bottom-right') in flow.config). */
|
|
8
|
-
export function flowStyleBuilder(position: FlowStyleBuilderPosition): FlowStyleBuilderPosition {
|
|
9
|
-
return position;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function cornerToStyles(corner: FlowStyleBuilderPosition): Partial<CSSStyleDeclaration> {
|
|
13
|
-
const m = `${MARGIN}px`;
|
|
14
|
-
switch (corner) {
|
|
15
|
-
case 'top-left':
|
|
16
|
-
return { top: m, left: m, right: '', bottom: '' };
|
|
17
|
-
case 'top-right':
|
|
18
|
-
return { top: m, left: '', right: m, bottom: '' };
|
|
19
|
-
case 'bottom-left':
|
|
20
|
-
return { top: '', left: m, right: '', bottom: m };
|
|
21
|
-
case 'bottom-right':
|
|
22
|
-
default:
|
|
23
|
-
return { top: '', left: '', right: m, bottom: m };
|
|
24
|
-
}
|
|
25
|
-
}
|