You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by li...@apache.org on 2023/12/14 06:45:33 UTC
(incubator-answer) 03/03: refactor(asf): add asf header
This is an automated email from the ASF dual-hosted git repository.
linkinstar pushed a commit to branch release/1.2.1
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git
commit 58c71fb4ab592abf10191efe74d03e7c3abaaa28
Author: LinkinStars <li...@foxmail.com>
AuthorDate: Thu Dec 14 14:44:47 2023 +0800
refactor(asf): add asf header
---
docs/docs.go | 19 +++++++++++++++++++
docs/swagger.yaml | 17 +++++++++++++++++
internal/controller/question_controller.go | 4 ++--
ui/pnpm-lock.yaml | 17 +++++++++++++++++
ui/src/pages/Users/Logout/index.tsx | 19 +++++++++++++++++++
5 files changed, 74 insertions(+), 2 deletions(-)
diff --git a/docs/docs.go b/docs/docs.go
index 019af4d8..7a6d08bd 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.
+ */
+
// Code generated by swaggo/swag. DO NOT EDIT.
package docs
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 00dadf29..f3f53a76 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.
+
definitions:
constant.NotificationChannelKey:
enum:
diff --git a/internal/controller/question_controller.go b/internal/controller/question_controller.go
index 1f96790f..7d287210 100644
--- a/internal/controller/question_controller.go
+++ b/internal/controller/question_controller.go
@@ -657,10 +657,10 @@ func (qc *QuestionController) UpdateQuestion(ctx *gin.Context) {
return
}
respInfo, ok := resp.(*schema.QuestionInfo)
- if !ok {
+ if !ok {
handler.HandleResponse(ctx, err, resp)
return
- }
+ }
if !isAdmin || !linkUrlLimitUser {
qc.actionService.ActionRecordAdd(ctx, entity.CaptchaActionEdit, req.UserID)
}
diff --git a/ui/pnpm-lock.yaml b/ui/pnpm-lock.yaml
index 2194e490..b1555ee7 100644
--- a/ui/pnpm-lock.yaml
+++ b/ui/pnpm-lock.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.
+
lockfileVersion: '6.0'
settings:
diff --git a/ui/src/pages/Users/Logout/index.tsx b/ui/src/pages/Users/Logout/index.tsx
index cff1a277..9da6e59d 100644
--- a/ui/src/pages/Users/Logout/index.tsx
+++ b/ui/src/pages/Users/Logout/index.tsx
@@ -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.
+ */
+
import { useEffect } from 'react';
import { Spinner } from 'react-bootstrap';
import { useTranslation } from 'react-i18next';