Commit Graph

288 Commits

Author SHA1 Message Date
kumfo 9dc7d9cf44 feat(template/render): common render with 404 page 2022-12-07 11:14:05 +08:00
aichy126 78c0606e52 fix users 2022-12-07 11:11:14 +08:00
LinkinStar d138c372a5 fix(rename): rename function and request 2022-12-06 17:01:42 +08:00
LinkinStar f3e42f72ac Merge remote-tracking branch 'origin/feat/0.6.0/seo' into test
# Conflicts:
#	docs/docs.go
#	docs/swagger.json
#	docs/swagger.yaml
#	internal/controller/controller.go
2022-12-06 16:56:30 +08:00
LinkinStar d95bd6aa79 Merge branch 'feat/0.6.0/user-role' into test
# Conflicts:
#	i18n/zh_CN.yaml
#	internal/controller/answer_controller.go
#	internal/migrations/v3.go
#	internal/schema/activity.go
2022-12-06 16:50:55 +08:00
LinkinStar 995510595b feat: support for manifest.json dynamic rendering 2022-12-06 16:41:29 +08:00
LinkinStar a6630670be fix(rank): Incorrect permission verification
user can update answer that put by himself.
admin can vote up anyway.
2022-12-06 14:45:37 +08:00
kumfo 787948f944 merge(template/i18n): merge 2022-12-06 12:25:16 +08:00
aichy126 3cdd75983f i18n 2022-12-06 12:20:07 +08:00
aichy126 dcd8108fa5 Merge branch 'feat/0.6.0/seo' of git.backyard.segmentfault.com:opensource/answer into feat/0.6.0/seo 2022-12-06 12:19:57 +08:00
aichy126 e59e95fe11 add page meta 2022-12-06 12:17:45 +08:00
kumfo 67d93e196f feat(template/i18n): backend template render synchronous with frontend 2022-12-06 12:16:43 +08:00
kumfo e78747c172 feat(template/i18n): backend template render synchronous with frontend 2022-12-05 15:25:29 +08:00
kumfo 82f1e72483 feat(template/i18n): backend template render synchronous with frontend 2022-12-05 15:24:52 +08:00
kumfo 19f119423f feat: template render time i18n 2022-12-05 11:27:37 +08:00
aichy126 999ee83c8d add permalink 2022-12-02 17:27:30 +08:00
LinkinStar c6060d5aae fix(question): Add the function of reopening the problem 2022-12-02 17:24:46 +08:00
aichy126 8e0607470b update Canonical 2022-12-02 16:42:40 +08:00
aichy126 1960bcfb4b add question seo Json ld 2022-12-02 16:16:49 +08:00
LinkinStar 7eb6f9a295 Merge branch 'feat/0.5.0/timeline_ai' into test 2022-12-02 15:14:52 +08:00
LinkinStar e5cb06b8aa fix(revision): Return toast alert when there is a version under review 2022-12-02 15:14:27 +08:00
LinkinStar 2b0634e2e6 feat(rank): Modify all permission restriction controls 2022-12-02 15:08:18 +08:00
aichy126 332ec7c966 add language 2022-12-02 12:12:27 +08:00
LinkinStar 74015c13eb Merge branch 'feat/0.5.0/timeline' into feat/0.6.0/user-role
# Conflicts:
#	internal/controller/tag_controller.go
#	internal/schema/activity.go
#	internal/service/activity/activity.go
2022-12-02 11:27:16 +08:00
aichy126 0faea88118 Merge branch 'feat/0.5.0/timeline_ai' into test 2022-12-01 18:36:39 +08:00
aichy126 a27b0013d5 Merge branch 'feat/0.5.0/timeline_ai' of git.backyard.segmentfault.com:opensource/answer into feat/0.5.0/timeline_ai 2022-12-01 18:36:26 +08:00
aichy126 d4b1a5b4e5 fix question last edit userid 2022-12-01 18:36:20 +08:00
LinkinStar 9a8bb76e20 feat(question): Tell the user whether to enter the audit state when modifying the question 2022-12-01 18:15:39 +08:00
aichy126 029a43ccef Merge branch 'feat/0.5.0/timeline_ai' into test 2022-12-01 17:39:47 +08:00
LinkinStar 635a8ec942 fix(answer): tag and answer add wait for review response 2022-12-01 17:33:30 +08:00
kumfo 9ca6445d3a feat: question detail template render 2022-12-01 15:30:02 +08:00
aichy126 5ab1a7641d Merge branch 'feat/0.5.0/timeline_ai' into test 2022-12-01 15:26:34 +08:00
LinkinStar bfd9530b1f fix(synonym): Add tag synonym list member actions 2022-12-01 14:40:18 +08:00
aichy126 21421d0380 add Canonical 2022-12-01 14:20:41 +08:00
LinkinStar 5994ddd338 Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-30 19:21:12 +08:00
aichy126 9ff2979899 update tags 2022-11-30 19:14:14 +08:00
LinkinStar 457c1cd798 fix(rank): Incorrect version reputation check rule 2022-11-30 19:11:28 +08:00
aichy126 caf1fb4466 question/page 2022-11-30 19:00:42 +08:00
aichy126 287266d221 fix userinfo 2022-11-30 18:15:21 +08:00
aichy126 d8902a44d1 Merge branch 'feat/0.6.0/seo' of git.backyard.segmentfault.com:opensource/answer into feat/0.6.0/seo 2022-11-30 18:10:44 +08:00
aichy126 c2b1c60c5b add year 2022-11-30 18:10:38 +08:00
kumfo abc9d9ad96 fix: render question list, pagination error 2022-11-30 18:02:58 +08:00
kumfo 1ada26483d Merge remote-tracking branch 'origin/feat/0.6.0/seo' into feat/0.6.0/seo 2022-11-30 17:58:39 +08:00
kumfo ae964c537e fix: render question list, pagination error 2022-11-30 17:58:33 +08:00
aichy126 a99a7dd1ce add siteinfo 2022-11-30 17:56:25 +08:00
aichy126 4478df163e Merge branch 'feat/0.6.0/seo' of git.backyard.segmentfault.com:opensource/answer into feat/0.6.0/seo 2022-11-30 17:48:38 +08:00
aichy126 888024403a update siteinfo 2022-11-30 17:48:35 +08:00
kumfo 9a2e1b6797 feat: render question list 2022-11-30 17:47:40 +08:00
aichy126 972d11b0e5 update homepage 2022-11-30 17:39:19 +08:00
aichy126 cae46c94cf update page 2022-11-30 16:27:23 +08:00
aichy126 a20105321d update page 2022-11-30 16:18:23 +08:00
aichy126 7cad11e725 update paginator 2022-11-30 15:15:39 +08:00
aichy126 c3479b7083 add paginator 2022-11-30 15:11:06 +08:00
aichy126 25908ab3c6 update userinfo 2022-11-30 14:45:23 +08:00
aichy126 fac34f66c9 update userinfo 2022-11-30 14:25:03 +08:00
aichy126 1972872105 add userinfo 2022-11-30 12:13:26 +08:00
aichy126 d99f3f31f1 split template 2022-11-30 11:23:04 +08:00
kumfo 056fea83be feat: template render controller changed 2022-11-29 18:14:26 +08:00
aichy126 b4fcfa7159 Merge branch 'feat/0.6.0/seo' of git.backyard.segmentfault.com:opensource/answer into feat/0.6.0/seo 2022-11-29 18:02:48 +08:00
aichy126 8e240b677e add template 2022-11-29 18:02:42 +08:00
kumfo fadba21723 feat: template render init wire 2022-11-29 17:50:31 +08:00
aichy126 bb52bf50ed add template 2022-11-29 17:26:18 +08:00
aichy126 9839272d95 update template 2022-11-29 17:20:28 +08:00
aichy126 bf41dec058 add template 2022-11-29 15:48:26 +08:00
linkinstar 85bd1f554c Merge branch 'fix/0.5.0/email-duplicate' into 'test'
fix: prompt form error when user enters email repeatedly

