adds empty states for missing trail info
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<svg width="118" height="105" viewBox="0 0 118 105" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M79.4562 35.58C71.0762 35.58 62.5662 35.24 54.5962 33.02C46.6262 30.8 39.6662 26.58 33.1962 21.75C28.9962 18.58 25.1962 16.05 19.7462 16.43C14.427 16.7166 9.34049 18.7043 5.23621 22.1C-1.69379 28.16 -0.643785 39.37 2.11621 47.25C6.27621 59.12 18.9462 67.37 29.6662 72.74C42.0962 78.95 55.7462 82.56 69.4462 84.63C81.4462 86.46 96.8562 87.78 107.256 79.94C116.816 72.74 119.436 56.3 117.096 45.2C116.525 41.9198 114.775 38.961 112.176 36.88C105.466 31.97 95.4562 35.25 87.9162 35.41C85.1562 35.47 82.3162 35.58 79.4562 35.58Z" fill="#272933"/>
|
||||
<path d="M94.0562 82.42H27.5162V38.59L60.8462 15.67L94.0562 38.59V82.42Z" fill="#1E222A"/>
|
||||
<path d="M77.3369 9.02598L29.3103 22.0835C27.7968 22.495 26.9034 24.0556 27.3149 25.5691L38.0112 64.911C38.4227 66.4245 39.9833 67.3179 41.4969 66.9064L89.5234 53.8489C91.037 53.4374 91.9304 51.8768 91.5189 50.3633L80.8225 11.0214C80.411 9.50785 78.8505 8.61448 77.3369 9.02598Z" fill="#2D333E" stroke="#4A5059" stroke-miterlimit="10"/>
|
||||
<path d="M94.0562 82.7H27.5162V38.87L59.1562 58.93L94.0562 38.87V82.7Z" fill="#2D333E" stroke="#4A5059" stroke-miterlimit="10"/>
|
||||
<path d="M27.5162 82.7L58.9062 52.7C59.498 52.1246 60.2908 51.8026 61.1162 51.8026C61.9416 51.8026 62.7345 52.1246 63.3262 52.7L94.0562 82.7H27.5162Z" fill="#2D333E" stroke="#4A5059" stroke-miterlimit="10"/>
|
||||
<path d="M51.2162 43.3C51.0983 40.9712 51.7804 38.672 53.1492 36.7841C54.518 34.8963 56.4913 33.5333 58.7414 32.9214C60.9916 32.3095 63.3834 32.4856 65.5197 33.4203C67.656 34.355 69.4085 35.9921 70.4862 38.06" stroke="#4A5059" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M68.2363 26.27C69.0205 26.27 69.6563 25.6342 69.6563 24.85C69.6563 24.0658 69.0205 23.43 68.2363 23.43C67.452 23.43 66.8163 24.0658 66.8163 24.85C66.8163 25.6342 67.452 26.27 68.2363 26.27Z" fill="#4A5059"/>
|
||||
<path d="M46.4663 32.19C47.2505 32.19 47.8863 31.5543 47.8863 30.77C47.8863 29.9858 47.2505 29.35 46.4663 29.35C45.682 29.35 45.0463 29.9858 45.0463 30.77C45.0463 31.5543 45.682 32.19 46.4663 32.19Z" fill="#4A5059"/>
|
||||
<path d="M92.8163 24.16C93.3575 24.16 93.7963 23.7213 93.7963 23.18C93.7963 22.6388 93.3575 22.2 92.8163 22.2C92.2751 22.2 91.8363 22.6388 91.8363 23.18C91.8363 23.7213 92.2751 24.16 92.8163 24.16Z" fill="#4A5059"/>
|
||||
<path d="M22.4862 74.3C23.0275 74.3 23.4662 73.8613 23.4662 73.32C23.4662 72.7788 23.0275 72.34 22.4862 72.34C21.945 72.34 21.5062 72.7788 21.5062 73.32C21.5062 73.8613 21.945 74.3 22.4862 74.3Z" fill="#4A5059"/>
|
||||
<path d="M109.216 22.7V27.01" stroke="#4A5059" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M107.066 24.86H111.376" stroke="#4A5059" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M103.406 90.02V94.32" stroke="#4A5059" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M101.246 92.17H105.556" stroke="#4A5059" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M20.9263 1V5.3" stroke="#4A5059" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M18.7662 3.15002H23.0762" stroke="#4A5059" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M59.3763 104.09C79.6506 104.09 96.0863 103.065 96.0863 101.8C96.0863 100.535 79.6506 99.51 59.3763 99.51C39.1019 99.51 22.6663 100.535 22.6663 101.8C22.6663 103.065 39.1019 104.09 59.3763 104.09Z" fill="#272933"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.3 KiB |
@@ -0,0 +1,19 @@
|
||||
<svg width="118" height="105" viewBox="0 0 118 105" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M79.4512 35.56C71.0812 35.56 62.5612 35.22 54.5912 33C46.7712 30.83 39.5912 26.62 33.1912 21.75C29.0012 18.58 25.1912 16.05 19.7512 16.43C14.4293 16.718 9.34 18.7053 5.23121 22.1C-1.68879 28.16 -0.648793 39.39 2.12121 47.25C6.28121 59.12 18.9412 67.39 29.7012 72.74C42.1312 78.95 55.7812 82.56 69.4812 84.63C81.4812 86.46 96.9012 87.78 107.301 79.95C116.851 72.74 119.471 56.3 117.131 45.2C116.563 41.9209 114.817 38.9621 112.221 36.88C105.511 31.97 95.5012 35.25 87.9612 35.41C85.1612 35.47 82.3112 35.54 79.4512 35.56Z" fill="#F2F2F2"/>
|
||||
<path d="M94.0512 82.43H27.5212V38.59L60.8512 15.67L94.0512 38.59V82.43Z" fill="#D2D2D2"/>
|
||||
<path d="M77.3389 9.03312L29.3123 22.0907C27.7987 22.5022 26.9054 24.0627 27.3169 25.5763L38.0132 64.9181C38.4247 66.4317 39.9853 67.3251 41.4988 66.9135L89.5254 53.856C91.0389 53.4445 91.9323 51.8839 91.5208 50.3704L80.8245 11.0285C80.413 9.515 78.8524 8.62162 77.3389 9.03312Z" fill="white" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M94.0512 82.7H27.5212V38.87L59.1512 58.93L94.0512 38.87V82.7Z" fill="white" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M27.5212 82.7L58.9012 52.7C59.493 52.1246 60.2858 51.8026 61.1112 51.8026C61.9366 51.8026 62.7295 52.1246 63.3212 52.7L94.0512 82.7H27.5212Z" fill="white" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M51.2112 43.3C51.0882 40.9675 51.7679 38.6632 53.1372 36.7708C54.5065 34.8785 56.4826 33.5122 58.7366 32.8996C60.9906 32.287 63.3865 32.465 65.5252 33.4039C67.664 34.3429 69.4166 35.9861 70.4912 38.06" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M68.2313 26.27C69.0155 26.27 69.6513 25.6342 69.6513 24.85C69.6513 24.0657 69.0155 23.43 68.2313 23.43C67.447 23.43 66.8113 24.0657 66.8113 24.85C66.8113 25.6342 67.447 26.27 68.2313 26.27Z" fill="#BABABA"/>
|
||||
<path d="M46.4713 32.19C47.2555 32.19 47.8913 31.5543 47.8913 30.77C47.8913 29.9858 47.2555 29.35 46.4713 29.35C45.687 29.35 45.0513 29.9858 45.0513 30.77C45.0513 31.5543 45.687 32.19 46.4713 32.19Z" fill="#BABABA"/>
|
||||
<path d="M92.8213 24.16C93.3625 24.16 93.8013 23.7213 93.8013 23.18C93.8013 22.6388 93.3625 22.2 92.8213 22.2C92.2801 22.2 91.8413 22.6388 91.8413 23.18C91.8413 23.7213 92.2801 24.16 92.8213 24.16Z" fill="#CFCFCF"/>
|
||||
<path d="M22.4912 74.3C23.0325 74.3 23.4712 73.8613 23.4712 73.32C23.4712 72.7788 23.0325 72.34 22.4912 72.34C21.95 72.34 21.5112 72.7788 21.5112 73.32C21.5112 73.8613 21.95 74.3 22.4912 74.3Z" fill="#CFCFCF"/>
|
||||
<path d="M109.221 22.7V27.01" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M107.071 24.86H111.371" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M103.401 90.02V94.32" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M101.251 92.17H105.551" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M20.9211 1V5.3" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M18.7712 3.15002H23.0712" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M59.3714 104.09C79.6458 104.09 96.0814 103.065 96.0814 101.8C96.0814 100.535 79.6458 99.51 59.3714 99.51C39.097 99.51 22.6614 100.535 22.6614 101.8C22.6614 103.065 39.097 104.09 59.3714 104.09Z" fill="#F2F2F2"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.3 KiB |
@@ -0,0 +1,15 @@
|
||||
<svg width="118" height="116" viewBox="0 0 118 116" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M79.4562 46.83C71.0762 46.83 62.5662 46.49 54.5962 44.27C46.7762 42.1 39.5962 37.89 33.1962 33.02C28.9962 29.85 25.1962 27.33 19.7462 27.71C14.4259 27.9917 9.33794 29.9799 5.23621 33.38C-1.69379 39.44 -0.643786 50.64 2.11621 58.53C6.28621 70.38 18.9862 78.62 29.7062 84C42.1362 90.21 55.7862 93.83 69.4862 95.89C81.4862 97.71 96.8962 99.04 107.296 91.2C116.856 84 119.476 67.56 117.136 56.45C116.562 53.1707 114.813 50.2129 112.216 48.13C105.506 43.22 95.4962 46.5 87.9562 46.67C85.1562 46.73 82.3162 46.83 79.4562 46.83Z" fill="#272933"/>
|
||||
<path d="M58.9662 115.34C79.2406 115.34 95.6762 114.315 95.6762 113.05C95.6762 111.785 79.2406 110.76 58.9662 110.76C38.6919 110.76 22.2562 111.785 22.2562 113.05C22.2562 114.315 38.6919 115.34 58.9662 115.34Z" fill="#272933"/>
|
||||
<path d="M77.7763 1.96C78.3175 1.96 78.7563 1.52124 78.7563 0.98C78.7563 0.43876 78.3175 0 77.7763 0C77.235 0 76.7963 0.43876 76.7963 0.98C76.7963 1.52124 77.235 1.96 77.7763 1.96Z" fill="#4A5059"/>
|
||||
<path d="M32.9862 97.08C33.5275 97.08 33.9662 96.6412 33.9662 96.1C33.9662 95.5588 33.5275 95.12 32.9862 95.12C32.445 95.12 32.0062 95.5588 32.0062 96.1C32.0062 96.6412 32.445 97.08 32.9862 97.08Z" fill="#4A5059"/>
|
||||
<path d="M89.3262 102.08V106.39" stroke="#4A5059" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M87.1663 104.23H91.4763" stroke="#4A5059" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M57.3862 5.66003C46.7776 5.66003 36.6034 9.87431 29.102 17.3758C21.6005 24.8772 17.3862 35.0514 17.3862 45.66C17.3862 75.02 57.3862 102.52 57.3862 102.52C57.3862 102.52 97.3862 75.45 97.3862 45.66C97.3862 35.0514 93.172 24.8772 85.6705 17.3758C78.169 9.87431 67.9949 5.66003 57.3862 5.66003ZM57.3862 60.66C54.2694 60.662 51.2218 59.7403 48.6284 58.0113C46.0351 56.2823 44.0122 53.8236 42.8154 50.9457C41.6185 48.0677 41.3013 44.8997 41.9038 41.8416C42.5063 38.7835 44.0015 35.9725 46.2006 33.7637C48.3997 31.5549 51.204 30.0472 54.2594 29.4311C57.3147 28.8151 60.4842 29.1183 63.3674 30.3024C66.2506 31.4865 68.7182 33.4984 70.4587 36.0841C72.1992 38.6697 73.1344 41.7132 73.1462 44.83C73.1502 46.9027 72.7455 48.9557 71.9554 50.8719C71.1653 52.788 70.0052 54.5295 68.5415 55.997C67.0777 57.4644 65.3391 58.6289 63.425 59.4239C61.5109 60.2189 59.4589 60.6287 57.3862 60.63V60.66Z" fill="#2D333E" stroke="#4A5059" stroke-miterlimit="10"/>
|
||||
<path d="M15.0662 13.07V17.38" stroke="#4A5059" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M12.9062 15.22H17.2163" stroke="#4A5059" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M104.586 24.77V29.07" stroke="#4A5059" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M102.426 26.92H106.736" stroke="#4A5059" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M62.7062 39.02L52.0762 49.64" stroke="#4A5059" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M52.0762 39.02L62.7062 49.64" stroke="#4A5059" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.0 KiB |
@@ -0,0 +1,15 @@
|
||||
<svg width="118" height="116" viewBox="0 0 118 116" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M79.4562 46.7801C71.0762 46.7801 62.5662 46.4401 54.5962 44.2201C46.7762 42.0501 39.5962 37.8401 33.1962 32.9701C28.9962 29.8001 25.1962 27.2701 19.7462 27.6501C14.4235 27.9452 9.33664 29.9435 5.23621 33.3501C-1.69379 39.4101 -0.643785 50.6201 2.11621 58.5001C6.28621 70.3701 18.9362 78.6201 29.7062 83.9901C42.1362 90.2001 55.7862 93.7801 69.4862 95.8801C81.4862 97.7101 96.8962 99.0301 107.296 91.2001C116.856 84.0001 119.476 67.5501 117.136 56.4501C116.565 53.1698 114.815 50.2111 112.216 48.1301C105.506 43.2201 95.4962 46.5001 87.9562 46.6601C85.1562 46.7801 82.3162 46.7801 79.4562 46.7801Z" fill="#F2F2F2"/>
|
||||
<path d="M58.9663 115.34C79.2407 115.34 95.6763 114.315 95.6763 113.05C95.6763 111.785 79.2407 110.76 58.9663 110.76C38.692 110.76 22.2563 111.785 22.2563 113.05C22.2563 114.315 38.692 115.34 58.9663 115.34Z" fill="#F2F2F2"/>
|
||||
<path d="M77.7764 1.96C78.3176 1.96 78.7564 1.52124 78.7564 0.980001C78.7564 0.438762 78.3176 0 77.7764 0C77.2351 0 76.7964 0.438762 76.7964 0.980001C76.7964 1.52124 77.2351 1.96 77.7764 1.96Z" fill="#CFCFCF"/>
|
||||
<path d="M32.9863 97.07C33.5276 97.07 33.9663 96.6313 33.9663 96.09C33.9663 95.5488 33.5276 95.11 32.9863 95.11C32.4451 95.11 32.0063 95.5488 32.0063 96.09C32.0063 96.6313 32.4451 97.07 32.9863 97.07Z" fill="#CFCFCF"/>
|
||||
<path d="M89.3262 102.08V106.38" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M87.1663 104.23H91.4763" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M57.3862 5.66003C46.7776 5.66003 36.6034 9.87431 29.102 17.3758C21.6005 24.8772 17.3862 35.0514 17.3862 45.66C17.3862 75.02 57.3862 102.51 57.3862 102.51C57.3862 102.51 97.3862 75.44 97.3862 45.66C97.3862 35.0514 93.172 24.8772 85.6705 17.3758C78.169 9.87431 67.9949 5.66003 57.3862 5.66003ZM57.3862 60.66C54.2709 60.66 51.2255 59.7367 48.6346 58.0068C46.0438 56.2768 44.0238 53.8178 42.8298 50.9403C41.6358 48.0629 41.3213 44.8961 41.9262 41.8401C42.5311 38.7841 44.0281 35.9758 46.2282 33.7702C48.4282 31.5645 51.2327 30.0604 54.2872 29.4478C57.3417 28.8351 60.5092 29.1415 63.3897 30.3282C66.2701 31.515 68.7342 33.5287 70.4708 36.1152C72.2073 38.7016 73.1383 41.7447 73.1462 44.86C73.1436 49.039 71.4823 53.0461 68.5273 56.0011C65.5723 58.9561 61.5652 60.6174 57.3862 60.62V60.66Z" fill="white" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M15.0662 13.07V17.37" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M12.9062 15.22H17.2162" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M104.586 24.77V29.07" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M102.426 26.92H106.736" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M62.6962 39.01L52.0762 49.64" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M52.0762 39.01L62.6962 49.64" stroke="#BABABA" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.0 KiB |
@@ -4,7 +4,7 @@
|
||||
import { theme } from "$lib/stores/theme_store";
|
||||
|
||||
import { _ } from "svelte-i18n";
|
||||
export let width: number = 256;
|
||||
export let width: number = 192;
|
||||
</script>
|
||||
|
||||
<div class="flex flex-col justify-center items-center gap-y-4">
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<script lang="ts">
|
||||
import emptyStateDescriptionDark from "$lib/assets/svgs/empty_states/empty_state_description_dark.svg";
|
||||
import emptyStateDescriptionLight from "$lib/assets/svgs/empty_states/empty_state_description_light.svg";
|
||||
import { theme } from "$lib/stores/theme_store";
|
||||
|
||||
import { _ } from "svelte-i18n";
|
||||
export let width: number = 192;
|
||||
</script>
|
||||
|
||||
<div class="flex flex-col justify-center items-center gap-y-4">
|
||||
<img
|
||||
style="width: {width}px"
|
||||
class="rounded-full aspect-square"
|
||||
src={$theme === "light" ? emptyStateDescriptionLight : emptyStateDescriptionDark}
|
||||
alt="Empty State showing a wanderer going into the distance"
|
||||
/>
|
||||
|
||||
<h3 class="text-xl font-medium text-center text-gray-500">{$_("no-description-for-now")}...</h3>
|
||||
</div>
|
||||
@@ -0,0 +1,19 @@
|
||||
<script lang="ts">
|
||||
import emptyStateTrailDark from "$lib/assets/svgs/empty_states/empty_state_trail_dark.svg";
|
||||
import emptyStateTrailLight from "$lib/assets/svgs/empty_states/empty_state_trail_light.svg";
|
||||
import { theme } from "$lib/stores/theme_store";
|
||||
|
||||
import { _ } from "svelte-i18n";
|
||||
export let width: number = 192;
|
||||
</script>
|
||||
|
||||
<div class="flex flex-col justify-center items-center gap-y-4">
|
||||
<img
|
||||
style="width: {width}px"
|
||||
class="rounded-full aspect-square"
|
||||
src={$theme === "light" ? emptyStateTrailLight : emptyStateTrailDark}
|
||||
alt="Empty State showing a wanderer going into the distance"
|
||||
/>
|
||||
|
||||
<h3 class="text-xl font-medium text-center text-gray-500">{$_("no-photos-here")}...</h3>
|
||||
</div>
|
||||
@@ -0,0 +1,19 @@
|
||||
<script lang="ts">
|
||||
import emptyStateWaypointDark from "$lib/assets/svgs/empty_states/empty_state_waypoint_dark.svg";
|
||||
import emptyStateWaypointLight from "$lib/assets/svgs/empty_states/empty_state_waypoint_light.svg";
|
||||
import { theme } from "$lib/stores/theme_store";
|
||||
|
||||
import { _ } from "svelte-i18n";
|
||||
export let width: number = 192;
|
||||
</script>
|
||||
|
||||
<div class="flex flex-col justify-center items-center gap-y-4">
|
||||
<img
|
||||
style="width: {width}px"
|
||||
class="rounded-full aspect-square"
|
||||
src={$theme === "light" ? emptyStateWaypointLight : emptyStateWaypointDark}
|
||||
alt="Empty State showing a wanderer going into the distance"
|
||||
/>
|
||||
|
||||
<h3 class="text-xl font-medium text-center text-gray-500">{$_("no-waypoints-yet")}...</h3>
|
||||
</div>
|
||||
@@ -39,6 +39,9 @@
|
||||
import SummitLogTable from "../summit_log/summit_log_table.svelte";
|
||||
import MapWithElevationMaplibre from "./map_with_elevation_maplibre.svelte";
|
||||
import EmptyStateComment from "../empty_states/empty_state_comment.svelte";
|
||||
import EmptyStatePhotos from "../empty_states/empty_state_photos.svelte";
|
||||
import EmptyStateWaypoint from "../empty_states/empty_state_waypoint.svelte";
|
||||
import EmptyStateDescription from "../empty_states/empty_state_description.svelte";
|
||||
|
||||
export let trail: Trail;
|
||||
export let mode: "overview" | "map" | "list" = "map";
|
||||
@@ -299,11 +302,16 @@
|
||||
class:md:grid-cols-[1fr_18rem]={mode == "overview"}
|
||||
>
|
||||
{#if activeTab == 0}
|
||||
{#if trail.description?.length}
|
||||
<article class="text-justify whitespace-pre-line text-sm">
|
||||
{trail.description}
|
||||
</article>
|
||||
{:else}
|
||||
<EmptyStateDescription></EmptyStateDescription>
|
||||
{/if}
|
||||
{/if}
|
||||
{#if activeTab == 1}
|
||||
{#if trail.expand?.waypoints.length}
|
||||
<ul>
|
||||
{#each trail.expand?.waypoints ?? [] as waypoint, i}
|
||||
<li
|
||||
@@ -314,8 +322,12 @@
|
||||
</li>
|
||||
{/each}
|
||||
</ul>
|
||||
{:else}
|
||||
<EmptyStateWaypoint></EmptyStateWaypoint>
|
||||
{/if}
|
||||
{/if}
|
||||
{#if activeTab == 2}
|
||||
{#if trail.photos.length}
|
||||
<div
|
||||
id="photo-gallery"
|
||||
class="grid grid-cols-1 {mode == 'overview'
|
||||
@@ -323,7 +335,9 @@
|
||||
: ''} gap-4"
|
||||
>
|
||||
<PhotoGallery
|
||||
photos={trail.photos.map((p) => getFileURL(trail, p))}
|
||||
photos={trail.photos.map((p) =>
|
||||
getFileURL(trail, p),
|
||||
)}
|
||||
bind:open={openGallery}
|
||||
></PhotoGallery>
|
||||
{#each trail.photos ?? [] as photo, i}
|
||||
@@ -337,6 +351,9 @@
|
||||
/>
|
||||
{/each}
|
||||
</div>
|
||||
{:else}
|
||||
<EmptyStatePhotos></EmptyStatePhotos>
|
||||
{/if}
|
||||
{/if}
|
||||
{#if activeTab == 3}
|
||||
<div class="overflow-x-auto">
|
||||
@@ -386,7 +403,7 @@
|
||||
></SkeletonNotificationCard>
|
||||
{/each}
|
||||
{:else if $comments.length == 0}
|
||||
<EmptyStateComment width={192}></EmptyStateComment>
|
||||
<EmptyStateComment></EmptyStateComment>
|
||||
{:else}
|
||||
{#each $comments ?? [] as comment}
|
||||
<li>
|
||||
|
||||
@@ -177,11 +177,14 @@
|
||||
"no-account": "Du hast noch kein Konto?",
|
||||
"no-comments-so-far": "",
|
||||
"no-data": "Keine Daten",
|
||||
"no-description-for-now": "",
|
||||
"no-grid": "Kein Gitter",
|
||||
"no-notifications": "",
|
||||
"no-photos-here": "",
|
||||
"no-preference": "Keine Präferenz",
|
||||
"no-results": "Keine Ergebnisse gefunden",
|
||||
"no-routes-added": "",
|
||||
"no-waypoints-yet": "",
|
||||
"not-a-valid-email-address": "Keine gültige Email-Adresse",
|
||||
"not-completed": "Nicht abgeschlossen",
|
||||
"notification-list-create": "",
|
||||
|
||||
@@ -177,11 +177,14 @@
|
||||
"no-account": "Don't have an account?",
|
||||
"no-comments-so-far": "No comments so far",
|
||||
"no-data": "No data",
|
||||
"no-description-for-now": "No description for now",
|
||||
"no-grid": "No Grid",
|
||||
"no-notifications": "No notifications",
|
||||
"no-photos-here": "No photos here",
|
||||
"no-preference": "No preference",
|
||||
"no-results": "No results found",
|
||||
"no-routes-added": "No routes added",
|
||||
"no-waypoints-yet": "No waypoints yet",
|
||||
"not-a-valid-email-address": "Not a valid email address",
|
||||
"not-completed": "Not completed",
|
||||
"notification-list-create": "{user} created a new list",
|
||||
|
||||
@@ -177,11 +177,14 @@
|
||||
"no-account": "Pas encore de compte ?",
|
||||
"no-comments-so-far": "",
|
||||
"no-data": "",
|
||||
"no-description-for-now": "",
|
||||
"no-grid": "",
|
||||
"no-notifications": "",
|
||||
"no-photos-here": "",
|
||||
"no-preference": "Pas de préférence",
|
||||
"no-results": "Pas de résultat",
|
||||
"no-routes-added": "",
|
||||
"no-waypoints-yet": "",
|
||||
"not-a-valid-email-address": "Adresse email invalide",
|
||||
"not-completed": "Pas terminé",
|
||||
"notification-list-create": "",
|
||||
|
||||
@@ -177,11 +177,14 @@
|
||||
"no-account": "Nincs még fiókja?",
|
||||
"no-comments-so-far": "",
|
||||
"no-data": "",
|
||||
"no-description-for-now": "",
|
||||
"no-grid": "",
|
||||
"no-notifications": "",
|
||||
"no-photos-here": "",
|
||||
"no-preference": "Nincs preferált",
|
||||
"no-results": "Nincs eredmény",
|
||||
"no-routes-added": "",
|
||||
"no-waypoints-yet": "",
|
||||
"not-a-valid-email-address": "Érvénytelen e-mail cím",
|
||||
"not-completed": "Nem teljesített",
|
||||
"notification-list-create": "",
|
||||
|
||||
@@ -177,11 +177,14 @@
|
||||
"no-account": "Non hai ancora un account?",
|
||||
"no-comments-so-far": "",
|
||||
"no-data": "",
|
||||
"no-description-for-now": "",
|
||||
"no-grid": "",
|
||||
"no-notifications": "",
|
||||
"no-photos-here": "",
|
||||
"no-preference": "Nessuna preferenza",
|
||||
"no-results": "Nessun risultato trovato",
|
||||
"no-routes-added": "",
|
||||
"no-waypoints-yet": "",
|
||||
"not-a-valid-email-address": "Indirizzo email non valido",
|
||||
"not-completed": "Non completato",
|
||||
"notification-list-create": "",
|
||||
|
||||
@@ -177,11 +177,14 @@
|
||||
"no-account": "Heb je nog geen account?",
|
||||
"no-comments-so-far": "",
|
||||
"no-data": "",
|
||||
"no-description-for-now": "",
|
||||
"no-grid": "",
|
||||
"no-notifications": "",
|
||||
"no-photos-here": "",
|
||||
"no-preference": "Geen voorkeur",
|
||||
"no-results": "Er zijn geen zoekresultaten",
|
||||
"no-routes-added": "",
|
||||
"no-waypoints-yet": "",
|
||||
"not-a-valid-email-address": "Het e-mailadres is ongeldig",
|
||||
"not-completed": "Niet voltooid",
|
||||
"notification-list-create": "",
|
||||
|
||||
@@ -177,11 +177,14 @@
|
||||
"no-account": "Nie masz konta?",
|
||||
"no-comments-so-far": "",
|
||||
"no-data": "",
|
||||
"no-description-for-now": "",
|
||||
"no-grid": "",
|
||||
"no-notifications": "",
|
||||
"no-photos-here": "",
|
||||
"no-preference": "Brak preferencji",
|
||||
"no-results": "Brak wyników",
|
||||
"no-routes-added": "",
|
||||
"no-waypoints-yet": "",
|
||||
"not-a-valid-email-address": "Nieprawidłowy adres email",
|
||||
"not-completed": "Nie dokończono",
|
||||
"notification-list-create": "",
|
||||
|
||||
@@ -177,11 +177,14 @@
|
||||
"no-account": "Não tem uma conta?",
|
||||
"no-comments-so-far": "",
|
||||
"no-data": "",
|
||||
"no-description-for-now": "",
|
||||
"no-grid": "",
|
||||
"no-notifications": "",
|
||||
"no-photos-here": "",
|
||||
"no-preference": "Nenhuma preferência",
|
||||
"no-results": "Nenhum resultado encontrado",
|
||||
"no-routes-added": "",
|
||||
"no-waypoints-yet": "",
|
||||
"not-a-valid-email-address": "Não um endereço de e-mail válido",
|
||||
"not-completed": "Não preenchido",
|
||||
"notification-list-create": "",
|
||||
|
||||
@@ -177,11 +177,14 @@
|
||||
"no-account": "还未注册?",
|
||||
"no-comments-so-far": "",
|
||||
"no-data": "",
|
||||
"no-description-for-now": "",
|
||||
"no-grid": "",
|
||||
"no-notifications": "",
|
||||
"no-photos-here": "",
|
||||
"no-preference": "尚未规划",
|
||||
"no-results": "没有找到结果",
|
||||
"no-routes-added": "",
|
||||
"no-waypoints-yet": "",
|
||||
"not-a-valid-email-address": "无效电子邮箱地址",
|
||||
"not-completed": "未完成",
|
||||
"notification-list-create": "",
|
||||
|
||||
Reference in New Issue
Block a user