5 Commits

Author SHA1 Message Date
565df7aace BLOG-125 Get post by sementic ID (#134)
All checks were successful
Frontend CI / build (push) Successful in 1m26s
### Description

#### Backend

- String and interger can be pass as `id` to `GET` `/post/{id}`

- For the posts existed, the default `semantic_id` for them will be `_id`. (e.g. `_1`, `_2`)

- Semantic ID should follow the rules:

  1. It shouldn't be an integer

  1. It should match the pattern: `^[0-9a-zA-Z_\-]+$`

  <br>

  |Semantic ID|Result|Note|
  |-|-|-|
  |12|X|against with `i`|
  |-3|X|against with `i`|
  |3.14|X|against with `ii`|
  |hello world|X|against with `ii`|
  |*EMPTY*|X|against with `ii`|
  |12_34-56|O||

#### Frontend

- The href of post preview card becomes the semantic ID.

### Package Changes

```toml
regex = "1.12.1"
```

### Screenshots

![截圖 2025-10-12 下午6.23.12.png](/attachments/67de1cd7-f584-40ad-9bbd-27f8bf6f1894)

### Reference

Resolves #125.

### Checklist

- [x] A milestone is set
- [x] The related issuse has been linked to this branch

Reviewed-on: #134
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-10-12 18:28:58 +08:00
eb4b2f4d6a BLOG-58 refactor: remove nextjs code
Some checks failed
PR Title Check / pr-title-check (pull_request) Successful in 13s
Frontend CI / build (push) Failing after 44s
2025-07-23 05:19:36 +08:00
Zoe
426d569820 BLOG-14 Create not found page (#23)
All checks were successful
Frontend CI / build (push) Successful in 1m19s
### Description

- Add Not Found Page
- Change the home page h1 font weight
- Change the order of Prettier plugins to fix the issue of tailwind css not being sorted

### Package Changes

_No response_

### Screenshots

| Desktop (FHD 1920x1080) | Mobile (iPhone16 Pro 390x844) |
| --- | --- |
| ![image.png](/attachments/d3863cb9-f834-4c42-a45e-c08feacdbe0f) | <img src="/attachments/6d3f21fe-a01b-4f02-86e1-9f917345e796" width="400" /> |

### Reference

Resolves #14

### Checklist

- [x] A milestone is set

Reviewed-on: #23
Reviewed-by: squid <squid@squidspirit.com>
Co-authored-by: Zoe <7711zoe@gmail.com>
Co-committed-by: Zoe <7711zoe@gmail.com>
2025-01-19 22:00:49 +08:00
bbfe40e521 BLOG-19 Setting up prettier and sort the import order (#21)
### Description

- Setup prettier for sort the import order
- Apply re-ordering

### Package Changes

- "@trivago/prettier-plugin-sort-imports": "^5.2.1"

### Screenshots

_No response_

### Reference

Resolves #19

### Checklist

- [x] A milestone is set

Reviewed-on: #21
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-18 15:13:15 +08:00
0ed7511119 BLOG-3 Implement web frontent navbar and footer (#12)
- BLOG-3 fix: remove unused action button
- BLOG-3 feat: footer ui
- BLOG-3 feat: navbar ui
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-17 01:48:41 +08:00