See merge request opensource/answer!280
2022-11-28 08:50:03 +00:00
LinkinStar 2f4b57e57f fix: prompt form error when user enters email repeatedly 2022-11-28 16:40:24 +08:00
LinkinStar f1e48196db Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-25 18:38:30 +08:00
LinkinStar 820d87e318 feat: Added a vote reputation limit 2022-11-25 18:35:35 +08:00
aichy126 d40b6194fe Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-25 17:17:13 +08:00
aichy126 01537f630e Merge branch 'feat/0.5.0/timeline_ai' of git.backyard.segmentfault.com:opensource/answer into feat/0.5.0/timeline_ai 2022-11-25 17:15:07 +08:00
aichy126 4a993e3847 add notification 2022-11-25 17:15:02 +08:00
LinkinStar fee838665f fix: update comment use incorrect comment id 2022-11-25 17:14:24 +08:00
aichy126 682223ba61 Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-25 16:43:29 +08:00
LinkinStar 594f57112e fix: question permission set is structˆ 2022-11-25 16:43:00 +08:00
aichy126 a77c023fac Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-25 16:37:32 +08:00
aichy126 ad8dafd7af fix question questionPermission 2022-11-25 16:37:16 +08:00
LinkinStar 8fa1b0c0d5 Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-25 15:01:04 +08:00
LinkinStar d30cae05c7 fix: incorrect answer permission setting 2022-11-25 14:59:52 +08:00
LinkinStar fa00ea3828 fix: incorrect question permission setting 2022-11-25 14:55:56 +08:00
aichy126 f6e881c64f Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-25 12:08:33 +08:00
LinkinStar ee7428cba5 feat: add question answer tag comment permission Control 2022-11-25 12:07:56 +08:00
aichy126 d90f95157a Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-25 11:25:13 +08:00
LinkinStar 6ea8013df3 feat: handles audit permissions for different types of objects 2022-11-25 10:45:30 +08:00
aichy126 fdb7ceb26e fix 2022-11-24 18:07:41 +08:00
aichy126 2c32be50b2 Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-24 18:07:38 +08:00
LinkinStar bb5594722f feat: check user operation need review 2022-11-24 18:00:30 +08:00
aichy126 f99d40d0b7 Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-24 16:16:51 +08:00
aichy126 45bf3e4a45 swagger 2022-11-24 16:16:39 +08:00
aichy126 a7f9d999cc Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-24 16:13:10 +08:00
aichy126 9fb1d82a5b fix router 2022-11-24 16:12:48 +08:00
LinkinStar 59a8b0f3bb feat: check rank permission 2022-11-24 16:11:43 +08:00
aichy126 ff50bc9422 fix is admin 2022-11-24 16:08:59 +08:00
LinkinStar afa66cb9f6 refactor: extract is admin flag from context 2022-11-24 15:24:04 +08:00
aichy126 9b221b3c1a Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-24 11:50:45 +08:00
aichy126 fea5ff5fde fix answer list 2022-11-24 11:50:11 +08:00
aichy126 b5b1a10df4 update revision audit 2022-11-24 11:14:15 +08:00
LinkinStar 63f624c2be Merge remote-tracking branch 'origin/feat/0.5.0/timeline' into test 2022-11-24 09:29:14 +08:00
aichy126 d1f4793394 update GetUnreviewedRevisionList 2022-11-23 18:22:32 +08:00
LinkinStar 60d6e18cd4 fix: add user id when admin update answer status 2022-11-23 17:58:03 +08:00
LinkinStar 60f4264e58 feat: answer and tag delete add activity 2022-11-23 17:02:44 +08:00
aichy126 6202877bdc GetUnreviewedRevisionList 2022-11-23 16:27:35 +08:00
LinkinStar ff38dc5a0c feat: activity timeline show vote activity 2022-11-23 16:12:48 +08:00
aichy126 a680944168 CheckCanUpdateQuestion 2022-11-23 15:19:17 +08:00
aichy126 7f7d11f58c Merge branch 'feat/0.5.0/timeline' into feat/0.5.0/timeline_ai 2022-11-23 11:20:15 +08:00
aichy126 ba46d08e04 swagger 2022-11-23 11:10:15 +08:00
aichy126 5547b2fe91 Merge branch 'ai_0.3_fix_del' into feat/0.5.0/timeline 2022-11-23 11:10:10 +08:00
LinkinStar 982d034252 feat: add timeline detail api 2022-11-23 11:07:41 +08:00
LinkinStar cd961eafc2 feat: add timeline api interface 2022-11-22 19:48:27 +08:00
aichy126 b7e6d3ee35 fix delete question 2022-11-22 18:03:18 +08:00
aichy126 6ec9dbec87 update permission 2022-11-22 17:35:41 +08:00
aichy126 2676822331 fix question answer delete 2022-11-22 16:54:28 +08:00
aichy126 f216536e26 update question delete 2022-11-22 16:22:30 +08:00
LinkinStar d36f758fba feat: add activity where needed 2022-11-21 19:28:02 +08:00
LinkinStar 89a79a02fa Merge branch 'ai/0.4.0/tag' into test
# Conflicts:
#	cmd/answer/wire_gen.go
#	internal/service/search_service.go
#	internal/service/tag_common/tag_common.go
2022-11-19 17:06:19 +08:00
LinkinStar 747323b49c fix: add tag common service to controller 2022-11-19 17:04:46 +08:00
LinkinStar 0467165264 refactor: separate tag common repo and tag repo 2022-11-19 14:00:40 +08:00
LinkinStar fd4469f3db refactor: separate tag common repo and tag repo 2022-11-18 18:23:27 +08:00
LinkinStar 5c9e8333d3 Merge branch 'ai/0.4.0/tag' into test
# Conflicts:
#	internal/base/reason/reason.go
2022-11-17 19:02:11 +08:00
LinkinStar 8084870096 feat: change the original single form error return to multiple form error return 2022-11-17 18:59:09 +08:00
linkinstar e9dfeeb638 Merge branch 'ai/0.4.0/tag' into 'test'
Ai/0.4.0/tag

