mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-10 05:35:05 +08:00
parent
b1ddd57e11
commit
bdd6ce0ffa
3 changed files with 13 additions and 6 deletions
5
.github/workflows/monkey-ci.yml
vendored
5
.github/workflows/monkey-ci.yml
vendored
|
@ -3,6 +3,9 @@ name: Monkey CI
|
|||
env:
|
||||
NODE_VERSION: "16.13.2"
|
||||
|
||||
permissions:
|
||||
pull-requests: write
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [master]
|
||||
|
@ -154,7 +157,7 @@ jobs:
|
|||
if: ${{ always() && contains(needs.*.result, 'failure') && github.ref != 'refs/heads/master' }}
|
||||
steps:
|
||||
- name: Comment on PR
|
||||
uses: actions/github-script@v5
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
## Getting Started
|
||||
|
||||
When contributing to Monkeytype, it's good to know our best practices, tips, and tricks. First, Monkeytype is written in ~~JavaScript~~ TypeScript, CSS, and HTML (in order of language usage within the project); thus, we assume you are comfortable in these languages or have basic knowledge of them. Our backend is in NodeJS and we use MongoDB to store our user data. Firebase is used for authentication. Redis is used to store daily leaderboard data. Furthermore, we use Prettier to format our code.
|
||||
When contributing to Monkeytype, it's good to know our best practices, tips, and tricks. First, Monkeytype is written in ~~JavaScript~~ TypeScript, CSS, and HTML (in order of language usage within the project); thus, we assume you are comfortable in these languages or have basic knowledge of them. Our backend is in NodeJS and we use MongoDB to store our user data. Firebase is used for authentication. Redis is used to store ephemeral data (daily leaderboards, jobs via BullMQ, OAuth state parameters). Furthermore, we use Prettier to format our code.
|
||||
|
||||
## How to Contribute
|
||||
|
||||
|
|
|
@ -218,11 +218,15 @@ function rerender() {
|
|||
}
|
||||
|
||||
window.onload = async () => {
|
||||
const schemaResponse = await fetch("/configuration/schema");
|
||||
const dataResponse = await fetch("/configuration");
|
||||
const [schemaResponse, dataResponse] = await Promise.all([
|
||||
fetch("/configuration/schema"),
|
||||
fetch("/configuration"),
|
||||
]);
|
||||
|
||||
const schemaResponseJson = await schemaResponse.json();
|
||||
const dataResponseJson = await dataResponse.json();
|
||||
const [schemaResponseJson, dataResponseJson] = await Promise.all([
|
||||
schemaResponse.json(),
|
||||
dataResponse.json(),
|
||||
]);
|
||||
|
||||
const { data: formSchema } = schemaResponseJson;
|
||||
const { data: initialData } = dataResponseJson;
|
||||
|
|
Loading…
Reference in a new issue