Просмотр исходного кода

Ask user to reload page after update completes

Add reload reminder to `dw update` CLI output and update the in-app
update dialog message to match.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tuanchris 4 месяцев назад
Родитель
Сommit
9487a30a95
5 измененных файлов с 4 добавлено и 2 удалено
  1. 2 0
      dw
  2. 1 1
      frontend/src/components/UpdateDialog.tsx
  3. 0 0
      static/dist/assets/index-DiaUgbGH.js
  4. 1 1
      static/dist/index.html
  5. 0 0
      static/dist/sw.js

+ 2 - 0
dw

@@ -180,6 +180,8 @@ cmd_update() {
     fi
     fi
 
 
     echo -e "${GREEN}Update complete!${NC}"
     echo -e "${GREEN}Update complete!${NC}"
+    echo ""
+    echo -e "${YELLOW}Please reload the web page in your browser to see the changes.${NC}"
 }
 }
 
 
 cmd_logs() {
 cmd_logs() {

+ 1 - 1
frontend/src/components/UpdateDialog.tsx

@@ -122,7 +122,7 @@ export function UpdateDialog({ open, onOpenChange, currentVersion, latestVersion
               <p className="text-sm text-muted-foreground">
               <p className="text-sm text-muted-foreground">
                 This usually takes 1-2 minutes.
                 This usually takes 1-2 minutes.
                 <br />
                 <br />
-                Please reload the page after a couple of minutes.
+                Please reload the page once the update is done.
               </p>
               </p>
             </div>
             </div>
           </div>
           </div>

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
static/dist/assets/index-DiaUgbGH.js


+ 1 - 1
static/dist/index.html

@@ -58,7 +58,7 @@
           .catch(function() {});
           .catch(function() {});
       })();
       })();
     </script>
     </script>
-    <script type="module" crossorigin src="/assets/index-C7Snmecn.js"></script>
+    <script type="module" crossorigin src="/assets/index-DiaUgbGH.js"></script>
     <link rel="stylesheet" crossorigin href="/assets/index-UpWUtbXD.css">
     <link rel="stylesheet" crossorigin href="/assets/index-UpWUtbXD.css">
   <script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>
   <script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>
   <body>
   <body>

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
static/dist/sw.js


Некоторые файлы не были показаны из-за большого количества измененных файлов