style: auto format whole project

This commit is contained in:
Ali BARIN
2022-11-05 23:57:33 +01:00
parent e338770e57
commit 475f24f661
199 changed files with 2421 additions and 1839 deletions

View File

@@ -12,9 +12,10 @@ export default {
readOnly: true,
value: '{WEB_APP_URL}/app/flickr/connections/add',
placeholder: null,
description: 'When asked to input an OAuth callback or redirect URL in Flickr OAuth, enter the URL above.',
description:
'When asked to input an OAuth callback or redirect URL in Flickr OAuth, enter the URL above.',
docUrl: 'https://automatisch.io/docs/flickr#oauth-redirect-url',
clickToCopy: true
clickToCopy: true,
},
{
key: 'consumerKey',
@@ -26,7 +27,7 @@ export default {
placeholder: null,
description: null,
docUrl: 'https://automatisch.io/docs/flickr#consumer-key',
clickToCopy: false
clickToCopy: false,
},
{
key: 'consumerSecret',
@@ -38,8 +39,8 @@ export default {
placeholder: null,
description: null,
docUrl: 'https://automatisch.io/docs/flickr#consumer-secret',
clickToCopy: false
}
clickToCopy: false,
},
],
authenticationSteps: [
{
@@ -48,7 +49,7 @@ export default {
arguments: [
{
name: 'key',
value: '{key}'
value: '{key}',
},
{
name: 'formattedData',
@@ -56,15 +57,15 @@ export default {
properties: [
{
name: 'consumerKey',
value: '{fields.consumerKey}'
value: '{fields.consumerKey}',
},
{
name: 'consumerSecret',
value: '{fields.consumerSecret}'
}
]
}
]
value: '{fields.consumerSecret}',
},
],
},
],
},
{
type: 'mutation' as const,
@@ -72,9 +73,9 @@ export default {
arguments: [
{
name: 'id',
value: '{createConnection.id}'
}
]
value: '{createConnection.id}',
},
],
},
{
type: 'openWithPopup' as const,
@@ -82,9 +83,9 @@ export default {
arguments: [
{
name: 'url',
value: '{createAuthData.url}'
}
]
value: '{createAuthData.url}',
},
],
},
{
type: 'mutation' as const,
@@ -92,7 +93,7 @@ export default {
arguments: [
{
name: 'id',
value: '{createConnection.id}'
value: '{createConnection.id}',
},
{
name: 'formattedData',
@@ -100,11 +101,11 @@ export default {
properties: [
{
name: 'oauthVerifier',
value: '{openAuthPopup.oauth_verifier}'
}
]
}
]
value: '{openAuthPopup.oauth_verifier}',
},
],
},
],
},
{
type: 'mutation' as const,
@@ -112,10 +113,10 @@ export default {
arguments: [
{
name: 'id',
value: '{createConnection.id}'
}
]
}
value: '{createConnection.id}',
},
],
},
],
createAuthData,

View File

@@ -6,7 +6,7 @@ const isStillVerified = async ($: IGlobalVariable) => {
method: 'flickr.test.login',
format: 'json',
nojsoncallback: 1,
}
};
const response = await $.http.get('/rest', { params });
return !!response.data.user.id;
} catch (error) {

View File

@@ -10,7 +10,7 @@ type TPhotoset = {
title: {
_content: string;
};
}
};
export default {
name: 'List albums',
@@ -25,7 +25,7 @@ export default {
format: 'json',
nojsoncallback: 1,
};
let response = await $.http.get('/rest', { params, });
let response = await $.http.get('/rest', { params });
const aggregatedResponse: TResponse = {
data: [...response.data.photosets.photoset],
@@ -35,19 +35,21 @@ export default {
response = await $.http.get('/rest', {
params: {
...params,
page: response.data.photosets.page
}
page: response.data.photosets.page,
},
});
aggregatedResponse.data.push(...response.data.photosets.photoset);
}
aggregatedResponse.data = aggregatedResponse.data.map((photoset: TPhotoset) => {
return {
value: photoset.id,
name: photoset.title._content,
} as IJSONObject;
});
aggregatedResponse.data = aggregatedResponse.data.map(
(photoset: TPhotoset) => {
return {
value: photoset.id,
name: photoset.title._content,
} as IJSONObject;
}
);
return aggregatedResponse;
},

View File

@@ -3,9 +3,4 @@ import newFavoritePhotos from './new-favorite-photos';
import newPhotos from './new-photos';
import newPhotosInAlbums from './new-photos-in-album';
export default [
newAlbums,
newFavoritePhotos,
newPhotos,
newPhotosInAlbums,
];
export default [newAlbums, newFavoritePhotos, newPhotos, newPhotosInAlbums];