From c65e0fcb0b239028335b08f2402327d7e0405370 Mon Sep 17 00:00:00 2001 From: scarqin <1054139596@qq.com> Date: Tue, 7 Mar 2023 12:18:55 +0800 Subject: [PATCH] feat: star-motivation standalone component --- .../chat-robot.component.scss | 2 +- .../chat-robot.component.ts | 24 ++++++---- .../modules/chat-robot/chat-robot.service.ts | 5 ++- .../star-motivation.component.ts | 44 +++++++++++++++++++ .../common/about.component.scss | 13 ------ .../system-setting/common/about.component.ts | 21 +++------ .../system-setting/system-setting.module.ts | 13 +++++- .../chatgpt-robot.component.scss | 14 ------ .../chatgpt-robot/chatgpt-robot.component.ts | 28 +++++------- .../browser/src/app/pages/pages.module.ts | 22 +++------- .../browser/src/app/shared/shared.module.ts | 2 +- 11 files changed, 102 insertions(+), 86 deletions(-) create mode 100644 src/workbench/browser/src/app/modules/star-motivation/star-motivation.component.ts delete mode 100644 src/workbench/browser/src/app/modules/system-setting/common/about.component.scss diff --git a/src/workbench/browser/src/app/modules/chat-robot/chat-robot-container/chat-robot.component.scss b/src/workbench/browser/src/app/modules/chat-robot/chat-robot-container/chat-robot.component.scss index 515defcd..a87d917a 100644 --- a/src/workbench/browser/src/app/modules/chat-robot/chat-robot-container/chat-robot.component.scss +++ b/src/workbench/browser/src/app/modules/chat-robot/chat-robot-container/chat-robot.component.scss @@ -3,7 +3,7 @@ flex-direction: column; background-color: var(--background-color); width: 500px; - height: 500px; + height: 50%; border-radius: 6px; box-shadow: 0 0 10px var(--shadow-color); } diff --git a/src/workbench/browser/src/app/modules/chat-robot/chat-robot-container/chat-robot.component.ts b/src/workbench/browser/src/app/modules/chat-robot/chat-robot-container/chat-robot.component.ts index cdff6f8b..a4d96f8a 100644 --- a/src/workbench/browser/src/app/modules/chat-robot/chat-robot-container/chat-robot.component.ts +++ b/src/workbench/browser/src/app/modules/chat-robot/chat-robot-container/chat-robot.component.ts @@ -2,20 +2,19 @@ * API Design reference: https://github.dev/akveo/nebular/blob/master/src/playground/with-layout/chat/chat.module.ts * Component Document:https://akveo.github.io/nebular/docs/components/chat-ui/overview/#nbchatcomponent */ -import { Component, ContentChildren, Input, QueryList } from '@angular/core'; +import { Component, ContentChildren, Input, QueryList, TemplateRef } from '@angular/core'; import { ChatRobotMessageComponent } from '../chat-robot-message/chat-robot-message.component'; +import { ChatRobotService } from '../chat-robot.service'; @Component({ selector: 'pc-chat-robot', template: ` -
+ Hi!~ If you like {{ subject }}, please give the Postcat a Star!
Your support is our greatest motivation~
+
Postcat
V{{ versionInfo?.version }}
- + -
- Hi!~ If you like Postcat, please give the Postcat a Star!
Your support is our greatest motivation~
-
{{ item.label }}: {{ item.value }}
- Hi!~ If you like ChatGPT Extensions, please give the Postcat a Star!
Your support is our greatest motivation~
-