Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

refactor: update imports and class names to use 'manus' prefix for consistency

nirholas609a454b6065
diff --git a/chat/index.html b/chat/index.html
index 9673658f0..25866989b 100644
--- a/chat/index.html
+++ b/chat/index.html
@@ -34,6 +34,14 @@
crossorigin="anonymous"
/>
<title>three.ws chat</title>
+ <script type="importmap">
+ {
+ "imports": {
+ "three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js",
+ "three/addons/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/"
+ }
+ }
+ </script>
</head>
<body>
<div id="app"></div>
diff --git a/chat/src/App.svelte b/chat/src/App.svelte
index 1f51604ba..dfcc11840 100644
--- a/chat/src/App.svelte
+++ b/chat/src/App.svelte
@@ -23,17 +23,17 @@
import ModelSelector from './ModelSelector.svelte';
import CompanyLogo from './CompanyLogo.svelte';
import { controller, remoteServer, config, params, toolSchema, syncServer, brandConfig, ttsEnabled, localAgentId, route, mode, websiteCategory } from './stores.js';
- import AuthPage from './three.ws/pages/AuthPage.svelte';
- import Pricing from './three.ws/pages/Pricing.svelte';
- import MarketingPage from './three.ws/pages/MarketingPage.svelte';
- import ResourcePage from './three.ws/pages/ResourcePage.svelte';
- import FeaturePage from './three.ws/pages/FeaturePage.svelte';
+ import AuthPage from './manus/pages/AuthPage.svelte';
+ import Pricing from './manus/pages/Pricing.svelte';
+ import MarketingPage from './manus/pages/MarketingPage.svelte';
+ import ResourcePage from './manus/pages/ResourcePage.svelte';
+ import FeaturePage from './manus/pages/FeaturePage.svelte';
import SettingsModal from './SettingsModal.svelte';
import ToolcallButton from './ToolcallButton.svelte';
import MessageContent from './MessageContent.svelte';
import Toolcall from './Toolcall.svelte';
import Modal from './Modal.svelte';
- import Composer from './three.ws/Composer.svelte';
+ import Composer from './manus/Composer.svelte';
import Icon from './Icon.svelte';
import {
feArrowUp,
@@ -67,12 +67,12 @@
import { deleteSingleItem, initEncryption, sendSingleItem, syncPull, syncPush } from './sync.js';
import AgentPicker from './AgentPicker.svelte';
import TalkingHead from './TalkingHead.svelte';
- import EmptyState from './three.ws/EmptyState.svelte';
- import SuggestionChips from './three.ws/SuggestionChips.svelte';
- import AnnouncementBanner from './three.ws/AnnouncementBanner.svelte';
- import TopNav from './three.ws/TopNav.svelte';
- import WebsiteFlow from './three.ws/flows/WebsiteFlow.svelte';
- import DesktopFlow from './three.ws/flows/DesktopFlow.svelte';
+ import EmptyState from './manus/EmptyState.svelte';
+ import SuggestionChips from './manus/SuggestionChips.svelte';
+ import AnnouncementBanner from './manus/AnnouncementBanner.svelte';
+ import TopNav from './manus/TopNav.svelte';
+ import WebsiteFlow from './manus/flows/WebsiteFlow.svelte';
+ import DesktopFlow from './manus/flows/DesktopFlow.svelte';
marked.use(
markedKatex({
diff --git a/chat/src/app.pcss b/chat/src/app.pcss
index ceade1f2f..efcf140a5 100644
--- a/chat/src/app.pcss
+++ b/chat/src/app.pcss
@@ -15,31 +15,31 @@
}
@layer components {
- .three.ws-card {
+ .manus-card {
@apply bg-white border border-rule rounded-2xl;
}
- .three.ws-chip {
+ .manus-chip {
@apply inline-flex items-center gap-2 h-9 px-4 rounded-full
border border-rule bg-white text-ink text-sm font-medium
hover:bg-paper-deep transition-colors;
}
- .three.ws-chip-selected {
- @apply bg-three.ws-blue-soft border-three.ws-blue-border text-three.ws-blue;
+ .manus-chip-selected {
+ @apply bg-manus-blue-soft border-manus-blue-border text-manus-blue;
}
- .three.ws-btn-primary {
+ .manus-btn-primary {
@apply inline-flex items-center justify-center h-9 px-4
rounded-full bg-black text-white text-sm font-medium
hover:bg-ink transition-colors;
}
- .three.ws-btn-ghost {
+ .manus-btn-ghost {
@apply inline-flex items-center justify-center h-9 px-4
rounded-full bg-transparent text-ink text-sm font-medium
hover:bg-paper-deep transition-colors;
}
- .three.ws-hero {
+ .manus-hero {
@apply font-serif text-ink text-[44px] md:text-[56px] leading-[1.05] tracking-tight font-medium;
}
- .three.ws-display {
+ .manus-display {
@apply font-serif text-ink text-[56px] md:text-[80px] leading-[1.02] tracking-tight font-semibold;
}
}
diff --git a/chat/src/manus/EmptyState.svelte b/chat/src/manus/EmptyState.svelte
index 924de456a..a693bb91b 100644
--- a/chat/src/manus/EmptyState.svelte
+++ b/chat/src/manus/EmptyState.svelte
@@ -6,7 +6,7 @@
</script>
<section class="w-full flex flex-col items-center px-6 pt-[18vh] md:pt-[22vh] pb-32">
- <h1 class="three.ws-hero text-center mb-9">What can I do for you?</h1>
+ <h1 class="manus-hero text-center mb-9">What can I do for you?</h1>
<div class="w-full max-w-[760px]">
<slot name="composer" />
</div>
diff --git a/chat/src/manus/SuggestionChips.svelte b/chat/src/manus/SuggestionChips.svelte
index 9e50a0594..f9fe43d46 100644
--- a/chat/src/manus/SuggestionChips.svelte
+++ b/chat/src/manus/SuggestionChips.svelte
@@ -21,7 +21,7 @@
<div class="flex flex-wrap gap-3 justify-center mt-4">
{#each chips as c}
<button
- class="three.ws-chip {$mode === c.id ? 'three.ws-chip-selected' : ''}"
+ class="manus-chip {$mode === c.id ? 'manus-chip-selected' : ''}"
on:click={() => pick(c.id)}
>
<Icon icon={c.icon} class="h-4 w-4" />
@@ -29,7 +29,7 @@
</button>
{/each}
<div class="relative">
- <button class="three.ws-chip" on:click={() => (moreOpen = !moreOpen)}>
+ <button class="manus-chip" on:click={() => (moreOpen = !moreOpen)}>
<Icon icon={feMoreHorizontal} class="h-4 w-4" />
More
</button>
diff --git a/chat/src/manus/TopNav.svelte b/chat/src/manus/TopNav.svelte
index c0b7a51da..92e5bf755 100644
--- a/chat/src/manus/TopNav.svelte
+++ b/chat/src/manus/TopNav.svelte
@@ -1,7 +1,7 @@
<script>
import { route } from '../stores.js';
import Icon from '../Icon.svelte';
- import { feMenu, feX, feCpu } from '../feather.js';
+ import { feMenu, feX } from '../feather.js';
import FeaturesDropdown from './dropdowns/FeaturesDropdown.svelte';
import SolutionsDropdown from './dropdowns/SolutionsDropdown.svelte';
import ResourcesDropdown from './dropdowns/ResourcesDropdown.svelte';
@@ -52,7 +52,7 @@
class="flex items-center gap-2 text-ink"
on:click={() => route.set('chat')}
>
- <Icon icon={feCpu} class="h-5 w-5" />
+ <img src="{import.meta.env.BASE_URL}three.svg" alt="three.ws" class="h-5 w-5" />
<span class="font-serif text-[22px] font-semibold lowercase tracking-tight">three.ws</span>
</button>
@@ -197,7 +197,7 @@
</header>
<style>
- :global(.three.ws-card) {
+ :global(.manus-card) {
background: #F5F4EF;
border: 1px solid #E5E3DC;
border-radius: 12px;
diff --git a/chat/tailwind.config.cjs b/chat/tailwind.config.cjs
index 09a1df881..9004f80e6 100644
--- a/chat/tailwind.config.cjs
+++ b/chat/tailwind.config.cjs
@@ -96,7 +96,7 @@ const config = {
ink: '#1A1A1A',
'ink-soft': '#6B6B6B',
rule: '#E5E3DC',
- three.ws: {
+ manus: {
blue: '#3B82F6',
'blue-soft': '#EFF6FF',
'blue-border': '#BFDBFE',
diff --git a/public/chat/index.html b/public/chat/index.html
index 094acb584..1024c0782 100644
--- a/public/chat/index.html
+++ b/public/chat/index.html
@@ -34,8 +34,17 @@
crossorigin="anonymous"
/>
<title>three.ws chat</title>
- <script type="module" crossorigin src="/chat/assets/index-DtRh3XUY.js"></script>
- <link rel="stylesheet" crossorigin href="/chat/assets/index-CVjzVYsZ.css">
+
+ <script type="importmap">
+ {
+ "imports": {
+ "three": "https://cdn.jsdelivr.net/npm/[email protected]/build/three.module.js",
+ "three/addons/": "https://cdn.jsdelivr.net/npm/[email protected]/examples/jsm/"
+ }
+ }
+ </script>
+ <script type="module" crossorigin src="/chat/assets/index-BCO4lpvp.js"></script>
+ <link rel="stylesheet" crossorigin href="/chat/assets/index-B3kWrhvO.css">
</head>
<body>
<div id="app"></div>