[PR #663] [MERGED] feat: add ALWAYS_SHOW_ANNOUNCEMENT option #688

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

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/663
Author: @dreamhunter2333
Created: 6/9/2025
Status: Merged
Merged: 6/9/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/dev


📝 Commits (1)

  • 23d1306 feat: add ALWAYS_SHOW_ANNOUNCEMENT option

📊 Changes

15 files changed (+2142 additions, -1836 deletions)

View changed files

📝 frontend/package.json (+6 -6)
📝 frontend/pnpm-lock.yaml (+1000 -725)
📝 frontend/src/api/index.js (+5 -1)
📝 frontend/src/store/index.js (+1 -0)
📝 pages/package.json (+1 -1)
📝 vitepress-docs/docs/en/cli.md (+2 -0)
📝 vitepress-docs/docs/zh/guide/worker-vars.md (+11 -10)
📝 vitepress-docs/package.json (+2 -2)
📝 vitepress-docs/pnpm-lock.yaml (+353 -362)
📝 worker/package.json (+8 -8)
📝 worker/pnpm-lock.yaml (+748 -721)
📝 worker/src/admin_api/worker_config.ts (+1 -0)
📝 worker/src/commom_api.ts (+1 -0)
📝 worker/src/types.d.ts (+1 -0)
📝 worker/wrangler.toml.template (+2 -0)

📄 Description

PR Type

enhancement, documentation, dependencies


Description

  • Introduced ALWAYS_SHOW_ANNOUNCEMENT option to control announcement visibility.

  • Updated frontend and backend logic to handle the new option.

  • Enhanced documentation to include the new configuration variable.

  • Upgraded dependencies across multiple packages for improved stability.


Changes walkthrough 📝

Relevant files
Enhancement
5 files
commom_api.ts
Added `alwaysShowAnnouncement` to API response                     
+1/-0     
worker_config.ts
Included `ALWAYS_SHOW_ANNOUNCEMENT` in worker configuration
+1/-0     
types.d.ts
Updated types to include `ALWAYS_SHOW_ANNOUNCEMENT`           
+1/-0     
index.js
Adjusted announcement logic to respect `alwaysShowAnnouncement`
+5/-1     
index.js
Added `alwaysShowAnnouncement` to global state                     
+1/-0     
Dependencies
5 files
pnpm-lock.yaml
Updated lockfile for dependency changes                                   
+353/-362
package.json
Updated dependencies including `naive-ui` and `vue`           
+6/-6     
package.json
Upgraded dependencies including `@aws-sdk` and `hono`       
+8/-8     
package.json
Updated `wrangler` dependency version                                       
+1/-1     
package.json
Updated dependencies including `@types/node` and `wrangler`
+2/-2     
Documentation
3 files
worker-vars.md
Documented `ALWAYS_SHOW_ANNOUNCEMENT` variable                     
+11/-10 
wrangler.toml.template
Added example configuration for `ALWAYS_SHOW_ANNOUNCEMENT`
+2/-0     
cli.md
Added documentation for `ALWAYS_SHOW_ANNOUNCEMENT` in CLI
+2/-0     
Additional files
2 files
pnpm-lock.yaml +1000/-725
pnpm-lock.yaml +748/-721

Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more 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/663 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 6/9/2025 **Status:** ✅ Merged **Merged:** 6/9/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/dev` --- ### 📝 Commits (1) - [`23d1306`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/23d130650149850715a79a74d756aa4b52a31a5f) feat: add ALWAYS_SHOW_ANNOUNCEMENT option ### 📊 Changes **15 files changed** (+2142 additions, -1836 deletions) <details> <summary>View changed files</summary> 📝 `frontend/package.json` (+6 -6) 📝 `frontend/pnpm-lock.yaml` (+1000 -725) 📝 `frontend/src/api/index.js` (+5 -1) 📝 `frontend/src/store/index.js` (+1 -0) 📝 `pages/package.json` (+1 -1) 📝 `vitepress-docs/docs/en/cli.md` (+2 -0) 📝 `vitepress-docs/docs/zh/guide/worker-vars.md` (+11 -10) 📝 `vitepress-docs/package.json` (+2 -2) 📝 `vitepress-docs/pnpm-lock.yaml` (+353 -362) 📝 `worker/package.json` (+8 -8) 📝 `worker/pnpm-lock.yaml` (+748 -721) 📝 `worker/src/admin_api/worker_config.ts` (+1 -0) 📝 `worker/src/commom_api.ts` (+1 -0) 📝 `worker/src/types.d.ts` (+1 -0) 📝 `worker/wrangler.toml.template` (+2 -0) </details> ### 📄 Description ### **PR Type** enhancement, documentation, dependencies ___ ### **Description** - Introduced `ALWAYS_SHOW_ANNOUNCEMENT` option to control announcement visibility. - Updated frontend and backend logic to handle the new option. - Enhanced documentation to include the new configuration variable. - Upgraded dependencies across multiple packages for improved stability. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><details><summary>5 files</summary><table> <tr> <td><strong>commom_api.ts</strong><dd><code>Added `alwaysShowAnnouncement` to API response</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/663/files#diff-fe2dec25bee7d722fe8aa25b616c21bd12b8123e26469f5cac11c9164be783c3">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>worker_config.ts</strong><dd><code>Included `ALWAYS_SHOW_ANNOUNCEMENT` in worker configuration</code></dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/663/files#diff-49df0a54d190cb8ea3788432fae88000683da8e61a5c4d0d184c8b7f0015a0ae">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>types.d.ts</strong><dd><code>Updated types to include `ALWAYS_SHOW_ANNOUNCEMENT`</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/663/files#diff-583fb024d5c9d1efac71bbea788d8379e5e8fc2f0bb1696a9863c6f6cac54bee">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>index.js</strong><dd><code>Adjusted announcement logic to respect `alwaysShowAnnouncement`</code></dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/663/files#diff-80f7e17c8e1f299b7316ce792286ebcaab67ed3afc050e3c5019ed33ab61b34b">+5/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>index.js</strong><dd><code>Added `alwaysShowAnnouncement` to global state</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/663/files#diff-0c36ce15651c51795b411359e8caaf5af7960c82674b4f2015b8dd5f480fde2c">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></details></td></tr><tr><td><strong>Dependencies</strong></td><td><details><summary>5 files</summary><table> <tr> <td><strong>pnpm-lock.yaml</strong><dd><code>Updated lockfile for dependency changes</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/663/files#diff-655c1410f6eacceaa9003212a9f840a660ace35e32e60d792be3640ec774af6f">+353/-362</a></td> </tr> <tr> <td><strong>package.json</strong><dd><code>Updated dependencies including `naive-ui` and `vue`</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/663/files#diff-da6498268e99511d9ba0df3c13e439d10556a812881c9d03955b2ef7c6c1c655">+6/-6</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>package.json</strong><dd><code>Upgraded dependencies including `@aws-sdk` and `hono`</code>&nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/663/files#diff-89dc6f41a53ce13f2da5a00dd34868762e6cd0df46eddc9f5c3c4510b1493870">+8/-8</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>package.json</strong><dd><code>Updated `wrangler` dependency version</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/663/files#diff-74314f72f6616d400be4cb0d161867d8148f23c22d4c12c7188aedb129c00c59">+1/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>package.json</strong><dd><code>Updated dependencies including `@types/node` and `wrangler`</code></dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/663/files#diff-3adbfbfaa65ecc60f48c8d009a52c697d4c80d61ee887799df22407fcb73f380">+2/-2</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></details></td></tr><tr><td><strong>Documentation</strong></td><td><details><summary>3 files</summary><table> <tr> <td><strong>worker-vars.md</strong><dd><code>Documented `ALWAYS_SHOW_ANNOUNCEMENT` variable</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/663/files#diff-1bd83b534dfb9159de9157e0943a1f5191373ecdb5af08552c8033464596d223">+11/-10</a>&nbsp; </td> </tr> <tr> <td><strong>wrangler.toml.template</strong><dd><code>Added example configuration for `ALWAYS_SHOW_ANNOUNCEMENT`</code></dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/663/files#diff-743273da72481b71fbeb1dddfd294be9249554eef65691dfc9bcfa9f0fd971fb">+2/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td><strong>cli.md</strong><dd><code>Added documentation for `ALWAYS_SHOW_ANNOUNCEMENT` in CLI</code></dd></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/663/files#diff-3f8f72a691fa19c8581621e91cf67ad28855af7a57e58513f6563cf4c8886e5f">+2/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></details></td></tr><tr><td><strong>Additional files</strong></td><td><details><summary>2 files</summary><table> <tr> <td><strong>pnpm-lock.yaml</strong></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/663/files#diff-41b1ff3a74ba81fa74c8dd225d66d81573be3f2990e1d98b9b09798b147d40a8">+1000/-725</a></td> </tr> <tr> <td><strong>pnpm-lock.yaml</strong></td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/663/files#diff-b40cf923090a5fb5f6cc0d6ce716c560645419d762871abb50383fdb423288c6">+748/-721</a></td> </tr> </table></details></td></tr></tr></tbody></table> ___ > <details> <summary> Need help?</summary><li>Type <code>/help how to ...</code> in the comments thread for any questions about PR-Agent usage.</li><li>Check out the <a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> for more information.</li></details> --- <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:27 +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#688
    No description provided.