Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
666ab70
feat(ui): add min values for inputs and context-based keyboards for i…
Dinesht04 Nov 12, 2025
157dbfd
feat(ui): add types, logic and defaults for min, max value of input c…
Dinesht04 Nov 13, 2025
54e602c
fix(ui): refactor number input props (min,max)
Dinesht04 Nov 19, 2025
9a7eb0f
fix(service): set default language to "en_US" if invalid language is …
LinkinStars Nov 20, 2025
09b6b34
fix(comment): decode CommentID using DeShortID for consistency
LinkinStars Nov 20, 2025
a15dd41
refactor(internal): compile regex once while clearing text
ferhatelmas Nov 22, 2025
ce053cc
fix: multi byte run boundary for cut long title
ferhatelmas Nov 24, 2025
0777291
fix(ui): null pointer access if get branding fails
ferhatelmas Nov 26, 2025
bc629db
chore(deps): bump mockgen to 0.6.0 for go1.25 support
ferhatelmas Nov 27, 2025
fc2a1d8
fix(answer): update QuestionID handling in answer update process
LinkinStars Nov 28, 2025
f723d12
feat: add golangci-lint into lint target
ferhatelmas Nov 28, 2025
9540ef6
refactor(goimports): add goimports to golangci-lint configuration #1432
LinkinStars Dec 1, 2025
5e705a1
refactor(lint): improve error handling and code consistency across mu…
LinkinStars Dec 1, 2025
670aa32
refactor(lint): add new linters and fix their issues
ferhatelmas Dec 1, 2025
6660cdf
fix: add missing revision data for default content (fixes #1436)
oxkrypton Dec 2, 2025
740ac61
fix: get right lang
liruohrh Dec 1, 2025
8e395d4
Polish translation
kinjelom Nov 22, 2025
48b1de8
Update pt_BR.yaml
joaoback Sep 13, 2025
57ba299
chore: turkish translation improved (#1454)
aburakt Dec 11, 2025
d468e2b
feat: add env for glob load template files by gin debug render
liruohrh Dec 6, 2025
fbb877a
fix(translator): enhance error reporting for invalid translator YAML …
LinkinStars Dec 11, 2025
3ddec99
Merge remote-tracking branch 'origin/main' into dev
LinkinStars Dec 11, 2025
e35b955
fix(lang): enhance language retrieval from gin context
LinkinStars Dec 15, 2025
5940877
fix(lang): correct translations in Polish and Turkish language files
LinkinStars Dec 15, 2025
9ef55ca
feat(editor): integrate TipTap WYSIWYG editor with Markdown support a…
robinv8 Dec 8, 2025
c2a6280
fix: add feedback after successfully adding a user in admin panel (#1…
bimakw Dec 16, 2025
762773c
chore: clean up pnpm-lock.yaml by removing unused dependencies and up…
robinv8 Dec 16, 2025
3d43700
refactor(editor): streamline editor component structure and enhance c…
robinv8 Dec 16, 2025
498c142
feat(editor): rename WYSIWYG editor to Rich editor and implement new …
robinv8 Dec 16, 2025
d87726b
refactor(editor): enhance editor components with base props and initi…
robinv8 Dec 17, 2025
7a4b57d
refactor(editor): improve editor component functionality and code cla…
robinv8 Dec 17, 2025
ffa8dc2
feat(editor): update TipTap dependencies and enhance table functionality
robinv8 Dec 17, 2025
1c2c733
feat(editor): enhance plugin system and improve command methods
robinv8 Dec 18, 2025
0bad2c7
chore(dependencies): update TipTap packages to version 3.13.0
robinv8 Dec 18, 2025
d3a29e7
feat(theme): add layout options for site theme configuration
LinkinStars Dec 19, 2025
b5ae2d0
fix: admin/themes add layout config
shuashuai Dec 19, 2025
2ae309a
fix: delete log
shuashuai Dec 19, 2025
92d853c
fix: add i18n
shuashuai Dec 19, 2025
f92d3a3
fix: update zh_CN.ymal content
shuashuai Dec 19, 2025
462931a
Merge remote-tracking branch 'origin/feat/1.7.2/layout' into test
LinkinStars Dec 22, 2025
c888188
fix: admin.themes layout initial value
shuashuai Dec 22, 2025
cf7f601
Merge branch 'test' of github.com:apache/answer into test
shuashuai Dec 22, 2025
aa7e19b
Remove TipTap editor utility files including commands, constants, err…
robinv8 Dec 22, 2025
78714e8
feat(editor): implement image upload functionality with validation an…
robinv8 Dec 25, 2025
762e8a7
fix(gitignore): correct node_modules entry and remove specific plugin…
robinv8 Dec 25, 2025
9e236f6
Merge remote-tracking branch 'origin/feat/1.7.2/ui' into test
LinkinStars Dec 25, 2025
61d9bf3
修复最佳评论越权问题
QiangLi826 Dec 26, 2025
42f8947
fix(notification): use SSO provider for external_id lookup in notific…
IfDougelseSa Dec 24, 2025
c8908b7
fix(review): notifications from the specific external system will tak…
IfDougelseSa Dec 26, 2025
57f31ec
fix: expand avatar column length from 1024 to 2048
csouls Dec 18, 2025
a1f0b09
fix: update migration version from v1.7.1 to v1.7.2
csouls Dec 26, 2025
d5c07f1
Merge remote-tracking branch 'origin/dev' into test
LinkinStars Dec 29, 2025
d7d692b
fix: Fixed-layout navigation aligns with the width of the main content.
shuashuai Dec 31, 2025
26d868b
refactor(queue): improve queues
ferhatelmas Dec 9, 2025
5ff6106
fix: address comments and add a test
ferhatelmas Jan 6, 2026
1fbb802
feat: load optional .env file and add .env.example
maishivamhoo123 Dec 23, 2025
d773b86
fix: remove unrelated generated files
maishivamhoo123 Dec 25, 2025
f6d30a5
chore: revert documentation changes in README
maishivamhoo123 Dec 25, 2025
3d54653
fix: added the init fuction in install_main.go
maishivamhoo123 Jan 7, 2026
5be6ec9
docs(lic): add MIT license file and clean up init function in install…
LinkinStars Jan 14, 2026
6b834c7
Merge remote-tracking branch 'origin/dev' into test
LinkinStars Jan 14, 2026
29ec29b
feat(menu): update admin menu settings to include questions, tags, an…
kumfo Jan 20, 2026
3cd3e4a
feat(menu): update admin menu settings to include questions, tags, an…
kumfo Jan 20, 2026
0d7979e
feat(siteinfo): add users settings endpoint and update interface sett…
kumfo Jan 21, 2026
f0636d4
feat(siteinfo): refactor site legal and security settings to use new …
kumfo Jan 21, 2026
94de213
feat(menu): update schema to remove deprecated min_tags and add Minim…
kumfo Jan 21, 2026
0bb33e7
feat(siteinfo): fix GetSiteTag method to correctly assign response fr…
kumfo Jan 21, 2026
60f8cd1
feat(siteinfo): add site_security to response structure and update re…
kumfo Jan 22, 2026
81511e3
feat(menu): deprecate default_avatar and gravatar_base_url in SiteInt…
kumfo Jan 22, 2026
8b8550e
feat(docs): add Apache License 2.0 header to docs.go and swagger.yaml
kumfo Jan 22, 2026
d65e257
feat(docs): add Apache License 2.0 header to wire_gen.go
kumfo Jan 22, 2026
f05f1eb
feat(menu): update admin menu settings to include questions, tags, an…
kumfo Jan 20, 2026
9efa947
feat(menu): update admin menu settings to include questions, tags, an…
kumfo Jan 20, 2026
c2a0bee
feat(siteinfo): add users settings endpoint and update interface sett…
kumfo Jan 21, 2026
3264fdd
feat(siteinfo): refactor site legal and security settings to use new …
kumfo Jan 21, 2026
128c44f
feat(menu): update schema to remove deprecated min_tags and add Minim…
kumfo Jan 21, 2026
6369056
feat(siteinfo): fix GetSiteTag method to correctly assign response fr…
kumfo Jan 21, 2026
18b76f3
feat(siteinfo): add site_security to response structure and update re…
kumfo Jan 22, 2026
73cfbac
feat(menu): deprecate default_avatar and gravatar_base_url in SiteInt…
kumfo Jan 22, 2026
86c2d64
feat(docs): add Apache License 2.0 header to docs.go and swagger.yaml
kumfo Jan 22, 2026
f3dddfe
Merge remote-tracking branch 'origin/feat/1.8.0/menu' into feat/1.8.0…
kumfo Jan 22, 2026
630ac20
Management Backend Menu and Function Adjustments (#1474)
shuashuai Jan 22, 2026
2d02452
fix: Changes in the editor content will reset the values of other for…
shuashuai Jan 22, 2026
06e9d43
fix: Changes in the editor content will reset the values of other for…
shuashuai Jan 22, 2026
c509723
feat(docs): add layout property with enum options to schema definitions
kumfo Jan 22, 2026
c1549d2
feat: add AI configuration support with related controllers and services
LinkinStars Jan 23, 2026
dc7f752
Support AI Assistant and MCP functions (#1477)
shuashuai Jan 23, 2026
9fbf9e4
fix: correct loop iteration in AI conversation rounds
LinkinStars Jan 23, 2026
ce5aadf
feat: add AI configuration support with related controllers and services
LinkinStars Jan 23, 2026
94c0308
fix: correct loop iteration in AI conversation rounds
LinkinStars Jan 23, 2026
f403ead
feat: add AI conversation management endpoints and update related sch…
LinkinStars Jan 23, 2026
cc1567a
fix: Fix incorrect default value when the input type is number in Sch…
shuashuai Jan 26, 2026
ef54781
fix: mcp menu moved to ai assistant
shuashuai Jan 26, 2026
b83d021
feat(ci): add lint action
ferhatelmas Jan 23, 2026
9ea13af
feat(revision): enhance revision management with object status handling
LinkinStars Jan 27, 2026
bdd1949
Merge remote-tracking branch 'origin/dev' into test
LinkinStars Jan 27, 2026
8b61cad
fix(lint): resolve the lint issue
LinkinStars Jan 27, 2026
2a99d23
Merge remote-tracking branch 'origin/feat/1.8.0/new-cp-fe' into test
LinkinStars Jan 28, 2026
a5edc4f
feat: add advanced site settings and related API endpoints
LinkinStars Jan 28, 2026
4fd9667
fix: improve Brotli compression handling and validate user input in v…
LinkinStars Jan 28, 2026
34c1e8a
docs(Makefile): upgrade version to 2.0.0
LinkinStars Jan 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Installation
INSTALL_PORT=80
AUTO_INSTALL=false

# Database
DB_TYPE=
DB_USERNAME=
DB_PASSWORD=
DB_HOST=
DB_NAME=
DB_FILE=

# Site
LANGUAGE=en-US
SITE_NAME=Apache Answer
SITE_URL=
CONTACT_EMAIL=

# Admin
ADMIN_NAME=
ADMIN_PASSWORD=
ADMIN_EMAIL=

# Content
EXTERNAL_CONTENT_DISPLAY=ask_before_display

# Swagger
SWAGGER_HOST=
SWAGGER_ADDRESS_PORT=

# Server
SITE_ADDR=0.0.0.0:3000

# Logging
LOG_LEVEL=INFO
LOG_PATH=
62 changes: 62 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

name: Lint

on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }}
cancel-in-progress: true

jobs:
lint:
name: Lint (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
cache: true

- name: Run go mod tidy
run: go mod tidy

- name: Run golangci-lint
run: make lint

- name: Check for uncommitted changes
shell: bash
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "::error::Uncommitted changes detected"
git status
git diff
exit 1
fi
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ dist/

# Lint setup generated file
.husky/

# Environment variables
.env
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.PHONY: build clean ui

VERSION=1.7.1
BIN=answer
VERSION=2.0.0
DIR_SRC=./cmd/answer
DOCKER_CMD=docker

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ To learn more about the project, visit [answer.apache.org](https://answer.apache
### Running with docker

```bash
docker run -d -p 9080:80 -v answer-data:/data --name answer apache/answer:1.7.1
docker run -d -p 9080:80 -v answer-data:/data --name answer apache/answer:2.0.0
```

For more information, see [Installation](https://answer.apache.org/docs/installation).
Expand Down
6 changes: 6 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,18 @@ import (
"github.com/apache/answer/internal/base/path"
"github.com/apache/answer/internal/schema"
"github.com/gin-gonic/gin"
"github.com/joho/godotenv"
"github.com/segmentfault/pacman"
"github.com/segmentfault/pacman/contrib/log/zap"
"github.com/segmentfault/pacman/contrib/server/http"
"github.com/segmentfault/pacman/log"
)

func init() {
// Load .env if present, ignore error to keep backward compatibility
_ = godotenv.Load()
}

// go build -ldflags "-X github.com/apache/answer/cmd.Version=x.y.z"
var (
// Name is the name of the project
Expand Down
71 changes: 43 additions & 28 deletions cmd/wire_gen.go

Large diffs are not rendered by default.

Loading