Skip to content

Commit

Permalink
Merge pull request #211 from dxe/alex/chaptercolor
Browse files Browse the repository at this point in the history
Update logic for coloring chapters' last action
  • Loading branch information
alexsapps authored Jun 3, 2024
2 parents 5f59dc6 + bfb593c commit 81fab1a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions frontend/ChapterList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 81fab1a

Please sign in to comment.