-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7cff233
commit 0229380
Showing
109 changed files
with
1,234 additions
and
2,005 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
public/.angular | ||
public/dist | ||
public/dist | ||
*.ico | ||
.DS_Store | ||
*.png | ||
.gitkeep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": true, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"printWidth": 180, | ||
"importOrder": ["^[./]"], | ||
"importOrderSeparation": true, | ||
"plugins": ["@trivago/prettier-plugin-sort-imports"], | ||
"importOrderParserPlugins": ["typescript", "decorators-legacy"] | ||
} |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import { Email } from "../../model"; | ||
import { getFrom } from "../../utils/mail"; | ||
import { Email } from '../../model'; | ||
import { getFrom } from '../../utils/mail'; | ||
|
||
it("should return from parameters for email", () => { | ||
it('should return from parameters for email', () => { | ||
const email = { | ||
from: "mail", | ||
fromname: "GDG Lille", | ||
from: 'mail', | ||
fromname: 'GDG Lille' | ||
} as Email; | ||
|
||
expect(getFrom(email)).toEqual({ | ||
From: { | ||
Email: "mail", | ||
Name: "GDG Lille", | ||
}, | ||
Email: 'mail', | ||
Name: 'GDG Lille' | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
import * as admin from "firebase-admin"; | ||
import * as functions from "firebase-functions"; | ||
import { getConfiguration } from "./v3/infrastructure/getConfiguration"; | ||
import { sendToWebhooks } from "./v3/domain/sendToWebhooks"; | ||
import * as admin from 'firebase-admin'; | ||
import * as functions from 'firebase-functions'; | ||
|
||
import { sendToWebhooks } from './v3/domain/sendToWebhooks'; | ||
import { getConfiguration } from './v3/infrastructure/getConfiguration'; | ||
|
||
const firestore = admin.firestore(); | ||
|
||
export const onSendChangesToWebHooks = functions.firestore | ||
.document("companies-2025/{companyId}") | ||
.onUpdate(async (changes) => { | ||
const configuration = await getConfiguration(firestore); | ||
sendToWebhooks(configuration, changes); | ||
}); | ||
export const onSendChangesToWebHooks = functions.firestore.document('companies-2025/{companyId}').onUpdate(async (changes) => { | ||
const configuration = await getConfiguration(firestore); | ||
sendToWebhooks(configuration, changes); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.