From 59f0b9b9f2f353fa7c93ee0d56e8294980416796 Mon Sep 17 00:00:00 2001 From: secondl1ght Date: Wed, 13 Dec 2023 23:28:37 -0700 Subject: [PATCH] format --- src/components/DashboardStat.svelte | 8 +-- src/components/LatestTagger.svelte | 8 +-- src/components/LeaderboardItem.svelte | 4 +- src/components/MerchantEvent.svelte | 8 +-- src/components/NavDropdownDesktop.svelte | 4 +- src/components/ProfileActivity.svelte | 8 +-- src/lib/map/setup.ts | 62 +++++++++---------- src/routes/add-location/endpoint/+server.ts | 8 +-- .../communities/leaderboard/+page.svelte | 2 +- src/routes/community/[area]/+page.svelte | 38 ++++++------ src/routes/dashboard/+page.svelte | 16 ++--- src/routes/map/+page.svelte | 12 ++-- src/routes/merchant/[id]/+page.svelte | 52 ++++++++-------- src/routes/tagger/[id]/+page.svelte | 8 +-- src/routes/tickets/+page.svelte | 10 +-- src/routes/verify-location/+page.svelte | 8 +-- static/icons/brands.js | 8 +-- static/icons/fontawesome.js | 46 +++++++------- static/icons/solid.js | 8 +-- 19 files changed, 159 insertions(+), 159 deletions(-) diff --git a/src/components/DashboardStat.svelte b/src/components/DashboardStat.svelte index fd390e7a..9a963797 100644 --- a/src/components/DashboardStat.svelte +++ b/src/components/DashboardStat.svelte @@ -27,8 +27,8 @@ class="{percent === '+0' ? 'text-primary dark:text-white' : percent.startsWith('+') - ? 'text-statPositive' - : 'text-statNegative'} ml-1 text-lg font-semibold" + ? 'text-statPositive' + : 'text-statNegative'} ml-1 text-lg font-semibold" >{percent === '+0' ? percent.slice(1) : percent}% {:else if change} @@ -36,8 +36,8 @@ class="{change === '+0' ? 'text-primary dark:text-white' : change.startsWith('+') - ? 'text-statPositive' - : 'text-statNegative'} ml-1 text-lg font-semibold">{change}{change} {/if} {:else} diff --git a/src/components/LatestTagger.svelte b/src/components/LatestTagger.svelte index 804f6356..8ddb2019 100644 --- a/src/components/LatestTagger.svelte +++ b/src/components/LatestTagger.svelte @@ -30,15 +30,15 @@ : ''} absolute inline-flex h-full w-full rounded-full {action === 'create' ? 'bg-created' : action === 'delete' - ? 'bg-deleted' - : 'bg-link'} opacity-75" + ? 'bg-deleted' + : 'bg-link'} opacity-75" /> diff --git a/src/components/LeaderboardItem.svelte b/src/components/LeaderboardItem.svelte index 7b8b7a07..3b7b3b47 100644 --- a/src/components/LeaderboardItem.svelte +++ b/src/components/LeaderboardItem.svelte @@ -63,8 +63,8 @@ class="mr-1 inline-block h-3 w-3 rounded-full {stat.title === 'C' ? 'bg-created' : stat.title === 'U' - ? 'bg-link' - : 'bg-deleted'} lg:hidden" + ? 'bg-link' + : 'bg-deleted'} lg:hidden" />{stat.stat} {/each} diff --git a/src/components/MerchantEvent.svelte b/src/components/MerchantEvent.svelte index 9b9f8417..eb52d998 100644 --- a/src/components/MerchantEvent.svelte +++ b/src/components/MerchantEvent.svelte @@ -26,15 +26,15 @@ : ''} absolute inline-flex h-full w-full rounded-full {action === 'create' ? 'bg-created' : action === 'delete' - ? 'bg-deleted' - : 'bg-link'} opacity-75" + ? 'bg-deleted' + : 'bg-link'} opacity-75" /> diff --git a/src/components/NavDropdownDesktop.svelte b/src/components/NavDropdownDesktop.svelte index e8c7bcab..67dccf7e 100644 --- a/src/components/NavDropdownDesktop.svelte +++ b/src/components/NavDropdownDesktop.svelte @@ -38,8 +38,8 @@ top ? 'rounded-t-2xl' : link.icon === bottom - ? 'rounded-b-2xl' - : ''} transition-colors" + ? 'rounded-b-2xl' + : ''} transition-colors" > {link.title} {#if link.external} diff --git a/src/components/ProfileActivity.svelte b/src/components/ProfileActivity.svelte index ed853684..290dcbf4 100644 --- a/src/components/ProfileActivity.svelte +++ b/src/components/ProfileActivity.svelte @@ -26,15 +26,15 @@ : ''} absolute inline-flex h-full w-full rounded-full {action === 'create' ? 'bg-created' : action === 'delete' - ? 'bg-deleted' - : 'bg-link'} opacity-75" + ? 'bg-deleted' + : 'bg-link'} opacity-75" /> diff --git a/src/lib/map/setup.ts b/src/lib/map/setup.ts index dc879ec5..f7ef191b 100644 --- a/src/lib/map/setup.ts +++ b/src/lib/map/setup.ts @@ -685,9 +685,9 @@ export const generateMarker = ( element.tags && element.tags.name ? `${ + }' class='inline-block font-bold text-lg leading-snug max-w-[300px]' title='Merchant name'>${ element.tags.name - } ${description || note ? `` : ''}` + } ${description || note ? `` : ''}` : '' } @@ -747,11 +747,11 @@ export const generateMarker = ( payment.type === 'uri' ? payment.url : payment.type === 'pouch' - ? `https://app.pouch.ph/${payment.username}` - : payment.type === 'coinos' - ? `https://coinos.io/${payment.username}` - : '#' - }" target="_blank" rel="noreferrer" class='flex items-center !text-primary dark:!text-white hover:!text-link dark:hover:!text-link text-xs transition-colors'> + ? `https://app.pouch.ph/${payment.username}` + : payment.type === 'coinos' + ? `https://coinos.io/${payment.username}` + : '#' + }" target="_blank" rel="noreferrer" class='flex items-center !text-primary dark:!text-white hover:!text-link dark:hover:!text-link text-xs transition-colors'> @@ -786,7 +786,7 @@ export const generateMarker = ( website ? ` + } target="_blank" rel="noreferrer" class='flex items-center !text-primary dark:!text-white hover:!text-link dark:hover:!text-link text-xs transition-colors'> @@ -799,7 +799,7 @@ export const generateMarker = ( twitter ? ` + } target="_blank" rel="noreferrer" class='flex items-center !text-primary dark:!text-white hover:!text-link dark:hover:!text-link text-xs transition-colors'> @@ -814,7 +814,7 @@ export const generateMarker = ( instagram.startsWith('http') ? instagram : `https://instagram.com/${instagram}` - } target="_blank" rel="noreferrer" class='flex items-center !text-primary dark:!text-white hover:!text-link dark:hover:!text-link text-xs transition-colors'> + } target="_blank" rel="noreferrer" class='flex items-center !text-primary dark:!text-white hover:!text-link dark:hover:!text-link text-xs transition-colors'> @@ -827,7 +827,7 @@ export const generateMarker = ( facebook ? ` + } target="_blank" rel="noreferrer" class='flex items-center !text-primary dark:!text-white hover:!text-link dark:hover:!text-link text-xs transition-colors'> @@ -889,18 +889,18 @@ ${ ? '/icons/btc-highlight-dark.svg' : '/icons/btc-highlight.svg' : element.tags && element.tags['payment:onchain'] === 'no' - ? theme === 'dark' + ? theme === 'dark' ? '/icons/btc-no-dark.svg' : '/icons/btc-no.svg' - : theme === 'dark' - ? '/icons/btc-dark.svg' - : '/icons/btc.svg' + : theme === 'dark' + ? '/icons/btc-dark.svg' + : '/icons/btc.svg' } alt="bitcoin" class="w-6 h-6" title="${ element.tags && element.tags['payment:onchain'] === 'yes' ? 'On-chain accepted' : element.tags && element.tags['payment:onchain'] === 'no' - ? 'On-chain not accepted' - : 'On-chain unknown' + ? 'On-chain not accepted' + : 'On-chain unknown' }"/> lightning nfc ` @@ -958,7 +958,7 @@ ${ ` : '' - }` + }` : '---' } @@ -966,7 +966,7 @@ ${ verify ? `Verify Location` + }" class='!text-link hover:!text-hover text-xs transition-colors' title="Help improve the data for everyone">Verify Location` : '' } diff --git a/src/routes/add-location/endpoint/+server.ts b/src/routes/add-location/endpoint/+server.ts index 99ea483e..ad9ac9cc 100644 --- a/src/routes/add-location/endpoint/+server.ts +++ b/src/routes/add-location/endpoint/+server.ts @@ -113,10 +113,10 @@ If you are a new contributor please read our Tagging Instructions [here](https:/ country && communities.length ? [...standardLabels, country, ...communities] : country - ? [...standardLabels, country] - : communities.length - ? [...standardLabels, ...communities] - : [...standardLabels] + ? [...standardLabels, country] + : communities.length + ? [...standardLabels, ...communities] + : [...standardLabels] }, { headers } ) diff --git a/src/routes/communities/leaderboard/+page.svelte b/src/routes/communities/leaderboard/+page.svelte index 93c8525b..7e56fec8 100644 --- a/src/routes/communities/leaderboard/+page.svelte +++ b/src/routes/communities/leaderboard/+page.svelte @@ -34,7 +34,7 @@ area.tags.continent && Object.keys(area.tags).find((key) => key.includes('contact')) && $reports.find((report) => report.area_id === area.id) - ) + ) : []; $: communityReports = communities && communities.length diff --git a/src/routes/community/[area]/+page.svelte b/src/routes/community/[area]/+page.svelte index 525b684f..e0d79d28 100644 --- a/src/routes/community/[area]/+page.svelte +++ b/src/routes/community/[area]/+page.svelte @@ -574,10 +574,10 @@ let payment = element.tags['payment:uri'] ? { type: 'uri', url: element.tags['payment:uri'] } : element.tags['payment:pouch'] - ? { type: 'pouch', username: element.tags['payment:pouch'] } - : element.tags['payment:coinos'] - ? { type: 'coinos', username: element.tags['payment:coinos'] } - : undefined; + ? { type: 'pouch', username: element.tags['payment:pouch'] } + : element.tags['payment:coinos'] + ? { type: 'coinos', username: element.tags['payment:coinos'] } + : undefined; let boosted = element.tags['boost:expires'] && Date.parse(element.tags['boost:expires']) > Date.now() ? element.tags['boost:expires'] @@ -627,7 +627,7 @@ : [ [community['box:south'], community['box:west']], [community['box:north'], community['box:east']] - ] + ] ); mapLoaded = true; @@ -664,13 +664,13 @@ tickets && tickets.length && !ticketError ? tickets.filter((issue: any) => issue.labels.find((label: any) => label.name === 'location-submission') - ) + ) : []; const verify = tickets && tickets.length && !ticketError ? tickets.filter((issue: any) => issue.labels.find((label: any) => label.name === 'verify-submission') - ) + ) : []; const totalTickets = add.length + verify.length; @@ -891,16 +891,16 @@ class="fa-solid fa-earth-{continent === 'africa' ? 'africa' : continent === 'asia' - ? 'asia' - : continent === 'europe' - ? 'europe' - : continent === 'north-america' - ? 'americas' - : continent === 'oceania' - ? 'oceania' - : continent === 'south-america' - ? 'americas' - : ''}" + ? 'asia' + : continent === 'europe' + ? 'europe' + : continent === 'north-america' + ? 'americas' + : continent === 'oceania' + ? 'oceania' + : continent === 'south-america' + ? 'americas' + : ''}" /> {:else} @@ -1197,8 +1197,8 @@ 'Add' ? 'rounded-t md:rounded-l md:rounded-tr-none' : type === 'Verify' - ? 'rounded-b md:rounded-r md:rounded-bl-none' - : ''} {showType === type ? 'bg-link text-white' : ''} transition-colors" + ? 'rounded-b md:rounded-r md:rounded-bl-none' + : ''} {showType === type ? 'bg-link text-white' : ''} transition-colors" on:click={() => (showType = type)}>{type} {/each} diff --git a/src/routes/dashboard/+page.svelte b/src/routes/dashboard/+page.svelte index 5ec7f075..28279e3c 100644 --- a/src/routes/dashboard/+page.svelte +++ b/src/routes/dashboard/+page.svelte @@ -53,7 +53,7 @@ area.tags.continent && Object.keys(area.tags).find((key) => key.includes('contact')) && $reports.find((report) => report.area_id === area.id) - ) + ) : undefined; const getStatPeriod = () => { @@ -106,28 +106,28 @@ stats && total ? new Intl.NumberFormat('en-US', { signDisplay: 'always' }).format( total - stats[1].tags.total_elements - ) + ) : undefined; $: createdPercentChange = created && createdPrevious ? new Intl.NumberFormat('en-US', { signDisplay: 'always' }).format( Number((((created - createdPrevious) / createdPrevious) * 100).toFixed(1)) - ) + ) : ''; $: updatedPercentChange = updated && updatedPrevious ? new Intl.NumberFormat('en-US', { signDisplay: 'always' }).format( Number((((updated - updatedPrevious) / updatedPrevious) * 100).toFixed(1)) - ) + ) : ''; $: deletedPercentChange = deleted && deletedPrevious ? new Intl.NumberFormat('en-US', { signDisplay: 'always' }).format( Number((((deleted - deletedPrevious) / deletedPrevious) * 100).toFixed(1)) - ) + ) : ''; $: onchainPercentChange = @@ -140,7 +140,7 @@ 100 ).toFixed(1) ) - ) + ) : ''; $: lightningPercentChange = @@ -153,7 +153,7 @@ 100 ).toFixed(1) ) - ) + ) : ''; $: nfcPercentChange = @@ -166,7 +166,7 @@ 100 ).toFixed(1) ) - ) + ) : ''; let upToDateChartCanvas: HTMLCanvasElement; diff --git a/src/routes/map/+page.svelte b/src/routes/map/+page.svelte index 3240b781..d92a691e 100644 --- a/src/routes/map/+page.svelte +++ b/src/routes/map/+page.svelte @@ -168,10 +168,10 @@ let payment = element.tags['payment:uri'] ? { type: 'uri', url: element.tags['payment:uri'] } : element.tags['payment:pouch'] - ? { type: 'pouch', username: element.tags['payment:pouch'] } - : element.tags['payment:coinos'] - ? { type: 'coinos', username: element.tags['payment:coinos'] } - : undefined; + ? { type: 'pouch', username: element.tags['payment:pouch'] } + : element.tags['payment:coinos'] + ? { type: 'coinos', username: element.tags['payment:coinos'] } + : undefined; let boosted = element.tags['boost:expires'] && Date.parse(element.tags['boost:expires']) > Date.now() ? element.tags['boost:expires'] @@ -463,8 +463,8 @@ Thanks for using BTC Map!`); ? '/icons/boost-solid-white.svg' : '/icons/boost-solid.svg' : theme === 'dark' - ? '/icons/boost-white.svg' - : '/icons/boost.svg' + ? '/icons/boost-white.svg' + : '/icons/boost.svg' } alt='boost' class='inline' id='boost-layer'/>`; boostLayerButton.style.borderRadius = '0 0 8px 8px'; boostLayerButton.onclick = function toggleLayer() { diff --git a/src/routes/merchant/[id]/+page.svelte b/src/routes/merchant/[id]/+page.svelte index dca53802..663bfb4a 100644 --- a/src/routes/merchant/[id]/+page.svelte +++ b/src/routes/merchant/[id]/+page.svelte @@ -104,10 +104,10 @@ payment = merchant.tags['payment:uri'] ? { type: 'uri', url: merchant.tags['payment:uri'] } : merchant.tags['payment:pouch'] - ? { type: 'pouch', username: merchant.tags['payment:pouch'] } - : merchant.tags['payment:coinos'] - ? { type: 'coinos', username: merchant.tags['payment:coinos'] } - : undefined; + ? { type: 'pouch', username: merchant.tags['payment:pouch'] } + : merchant.tags['payment:coinos'] + ? { type: 'coinos', username: merchant.tags['payment:coinos'] } + : undefined; boosted = merchant.tags['boost:expires'] && Date.parse(merchant.tags['boost:expires']) > Date.now() ? merchant.tags['boost:expires'] @@ -245,8 +245,8 @@ merchant.osm_json.tags?.['payment:onchain'] === 'yes' ? 'On-chain accepted' : merchant.osm_json.tags?.['payment:onchain'] === 'no' - ? 'On-chain not accepted' - : 'On-chain unknown' + ? 'On-chain not accepted' + : 'On-chain unknown' }); $: lnTooltip && @@ -256,8 +256,8 @@ merchant.osm_json.tags?.['payment:lightning'] === 'yes' ? 'Lightning accepted' : merchant.osm_json.tags?.['payment:lightning'] === 'no' - ? 'Lightning not accepted' - : 'Lightning unknown' + ? 'Lightning not accepted' + : 'Lightning unknown' }); $: nfcTooltip && @@ -267,8 +267,8 @@ merchant.osm_json.tags?.['payment:lightning_contactless'] === 'yes' ? 'Lightning Contactless accepted' : merchant.osm_json.tags?.['payment:lightning_contactless'] === 'no' - ? 'Lightning contactless not accepted' - : 'Lightning Contactless unknown' + ? 'Lightning contactless not accepted' + : 'Lightning Contactless unknown' }); $: verifiedTooltip && @@ -479,10 +479,10 @@ link={payment.type === 'uri' ? payment.url || '#' : payment.type === 'pouch' - ? `https://app.pouch.ph/${payment.username}` - : payment.type === 'coinos' - ? `https://coinos.io/${payment.username}` - : '#'} + ? `https://app.pouch.ph/${payment.username}` + : payment.type === 'coinos' + ? `https://coinos.io/${payment.username}` + : '#'} icon="bolt" text="Pay Merchant" /> @@ -563,12 +563,12 @@ ? '/icons/btc-highlight-dark.svg' : '/icons/btc-highlight.svg' : merchant.osm_json.tags?.['payment:onchain'] === 'no' - ? detectTheme() === 'dark' || $theme === 'dark' + ? detectTheme() === 'dark' || $theme === 'dark' ? '/icons/btc-no-dark.svg' : '/icons/btc-no-teal.svg' - : detectTheme() === 'dark' || $theme === 'dark' - ? '/icons/btc-dark.svg' - : '/icons/btc.svg'} + : detectTheme() === 'dark' || $theme === 'dark' + ? '/icons/btc-dark.svg' + : '/icons/btc.svg'} alt="bitcoin" class="h-8 w-8" /> @@ -580,12 +580,12 @@ ? '/icons/ln-highlight-dark.svg' : '/icons/ln-highlight.svg' : merchant.osm_json.tags?.['payment:lightning'] === 'no' - ? detectTheme() === 'dark' || $theme === 'dark' + ? detectTheme() === 'dark' || $theme === 'dark' ? '/icons/ln-no-dark.svg' : '/icons/ln-no-teal.svg' - : detectTheme() === 'dark' || $theme === 'dark' - ? '/icons/ln-dark.svg' - : '/icons/ln.svg'} + : detectTheme() === 'dark' || $theme === 'dark' + ? '/icons/ln-dark.svg' + : '/icons/ln.svg'} alt="lightning" class="h-8 w-8" /> @@ -597,12 +597,12 @@ ? '/icons/nfc-highlight-dark.svg' : '/icons/nfc-highlight.svg' : merchant.osm_json.tags?.['payment:lightning_contactless'] === 'no' - ? detectTheme() === 'dark' || $theme === 'dark' + ? detectTheme() === 'dark' || $theme === 'dark' ? '/icons/nfc-no-dark.svg' : '/icons/nfc-no-teal.svg' - : detectTheme() === 'dark' || $theme === 'dark' - ? '/icons/nfc-dark.svg' - : '/icons/nfc.svg'} + : detectTheme() === 'dark' || $theme === 'dark' + ? '/icons/nfc-dark.svg' + : '/icons/nfc.svg'} alt="nfc" class="h-8 w-8" /> diff --git a/src/routes/tagger/[id]/+page.svelte b/src/routes/tagger/[id]/+page.svelte index 462b19d2..f4c7d631 100644 --- a/src/routes/tagger/[id]/+page.svelte +++ b/src/routes/tagger/[id]/+page.svelte @@ -384,10 +384,10 @@ let payment = element.tags['payment:uri'] ? { type: 'uri', url: element.tags['payment:uri'] } : element.tags['payment:pouch'] - ? { type: 'pouch', username: element.tags['payment:pouch'] } - : element.tags['payment:coinos'] - ? { type: 'coinos', username: element.tags['payment:coinos'] } - : undefined; + ? { type: 'pouch', username: element.tags['payment:pouch'] } + : element.tags['payment:coinos'] + ? { type: 'coinos', username: element.tags['payment:coinos'] } + : undefined; let boosted = element.tags['boost:expires'] && Date.parse(element.tags['boost:expires']) > Date.now() ? element.tags['boost:expires'] diff --git a/src/routes/tickets/+page.svelte b/src/routes/tickets/+page.svelte index 0d7a4771..957f4b96 100644 --- a/src/routes/tickets/+page.svelte +++ b/src/routes/tickets/+page.svelte @@ -23,19 +23,19 @@ tickets && tickets.length ? tickets.filter((issue) => issue.labels.find((label: any) => label.name === 'location-submission') - ) + ) : []; $: verify = tickets && tickets.length ? tickets.filter((issue) => issue.labels.find((label: any) => label.name === 'verify-submission') - ) + ) : []; $: community = tickets && tickets.length ? tickets.filter((issue) => issue.labels.find((label: any) => label.name === 'community-submission') - ) + ) : []; const getIssues = () => { @@ -116,8 +116,8 @@ class="mx-auto block w-40 border border-link py-2 md:inline {type === 'Add' ? 'rounded-t md:rounded-l md:rounded-tr-none' : type === 'Community' - ? 'rounded-b md:rounded-r md:rounded-bl-none' - : ''} {showType === type ? 'bg-link text-white' : ''} transition-colors" + ? 'rounded-b md:rounded-r md:rounded-bl-none' + : ''} {showType === type ? 'bg-link text-white' : ''} transition-colors" on:click={() => (showType = type)}>{type} {/each} diff --git a/src/routes/verify-location/+page.svelte b/src/routes/verify-location/+page.svelte index 8694a78d..d1eaed92 100644 --- a/src/routes/verify-location/+page.svelte +++ b/src/routes/verify-location/+page.svelte @@ -115,10 +115,10 @@ let payment = element.tags['payment:uri'] ? { type: 'uri', url: element.tags['payment:uri'] } : element.tags['payment:pouch'] - ? { type: 'pouch', username: element.tags['payment:pouch'] } - : element.tags['payment:coinos'] - ? { type: 'coinos', username: element.tags['payment:coinos'] } - : undefined; + ? { type: 'pouch', username: element.tags['payment:pouch'] } + : element.tags['payment:coinos'] + ? { type: 'coinos', username: element.tags['payment:coinos'] } + : undefined; let boosted = element.tags['boost:expires'] && Date.parse(element.tags['boost:expires']) > Date.now() ? element.tags['boost:expires'] diff --git a/static/icons/brands.js b/static/icons/brands.js index ffdc6b59..984c51a7 100644 --- a/static/icons/brands.js +++ b/static/icons/brands.js @@ -48,12 +48,12 @@ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); - }) + }) : Object.getOwnPropertyDescriptors - ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) - : ownKeys(Object(source)).forEach(function (key) { + ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) + : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); + }); } return target; diff --git a/static/icons/fontawesome.js b/static/icons/fontawesome.js index e747864e..62e7482d 100644 --- a/static/icons/fontawesome.js +++ b/static/icons/fontawesome.js @@ -27,12 +27,12 @@ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); - }) + }) : Object.getOwnPropertyDescriptors - ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) - : ownKeys(Object(source)).forEach(function (key) { + ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) + : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); + }); } return target; @@ -46,7 +46,7 @@ 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function (obj) { return typeof obj; - } + } : function (obj) { return obj && 'function' == typeof Symbol && @@ -54,7 +54,7 @@ obj !== Symbol.prototype ? 'symbol' : typeof obj; - }), + }), _typeof(obj) ); } @@ -1248,7 +1248,7 @@ ? { prefix: 'fas', iconName: newUnicode - } + } : null) || { prefix: null, iconName: null @@ -1440,7 +1440,7 @@ definition.prefix && definition.iconName && definition.icon ? { 0: definition - } + } : definition; Object.keys(normalized).map(function (key) { var _normalized$key = normalized[key], @@ -1869,7 +1869,7 @@ isUploadedIcon && !~extra.classes.indexOf('fa-fw') ? { width: ''.concat((width / height) * 16 * 0.0625, 'em') - } + } : {}; if (watchable) { @@ -1907,11 +1907,11 @@ ? callProvided('generateAbstractMask', args) || { children: [], attributes: {} - } + } : callProvided('generateAbstractIcon', args) || { children: [], attributes: {} - }, + }, children = _ref2.children, attributes = _ref2.attributes; @@ -1940,7 +1940,7 @@ title ? { title: title - } + } : {} ), {}, @@ -2001,7 +2001,7 @@ title ? { title: title - } + } : {} ), {}, @@ -2151,7 +2151,7 @@ : { mark: noop$1, measure: noop$1 - }; + }; var preamble = 'FA "6.2.0"'; var begin = function begin(name) { @@ -2531,7 +2531,7 @@ ? arguments[1] : { styleParser: true - }; + }; var _classParser = classParser(node), iconName = _classParser.iconName, @@ -2572,7 +2572,7 @@ config.autoReplaceSvg === 'nest' ? parseMeta(node, { styleParser: false - }) + }) : parseMeta(node); if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) { @@ -2607,7 +2607,7 @@ ? knownPrefixes : FAMILIES.map(function (f) { return 'fa-'.concat(f); - }).concat(Object.keys(styles$2)); + }).concat(Object.keys(styles$2)); if (!prefixes.includes('fa')) { prefixes.push('fa'); @@ -2769,7 +2769,7 @@ width: null, height: null, icon: {} - } + } }, prefix: prefix, iconName: iconName, @@ -2831,7 +2831,7 @@ width: 512, height: 512, icon: {} - }) + }) ]) .then(function (_ref) { var _ref2 = _slicedToArray(_ref, 2), @@ -2914,7 +2914,7 @@ Array.isArray(args) ? args.map(function (a) { children = children.concat(a.abstract); - }) + }) : (children = children.concat(args.abstract)); }); return [ @@ -3448,7 +3448,7 @@ maskData.split(' ').map(function (i) { return i.trim(); }) - ); + ); if (!mask.prefix) { mask.prefix = getDefaultUsablePrefix(); @@ -3490,7 +3490,7 @@ var maskInnerGroupChildrenMixin = mainPath.children ? { children: mainPath.children.map(fillBlack) - } + } : {}; var maskInnerGroup = { tag: 'g', @@ -3661,7 +3661,7 @@ } ) } - ] + ] }); if (!reduceMotion) { diff --git a/static/icons/solid.js b/static/icons/solid.js index d41df3d5..0dd5cf7f 100644 --- a/static/icons/solid.js +++ b/static/icons/solid.js @@ -48,12 +48,12 @@ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); - }) + }) : Object.getOwnPropertyDescriptors - ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) - : ownKeys(Object(source)).forEach(function (key) { + ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) + : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); + }); } return target;