See merge request opensource/answer!252
2022-11-17 10:02:57 +00:00
LinkinStar 83ad1a185a feat: change the original single form error return to multiple form error return 2022-11-17 17:57:13 +08:00
LinkinStar 53f6413d45 doc: update site legal info get swagger doc 2022-11-16 10:58:17 +08:00
LinkinStar b473a9e62a feat: tos save original and parsed text 2022-11-15 17:11:42 +08:00
linkinstar ef2b524f05 Merge branch 'feat/0.4.0/icon-customize' into 'test'
feat: branding support upload icon image

See merge request opensource/answer!235
2022-11-15 07:26:26 +00:00
LinkinStar 70842e18d8 feat: branding support upload icon image 2022-11-15 15:20:41 +08:00
LinkinStar f17c28ae1d Merge remote-tracking branch 'origin/ai/0.4.0/tag' into test
# Conflicts:
#	docs/docs.go
#	docs/swagger.json
#	docs/swagger.yaml
#	internal/base/constant/constant.go
#	internal/base/reason/reason.go
#	internal/controller_backyard/siteinfo_controller.go
#	internal/router/answer_api_router.go
#	internal/schema/siteinfo_schema.go
#	internal/service/siteinfo/siteinfo_service.go
2022-11-15 10:54:01 +08:00
aichy126 baf0fce1c1 update reserved tags 2022-11-14 18:07:28 +08:00
LinkinStar f6fa850aa0 feat: unified file upload interface 2022-11-14 16:27:10 +08:00
LinkinStar 6b63d17623 feat: add site info about branding 2022-11-14 15:21:38 +08:00
LinkinStar 6f815fb860 feat: add site info about branding 2022-11-14 11:50:00 +08:00
linkinstar 2b1ad94791 Merge branch 'release/0.3.0' into 'main'
Release/0.3.0

