Skip to content

Commit

Permalink
Revert "feat: support Popup login"
Browse files Browse the repository at this point in the history
This reverts commit 6dd23bc.
  • Loading branch information
RaoHai committed Sep 15, 2024
1 parent 6dd23bc commit 275ea9b
Show file tree
Hide file tree
Showing 20 changed files with 15,265 additions and 21,374 deletions.
2 changes: 0 additions & 2 deletions assistant/src/Chat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,6 @@ const Chat: FC<ChatProps> = memo(
{UITemplateRender({
templateId: template_id,
cardData: data,
apiDomain: apiDomain,
token: token!,
})}
</div>
)}
Expand Down
30 changes: 0 additions & 30 deletions assistant/src/Chat/template/LoginCard.tsx

This file was deleted.

11 changes: 2 additions & 9 deletions assistant/src/Chat/template/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React from 'react';
import GitInsightCard from './GitInsightCard';
import LoginCard from './LoginCard';

export const UITemplateRender = ({ templateId, apiDomain, token, cardData }: { templateId: string, apiDomain: string; token: string; cardData: any }) => {
export const UITemplateRender = ({ templateId, cardData }: { templateId: string, cardData: any }) => {
if (templateId === 'GIT_INSIGHT') {
return (
<GitInsightCard
Expand All @@ -11,12 +10,6 @@ export const UITemplateRender = ({ templateId, apiDomain, token, cardData }: { t
commitCount={cardData?.commits}
/>
);
return null;
}

if (templateId === 'LOGIN_INVITE') {
return (
<LoginCard apiDomain={apiDomain} token={token} />
);
}
return null;
};
59 changes: 0 additions & 59 deletions assistant/src/hooks/useUser.ts

This file was deleted.

11 changes: 0 additions & 11 deletions assistant/src/icons/GitHubIcon.tsx

This file was deleted.

1 change: 0 additions & 1 deletion assistant/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ export { default as Chat } from './Chat';
export { default as GitInsight } from './GitInsight';
export { default as StarterList } from './StarterList';
export { default as ThoughtChain } from './ThoughtChain';
export { default as useUser } from './hooks/useUser';
export * from './utils';
15 changes: 0 additions & 15 deletions assistant/src/services/UserController.ts

This file was deleted.

30 changes: 0 additions & 30 deletions assistant/src/utils/popcenter.ts

This file was deleted.

Loading

0 comments on commit 275ea9b

Please sign in to comment.