Skip to content

Commit

Permalink
Merge pull request #6739 from guqing/refactor/6722
Browse files Browse the repository at this point in the history
refactor: system initialization process to adapt to the new login method
  • Loading branch information
ruibaby authored Oct 9, 2024
2 parents 82fb91f + 5df755d commit 8458939
Show file tree
Hide file tree
Showing 63 changed files with 1,208 additions and 1,511 deletions.
128 changes: 39 additions & 89 deletions api-docs/openapi/v3_0/aggregated.json
Original file line number Diff line number Diff line change
Expand Up @@ -2651,30 +2651,6 @@
]
}
},
"/apis/api.console.halo.run/v1alpha1/plugin-presets": {
"get": {
"description": "List all plugin presets in the system.",
"operationId": "ListPluginPresets",
"responses": {
"default": {
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Plugin"
}
}
}
},
"description": "default response"
}
},
"tags": [
"PluginV1alpha1Console"
]
}
},
"/apis/api.console.halo.run/v1alpha1/plugins": {
"get": {
"description": "List plugins using query criteria and sort params",
Expand Down Expand Up @@ -4309,38 +4285,6 @@
]
}
},
"/apis/api.console.halo.run/v1alpha1/system/initialize": {
"post": {
"description": "Initialize system",
"operationId": "initialize",
"requestBody": {
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/SystemInitializationRequest"
}
}
}
},
"responses": {
"201": {
"description": "System initialization successfully.",
"headers": {
"Location": {
"description": "Redirect URL.",
"schema": {
"type": "string"
},
"style": "simple"
}
}
}
},
"tags": [
"SystemV1alpha1Console"
]
}
},
"/apis/api.console.halo.run/v1alpha1/tags": {
"get": {
"description": "List Post Tags.",
Expand Down Expand Up @@ -14722,6 +14666,41 @@
]
}
},
"/apis/uc.api.auth.halo.run/v1alpha1/user-connections/{registerId}/disconnect": {
"put": {
"description": "Disconnect my connection from a third-party platform.",
"operationId": "DisconnectMyConnection",
"parameters": [
{
"description": "The registration ID of the third-party platform.",
"in": "path",
"name": "registerId",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"default": {
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserConnection"
}
}
}
},
"description": "default response"
}
},
"tags": [
"UserConnectionV1alpha1Uc"
]
}
},
"/apis/uc.api.content.halo.run/v1alpha1/posts": {
"get": {
"description": "List posts owned by the current user.",
Expand Down Expand Up @@ -20712,19 +20691,16 @@
},
"visible": {
"type": "string",
"default": "PUBLIC",
"enum": [
"PUBLIC",
"INTERNAL",
"PRIVATE"
]
],
"default": "PUBLIC"
}
}
},
"PostStatus": {
"required": [
"phase"
],
"type": "object",
"properties": {
"commentsCount": {
Expand Down Expand Up @@ -22560,19 +22536,16 @@
},
"visible": {
"type": "string",
"default": "PUBLIC",
"enum": [
"PUBLIC",
"INTERNAL",
"PRIVATE"
]
],
"default": "PUBLIC"
}
}
},
"SinglePageStatus": {
"required": [
"phase"
],
"type": "object",
"properties": {
"commentsCount": {
Expand Down Expand Up @@ -22972,29 +22945,6 @@
},
"description": "The subscriber to be notified"
},
"SystemInitializationRequest": {
"required": [
"password",
"username"
],
"type": "object",
"properties": {
"email": {
"type": "string"
},
"password": {
"minLength": 3,
"type": "string"
},
"siteTitle": {
"type": "string"
},
"username": {
"minLength": 1,
"type": "string"
}
}
},
"Tag": {
"required": [
"apiVersion",
Expand Down
93 changes: 4 additions & 89 deletions api-docs/openapi/v3_0/apis_console.api_v1alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -518,30 +518,6 @@
]
}
},
"/apis/api.console.halo.run/v1alpha1/plugin-presets": {
"get": {
"description": "List all plugin presets in the system.",
"operationId": "ListPluginPresets",
"responses": {
"default": {
"content": {
"*/*": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Plugin"
}
}
}
},
"description": "default response"
}
},
"tags": [
"PluginV1alpha1Console"
]
}
},
"/apis/api.console.halo.run/v1alpha1/plugins": {
"get": {
"description": "List plugins using query criteria and sort params",
Expand Down Expand Up @@ -2176,38 +2152,6 @@
]
}
},
"/apis/api.console.halo.run/v1alpha1/system/initialize": {
"post": {
"description": "Initialize system",
"operationId": "initialize",
"requestBody": {
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/SystemInitializationRequest"
}
}
}
},
"responses": {
"201": {
"description": "System initialization successfully.",
"headers": {
"Location": {
"description": "Redirect URL.",
"schema": {
"type": "string"
},
"style": "simple"
}
}
}
},
"tags": [
"SystemV1alpha1Console"
]
}
},
"/apis/api.console.halo.run/v1alpha1/tags": {
"get": {
"description": "List Post Tags.",
Expand Down Expand Up @@ -5476,19 +5420,16 @@
},
"visible": {
"type": "string",
"default": "PUBLIC",
"enum": [
"PUBLIC",
"INTERNAL",
"PRIVATE"
]
],
"default": "PUBLIC"
}
}
},
"PostStatus": {
"required": [
"phase"
],
"type": "object",
"properties": {
"commentsCount": {
Expand Down Expand Up @@ -6008,19 +5949,16 @@
},
"visible": {
"type": "string",
"default": "PUBLIC",
"enum": [
"PUBLIC",
"INTERNAL",
"PRIVATE"
]
],
"default": "PUBLIC"
}
}
},
"SinglePageStatus": {
"required": [
"phase"
],
"type": "object",
"properties": {
"commentsCount": {
Expand Down Expand Up @@ -6090,29 +6028,6 @@
}
}
},
"SystemInitializationRequest": {
"required": [
"password",
"username"
],
"type": "object",
"properties": {
"email": {
"type": "string"
},
"password": {
"minLength": 3,
"type": "string"
},
"siteTitle": {
"type": "string"
},
"username": {
"minLength": 1,
"type": "string"
}
}
},
"Tag": {
"required": [
"apiVersion",
Expand Down
14 changes: 4 additions & 10 deletions api-docs/openapi/v3_0/apis_extension.api_v1alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -11300,19 +11300,16 @@
},
"visible": {
"type": "string",
"default": "PUBLIC",
"enum": [
"PUBLIC",
"INTERNAL",
"PRIVATE"
]
],
"default": "PUBLIC"
}
}
},
"PostStatus": {
"required": [
"phase"
],
"type": "object",
"properties": {
"commentsCount": {
Expand Down Expand Up @@ -12487,19 +12484,16 @@
},
"visible": {
"type": "string",
"default": "PUBLIC",
"enum": [
"PUBLIC",
"INTERNAL",
"PRIVATE"
]
],
"default": "PUBLIC"
}
}
},
"SinglePageStatus": {
"required": [
"phase"
],
"type": "object",
"properties": {
"commentsCount": {
Expand Down
Loading

0 comments on commit 8458939

Please sign in to comment.