diff --git a/src/lib/components/Icon.svelte b/src/lib/components/Icon.svelte new file mode 100644 index 00000000..5f0ab16a --- /dev/null +++ b/src/lib/components/Icon.svelte @@ -0,0 +1,71 @@ + + +{#if !loading && svgContent} + + {@html svgContent.replace(' +{/if} + + \ No newline at end of file diff --git a/src/lib/components/explore/ExploreGrid.svelte b/src/lib/components/explore/ExploreGrid.svelte new file mode 100644 index 00000000..0bd3888e --- /dev/null +++ b/src/lib/components/explore/ExploreGrid.svelte @@ -0,0 +1,35 @@ + + +{#if items.length === 0} +

No teams found.

+{:else} + +{/if} + + diff --git a/src/lib/components/extra/ExtraSummonsGrid.svelte b/src/lib/components/extra/ExtraSummonsGrid.svelte new file mode 100644 index 00000000..c09e5462 --- /dev/null +++ b/src/lib/components/extra/ExtraSummonsGrid.svelte @@ -0,0 +1,80 @@ + + +
+

Subaura

+
    + {#each [0,1] as i} +
  • + +
  • + {/each} +
+ +
+ + + diff --git a/src/lib/components/extra/ExtraWeaponsGrid.svelte b/src/lib/components/extra/ExtraWeaponsGrid.svelte new file mode 100644 index 00000000..6e33a98b --- /dev/null +++ b/src/lib/components/extra/ExtraWeaponsGrid.svelte @@ -0,0 +1,32 @@ + + + + + + diff --git a/src/lib/components/extra/GuidebookUnit.svelte b/src/lib/components/extra/GuidebookUnit.svelte new file mode 100644 index 00000000..fa6ca6fa --- /dev/null +++ b/src/lib/components/extra/GuidebookUnit.svelte @@ -0,0 +1,69 @@ + + +
+ {item +
{item ? displayName(item) : '—'}
+ {#if ctx.canEdit() && !item} + + {/if} + {#if ctx.canEdit() && item} + + {/if} +
+ + + diff --git a/src/lib/components/extra/GuidebooksGrid.svelte b/src/lib/components/extra/GuidebooksGrid.svelte new file mode 100644 index 00000000..f663d368 --- /dev/null +++ b/src/lib/components/extra/GuidebooksGrid.svelte @@ -0,0 +1,35 @@ + + +
+
    + {#each [1,2,3] as pos} +
  • + +
  • + {/each} +
+
+ + + diff --git a/src/lib/components/grids/CharacterGrid.svelte b/src/lib/components/grids/CharacterGrid.svelte new file mode 100644 index 00000000..91612996 --- /dev/null +++ b/src/lib/components/grids/CharacterGrid.svelte @@ -0,0 +1,77 @@ + + +
+
    + {#each grid as c, i} +
  • + +
  • + {/each} +
+
+ + diff --git a/src/lib/components/grids/SummonGrid.svelte b/src/lib/components/grids/SummonGrid.svelte new file mode 100644 index 00000000..52b5d83c --- /dev/null +++ b/src/lib/components/grids/SummonGrid.svelte @@ -0,0 +1,128 @@ + + +
+
+
+
Main
+ +
+ +
+
Summons
+
    + {#each grid as s, i} +
  • + +
  • + {/each} +
+
+ +
+
Friend
+ +
+
+ +
+ + diff --git a/src/lib/components/grids/WeaponGrid.svelte b/src/lib/components/grids/WeaponGrid.svelte new file mode 100644 index 00000000..85d2ec6c --- /dev/null +++ b/src/lib/components/grids/WeaponGrid.svelte @@ -0,0 +1,140 @@ + + +
+
+
+ +
+ +
    + {#each grid as w, i} +
  • + +
  • + {/each} +
+
+ {#if raidExtra} + + {/if} + {#if showGuidebooks} + + {/if} +
+ + diff --git a/src/lib/components/party/Party.svelte b/src/lib/components/party/Party.svelte new file mode 100644 index 00000000..556d38ed --- /dev/null +++ b/src/lib/components/party/Party.svelte @@ -0,0 +1,393 @@ + + +
+
+
+

{party.name || '(untitled party)'}

+ {#if party.description} +

{party.description}

+ {/if} +
+ +
+ {#if authUserId} + + {/if} + + +
+
+ + {#if party.raid} +
+ + {typeof party.raid.name === 'string' ? party.raid.name : party.raid.name?.en || party.raid.name?.ja || 'Unknown Raid'} + + {#if party.raid.group} + Difficulty: {party.raid.group.difficulty} + {/if} +
+ {/if} + + + + {#if error} + + {/if} + +
+ {#if activeTab === 'weapons'} + + {:else if activeTab === 'summons'} + + {:else} + + {/if} +
+ + {#if canEdit()} +
+

✏️ You can edit this party

+
+ {/if} +
+ + diff --git a/src/lib/components/reps/CharacterRep.svelte b/src/lib/components/reps/CharacterRep.svelte new file mode 100644 index 00000000..1dc8cd8e --- /dev/null +++ b/src/lib/components/reps/CharacterRep.svelte @@ -0,0 +1,58 @@ + + +
+
    +
  • + {#each grid as c, i} +
  • {#if c}Character{/if}
  • + {/each} +
+
+ + + diff --git a/src/lib/components/reps/GridRep.svelte b/src/lib/components/reps/GridRep.svelte new file mode 100644 index 00000000..18dc2e73 --- /dev/null +++ b/src/lib/components/reps/GridRep.svelte @@ -0,0 +1,128 @@ + + + + + diff --git a/src/lib/components/reps/GridRepCollection.svelte b/src/lib/components/reps/GridRepCollection.svelte new file mode 100644 index 00000000..77a3b075 --- /dev/null +++ b/src/lib/components/reps/GridRepCollection.svelte @@ -0,0 +1,23 @@ + + + + + + diff --git a/src/lib/components/reps/SummonRep.svelte b/src/lib/components/reps/SummonRep.svelte new file mode 100644 index 00000000..ea3fbf57 --- /dev/null +++ b/src/lib/components/reps/SummonRep.svelte @@ -0,0 +1,45 @@ + + +
+
{#if main}Main Summon{/if}
+
    + {#each grid as s, i} +
  • {#if s}Summon{/if}
  • + {/each} +
+
+ + + diff --git a/src/lib/components/reps/WeaponRep.svelte b/src/lib/components/reps/WeaponRep.svelte new file mode 100644 index 00000000..3fe4ed0a --- /dev/null +++ b/src/lib/components/reps/WeaponRep.svelte @@ -0,0 +1,49 @@ + + +
+
{#if mainhand}Mainhand{/if}
+
    + {#each grid as w, i} +
  • {#if w}Weapon{/if}
  • + {/each} +
+ +
+ + + diff --git a/src/lib/components/units/CharacterUnit.svelte b/src/lib/components/units/CharacterUnit.svelte new file mode 100644 index 00000000..334daec3 --- /dev/null +++ b/src/lib/components/units/CharacterUnit.svelte @@ -0,0 +1,105 @@ + + +
+ {item +
{item ? displayName(item.object) : '—'}
+ {#if ctx.canEdit() && !item} + + {/if} + {#if ctx.canEdit() && item?.id} +
+ + +
+ {/if} + {#if ctx.canEdit() && item?.id} + + {/if} +
+ + diff --git a/src/lib/components/units/SummonUnit.svelte b/src/lib/components/units/SummonUnit.svelte new file mode 100644 index 00000000..f36b2537 --- /dev/null +++ b/src/lib/components/units/SummonUnit.svelte @@ -0,0 +1,94 @@ + + +
+ {item +
{item ? displayName(item.object) : '—'}
+ {#if ctx.canEdit() && !item} + + {/if} + {#if ctx.canEdit() && item?.id} +
+ + +
+ {/if} + {#if ctx.canEdit() && item?.id} + + {/if} + {#if item?.main || position === -1} + Main + {/if} + {#if item?.friend || position === 6} + Friend + {/if} +
+ + diff --git a/src/lib/components/units/WeaponUnit.svelte b/src/lib/components/units/WeaponUnit.svelte new file mode 100644 index 00000000..9d9c9d79 --- /dev/null +++ b/src/lib/components/units/WeaponUnit.svelte @@ -0,0 +1,125 @@ + + +
+ {item +
{item ? displayName(item.object) : '—'}
+ {#if ctx.canEdit() && !item} + + {/if} + {#if ctx.canEdit() && item?.id} +
+ + +
+ {/if} + {#if (item as any)?.mainhand || position === -1} + Main + {/if} +
+ +