about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorana <ana@ana.st>2021-08-08 18:56:48 +0200
committerana <ana@ana.st>2021-08-08 18:56:48 +0200
commit433169f9db9e9709f4bc6f903122bbd996eecc99 (patch)
treeae52cd60a73089527094682fb28df0dd21a809ea /src
parent16ac6113b10382278538bf379643eb13cd40e9af (diff)
downloadeureka-marks-433169f9db9e9709f4bc6f903122bbd996eecc99.tar.gz
feat: show forecast in the sidebar
Diffstat (limited to 'src')
-rw-r--r--src/App.svelte22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/App.svelte b/src/App.svelte
index 618d850..c3471f1 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -109,7 +109,7 @@
     });
 
     if (i) {
-      return `until ${day(getZoneForecast()[i + 1].date).fromNow()}`;
+      return `for another ${day(getZoneForecast()[i + 1].date).fromNow(true)}`;
     }
 
     return "for a long time";
@@ -177,18 +177,38 @@
             {#if $level < 20}<strong>Anemos</strong>{:else}Anemos{/if}: {anemosForecast[0]
               .weatherName}
           </li>
+          {#if $level < 20}<ul>
+              {#each [1, 2, 3, 4] as i}<li>
+                  {ew.getWeatherName(getZoneForecast()[i].currWeather)}
+                </li>{/each}
+            </ul>{/if}
           <li class="pure-menu-item">
             {#if $level >= 20 && $level < 35}<strong>Pagos</strong
               >{:else}Pagos{/if}: {pagosForecast[0].weatherName}
           </li>
+          {#if $level >= 20 && $level < 35}<ul>
+              {#each [1, 2, 3, 4] as i}<li>
+                  {ew.getWeatherName(getZoneForecast()[i].currWeather)}
+                </li>{/each}
+            </ul>{/if}
           <li class="pure-menu-item">
             {#if $level >= 35 && $level < 50}<strong>Pyros</strong
               >{:else}Pyros{/if}: {pyrosForecast[0].weatherName}
           </li>
+          {#if $level >= 35 && $level < 500}<ul>
+              {#each [1, 2, 3, 4] as i}<li>
+                  {ew.getWeatherName(getZoneForecast()[i].currWeather)}
+                </li>{/each}
+            </ul>{/if}
           <li class="pure-menu-item">
             {#if $level >= 50}<strong>Hydatos</strong>{:else}Hydatos{/if}: {hydatosForecast[0]
               .weatherName}
           </li>
+          {#if $level >= 50}<ul>
+              {#each [1, 2, 3, 4] as i}<li>
+                  {ew.getWeatherName(getZoneForecast()[i].currWeather)}
+                </li>{/each}
+            </ul>{/if}
         </ul>
       </div>
       <h4>What is this?</h4>