Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify ui #2

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions web/app/(commonLayout)/apps/page.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import style from '../list.module.css'
// import style from '../list.module.css'
import Apps from './Apps'
import classNames from '@/utils/classnames'
import { getLocaleOnServer, useTranslation as translate } from '@/i18n/server'
// import classNames from '@/utils/classnames'
// import { getLocaleOnServer, useTranslation as translate } from '@/i18n/server'

const AppList = async () => {
const locale = getLocaleOnServer()
const { t } = await translate(locale, 'app')
// const locale = getLocaleOnServer()
// const { t } = await translate(locale, 'app')

return (
<div className='relative flex flex-col overflow-y-auto bg-gray-100 shrink-0 h-0 grow'>
<Apps />
<footer className='px-12 py-6 grow-0 shrink-0'>
<h3 className='text-xl font-semibold leading-tight text-gradient'>{t('join')}</h3>
{/* <h3 className='text-xl font-semibold leading-tight text-gradient'>{t('join')}</h3>
<p className='mt-1 text-sm font-normal leading-tight text-gray-700'>{t('communityIntro')}</p>
<div className='flex items-center gap-2 mt-3'>
<a className={style.socialMediaLink} target='_blank' rel='noopener noreferrer' href='https://github.com/langgenius/dify'><span className={classNames(style.socialMediaIcon, style.githubIcon)} /></a>
<a className={style.socialMediaLink} target='_blank' rel='noopener noreferrer' href='https://discord.gg/FngNHpbcY7'><span className={classNames(style.socialMediaIcon, style.discordIcon)} /></a>
</div>
</div> */}
</footer>
</div >
)
Expand Down
3 changes: 2 additions & 1 deletion web/app/components/base/logo/logo-site.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const LogoSite: FC<LogoSiteProps> = ({
}
})

const src = theme === 'light' ? '/logo/logo-site.png' : `/logo/logo-site-${theme}.png`
const src = 'https://static.wixstatic.com/media/4741be_2f062f6c8ef74708b64652131fad6f07~mv2.png/v1/fill/w_30,h_34,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/Frame%201597883169.png'

