diff --git a/README.md b/README.md index 9bffa8e..06877ac 100644 --- a/README.md +++ b/README.md @@ -22,13 +22,29 @@ make deps #### Set up mysql locally for development -There is now a Docker container to run MySQL locally, so just run the following: +If you are not using the devcontainer, you can use our Docker Compose configuration +to run MySQL locally: ```bash ( cd server/ && docker compose up -d ) make dev_db ``` +If you are using the devcontainer, just run this command in the container: +```bash +make dev_db +``` + +This command will log you into the database if you run the comman in the same +container as the database: + +```bash +mysql -u adb_user -padbpassword -h 127.0.0.1 +``` + +(Note the syntax of the above command is to accept the password after `-p` +without a space.) + ### Run After downloading the dependencies, start the server: diff --git a/frontend/ChapterList.vue b/frontend/ChapterList.vue index 64bd9d6..c4196d1 100644 --- a/frontend/ChapterList.vue +++ b/frontend/ChapterList.vue @@ -871,10 +871,10 @@ export default Vue.extend({ if (time.isValid()) { c = 'is-danger'; } - if (time.isAfter(dayjs().add(-2, 'month'))) { + if (time.isAfter(dayjs().add(-58, 'day'))) { c = 'is-warning'; } - if (time.isAfter(dayjs().add(-1, 'month'))) { + if (time.isAfter(dayjs().add(-29, 'day'))) { c = 'is-success'; } return c;