@fde-desktop/fde-core 0.3.8 → 0.4.2
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/README.md +419 -68
- package/dist/CalendarApp-CHLUCAI7.css +744 -0
- package/dist/CalendarApp-K7ZOUZ6C.js +2 -0
- package/dist/CalendarApp-OTGEERSS.cjs +8 -0
- package/dist/CodeServerApp-5KZGO7HL.css +75 -0
- package/dist/CodeServerApp-LUZFCQBI.js +3 -0
- package/dist/CodeServerApp-P3TMJPLY.cjs +9 -0
- package/dist/CreateItemApp-NAZMXOPK.cjs +14 -0
- package/dist/CreateItemApp-PQB5GTFG.css +107 -0
- package/dist/CreateItemApp-ZHCTSPQE.js +8 -0
- package/dist/DeviceInfoApp-R6YNVIGX.cjs +11 -0
- package/dist/DeviceInfoApp-YHCYAO6N.js +5 -0
- package/dist/DeviceInfoApp-ZSMRSITP.css +7 -0
- package/dist/FilesApp-AKCVRTXR.js +8 -0
- package/dist/FilesApp-E6L5W3T2.css +1817 -0
- package/dist/FilesApp-RW3Y6ILO.cjs +14 -0
- package/dist/ImageViewerApp-5UXNSW2O.js +11 -0
- package/dist/ImageViewerApp-N2Q7E7WZ.css +215 -0
- package/dist/ImageViewerApp-RRRRKSFN.cjs +17 -0
- package/dist/ImageViewerMenuBar-I3TFKQPS.cjs +14 -0
- package/dist/ImageViewerMenuBar-TV5C6TM2.js +5 -0
- package/dist/ImageViewerMenuBar-XLK4LIHW.css +56 -0
- package/dist/MenuEditApp-HUZRFEHE.js +9 -0
- package/dist/MenuEditApp-MCUHGTKQ.cjs +15 -0
- package/dist/MenuEditApp-YA6HSAMJ.css +94 -0
- package/dist/MenuEditMenuBar-7VHMZNRM.css +56 -0
- package/dist/MenuEditMenuBar-GF6L4PGZ.cjs +15 -0
- package/dist/MenuEditMenuBar-IUXFPZE5.js +6 -0
- package/dist/NotesApp-37BV33C6.js +10 -0
- package/dist/NotesApp-4EVUQEFZ.cjs +16 -0
- package/dist/NotesApp-TQ6IHDNX.css +302 -0
- package/dist/NotesMenuBar-25LKN3SE.cjs +15 -0
- package/dist/NotesMenuBar-MXLOX7OT.css +56 -0
- package/dist/NotesMenuBar-SRV3AIAL.js +6 -0
- package/dist/PdfApp-5VBDNRMC.cjs +16 -0
- package/dist/PdfApp-BUIC5U5H.css +206 -0
- package/dist/PdfApp-RH6MZZX5.js +10 -0
- package/dist/PdfMenuBar-NLZC6JHS.js +4 -0
- package/dist/PdfMenuBar-QUM72EE4.css +56 -0
- package/dist/PdfMenuBar-WBRTKMLN.cjs +13 -0
- package/dist/SettingsApp-5LDHEHYV.cjs +20 -0
- package/dist/SettingsApp-JVOSEFH3.css +283 -0
- package/dist/SettingsApp-X6764D7T.js +14 -0
- package/dist/SettingsMenuBar-5CBSSMVM.css +56 -0
- package/dist/SettingsMenuBar-VLT6TTCM.js +6 -0
- package/dist/SettingsMenuBar-Y5QEXDEO.cjs +15 -0
- package/dist/StorybookApp-NQ244BER.css +7 -0
- package/dist/StorybookApp-NZDV4X3Y.js +1 -0
- package/dist/StorybookApp-VF3KIMU3.cjs +7 -0
- package/dist/TerminalApp-CDGWRBFJ.cjs +10 -0
- package/dist/TerminalApp-EAATMIMX.css +77 -0
- package/dist/TerminalApp-GCKJCM55.js +4 -0
- package/dist/TerminalMenuBar-3J26O26Q.css +56 -0
- package/dist/TerminalMenuBar-7BH7MGNJ.cjs +14 -0
- package/dist/TerminalMenuBar-7JAEQUZ4.js +5 -0
- package/dist/UploaderApp-2WYRCUQV.js +10 -0
- package/dist/UploaderApp-6KV3TGCT.css +1817 -0
- package/dist/UploaderApp-EYFC36PM.cjs +16 -0
- package/dist/chunk-2FO445RM.cjs +449 -0
- package/dist/chunk-2PSTHGTD.cjs +42 -0
- package/dist/chunk-2RQX7QBP.cjs +148 -0
- package/dist/chunk-3IICBLEA.js +442 -0
- package/dist/chunk-43W6UDUZ.cjs +19 -0
- package/dist/chunk-4E45FBAH.js +223 -0
- package/dist/chunk-4MCFQPKY.js +444 -0
- package/dist/chunk-4OH5RPSQ.cjs +38 -0
- package/dist/chunk-4XURSNM4.js +43 -0
- package/dist/chunk-4ZCRYHL6.js +407 -0
- package/dist/chunk-54PYEQLK.js +283 -0
- package/dist/chunk-5C6IQE42.cjs +35 -0
- package/dist/chunk-5NOHYJNH.js +84 -0
- package/dist/chunk-5PYK5ASL.js +162 -0
- package/dist/chunk-5YH6AKEO.js +146 -0
- package/dist/chunk-657BJOY5.cjs +324 -0
- package/dist/chunk-6QOUYSEE.cjs +2303 -0
- package/dist/chunk-7SAFECOJ.js +215 -0
- package/dist/chunk-7Y7HB7FB.cjs +53 -0
- package/dist/chunk-ABIAPZ6S.cjs +45 -0
- package/dist/chunk-AQL372JF.cjs +219 -0
- package/dist/chunk-AXDUVZVP.cjs +88 -0
- package/dist/chunk-AYFNYHMP.js +541 -0
- package/dist/chunk-BDO6B7MZ.cjs +451 -0
- package/dist/chunk-BKXEA2BK.cjs +286 -0
- package/dist/chunk-BLV47DX2.js +47 -0
- package/dist/chunk-BQCD5RAF.cjs +48 -0
- package/dist/chunk-BQL3YXMV.js +17429 -0
- package/dist/chunk-C6BEZNAM.cjs +45 -0
- package/dist/chunk-CFWV2JMR.js +234 -0
- package/dist/chunk-CV5PUHAE.cjs +86 -0
- package/dist/chunk-D5MVFFID.js +42 -0
- package/dist/chunk-D7R55WWT.js +1601 -0
- package/dist/chunk-DMNF4CNN.cjs +49 -0
- package/dist/chunk-DWP2SYF7.js +55 -0
- package/dist/chunk-E55VXNLK.cjs +17498 -0
- package/dist/chunk-EAELL43F.js +42 -0
- package/dist/chunk-EUQLZW6P.js +48 -0
- package/dist/chunk-EX5V2ZTU.js +40 -0
- package/dist/chunk-FH4ILMKF.js +38 -0
- package/dist/chunk-FRHBM2U7.js +33 -0
- package/dist/chunk-FX2TPX3L.cjs +45 -0
- package/dist/chunk-GCYD6T52.js +32 -0
- package/dist/chunk-GRYCUBJZ.js +9 -0
- package/dist/chunk-HWHBSAUC.js +40 -0
- package/dist/chunk-ICUE6T7J.cjs +50 -0
- package/dist/chunk-IDHP3R4I.js +31 -0
- package/dist/chunk-IUOQPOEN.js +2293 -0
- package/dist/chunk-J7L2S2GT.cjs +34 -0
- package/dist/chunk-JEBKLIMU.cjs +123 -0
- package/dist/chunk-KQHICFX3.js +121 -0
- package/dist/chunk-LMJE6V4N.cjs +42 -0
- package/dist/chunk-MVDGM5Y4.js +68 -0
- package/dist/chunk-NVEGEK3N.js +31 -0
- package/dist/chunk-NWMSWRUD.js +2236 -0
- package/dist/chunk-ODXL6BR3.js +77 -0
- package/dist/chunk-OJIDKDKF.js +68 -0
- package/dist/chunk-PKPQA5NR.js +15 -0
- package/dist/chunk-PNDBLFJW.cjs +50 -0
- package/dist/chunk-PYTKNRGM.js +280 -0
- package/dist/chunk-Q3WA72BF.cjs +70 -0
- package/dist/chunk-QB72BLCJ.cjs +237 -0
- package/dist/chunk-QHBBLML3.js +86 -0
- package/dist/chunk-RDIDAZ3S.cjs +9 -0
- package/dist/chunk-RGJPRXYY.js +48 -0
- package/dist/chunk-RQ6OZRUW.cjs +41 -0
- package/dist/chunk-SBE4SZAN.cjs +226 -0
- package/dist/chunk-SYGUWGWK.cjs +2329 -0
- package/dist/chunk-TDZ43MUX.cjs +165 -0
- package/dist/chunk-TGWMOHAO.js +17 -0
- package/dist/chunk-U4RYIS6Z.cjs +548 -0
- package/dist/chunk-UIQCTAVM.cjs +59 -0
- package/dist/chunk-XVASHRCE.cjs +70 -0
- package/dist/chunk-XYSMVQQD.cjs +1608 -0
- package/dist/chunk-YAIWI4Z5.js +7 -0
- package/dist/chunk-YP2PLNOF.cjs +34 -0
- package/dist/chunk-YSOLW4FS.cjs +11 -0
- package/dist/chunk-YY6OUR2U.js +44 -0
- package/dist/chunk-YZWS7FDT.cjs +409 -0
- package/dist/chunk-Z5YGWL65.cjs +39 -0
- package/dist/chunk-ZBGWYTCU.cjs +83 -0
- package/dist/chunk-ZHB5Q2M6.js +36 -0
- package/dist/chunk-ZHNDXNL4.js +45 -0
- package/dist/chunk-ZX3EDZ5C.cjs +17 -0
- package/dist/index.cjs +4405 -5156
- package/dist/index.css +9192 -0
- package/dist/index.d.cts +1324 -762
- package/dist/index.d.ts +1324 -762
- package/dist/index.js +3648 -5038
- package/package.json +14 -6
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk4OH5RPSQ_cjs = require('./chunk-4OH5RPSQ.cjs');
|
|
4
|
+
var chunk6QOUYSEE_cjs = require('./chunk-6QOUYSEE.cjs');
|
|
5
|
+
var chunkZ5YGWL65_cjs = require('./chunk-Z5YGWL65.cjs');
|
|
6
|
+
var chunkE55VXNLK_cjs = require('./chunk-E55VXNLK.cjs');
|
|
7
|
+
var react = require('react');
|
|
8
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
+
|
|
10
|
+
var getIsMobile = () => {
|
|
11
|
+
const width = window.innerWidth;
|
|
12
|
+
const isCoarsePointer = window.matchMedia("(pointer: coarse)").matches;
|
|
13
|
+
return width < chunk6QOUYSEE_cjs.BREAKPOINTS.MOBILE || isCoarsePointer;
|
|
14
|
+
};
|
|
15
|
+
var getIsTablet = () => {
|
|
16
|
+
const width = window.innerWidth;
|
|
17
|
+
return width >= chunk6QOUYSEE_cjs.BREAKPOINTS.MOBILE && width < chunk6QOUYSEE_cjs.BREAKPOINTS.TABLET;
|
|
18
|
+
};
|
|
19
|
+
var getIsDesktop = () => {
|
|
20
|
+
const width = window.innerWidth;
|
|
21
|
+
return width >= chunk6QOUYSEE_cjs.BREAKPOINTS.TABLET;
|
|
22
|
+
};
|
|
23
|
+
var getIsPortrait = () => {
|
|
24
|
+
if (screen.orientation) {
|
|
25
|
+
return screen.orientation.type.includes("portrait");
|
|
26
|
+
}
|
|
27
|
+
return window.innerHeight > window.innerWidth;
|
|
28
|
+
};
|
|
29
|
+
function useDeviceDetection() {
|
|
30
|
+
const [deviceInfo, setDeviceInfo] = react.useState(() => ({
|
|
31
|
+
isMobile: getIsMobile(),
|
|
32
|
+
isTablet: getIsTablet(),
|
|
33
|
+
isDesktop: getIsDesktop(),
|
|
34
|
+
isPortrait: getIsPortrait(),
|
|
35
|
+
shouldShowWarning: getIsMobile() && getIsPortrait(),
|
|
36
|
+
screenWidth: window.innerWidth,
|
|
37
|
+
screenHeight: window.innerHeight
|
|
38
|
+
}));
|
|
39
|
+
const updateDeviceInfo = react.useCallback(() => {
|
|
40
|
+
const isMobile = getIsMobile();
|
|
41
|
+
const isPortrait = getIsPortrait();
|
|
42
|
+
setDeviceInfo({
|
|
43
|
+
isMobile,
|
|
44
|
+
isTablet: getIsTablet(),
|
|
45
|
+
isDesktop: getIsDesktop(),
|
|
46
|
+
isPortrait,
|
|
47
|
+
shouldShowWarning: isMobile && isPortrait,
|
|
48
|
+
screenWidth: window.innerWidth,
|
|
49
|
+
screenHeight: window.innerHeight
|
|
50
|
+
});
|
|
51
|
+
}, []);
|
|
52
|
+
react.useEffect(() => {
|
|
53
|
+
window.addEventListener("resize", updateDeviceInfo);
|
|
54
|
+
screen.orientation?.addEventListener?.("change", updateDeviceInfo);
|
|
55
|
+
return () => {
|
|
56
|
+
window.removeEventListener("resize", updateDeviceInfo);
|
|
57
|
+
screen.orientation?.removeEventListener?.("change", updateDeviceInfo);
|
|
58
|
+
};
|
|
59
|
+
}, [updateDeviceInfo]);
|
|
60
|
+
return deviceInfo;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// src/components/Apps/DeviceInfoApp/DeviceInfoApp.module.css
|
|
64
|
+
var DeviceInfoApp_default = {};
|
|
65
|
+
var DeviceInfoApp = ({ window: win, notifyReady }) => {
|
|
66
|
+
const device = useDeviceDetection();
|
|
67
|
+
const dimensions = chunk4OH5RPSQ_cjs.useAdaptiveDimensions();
|
|
68
|
+
const viewportWidth = chunk6QOUYSEE_cjs.useDesktopStore((state) => state.viewportWidth);
|
|
69
|
+
const viewportHeight = chunk6QOUYSEE_cjs.useDesktopStore((state) => state.viewportHeight);
|
|
70
|
+
const setViewportSize = chunk6QOUYSEE_cjs.useDesktopStore((state) => state.setViewportSize);
|
|
71
|
+
react.useEffect(() => {
|
|
72
|
+
notifyReady?.({});
|
|
73
|
+
}, [notifyReady]);
|
|
74
|
+
react.useEffect(() => {
|
|
75
|
+
const handleResize = () => {
|
|
76
|
+
setViewportSize(window.innerWidth, window.innerHeight);
|
|
77
|
+
};
|
|
78
|
+
handleResize();
|
|
79
|
+
window.addEventListener("resize", handleResize);
|
|
80
|
+
return () => window.removeEventListener("resize", handleResize);
|
|
81
|
+
}, [setViewportSize]);
|
|
82
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: DeviceInfoApp_default.container, "data-windowid": win?.id, children: [
|
|
83
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Paper, { p: "sm", shadow: "sm", withBorder: true, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Stack, { gap: "xs", children: [
|
|
84
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Text, { fw: "bold", size: "sm", children: "Runtime Environment" }),
|
|
85
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
|
|
86
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "isDocker:" }),
|
|
87
|
+
" ",
|
|
88
|
+
String(chunkZ5YGWL65_cjs.isDocker())
|
|
89
|
+
] }),
|
|
90
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
|
|
91
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "isDev:" }),
|
|
92
|
+
" ",
|
|
93
|
+
String(chunkZ5YGWL65_cjs.isDev())
|
|
94
|
+
] })
|
|
95
|
+
] }) }),
|
|
96
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Paper, { p: "sm", shadow: "sm", withBorder: true, mt: "sm", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Stack, { gap: "xs", children: [
|
|
97
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Text, { fw: "bold", size: "sm", children: "Device Detection" }),
|
|
98
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
|
|
99
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "isMobile:" }),
|
|
100
|
+
" ",
|
|
101
|
+
String(device.isMobile)
|
|
102
|
+
] }),
|
|
103
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
|
|
104
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "isTablet:" }),
|
|
105
|
+
" ",
|
|
106
|
+
String(device.isTablet)
|
|
107
|
+
] }),
|
|
108
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
|
|
109
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "isDesktop:" }),
|
|
110
|
+
" ",
|
|
111
|
+
String(device.isDesktop)
|
|
112
|
+
] }),
|
|
113
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
|
|
114
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "isPortrait:" }),
|
|
115
|
+
" ",
|
|
116
|
+
String(device.isPortrait)
|
|
117
|
+
] }),
|
|
118
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
|
|
119
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "shouldShowWarning:" }),
|
|
120
|
+
" ",
|
|
121
|
+
String(device.shouldShowWarning)
|
|
122
|
+
] }),
|
|
123
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
|
|
124
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "viewportWidth:" }),
|
|
125
|
+
" ",
|
|
126
|
+
viewportWidth,
|
|
127
|
+
"px"
|
|
128
|
+
] }),
|
|
129
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
|
|
130
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "viewportHeight:" }),
|
|
131
|
+
" ",
|
|
132
|
+
viewportHeight,
|
|
133
|
+
"px"
|
|
134
|
+
] }),
|
|
135
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
|
|
136
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "defaultWidth:" }),
|
|
137
|
+
" ",
|
|
138
|
+
dimensions.defaultWidth,
|
|
139
|
+
"px"
|
|
140
|
+
] }),
|
|
141
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
|
|
142
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "defaultHeight:" }),
|
|
143
|
+
" ",
|
|
144
|
+
dimensions.defaultHeight,
|
|
145
|
+
"px"
|
|
146
|
+
] }),
|
|
147
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
|
|
148
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "minWidth:" }),
|
|
149
|
+
" ",
|
|
150
|
+
dimensions.minWidth,
|
|
151
|
+
"px"
|
|
152
|
+
] }),
|
|
153
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkE55VXNLK_cjs.Text, { size: "xs", children: [
|
|
154
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkE55VXNLK_cjs.Code, { children: "minHeight:" }),
|
|
155
|
+
" ",
|
|
156
|
+
dimensions.minHeight,
|
|
157
|
+
"px"
|
|
158
|
+
] })
|
|
159
|
+
] }) })
|
|
160
|
+
] });
|
|
161
|
+
};
|
|
162
|
+
var DeviceInfoApp_default2 = DeviceInfoApp;
|
|
163
|
+
|
|
164
|
+
exports.DeviceInfoApp_default = DeviceInfoApp_default2;
|
|
165
|
+
exports.useDeviceDetection = useDeviceDetection;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
// src/components/Apps/StorybookApp/StorybookApp.module.css
|
|
4
|
+
var StorybookApp_default = {};
|
|
5
|
+
var STORYBOOK_URL = "https://frannunpal.github.io/storybook/";
|
|
6
|
+
var StorybookApp = () => /* @__PURE__ */ jsx(
|
|
7
|
+
"iframe",
|
|
8
|
+
{
|
|
9
|
+
src: STORYBOOK_URL,
|
|
10
|
+
className: StorybookApp_default.frame,
|
|
11
|
+
title: "Storybook",
|
|
12
|
+
"aria-label": "Storybook component explorer"
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
var StorybookApp_default2 = StorybookApp;
|
|
16
|
+
|
|
17
|
+
export { StorybookApp_default2 as StorybookApp_default };
|