your-ai-workflow-firebase-os 1.2.20 → 1.2.21
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/dist/{ContactPopup-B666UTn5.cjs → ContactPopup-5mXFBqTs.cjs} +1 -1
- package/dist/{ContactPopup-QbqZ8VJs.js → ContactPopup-D0Fb80uS.js} +1 -1
- package/dist/renderer.cjs.js +1 -1
- package/dist/renderer.es.js +1 -1
- package/dist/your-ai-workflow-firebase-os.cjs.js +35 -35
- package/dist/your-ai-workflow-firebase-os.css +1 -1
- package/dist/your-ai-workflow-firebase-os.es.js +4029 -2588
- package/package.json +1 -1
- package/src/pages/PagesAdmin.tsx +143 -25
- package/src/pages/StorageAdmin.tsx +8 -8
- package/src/pages/ThemeAdmin.tsx +15 -0
- package/src/templates/AdminPageTemplate.tsx +500 -111
- package/src/templates/PrivatePageTemplate.tsx +440 -59
- package/src/templates/SharedPageTemplate.tsx +432 -38
- package/src/templates/TemplateBoard.tsx +17 -8
- package/src/templates/TemplateCalendar.tsx +9 -4
- package/src/templates/TemplateTable.tsx +10 -1
|
@@ -119,14 +119,19 @@ export function TemplateCalendar({
|
|
|
119
119
|
const [userProfile, setUserProfile] = useState<any>(null);
|
|
120
120
|
const [authReady, setAuthReady] = useState(false);
|
|
121
121
|
|
|
122
|
-
// 12/24h toggle
|
|
122
|
+
// 12/24h toggle (per-calendar preference)
|
|
123
|
+
const timeFormatKey = `cal_24h_${eventsCollection}`;
|
|
123
124
|
const [use24Hour, setUse24Hour] = useState(() => {
|
|
124
|
-
try {
|
|
125
|
+
try {
|
|
126
|
+
const stored = localStorage.getItem(timeFormatKey);
|
|
127
|
+
if (stored !== null) return stored === 'true';
|
|
128
|
+
} catch {}
|
|
129
|
+
return defaultTimeFormat === '24h';
|
|
125
130
|
});
|
|
126
131
|
const handleToggle24Hour = () => {
|
|
127
132
|
const next = !use24Hour;
|
|
128
133
|
setUse24Hour(next);
|
|
129
|
-
try { localStorage.setItem(
|
|
134
|
+
try { localStorage.setItem(timeFormatKey, String(next)); } catch {}
|
|
130
135
|
};
|
|
131
136
|
|
|
132
137
|
useEffect(() => {
|
|
@@ -768,7 +773,7 @@ export function TemplateCalendar({
|
|
|
768
773
|
<ConfirmModal
|
|
769
774
|
isOpen={!!confirmDeleteEvent}
|
|
770
775
|
title="Confirm Deletion"
|
|
771
|
-
message={<>Are you
|
|
776
|
+
message={<>Are you sure you want to delete <strong className="text-foreground block my-0.5 text-left overflow-hidden text-ellipsis whitespace-nowrap max-w-full">{confirmDeleteEvent?.title}</strong> This action is permanent.</>}
|
|
772
777
|
onConfirm={handleDeleteEvent}
|
|
773
778
|
onCancel={() => { setConfirmDeleteEvent(null); }}
|
|
774
779
|
isProcessing={isDeleting}
|
|
@@ -279,7 +279,16 @@ export function TemplateTable({
|
|
|
279
279
|
<ArrowLeft className="w-4 h-4" /> <span className="hidden sm:inline">Go Back</span>
|
|
280
280
|
</Link>
|
|
281
281
|
)}
|
|
282
|
-
{isTabMode &&
|
|
282
|
+
{isTabMode && (
|
|
283
|
+
<div className="flex-1 min-w-0">
|
|
284
|
+
<h2 className="text-xl font-extrabold text-foreground tracking-tight truncate">
|
|
285
|
+
{config?.tabTitle || config?.tabName || title}
|
|
286
|
+
</h2>
|
|
287
|
+
<p className="text-[13px] font-medium text-foreground/50 mt-1">
|
|
288
|
+
{tables.length} {tables.length === 1 ? 'table' : 'tables'}
|
|
289
|
+
</p>
|
|
290
|
+
</div>
|
|
291
|
+
)}
|
|
283
292
|
<div className="flex gap-2 shrink-0">
|
|
284
293
|
{showPrompt && (
|
|
285
294
|
<motion.button
|