You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by sh...@apache.org on 2024/01/19 04:08:07 UTC

(incubator-answer) 01/02: fix: conflict

This is an automated email from the ASF dual-hosted git repository.

shuai pushed a commit to branch feat/1.2.5/ui
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git

commit 64e2473a8ab4db9979a569a1a79581436189c465
Merge: 9f635570 1b1c994a
Author: shuai <li...@sifou.com>
AuthorDate: Thu Jan 18 16:32:58 2024 +0800

    fix: conflict

 .github/ISSUE_TEMPLATE/bug_report.md               |  28 +++--
 .github/ISSUE_TEMPLATE/config.yaml                 |  22 ++++
 .../{feature_request.md => enhancement_request.md} |  13 ++-
 .github/ISSUE_TEMPLATE/feature_request.md          |  13 ++-
 .github/workflows/uffizzi-build.yml                | 115 ---------------------
 .github/workflows/uffizzi-preview.yml              | 113 --------------------
 Dockerfile                                         |   8 +-
 Makefile                                           |   2 +-
 README.md                                          |   6 ++
 cmd/main.go                                        |   5 +-
 cmd/wire_gen.go                                    |   2 +-
 docker-compose.uffizzi.yml                         |  77 --------------
 docs/img/logo.svg                                  |  18 ++++
 go.mod                                             |  17 +++
 i18n/en_US.yaml                                    |   5 +-
 i18n/fr_FR.yaml                                    |   2 +-
 i18n/zh_CN.yaml                                    |   2 +-
 i18n/zh_TW.yaml                                    |   2 +-
 internal/base/constant/privilege.go                |   2 +-
 internal/base/reason/privilege.go                  |   7 +-
 internal/repo/question/question_repo.go            |  44 ++++----
 internal/repo/search_common/search_repo.go         |  40 ++++---
 internal/repo/tag/tag_repo.go                      |  10 ++
 internal/schema/comment_schema.go                  |   2 +-
 internal/schema/search_schema.go                   |   2 +-
 internal/schema/siteinfo_schema.go                 |  15 ++-
 internal/service/comment/comment_service.go        |   5 +-
 internal/service/dashboard/dashboard_service.go    |   1 +
 internal/service/question_common/question.go       |   3 +-
 internal/service/question_service.go               |  33 ++++--
 internal/service/search_common/search.go           |   6 +-
 internal/service/search_parser/search_parser.go    |  18 +++-
 internal/service/siteinfo/siteinfo_service.go      |  53 ++++++++--
 internal/service/tag_common/tag_common.go          |   7 ++
 pkg/converter/array.go                             |  12 +++
 plugin/search.go                                   |   2 +-
 ui/src/assets/images/default-avatar.svg            |  18 ++++
 ui/src/common/constants.ts                         |   1 +
 ui/src/components/Comment/index.tsx                |  10 +-
 ui/src/pages/Admin/Privileges/index.tsx            |  63 +++++++++--
 ui/src/pages/Questions/EditAnswer/index.tsx        |   2 +-
 ui/src/services/admin/settings.ts                  |  15 ++-
 ui/src/services/common.ts                          |   1 +
 43 files changed, 403 insertions(+), 419 deletions(-)

diff --cc ui/src/common/constants.ts
index 275fe27d,fa5e95fd..536df3bb
--- a/ui/src/common/constants.ts
+++ b/ui/src/common/constants.ts
@@@ -28,7 -28,7 +28,8 @@@ export const DRAFT_QUESTION_STORAGE_KE
  export const DRAFT_ANSWER_STORAGE_KEY = '_a_da_';
  export const DRAFT_TIMESIGH_STORAGE_KEY = '|_a_t_s_|';
  export const QUESTIONS_ORDER_STORAGE_KEY = '_a_qok_';
 +export const DEFAULT_THEME = 'system';
+ export const ADMIN_PRIVILEGE_CUSTOM_LEVEL = 99;
  
  export const USER_AGENT_NAMES = {
    SegmentFault: 'SegmentFault',