A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: format code
sy-recordsfb9bece01c68
diff --git a/cmd/answer/main.go b/cmd/answer/main.gonew file mode 100644index 00000000..fb91f594--- /dev/null+++ b/cmd/answer/main.go@@ -0,0 +1,38 @@+/*+ * 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.+ */++//go:generate go run github.com/swaggo/swag/cmd/swag init -g ./cmd/answer/main.go -d ../../ -o ../../docs++package main++import (+ answercmd "github.com/apache/incubator-answer/cmd"+)++// main godoc+// @title "apache answer"+// @description = "apache answer api"+// @version = "v0.0.1"+// @BasePath = "/"+// @securityDefinitions.apikey ApiKeyAuth+// @in header+// @name Authorization+func main() {+ answercmd.Main()+}diff --git a/internal/service/mock/siteinfo_repo_mock.go b/internal/service/mock/siteinfo_repo_mock.goindex cdc72b80..abc1fe07 100644--- a/internal/service/mock/siteinfo_repo_mock.go+++ b/internal/service/mock/siteinfo_repo_mock.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 MockGen. DO NOT EDIT.// Source: ./siteinfo_service.godiff --git a/ui/src/utils/localize.ts b/ui/src/utils/localize.tsindex f446922c..fcc322a5 100644--- a/ui/src/utils/localize.ts+++ b/ui/src/utils/localize.ts@@ -162,7 +162,9 @@ export const setupAppTheme = () => {};export const setupInstallLanguage = async (lang) => {- await addI18nResource(lang);+ if (!i18next.getDataByLanguage(lang)?.translation) {+ await addI18nResource(lang);+ }localeDayjs(lang);i18next.changeLanguage(lang);};