[PR #566] [MERGED] feat: announcement support html #629

Closed
opened 2026-02-26 21:32:07 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/566
Author: @dreamhunter2333
Created: 1/20/2025
Status: Merged
Merged: 1/20/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/dev


📝 Commits (2)

  • 0db4456 feat: announcement support html
  • f259083 feat: update dependencies

📊 Changes

18 files changed (+929 additions, -3648 deletions)

View changed files

📝 CHANGELOG.md (+5 -1)
📝 frontend/package.json (+3 -3)
📝 frontend/pnpm-lock.yaml (+240 -1522)
📝 frontend/src/App.vue (+20 -18)
📝 frontend/src/api/index.js (+8 -5)
📝 frontend/src/views/Header.vue (+2 -1)
📝 frontend/src/views/common/About.vue (+3 -0)
📝 frontend/src/views/common/Login.vue (+2 -1)
📝 frontend/vite.config.js (+1 -0)
📝 pages/package.json (+2 -2)
scripts/update-dependencies.sh (+15 -0)
📝 vitepress-docs/docs/.vitepress/zh.ts (+7 -0)
vitepress-docs/docs/zh/guide/common-issues.md (+41 -0)
📝 vitepress-docs/package.json (+3 -3)
📝 vitepress-docs/pnpm-lock.yaml (+182 -1518)
📝 worker/package.json (+7 -7)
📝 worker/pnpm-lock.yaml (+387 -566)
📝 worker/src/constants.ts (+1 -1)

📄 Description

User description

#565


PR Type

Enhancement


Description

  • Added HTML support for announcements.

  • Integrated useNotification for displaying announcements.

  • Updated getOpenSettings to use notifications.

  • Modified UI components to display announcements.


Changes walkthrough 📝

Relevant files
Enhancement
App.vue
Add notification provider for HTML announcements                 

frontend/src/App.vue

  • Added n-notification-provider for HTML announcements.
  • Nested n-message-provider within n-notification-provider.
  • +20/-18 
    Header.vue
    Integrate notification in Header component                             

    frontend/src/views/Header.vue

  • Imported and initialized useNotification.
  • Updated getOpenSettings call to include notification.
  • +2/-1     
    About.vue
    Display HTML announcement in About component                         

    frontend/src/views/common/About.vue

  • Display announcement using v-html.
  • Imported useGlobalState to access announcement.
  • +3/-0     
    Login.vue
    Integrate notification in Login component                               

    frontend/src/views/common/Login.vue

  • Imported and initialized useNotification.
  • Updated getOpenSettings call to include notification.
  • +2/-1     
    index.js
    Use notification for HTML announcements in API                     

    frontend/src/api/index.js

  • Updated getOpenSettings to use notification for announcements.
  • Used h function to render HTML content in notifications.
  • +8/-5     
    Configuration changes
    vite.config.js
    Auto-import useNotification in Vite config                             

    frontend/vite.config.js

    • Auto-imported useNotification from naive-ui.
    +1/-0     

    💡 PR-Agent usage: Comment /help "your question" on any pull request to receive relevant information


    🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

    ## 📋 Pull Request Information **Original PR:** https://github.com/dreamhunter2333/cloudflare_temp_email/pull/566 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 1/20/2025 **Status:** ✅ Merged **Merged:** 1/20/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/dev` --- ### 📝 Commits (2) - [`0db4456`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/0db4456e8bb99d056861e91a4fc30c4e7351d6a7) feat: announcement support html - [`f259083`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/f259083ed15ef946d0a15f7d5da0bbd6e38b458b) feat: update dependencies ### 📊 Changes **18 files changed** (+929 additions, -3648 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+5 -1) 📝 `frontend/package.json` (+3 -3) 📝 `frontend/pnpm-lock.yaml` (+240 -1522) 📝 `frontend/src/App.vue` (+20 -18) 📝 `frontend/src/api/index.js` (+8 -5) 📝 `frontend/src/views/Header.vue` (+2 -1) 📝 `frontend/src/views/common/About.vue` (+3 -0) 📝 `frontend/src/views/common/Login.vue` (+2 -1) 📝 `frontend/vite.config.js` (+1 -0) 📝 `pages/package.json` (+2 -2) ➕ `scripts/update-dependencies.sh` (+15 -0) 📝 `vitepress-docs/docs/.vitepress/zh.ts` (+7 -0) ➕ `vitepress-docs/docs/zh/guide/common-issues.md` (+41 -0) 📝 `vitepress-docs/package.json` (+3 -3) 📝 `vitepress-docs/pnpm-lock.yaml` (+182 -1518) 📝 `worker/package.json` (+7 -7) 📝 `worker/pnpm-lock.yaml` (+387 -566) 📝 `worker/src/constants.ts` (+1 -1) </details> ### 📄 Description ### **User description** #565 ___ ### **PR Type** Enhancement ___ ### **Description** - Added HTML support for announcements. - Integrated `useNotification` for displaying announcements. - Updated `getOpenSettings` to use notifications. - Modified UI components to display announcements. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>App.vue</strong><dd><code>Add notification provider for HTML announcements</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> frontend/src/App.vue <li>Added <code>n-notification-provider</code> for HTML announcements.<br> <li> Nested <code>n-message-provider</code> within <code>n-notification-provider</code>. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/566/files#diff-08bef502d8d33bea18f88fb6f472577fe30ae672500e5429b089c3e9bd686878">+20/-18</a>&nbsp; </td> </tr> <tr> <td> <details> <summary><strong>Header.vue</strong><dd><code>Integrate notification in Header component</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> frontend/src/views/Header.vue <li>Imported and initialized <code>useNotification</code>.<br> <li> Updated <code>getOpenSettings</code> call to include <code>notification</code>. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/566/files#diff-a80b3d70a6be259910c988c05d497228b10a5e686042743c1831584fb391360d">+2/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>About.vue</strong><dd><code>Display HTML announcement in About component</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> frontend/src/views/common/About.vue <li>Display announcement using <code>v-html</code>.<br> <li> Imported <code>useGlobalState</code> to access announcement. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/566/files#diff-4c4a11277d02bbfaea451252b0e7af0360440297fc8ca088df217800ff11dbbf">+3/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>Login.vue</strong><dd><code>Integrate notification in Login component</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> frontend/src/views/common/Login.vue <li>Imported and initialized <code>useNotification</code>.<br> <li> Updated <code>getOpenSettings</code> call to include <code>notification</code>. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/566/files#diff-0ee87c9358b6449242c09bd98ae1ad3a88fb9948c0fcc64c4db3d43e5ec83b4e">+2/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>index.js</strong><dd><code>Use notification for HTML announcements in API</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> frontend/src/api/index.js <li>Updated <code>getOpenSettings</code> to use <code>notification</code> for announcements.<br> <li> Used <code>h</code> function to render HTML content in notifications. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/566/files#diff-80f7e17c8e1f299b7316ce792286ebcaab67ed3afc050e3c5019ed33ab61b34b">+8/-5</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Configuration changes</strong></td><td><table> <tr> <td> <details> <summary><strong>vite.config.js</strong><dd><code>Auto-import useNotification in Vite config</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> frontend/vite.config.js - Auto-imported `useNotification` from `naive-ui`. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/566/files#diff-3ab42a14055f455cac92d192b5dfc9b850cd36f1ea3410d1694a602f6d4b83c1">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > 💡 **PR-Agent usage**: Comment `/help "your question"` on any pull request to receive relevant information --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
    kerem 2026-02-26 21:32:07 +03:00
    Sign in to join this conversation.
    No milestone
    No project
    No assignees
    1 participant
    Notifications
    Due date
    The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

    No due date set.

    Dependencies

    No dependencies set.

    Reference
    starred/cloudflare_temp_email#629
    No description provided.