diff --git a/CHANGELOG.md b/CHANGELOG.md index d4ad063a..20ff8c2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,53 @@ All notable changes to this project will be documented in this file. Dates are displayed in UTC. +#### [0.9.0](https://git.odit.services/lfk/frontend/compare/0.8.7...0.9.0) + +- Merge pull request 'Runner cards feature/94-runnercard_mgnt' (#111) from feature/94-runnercard_mgnt into dev [`2932f45`](https://git.odit.services/lfk/frontend/commit/2932f4591e62187a4903511051d110e9679c0993) +- Sorted translations ๐ [`1665a1a`](https://git.odit.services/lfk/frontend/commit/1665a1a093862a13be78ec65dcdf64eb7d855593) +- Added translations [`6b5945a`](https://git.odit.services/lfk/frontend/commit/6b5945add86a77630c500872545bb91724b2047f) +- Sorted translations ๐ [`d6c315a`](https://git.odit.services/lfk/frontend/commit/d6c315ab8e020bc65b967e2c3f4cd921392d66d5) +- Sorted translations [`de2fe0e`](https://git.odit.services/lfk/frontend/commit/de2fe0e9f171efb3deeea8cfe638f60e3ca90423) +- Added basic cards page [`5c5ef95`](https://git.odit.services/lfk/frontend/commit/5c5ef95d2be65c0e951dcd472113c8ce0593c9e0) +- Moved contract generation to it's own component [`0cfc87f`](https://git.odit.services/lfk/frontend/commit/0cfc87fbe6adfacab5c2fab732866aead3231fbf) +- Teams now use the new sponsoring contracts module [`014ba3b`](https://git.odit.services/lfk/frontend/commit/014ba3bf6718ff28f35c67c8f732b53aae50723c) +- Basic card generation worX ๐๐ [`d467475`](https://git.odit.services/lfk/frontend/commit/d467475b6d61d50bec3a043ea8792533e8593df6) +- Orgs now use the new sponsoring contracts module [`8b451b3`](https://git.odit.services/lfk/frontend/commit/8b451b3c6794e7df09898a687533ce8fadd56192) +- Added runnercard detail/edit modal [`0313f8c`](https://git.odit.services/lfk/frontend/commit/0313f8cc495088df1237d00e6b9ed1a94f019644) +- Implemented Add card modal [`535b23a`](https://git.odit.services/lfk/frontend/commit/535b23ae917de154e08962f5d486c50d6e091fe0) +- Added bulk card creation modal [`8a32569`](https://git.odit.services/lfk/frontend/commit/8a32569a3be1ad26ba163f4e2b67a368cfeeb422) +- Added basic card overview [`c6a1526`](https://git.odit.services/lfk/frontend/commit/c6a15264b3d13d516f3d97ea4b891ed1c328cead) +- Fixed org generation not hiding the generation toast [`c87321f`](https://git.odit.services/lfk/frontend/commit/c87321f804858f84fcccd85a15b9c3fb003c18be) +- Working runner runnercard generation [`c907486`](https://git.odit.services/lfk/frontend/commit/c907486c4d1c64114124deb3cd0d0cf11d38a6b1) +- Implemented bulk creation [`7ad6b73`](https://git.odit.services/lfk/frontend/commit/7ad6b73574174f24f2d6f23b3caf4823881a85e7) +- Now w/ working dialog๐๐๐ [`ae96730`](https://git.odit.services/lfk/frontend/commit/ae9673070c3959ff6190a37123f3fc609b182c5a) +- Now w/working editing [`fac059f`](https://git.odit.services/lfk/frontend/commit/fac059f02cae84261443ee95448ec8db06dd755a) +- Added runnercard generation for teams [`23e0b53`](https://git.odit.services/lfk/frontend/commit/23e0b53107623c505d07a99a51ce836c9324acce) +- Added bulk creation modal to cards view [`f46ccb6`](https://git.odit.services/lfk/frontend/commit/f46ccb610e01654a4ee5e47d78ab500045dd494b) +- Added a new runenrcard logo [`acf78a8`](https://git.odit.services/lfk/frontend/commit/acf78a88221d0988f6501ae341e028a4113b578d) +- Moved modal import to overview for simplification [`1a52aaf`](https://git.odit.services/lfk/frontend/commit/1a52aaf8d1ad19b03d355aec0e1c48182db024f9) +- Added CardsEmptyState + Emtystate graphic [`2d0beaa`](https://git.odit.services/lfk/frontend/commit/2d0beaaaad4efefd036bbef09f10c8c22bdb2760) +- Added message for missing runner/blanco card) [`4715978`](https://git.odit.services/lfk/frontend/commit/4715978f810bbb283876f06d147b1ec86d373786) +- Fixed counting bug [`f5c1ec9`](https://git.odit.services/lfk/frontend/commit/f5c1ec9939d856804c9ec3ead4b3ed869fc2ea63) +- Added card generation/printing from detail [`4a36fb6`](https://git.odit.services/lfk/frontend/commit/4a36fb6d952d9fe4d5edbe1ed0779c7fbcd50ef0) +- Formatting [`a516aa7`](https://git.odit.services/lfk/frontend/commit/a516aa7775faa2244862bb2e3c4de623c6405e5b) +- Moved the pdf generation related componenets to their own folder [`ddd82a7`](https://git.odit.services/lfk/frontend/commit/ddd82a71a7b67ead892626addfd56ba4cc632750) +- Now routing the cards page [`e852305`](https://git.odit.services/lfk/frontend/commit/e852305400a139f8169350077c30012aed556828) +- Fuggin snowpack bs [`44bc148`](https://git.odit.services/lfk/frontend/commit/44bc14820fed26d5e0d8b12ecd6b46ca0608ae7b) +- Formatting [`9f7d223`](https://git.odit.services/lfk/frontend/commit/9f7d2234fb9603a7391ec9a64253724c2c25c333) +- Now with working org runenrcard generation [`4b3d38b`](https://git.odit.services/lfk/frontend/commit/4b3d38b05b3ed74fc3c0d77e00fa2ed245e6325c) +- Now importing runner overview [`77e9c20`](https://git.odit.services/lfk/frontend/commit/77e9c205f94cf56c2e3584444899adb1e8bdf3c6) +- CardsOverview - move to 'enabled' language key [`df53c07`](https://git.odit.services/lfk/frontend/commit/df53c0745035a220d4c07fdce1b5a5e4d763411d) +- โ typo - "Geb" -> "Gebe" [`f794af0`](https://git.odit.services/lfk/frontend/commit/f794af0950de59a7a7b468c30abdcb5c145f65fb) +- Bumped lfk client lib version [`3cd0468`](https://git.odit.services/lfk/frontend/commit/3cd0468b1921824b131178cb02677540b079f9b0) +- drop console log - CardDetailModal [`40899e9`](https://git.odit.services/lfk/frontend/commit/40899e9d80ba07a3fbbcac72782db53d98dc318e) +- Removed debug info [`55693de`](https://git.odit.services/lfk/frontend/commit/55693de93420c2d76af296fcacc6bcad644a3cbf) + #### [0.8.7](https://git.odit.services/lfk/frontend/compare/0.8.6...0.8.7) +> 25 March 2021 + +- ๐RELEASE v0.8.7 [`0af2647`](https://git.odit.services/lfk/frontend/commit/0af26479656393b0baea88f6f83c778740a67e62) - Fixed listen on wrong permission๐ [`0844215`](https://git.odit.services/lfk/frontend/commit/08442154f4bf94fc1101808b4585dc1f95afe8b2) #### [0.8.6](https://git.odit.services/lfk/frontend/compare/0.8.5...0.8.6) diff --git a/index.template.html b/index.template.html index 0d09d71c..0c6da9ee 100644 --- a/index.template.html +++ b/index.template.html @@ -14,7 +14,7 @@
- + diff --git a/package.json b/package.json index 573c8c37..6429c2bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@odit/lfk-frontend", - "version": "0.8.7", + "version": "0.9.0", "scripts": { "i18n-order": "node order.js", "dev:all": "yarn prebuild && snowpack dev", diff --git a/src/App.svelte b/src/App.svelte index e13ce05e..9112e015 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,224 +1,224 @@ - - -- {$_('just-enter-how-many-you-want-and-the-system-will-create-them')} -
-+ {$_('just-enter-how-many-you-want-and-the-system-will-create-them')} +
+- {$_('you-can-provide-a-runner-but-you-dont-have-to')} - {$_('if-you-want-to-create-multiple-blanco-cards-try-the-add-bulk-button')} -
-+ {$_('you-can-provide-a-runner-but-you-dont-have-to')} + {$_('if-you-want-to-create-multiple-blanco-cards-try-the-add-bulk-button')} +
+- {$_('you-can-provide-a-runner-but-you-dont-have-to')} -
-- { - editable.enabled = !editable.enabled; - }} - name="enabled" - type="checkbox" - checked={editable.enabled} - class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded" /> - {$_('this-card-is')} - {#if editable.enabled} - {$_('enabled')} - {:else}{$_('disabled')}{/if} -
-+ {$_('you-can-provide-a-runner-but-you-dont-have-to')} +
++ { + editable.enabled = !editable.enabled; + }} + name="enabled" + type="checkbox" + checked={editable.enabled} + class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded" /> + {$_('this-card-is')} + {#if editable.enabled} + {$_('enabled')} + {:else}{$_('disabled')}{/if} +
+
-
- {$_('there-are-no-cards-yet')}
- {$_('add-your-first-card')}
-
+
+ {$_('there-are-no-cards-yet')}
+ {$_('add-your-first-card')}
+
{$_('loading-cards')}
-{$_('this-might-take-a-moment')}
-- { - const newstate = !current_cards.some((r) => r.is_selected === true); - current_cards = current_cards.map((r) => { - r.is_selected = newstate; - return r; - }); - }} - class="underline cursor-pointer select-none">{#if current_cards.some((r) => r.is_selected === true)} - {$_('deselect-all')} - {:else}{$_('select-all')}{/if} - - | -- {$_('code')} - | -- {$_('runner')} - | -- {$_('status')} - | -- {$_('action')} - | -|
---|---|---|---|---|---|
- - | -
- {card.code}
- |
-
-
- {#if card.runner}
- {card.runner.firstname}
- {card.runner.middlename || ''}
- {card.runner.lastname}
- {:else}{$_('non-blanko')}{/if}
-
- |
-
-
- {#if card.enabled}
- {$_('enabled')}
- {:else}
- {$_('disabled')}
- {/if}
-
- |
-
- {#if active_deletes[card.id] === true}
- - - - | - {:else} -- - {#if store.state.jwtinfo.userdetails.permissions.includes('CARD:DELETE')} - - {/if} - | - {/if} -
{$_('loading-cards')}
+{$_('this-might-take-a-moment')}
++ { + const newstate = !current_cards.some((r) => r.is_selected === true); + current_cards = current_cards.map((r) => { + r.is_selected = newstate; + return r; + }); + }} + class="underline cursor-pointer select-none">{#if current_cards.some((r) => r.is_selected === true)} + {$_('deselect-all')} + {:else}{$_('select-all')}{/if} + + | ++ {$_('code')} + | ++ {$_('runner')} + | ++ {$_('status')} + | ++ {$_('action')} + | +|
---|---|---|---|---|---|
+ + | +
+ {card.code}
+ |
+
+
+ {#if card.runner}
+ {card.runner.firstname}
+ {card.runner.middlename || ''}
+ {card.runner.lastname}
+ {:else}{$_('non-blanko')}{/if}
+
+ |
+
+
+ {#if card.enabled}
+ {$_('enabled')}
+ {:else}
+ {$_('disabled')}
+ {/if}
+
+ |
+
+ {#if active_deletes[card.id] === true}
+ + + + | + {:else} ++ + {#if store.state.jwtinfo.userdetails.permissions.includes('CARD:DELETE')} + + {/if} + | + {/if} +
{$_('organizations-are-being-loaded')}
-{$_('this-might-take-a-moment')}
-- { - const newstate = !current_organizations.some((r) => r.is_selected === true); - current_organizations = current_organizations.map((r) => { - r.is_selected = newstate; - return r; - }); - }} - class="underline cursor-pointer select-none">{#if current_organizations.some((r) => r.is_selected === true)} - {$_('deselect-all')} - {:else}{$_('select-all')}{/if} - - | -- {$_('name')} - | -- {$_('address')} - | -- {$_('contact')} - | -- {$_('action')} - | -|
---|---|---|---|---|---|
- - | -
-
-
-
-
-
- {o.name}
-
- |
-
-
-
-
-
-
- {#if o.address.address1 !== null}
- {o.address.address1}
- - {o.address.address2 || ''} - {o.address.postalcode} - {o.address.city} - {o.address.country} - {/if} - |
-
-
-
-
-
-
- {#if o.contact}
- {o.contact.firstname}
- {o.contact.middlename || ''}
- {o.contact.lastname}
- {:else}{$_('no-contact-specified')}{/if}
-
- |
- {#if active_deletes[o.id] === true}
- - - - | - {:else} -- {$_('details')} - {#if store.state.jwtinfo.userdetails.permissions.includes('ORGANIZATION:DELETE')} - - {/if} - | - {/if} -
{$_('organizations-are-being-loaded')}
+{$_('this-might-take-a-moment')}
++ { + const newstate = !current_organizations.some((r) => r.is_selected === true); + current_organizations = current_organizations.map((r) => { + r.is_selected = newstate; + return r; + }); + }} + class="underline cursor-pointer select-none">{#if current_organizations.some((r) => r.is_selected === true)} + {$_('deselect-all')} + {:else}{$_('select-all')}{/if} + + | ++ {$_('name')} + | ++ {$_('address')} + | ++ {$_('contact')} + | ++ {$_('action')} + | +|
---|---|---|---|---|---|
+ + | +
+
+
+
+
+
+ {o.name}
+
+ |
+
+
+
+
+
+
+ {#if o.address.address1 !== null}
+ {o.address.address1}
+ + {o.address.address2 || ''} + {o.address.postalcode} + {o.address.city} + {o.address.country} + {/if} + |
+
+
+
+
+
+
+ {#if o.contact}
+ {o.contact.firstname}
+ {o.contact.middlename || ''}
+ {o.contact.lastname}
+ {:else}{$_('no-contact-specified')}{/if}
+
+ |
+ {#if active_deletes[o.id] === true}
+ + + + | + {:else} ++ {$_('details')} + {#if store.state.jwtinfo.userdetails.permissions.includes('ORGANIZATION:DELETE')} + + {/if} + | + {/if} +
{$_('runners-are-being-loaded')}
-{$_('this-might-take-a-moment')}
-- { - const newstate = !current_runners.some((r) => r.is_selected === true); - current_runners = current_runners.map((r) => { - r.is_selected = newstate; - return r; - }); - }} - class="underline cursor-pointer select-none">{#if current_runners.some((r) => r.is_selected === true)} - {$_('deselect-all')} - {:else}{$_('select-all')}{/if} - - | -- {$_('name')} - | -- {$_('contact-information')} - | -- {$_('group')} - | -- {$_('distance-in-km')} - | -- {$_('action')} - | -|
---|---|---|---|---|---|---|
- - | -
-
-
-
-
-
- {runner.firstname}
- {runner.middlename || ''}
- {runner.lastname}
-
- |
-
- {#if runner.email}
- {runner.email}
- {/if}
- {#if runner.phone}
- {runner.phone}
- {/if}
- {#if runner.address.address1 !== null}
- {runner.address.address1}- {runner.address.address2 || ''} - {runner.address.postalcode} - {runner.address.city} - {runner.address.country} - {/if} - |
- - {#if runner.group.responseType === 'RUNNERTEAM'} - {runner.group.name} - {/if} - {#if runner.group.responseType === 'RUNNERORGANIZATION'} - {runner.group.name} - {/if} - | -- {runner.distance} - | - {#if active_deletes[runner.id] === true} -- - - | - {:else} -- {$_('details')} - {#if store.state.jwtinfo.userdetails.permissions.includes('RUNNER:DELETE')} - - {/if} - | - {/if} -
{$_('runners-are-being-loaded')}
+{$_('this-might-take-a-moment')}
++ { + const newstate = !current_runners.some((r) => r.is_selected === true); + current_runners = current_runners.map((r) => { + r.is_selected = newstate; + return r; + }); + }} + class="underline cursor-pointer select-none">{#if current_runners.some((r) => r.is_selected === true)} + {$_('deselect-all')} + {:else}{$_('select-all')}{/if} + + | ++ {$_('name')} + | ++ {$_('contact-information')} + | ++ {$_('group')} + | ++ {$_('distance-in-km')} + | ++ {$_('action')} + | +|
---|---|---|---|---|---|---|
+ + | +
+
+
+
+
+
+ {runner.firstname}
+ {runner.middlename || ''}
+ {runner.lastname}
+
+ |
+
+ {#if runner.email}
+ {runner.email}
+ {/if}
+ {#if runner.phone}
+ {runner.phone}
+ {/if}
+ {#if runner.address.address1 !== null}
+ {runner.address.address1}+ {runner.address.address2 || ''} + {runner.address.postalcode} + {runner.address.city} + {runner.address.country} + {/if} + |
+ + {#if runner.group.responseType === 'RUNNERTEAM'} + {runner.group.name} + {/if} + {#if runner.group.responseType === 'RUNNERORGANIZATION'} + {runner.group.name} + {/if} + | ++ {runner.distance} + | + {#if active_deletes[runner.id] === true} ++ + + | + {:else} ++ {$_('details')} + {#if store.state.jwtinfo.userdetails.permissions.includes('RUNNER:DELETE')} + + {/if} + | + {/if} +
{$_('teams-are-being-loaded')}
-{$_('this-might-take-a-moment')}
-- { - const newstate = !current_teams.some((r) => r.is_selected === true); - current_teams = current_teams.map((r) => { - r.is_selected = newstate; - return r; - }); - }} - class="underline cursor-pointer select-none">{#if current_teams.some((r) => r.is_selected === true)} - {$_('deselect-all')} - {:else}{$_('select-all')}{/if} - - | -- {$_('name')} - | -- {$_('organization')} - | -- {$_('contact')} - | -- {$_('action')} - | -|
---|---|---|---|---|---|
- - | -
-
-
-
-
-
- {t.name}
-
- |
-
-
-
-
-
-
- {#if t.parentGroup}
- {t.parentGroup.name}
- {:else}{$_('no-organization-specified')}{/if}
-
- |
-
-
-
-
-
-
- {#if t.contact}
- {t.contact.firstname}
- {t.contact.middlename || ''}
- {t.contact.lastname}
- {:else}{$_('no-contact-specified')}{/if}
-
- |
- {#if active_deletes[t.id] === true}
- - - - | - {:else} -- {$_('details')} - {#if store.state.jwtinfo.userdetails.permissions.includes('TEAM:DELETE')} - - {/if} - | - {/if} -
{$_('teams-are-being-loaded')}
+{$_('this-might-take-a-moment')}
++ { + const newstate = !current_teams.some((r) => r.is_selected === true); + current_teams = current_teams.map((r) => { + r.is_selected = newstate; + return r; + }); + }} + class="underline cursor-pointer select-none">{#if current_teams.some((r) => r.is_selected === true)} + {$_('deselect-all')} + {:else}{$_('select-all')}{/if} + + | ++ {$_('name')} + | ++ {$_('organization')} + | ++ {$_('contact')} + | ++ {$_('action')} + | +|
---|---|---|---|---|---|
+ + | +
+
+
+
+
+
+ {t.name}
+
+ |
+
+
+
+
+
+
+ {#if t.parentGroup}
+ {t.parentGroup.name}
+ {:else}{$_('no-organization-specified')}{/if}
+
+ |
+
+
+
+
+
+
+ {#if t.contact}
+ {t.contact.firstname}
+ {t.contact.middlename || ''}
+ {t.contact.lastname}
+ {:else}{$_('no-contact-specified')}{/if}
+
+ |
+ {#if active_deletes[t.id] === true}
+ + + + | + {:else} ++ {$_('details')} + {#if store.state.jwtinfo.userdetails.permissions.includes('TEAM:DELETE')} + + {/if} + | + {/if} +