26 Commits

Author SHA1 Message Date
7f13d2613e BLOG-45 fix: XSS html issue 2025-07-24 13:12:36 +08:00
e4807cac7a BLOG-45 refactor: format 2025-07-24 12:19:06 +08:00
f07460d95c BLOG-45 feat: add markdown-it and types for improved post content rendering
Some checks failed
Frontend CI / build (push) Failing after 50s
2025-07-24 12:13:41 +08:00
65a14e5d2c BLOG-45 feat: implement post retrieval functionality with PostBloc and PostResponseDto
Some checks failed
Frontend CI / build (push) Failing after 49s
2025-07-24 09:25:27 +08:00
a73c3c3354 BLOG-45 feat: improve efficiency with ssr
Some checks failed
Frontend CI / build (push) Failing after 46s
2025-07-24 08:03:15 +08:00
901d367d9d BLOG-45 fix: trivial style
Some checks failed
Frontend CI / build (push) Failing after 52s
2025-07-24 04:55:55 +08:00
4a924c1b92 BLOG-65 Establish beta environment (#66)
All checks were successful
Frontend CI / build (push) Successful in 1m4s
### Description

- Change some environment variables implementation
- Nginx configuration:

  ```nginx
  server {
      server_name beta.squidspirit.com;

      proxy_pass_request_headers on;
      proxy_set_header Host $http_host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto $scheme;

      location / {
          proxy_pass http://127.0.0.1:10013/;
      }

      location /api/ {
          proxy_pass http://127.0.0.1:10014/;
      }

      listen 443 ssl; # managed by Certbot
      ssl_certificate /etc/letsencrypt/live/beta.squidspirit.com/fullchain.pem; # managed by Certbot
      ssl_certificate_key /etc/letsencrypt/live/beta.squidspirit.com/privkey.pem; # managed by Certbot
      include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
      ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  }

  server {
      if ($host = beta.squidspirit.com) {
          return 301 https://$host$request_uri;
      } # managed by Certbot

      server_name beta.squidspirit.com;
      listen 80;
      return 404; # managed by Certbot
  }
  ```

- Podman kube configuration:

  ```yaml
    apiVersion: v1
  kind: Secret
  metadata:
    name: beta-blog-secret
  data:
    DATABASE_PASSWORD: {{BASE64_PASSWORD}}

  ---

  apiVersion: v1
  kind: Pod
  metadata:
    name: beta-blog
  spec:
    containers:
      - name: postgres
        image: docker.io/library/postgres:17-alpine
        imagePullPolicy: always
        env:
          - name: POSTGRES_PASSWORD
            valueFrom:
              secretKeyRef:
                name: beta-blog-secret
                key: DATABASE_PASSWORD
        volumeMounts:
          - name: beta-blog-postgres
            mountPath: /var/lib/postgresql/data
      - name: backend
        image: registry.squidspirit.com/squid/beta-blog-backend:latest
        imagePullPolicy: always
        env:
          - name: DATABASE_PASSWORD
            valueFrom:
              secretKeyRef:
                name: beta-blog-secret
                key: DATABASE_PASSWORD
        volumeMounts:
          - name: beta-blog-localtime
            mountPath: /etc/localtime
            readonly: true
        ports:
          - hostPort: 10014
            hostIP: 127.0.0.1
            containerPort: 8080
      - name: frontend
        image: registry.squidspirit.com/squid/beta-blog-frontend:latest
        imagePullPolicy: always
        env:
          - name: PUBLIC_API_BASE_URL
            value: https://beta.squidspirit.com/api/
        volumeMounts:
          - name: beta-blog-localtime
            mountPath: /etc/localtime
            readonly: true
        ports:
          - hostPort: 10013
            hostIP: 127.0.0.1
            containerPort: 3000
    volumes:
      - name: beta-blog-localtime
        hostPath:
          path: /etc/localtime
      - name: beta-blog-postgres
        persistentVolumeClaim:
          claimName: beta-blog-postgres
  ```

### Package Changes

_No response_

### Screenshots

_No response_

### Reference

Resolves #65

### Checklist

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

Reviewed-on: #66
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-07-24 02:23:44 +08:00
c2462fe537 BLOG-44 Post overall page (#64)
All checks were successful
Frontend CI / build (push) Successful in 1m6s
### Description

- Change the format of color response

  ```json
  {
    "red": 0,
    "green": 255,
    "blue": 128,
    "alpha": 255
  }
  ```

- The relationship between the label's background color and its highlight color is calculated. The method involves first converting the RGB color value to HSL, then decreasing the L (lightness) component, and finally converting it back to RGB.

### Package Changes

```json
{
  "zod": "^4.0.5"
}
```

### Screenshots

|Desktop|Mobile|
|-|-|
|![image.png](/attachments/851450c4-0975-4b66-9bf7-606d0114c03e)|![image.png](/attachments/f263d65c-89e9-4439-8d50-ae92ae9482ac)|

### Reference

Resolves #44

### Checklist

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

Reviewed-on: #64
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-07-24 00:32:20 +08:00
f66f4ecc79 BLOG-62 Custom not found page (#63)
All checks were successful
Frontend CI / build (push) Successful in 1m0s
### Description

As the title.

### Package Changes

_No response_

### Screenshots

![image.png](/attachments/536ca4c6-1043-46bb-b1f0-1614f8501f9f)

### Reference

Resolves #62

### Checklist

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

Reviewed-on: #63
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-07-23 05:49:46 +08:00
06c66e1a18 BLOG-58 fix: eslint error
All checks were successful
Frontend CI / build (push) Successful in 1m3s
PR Title Check / pr-title-check (pull_request) Successful in 16s
2025-07-23 05:32:35 +08:00
f195b9c108 BLOG-58 refactor: run format
Some checks failed
Frontend CI / build (push) Failing after 1m3s
PR Title Check / pr-title-check (pull_request) Successful in 13s
2025-07-23 05:27:46 +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
93f1bee0ae NO-ISSUE Upgrade version to 0.1.1 (#42)
All checks were successful
Frontend CI / build (push) Successful in 1m26s
Deployment / frontend-deployment (release) Successful in 2m3s
PR Title Check / pr-title-check (pull_request) Successful in 13s
### Description

As the title.

### Package Changes

_No response_

### Screenshots

_No response_

### Reference

_No issue_

### Checklist

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

Reviewed-on: #42
Reviewed-by: zoe <zoe@noreply.localhost>
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-28 13:30:27 +08:00
35af8fd090 BLOG-9 Automatical deployment (#33)
All checks were successful
Frontend CI / build (push) Successful in 1m27s
### Description

- Create a Dockerfile to build the docker image.
- Set up the workflow to run deployment, which is to build and upload image to remote registry.
- Add a head meta html tag to show the version.

### Package Changes

_No response_

### Screenshots

_No response_

### Reference

Resolves #9

### Checklist

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

Reviewed-on: #33
Reviewed-by: zoe <zoe@noreply.localhost>
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-25 00:03:55 +08:00
c4535ce399 BLOG-11 Custom favicon and logo (#32)
All checks were successful
Frontend CI / build (push) Successful in 1m34s
### Description

- Design and apply a custom icon to favicon and navbar logo.
- For the favicon, it can be changed by the browser theme (dark or light.)

### Package Changes

_No response_

### Screenshots

| Desktop | Mobile |
| --- | --- |
| ![image.png](/attachments/43c0a475-6bff-4248-afca-1448c6c44b16) | ![image.png](/attachments/847fd38e-3e1e-450f-949a-91ee7fd17581) |

### Reference

Resolves #11

### Checklist

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

Reviewed-on: #32
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-24 01:35:19 +08:00
Zoe
2cd16fe9a2 BLOG-27 Add the different size shadows of the home page terminal (#31)
All checks were successful
Frontend CI / build (push) Successful in 1m21s
### Description

Add the shadow(moblie: shadow-lg & desktop: shadow-xl) of the home page terminal

### Package Changes

_No response_

### Screenshots

| Moblie | Desktop |
| --- | --- |
| <img src="/attachments/fd95d222-0b57-4d99-aaec-68c78b9cf9e7" width="400" />  | ![image.png](/attachments/b81c0868-901e-4596-a31a-0172ee368bf1) |

### Reference

Resolves #27

### Checklist

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

Reviewed-on: #31
Reviewed-by: squid <squid@squidspirit.com>
Co-authored-by: Zoe <7711zoe@gmail.com>
Co-committed-by: Zoe <7711zoe@gmail.com>
2025-01-21 23:21:17 +08:00
0e08db5c34 BLOG-7_home_page_about_me (#26)
All checks were successful
Frontend CI / build (push) Successful in 1m22s
### Description

- Implement the home page about me section
  - Terminal styled self introduction
  - Animated Motto

### Package Changes

_No response_

### Screenshots

| Desktop (2K 2160x1440) | Mobile (iPhone16 Pro 390x844) |
| --- | --- |
| <video src="attachments/a6ce3af0-1f25-4f79-89af-191e2148949f" title="Screencast From 2025-01-20 03-23-37.mp4" controls></video> | <video src="attachments/59e4ae24-dc16-4a56-88a9-11b9912c8fd4" title="Screencast From 2025-01-20 03-32-20.mp4" controls></video> |

### Reference

Resolves #7

### Checklist

- [x] A milestone is set

Reviewed-on: #26
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-20 03:35:28 +08:00
741d92ff15 BLOG-24 Create robots.txt (#25)
All checks were successful
Frontend CI / build (push) Successful in 1m20s
### Description

- As the title.

### Package Changes

_No response_

### Screenshots

_No response_

### Reference

Resolves #

### Checklist

- [x] A milestone is set

Reviewed-on: #25
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-19 22:12:04 +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
1b48a61c05 BLOG-8 Set up gitea action (#22)
All checks were successful
Frontend CI / build (push) Successful in 1m20s
### Description

- I found a build error when setting up gitea action, which is caused by circular dependency.
- We couldn't call dispatch in reducer, so something like streaming, delay, set interval could not be use in reducer directly.
- As for async function, we can use [`createAsyncTank`](https://redux-toolkit.js.org/api/createAsyncThunk).

### Package Changes

_No response_

### Screenshots

_No response_

### Reference

Resolves #8

### Checklist

- [x] A milestone is set

Reviewed-on: #22
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-18 19:59:52 +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
75bb3fbeba BLOG-13 Add link to footer icons (#18)
- squid 3853160bf3 BLOG-13 fix: add link to footer icons

Reviewed-on: #18
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-18 04:21:36 +08:00
fb3c204e76 BLOG-16 fix: build failed (#17)
- squid 389d4ef4a9 BLOG-16 fix: build failed

Reviewed-on: #17
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-18 03:59:16 +08:00
e12d815440 BLOG-5_apply_the_first_view (#15)
squid 756112cb21 BLOG-5 docs: add comment for next config
squid c16e3f29a0 BLOG-5 refactor: apply clean architecture directory structure
squid 7f1a202cc7 BLOG-5 feat: self tags animation
squid 738008b983 BLOG-5 refactor: remove unused props definition
squid 90c8a2f627 BLOG-5 feat: home page fisrt view desktop layout
zoe d76f54b2b1 BLOG-5 feat: mobile home page first view

Reviewed-on: #15
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-18 03:41:56 +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
bacb018899 BLOG-1 Init frontend framework and libraries (#10)
Reviewed-on: #10
Co-authored-by: SquidSpirit <squid@squidspirit.com>
Co-committed-by: SquidSpirit <squid@squidspirit.com>
2025-01-16 15:49:25 +08:00