-
Notifications
You must be signed in to change notification settings - Fork 15
Add optional moeflow-companion service #38
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
Closed
Closed
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
a4bd396
add runtimeConfig to state tree
jokester 4fcf8a4
cleanup
jokester e399d85
remove tla
jokester f6f82ff
move old service
jokester 8cdce06
init gradio client
jokester 0a36d0c
simplify FileList
jokester 507fa21
config: add default model name
jokester 31930fe
format
jokester d4c89d9
format code
jokester 492b055
simplify ProjectFiles
jokester 74e4002
locale
jokester d0e7ab9
apply locale
jokester 4517128
apply locale
jokester d1f8f83
locale
jokester cfa7415
add Makefile
jokester f6285fa
extract smaller hooks
jokester 219c384
fix
jokester c8279e3
update translations & format code
jokester b673879
wip
jokester 88b2938
move files
jokester 6744e82
move files
jokester d6fa56a
dev only: when hot reloading, create api client with store.user.token
jokester 0ddc876
cleanup
jokester a8c6700
comment
jokester 5eb7668
cleanup
jokester 4538da3
export more
jokester 83ac745
wip
jokester File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,3 +28,4 @@ yarn-error.log* | |
| .vscode/* | ||
| .idea | ||
| stats.html | ||
| /public/moeflow-runtime-config.json | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| locale-json: src/locales/en.json src/locales/zh-cn.json | ||
|
|
||
| locale-json-watch: | ||
| watch make locale-json | ||
|
|
||
| format: | ||
| npm run format:fix | ||
|
|
||
| src/locales/en.json: src/locales/messages.yaml | ||
| node_modules/.bin/tsx scripts/generate-locale-json.ts | ||
|
|
||
| src/locales/zh-cn.json: src/locales/messages.yaml | ||
| node_modules/.bin/tsx scripts/generate-locale-json.ts | ||
|
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "comment": "Runtime configuration overrides. See src/configs.tsx", | ||
| "moeflowCompanion": { | ||
| "gradioUrl": "http://localhost:7860", | ||
| "defaultMultimodalModel": "gemini-2.0-flash-lite" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,67 +1,60 @@ | ||
| export { Icon } from './icon'; | ||
| export { ApplicationList } from './ApplicationList'; | ||
| export { AuthFormWrapper } from './AuthFormWrapper'; | ||
| export { AuthLoginedTip } from './AuthLoginedTip'; | ||
| export { Avatar } from './Avatar'; | ||
| export { Button } from './Button'; | ||
| export { CAPTCHAInput } from './CAPTCHAInput'; | ||
| export { CAPTCHAModal } from './CAPTCHAModal'; | ||
| export { Content } from './Content'; | ||
| export { ContentItem } from './ContentItem'; | ||
| export { ContentTitle } from './ContentTitle'; | ||
| export { DashboardBox } from './DashboardBox'; | ||
| export { DashboardMenu } from './DashboardMenu'; | ||
| export { DebounceStatus } from './DebounceStatus'; | ||
| export { Dropdown } from './Dropdown'; | ||
| export { EmailInput } from './EmailInput'; | ||
| export { EmailVCodeInputItem } from './EmailVCodeInputItem'; | ||
| export { EmptyTip } from './EmptyTip'; | ||
| export { FileCover } from './FileCover'; | ||
| export { FileItem } from './FileItem'; | ||
| export { FileList } from './FileList'; | ||
| export { FileUploadProgress } from './FileUploadProgress'; | ||
| export { Form } from './Form'; | ||
| export { FormItem } from './FormItem'; | ||
| export { GroupJoinForm } from './GroupJoinForm'; | ||
| export { Header } from './Header'; | ||
| export { ApplicationList } from './shared-member/ApplicationList'; | ||
| export { AuthFormWrapper } from './shared-form/AuthFormWrapper'; | ||
| export { Avatar } from './shared/Avatar'; | ||
| export { Button } from './shared/Button'; | ||
| export { CAPTCHAInput } from './shared-form/CAPTCHAInput'; | ||
| export { CAPTCHAModal } from './shared-form/CAPTCHAModal'; | ||
| export { Content } from './shared/Content'; | ||
| export { ContentItem } from './shared/ContentItem'; | ||
| export { ContentTitle } from './shared/ContentTitle'; | ||
| export { DashboardBox } from './shared/DashboardBox'; | ||
| export { DashboardMenu } from './dashboard/DashboardMenu'; | ||
| export { DebounceStatus } from './shared/DebounceStatus'; | ||
| export { Dropdown } from './shared/Dropdown'; | ||
| export { EmailInput } from './shared-form/EmailInput'; | ||
| export { EmailVCodeInputItem } from './shared-form/EmailVCodeInputItem'; | ||
| export { EmptyTip } from './shared/EmptyTip'; | ||
| export { FileList } from './project/FileList'; | ||
| export { Form } from './shared-form/Form'; | ||
| export { FormItem } from './shared-form/FormItem'; | ||
| export { GroupJoinForm } from './shared-form/GroupJoinForm'; | ||
| export { Header } from './shared/Header'; | ||
| export { useHotKey } from './HotKey'; | ||
| export { ImageOCRProgress } from './ImageOCRProgress'; | ||
| export { InvitationList } from './InvitationList'; | ||
| export { InviteUser } from './InviteUser'; | ||
| export { Label } from './Label'; | ||
| export { LanguageSelect } from './LanguageSelect'; | ||
| export { List } from './List'; | ||
| export { ListItem, LIST_ITEM_DEFAULT_HEIGHT } from './ListItem'; | ||
| export { ListSearchInput } from './ListSearchInput'; | ||
| export { ListSkeletonItem } from './ListSkeletonItem'; | ||
| export { LoadingIcon } from './LoadingIcon'; | ||
| export { MemberList } from './MemberList'; | ||
| export { MovableArea, MovableItem } from './Movable'; | ||
| export { NavTab } from './NavTab'; | ||
| export { NavTabs } from './NavTabs'; | ||
| export { Output } from './Output'; | ||
| export { OutputList } from './OutputList'; | ||
| export { ProjectItem } from './ProjectItem'; | ||
| export { ProjectList } from './ProjectList'; | ||
| export { ProjectSetCreateForm } from './ProjectSetCreateForm'; | ||
| export { ProjectSetEditForm } from './ProjectSetEditForm'; | ||
| export { ProjectSetList } from './ProjectSetList'; | ||
| export { ProjectSetSettingBase } from './ProjectSetSettingBase'; | ||
| export { RoleRadioGroup } from './RoleRadioGroup'; | ||
| export { RoleSelect } from './RoleSelect'; | ||
| export { Spin } from './Spin'; | ||
| export { TabBarM } from './TabBarM'; | ||
| export { TeamCreateForm } from './TeamCreateForm'; | ||
| export { TeamEditForm } from './TeamEditForm'; | ||
| export { TeamInsightProjectList } from './TeamInsightProjectList'; | ||
| export { TeamInsightUserList } from './TeamInsightUserList'; | ||
| export { TeamList } from './TeamList'; | ||
| export { TeamSearchList } from './TeamSearchList'; | ||
| export { TeamSettingBase } from './TeamSettingBase'; | ||
| export { Tooltip } from './Tooltip'; | ||
| export { TranslationProgress } from './TranslationProgress'; | ||
| export { TypeRadioGroup } from './TypeRadioGroup'; | ||
| export { UserEmailEditForm } from './UserEmailEditForm'; | ||
| export { UserInvitationList } from './UserInvitationList'; | ||
| export { UserPasswordEditForm } from './UserPasswordEditForm'; | ||
| export { VCodeInput } from './VCodeInput'; | ||
| export { InvitationList } from './shared-member/InvitationList'; | ||
| export { InviteUser } from './shared-member/InviteUser'; | ||
| export { Label } from './shared/Label'; | ||
| export { LanguageSelect } from './project/LanguageSelect'; | ||
| export { List } from './shared/List'; | ||
| export { ListItem, LIST_ITEM_DEFAULT_HEIGHT } from './shared/ListItem'; | ||
| export { ListSearchInput } from './shared/ListSearchInput'; | ||
| export { ListSkeletonItem } from './shared/ListSkeletonItem'; | ||
| export { LoadingIcon } from './shared/LoadingIcon'; | ||
| export { MemberList } from './shared-form/MemberList'; | ||
| export { MovableArea, MovableItem } from './shared/Movable'; | ||
| export { NavTab } from './shared/NavTab'; | ||
| export { NavTabs } from './shared/NavTabs'; | ||
| export { OutputList } from './project/OutputList'; | ||
| export { ProjectList } from './project-list/ProjectList'; | ||
| export { ProjectSetCreateForm } from './project-set/ProjectSetCreateForm'; | ||
| export { ProjectSetEditForm } from './project-set/ProjectSetEditForm'; | ||
| export { ProjectSetList } from './project-set/ProjectSetList'; | ||
| export { ProjectSetSettingBase } from './project-set/ProjectSetSettingBase'; | ||
| export { RoleRadioGroup } from './shared-form/RoleRadioGroup'; | ||
| export { RoleSelect } from './shared-form/RoleSelect'; | ||
| export { Spin } from './shared/Spin'; | ||
| export { TabBarM } from './shared/TabBarM'; | ||
| export { TeamCreateForm } from './team/TeamCreateForm'; | ||
| export { TeamEditForm } from './team/TeamEditForm'; | ||
| export { TeamInsightProjectList } from './team/TeamInsightProjectList'; | ||
| export { TeamInsightUserList } from './team/TeamInsightUserList'; | ||
| export { TeamList } from './team/TeamList'; | ||
| export { TeamSearchList } from './team/TeamSearchList'; | ||
| export { TeamSettingBase } from './team/TeamSettingBase'; | ||
| export { Tooltip } from './shared/Tooltip'; | ||
| export { TranslationProgress } from './shared/TranslationProgress'; | ||
| export { TypeRadioGroup } from './shared-form/TypeRadioGroup'; | ||
| export { UserEmailEditForm } from './shared-form/UserEmailEditForm'; | ||
| export { UserInvitationList } from './shared-member/UserInvitationList'; | ||
| export { UserPasswordEditForm } from './shared-form/UserPasswordEditForm'; | ||
| export { VCodeInput } from './shared-form/VCodeInput'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Authorization header only set at creation and only in development — will drop auth in production and on token refresh.
Switch to a request interceptor that reads the latest store token for every request (works in all envs) and remove the dev-only header path.
Apply:
📝 Committable suggestion
🤖 Prompt for AI Agents