This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch ui-optimization
in repository https://gitbox.apache.org/repos/asf/answer.git
The following commit(s) were added to refs/heads/ui-optimization by this push:
new bebf5931 style: admin ui style changed
bebf5931 is described below
commit bebf5931a11520124d61fd129d4a5d4092916797
Author: shuai <[email protected]>
AuthorDate: Mon Apr 7 15:31:31 2025 +0800
style: admin ui style changed
---
cmd/wire_gen.go | 26 +++++++++++++++++++++++---
docs/docs.go | 33 ++++++++++++++++++++-------------
docs/swagger.yaml | 23 ++++++++++++++++++-----
ui/src/pages/Admin/index.scss | 6 ------
4 files changed, 61 insertions(+), 27 deletions(-)
diff --git a/cmd/wire_gen.go b/cmd/wire_gen.go
index 3ad59130..cf05057f 100644
--- a/cmd/wire_gen.go
+++ b/cmd/wire_gen.go
@@ -1,8 +1,28 @@
+//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
@@ -277,4 +297,4 @@ func initApplication(debug bool, serverConf *conf.Server,
dbConf *data.Database,
cleanup2()
cleanup()
}, nil
-}
+}
\ No newline at end of file
diff --git a/docs/docs.go b/docs/docs.go
index 34f87f2b..d62e3898 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1,3 +1,22 @@
+/*
+ * 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
@@ -5014,9 +5033,6 @@ const docTemplate = `{
"/answer/api/v1/report": {
"post": {
"security": [
- {
- "ApiKeyAuth": []
- },
{
"ApiKeyAuth": []
}
@@ -5056,9 +5072,6 @@ const docTemplate = `{
"/answer/api/v1/report/review": {
"put": {
"security": [
- {
- "ApiKeyAuth": []
- },
{
"ApiKeyAuth": []
}
@@ -5161,9 +5174,6 @@ const docTemplate = `{
"/answer/api/v1/review/pending/post": {
"put": {
"security": [
- {
- "ApiKeyAuth": []
- },
{
"ApiKeyAuth": []
}
@@ -6276,9 +6286,6 @@ const docTemplate = `{
"/answer/api/v1/user/email/verification/send": {
"post": {
"security": [
- {
- "ApiKeyAuth": []
- },
{
"ApiKeyAuth": []
}
@@ -11779,4 +11786,4 @@ var SwaggerInfo = &swag.Spec{
func init() {
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
-}
+}
\ No newline at end of file
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index bc0df88b..445f6bce 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -1,3 +1,20 @@
+# 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:
@@ -6020,7 +6037,6 @@ paths:
$ref: '#/definitions/handler.RespBody'
security:
- ApiKeyAuth: []
- - ApiKeyAuth: []
summary: add report
tags:
- Report
@@ -6045,7 +6061,6 @@ paths:
$ref: '#/definitions/handler.RespBody'
security:
- ApiKeyAuth: []
- - ApiKeyAuth: []
summary: review report
tags:
- Report
@@ -6104,7 +6119,6 @@ paths:
$ref: '#/definitions/handler.RespBody'
security:
- ApiKeyAuth: []
- - ApiKeyAuth: []
summary: update review
tags:
- Review
@@ -6768,7 +6782,6 @@ paths:
type: string
security:
- ApiKeyAuth: []
- - ApiKeyAuth: []
summary: UserVerifyEmailSend
tags:
- User
@@ -7473,4 +7486,4 @@ securityDefinitions:
in: header
name: Authorization
type: apiKey
-swagger: "2.0"
+swagger: "2.0"
\ No newline at end of file
diff --git a/ui/src/pages/Admin/index.scss b/ui/src/pages/Admin/index.scss
index a84961f5..5748d053 100644
--- a/ui/src/pages/Admin/index.scss
+++ b/ui/src/pages/Admin/index.scss
@@ -17,12 +17,6 @@
* under the License.
*/
-.admin-container {
- .page-right-side {
- box-sizing: border-box;
- }
-}
-
.min-w-15 {
min-width: 15rem;
}