1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

fix(web): show OAuth login button when disabled (#2219)

* fix(web): show OAuth login button when disable

* update api
This commit is contained in:
Alex 2023-04-08 22:18:22 -05:00 committed by GitHub
parent 983abf5e14
commit e9c171f7ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
41 changed files with 78 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -4,6 +4,7 @@
"/album": {
"get": {
"operationId": "getAllAlbums",
"description": "",
"parameters": [
{
"name": "shared",
@ -53,6 +54,7 @@
},
"post": {
"operationId": "createAlbum",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -92,6 +94,7 @@
"/api-key": {
"post": {
"operationId": "createKey",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -129,6 +132,7 @@
},
"get": {
"operationId": "getKeys",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -161,6 +165,7 @@
"/api-key/{id}": {
"get": {
"operationId": "getKey",
"description": "",
"parameters": [
{
"name": "id",
@ -198,6 +203,7 @@
},
"put": {
"operationId": "updateKey",
"description": "",
"parameters": [
{
"name": "id",
@ -245,6 +251,7 @@
},
"delete": {
"operationId": "deleteKey",
"description": "",
"parameters": [
{
"name": "id",
@ -277,6 +284,7 @@
"/auth/login": {
"post": {
"operationId": "login",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -308,6 +316,7 @@
"/auth/admin-sign-up": {
"post": {
"operationId": "adminSignUp",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -342,6 +351,7 @@
"/auth/validateToken": {
"post": {
"operationId": "validateAccessToken",
"description": "",
"parameters": [],
"responses": {
"201": {
@ -371,6 +381,7 @@
"/auth/change-password": {
"post": {
"operationId": "changePassword",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -410,6 +421,7 @@
"/auth/logout": {
"post": {
"operationId": "logout",
"description": "",
"parameters": [],
"responses": {
"201": {
@ -439,6 +451,7 @@
"/device-info": {
"put": {
"operationId": "upsertDeviceInfo",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -478,6 +491,7 @@
"/jobs": {
"get": {
"operationId": "getAllJobsStatus",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -507,6 +521,7 @@
"/jobs/{jobId}": {
"put": {
"operationId": "sendJobCommand",
"description": "",
"parameters": [
{
"name": "jobId",
@ -555,6 +570,7 @@
"/oauth/mobile-redirect": {
"get": {
"operationId": "mobileRedirect",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -569,6 +585,7 @@
"/oauth/config": {
"post": {
"operationId": "generateConfig",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -600,6 +617,7 @@
"/oauth/callback": {
"post": {
"operationId": "callback",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -631,6 +649,7 @@
"/oauth/link": {
"post": {
"operationId": "link",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -670,6 +689,7 @@
"/oauth/unlink": {
"post": {
"operationId": "unlink",
"description": "",
"parameters": [],
"responses": {
"201": {
@ -699,6 +719,7 @@
"/search": {
"get": {
"operationId": "search",
"description": "",
"parameters": [
{
"name": "q",
@ -853,6 +874,7 @@
"/search/config": {
"get": {
"operationId": "getSearchConfig",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -882,6 +904,7 @@
"/search/explore": {
"get": {
"operationId": "getExploreData",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -914,6 +937,7 @@
"/server-info": {
"get": {
"operationId": "getServerInfo",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -943,6 +967,7 @@
"/server-info/ping": {
"get": {
"operationId": "pingServer",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -964,6 +989,7 @@
"/server-info/version": {
"get": {
"operationId": "getServerVersion",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -985,6 +1011,7 @@
"/server-info/stats": {
"get": {
"operationId": "getStats",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -1014,6 +1041,7 @@
"/share": {
"get": {
"operationId": "getAllSharedLinks",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -1046,6 +1074,7 @@
"/share/me": {
"get": {
"operationId": "getMySharedLink",
"description": "",
"parameters": [
{
"name": "key",
@ -1084,6 +1113,7 @@
"/share/{id}": {
"get": {
"operationId": "getSharedLinkById",
"description": "",
"parameters": [
{
"name": "id",
@ -1121,6 +1151,7 @@
},
"delete": {
"operationId": "removeSharedLink",
"description": "",
"parameters": [
{
"name": "id",
@ -1151,6 +1182,7 @@
},
"patch": {
"operationId": "editSharedLink",
"description": "",
"parameters": [
{
"name": "id",
@ -1200,6 +1232,7 @@
"/system-config": {
"get": {
"operationId": "getConfig",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -1227,6 +1260,7 @@
},
"put": {
"operationId": "updateConfig",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -1266,6 +1300,7 @@
"/system-config/defaults": {
"get": {
"operationId": "getDefaults",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -1295,6 +1330,7 @@
"/system-config/storage-template-options": {
"get": {
"operationId": "getStorageTemplateOptions",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -1324,6 +1360,7 @@
"/user": {
"get": {
"operationId": "getAllUsers",
"description": "",
"parameters": [
{
"name": "isAll",
@ -1363,6 +1400,7 @@
},
"post": {
"operationId": "createUser",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -1400,6 +1438,7 @@
},
"put": {
"operationId": "updateUser",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -1439,6 +1478,7 @@
"/user/info/{userId}": {
"get": {
"operationId": "getUserById",
"description": "",
"parameters": [
{
"name": "userId",
@ -1478,6 +1518,7 @@
"/user/me": {
"get": {
"operationId": "getMyUserInfo",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -1507,6 +1548,7 @@
"/user/count": {
"get": {
"operationId": "getUserCount",
"description": "",
"parameters": [
{
"name": "admin",
@ -1538,6 +1580,7 @@
"/user/{userId}": {
"delete": {
"operationId": "deleteUser",
"description": "",
"parameters": [
{
"name": "userId",
@ -1577,6 +1620,7 @@
"/user/{userId}/restore": {
"post": {
"operationId": "restoreUser",
"description": "",
"parameters": [
{
"name": "userId",
@ -1616,6 +1660,7 @@
"/user/profile-image": {
"post": {
"operationId": "createProfileImage",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -1656,6 +1701,7 @@
"/user/profile-image/{userId}": {
"get": {
"operationId": "getProfileImage",
"description": "",
"parameters": [
{
"name": "userId",
@ -1695,6 +1741,7 @@
"/asset/upload": {
"post": {
"operationId": "uploadFile",
"description": "",
"parameters": [
{
"name": "key",
@ -1744,6 +1791,7 @@
"/asset/download/{assetId}": {
"get": {
"operationId": "downloadFile",
"description": "",
"parameters": [
{
"name": "assetId",
@ -1792,6 +1840,7 @@
"/asset/download-files": {
"post": {
"operationId": "downloadFiles",
"description": "",
"parameters": [
{
"name": "key",
@ -1900,6 +1949,7 @@
"/asset/file/{assetId}": {
"get": {
"operationId": "serveFile",
"description": "",
"parameters": [
{
"name": "isThumb",
@ -1966,6 +2016,7 @@
"/asset/thumbnail/{assetId}": {
"get": {
"operationId": "getAssetThumbnail",
"description": "",
"parameters": [
{
"name": "assetId",
@ -2022,6 +2073,7 @@
"/asset/curated-objects": {
"get": {
"operationId": "getCuratedObjects",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -2054,6 +2106,7 @@
"/asset/curated-locations": {
"get": {
"operationId": "getCuratedLocations",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -2086,6 +2139,7 @@
"/asset/search-terms": {
"get": {
"operationId": "getAssetSearchTerms",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -2118,6 +2172,7 @@
"/asset/search": {
"post": {
"operationId": "searchAsset",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -2160,6 +2215,7 @@
"/asset/count-by-time-bucket": {
"post": {
"operationId": "getAssetCountByTimeBucket",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -2199,6 +2255,7 @@
"/asset/count-by-user-id": {
"get": {
"operationId": "getAssetCountByUserId",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -2285,6 +2342,7 @@
},
"delete": {
"operationId": "deleteAsset",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -2327,6 +2385,7 @@
"/asset/time-bucket": {
"post": {
"operationId": "getAssetByTimeBucket",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -2599,6 +2658,7 @@
"/asset/shared-link": {
"post": {
"operationId": "createAssetsSharedLink",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -2638,6 +2698,7 @@
"/asset/shared-link/add": {
"patch": {
"operationId": "addAssetsToSharedLink",
"description": "",
"parameters": [
{
"name": "key",
@ -2686,6 +2747,7 @@
"/asset/shared-link/remove": {
"patch": {
"operationId": "removeAssetsFromSharedLink",
"description": "",
"parameters": [
{
"name": "key",
@ -2734,6 +2796,7 @@
"/tag": {
"post": {
"operationId": "create",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -2771,6 +2834,7 @@
},
"get": {
"operationId": "findAll",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -2803,6 +2867,7 @@
"/tag/{id}": {
"get": {
"operationId": "findOne",
"description": "",
"parameters": [
{
"name": "id",
@ -2840,6 +2905,7 @@
},
"patch": {
"operationId": "update",
"description": "",
"parameters": [
{
"name": "id",
@ -2887,6 +2953,7 @@
},
"delete": {
"operationId": "delete",
"description": "",
"parameters": [
{
"name": "id",
@ -2919,6 +2986,7 @@
"/album/count-by-user-id": {
"get": {
"operationId": "getAlbumCountByUserId",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -2948,6 +3016,7 @@
"/album/{albumId}/users": {
"put": {
"operationId": "addUsersToAlbum",
"description": "",
"parameters": [
{
"name": "albumId",
@ -2997,6 +3066,7 @@
"/album/{albumId}/assets": {
"put": {
"operationId": "addAssetsToAlbum",
"description": "",
"parameters": [
{
"name": "albumId",
@ -3052,6 +3122,7 @@
},
"delete": {
"operationId": "removeAssetFromAlbum",
"description": "",
"parameters": [
{
"name": "albumId",
@ -3101,6 +3172,7 @@
"/album/{albumId}": {
"get": {
"operationId": "getAlbumInfo",
"description": "",
"parameters": [
{
"name": "albumId",
@ -3146,6 +3218,7 @@
},
"delete": {
"operationId": "deleteAlbum",
"description": "",
"parameters": [
{
"name": "albumId",
@ -3176,6 +3249,7 @@
},
"patch": {
"operationId": "updateAlbumInfo",
"description": "",
"parameters": [
{
"name": "albumId",
@ -3225,6 +3299,7 @@
"/album/{albumId}/user/{userId}": {
"delete": {
"operationId": "removeUserFromAlbum",
"description": "",
"parameters": [
{
"name": "albumId",
@ -3265,6 +3340,7 @@
"/album/{albumId}/download": {
"get": {
"operationId": "downloadArchive",
"description": "",
"parameters": [
{
"name": "albumId",
@ -3329,6 +3405,7 @@
"/album/create-shared-link": {
"post": {
"operationId": "createAlbumSharedLink",
"description": "",
"parameters": [],
"requestBody": {
"required": true,

View File

@ -124,7 +124,7 @@
</form>
{/if}
{#if !authConfig.enabled}
{#if authConfig.enabled}
{#if authConfig.passwordLoginEnabled}
<div class="inline-flex items-center justify-center w-full">
<hr class="w-3/4 h-px my-4 bg-gray-200 border-0 dark:bg-gray-600" />