Skip to content

Commit 02c1304

Browse files
committed
feat(docs): Add Apache License header
1 parent e9c403c commit 02c1304

File tree

11 files changed

+256
-12
lines changed

11 files changed

+256
-12
lines changed

cmd/wire_gen.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/docs.go

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3109,17 +3109,17 @@ const docTemplate = `{
31093109
},
31103110
"/answer/api/v1/embed/config": {
31113111
"get": {
3112-
"description": "GetEmbedConfig",
3112+
"description": "get embed plugin config",
31133113
"consumes": [
31143114
"application/json"
31153115
],
31163116
"produces": [
31173117
"application/json"
31183118
],
31193119
"tags": [
3120-
"PluginEmbed"
3120+
"Plugin"
31213121
],
3122-
"summary": "GetEmbedConfig",
3122+
"summary": "get embed plugin config",
31233123
"responses": {
31243124
"200": {
31253125
"description": "OK",
@@ -5828,6 +5828,45 @@ const docTemplate = `{
58285828
}
58295829
}
58305830
},
5831+
"/answer/api/v1/tag/merge": {
5832+
"post": {
5833+
"security": [
5834+
{
5835+
"ApiKeyAuth": []
5836+
}
5837+
],
5838+
"description": "merge tag",
5839+
"consumes": [
5840+
"application/json"
5841+
],
5842+
"produces": [
5843+
"application/json"
5844+
],
5845+
"tags": [
5846+
"Tag"
5847+
],
5848+
"summary": "merge tag",
5849+
"parameters": [
5850+
{
5851+
"description": "tag",
5852+
"name": "data",
5853+
"in": "body",
5854+
"required": true,
5855+
"schema": {
5856+
"$ref": "#/definitions/schema.AddTagReq"
5857+
}
5858+
}
5859+
],
5860+
"responses": {
5861+
"200": {
5862+
"description": "OK",
5863+
"schema": {
5864+
"$ref": "#/definitions/handler.RespBody"
5865+
}
5866+
}
5867+
}
5868+
}
5869+
},
58315870
"/answer/api/v1/tag/recover": {
58325871
"post": {
58335872
"security": [
@@ -9085,6 +9124,9 @@ const docTemplate = `{
90859124
},
90869125
"slug_name": {
90879126
"type": "string"
9127+
},
9128+
"tag_id": {
9129+
"type": "string"
90889130
}
90899131
}
90909132
},
@@ -11787,4 +11829,4 @@ var SwaggerInfo = &swag.Spec{
1178711829

1178811830
func init() {
1178911831
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
11790-
}
11832+
}

docs/swagger.json

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3082,17 +3082,17 @@
30823082
},
30833083
"/answer/api/v1/embed/config": {
30843084
"get": {
3085-
"description": "GetEmbedConfig",
3085+
"description": "get embed plugin config",
30863086
"consumes": [
30873087
"application/json"
30883088
],
30893089
"produces": [
30903090
"application/json"
30913091
],
30923092
"tags": [
3093-
"PluginEmbed"
3093+
"Plugin"
30943094
],
3095-
"summary": "GetEmbedConfig",
3095+
"summary": "get embed plugin config",
30963096
"responses": {
30973097
"200": {
30983098
"description": "OK",
@@ -5801,6 +5801,45 @@
58015801
}
58025802
}
58035803
},
5804+
"/answer/api/v1/tag/merge": {
5805+
"post": {
5806+
"security": [
5807+
{
5808+
"ApiKeyAuth": []
5809+
}
5810+
],
5811+
"description": "merge tag",
5812+
"consumes": [
5813+
"application/json"
5814+
],
5815+
"produces": [
5816+
"application/json"
5817+
],
5818+
"tags": [
5819+
"Tag"
5820+
],
5821+
"summary": "merge tag",
5822+
"parameters": [
5823+
{
5824+
"description": "tag",
5825+
"name": "data",
5826+
"in": "body",
5827+
"required": true,
5828+
"schema": {
5829+
"$ref": "#/definitions/schema.AddTagReq"
5830+
}
5831+
}
5832+
],
5833+
"responses": {
5834+
"200": {
5835+
"description": "OK",
5836+
"schema": {
5837+
"$ref": "#/definitions/handler.RespBody"
5838+
}
5839+
}
5840+
}
5841+
}
5842+
},
58045843
"/answer/api/v1/tag/recover": {
58055844
"post": {
58065845
"security": [
@@ -9058,6 +9097,9 @@
90589097
},
90599098
"slug_name": {
90609099
"type": "string"
9100+
},
9101+
"tag_id": {
9102+
"type": "string"
90619103
}
90629104
}
90639105
},

docs/swagger.yaml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,8 @@ definitions:
11381138
type: boolean
11391139
slug_name:
11401140
type: string
1141+
tag_id:
1142+
type: string
11411143
type: object
11421144
schema.GetTagPageResp:
11431145
properties:
@@ -4833,7 +4835,7 @@ paths:
48334835
get:
48344836
consumes:
48354837
- application/json
4836-
description: GetEmbedConfig
4838+
description: get embed plugin config
48374839
produces:
48384840
- application/json
48394841
responses:
@@ -4848,9 +4850,9 @@ paths:
48484850
$ref: '#/definitions/plugin.EmbedConfig'
48494851
type: array
48504852
type: object
4851-
summary: GetEmbedConfig
4853+
summary: get embed plugin config
48524854
tags:
4853-
- PluginEmbed
4855+
- Plugin
48544856
/answer/api/v1/file:
48554857
post:
48564858
consumes:
@@ -6487,6 +6489,30 @@ paths:
64876489
summary: update tag
64886490
tags:
64896491
- Tag
6492+
/answer/api/v1/tag/merge:
6493+
post:
6494+
consumes:
6495+
- application/json
6496+
description: merge tag
6497+
parameters:
6498+
- description: tag
6499+
in: body
6500+
name: data
6501+
required: true
6502+
schema:
6503+
$ref: '#/definitions/schema.AddTagReq'
6504+
produces:
6505+
- application/json
6506+
responses:
6507+
"200":
6508+
description: OK
6509+
schema:
6510+
$ref: '#/definitions/handler.RespBody'
6511+
security:
6512+
- ApiKeyAuth: []
6513+
summary: merge tag
6514+
tags:
6515+
- Tag
64906516
/answer/api/v1/tag/recover:
64916517
post:
64926518
consumes:
@@ -7487,4 +7513,4 @@ securityDefinitions:
74877513
in: header
74887514
name: Authorization
74897515
type: apiKey
7490-
swagger: "2.0"
7516+
swagger: "2.0"

internal/service/mock/siteinfo_repo_mock.go

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/src/components/AdminSideNav/index.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
import { useEffect } from 'react';
221
import { NavLink } from 'react-router-dom';
322
import { useTranslation } from 'react-i18next';

ui/src/components/Header/components/SearchInput/index.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
import { FC, useState, useEffect } from 'react';
221
import { Form, FormControl } from 'react-bootstrap';
322
import { useSearchParams, useNavigate, useLocation } from 'react-router-dom';

ui/src/components/MobileSideNav/index.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
#mobileSideNav {
221
top: 62px !important;
322
width: 240px !important;

ui/src/components/MobileSideNav/index.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
import { Offcanvas } from 'react-bootstrap';
221
import { useLocation } from 'react-router-dom';
322

ui/src/pages/Tags/Info/components/MergeTagModal/index.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
.mergeTagModal {
221
.dropdown-item.active {
322
color: var(--bs-body-color);

0 commit comments

Comments
 (0)