[PR #549] [MERGED] feat: |UI| add configAutoRefreshInterval && autoRefresh useStorage #617

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

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/549
Author: @dreamhunter2333
Created: 1/8/2025
Status: Merged
Merged: 1/9/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/autoRefresh


📝 Commits (3)

  • 6c7cbac feat: |UI| add configAutoRefreshInterval && autoRefresh useStorage
  • a91bad2 Update MailBox.vue
  • 37c8890 Update MailBox.vue

📊 Changes

3 files changed (+28 additions, -11 deletions)

View changed files

📝 frontend/src/components/MailBox.vue (+16 -10)
📝 frontend/src/store/index.js (+4 -0)
📝 frontend/src/views/common/Appearance.vue (+8 -1)

📄 Description

PR Type

enhancement


Description

  • Add autoRefresh and configAutoRefreshInterval to global state.

  • Implement auto-refresh functionality with configurable interval.

  • Update UI components to support auto-refresh settings.

  • Ensure immediate effect of auto-refresh setting changes.


Changes walkthrough 📝

Relevant files
Enhancement
MailBox.vue
Add auto-refresh functionality with configurable interval

frontend/src/components/MailBox.vue

  • Add autoRefresh and configAutoRefreshInterval to state.
  • Implement setupAutoRefresh with configurable interval.
  • Add backFirstPageAndRefresh function.
  • Update refresh button to use backFirstPageAndRefresh.
  • +16/-10 
    Appearance.vue
    Add UI support for auto-refresh interval configuration     

    frontend/src/views/common/Appearance.vue

  • Add configAutoRefreshInterval to global state.
  • Add slider for autoRefreshInterval configuration.
  • Add translations for autoRefreshInterval.
  • +8/-1     
    index.js
    Add `autoRefresh` and `configAutoRefreshInterval` to global state

    frontend/src/store/index.js

  • Add autoRefresh and configAutoRefreshInterval to global state.
  • Initialize autoRefresh and configAutoRefreshInterval with default
    values.
  • +4/-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/549 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 1/8/2025 **Status:** ✅ Merged **Merged:** 1/9/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/autoRefresh` --- ### 📝 Commits (3) - [`6c7cbac`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/6c7cbace23ea07c1da080ec339a0e908ed22cbcb) feat: |UI| add configAutoRefreshInterval && autoRefresh useStorage - [`a91bad2`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/a91bad2bb4cb20d373f5a232868daf035f660ef7) Update MailBox.vue - [`37c8890`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/37c8890ac46cf4e02ff0078022bd78fe1d5d5aa8) Update MailBox.vue ### 📊 Changes **3 files changed** (+28 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/MailBox.vue` (+16 -10) 📝 `frontend/src/store/index.js` (+4 -0) 📝 `frontend/src/views/common/Appearance.vue` (+8 -1) </details> ### 📄 Description ### **PR Type** enhancement ___ ### **Description** - Add `autoRefresh` and `configAutoRefreshInterval` to global state. - Implement auto-refresh functionality with configurable interval. - Update UI components to support auto-refresh settings. - Ensure immediate effect of auto-refresh setting changes. ___ ### **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>MailBox.vue</strong><dd><code>Add auto-refresh functionality with configurable interval</code></dd></summary> <hr> frontend/src/components/MailBox.vue <li>Add <code>autoRefresh</code> and <code>configAutoRefreshInterval</code> to state.<br> <li> Implement <code>setupAutoRefresh</code> with configurable interval.<br> <li> Add <code>backFirstPageAndRefresh</code> function.<br> <li> Update refresh button to use <code>backFirstPageAndRefresh</code>. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/549/files#diff-ce7b47744c9011a27a8297d8e5095ccb9609a6849a9afe1a37e04ae47b2636f2">+16/-10</a>&nbsp; </td> </tr> <tr> <td> <details> <summary><strong>Appearance.vue</strong><dd><code>Add UI support for auto-refresh interval configuration</code>&nbsp; &nbsp; &nbsp; </dd></summary> <hr> frontend/src/views/common/Appearance.vue <li>Add <code>configAutoRefreshInterval</code> to global state.<br> <li> Add slider for <code>autoRefreshInterval</code> configuration.<br> <li> Add translations for <code>autoRefreshInterval</code>. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/549/files#diff-d02c2c39a55f775fe7195ed01515b5b4d1554c2b39e32179930917bb765ccf1e">+8/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>index.js</strong><dd><code>Add `autoRefresh` and `configAutoRefreshInterval` to global state</code></dd></summary> <hr> frontend/src/store/index.js <li>Add <code>autoRefresh</code> and <code>configAutoRefreshInterval</code> to global state.<br> <li> Initialize <code>autoRefresh</code> and <code>configAutoRefreshInterval</code> with default <br>values. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/549/files#diff-0c36ce15651c51795b411359e8caaf5af7960c82674b4f2015b8dd5f480fde2c">+4/-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:04 +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#617
    No description provided.