feat(trello): add trello integration (#1380)

This commit is contained in:
Rıdvan Akca
2023-10-24 16:13:08 +03:00
committed by GitHub
parent 627184f124
commit ee90422f56
15 changed files with 155 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ export default function AddAppConnection(
if (window.opener) {
window.opener.postMessage({
source: 'automatisch',
payload: window.location.search,
payload: { search: window.location.search, hash: window.location.hash },
});
window.close();
}

View File

@@ -25,9 +25,16 @@ const processMutation = async (
};
const parseUrlSearchParams = (event: any) => {
const searchParams = new URLSearchParams(event.data.payload);
const searchParams = new URLSearchParams(event.data.payload.search);
const hashParams = new URLSearchParams(event.data.payload.hash.substring(1));
return getObjectOfEntries(searchParams.entries());
const searchParamsObject = getObjectOfEntries(searchParams.entries());
const hashParamsObject = getObjectOfEntries(hashParams.entries());
return {
...hashParamsObject,
...searchParamsObject,
};
};
function getObjectOfEntries(iterator: any) {