forked from freeCodeCamp/freeCodeCamp
-
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.
Merge pull request #707 from freeCodeCamp/main
Create a new pull request by comparing changes across two branches
- Loading branch information
Showing
138 changed files
with
9,887 additions
and
3,923 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
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
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,18 @@ | ||
import { Type } from '@fastify/type-provider-typebox'; | ||
|
||
export const addDonation = { | ||
body: Type.Object({}), | ||
response: { | ||
200: Type.Object({ | ||
isDonating: Type.Boolean() | ||
}), | ||
400: Type.Object({ | ||
message: Type.Literal('User is already donating.'), | ||
type: Type.Literal('info') | ||
}), | ||
500: Type.Object({ | ||
message: Type.Literal('Something went wrong.'), | ||
type: Type.Literal('danger') | ||
}) | ||
} | ||
}; |
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,35 @@ | ||
{ | ||
"aa-test": { | ||
"defaultValue": false | ||
}, | ||
"aa-test-in-component": { | ||
"defaultValue": false | ||
}, | ||
"landing-page-redesign": { | ||
"defaultValue": false, | ||
"rules": [ | ||
{ | ||
"coverage": 1, | ||
"hashAttribute": "id", | ||
"seed": "landing-page-redesign", | ||
"hashVersion": 2, | ||
"variations": [false, true], | ||
"weights": [0.5, 0.5], | ||
"key": "landing-page-redesign", | ||
"meta": [ | ||
{ | ||
"key": "0", | ||
"name": "Control" | ||
}, | ||
{ | ||
"key": "1", | ||
"name": "Variation 1" | ||
} | ||
], | ||
"phase": "0", | ||
"name": "tests the conversion rate of the new design comparing to the old one" | ||
} | ||
] | ||
} | ||
} | ||
|
Oops, something went wrong.