See merge request opensource/answer!227
2022-11-11 06:24:10 +00:00
aichy126 79ba518810 Merge branch 'ai_0.3_dashboard' into test 2022-11-11 11:55:46 +08:00
LinkinStar 55060c1a10 feat: user change email if email exist return form error 2022-11-09 14:59:07 +08:00
aichy126 21b7560f2c add dashboard cache 2022-11-09 14:58:15 +08:00
LinkinStar 38c8f80849 feat: remove user status api 2022-11-09 10:24:27 +08:00
LinkinStar 8ddc4cf44d update: site info service reference 2022-11-07 12:03:39 +08:00
aichy126 e0c53bea11 update delete answer and question 2022-11-04 17:10:20 +08:00
LinkinStar d16ecc9962 update: use default language option in value 2022-11-03 16:12:23 +08:00
linkinstar 16eaeed7ff Merge branch 'test' into 'feat/language'
# Conflicts:
#   cmd/answer/wire_gen.go
#   internal/controller/lang_controller.go
2022-11-03 07:11:25 +00:00
LinkinStar 97fa333ea0 feat: user info response handling the default language 2022-11-03 15:09:12 +08:00
LinkinStar eb1cfd9aa8 style: reformat get site info code 2022-11-03 14:54:06 +08:00
aichy b597bd43b8 Merge branch 'feat/language' into 'test'
feat: add default language option

See merge request opensource/answer!174
2022-11-03 06:48:33 +00:00
LinkinStar 1bcd3abbcb feat: add default language option 2022-11-03 14:40:43 +08:00
LinkinStar 08d1facf22 fix: To regenerate the wire 2022-11-03 14:26:11 +08:00
linkinstar cd8b3103d0 Merge branch 'test' into 'ai_0.3_dashboard'
# Conflicts:
#   cmd/answer/wire_gen.go
2022-11-03 03:14:29 +00:00
linkinstar 7934ec513c Merge branch 'feat/timezone' into 'test'
style: reformat get site info code

See merge request opensource/answer!170
2022-11-03 03:13:07 +00:00
LinkinStar b1d2eb0c1d feat: dashboard add time zone 2022-11-03 11:12:20 +08:00
LinkinStar b7f7fb7201 style: reformat get site info code 2022-11-03 10:35:19 +08:00
LinkinStar 2ad8b8f4a9 style: reformat get site info code 2022-11-03 10:33:48 +08:00
linkinstar 436ce151bc Merge branch 'ai_0.3_dashboard' into 'test'
Ai 0.3 dashboard

See merge request opensource/answer!163
2022-11-02 08:50:38 +00:00