@seliseblocks/genesis-os 4.0.1 → 4.0.3
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/CHANGELOG.md +6 -0
- package/dist/{blocks-app-layout.provider-NoJHvUfO.d.cts → blocks-app-layout.provider-C831nKua.d.cts} +1 -1
- package/dist/{blocks-app-layout.provider-B0h8Ynag.d.ts → blocks-app-layout.provider-CDK1FNn8.d.ts} +1 -1
- package/dist/{chunk-CTVKY3LO.js → chunk-GUT2OEFQ.js} +86 -28
- package/dist/chunk-GUT2OEFQ.js.map +1 -0
- package/dist/{chunk-4GXQNT77.js → chunk-JJVH37IV.js} +386 -341
- package/dist/chunk-JJVH37IV.js.map +1 -0
- package/dist/{chunk-K2HI6ZDD.cjs → chunk-MLXV2TTM.cjs} +412 -367
- package/dist/chunk-MLXV2TTM.cjs.map +1 -0
- package/dist/{chunk-GEPWXPS7.cjs → chunk-UBF3PJTH.cjs} +86 -27
- package/dist/chunk-UBF3PJTH.cjs.map +1 -0
- package/dist/components/index.cjs +330 -330
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +2 -2
- package/dist/hooks/index.cjs +42 -38
- package/dist/hooks/index.d.cts +11 -4
- package/dist/hooks/index.d.ts +11 -4
- package/dist/hooks/index.js +1 -1
- package/dist/index.cjs +383 -379
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/layouts/index.cjs +9 -9
- package/dist/layouts/index.js +2 -2
- package/dist/lib/index.d.cts +2 -2
- package/dist/lib/index.d.ts +2 -2
- package/dist/pages/index.cjs +7 -7
- package/dist/pages/index.js +2 -2
- package/dist/providers/index.d.cts +2 -2
- package/dist/providers/index.d.ts +2 -2
- package/dist/{runtime-env-czBfLEUX.d.cts → runtime-env-BdtgvU0N.d.cts} +1 -1
- package/dist/{runtime-env-Ddi8Vo0I.d.ts → runtime-env-ByALSfkR.d.ts} +1 -1
- package/dist/{runtime.types-DO4gvqoG.d.cts → runtime.types-DfALkK5X.d.cts} +1 -1
- package/dist/{runtime.types-DO4gvqoG.d.ts → runtime.types-DfALkK5X.d.ts} +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-4GXQNT77.js.map +0 -1
- package/dist/chunk-CTVKY3LO.js.map +0 -1
- package/dist/chunk-GEPWXPS7.cjs.map +0 -1
- package/dist/chunk-K2HI6ZDD.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { refractor } from './chunk-FGY7QM3Y.js';
|
|
2
|
-
import { usePopoverWidth, useBlocksAppConfigStore, initiateService, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, notificationService, useLogo, useInitiateRedirect, useIcon, useGetNotifications, useMarkAsRead, useMarkAllAsRead, usePrefetchRedirect } from './chunk-
|
|
2
|
+
import { usePopoverWidth, useBlocksAppConfigStore, initiateService, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, notificationService, useLogo, useLogin, useInitiateRedirect, useIcon, useGetNotifications, useMarkAsRead, useMarkAllAsRead, usePrefetchRedirect } from './chunk-GUT2OEFQ.js';
|
|
3
3
|
import { showErrorToast, getForwardedToPath, formatFullDate, getProjectBlocksApiUrl, formatDate, debounce, deepEqual, showSuccessToast, isErrorWithErrors, getServiceBaseUrl, getServiceSwaggerUrl } from './chunk-M4AKVWL4.js';
|
|
4
4
|
import { SidebarContext, DashboardLayoutProvider } from './chunk-CC33UJZK.js';
|
|
5
5
|
import { useIsMobile, useIsActiveMenu, useFilteredMenus } from './chunk-NF54AHIF.js';
|
|
@@ -583,7 +583,12 @@ var SidebarProvider = React8.forwardRef(
|
|
|
583
583
|
...style
|
|
584
584
|
},
|
|
585
585
|
className: cn(
|
|
586
|
-
"group/sidebar-wrapper has-data-
|
|
586
|
+
"group/sidebar-wrapper has-[[data-variant=inset]]:bg-sidebar flex min-h-svh w-full",
|
|
587
|
+
// NOTE: Tailwind v3 arbitrary-variant syntax `has-[[data-variant=inset]]` is required
|
|
588
|
+
// here. The v4 shorthand `has-data-[variant=inset]` was introduced in commit 25cdbfc
|
|
589
|
+
// but does not resolve in v3 consumers (v3 does not parse `has-data-[...]` selectors),
|
|
590
|
+
// so the inset variant background rule goes ungenerated. Keep the v3 syntax until all
|
|
591
|
+
// consumers ship v4.
|
|
587
592
|
className
|
|
588
593
|
),
|
|
589
594
|
ref,
|
|
@@ -656,7 +661,13 @@ var Sidebar = React8.forwardRef(
|
|
|
656
661
|
"relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear",
|
|
657
662
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
658
663
|
"group-data-[side=right]:rotate-180",
|
|
659
|
-
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(
|
|
664
|
+
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : (
|
|
665
|
+
// NOTE: Tailwind v3 arbitrary-value syntax is required here. The v4 form
|
|
666
|
+
// `calc(var(--sidebar-width-icon)+(--spacing(4)))` was introduced in commit 25cdbfc
|
|
667
|
+
// but `(--spacing(4))` is not parsed by the v3 compiler, so the floating/inset
|
|
668
|
+
// panel gap width rule goes ungenerated in v3 consumers.
|
|
669
|
+
"group-data-[collapsible=icon]:w-[--sidebar-width-icon]"
|
|
670
|
+
)
|
|
660
671
|
)
|
|
661
672
|
}
|
|
662
673
|
),
|
|
@@ -667,7 +678,11 @@ var Sidebar = React8.forwardRef(
|
|
|
667
678
|
"fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
668
679
|
side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
669
680
|
// Adjust the padding for floating and inset variants.
|
|
670
|
-
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(
|
|
681
|
+
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : (
|
|
682
|
+
// NOTE: Same v3 arbitrary-value syntax requirement as the gap div above
|
|
683
|
+
// (see comment there); v4 `(--spacing(...))` does not resolve in v3 consumers.
|
|
684
|
+
"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l"
|
|
685
|
+
),
|
|
671
686
|
className
|
|
672
687
|
),
|
|
673
688
|
...props,
|
|
@@ -5908,7 +5923,7 @@ var Utilities_default = 'data:image/svg+xml,<svg width="64" height="64" viewBox=
|
|
|
5908
5923
|
// src/components/common/app-switcher/app-switcher.constant.ts
|
|
5909
5924
|
var APP_SWITCHER_DATA = [
|
|
5910
5925
|
{
|
|
5911
|
-
|
|
5926
|
+
id: "blocks-iam",
|
|
5912
5927
|
label: "IAM",
|
|
5913
5928
|
description: "Identity & Access",
|
|
5914
5929
|
url: window.process?.env.BLOCKS_IAM_BASE_URL || "",
|
|
@@ -5920,7 +5935,7 @@ var APP_SWITCHER_DATA = [
|
|
|
5920
5935
|
isDisabled: false
|
|
5921
5936
|
},
|
|
5922
5937
|
{
|
|
5923
|
-
|
|
5938
|
+
id: "blocks-localization",
|
|
5924
5939
|
label: "Localization",
|
|
5925
5940
|
description: "Localization",
|
|
5926
5941
|
url: window.process?.env.BLOCKS_LOCALIZATION_BASE_URL || "",
|
|
@@ -5932,7 +5947,7 @@ var APP_SWITCHER_DATA = [
|
|
|
5932
5947
|
isDisabled: false
|
|
5933
5948
|
},
|
|
5934
5949
|
{
|
|
5935
|
-
|
|
5950
|
+
id: "blocks-agents",
|
|
5936
5951
|
label: "Agents",
|
|
5937
5952
|
description: "AI Platform",
|
|
5938
5953
|
url: window.process?.env.BLOCKS_AGENTS_BASE_URL || "",
|
|
@@ -5944,7 +5959,7 @@ var APP_SWITCHER_DATA = [
|
|
|
5944
5959
|
isDisabled: false
|
|
5945
5960
|
},
|
|
5946
5961
|
{
|
|
5947
|
-
|
|
5962
|
+
id: "blocks-data",
|
|
5948
5963
|
label: "Data",
|
|
5949
5964
|
description: "Data Integration",
|
|
5950
5965
|
url: window.process?.env.BLOCKS_DATA_BASE_URL || "",
|
|
@@ -5956,7 +5971,7 @@ var APP_SWITCHER_DATA = [
|
|
|
5956
5971
|
isDisabled: false
|
|
5957
5972
|
},
|
|
5958
5973
|
{
|
|
5959
|
-
|
|
5974
|
+
id: "blocks-os",
|
|
5960
5975
|
label: "OS",
|
|
5961
5976
|
description: "Operating System",
|
|
5962
5977
|
url: window.process?.env.BLOCKS_OS_BASE_URL || "",
|
|
@@ -5968,7 +5983,7 @@ var APP_SWITCHER_DATA = [
|
|
|
5968
5983
|
isDisabled: false
|
|
5969
5984
|
},
|
|
5970
5985
|
{
|
|
5971
|
-
|
|
5986
|
+
id: "blocks-utilities",
|
|
5972
5987
|
label: "Utilities",
|
|
5973
5988
|
description: "Utility Tools",
|
|
5974
5989
|
url: window.process?.env.BLOCKS_UTILITIES_BASE_URL || "",
|
|
@@ -5980,7 +5995,7 @@ var APP_SWITCHER_DATA = [
|
|
|
5980
5995
|
isDisabled: false
|
|
5981
5996
|
},
|
|
5982
5997
|
{
|
|
5983
|
-
|
|
5998
|
+
id: "blocks-logic",
|
|
5984
5999
|
label: "Logic",
|
|
5985
6000
|
description: "Business Logic",
|
|
5986
6001
|
url: window.process?.env.BLOCKS_LOGIC_BASE_URL || "",
|
|
@@ -5992,7 +6007,7 @@ var APP_SWITCHER_DATA = [
|
|
|
5992
6007
|
isDisabled: false
|
|
5993
6008
|
},
|
|
5994
6009
|
{
|
|
5995
|
-
|
|
6010
|
+
id: "blocks-monitor",
|
|
5996
6011
|
label: "Monitor",
|
|
5997
6012
|
description: "Monitoring & Logs",
|
|
5998
6013
|
url: window.process?.env.BLOCKS_MONITOR_BASE_URL || "",
|
|
@@ -6004,7 +6019,7 @@ var APP_SWITCHER_DATA = [
|
|
|
6004
6019
|
isDisabled: false
|
|
6005
6020
|
},
|
|
6006
6021
|
{
|
|
6007
|
-
|
|
6022
|
+
id: "blocks-release",
|
|
6008
6023
|
label: "Release",
|
|
6009
6024
|
description: "CI/CD & Releases",
|
|
6010
6025
|
url: window.process?.env.BLOCKS_RELEASE_BASE_URL || "",
|
|
@@ -6016,7 +6031,7 @@ var APP_SWITCHER_DATA = [
|
|
|
6016
6031
|
isDisabled: false
|
|
6017
6032
|
},
|
|
6018
6033
|
{
|
|
6019
|
-
|
|
6034
|
+
id: "blocks-studio",
|
|
6020
6035
|
label: "Studio",
|
|
6021
6036
|
description: "Development Platform",
|
|
6022
6037
|
url: window.process?.env.BLOCKS_STUDIO_BASE_URL || "",
|
|
@@ -6028,9 +6043,24 @@ var APP_SWITCHER_DATA = [
|
|
|
6028
6043
|
isDisabled: false
|
|
6029
6044
|
}
|
|
6030
6045
|
];
|
|
6031
|
-
var
|
|
6032
|
-
|
|
6046
|
+
var parseAllowedServices = (raw) => {
|
|
6047
|
+
const trimmed = raw.trim();
|
|
6048
|
+
if (!trimmed) return null;
|
|
6049
|
+
return new Set(
|
|
6050
|
+
trimmed.split(",").map((entry) => entry.trim()).filter(Boolean)
|
|
6051
|
+
);
|
|
6052
|
+
};
|
|
6053
|
+
var allowedServiceIds = parseAllowedServices(
|
|
6054
|
+
getRuntimeEnv("BLOCKS_ALLOWED_SERVICES")
|
|
6033
6055
|
);
|
|
6056
|
+
var isAppAllowed = (app) => {
|
|
6057
|
+
if (!allowedServiceIds) return true;
|
|
6058
|
+
return allowedServiceIds.has(app.id);
|
|
6059
|
+
};
|
|
6060
|
+
var filteredAppSwitcherData = APP_SWITCHER_DATA.filter((app) => {
|
|
6061
|
+
if (!isAppAllowed(app)) return false;
|
|
6062
|
+
return typeof app.isDisabled === "function" ? !app.isDisabled() : !app.isDisabled;
|
|
6063
|
+
});
|
|
6034
6064
|
var AppIcon = ({ icon, label }) => {
|
|
6035
6065
|
return /* @__PURE__ */ jsx("div", { className: "flex h-12 w-12 items-center justify-center overflow-hidden", children: typeof icon === "string" ? /* @__PURE__ */ jsx("img", { src: icon, alt: label, className: "h-full w-full object-contain" }) : icon });
|
|
6036
6066
|
};
|
|
@@ -6065,7 +6095,7 @@ var AppSwitcher = ({ forwardedTo }) => {
|
|
|
6065
6095
|
forwardedTo: resolvedForwardedTo
|
|
6066
6096
|
}).catch((err) => {
|
|
6067
6097
|
console.error(
|
|
6068
|
-
`[AppSwitcher] Failed to get redirect URL for ${app.
|
|
6098
|
+
`[AppSwitcher] Failed to get redirect URL for ${app.id}:`,
|
|
6069
6099
|
err
|
|
6070
6100
|
);
|
|
6071
6101
|
return null;
|
|
@@ -6073,7 +6103,7 @@ var AppSwitcher = ({ forwardedTo }) => {
|
|
|
6073
6103
|
[resolvedForwardedTo]
|
|
6074
6104
|
);
|
|
6075
6105
|
const filteredApps = useMemo(
|
|
6076
|
-
() => filteredAppSwitcherData.filter((app) => app.
|
|
6106
|
+
() => filteredAppSwitcherData.filter((app) => app.id !== config.name),
|
|
6077
6107
|
[config.name]
|
|
6078
6108
|
);
|
|
6079
6109
|
useEffect(() => {
|
|
@@ -6083,7 +6113,7 @@ var AppSwitcher = ({ forwardedTo }) => {
|
|
|
6083
6113
|
filteredApps.forEach((app, idx) => {
|
|
6084
6114
|
getRedirectUrl(app).then((redirectUrl) => {
|
|
6085
6115
|
if (redirectUrl) {
|
|
6086
|
-
setRedirectUrls((prev) => ({ ...prev, [app.
|
|
6116
|
+
setRedirectUrls((prev) => ({ ...prev, [app.id]: redirectUrl }));
|
|
6087
6117
|
}
|
|
6088
6118
|
}).catch((error) => {
|
|
6089
6119
|
console.error("Error getting redirect URL:", error);
|
|
@@ -6097,8 +6127,8 @@ var AppSwitcher = ({ forwardedTo }) => {
|
|
|
6097
6127
|
const blocksApps = useMemo(() => {
|
|
6098
6128
|
return filteredApps.map((app) => ({
|
|
6099
6129
|
...app,
|
|
6100
|
-
initiateUrl: redirectUrls[app.
|
|
6101
|
-
isLoading: !redirectUrls[app.
|
|
6130
|
+
initiateUrl: redirectUrls[app.id] ?? app.initiateUrl,
|
|
6131
|
+
isLoading: !redirectUrls[app.id]
|
|
6102
6132
|
})).sort((a, b) => a.label.localeCompare(b.label));
|
|
6103
6133
|
}, [redirectUrls, filteredApps]);
|
|
6104
6134
|
return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
@@ -6122,7 +6152,7 @@ var AppSwitcher = ({ forwardedTo }) => {
|
|
|
6122
6152
|
className: "w-60 overflow-hidden rounded-2xl p-0 shadow-xl",
|
|
6123
6153
|
children: blocksApps.length > 0 && /* @__PURE__ */ jsxs("div", { className: "bg-muted/50 border-t px-3 pb-4 pt-3", children: [
|
|
6124
6154
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground mb-2 px-1 text-[13px] font-semibold", children: "SELISE Blocks" }),
|
|
6125
|
-
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-3", children: blocksApps.map((app) => /* @__PURE__ */ jsx(AppTile, { app, isLoading: app.isLoading }, app.
|
|
6155
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-3", children: blocksApps.map((app) => /* @__PURE__ */ jsx(AppTile, { app, isLoading: app.isLoading }, app.id)) })
|
|
6126
6156
|
] })
|
|
6127
6157
|
}
|
|
6128
6158
|
)
|
|
@@ -7199,244 +7229,6 @@ var LoginHeader = ({
|
|
|
7199
7229
|
] });
|
|
7200
7230
|
};
|
|
7201
7231
|
|
|
7202
|
-
// src/pages/login/login.constant.ts
|
|
7203
|
-
var BLOCKS_PRODUCTS = [
|
|
7204
|
-
{
|
|
7205
|
-
name: "blocks-os",
|
|
7206
|
-
appName: "blocks OS",
|
|
7207
|
-
badge: "Platform Core",
|
|
7208
|
-
tagline: "Enterprise application operating system.",
|
|
7209
|
-
descriptionTitle: "Your application control plane",
|
|
7210
|
-
keywords: ["secure", "isolated", "auditable"],
|
|
7211
|
-
shortDescription: "A secure plane for your application environment, secrets, and sensitive configuration.",
|
|
7212
|
-
description: "Blocks OS is a secure, isolated, and fully auditable tenant-level core operating layer. It handles multi-tenant isolation, secrets management, audit trails, and sensitive log and trace handling while automatically logging every authentication decision, data access event, and configuration change.",
|
|
7213
|
-
featureChips: [
|
|
7214
|
-
"Multi-tenant isolation",
|
|
7215
|
-
"Scoped secrets",
|
|
7216
|
-
"Audit trails",
|
|
7217
|
-
"Log & trace handling",
|
|
7218
|
-
"Role-based access"
|
|
7219
|
-
],
|
|
7220
|
-
url: "",
|
|
7221
|
-
cta: "Visit blocks OS"
|
|
7222
|
-
},
|
|
7223
|
-
{
|
|
7224
|
-
name: "blocks-localization",
|
|
7225
|
-
appName: "blocks Localization",
|
|
7226
|
-
badge: "i18n",
|
|
7227
|
-
tagline: "Localization infrastructure for modern teams.",
|
|
7228
|
-
descriptionTitle: "Translate without the overhead",
|
|
7229
|
-
keywords: [
|
|
7230
|
-
"multilingual",
|
|
7231
|
-
"contextual",
|
|
7232
|
-
"automated",
|
|
7233
|
-
"instant",
|
|
7234
|
-
"scalable"
|
|
7235
|
-
],
|
|
7236
|
-
shortDescription: "Manage multilingual interfaces with AI translation, bulk key operations, and a real-time browser extension behind secure RBAC.",
|
|
7237
|
-
description: "Blocks Localization is a key-based and context-aware translation service. Manage multilingual interfaces, edit translations in-browser in real time through the extension, and run bulk operations across thousands of keys.",
|
|
7238
|
-
featureChips: [
|
|
7239
|
-
"Browser extension",
|
|
7240
|
-
"Bulk key operations",
|
|
7241
|
-
"Context-aware translations",
|
|
7242
|
-
"Real-time publishing"
|
|
7243
|
-
],
|
|
7244
|
-
url: "",
|
|
7245
|
-
cta: "Visit blocks Localization"
|
|
7246
|
-
},
|
|
7247
|
-
{
|
|
7248
|
-
name: "blocks-iam",
|
|
7249
|
-
appName: "blocks IAM",
|
|
7250
|
-
badge: "Identity",
|
|
7251
|
-
tagline: "Enterprise identity, handled end-to-end.",
|
|
7252
|
-
descriptionTitle: "One identity layer for every app",
|
|
7253
|
-
keywords: ["secure", "unified", "seamless"],
|
|
7254
|
-
shortDescription: "Unified identity and access management with SSO, MFA, role-based controls, and external IdP integration.",
|
|
7255
|
-
description: "Blocks IAM is the unified identity layer for your entire application ecosystem. Configure enterprise SSO, connect external identity providers like Keycloak, Okta, or Azure AD, and enforce MFA from a single secure dashboard.",
|
|
7256
|
-
featureChips: [
|
|
7257
|
-
"SSO & IdP integration",
|
|
7258
|
-
"Multi-factor auth",
|
|
7259
|
-
"Role-based access",
|
|
7260
|
-
"CAPTCHA & client credentials",
|
|
7261
|
-
"Magic links"
|
|
7262
|
-
],
|
|
7263
|
-
url: "",
|
|
7264
|
-
cta: "Visit blocks IAM"
|
|
7265
|
-
},
|
|
7266
|
-
{
|
|
7267
|
-
name: "blocks-data",
|
|
7268
|
-
appName: "blocks Data",
|
|
7269
|
-
badge: "Secure Storage",
|
|
7270
|
-
tagline: "Instant APIs over any data operations.",
|
|
7271
|
-
descriptionTitle: "Your data, API-ready",
|
|
7272
|
-
keywords: [
|
|
7273
|
-
"queryable",
|
|
7274
|
-
"structured",
|
|
7275
|
-
"validated",
|
|
7276
|
-
"versioned",
|
|
7277
|
-
"accessible"
|
|
7278
|
-
],
|
|
7279
|
-
shortDescription: "Instant GraphQL APIs over managed or BYO databases with visual schema design, access control, and multi-provider object storage.",
|
|
7280
|
-
description: "Blocks Data gives you instant GraphQL endpoints over managed or bring-your-own databases. Define schemas visually, enforce column-level validation and access control, and perform CRUD operations through the Data Playground.",
|
|
7281
|
-
featureChips: [
|
|
7282
|
-
"GraphQL APIs",
|
|
7283
|
-
"Column-level access",
|
|
7284
|
-
"CRUD playground",
|
|
7285
|
-
"Multi-provider storage",
|
|
7286
|
-
"Bring your own database"
|
|
7287
|
-
],
|
|
7288
|
-
url: "",
|
|
7289
|
-
cta: "Visit blocks Data"
|
|
7290
|
-
},
|
|
7291
|
-
{
|
|
7292
|
-
name: "blocks-logic",
|
|
7293
|
-
appName: "blocks Logic",
|
|
7294
|
-
badge: "Worflow Engine",
|
|
7295
|
-
tagline: "Automate without writing code.",
|
|
7296
|
-
descriptionTitle: "Build workflows on a canvas",
|
|
7297
|
-
keywords: ["visual", "automated", "event-driven", "codeless"],
|
|
7298
|
-
shortDescription: "Orchestrate multi-step automations visually with drag-and-drop triggers, AI nodes, and external API integrations without coding.",
|
|
7299
|
-
description: "Blocks Logic is a visual workflow engine for orchestrating complex operations without code. Drag triggers, conditions, and actions onto a canvas, fire workflows through webhooks or email, execute AI reasoning nodes, and push data through HTTP requests.",
|
|
7300
|
-
featureChips: [
|
|
7301
|
-
"Drag-and-drop builder",
|
|
7302
|
-
"Webhook & email triggers",
|
|
7303
|
-
"AI agent node",
|
|
7304
|
-
"HTTP & database actions",
|
|
7305
|
-
"Conditional branching"
|
|
7306
|
-
],
|
|
7307
|
-
url: "",
|
|
7308
|
-
cta: "Visit blocks Logic"
|
|
7309
|
-
},
|
|
7310
|
-
{
|
|
7311
|
-
name: "blocks-studio",
|
|
7312
|
-
appName: "blocks Studio",
|
|
7313
|
-
badge: "AI Studio",
|
|
7314
|
-
tagline: "Generate AI-powered apps within Blocks context.",
|
|
7315
|
-
descriptionTitle: "Generate anything with AI",
|
|
7316
|
-
keywords: [
|
|
7317
|
-
"intelligent",
|
|
7318
|
-
"generative",
|
|
7319
|
-
"contextual",
|
|
7320
|
-
"instant",
|
|
7321
|
-
"adaptive"
|
|
7322
|
-
],
|
|
7323
|
-
shortDescription: "Generate working applications from natural language prompts within the Blocks context.",
|
|
7324
|
-
description: "Blocks Studio is an AI engine that transforms natural language prompts into working applications and reports within the Blocks ecosystem. It uses the same agent infrastructure to convert prompts into functional interfaces.",
|
|
7325
|
-
featureChips: [
|
|
7326
|
-
"Natural language prompts",
|
|
7327
|
-
"AI app generation",
|
|
7328
|
-
"Blocks-aware context",
|
|
7329
|
-
"Instant prototyping",
|
|
7330
|
-
"Internal tool scaffolding"
|
|
7331
|
-
],
|
|
7332
|
-
url: "",
|
|
7333
|
-
cta: "Visit blocks Studio"
|
|
7334
|
-
},
|
|
7335
|
-
{
|
|
7336
|
-
name: "blocks-agents",
|
|
7337
|
-
appName: "Blocks Agents",
|
|
7338
|
-
badge: "AI Gateway",
|
|
7339
|
-
tagline: "Reasoning agents for every frontend.",
|
|
7340
|
-
descriptionTitle: "AI agents that understand your product",
|
|
7341
|
-
keywords: [
|
|
7342
|
-
"reasoning",
|
|
7343
|
-
"autonomous",
|
|
7344
|
-
"embeddable",
|
|
7345
|
-
"intelligent",
|
|
7346
|
-
"adaptive"
|
|
7347
|
-
],
|
|
7348
|
-
shortDescription: "Create and deploy AI agents with RAG knowledge bases, custom LLM support, and embeddable script tags.",
|
|
7349
|
-
description: "Blocks Agents lets you create, configure, and deploy intelligent assistants without complex technical setup. Equip agents with RAG-powered knowledge bases, connect custom LLMs through MCP, define tools and guardrails, and embed agents into any frontend with a single script tag.",
|
|
7350
|
-
featureChips: [
|
|
7351
|
-
"RAG knowledge bases",
|
|
7352
|
-
"Custom LLM & MCP",
|
|
7353
|
-
"Embeddable script tag",
|
|
7354
|
-
"Standard APIs"
|
|
7355
|
-
],
|
|
7356
|
-
url: "",
|
|
7357
|
-
cta: "Visit Blocks Agents"
|
|
7358
|
-
},
|
|
7359
|
-
{
|
|
7360
|
-
name: "blocks-release",
|
|
7361
|
-
appName: "blocks Release",
|
|
7362
|
-
badge: "CI/CD",
|
|
7363
|
-
tagline: "Secure releases with faster pace.",
|
|
7364
|
-
descriptionTitle: "Deployment with built-in guardrails",
|
|
7365
|
-
keywords: ["secure", "compliant", "automated", "fast"],
|
|
7366
|
-
shortDescription: "Manage end-to-end deployment with git-based CI/CD, branch-environment mapping, and automated security scanning for ISO compliance.",
|
|
7367
|
-
description: "Blocks Release provides end-to-end deployment infrastructure with security and compliance built in. Connect your repositories and the platform handles builds, runtime, scaling, and observability automatically.",
|
|
7368
|
-
featureChips: [
|
|
7369
|
-
"Git-based deployment",
|
|
7370
|
-
"Branch-environment mapping",
|
|
7371
|
-
"SCA, SAST & DAST",
|
|
7372
|
-
"CI/CD pipelines",
|
|
7373
|
-
"ISO compliance"
|
|
7374
|
-
],
|
|
7375
|
-
url: "",
|
|
7376
|
-
cta: "Visit blocks Release"
|
|
7377
|
-
},
|
|
7378
|
-
{
|
|
7379
|
-
name: "blocks-monitor",
|
|
7380
|
-
appName: "blocks Monitor",
|
|
7381
|
-
badge: "Uptime",
|
|
7382
|
-
tagline: "Full visibility from day one.",
|
|
7383
|
-
descriptionTitle: "Observability with zero integration time",
|
|
7384
|
-
keywords: ["observable", "traceable", "real-time", "intelligent"],
|
|
7385
|
-
shortDescription: "Get built-in observability with real-time logs, distributed tracing, usage metrics, and AI-assisted analysis. Zero setup required.",
|
|
7386
|
-
description: "Blocks Monitor delivers built-in observability without requiring external tooling or complex setup. Access real-time logs, distributed tracing, uptime monitoring, health checks, usage metrics, and AI-assisted diagnostics.",
|
|
7387
|
-
featureChips: [
|
|
7388
|
-
"Real-time logs with AI",
|
|
7389
|
-
"Distributed tracing",
|
|
7390
|
-
"Usage metrics",
|
|
7391
|
-
"Health monitoring",
|
|
7392
|
-
"Zero external tooling"
|
|
7393
|
-
],
|
|
7394
|
-
url: "",
|
|
7395
|
-
cta: "Visit blocks Monitor"
|
|
7396
|
-
},
|
|
7397
|
-
{
|
|
7398
|
-
name: "blocks-utilities",
|
|
7399
|
-
appName: "blocks Utilities",
|
|
7400
|
-
badge: "Toolkit",
|
|
7401
|
-
tagline: "Communication services for modern applications.",
|
|
7402
|
-
descriptionTitle: "Communication services, ready to use",
|
|
7403
|
-
keywords: ["reliable", "real-time", "automated", "scalable"],
|
|
7404
|
-
shortDescription: "Send branded emails, real-time notifications via SignalR, and secure magic links to power automated workflows.",
|
|
7405
|
-
description: "Blocks Utilities provides powerful communication services for your applications. Send branded emails, deliver real-time in-app notifications via SignalR, and create secure time-limited magic links\u2014both redirect and action-based\u2014to power automated workflows.",
|
|
7406
|
-
featureChips: [
|
|
7407
|
-
"Branded email",
|
|
7408
|
-
"Real-time notifications",
|
|
7409
|
-
"Redirect magic links",
|
|
7410
|
-
"Action magic links",
|
|
7411
|
-
"Workflow automation"
|
|
7412
|
-
],
|
|
7413
|
-
url: "",
|
|
7414
|
-
cta: "Visit blocks Utilities"
|
|
7415
|
-
}
|
|
7416
|
-
];
|
|
7417
|
-
var DEFAULT_BLOCKS_PRODUCTS = [
|
|
7418
|
-
{
|
|
7419
|
-
name: "blocks-os",
|
|
7420
|
-
appName: "blocks OS Platform",
|
|
7421
|
-
badge: "Platform Core",
|
|
7422
|
-
tagline: "Enterprise platform for secure, scalable applications",
|
|
7423
|
-
descriptionTitle: "Backends that are",
|
|
7424
|
-
keywords: ["observable", "intelligent", "scalable", "resilient", "secure"],
|
|
7425
|
-
shortDescription: "A secure plane for your application environment, secrets, and sensitive configuration.",
|
|
7426
|
-
description: "Blocks OS is a modern platform for building and deploying secure, scalable applications with built-in observability, AI capabilities, and comprehensive identity management. Focus on your application logic while Blocks OS handles infrastructure, auth, and ops.",
|
|
7427
|
-
featureChips: [
|
|
7428
|
-
"Authentication",
|
|
7429
|
-
"Secrets Management",
|
|
7430
|
-
"Configuration",
|
|
7431
|
-
"API Console",
|
|
7432
|
-
"Usage",
|
|
7433
|
-
"Logs & Tracing"
|
|
7434
|
-
],
|
|
7435
|
-
url: "",
|
|
7436
|
-
cta: "Visit blocks OS"
|
|
7437
|
-
}
|
|
7438
|
-
];
|
|
7439
|
-
|
|
7440
7232
|
// src/pages/login/login.styles.ts
|
|
7441
7233
|
var blocksLoginStyles = `
|
|
7442
7234
|
.blocksLogin-page {
|
|
@@ -7923,47 +7715,34 @@ var blocksLoginStyles = `
|
|
|
7923
7715
|
}
|
|
7924
7716
|
}
|
|
7925
7717
|
`;
|
|
7926
|
-
|
|
7927
|
-
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
return
|
|
7718
|
+
var hslToRgb = (hue, s, l) => {
|
|
7719
|
+
s /= 100;
|
|
7720
|
+
l /= 100;
|
|
7721
|
+
const k = (n) => (n + hue / 30) % 12;
|
|
7722
|
+
const a = s * Math.min(l, 1 - l);
|
|
7723
|
+
const f = (n) => l - a * Math.max(-1, Math.min(k(n) - 3, Math.min(9 - k(n), 1)));
|
|
7724
|
+
return [
|
|
7725
|
+
Math.round(f(0) * 255),
|
|
7726
|
+
Math.round(f(8) * 255),
|
|
7727
|
+
Math.round(f(4) * 255)
|
|
7728
|
+
];
|
|
7933
7729
|
};
|
|
7934
|
-
|
|
7935
|
-
name,
|
|
7936
|
-
onLogin,
|
|
7937
|
-
isLoading = false,
|
|
7938
|
-
eyebrow = "Blocks \xB7 Core Services",
|
|
7939
|
-
loginLabel = "Log in to your account",
|
|
7940
|
-
docsUrl = "https://docs.seliseblocks.com/",
|
|
7941
|
-
footerLink = { label: "Visit Blocks", url: "https://seliseblocks.com" },
|
|
7942
|
-
carouselItems
|
|
7943
|
-
}) => {
|
|
7944
|
-
const active = useMemo(() => {
|
|
7945
|
-
const products = carouselItems?.filter(isBlocksProduct) ?? DEFAULT_BLOCKS_PRODUCTS;
|
|
7946
|
-
return products.find((p) => p.name === name) ?? products[0];
|
|
7947
|
-
}, [name, carouselItems]);
|
|
7948
|
-
const otherProducts = useMemo(
|
|
7949
|
-
() => DEFAULT_BLOCKS_PRODUCTS.filter((p) => p.name !== active?.name),
|
|
7950
|
-
[active?.name]
|
|
7951
|
-
);
|
|
7952
|
-
const carouselSource = carouselItems ?? otherProducts;
|
|
7953
|
-
const [titleHead, titleTail] = splitAppName(active?.appName ?? "");
|
|
7954
|
-
const heroSubtitle = active?.tagline;
|
|
7955
|
-
const features = active?.featureChips;
|
|
7956
|
-
const canvasRef = useRef(null);
|
|
7730
|
+
function useAtmosphericCanvas(canvasRef) {
|
|
7957
7731
|
useEffect(() => {
|
|
7958
7732
|
const canvas = canvasRef.current;
|
|
7959
7733
|
if (!canvas) return;
|
|
7960
7734
|
const ctx = canvas.getContext("2d");
|
|
7961
7735
|
if (!ctx) return;
|
|
7962
|
-
|
|
7736
|
+
const rafHandles = /* @__PURE__ */ new Set();
|
|
7963
7737
|
let t = 0;
|
|
7964
7738
|
let dpr = window.devicePixelRatio || 1;
|
|
7965
7739
|
let w = 0;
|
|
7966
7740
|
let h = 0;
|
|
7741
|
+
const schedule = (cb) => {
|
|
7742
|
+
const handle = requestAnimationFrame(cb);
|
|
7743
|
+
rafHandles.add(handle);
|
|
7744
|
+
return handle;
|
|
7745
|
+
};
|
|
7967
7746
|
const resize = () => {
|
|
7968
7747
|
dpr = window.devicePixelRatio || 1;
|
|
7969
7748
|
w = canvas.width = Math.floor(window.innerWidth * dpr);
|
|
@@ -7972,18 +7751,6 @@ var BlocksLoginPage = ({
|
|
|
7972
7751
|
canvas.style.height = window.innerHeight + "px";
|
|
7973
7752
|
ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
|
|
7974
7753
|
};
|
|
7975
|
-
const hslToRgb = (hue, s, l) => {
|
|
7976
|
-
s /= 100;
|
|
7977
|
-
l /= 100;
|
|
7978
|
-
const k = (n) => (n + hue / 30) % 12;
|
|
7979
|
-
const a = s * Math.min(l, 1 - l);
|
|
7980
|
-
const f = (n) => l - a * Math.max(-1, Math.min(k(n) - 3, Math.min(9 - k(n), 1)));
|
|
7981
|
-
return [
|
|
7982
|
-
Math.round(f(0) * 255),
|
|
7983
|
-
Math.round(f(8) * 255),
|
|
7984
|
-
Math.round(f(4) * 255)
|
|
7985
|
-
];
|
|
7986
|
-
};
|
|
7987
7754
|
const draw = () => {
|
|
7988
7755
|
const time = t * 8e-3;
|
|
7989
7756
|
const baseHue = 185 + 15 * Math.sin(time);
|
|
@@ -8033,17 +7800,318 @@ var BlocksLoginPage = ({
|
|
|
8033
7800
|
ctx.fillStyle = g3;
|
|
8034
7801
|
ctx.fillRect(0, 0, w / dpr, h / dpr);
|
|
8035
7802
|
t++;
|
|
8036
|
-
|
|
7803
|
+
schedule(draw);
|
|
8037
7804
|
};
|
|
8038
7805
|
resize();
|
|
8039
7806
|
window.addEventListener("resize", resize);
|
|
8040
|
-
|
|
7807
|
+
schedule(draw);
|
|
8041
7808
|
return () => {
|
|
8042
|
-
cancelAnimationFrame(
|
|
7809
|
+
rafHandles.forEach((handle) => cancelAnimationFrame(handle));
|
|
7810
|
+
rafHandles.clear();
|
|
8043
7811
|
window.removeEventListener("resize", resize);
|
|
8044
7812
|
};
|
|
8045
|
-
}, []);
|
|
8046
|
-
|
|
7813
|
+
}, [canvasRef]);
|
|
7814
|
+
}
|
|
7815
|
+
|
|
7816
|
+
// src/pages/login/login.constant.ts
|
|
7817
|
+
var BLOCKS_PRODUCTS = [
|
|
7818
|
+
{
|
|
7819
|
+
name: "blocks-os",
|
|
7820
|
+
appName: "blocks OS",
|
|
7821
|
+
badge: "Platform Core",
|
|
7822
|
+
tagline: "Enterprise application operating system.",
|
|
7823
|
+
descriptionTitle: "Your application control plane",
|
|
7824
|
+
keywords: ["secure", "isolated", "auditable"],
|
|
7825
|
+
shortDescription: "A secure plane for your application environment, secrets, and sensitive configuration.",
|
|
7826
|
+
description: "Blocks OS is a secure, isolated, and fully auditable tenant-level core operating layer. It handles multi-tenant isolation, secrets management, audit trails, and sensitive log and trace handling while automatically logging every authentication decision, data access event, and configuration change.",
|
|
7827
|
+
featureChips: [
|
|
7828
|
+
"Multi-tenant isolation",
|
|
7829
|
+
"Scoped secrets",
|
|
7830
|
+
"Audit trails",
|
|
7831
|
+
"Log & trace handling",
|
|
7832
|
+
"Role-based access"
|
|
7833
|
+
],
|
|
7834
|
+
url: "",
|
|
7835
|
+
cta: "Visit blocks OS"
|
|
7836
|
+
},
|
|
7837
|
+
{
|
|
7838
|
+
name: "blocks-localization",
|
|
7839
|
+
appName: "blocks Localization",
|
|
7840
|
+
badge: "i18n",
|
|
7841
|
+
tagline: "Localization infrastructure for modern teams.",
|
|
7842
|
+
descriptionTitle: "Translate without the overhead",
|
|
7843
|
+
keywords: [
|
|
7844
|
+
"multilingual",
|
|
7845
|
+
"contextual",
|
|
7846
|
+
"automated",
|
|
7847
|
+
"instant",
|
|
7848
|
+
"scalable"
|
|
7849
|
+
],
|
|
7850
|
+
shortDescription: "Manage multilingual interfaces with AI translation, bulk key operations, and a real-time browser extension behind secure RBAC.",
|
|
7851
|
+
description: "Blocks Localization is a key-based and context-aware translation service. Manage multilingual interfaces, edit translations in-browser in real time through the extension, and run bulk operations across thousands of keys.",
|
|
7852
|
+
featureChips: [
|
|
7853
|
+
"Browser extension",
|
|
7854
|
+
"Bulk key operations",
|
|
7855
|
+
"Context-aware translations",
|
|
7856
|
+
"Real-time publishing"
|
|
7857
|
+
],
|
|
7858
|
+
url: "",
|
|
7859
|
+
cta: "Visit blocks Localization"
|
|
7860
|
+
},
|
|
7861
|
+
{
|
|
7862
|
+
name: "blocks-iam",
|
|
7863
|
+
appName: "blocks IAM",
|
|
7864
|
+
badge: "Identity",
|
|
7865
|
+
tagline: "Enterprise identity, handled end-to-end.",
|
|
7866
|
+
descriptionTitle: "One identity layer for every app",
|
|
7867
|
+
keywords: ["secure", "unified", "seamless"],
|
|
7868
|
+
shortDescription: "Unified identity and access management with SSO, MFA, role-based controls, and external IdP integration.",
|
|
7869
|
+
description: "Blocks IAM is the unified identity layer for your entire application ecosystem. Configure enterprise SSO, connect external identity providers like Keycloak, Okta, or Azure AD, and enforce MFA from a single secure dashboard.",
|
|
7870
|
+
featureChips: [
|
|
7871
|
+
"SSO & IdP integration",
|
|
7872
|
+
"Multi-factor auth",
|
|
7873
|
+
"Role-based access",
|
|
7874
|
+
"CAPTCHA & client credentials",
|
|
7875
|
+
"Magic links"
|
|
7876
|
+
],
|
|
7877
|
+
url: "",
|
|
7878
|
+
cta: "Visit blocks IAM"
|
|
7879
|
+
},
|
|
7880
|
+
{
|
|
7881
|
+
name: "blocks-data",
|
|
7882
|
+
appName: "blocks Data",
|
|
7883
|
+
badge: "Secure Storage",
|
|
7884
|
+
tagline: "Instant APIs over any data operations.",
|
|
7885
|
+
descriptionTitle: "Your data, API-ready",
|
|
7886
|
+
keywords: [
|
|
7887
|
+
"queryable",
|
|
7888
|
+
"structured",
|
|
7889
|
+
"validated",
|
|
7890
|
+
"versioned",
|
|
7891
|
+
"accessible"
|
|
7892
|
+
],
|
|
7893
|
+
shortDescription: "Instant GraphQL APIs over managed or BYO databases with visual schema design, access control, and multi-provider object storage.",
|
|
7894
|
+
description: "Blocks Data gives you instant GraphQL endpoints over managed or bring-your-own databases. Define schemas visually, enforce column-level validation and access control, and perform CRUD operations through the Data Playground.",
|
|
7895
|
+
featureChips: [
|
|
7896
|
+
"GraphQL APIs",
|
|
7897
|
+
"Column-level access",
|
|
7898
|
+
"CRUD playground",
|
|
7899
|
+
"Multi-provider storage",
|
|
7900
|
+
"Bring your own database"
|
|
7901
|
+
],
|
|
7902
|
+
url: "",
|
|
7903
|
+
cta: "Visit blocks Data"
|
|
7904
|
+
},
|
|
7905
|
+
{
|
|
7906
|
+
name: "blocks-logic",
|
|
7907
|
+
appName: "blocks Logic",
|
|
7908
|
+
badge: "Worflow Engine",
|
|
7909
|
+
tagline: "Automate without writing code.",
|
|
7910
|
+
descriptionTitle: "Build workflows on a canvas",
|
|
7911
|
+
keywords: ["visual", "automated", "event-driven", "codeless"],
|
|
7912
|
+
shortDescription: "Orchestrate multi-step automations visually with drag-and-drop triggers, AI nodes, and external API integrations without coding.",
|
|
7913
|
+
description: "Blocks Logic is a visual workflow engine for orchestrating complex operations without code. Drag triggers, conditions, and actions onto a canvas, fire workflows through webhooks or email, execute AI reasoning nodes, and push data through HTTP requests.",
|
|
7914
|
+
featureChips: [
|
|
7915
|
+
"Drag-and-drop builder",
|
|
7916
|
+
"Webhook & email triggers",
|
|
7917
|
+
"AI agent node",
|
|
7918
|
+
"HTTP & database actions",
|
|
7919
|
+
"Conditional branching"
|
|
7920
|
+
],
|
|
7921
|
+
url: "",
|
|
7922
|
+
cta: "Visit blocks Logic"
|
|
7923
|
+
},
|
|
7924
|
+
{
|
|
7925
|
+
name: "blocks-studio",
|
|
7926
|
+
appName: "blocks Studio",
|
|
7927
|
+
badge: "AI Studio",
|
|
7928
|
+
tagline: "Generate AI-powered apps within Blocks context.",
|
|
7929
|
+
descriptionTitle: "Generate anything with AI",
|
|
7930
|
+
keywords: [
|
|
7931
|
+
"intelligent",
|
|
7932
|
+
"generative",
|
|
7933
|
+
"contextual",
|
|
7934
|
+
"instant",
|
|
7935
|
+
"adaptive"
|
|
7936
|
+
],
|
|
7937
|
+
shortDescription: "Generate working applications from natural language prompts within the Blocks context.",
|
|
7938
|
+
description: "Blocks Studio is an AI engine that transforms natural language prompts into working applications and reports within the Blocks ecosystem. It uses the same agent infrastructure to convert prompts into functional interfaces.",
|
|
7939
|
+
featureChips: [
|
|
7940
|
+
"Natural language prompts",
|
|
7941
|
+
"AI app generation",
|
|
7942
|
+
"Blocks-aware context",
|
|
7943
|
+
"Instant prototyping",
|
|
7944
|
+
"Internal tool scaffolding"
|
|
7945
|
+
],
|
|
7946
|
+
url: "",
|
|
7947
|
+
cta: "Visit blocks Studio"
|
|
7948
|
+
},
|
|
7949
|
+
{
|
|
7950
|
+
name: "blocks-agents",
|
|
7951
|
+
appName: "Blocks Agents",
|
|
7952
|
+
badge: "AI Gateway",
|
|
7953
|
+
tagline: "Reasoning agents for every frontend.",
|
|
7954
|
+
descriptionTitle: "AI agents that understand your product",
|
|
7955
|
+
keywords: [
|
|
7956
|
+
"reasoning",
|
|
7957
|
+
"autonomous",
|
|
7958
|
+
"embeddable",
|
|
7959
|
+
"intelligent",
|
|
7960
|
+
"adaptive"
|
|
7961
|
+
],
|
|
7962
|
+
shortDescription: "Create and deploy AI agents with RAG knowledge bases, custom LLM support, and embeddable script tags.",
|
|
7963
|
+
description: "Blocks Agents lets you create, configure, and deploy intelligent assistants without complex technical setup. Equip agents with RAG-powered knowledge bases, connect custom LLMs through MCP, define tools and guardrails, and embed agents into any frontend with a single script tag.",
|
|
7964
|
+
featureChips: [
|
|
7965
|
+
"RAG knowledge bases",
|
|
7966
|
+
"Custom LLM & MCP",
|
|
7967
|
+
"Embeddable script tag",
|
|
7968
|
+
"Standard APIs"
|
|
7969
|
+
],
|
|
7970
|
+
url: "",
|
|
7971
|
+
cta: "Visit Blocks Agents"
|
|
7972
|
+
},
|
|
7973
|
+
{
|
|
7974
|
+
name: "blocks-release",
|
|
7975
|
+
appName: "blocks Release",
|
|
7976
|
+
badge: "CI/CD",
|
|
7977
|
+
tagline: "Secure releases with faster pace.",
|
|
7978
|
+
descriptionTitle: "Deployment with built-in guardrails",
|
|
7979
|
+
keywords: ["secure", "compliant", "automated", "fast"],
|
|
7980
|
+
shortDescription: "Manage end-to-end deployment with git-based CI/CD, branch-environment mapping, and automated security scanning for ISO compliance.",
|
|
7981
|
+
description: "Blocks Release provides end-to-end deployment infrastructure with security and compliance built in. Connect your repositories and the platform handles builds, runtime, scaling, and observability automatically.",
|
|
7982
|
+
featureChips: [
|
|
7983
|
+
"Git-based deployment",
|
|
7984
|
+
"Branch-environment mapping",
|
|
7985
|
+
"SCA, SAST & DAST",
|
|
7986
|
+
"CI/CD pipelines",
|
|
7987
|
+
"ISO compliance"
|
|
7988
|
+
],
|
|
7989
|
+
url: "",
|
|
7990
|
+
cta: "Visit blocks Release"
|
|
7991
|
+
},
|
|
7992
|
+
{
|
|
7993
|
+
name: "blocks-monitor",
|
|
7994
|
+
appName: "blocks Monitor",
|
|
7995
|
+
badge: "Uptime",
|
|
7996
|
+
tagline: "Full visibility from day one.",
|
|
7997
|
+
descriptionTitle: "Observability with zero integration time",
|
|
7998
|
+
keywords: ["observable", "traceable", "real-time", "intelligent"],
|
|
7999
|
+
shortDescription: "Get built-in observability with real-time logs, distributed tracing, usage metrics, and AI-assisted analysis. Zero setup required.",
|
|
8000
|
+
description: "Blocks Monitor delivers built-in observability without requiring external tooling or complex setup. Access real-time logs, distributed tracing, uptime monitoring, health checks, usage metrics, and AI-assisted diagnostics.",
|
|
8001
|
+
featureChips: [
|
|
8002
|
+
"Real-time logs with AI",
|
|
8003
|
+
"Distributed tracing",
|
|
8004
|
+
"Usage metrics",
|
|
8005
|
+
"Health monitoring",
|
|
8006
|
+
"Zero external tooling"
|
|
8007
|
+
],
|
|
8008
|
+
url: "",
|
|
8009
|
+
cta: "Visit blocks Monitor"
|
|
8010
|
+
},
|
|
8011
|
+
{
|
|
8012
|
+
name: "blocks-utilities",
|
|
8013
|
+
appName: "blocks Utilities",
|
|
8014
|
+
badge: "Toolkit",
|
|
8015
|
+
tagline: "Communication services for modern applications.",
|
|
8016
|
+
descriptionTitle: "Communication services, ready to use",
|
|
8017
|
+
keywords: ["reliable", "real-time", "automated", "scalable"],
|
|
8018
|
+
shortDescription: "Send branded emails, real-time notifications via SignalR, and secure magic links to power automated workflows.",
|
|
8019
|
+
description: "Blocks Utilities provides powerful communication services for your applications. Send branded emails, deliver real-time in-app notifications via SignalR, and create secure time-limited magic links\u2014both redirect and action-based\u2014to power automated workflows.",
|
|
8020
|
+
featureChips: [
|
|
8021
|
+
"Branded email",
|
|
8022
|
+
"Real-time notifications",
|
|
8023
|
+
"Redirect magic links",
|
|
8024
|
+
"Action magic links",
|
|
8025
|
+
"Workflow automation"
|
|
8026
|
+
],
|
|
8027
|
+
url: "",
|
|
8028
|
+
cta: "Visit blocks Utilities"
|
|
8029
|
+
}
|
|
8030
|
+
];
|
|
8031
|
+
var DEFAULT_BLOCKS_PRODUCTS = [
|
|
8032
|
+
{
|
|
8033
|
+
name: "blocks-os",
|
|
8034
|
+
appName: "blocks OS Platform",
|
|
8035
|
+
badge: "Platform Core",
|
|
8036
|
+
tagline: "Enterprise platform for secure, scalable applications",
|
|
8037
|
+
descriptionTitle: "Backends that are",
|
|
8038
|
+
keywords: ["observable", "intelligent", "scalable", "resilient", "secure"],
|
|
8039
|
+
shortDescription: "A secure plane for your application environment, secrets, and sensitive configuration.",
|
|
8040
|
+
description: "Blocks OS is a modern platform for building and deploying secure, scalable applications with built-in observability, AI capabilities, and comprehensive identity management. Focus on your application logic while Blocks OS handles infrastructure, auth, and ops.",
|
|
8041
|
+
featureChips: [
|
|
8042
|
+
"Authentication",
|
|
8043
|
+
"Secrets Management",
|
|
8044
|
+
"Configuration",
|
|
8045
|
+
"API Console",
|
|
8046
|
+
"Usage",
|
|
8047
|
+
"Logs & Tracing"
|
|
8048
|
+
],
|
|
8049
|
+
url: "",
|
|
8050
|
+
cta: "Visit blocks OS"
|
|
8051
|
+
}
|
|
8052
|
+
];
|
|
8053
|
+
|
|
8054
|
+
// src/pages/login/use-login-carousel.ts
|
|
8055
|
+
function splitAppName(appName) {
|
|
8056
|
+
const idx = appName.indexOf(" ");
|
|
8057
|
+
if (idx === -1) return [appName, ""];
|
|
8058
|
+
return [appName.slice(0, idx), appName.slice(idx + 1)];
|
|
8059
|
+
}
|
|
8060
|
+
var isBlocksProduct = (item) => {
|
|
8061
|
+
return "appName" in item;
|
|
8062
|
+
};
|
|
8063
|
+
function useLoginCarousel({
|
|
8064
|
+
name,
|
|
8065
|
+
carouselItems
|
|
8066
|
+
}) {
|
|
8067
|
+
const active = useMemo(() => {
|
|
8068
|
+
const products = carouselItems?.filter(isBlocksProduct) ?? DEFAULT_BLOCKS_PRODUCTS;
|
|
8069
|
+
return products.find((p) => p.name === name) ?? products[0];
|
|
8070
|
+
}, [name, carouselItems]);
|
|
8071
|
+
const otherProducts = useMemo(
|
|
8072
|
+
() => DEFAULT_BLOCKS_PRODUCTS.filter((p) => p.name !== active?.name),
|
|
8073
|
+
[active?.name]
|
|
8074
|
+
);
|
|
8075
|
+
const carouselSource = carouselItems ?? otherProducts;
|
|
8076
|
+
const [titleHead, titleTail] = splitAppName(active?.appName ?? "");
|
|
8077
|
+
const heroSubtitle = active?.tagline;
|
|
8078
|
+
const features = active?.featureChips;
|
|
8079
|
+
const carouselCards = useMemo(
|
|
8080
|
+
() => [...carouselSource, ...carouselSource],
|
|
8081
|
+
[carouselSource]
|
|
8082
|
+
);
|
|
8083
|
+
return {
|
|
8084
|
+
active,
|
|
8085
|
+
otherProducts,
|
|
8086
|
+
carouselSource,
|
|
8087
|
+
carouselCards,
|
|
8088
|
+
titleHead,
|
|
8089
|
+
titleTail,
|
|
8090
|
+
heroSubtitle,
|
|
8091
|
+
features
|
|
8092
|
+
};
|
|
8093
|
+
}
|
|
8094
|
+
var BlocksLoginPage = ({
|
|
8095
|
+
name,
|
|
8096
|
+
onLogin,
|
|
8097
|
+
isLoading = false,
|
|
8098
|
+
eyebrow = "Blocks \xB7 Core Services",
|
|
8099
|
+
loginLabel = "Log in to your account",
|
|
8100
|
+
docsUrl = "https://docs.seliseblocks.com/",
|
|
8101
|
+
footerLink = { label: "Visit Blocks", url: "https://seliseblocks.com" },
|
|
8102
|
+
carouselItems
|
|
8103
|
+
}) => {
|
|
8104
|
+
const canvasRef = useRef(null);
|
|
8105
|
+
useAtmosphericCanvas(canvasRef);
|
|
8106
|
+
const {
|
|
8107
|
+
active,
|
|
8108
|
+
carouselSource,
|
|
8109
|
+
carouselCards,
|
|
8110
|
+
titleHead,
|
|
8111
|
+
titleTail,
|
|
8112
|
+
heroSubtitle,
|
|
8113
|
+
features
|
|
8114
|
+
} = useLoginCarousel({ name, carouselItems });
|
|
8047
8115
|
return /* @__PURE__ */ jsxs("div", { className: "blocksLogin-page", children: [
|
|
8048
8116
|
/* @__PURE__ */ jsx("style", { children: blocksLoginStyles }),
|
|
8049
8117
|
/* @__PURE__ */ jsx("div", { className: "grid-bg" }),
|
|
@@ -8320,36 +8388,13 @@ var BlocksLoginPage = ({
|
|
|
8320
8388
|
};
|
|
8321
8389
|
var LoginPage = () => {
|
|
8322
8390
|
const config = useBlocksAppConfigStore((state) => state.getConfig());
|
|
8323
|
-
const
|
|
8324
|
-
const startLogin = async () => {
|
|
8325
|
-
try {
|
|
8326
|
-
if (isStarting) return;
|
|
8327
|
-
setIsStarting(true);
|
|
8328
|
-
const blocksKey = window.process?.env.BLOCKS_X_BLOCKS_KEY;
|
|
8329
|
-
const clientId = window.process?.env.BLOCKS_OIDC_CLIENT_ID;
|
|
8330
|
-
const baseUrl = window.process?.env.userBaseUrl;
|
|
8331
|
-
const redirectUri = `${window.location.origin}/login/callback`;
|
|
8332
|
-
const initiateUrl = `${baseUrl}/api/idp/initiate?x-blocks-key=${blocksKey}&clientId=${clientId}&redirectUri=${redirectUri}`;
|
|
8333
|
-
const headers = {};
|
|
8334
|
-
if (blocksKey) headers["X-Blocks-Key"] = blocksKey;
|
|
8335
|
-
const response = await fetch(initiateUrl.toString(), { headers });
|
|
8336
|
-
const data2 = await response.json();
|
|
8337
|
-
if (data2.redirect_uri) {
|
|
8338
|
-
window.location.href = data2.redirect_uri;
|
|
8339
|
-
} else {
|
|
8340
|
-
setIsStarting(false);
|
|
8341
|
-
}
|
|
8342
|
-
} catch (error) {
|
|
8343
|
-
console.error("Error initiating login:", error);
|
|
8344
|
-
setIsStarting(false);
|
|
8345
|
-
}
|
|
8346
|
-
};
|
|
8391
|
+
const { start, isLoading } = useLogin();
|
|
8347
8392
|
return /* @__PURE__ */ jsx(
|
|
8348
8393
|
BlocksLoginPage,
|
|
8349
8394
|
{
|
|
8350
8395
|
name: config.name,
|
|
8351
|
-
onLogin:
|
|
8352
|
-
isLoading
|
|
8396
|
+
onLogin: start,
|
|
8397
|
+
isLoading,
|
|
8353
8398
|
carouselItems: BLOCKS_PRODUCTS
|
|
8354
8399
|
}
|
|
8355
8400
|
);
|
|
@@ -8427,7 +8472,7 @@ var DefaultDoc = () => {
|
|
|
8427
8472
|
function useCreateProjectRedirect() {
|
|
8428
8473
|
const { name } = useBlocksAppConfigStore((state) => state.config);
|
|
8429
8474
|
const navigate = useNavigate();
|
|
8430
|
-
const osApp = filteredAppSwitcherData.find((app) => app.
|
|
8475
|
+
const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
|
|
8431
8476
|
const { isFetching, isReady, redirect } = usePrefetchRedirect({
|
|
8432
8477
|
clientId: osApp ? getRuntimeEnv(osApp.clientId) : "",
|
|
8433
8478
|
redirectUri: osApp ? getRuntimeEnv(osApp.redirectUri) : "",
|
|
@@ -8521,7 +8566,7 @@ function useProjectOverviewRedirect({
|
|
|
8521
8566
|
}) {
|
|
8522
8567
|
const navigate = useNavigate();
|
|
8523
8568
|
const { name } = useBlocksAppConfigStore((state) => state.config);
|
|
8524
|
-
const osApp = filteredAppSwitcherData.find((app) => app.
|
|
8569
|
+
const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
|
|
8525
8570
|
const redirectedRoute = `/app/project/${tenantGroupId}/environments`;
|
|
8526
8571
|
const { isFetching, isReady, redirect } = usePrefetchRedirect({
|
|
8527
8572
|
clientId: osApp ? getRuntimeEnv(osApp.clientId) : "",
|
|
@@ -8615,7 +8660,7 @@ var ProjectCard = ({ project, projects }) => {
|
|
|
8615
8660
|
className: "flex items-center gap-1 shrink-0",
|
|
8616
8661
|
children: [
|
|
8617
8662
|
/* @__PURE__ */ jsx(UsersRound, { size: 16 }),
|
|
8618
|
-
"Shared
|
|
8663
|
+
"Shared"
|
|
8619
8664
|
]
|
|
8620
8665
|
}
|
|
8621
8666
|
)
|
|
@@ -9825,14 +9870,14 @@ function SidebarMenuDesktop({
|
|
|
9825
9870
|
{
|
|
9826
9871
|
className: `hidden h-screen shrink-0 flex-col border-r bg-background transition-all md:flex ${isSidebarOpen ? "min-w-60" : "w-14"}`,
|
|
9827
9872
|
children: [
|
|
9828
|
-
/* @__PURE__ */ jsxs("div", { className: "flex h-
|
|
9873
|
+
/* @__PURE__ */ jsxs("div", { className: "flex h-[60px] shrink-0 items-center justify-between border-b bg-background px-3", children: [
|
|
9829
9874
|
/* @__PURE__ */ jsx(
|
|
9830
9875
|
Link,
|
|
9831
9876
|
{
|
|
9832
9877
|
to: "console",
|
|
9833
9878
|
className: cn(
|
|
9834
9879
|
"relative inline-block cursor-pointer overflow-hidden transition-all",
|
|
9835
|
-
isSidebarOpen ? "h-9 w-
|
|
9880
|
+
isSidebarOpen ? "h-9 w-[72px]" : "h-8 w-8"
|
|
9836
9881
|
),
|
|
9837
9882
|
children: /* @__PURE__ */ jsx(
|
|
9838
9883
|
RenderAlternatively,
|
|
@@ -11755,5 +11800,5 @@ var TablePagination2 = React8.forwardRef(
|
|
|
11755
11800
|
TablePagination2.displayName = "TablePagination";
|
|
11756
11801
|
|
|
11757
11802
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppSwitcher, ArchiveProject, AspectRatio, AuthLayout, Avatar, AvatarFallback, AvatarImage, BackToConsoleNavigator, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CallbackPage, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationModal, ConsoleHeader, ConsoleLayout, ConsolePage, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyToClipboardButton, CopyableSnippet, DEFAULT_KANBAN_COLUMNS, DashboardHeader, DashboardLayout, DashboardOverview, DashboardRoute, DashboardSectionCard, DataTable, DataTableHeaderCell, DateRangePicker, DesktopMenuItem, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditProject, EditProjectDialog, EditProjectForm, EnvironmentCard, EnvironmentList, ErrorBoundary, ErrorDisplay, ErrorDisplayWithCard, FileInput, FileUploader, FileUploaderContent, FileUploaderItem, FilterControls, FilterToolBarMobileView, FilterToolbar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, ImportFileModalContent, InfiniteScroll, InfiniteScroller, InfoTooltip, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, KanbanBoard, KanbanBoardColumn, KanbanBoardContainer, KanbanTaskCard, Label, LanguageSelector, LoadingButton, LoginPage, Logo, MaskedText, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileMenuItem, MultiSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Notification, OidcLayout, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, Popover, PopoverContent, PopoverTrigger, ProfilePage, Progress, ProjectActions, ProjectCardLoadingSkeleton, ProjectCliSnippet, ProjectDetail, ProjectList, ProjectOverview, ProjectRepoList, PublicLayout, RadioGroup4 as RadioGroup, RadioGroupItem, RenderAlternatively, RenderConditionally, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectedEnvironment, SelectedProject, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarCollapsedTooltip, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuDesktop, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarMobileView, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableLoadingSkeleton, TablePagination2 as TablePagination, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeSwitcher, Timeline, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserDropdownMenu, WizardHorizontalTrackBar, WizardStepContent, WizardStepIndicator, WizardStepViewport, WizardStepperProvider, WizardVerticalTrackBar, badgeVariants, buttonVariants, editProjectFormDefaultValues, editProjectFormSchema, filteredAppSwitcherData, hasDraggableData, kanbanKeyboardCoordinateGetter, navigationMenuTriggerStyle, paginationQueryParsers, sidebarCollapsedTooltipClass, sortQueryParsers, spinnerVariants, toggleVariants, useFileUpload, useFormField, useNotificationSocket, useOidcContext, usePaginationQueryParams, useSortQueryParams, useWizardStepper };
|
|
11758
|
-
//# sourceMappingURL=chunk-
|
|
11759
|
-
//# sourceMappingURL=chunk-
|
|
11803
|
+
//# sourceMappingURL=chunk-JJVH37IV.js.map
|
|
11804
|
+
//# sourceMappingURL=chunk-JJVH37IV.js.map
|