return (
<img
src={src}
Expand Down
14 changes: 7 additions & 7 deletions web/app/components/header/account-about/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
'use client'
import { useTranslation } from 'react-i18next'
import Link from 'next/link'
// import Link from 'next/link'
import dayjs from 'dayjs'
import { RiCloseLine } from '@remixicon/react'
import s from './index.module.css'
import classNames from '@/utils/classnames'
// import classNames from '@/utils/classnames'
import Modal from '@/app/components/base/modal'
import type { LangGeniusVersionResponse } from '@/models/common'
import { IS_CE_EDITION } from '@/config'
// import { IS_CE_EDITION } from '@/config'
import LogoSite from '@/app/components/base/logo/logo-site'

type IAccountSettingProps = {
Expand Down Expand Up @@ -40,7 +40,7 @@ export default function AccountAbout({
<div className='mb-3 text-center text-xs font-normal text-gray-500'>Version {langeniusVersionInfo?.current_version}</div>
<div className='mb-4 text-center text-xs font-normal text-gray-700'>
<div>© {dayjs().year()} LangGenius, Inc., Contributors.</div>
<div className='text-[#1C64F2]'>
{/* <div className='text-[#1C64F2]'>
{
IS_CE_EDITION
? <Link href={'https://github.com/langgenius/dify/blob/main/LICENSE'} target='_blank' rel='noopener noreferrer'>Open Source License</Link>
Expand All @@ -49,7 +49,7 @@ export default function AccountAbout({
<Link href='https://dify.ai/terms' target='_blank' rel='noopener noreferrer'>Terms of Service</Link>
</>
}
</div>
</div> */}
</div>
</div>
<div className='mb-4 -mx-8 h-[0.5px] bg-gray-200' />
Expand All @@ -62,7 +62,7 @@ export default function AccountAbout({
}
</div>
<div className='flex items-center'>
<Link
{/* <Link
className={classNames(buttonClassName, 'mr-2')}
href={'https://github.com/langgenius/dify/releases'}
target='_blank' rel='noopener noreferrer'
Expand All @@ -79,7 +79,7 @@ export default function AccountAbout({
{t('common.about.updateNow')}
</Link>
)
}
} */}
</div>
</div>
</div>
Expand Down
11 changes: 4 additions & 7 deletions web/app/components/header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use client'
import { useCallback, useEffect } from 'react'
import Link from 'next/link'
import { useBoolean } from 'ahooks'
import { useSelectedLayoutSegment } from 'next/navigation'
import { Bars3Icon } from '@heroicons/react/20/solid'
Expand All @@ -11,10 +10,8 @@ import DatasetNav from './dataset-nav'
import EnvNav from './env-nav'
import ExploreNav from './explore-nav'
import ToolsNav from './tools-nav'
import GithubStar from './github-star'
import { WorkspaceProvider } from '@/context/workspace-context'
import { useAppContext } from '@/context/app-context'
import LogoSite from '@/app/components/base/logo/logo-site'
import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'
import { useProviderContext } from '@/context/provider-context'
import { useModalContext } from '@/context/modal-context'
Expand Down Expand Up @@ -55,21 +52,21 @@ const Header = () => {
>
<Bars3Icon className="h-4 w-4 text-gray-500" />
</div>}
{!isMobile && <>
{/* {!isMobile && <>
<Link href="/apps" className='flex items-center mr-4'>
<LogoSite className='object-contain' />
</Link>
<GithubStar />
</>}
</>} */}
</div>
{isMobile && (
{/* {isMobile && (
<div className='flex'>
<Link href="/apps" className='flex items-center mr-4'>
<LogoSite />
</Link>
<GithubStar />
</div>
)}
)} */}
{!isMobile && (
<div className='flex items-center'>
{!isCurrentWorkspaceDatasetOperator && <ExploreNav className={navClassName} />}
Expand Down
2 changes: 1 addition & 1 deletion web/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import './styles/globals.css'
import './styles/markdown.scss'

export const metadata = {
title: 'Dify',
title: 'AiInOne',
}

export const viewport: Viewport = {
Expand Down
2 changes: 1 addition & 1 deletion web/i18n/de-DE/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ const translation = {
apiBasedExtension: {
title: 'API-Erweiterungen bieten zentralisiertes API-Management und vereinfachen die Konfiguration für eine einfache Verwendung in Difys Anwendungen.',
link: 'Erfahren Sie, wie Sie Ihre eigene API-Erweiterung entwickeln.',
linkUrl: 'https://docs.dify.ai/features/extension/api_based_extension',
linkUrl: 'https://docs.aiinone.ai/features/extension/api_based_extension',
add: 'API-Erweiterung hinzufügen',
selector: {
title: 'API-Erweiterung',
Expand Down
2 changes: 1 addition & 1 deletion web/i18n/de-DE/dataset-creation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const translation = {
unknownError: 'Unbekannter Fehler',
resetAll: 'Alles zurücksetzen',
extractOnlyMainContent: 'Extrahieren Sie nur den Hauptinhalt (keine Kopf-, Navigations- und Fußzeilen usw.)',
firecrawlDocLink: 'https://docs.dify.ai/guides/knowledge-base/sync-from-website',
firecrawlDocLink: 'https://docs.aiinone.ai/guides/knowledge-base/sync-from-website',
firecrawlTitle: 'Extrahieren von Webinhalten mit 🔥Firecrawl',
maxDepthTooltip: 'Maximale Tiefe für das Crawlen relativ zur eingegebenen URL. Tiefe 0 kratzt nur die Seite der eingegebenen URL, Tiefe 1 kratzt die URL und alles nach der eingegebenen URL + ein / und so weiter.',
crawlSubPage: 'Unterseiten crawlen',
Expand Down
18 changes: 9 additions & 9 deletions web/i18n/en-US/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const translation = {
account: {
account: 'Account',
myAccount: 'My Account',
studio: 'Dify Studio',
studio: 'aiinone Studio',
avatar: 'Avatar',
name: 'Name',
email: 'Email',
Expand All @@ -171,8 +171,8 @@ const translation = {
newPassword: 'New password',
confirmPassword: 'Confirm password',
notEqual: 'Two passwords are different.',
langGeniusAccount: 'Dify account',
langGeniusAccountTip: 'Your Dify account and associated user data.',
langGeniusAccount: 'aiinone account',
langGeniusAccountTip: 'Your aiinone account and associated user data.',
editName: 'Edit Name',
showAppLength: 'Show {{length}} apps',
delete: 'Delete Account',
Expand Down Expand Up @@ -205,7 +205,7 @@ const translation = {
sendInvite: 'Send Invite',
invitedAsRole: 'Invited as {{role}} user',
invitationSent: 'Invitation sent',
invitationSentTip: 'Invitation sent, and they can sign in to Dify to access your team data.',
invitationSentTip: 'Invitation sent, and they can sign in to aiinone to access your team data.',
invitationLink: 'Invitation Link',
failedInvitationEmails: 'Below users were not invited successfully',
ok: 'OK',
Expand Down Expand Up @@ -254,7 +254,7 @@ const translation = {
openaiHosted: 'Hosted OpenAI',
onTrial: 'ON TRIAL',
exhausted: 'QUOTA EXHAUSTED',
desc: 'The OpenAI hosting service provided by Dify allows you to use models such as GPT-3.5. Before your trial quota is used up, you need to set up other model providers.',
desc: 'The OpenAI hosting service provided by aiinone allows you to use models such as GPT-3.5. Before your trial quota is used up, you need to set up other model providers.',
callTimes: 'Call times',
usedUp: 'Trial quota used up. Add own Model Provider.',
useYourModel: 'Currently using own Model Provider.',
Expand Down Expand Up @@ -421,9 +421,9 @@ const translation = {
},
},
apiBasedExtension: {
title: 'API extensions provide centralized API management, simplifying configuration for easy use across Dify\'s applications.',
title: 'API extensions provide centralized API management, simplifying configuration for easy use across aiinone\'s applications.',
link: 'Learn how to develop your own API Extension.',
linkUrl: 'https://docs.dify.ai/features/extension/api_based_extension',
linkUrl: 'https://docs.aiinone.ai/features/extension/api_based_extension',
add: 'Add API Extension',
selector: {
title: 'API Extension',
Expand Down Expand Up @@ -452,8 +452,8 @@ const translation = {
about: {
changeLog: 'Changelog',
updateNow: 'Update now',
nowAvailable: 'Dify {{version}} is now available.',
latestAvailable: 'Dify {{version}} is the latest version available.',
nowAvailable: 'aiinone {{version}} is now available.',
latestAvailable: 'aiinone {{version}} is the latest version available.',
},
appMenus: {
overview: 'Monitoring',
Expand Down
4 changes: 2 additions & 2 deletions web/i18n/en-US/dataset-creation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const translation = {
run: 'Run',
firecrawlTitle: 'Extract web content with 🔥Firecrawl',
firecrawlDoc: 'Firecrawl docs',
firecrawlDocLink: 'https://docs.dify.ai/guides/knowledge-base/sync-from-website',
firecrawlDocLink: 'https://docs.aiinone.ai/guides/knowledge-base/sync-from-website',
jinaReaderTitle: 'Convert the entire site to Markdown',
jinaReaderDoc: 'Learn more about Jina Reader',
jinaReaderDocLink: 'https://jina.ai/reader',
Expand Down Expand Up @@ -156,7 +156,7 @@ const translation = {
},
stepThree: {
creationTitle: '🎉 Knowledge created',
creationContent: 'We automatically named the Knowledge, you can modify it at any time',
creationContent: 'We automatically named the Knowledge, you can moaiinone it at any time',
label: 'Knowledge name',
additionTitle: '🎉 Document uploaded',
additionP1: 'The document has been uploaded to the Knowledge',
Expand Down
18 changes: 9 additions & 9 deletions web/i18n/es-ES/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,16 @@ const translation = {
newPassword: 'Nueva contraseña',
confirmPassword: 'Confirmar contraseña',
notEqual: 'Las dos contraseñas son diferentes.',
langGeniusAccount: 'Cuenta Dify',
langGeniusAccountTip: 'Tu cuenta Dify y los datos de usuario asociados.',
langGeniusAccount: 'Cuenta aiinone',
langGeniusAccountTip: 'Tu cuenta aiinone y los datos de usuario asociados.',
editName: 'Editar Nombre',
showAppLength: 'Mostrar {{length}} apps',
delete: 'Eliminar cuenta',
deleteTip: 'Eliminar tu cuenta borrará permanentemente todos tus datos y no se podrán recuperar.',
deleteConfirmTip: 'Para confirmar, por favor envía lo siguiente desde tu correo electrónico registrado a ',
account: 'Cuenta',
myAccount: 'Mi Cuenta',
studio: 'Estudio Dify',
studio: 'Estudio aiinone',
},
members: {
team: 'Equipo',
Expand Down Expand Up @@ -205,7 +205,7 @@ const translation = {
sendInvite: 'Enviar invitación',
invitedAsRole: 'Invitado como usuario {{role}}',
invitationSent: 'Invitación enviada',
invitationSentTip: 'Invitación enviada, y pueden iniciar sesión en Dify para acceder a tus datos del equipo.',
invitationSentTip: 'Invitación enviada, y pueden iniciar sesión en aiinone para acceder a tus datos del equipo.',
invitationLink: 'Enlace de invitación',
failedInvitationEmails: 'Los siguientes usuarios no fueron invitados exitosamente',
ok: 'OK',
Expand Down Expand Up @@ -254,7 +254,7 @@ const translation = {
openaiHosted: 'OpenAI Hospedado',
onTrial: 'EN PRUEBA',
exhausted: 'CUOTA AGOTADA',
desc: 'El servicio de hospedaje OpenAI proporcionado por Dify te permite usar modelos como GPT-3.5. Antes de que se agote tu cuota de prueba, necesitas configurar otros proveedores de modelos.',
desc: 'El servicio de hospedaje OpenAI proporcionado por aiinone te permite usar modelos como GPT-3.5. Antes de que se agote tu cuota de prueba, necesitas configurar otros proveedores de modelos.',
callTimes: 'Tiempos de llamada',
usedUp: 'Cuota de prueba agotada. Agrega tu propio proveedor de modelos.',
useYourModel: 'Actualmente usando tu propio proveedor de modelos.',
Expand Down Expand Up @@ -421,9 +421,9 @@ const translation = {
},
},
apiBasedExtension: {
title: 'Las extensiones basadas en API proporcionan una gestión centralizada de API, simplificando la configuración para su fácil uso en las aplicaciones de Dify.',
title: 'Las extensiones basadas en API proporcionan una gestión centralizada de API, simplificando la configuración para su fácil uso en las aplicaciones de aiinone.',
link: 'Aprende cómo desarrollar tu propia Extensión API.',
linkUrl: 'https://docs.dify.ai/features/extension/api_based_extension',
linkUrl: 'https://docs.aiinone.ai/features/extension/api_based_extension',
add: 'Agregar Extensión API',
selector: {
title: 'Extensión API',
Expand Down Expand Up @@ -452,8 +452,8 @@ const translation = {
about: {
changeLog: 'Registro de cambios',
updateNow: 'Actualizar ahora',
nowAvailable: 'Dify {{version}} ya está disponible.',
latestAvailable: 'Dify {{version}} es la última versión disponible.',
nowAvailable: 'aiinone {{version}} ya está disponible.',
latestAvailable: 'aiinone {{version}} es la última versión disponible.',
},
appMenus: {
overview: 'Monitoreo',
Expand Down
2 changes: 1 addition & 1 deletion web/i18n/es-ES/dataset-creation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const translation = {
run: 'Ejecutar',
firecrawlTitle: 'Extraer contenido web con 🔥Firecrawl',
firecrawlDoc: 'Documentación de Firecrawl',
firecrawlDocLink: 'https://docs.dify.ai/guides/knowledge-base/sync-from-website',
firecrawlDocLink: 'https://docs.aiinone.ai/guides/knowledge-base/sync-from-website',
options: 'Opciones',
crawlSubPage: 'Rastrear subpáginas',
limit: 'Límite',
Expand Down
18 changes: 9 additions & 9 deletions web/i18n/fa-IR/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,16 @@ const translation = {
newPassword: 'رمز عبور جدید',
confirmPassword: 'تأیید رمز عبور',
notEqual: 'دو رمز عبور متفاوت هستند.',
langGeniusAccount: 'حساب Dify',
langGeniusAccountTip: 'حساب Dify شما و داده‌های کاربری مرتبط.',
langGeniusAccount: 'حساب aiinone',
langGeniusAccountTip: 'حساب aiinone شما و داده‌های کاربری مرتبط.',
editName: 'ویرایش نام',
showAppLength: 'نمایش {{length}} برنامه',
delete: 'حذف حساب کاربری',
deleteTip: 'حذف حساب کاربری شما تمام داده‌های شما را به طور دائمی پاک می‌کند و قابل بازیابی نیست.',
deleteConfirmTip: 'برای تأیید، لطفاً موارد زیر را از ایمیل ثبت‌نام شده خود به این آدرس ارسال کنید ',
account: 'حساب',
myAccount: 'حساب من',
studio: 'استودیو Dify',
studio: 'استودیو aiinone',
},
members: {
team: 'تیم',
Expand Down Expand Up @@ -205,7 +205,7 @@ const translation = {
sendInvite: 'ارسال دعوت',
invitedAsRole: 'به عنوان کاربر {{role}} دعوت شده',
invitationSent: 'دعوت‌نامه ارسال شد',
invitationSentTip: 'دعوت‌نامه ارسال شد و آنها می‌توانند وارد Dify شوند تا به داده‌های تیم شما دسترسی پیدا کنند.',
invitationSentTip: 'دعوت‌نامه ارسال شد و آنها می‌توانند وارد aiinone شوند تا به داده‌های تیم شما دسترسی پیدا کنند.',
invitationLink: 'لینک دعوت',
failedInvitationEmails: 'کاربران زیر با موفقیت دعوت نشدند',
ok: 'تایید',
Expand Down Expand Up @@ -254,7 +254,7 @@ const translation = {
openaiHosted: 'OpenAI میزبانی شده',
onTrial: 'در حال آزمایش',
exhausted: 'سهمیه تمام شده',
desc: 'سرویس میزبانی OpenAI ارائه شده توسط Dify به شما اجازه می‌دهد از مدل‌هایی مانند GPT-3.5 استفاده کنید. قبل از اتمام سهمیه آزمایشی خود، باید سایر ارائه‌دهندگان مدل را تنظیم کنید.',
desc: 'سرویس میزبانی OpenAI ارائه شده توسط aiinone به شما اجازه می‌دهد از مدل‌هایی مانند GPT-3.5 استفاده کنید. قبل از اتمام سهمیه آزمایشی خود، باید سایر ارائه‌دهندگان مدل را تنظیم کنید.',
callTimes: 'تعداد فراخوانی',
usedUp: 'سهمیه آزمایشی تمام شده است. ارائه‌دهنده مدل خود را اضافه کنید.',
useYourModel: 'در حال حاضر از ارائه‌دهنده مدل خود استفاده می‌کنید.',
Expand Down Expand Up @@ -421,9 +421,9 @@ const translation = {
},
},
apiBasedExtension: {
title: 'افزونه‌های مبتنی بر API مدیریت متمرکز API را فراهم می‌کنند و پیکربندی را برای استفاده آسان در برنامه‌های Dify ساده می‌کنند.',
title: 'افزونه‌های مبتنی بر API مدیریت متمرکز API را فراهم می‌کنند و پیکربندی را برای استفاده آسان در برنامه‌های aiinone ساده می‌کنند.',
link: 'نحوه توسعه افزونه API خود را بیاموزید.',
linkUrl: 'https://docs.dify.ai/features/extension/api_based_extension',
linkUrl: 'https://docs.aiinone.ai/features/extension/api_based_extension',
add: 'افزودن افزونه API',
selector: {
title: 'افزونه API',
Expand Down Expand Up @@ -452,8 +452,8 @@ const translation = {
about: {
changeLog: 'تغییرات',
updateNow: 'به‌روزرسانی اکنون',
nowAvailable: 'Dify {{version}} اکنون در دسترس است.',
latestAvailable: 'Dify {{version}} آخرین نسخه در دسترس است.',
nowAvailable: 'aiinone {{version}} اکنون در دسترس است.',
latestAvailable: 'aiinone {{version}} آخرین نسخه در دسترس است.',
},
appMenus: {
overview: 'نظارت',
Expand Down
2 changes: 1 addition & 1 deletion web/i18n/fa-IR/dataset-creation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const translation = {
run: 'اجرا',
firecrawlTitle: 'استخراج محتوای وب با fireFirecrawl',
firecrawlDoc: 'مستندات Firecrawl',
firecrawlDocLink: '<a href="https://docs.dify.ai/guides/knowledge-base/sync-from-website">https://docs.dify.ai/guides/knowledge-base/sync-from-website</a>',
firecrawlDocLink: '<a href="https://docs.aiinone.ai/guides/knowledge-base/sync-from-website">https://docs.aiinone.ai/guides/knowledge-base/sync-from-website</a>',
options: 'گزینهها',
crawlSubPage: 'خزش صفحات فرعی',
limit: 'محدودیت',
Expand Down
Loading