This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/answer.git
The following commit(s) were added to refs/heads/test by this push:
new 78df7764 fix: Details page editing time value adjustment
78df7764 is described below
commit 78df776449ce0ca7133e6f189e84e61d1a451bc0
Author: shuai <[email protected]>
AuthorDate: Tue Sep 30 15:34:37 2025 +0800
fix: Details page editing time value adjustment
---
cmd/wire_gen.go | 24 ++----------------------
docs/docs.go | 19 -------------------
docs/swagger.yaml | 17 -----------------
internal/service/mock/siteinfo_repo_mock.go | 19 -------------------
ui/.env.production | 1 +
ui/template/question-detail.html | 6 +++---
6 files changed, 6 insertions(+), 80 deletions(-)
diff --git a/cmd/wire_gen.go b/cmd/wire_gen.go
index ce352051..8eb6e1a7 100644
--- a/cmd/wire_gen.go
+++ b/cmd/wire_gen.go
@@ -1,28 +1,8 @@
-//go:build !wireinject
-// +build !wireinject
-
-/*
- * 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.
- */
-
// Code generated by Wire. DO NOT EDIT.
//go:generate go run github.com/google/wire/cmd/wire
+//go:build !wireinject
+// +build !wireinject
package answercmd
diff --git a/docs/docs.go b/docs/docs.go
index 263e6775..ec062df2 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1,22 +1,3 @@
-/*
- * 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.
- */
-
// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 9cdf248e..a01074d1 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -1,20 +1,3 @@
-# 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.
-
basePath: /
definitions:
constant.NotificationChannelKey:
diff --git a/internal/service/mock/siteinfo_repo_mock.go
b/internal/service/mock/siteinfo_repo_mock.go
index a98ceb68..0a1b31e8 100644
--- a/internal/service/mock/siteinfo_repo_mock.go
+++ b/internal/service/mock/siteinfo_repo_mock.go
@@ -1,22 +1,3 @@
-/*
- * 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.
- */
-
// Code generated by MockGen. DO NOT EDIT.
// Source: ./siteinfo_service.go
//
diff --git a/ui/.env.production b/ui/.env.production
index c371a163..f86b9ccd 100644
--- a/ui/.env.production
+++ b/ui/.env.production
@@ -3,3 +3,4 @@ ESLINT_NO_DEV_ERRORS=true
PUBLIC_URL=/
REACT_APP_API_URL=/
REACT_APP_BASE_URL=
+REACT_APP_API_BASE_URL=
diff --git a/ui/template/question-detail.html b/ui/template/question-detail.html
index d4b9e04c..6fd39b23 100644
--- a/ui/template/question-detail.html
+++ b/ui/template/question-detail.html
@@ -48,10 +48,10 @@
datetime="{{timeFormatISO $.timezone .detail.CreateTime}}"
title="{{translatorTimeFormatLongDate $.language $.timezone
.detail.CreateTime}}">{{translator $.language "ui.question_detail.created"}}
{{translatorTimeFormat $.language $.timezone .detail.CreateTime}}
</time>
- {{if gt .detail.EditTime 0}}
+ {{if gt .detail.QuestionUpdateTime 0}}
<time class="me-3 link-secondary"
- datetime="{{timeFormatISO $.timezone .detail.EditTime}}"
- title="{{translatorTimeFormatLongDate $.language
$.timezone .detail.EditTime}}">{{translator $.language
"ui.question_detail.Edited"}} {{translatorTimeFormat $.language $.timezone
.detail.EditTime}}
+ datetime="{{timeFormatISO $.timezone
.detail.QuestionUpdateTime}}"
+ title="{{translatorTimeFormatLongDate $.language
$.timezone .detail.QuestionUpdateTime}}">{{translator $.language
"ui.question_detail.Edited"}} {{translatorTimeFormat $.language $.timezone
.detail.QuestionUpdateTime}}
</time>
{{end}}
<div class="me-3">{{translator $.language
"ui.question_detail.Views"}} {{.detail.ViewCount}}</div>