Skip to content

Commit

Permalink
chore(general): update dependencies and remove storybook (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkue authored Mar 29, 2024
1 parent 552df17 commit 9f9a645
Show file tree
Hide file tree
Showing 28 changed files with 5,602 additions and 10,225 deletions.
111 changes: 0 additions & 111 deletions .github/workflows/ui.yml

This file was deleted.

50 changes: 25 additions & 25 deletions admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,43 +15,43 @@
"test:playwright:emulator:update": "firebase emulators:exec --project social-income-staging --only firestore,auth --config ../firebase.json --import ../seed 'npm run test:playwright:local:update'"
},
"devDependencies": {
"@firebase/rules-unit-testing": "^3.0.1",
"@firebase/rules-unit-testing": "^3.0.2",
"@jest/globals": "^29.7.0",
"@playwright/test": "^1.40.0",
"@types/jest": "^29.5.10",
"@types/luxon": "^3.3.5",
"@types/node": "^20.9.4",
"@types/react": "^18.2.38",
"@types/react-dom": "^18.2.17",
"@vitejs/plugin-react": "^4.2.0",
"css-loader": "^6.8.1",
"@playwright/test": "^1.42.1",
"@types/jest": "^29.5.12",
"@types/luxon": "^3.4.2",
"@types/node": "^20.11.30",
"@types/react": "^18.2.73",
"@types/react-dom": "^18.2.23",
"@vitejs/plugin-react": "^4.2.1",
"css-loader": "^6.10.0",
"jest": "^29.7.0",
"process": "^0.11.10",
"style-loader": "^3.3.3",
"ts-jest": "^29.1.1",
"style-loader": "^3.3.4",
"ts-jest": "^29.1.2",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.1",
"typescript": "^5.3.2",
"vite": "^5.0.2"
"ts-node": "^10.9.2",
"typescript": "^5.4.3",
"vite": "^5.2.7"
},
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.14.18",
"@mui/lab": "^5.0.0-alpha.153",
"@mui/material": "^5.14.18",
"@mui/x-data-grid": "^6.18.1",
"@mui/x-date-pickers": "^6.18.1",
"@mui/icons-material": "^5.15.14",
"@mui/lab": "^5.0.0-alpha.169",
"@mui/material": "^5.15.14",
"@mui/x-data-grid": "^7.1.0",
"@mui/x-date-pickers": "^7.1.0",
"@socialincome/shared": "^1.0.0",
"algoliasearch": "^4.20.0",
"firebase": "^9.23.0",
"firecms": "2.2.0",
"algoliasearch": "^4.23.2",
"firebase": "^10.10.0",
"firecms": "2.2.1",
"lodash": "^4.17.21",
"luxon": "^3.4.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router": "^6.20.0",
"react-router-dom": "^6.20.0",
"react-router": "^6.22.3",
"react-router-dom": "^6.22.3",
"react-scripts": "^5.0.1"
},
"browserslist": {
Expand Down
36 changes: 18 additions & 18 deletions functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,40 +17,40 @@
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@playwright/test": "^1.40.0",
"@playwright/test": "^1.42.1",
"@types/imap-simple": "^4.2.9",
"@types/jest": "^29.5.10",
"@types/luxon": "^3.3.5",
"@types/jest": "^29.5.12",
"@types/luxon": "^3.4.2",
"@types/mailparser": "^3.4.4",
"@types/pdfkit": "^0.13.3",
"firebase-functions-test": "^3.1.0",
"@types/pdfkit": "^0.13.4",
"firebase-functions-test": "^3.1.1",
"jest": "^29.7.0",
"request": "^2.88.2",
"ts-jest": "^29.1.1",
"ts-jest": "^29.1.2",
"ts-loader": "^9.5.1",
"typescript": "^5.3.2"
"typescript": "^5.4.3"
},
"dependencies": {
"@types/ssh2-sftp-client": "^9.0.3",
"@xmldom/xmldom": "^0.8.10",
"axios": "^1.6.2",
"dotenv": "^16.3.1",
"firebase-admin": "^11.11.0",
"firebase-functions": "^4.5.0",
"axios": "^1.6.8",
"dotenv": "^16.4.5",
"firebase-admin": "^12.0.0",
"firebase-functions": "^4.8.1",
"handlebars": "^4.7.8",
"handlebars-i18next": "^1.0.3",
"i18next-resources-to-backend": "^1.2.0",
"imap-simple": "^5.1.0",
"lodash": "^4.17.21",
"luxon": "^3.4.4",
"mailparser": "^3.6.5",
"mjml": "^4.14.1",
"nodemailer": "^6.9.9",
"pdfkit": "^0.14.0",
"mailparser": "^3.6.9",
"mjml": "^4.15.3",
"nodemailer": "^6.9.13",
"pdfkit": "^0.15.0",
"ssh2-sftp-client": "^10.0.3",
"stripe": "^14.5.0",
"stripe": "^14.23.0",
"tmp-promise": "^3.0.3",
"twilio": "^4.19.0",
"xpath": "^0.0.33"
"twilio": "^5.0.1",
"xpath": "^0.0.34"
}
}
9 changes: 2 additions & 7 deletions functions/src/webhooks/admin/donation-certificates/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,15 @@ export default onCall<CreateDonationCertificatesFunctionProps, Promise<string>>(
await withFile(async ({ path }) => {
await writer.writeDonationCertificatePDF(path);

const { downloadUrl } = await storageAdmin.uploadAndGetDownloadUrl({
await storageAdmin.uploadFile({
sourceFilePath: path,
destinationFilePath: `users/${userId}/donation-certificates/${writer.year}_${writer.user.language}.pdf`,
});

await firestoreAdmin
.collection(`${USER_FIRESTORE_PATH}/${userId}/${DONATION_CERTIFICATE_FIRESTORE_PATH}`)
.doc(`${writer.year}-${writer.user.address?.country}`)
.set(
{ year: writer.year, country: writer.user.address?.country, url: downloadUrl } as DonationCertificate,
{
merge: true,
},
);
.set({ year: writer.year, country: writer.user.address?.country } as DonationCertificate, { merge: true });
console.info(`Donation certificate document written for user ${userId}`);
successCount += 1;

Expand Down
Loading

0 comments on commit 9f9a645

Please sign in to comment.