this.gui 1.3.22 → 1.3.26
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/this-gui.es.js +0 -1
- package/dist/this-gui.umd.js +65 -65
- package/index.ts +3 -2
- package/init/index.html +4 -5
- package/init/package-lock.json +2 -2
- package/init/package.json +1 -1
- package/init/src/App.tsx +24 -0
- package/init/src/index.css +16 -0
- package/init/src/main.tsx +14 -0
- package/init/src/router/DerivableRouter.tsx +36 -0
- package/package.json +1 -1
- package/src/GUI.tsx +15 -0
- package/src/components/generics/Cards/Gridme.jsx +52 -0
- package/src/components/generics/Cards/LilBox.jsx +65 -0
- package/src/components/generics/Cards/ModuleCard.jsx +106 -0
- package/src/components/generics/Chats/FullChatBot.jsx +223 -0
- package/src/components/generics/Code/CodeBlock.jsx +33 -0
- package/src/components/generics/Feedback/Callout.jsx +92 -0
- package/src/components/generics/Layout/GridX.jsx +29 -0
- package/src/components/generics/Layout/Hero2.jsx +132 -0
- package/src/components/generics/Layout/PageContainer.jsx +29 -0
- package/src/components/generics/Layout/PageDivider.jsx +20 -0
- package/src/components/generics/Layout/Section.jsx +43 -0
- package/src/components/generics/Layout/SectionHeader.jsx +21 -0
- package/src/components/generics/Media/Img.jsx +58 -0
- package/src/components/generics/Media/VideoEmbed.jsx +51 -0
- package/src/components/generics/Organization/TableOfContents.jsx +51 -0
- package/src/components/generics/Organization/Tabs.jsx +45 -0
- package/src/components/generics/Text/TextList.jsx +41 -0
- package/src/components/generics/Text/TextParagraph.jsx +28 -0
- package/src/components/generics/Text/TextQuote.jsx +23 -0
- package/src/components/generics/Text/TextTitle.jsx +44 -0
- package/src/gui/Layouts/ResponsiveUI/Content/Content.resolver.tsx +0 -0
- package/src/gui/Layouts/ResponsiveUI/Content/Content.stories.tsx +88 -0
- package/src/gui/Layouts/ResponsiveUI/Content/Content.tsx +53 -0
- package/src/gui/Layouts/ResponsiveUI/Content/Content.types.tsx +40 -0
- package/src/gui/Layouts/ResponsiveUI/Footer/Footer.resolver.tsx +45 -0
- package/src/gui/Layouts/ResponsiveUI/Footer/Footer.stories.tsx +209 -0
- package/src/gui/Layouts/ResponsiveUI/Footer/Footer.tsx +337 -0
- package/src/gui/Layouts/ResponsiveUI/Footer/Footer.types.ts +40 -0
- package/src/gui/Layouts/ResponsiveUI/Layout/Layout.resolver.tsx +37 -0
- package/src/gui/Layouts/ResponsiveUI/Layout/Layout.stories.tsx +290 -0
- package/src/gui/Layouts/ResponsiveUI/Layout/Layout.tsx +112 -0
- package/src/gui/Layouts/ResponsiveUI/Layout/Layout.types.ts +56 -0
- package/src/gui/Layouts/ResponsiveUI/Layout/useLayoutBreakpoints.ts +9 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/LeftSidebar/LeftSidebar.resolver.tsx +87 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/LeftSidebar/LeftSidebar.stories.tsx +199 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/LeftSidebar/LeftSidebar.tsx +311 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/LeftSidebar/LeftSidebar.types.ts +41 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/LeftSidebar/SidebarToggleButton.tsx +53 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/LeftSidebar/components/LeftSidebarAction/LeftSidebarAction.resolver.tsx +19 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/LeftSidebar/components/LeftSidebarAction/LeftSidebarAction.tsx +107 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/LeftSidebar/components/LeftSidebarLink/LeftSidebarLink.resolver.tsx +0 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/LeftSidebar/components/LeftSidebarLink/LeftSidebarLink.tsx +122 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/LeftSidebar/components/LeftSidebarLink/LeftSidebarLink.types.ts +13 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/LeftSidebar/components/LeftSidebarMenu/LeftSidebarMenu.tsx +142 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/LeftSidebar/components/LeftSidebarToggleButton/LeftSidebarToggleButton.tsx +23 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/RightSidebar/RightSidebar.resolver.tsx +35 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/RightSidebar/RightSidebar.stories.tsx +240 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/RightSidebar/RightSidebar.tsx +319 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/RightSidebar/RightSidebar.types.ts +17 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/RightSidebar/components/RightSidebarAction/RightSidebarAction.tsx +102 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/RightSidebar/components/RightSidebarLink/RightSidebarLink.tsx +132 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/RightSidebar/components/RightSidebarMenu/RightSidebarMenu.tsx +140 -0
- package/src/gui/Layouts/ResponsiveUI/Sidebars/RightSidebar/components/RightSidebarToggleButton/RightSidebarToggleButton.tsx +22 -0
- package/src/gui/Layouts/ResponsiveUI/StickyOptions/StickyOptionsTop.stories.tsx +469 -0
- package/src/gui/Layouts/ResponsiveUI/StickyOptions/StickyOptionsTop.tsx +489 -0
- package/src/gui/Layouts/ResponsiveUI/TopBar/TopBar.resolver.tsx +86 -0
- package/src/gui/Layouts/ResponsiveUI/TopBar/TopBar.stories.tsx +350 -0
- package/src/gui/Layouts/ResponsiveUI/TopBar/TopBar.tsx +281 -0
- package/src/gui/Layouts/ResponsiveUI/TopBar/TopBar.types.ts +39 -0
- package/src/gui/Layouts/ResponsiveUI/TopBar/components/TopBarAction/TopBarAction.stories.tsx +83 -0
- package/src/gui/Layouts/ResponsiveUI/TopBar/components/TopBarAction/TopBarAction.tsx +18 -0
- package/src/gui/Layouts/ResponsiveUI/TopBar/components/TopBarAction/TopBarAction.types.ts +4 -0
- package/src/gui/Layouts/ResponsiveUI/TopBar/components/TopBarLink/TopBarLink.stories.tsx +189 -0
- package/src/gui/Layouts/ResponsiveUI/TopBar/components/TopBarLink/TopBarLink.tsx +30 -0
- package/src/gui/Layouts/ResponsiveUI/TopBar/components/TopBarLink/TopBarLink.types.ts +9 -0
- package/src/gui/Layouts/ResponsiveUI/TopBar/components/TopBarMenu/TopBarMenu.resolver.tsx +14 -0
- package/src/gui/Layouts/ResponsiveUI/TopBar/components/TopBarMenu/TopBarMenu.stories.tsx +56 -0
- package/src/gui/Layouts/ResponsiveUI/TopBar/components/TopBarMenu/TopBarMenu.tsx +123 -0
- package/src/gui/Layouts/ResponsiveUI/TopBar/components/TopBarMenu/TopBarMenu.types.ts +44 -0
- package/src/gui/Theme/GuiProvider.tsx +125 -0
- package/src/gui/Theme/Icon/Icon.resolver.tsx +29 -0
- package/src/gui/Theme/Icon/Icon.tsx +43 -0
- package/src/gui/Theme/catalog/CherryByte/CherryByte.png +0 -0
- package/src/gui/Theme/catalog/CherryByte/dark.tokens.ts +47 -0
- package/src/gui/Theme/catalog/CherryByte/light.tokens.ts +47 -0
- package/src/gui/Theme/catalog/CherryByte/manifest.ts +24 -0
- package/src/gui/Theme/catalog/GhostShell/dark.tokens.ts +43 -0
- package/src/gui/Theme/catalog/GhostShell/ghost.png +0 -0
- package/src/gui/Theme/catalog/GhostShell/light.tokens.ts +39 -0
- package/src/gui/Theme/catalog/GhostShell/manifest.ts +24 -0
- package/src/gui/Theme/catalog/LunaHex/LunaHex.png +0 -0
- package/src/gui/Theme/catalog/LunaHex/dark.tokens.ts +34 -0
- package/src/gui/Theme/catalog/LunaHex/light.tokens.ts +74 -0
- package/src/gui/Theme/catalog/LunaHex/manifest.ts +24 -0
- package/src/gui/Theme/catalog/MUI/MUI.png +0 -0
- package/src/gui/Theme/catalog/MUI/dark.tokens.ts +58 -0
- package/src/gui/Theme/catalog/MUI/light.tokens.ts +74 -0
- package/src/gui/Theme/catalog/MUI/manifest.ts +24 -0
- package/src/gui/Theme/catalog/PrinceOfDarkness/dark.tokens.ts +48 -0
- package/src/gui/Theme/catalog/PrinceOfDarkness/light.tokens.ts +47 -0
- package/src/gui/Theme/catalog/PrinceOfDarkness/manifest.ts +24 -0
- package/src/gui/Theme/catalog/PrinceOfDarkness/prince.png +0 -0
- package/src/gui/Theme/catalog/PrinceOfDarkness/princeOfDarkness.png +0 -0
- package/src/gui/Theme/catalog/Seafoam/dark.tokens.ts +49 -0
- package/src/gui/Theme/catalog/Seafoam/light.tokens.ts +47 -0
- package/src/gui/Theme/catalog/Seafoam/manifest.ts +24 -0
- package/src/gui/Theme/catalog/Seafoam/seaFoam.png +0 -0
- package/src/gui/Theme/catalog/neurons/dark.tokens.ts +58 -0
- package/src/gui/Theme/catalog/neurons/light.tokens.ts +74 -0
- package/src/gui/Theme/catalog/neurons/manifest.ts +24 -0
- package/src/gui/Theme/catalog/neurons/neurons.me.png +0 -0
- package/src/gui/Theme/fromTokens.ts +273 -0
- package/src/gui/Theme/gui.css +31 -0
- package/src/gui/Theme/index.ts +17 -0
- package/src/gui/Theme/styles/buildShadows.ts +83 -0
- package/src/gui/Theme/styles/theme.tokens.ts +108 -0
- package/src/gui/Theme/utils/catalog.ts +61 -0
- package/src/gui/Theme/utils/persistence.ts +66 -0
- package/src/gui/Theme/utils/themeUtils.ts +34 -0
- package/src/gui/apis/codegen.api.ts +38 -0
- package/src/gui/components/atoms/AppBar/AppBar.resolver.tsx +41 -0
- package/src/gui/components/atoms/AppBar/AppBar.stories.tsx +225 -0
- package/src/gui/components/atoms/AppBar/AppBar.tsx +8 -0
- package/src/gui/components/atoms/AppBar/AppBar.types.ts +28 -0
- package/src/gui/components/atoms/Avatar/Avatar.resolver.tsx +61 -0
- package/src/gui/components/atoms/Avatar/Avatar.stories.tsx +36 -0
- package/src/gui/components/atoms/Avatar/Avatar.tsx +14 -0
- package/src/gui/components/atoms/Box/Box.resolver.tsx +171 -0
- package/src/gui/components/atoms/Box/Box.stories.tsx +263 -0
- package/src/gui/components/atoms/Box/Box.tsx +15 -0
- package/src/gui/components/atoms/Button/Button.resolver.tsx +103 -0
- package/src/gui/components/atoms/Button/Button.stories.tsx +219 -0
- package/src/gui/components/atoms/Button/Button.tsx +40 -0
- package/src/gui/components/atoms/Card/Card.resolver.tsx +63 -0
- package/src/gui/components/atoms/Card/Card.stories.tsx +54 -0
- package/src/gui/components/atoms/Card/Card.tsx +13 -0
- package/src/gui/components/atoms/CardActions/CardActions.resolver.tsx +59 -0
- package/src/gui/components/atoms/CardActions/CardActions.stories.tsx +32 -0
- package/src/gui/components/atoms/CardActions/CardActions.tsx +14 -0
- package/src/gui/components/atoms/CardContent/CardContent.resolver.tsx +60 -0
- package/src/gui/components/atoms/CardContent/CardContent.stories.tsx +34 -0
- package/src/gui/components/atoms/CardContent/CardContent.tsx +13 -0
- package/src/gui/components/atoms/CardHeader/CardHeader.resolver.tsx +68 -0
- package/src/gui/components/atoms/CardHeader/CardHeader.stories.tsx +40 -0
- package/src/gui/components/atoms/CardHeader/CardHeader.tsx +12 -0
- package/src/gui/components/atoms/Collapse/Collapse.resolver.tsx +85 -0
- package/src/gui/components/atoms/Collapse/Collapse.stories.tsx +130 -0
- package/src/gui/components/atoms/Collapse/Collapse.tsx +17 -0
- package/src/gui/components/atoms/Divider/Divider.resolver.tsx +95 -0
- package/src/gui/components/atoms/Divider/Divider.stories.tsx +108 -0
- package/src/gui/components/atoms/Divider/Divider.tsx +14 -0
- package/src/gui/components/atoms/Drawer/Drawer.resolver.tsx +116 -0
- package/src/gui/components/atoms/Drawer/Drawer.stories.tsx +223 -0
- package/src/gui/components/atoms/Drawer/Drawer.tsx +25 -0
- package/src/gui/components/atoms/Grid/Grid.resolver.tsx +33 -0
- package/src/gui/components/atoms/Grid/Grid.stories.tsx +136 -0
- package/src/gui/components/atoms/Grid/Grid.tsx +15 -0
- package/src/gui/components/atoms/Grid/Grid.types.ts +9 -0
- package/src/gui/components/atoms/IconButton/IconButton.resolver.tsx +137 -0
- package/src/gui/components/atoms/IconButton/IconButton.stories.tsx +134 -0
- package/src/gui/components/atoms/IconButton/IconButton.tsx +22 -0
- package/src/gui/components/atoms/Link/Link.resolver.tsx +74 -0
- package/src/gui/components/atoms/Link/Link.stories.tsx +157 -0
- package/src/gui/components/atoms/Link/Link.tsx +36 -0
- package/src/gui/components/atoms/List/List.resolver.tsx +94 -0
- package/src/gui/components/atoms/List/List.stories.tsx +137 -0
- package/src/gui/components/atoms/List/List.tsx +20 -0
- package/src/gui/components/atoms/ListItem/ListItem.resolver.tsx +88 -0
- package/src/gui/components/atoms/ListItem/ListItem.stories.tsx +151 -0
- package/src/gui/components/atoms/ListItem/ListItem.tsx +19 -0
- package/src/gui/components/atoms/ListItemButton/ListItemButton.resolver.tsx +214 -0
- package/src/gui/components/atoms/ListItemButton/ListItemButton.stories.tsx +155 -0
- package/src/gui/components/atoms/ListItemButton/ListItemButton.tsx +15 -0
- package/src/gui/components/atoms/ListItemIcon/ListItemIcon.resolver.tsx +102 -0
- package/src/gui/components/atoms/ListItemIcon/ListItemIcon.stories.tsx +132 -0
- package/src/gui/components/atoms/ListItemIcon/ListItemIcon.tsx +11 -0
- package/src/gui/components/atoms/ListItemText/ListItemText.resolver.tsx +112 -0
- package/src/gui/components/atoms/ListItemText/ListItemText.stories.tsx +156 -0
- package/src/gui/components/atoms/ListItemText/ListItemText.tsx +15 -0
- package/src/gui/components/atoms/Menu/Menu.resolver.tsx +112 -0
- package/src/gui/components/atoms/Menu/Menu.stories.tsx +162 -0
- package/src/gui/components/atoms/Menu/Menu.tsx +17 -0
- package/src/gui/components/atoms/MenuItem/MenuItem.resolver.tsx +183 -0
- package/src/gui/components/atoms/MenuItem/MenuItem.stories.tsx +134 -0
- package/src/gui/components/atoms/MenuItem/MenuItem.tsx +14 -0
- package/src/gui/components/atoms/Paper/Paper.resolver.tsx +98 -0
- package/src/gui/components/atoms/Paper/Paper.stories.tsx +184 -0
- package/src/gui/components/atoms/Paper/Paper.tsx +15 -0
- package/src/gui/components/atoms/Section/Section.resolver.tsx +10 -0
- package/src/gui/components/atoms/Section/Section.stories.tsx +189 -0
- package/src/gui/components/atoms/Section/Section.tsx +76 -0
- package/src/gui/components/atoms/Section/Section.types.tsx +24 -0
- package/src/gui/components/atoms/Stack/Stack.resolver.tsx +94 -0
- package/src/gui/components/atoms/Stack/Stack.stories.tsx +160 -0
- package/src/gui/components/atoms/Stack/Stack.tsx +15 -0
- package/src/gui/components/atoms/Surface/Surface.resolver.tsx +37 -0
- package/src/gui/components/atoms/Surface/Surface.tsx +49 -0
- package/src/gui/components/atoms/Surface/Surface.types.ts +20 -0
- package/src/gui/components/atoms/Switch/Switch.resolver.tsx +53 -0
- package/src/gui/components/atoms/Switch/Switch.stories.tsx +236 -0
- package/src/gui/components/atoms/Switch/Switch.tsx +22 -0
- package/src/gui/components/atoms/TextField/TextField.stories.tsx +28 -0
- package/src/gui/components/atoms/TextField/TextField.tsx +15 -0
- package/src/gui/components/atoms/Toolbar/Toolbar.resolver.tsx +60 -0
- package/src/gui/components/atoms/Toolbar/Toolbar.stories.tsx +155 -0
- package/src/gui/components/atoms/Toolbar/Toolbar.tsx +16 -0
- package/src/gui/components/atoms/Tooltip/Tooltip.resolver.tsx +142 -0
- package/src/gui/components/atoms/Tooltip/Tooltip.stories.tsx +117 -0
- package/src/gui/components/atoms/Tooltip/Tooltip.tsx +70 -0
- package/src/gui/components/atoms/Typography/Typography.resolver.tsx +158 -0
- package/src/gui/components/atoms/Typography/Typography.stories.tsx +222 -0
- package/src/gui/components/atoms/Typography/Typography.tsx +27 -0
- package/src/gui/components/atoms.tsx +138 -0
- package/src/gui/components/molecules/Dialog/Dialog.stories.tsx +18 -0
- package/src/gui/components/molecules/Dialog/Dialog.tsx +5 -0
- package/src/gui/components/molecules/HeroSection/HeroSection.stories.tsx +141 -0
- package/src/gui/components/molecules/HeroSection/HeroSection.tsx +152 -0
- package/src/gui/components/molecules/HeroSection/HeroSection.types.tsx +18 -0
- package/src/gui/components/molecules/ModalBox/ModalBox.resolver.tsx +38 -0
- package/src/gui/components/molecules/ModalBox/ModalBox.stories.tsx +82 -0
- package/src/gui/components/molecules/ModalBox/ModalBox.tsx +106 -0
- package/src/gui/components/molecules/ModalBox/ModalBox.types.ts +29 -0
- package/src/gui/components/molecules/Page/Page.stories.tsx +135 -0
- package/src/gui/components/molecules/Page/Page.tsx +94 -0
- package/src/gui/components/molecules/Theme/ThemeModeToggle/ThemeModeToggle.resolver.tsx +58 -0
- package/src/gui/components/molecules/Theme/ThemeModeToggle/ThemeModeToggle.stories.tsx +133 -0
- package/src/gui/components/molecules/Theme/ThemeModeToggle/ThemeModeToggle.tsx +101 -0
- package/src/gui/components/molecules/Theme/ThemeModeToggle/ThemeModeToggle.types.ts +29 -0
- package/src/gui/components/molecules/Theme/ThemesCatalog/ThemesCatalog.resolver.tsx +15 -0
- package/src/gui/components/molecules/Theme/ThemesCatalog/ThemesCatalog.stories.tsx +88 -0
- package/src/gui/components/molecules/Theme/ThemesCatalog/ThemesCatalog.tsx +167 -0
- package/src/gui/components/molecules/Theme/ThemesCatalog/ThemesCatalog.types.ts +34 -0
- package/src/gui/components/organism/ChatGPTInterface/ChatGPTInterface.stories.tsx +17 -0
- package/src/gui/components/organism/ChatGPTInterface/ChatGPTInterface.tsx +71 -0
- package/src/gui/components/organism/RootDomain/RootDomain.stories.tsx +31 -0
- package/src/gui/components/organism/RootDomain/RootDomain.tsx +100 -0
- package/src/gui/components/organism/RootDomain/staticServices.ts +66 -0
- package/src/gui/components/window/Nodes/node.ts +0 -0
- package/src/gui/components/window/code/block/node.tsx +0 -0
- package/src/gui/components/window/code/hugging.face.api.ts +11 -0
- package/src/gui/components/window/connectors/index.ts +19 -0
- package/src/gui/components/window/window.stories.tsx +20 -0
- package/src/gui/components/window/window.tsx +633 -0
- package/src/gui/contexts/InsetsContext.tsx +38 -0
- package/src/gui/contexts/LeftSidebarContext.tsx +20 -0
- package/src/gui/contexts/RightSidebarContext.tsx +25 -0
- package/src/gui/contexts/ThemeContext.ts +34 -0
- package/src/gui/contexts/index.ts +4 -0
- package/src/gui/hooks/index.ts +11 -0
- package/src/gui/hooks/resolveColorToken.ts +39 -0
- package/src/gui/hooks/useCodeGen.ts +12 -0
- package/src/gui/hooks/useGuiMediaQuery.ts +18 -0
- package/src/gui/hooks/useGuiTheme.ts +18 -0
- package/src/gui/hooks/useInsets.ts +26 -0
- package/src/gui/hooks/useIsMobile.ts +13 -0
- package/src/gui/hooks/useIsTouchDevice.ts +25 -0
- package/src/gui/hooks/useLeftSidebar.ts +10 -0
- package/src/gui/hooks/useRightSidebar.ts +12 -0
- package/src/gui/hooks/useViewportKey.ts +19 -0
- package/src/gui/hooks/useViewportProp.ts +17 -0
- package/src/gui/me/Logic.tsx +31 -0
- package/src/gui/me/Me.stories.tsx +8 -0
- package/src/gui/me/Me.tsx +197 -0
- package/src/gui/me/fundamentals/verbs/verbs.tsx +94 -0
- package/src/gui/me/modificators/Adjectives.ts +0 -0
- package/src/gui/me/modificators/Adverbs.ts +0 -0
- package/src/gui/me/modificators/Complements.ts +27 -0
- package/src/gui/me/utils/Context.tsx +14 -0
- package/src/gui/me/utils/hooks/useMe.js +37 -0
- package/src/gui/utils/nodeID.ts +11 -0
- package/src/registry/GuiRegistry.ts +19 -0
- package/src/registry/factory.ts +12 -0
- package/src/registry/index.ts +3 -0
- package/src/registry/types.ts +6 -0
- package/src/stories/01.Home.mdx +22 -0
- package/src/stories/02.Understanding.This.GUI.mdx +149 -0
- package/src/stories/Theme/Palette.stories.tsx +86 -0
- package/src/stories/Theme/ThemeViewer.stories.tsx +91 -0
- package/src/stories/Theme/Typography.stories.jsx +211 -0
- package/src/types/gui.d.ts +67 -0
- package/src/types/theme.d.ts +191 -0
- package/src/types/viewport.ts +132 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Box, Button, Typography, Paper, Stack } from "@/gui/components/atoms";
|
|
3
|
+
import TextField from "@/gui/components/atoms/TextField/TextField";
|
|
4
|
+
import Page from "@/gui/components/molecules/Page/Page";
|
|
5
|
+
import { useCodeGen } from "@/gui/hooks/useCodeGen";
|
|
6
|
+
/**
|
|
7
|
+
* ChatGPTInterface
|
|
8
|
+
* ------------------
|
|
9
|
+
* A code generation interface for interacting with ChatGPT inside this.GUI.
|
|
10
|
+
* Uses existing theme context and GUI atoms.
|
|
11
|
+
*/
|
|
12
|
+
export default function ChatGPTInterface() {
|
|
13
|
+
const code = useCodeGen();
|
|
14
|
+
const [prompt, setPrompt] = useState("");
|
|
15
|
+
const [output, setOutput] = useState("");
|
|
16
|
+
|
|
17
|
+
const handleGenerate = async () => {
|
|
18
|
+
const result = await code.generate("CustomRequest", { prompt });
|
|
19
|
+
setOutput(result || "No output generated.");
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<Page padding={4} background="background.paper">
|
|
24
|
+
<Paper
|
|
25
|
+
sx={{
|
|
26
|
+
p: 3,
|
|
27
|
+
width: "100%",
|
|
28
|
+
maxWidth: 900,
|
|
29
|
+
mx: "auto",
|
|
30
|
+
display: "flex",
|
|
31
|
+
flexDirection: "column",
|
|
32
|
+
gap: 2,
|
|
33
|
+
}}
|
|
34
|
+
>
|
|
35
|
+
<Typography variant="h6" sx={{ fontWeight: 700 }}>
|
|
36
|
+
ChatGPT Code Generator
|
|
37
|
+
</Typography>
|
|
38
|
+
|
|
39
|
+
<Stack spacing={2}>
|
|
40
|
+
<TextField
|
|
41
|
+
multiline
|
|
42
|
+
fullWidth
|
|
43
|
+
rows={4}
|
|
44
|
+
placeholder="Describe what you want to generate..."
|
|
45
|
+
value={prompt}
|
|
46
|
+
onChange={(e) => setPrompt(e.target.value)}
|
|
47
|
+
/>
|
|
48
|
+
<Button variant="contained" onClick={handleGenerate}>
|
|
49
|
+
Generate
|
|
50
|
+
</Button>
|
|
51
|
+
</Stack>
|
|
52
|
+
|
|
53
|
+
{output && (
|
|
54
|
+
<Box
|
|
55
|
+
sx={{
|
|
56
|
+
bgcolor: "background.default",
|
|
57
|
+
borderRadius: 2,
|
|
58
|
+
p: 2,
|
|
59
|
+
mt: 2,
|
|
60
|
+
whiteSpace: "pre-wrap",
|
|
61
|
+
fontFamily: "monospace",
|
|
62
|
+
fontSize: "0.9rem",
|
|
63
|
+
}}
|
|
64
|
+
>
|
|
65
|
+
{output}
|
|
66
|
+
</Box>
|
|
67
|
+
)}
|
|
68
|
+
</Paper>
|
|
69
|
+
</Page>
|
|
70
|
+
);
|
|
71
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import RootDomain from './RootDomain';
|
|
3
|
+
|
|
4
|
+
const RootDomainList = [
|
|
5
|
+
{ "domain": "abellae.com", "status": "Active", "provider": "Squarespace", "expiration": "Jun 19, 2026", "emails": ["me@neurons.me","jabellae@gmail.com"], "notes": "Brand extension" },
|
|
6
|
+
{ "domain": "abellae.me", "status": "Active", "provider": "Squarespace", "expiration": "May 16, 2026", "emails": ["me@neurons.me","jabellae@gmail.com"], "notes": "Creative identity site" },
|
|
7
|
+
{ "domain": "abellae.music", "status": "Active", "provider": "Squarespace", "expiration": "Jun 19, 2026", "emails": ["me@neurons.me","jabellae@gmail.com"], "notes": "Music/creative brand" },
|
|
8
|
+
{ "domain": "abellae.love", "status": "Active", "provider": "Squarespace", "expiration": "Jun 19, 2026", "emails": ["me@neurons.me","jabellae@gmail.com"], "notes": "Love brand" },
|
|
9
|
+
{ "domain": "abellae.lol", "status": "Active", "provider": "Squarespace", "expiration": "Jun 19, 2026", "emails": ["me@neurons.me","jabellae@gmail.com"], "notes": "Fun brand" },
|
|
10
|
+
{ "domain": "abellae.art", "status": "Active", "provider": "Squarespace", "expiration": "Jun 19, 2026", "emails": ["me@neurons.me","jabellae@gmail.com"], "notes": "Art brand" },
|
|
11
|
+
{ "domain": "abellae.space", "status": "Active", "provider": "Squarespace", "expiration": "Jun 19, 2026", "emails": ["me@neurons.me","jabellae@gmail.com"], "notes": "Space brand" },
|
|
12
|
+
{ "domain": "abellae.design", "status": "Active", "provider": "Squarespace", "expiration": "Jun 19, 2026", "emails": ["me@neurons.me","jabellae@gmail.com"], "notes": "Design brand" },
|
|
13
|
+
{ "domain": "abellae.dev", "status": "Active", "provider": "Squarespace", "expiration": "Jun 19, 2026", "emails": ["me@neurons.me","jabellae@gmail.com"], "notes": "Dev brand" },
|
|
14
|
+
{ "domain": "abellae.io", "status": "Active", "provider": "Squarespace", "expiration": "Jun 19, 2026", "emails": ["me@neurons.me","jabellae@gmail.com"], "notes": "Tech brand" },
|
|
15
|
+
{ "domain": "suign.com", "status": "Active", "provider": "Squarespace", "expiration": "Jun 30, 2026", "emails": ["me@neurons.me","jabellae@gmail.com"], "notes": "Forwards to www.suign.com" }
|
|
16
|
+
];
|
|
17
|
+
|
|
18
|
+
const meta: Meta<typeof RootDomain> = {
|
|
19
|
+
title: 'RootDomain',
|
|
20
|
+
component: RootDomain,
|
|
21
|
+
parameters: {
|
|
22
|
+
layout: 'fullscreen',
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export default meta;
|
|
27
|
+
type Story = StoryObj<typeof RootDomain>;
|
|
28
|
+
|
|
29
|
+
export const Default: Story = {
|
|
30
|
+
render: () => <RootDomain services={RootDomainList} />,
|
|
31
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import React, { useState } from "react";
|
|
4
|
+
import { Box, Typography, Divider, Button, Stack, Paper } from "@/gui/components/atoms";
|
|
5
|
+
import Icon from "@/gui/Theme/Icon/Icon";
|
|
6
|
+
|
|
7
|
+
const staticServices = [
|
|
8
|
+
{
|
|
9
|
+
domain: "neurons.me",
|
|
10
|
+
status: "active",
|
|
11
|
+
provider: "Namecheap",
|
|
12
|
+
expiration: "2027-04-02",
|
|
13
|
+
emails: ["admin@neurons.me", "support@neurons.me"],
|
|
14
|
+
notes: "Primary neural platform domain."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
domain: "cleaker.com",
|
|
18
|
+
status: "active",
|
|
19
|
+
provider: "GoDaddy",
|
|
20
|
+
expiration: "2025-12-15",
|
|
21
|
+
emails: ["info@cleaker.com"],
|
|
22
|
+
notes: "Identity & login service."
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
domain: "netget.org",
|
|
26
|
+
status: "expired",
|
|
27
|
+
provider: "Google Domains",
|
|
28
|
+
expiration: "2022-08-10",
|
|
29
|
+
emails: [],
|
|
30
|
+
notes: "Renewal pending."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
domain: "ai-space.net",
|
|
34
|
+
status: "active",
|
|
35
|
+
provider: "Namecheap",
|
|
36
|
+
expiration: "2026-03-21",
|
|
37
|
+
emails: ["owner@ai-space.net", "contact@ai-space.net"],
|
|
38
|
+
notes: "AI experiments and demos."
|
|
39
|
+
}
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
function generateHash(input: string) {
|
|
43
|
+
let hash = 0;
|
|
44
|
+
for (let i = 0; i < input.length; i++) {
|
|
45
|
+
hash = (hash << 5) - hash + input.charCodeAt(i);
|
|
46
|
+
hash |= 0;
|
|
47
|
+
}
|
|
48
|
+
return Math.abs(hash).toString(16);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export default function RootDomain() {
|
|
52
|
+
const [chain, setChain] = useState(() => {
|
|
53
|
+
const genesis = {
|
|
54
|
+
id: 0,
|
|
55
|
+
timestamp: new Date().toISOString(),
|
|
56
|
+
data: "Genesis Block",
|
|
57
|
+
hash: generateHash("Genesis Block"),
|
|
58
|
+
};
|
|
59
|
+
return [genesis];
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
const addBlock = (data: string) => {
|
|
63
|
+
const last = chain[chain.length - 1];
|
|
64
|
+
const blockData = `${last.hash}-${data}-${Date.now()}`;
|
|
65
|
+
const newBlock = {
|
|
66
|
+
id: chain.length,
|
|
67
|
+
timestamp: new Date().toISOString(),
|
|
68
|
+
data,
|
|
69
|
+
hash: generateHash(blockData),
|
|
70
|
+
};
|
|
71
|
+
setChain([...chain, newBlock]);
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
return (
|
|
75
|
+
<Box sx={{ p: 4 }}>
|
|
76
|
+
<Paper sx={{ p: 2, mb: 4 }}>
|
|
77
|
+
<Typography variant="h6">Domains</Typography>
|
|
78
|
+
<Divider sx={{ my: 1 }} />
|
|
79
|
+
{staticServices.map((svc, idx) => (
|
|
80
|
+
<Box key={svc.domain + idx} sx={{ mb: 2 }}>
|
|
81
|
+
<Typography variant="subtitle1" sx={{ fontWeight: 700 }}>
|
|
82
|
+
{svc.domain}
|
|
83
|
+
</Typography>
|
|
84
|
+
<Typography variant="body2" color="text.secondary" sx={{ fontSize: "0.9em" }}>
|
|
85
|
+
Status: {svc.status} | Provider: {svc.provider} | Expiration: {svc.expiration}
|
|
86
|
+
</Typography>
|
|
87
|
+
<Typography variant="body2" color="text.secondary" sx={{ fontSize: "0.9em" }}>
|
|
88
|
+
Emails: {svc.emails && svc.emails.length > 0 ? svc.emails.join(", ") : <span style={{ color: "#aaa" }}>None</span>}
|
|
89
|
+
</Typography>
|
|
90
|
+
<Typography variant="body2" sx={{ fontStyle: "italic", color: "text.secondary" }}>
|
|
91
|
+
{svc.notes}
|
|
92
|
+
</Typography>
|
|
93
|
+
</Box>
|
|
94
|
+
))}
|
|
95
|
+
</Paper>
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
</Box>
|
|
99
|
+
);
|
|
100
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// ---------- STATIC REGISTRY (seed) ----------
|
|
2
|
+
const STATIC_SERVICES /** @type {Service[]} */ = [
|
|
3
|
+
{
|
|
4
|
+
id: "cleaker",
|
|
5
|
+
title: "Cleaker",
|
|
6
|
+
description: "Identity & login (dApp-ready)",
|
|
7
|
+
url: "https://cleaker.me",
|
|
8
|
+
tags: ["identity", "auth"],
|
|
9
|
+
status: "unknown",
|
|
10
|
+
protected: true,
|
|
11
|
+
icon: "unknown",
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
id: "neurons",
|
|
15
|
+
title: "neurons.me",
|
|
16
|
+
description: "Neural systems & models",
|
|
17
|
+
url: "https://neurons.me",
|
|
18
|
+
tags: ["ai", "models"],
|
|
19
|
+
status: "unknown",
|
|
20
|
+
protected: false,
|
|
21
|
+
icon: "unknown" ,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: "netget",
|
|
25
|
+
title: "Netget",
|
|
26
|
+
description: "Domain/route manager & relays",
|
|
27
|
+
url: "https://netget.me",
|
|
28
|
+
tags: ["infra", "routing"],
|
|
29
|
+
status: "unknown",
|
|
30
|
+
protected: false,
|
|
31
|
+
icon: "unknown",
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
export const staticServices = [
|
|
36
|
+
{
|
|
37
|
+
id: "cleaker",
|
|
38
|
+
title: "Cleaker",
|
|
39
|
+
description: "Identity & login (dApp-ready)",
|
|
40
|
+
url: "https://cleaker.me",
|
|
41
|
+
tags: ["identity", "auth"],
|
|
42
|
+
status: "unknown",
|
|
43
|
+
protected: true,
|
|
44
|
+
icon: "unknown",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: "neurons",
|
|
48
|
+
title: "neurons.me",
|
|
49
|
+
description: "Neural systems & models",
|
|
50
|
+
url: "https://neurons.me",
|
|
51
|
+
tags: ["ai", "models"],
|
|
52
|
+
status: "unknown",
|
|
53
|
+
protected: false,
|
|
54
|
+
icon: "unknown",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: "netget",
|
|
58
|
+
title: "Netget",
|
|
59
|
+
description: "Domain/route manager & relays",
|
|
60
|
+
url: "https://netget.me",
|
|
61
|
+
tags: ["infra", "routing"],
|
|
62
|
+
status: "unknown",
|
|
63
|
+
protected: false,
|
|
64
|
+
icon: "unknown",
|
|
65
|
+
},
|
|
66
|
+
];
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export async function runHuggingFace(model: string, input: string, token: string) {
|
|
2
|
+
const res = await fetch(`https://api-inference.huggingface.co/models/${model}`, {
|
|
3
|
+
method: "POST",
|
|
4
|
+
headers: {
|
|
5
|
+
"Authorization": `Bearer ${token}`,
|
|
6
|
+
"Content-Type": "application/json"
|
|
7
|
+
},
|
|
8
|
+
body: JSON.stringify({ inputs: input }),
|
|
9
|
+
});
|
|
10
|
+
return await res.json();
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const connectors = {
|
|
2
|
+
openai: async (prompt: string) => {
|
|
3
|
+
const res = await fetch("/api/openai", {
|
|
4
|
+
method: "POST",
|
|
5
|
+
body: JSON.stringify({ prompt }),
|
|
6
|
+
headers: { "Content-Type": "application/json" },
|
|
7
|
+
});
|
|
8
|
+
const data = await res.json();
|
|
9
|
+
return data.result;
|
|
10
|
+
},
|
|
11
|
+
huggingface: async (input: string) => {
|
|
12
|
+
const res = await fetch("/api/huggingface", {
|
|
13
|
+
method: "POST",
|
|
14
|
+
body: JSON.stringify({ inputs: input }),
|
|
15
|
+
headers: { "Content-Type": "application/json" },
|
|
16
|
+
});
|
|
17
|
+
return await res.json();
|
|
18
|
+
},
|
|
19
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import UncontainedUI from './window';
|
|
3
|
+
const meta: Meta<typeof UncontainedUI> = {
|
|
4
|
+
title: 'Components/Window',
|
|
5
|
+
component: UncontainedUI,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: 'fullscreen',
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof UncontainedUI>;
|
|
13
|
+
export const Default: Story = {
|
|
14
|
+
args: {},
|
|
15
|
+
render: () => (
|
|
16
|
+
<div style={{ width: '100vw', height: '100vh' }}>
|
|
17
|
+
<UncontainedUI />
|
|
18
|
+
</div>
|
|
19
|
+
),
|
|
20
|
+
};
|