From 42be8545219df438efd83ef3b80899446a87f3ab Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Tue, 1 May 2018 17:05:36 -0700 Subject: [PATCH] upgrade to svelte 2.0 (#251) * upgrade to svelte 2.0 * update svelte-loader to 2.9.0 --- package-lock.json | 16 +-- package.json | 4 +- routes/_components/AccountsListPage.html | 14 +-- routes/_components/AutoplayVideo.html | 14 +-- routes/_components/Avatar.html | 24 ++-- routes/_components/DynamicPageBanner.html | 10 +- routes/_components/ExternalLink.html | 10 +- routes/_components/IconButton.html | 42 +++---- routes/_components/Layout.html | 6 +- routes/_components/LazyImage.html | 20 +-- routes/_components/LazyPage.html | 6 +- routes/_components/LoadingMask.html | 8 +- routes/_components/LoadingPage.html | 2 +- routes/_components/LoadingSpinner.html | 4 +- routes/_components/Nav.html | 28 ++--- routes/_components/NavItem.html | 30 ++--- routes/_components/NonAutoplayGifv.html | 36 +++--- routes/_components/NonAutoplayImg.html | 26 ++-- routes/_components/PlayVideoIcon.html | 2 +- routes/_components/TimelineHomePage.html | 22 ++-- routes/_components/TimelinePage.html | 20 +-- routes/_components/Toast.html | 4 +- routes/_components/community/PageList.html | 8 +- .../_components/community/PageListItem.html | 16 +-- routes/_components/compose/ComposeAuthor.html | 14 +-- .../compose/ComposeAutosuggest.html | 24 ++-- .../compose/ComposeAutosuggestionList.html | 24 ++-- routes/_components/compose/ComposeBox.html | 66 +++++----- routes/_components/compose/ComposeButton.html | 12 +- .../compose/ComposeLengthGauge.html | 6 +- .../compose/ComposeLengthIndicator.html | 10 +- routes/_components/compose/ComposeMedia.html | 12 +- .../_components/compose/ComposeMediaItem.html | 6 +- .../_components/compose/ComposeToolbar.html | 16 +-- .../AccountProfileOptionsDialog.html | 38 +++--- .../dialog/components/ComposeDialog.html | 6 +- .../dialog/components/ConfirmationDialog.html | 10 +- .../dialog/components/EmojiDialog.html | 24 ++-- .../dialog/components/GenericDialogList.html | 10 +- .../dialog/components/ImageDialog.html | 30 ++--- .../dialog/components/ModalDialog.html | 18 +-- .../dialog/components/PostPrivacyDialog.html | 16 +-- .../components/StatusOptionsDialog.html | 52 ++++---- .../dialog/components/VideoDialog.html | 14 +-- .../_components/profile/AccountProfile.html | 16 +-- .../profile/AccountProfileDetails.html | 34 ++--- .../profile/AccountProfileFollow.html | 22 ++-- .../profile/AccountProfileHeader.html | 16 +-- .../profile/AccountProfileNote.html | 6 +- .../pseudoVirtualList/PseudoVirtualList.html | 26 ++-- .../PseudoVirtualListItem.html | 20 +-- .../PseudoVirtualListLazyItem.html | 22 ++-- .../search/AccountSearchResult.html | 20 +-- .../search/HashtagSearchResult.html | 4 +- routes/_components/search/Search.html | 8 +- routes/_components/search/SearchResult.html | 2 +- routes/_components/search/SearchResults.html | 18 +-- .../search/StatusSearchResult.html | 6 +- .../_components/settings/SettingsLayout.html | 2 +- routes/_components/settings/SettingsList.html | 8 +- .../settings/SettingsListItem.html | 12 +- routes/_components/settings/SettingsNav.html | 10 +- .../_components/settings/SettingsNavItem.html | 12 +- routes/_components/status/Media.html | 118 +++++++++--------- .../_components/status/MediaAttachments.html | 12 +- routes/_components/status/Notification.html | 30 ++--- routes/_components/status/Status.html | 108 ++++++++-------- .../status/StatusAuthorHandle.html | 4 +- .../_components/status/StatusAuthorName.html | 12 +- .../_components/status/StatusComposeBox.html | 10 +- routes/_components/status/StatusContent.html | 12 +- routes/_components/status/StatusDetails.html | 30 ++--- routes/_components/status/StatusHeader.html | 36 +++--- .../status/StatusMediaAttachments.html | 30 ++--- .../status/StatusRelativeDate.html | 18 +-- routes/_components/status/StatusSidebar.html | 14 +-- routes/_components/status/StatusSpoiler.html | 18 +-- routes/_components/status/StatusToolbar.html | 48 +++---- routes/_components/timeline/LazyTimeline.html | 12 +- .../_components/timeline/LoadingFooter.html | 2 +- routes/_components/timeline/MoreHeader.html | 2 +- .../timeline/MoreHeaderVirtualWrapper.html | 4 +- .../timeline/NotificationVirtualListItem.html | 12 +- .../_components/timeline/PinnedStatuses.html | 14 +-- .../timeline/StatusVirtualListItem.html | 12 +- routes/_components/timeline/Timeline.html | 50 ++++---- .../_components/virtualList/VirtualList.html | 36 +++--- .../virtualList/VirtualListContainer.html | 2 +- .../virtualList/VirtualListFooter.html | 4 +- .../virtualList/VirtualListHeader.html | 4 +- .../virtualList/VirtualListItem.html | 18 +-- .../virtualList/VirtualListLazyItem.html | 14 +-- routes/_pages/accounts/[accountId].html | 24 ++-- .../accounts/[accountId]/followers.html | 6 +- .../_pages/accounts/[accountId]/follows.html | 6 +- routes/_pages/blocked.html | 4 +- routes/_pages/community/index.html | 24 ++-- routes/_pages/favorites.html | 10 +- routes/_pages/federated.html | 10 +- routes/_pages/index.html | 6 +- routes/_pages/lists/[listId].html | 18 +-- routes/_pages/local.html | 10 +- routes/_pages/muted.html | 4 +- routes/_pages/notifications.html | 6 +- routes/_pages/pinned.html | 12 +- routes/_pages/requests.html | 4 +- routes/_pages/search.html | 6 +- routes/_pages/settings/about.html | 2 +- routes/_pages/settings/general.html | 6 +- .../settings/instances/[instanceName].html | 34 ++--- routes/_pages/settings/instances/add.html | 12 +- routes/_pages/settings/instances/index.html | 20 +-- .../_pages/statuses/[statusId]/favorites.html | 6 +- routes/_pages/statuses/[statusId]/index.html | 8 +- .../_pages/statuses/[statusId]/reblogs.html | 6 +- routes/_pages/tags/[tagName].html | 12 +- routes/accounts/[accountId].html | 6 +- routes/accounts/[accountId]/followers.html | 6 +- routes/accounts/[accountId]/follows.html | 6 +- routes/blocked.html | 6 +- routes/community/index.html | 6 +- routes/favorites.html | 6 +- routes/federated.html | 6 +- routes/index.html | 6 +- routes/lists/[listId].html | 6 +- routes/local.html | 6 +- routes/muted.html | 6 +- routes/notifications.html | 6 +- routes/pinned.html | 6 +- routes/requests.html | 6 +- routes/search.html | 6 +- routes/settings/about.html | 6 +- routes/settings/general.html | 6 +- routes/settings/index.html | 6 +- routes/settings/instances/[instanceName].html | 6 +- routes/settings/instances/add.html | 6 +- routes/settings/instances/index.html | 6 +- routes/statuses/[statusId]/favorites.html | 6 +- routes/statuses/[statusId]/index.html | 6 +- routes/statuses/[statusId]/reblogs.html | 6 +- routes/tags/[tagName].html | 6 +- 141 files changed, 1068 insertions(+), 1068 deletions(-) diff --git a/package-lock.json b/package-lock.json index ff27c20f..27940b6a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9786,9 +9786,9 @@ "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=" }, "svelte": { - "version": "1.64.1", - "resolved": "https://registry.npmjs.org/svelte/-/svelte-1.64.1.tgz", - "integrity": "sha512-RsEAcVYF90Bq5y4Lgg56LyKiuxiyDTU+5TG2GM0ppa50z446de0vQgnA3eQTrgecPdRR89ZIqNqN1cgdAdO7wQ==" + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/svelte/-/svelte-2.4.1.tgz", + "integrity": "sha512-49huVkAZV42sLny2/d6fU4Dzg605hkSQfNxISv34Kkb7M5MxmMhe9ywQ3+didcqwiHAqXn0/P0MojdbqU58ZIQ==" }, "svelte-dev-helper": { "version": "1.1.7", @@ -9801,13 +9801,12 @@ "integrity": "sha512-yoxNehbDxGEHxJBTWq2RpIPDTHlNNy6eGR7RPSK7qsh8hoyOXbji8uF//l4+I/l2fLP+E8pQTJYrduPXrW3wsw==" }, "svelte-loader": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/svelte-loader/-/svelte-loader-2.8.1.tgz", - "integrity": "sha512-t3cfLeYCkuz1eJem+urdCYrhI12qUz03wlYzaRJ6oER1qrKBRlOpq8S4ZraInsw2FtKGFbu/VBYekLJS07Ipnw==", + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/svelte-loader/-/svelte-loader-2.9.0.tgz", + "integrity": "sha512-DmzPUCDBN/G/MKvi3iJZ6MDpoPKqN+um9PS8XBJn6yT6Kbu0pkU5AsdDdqauyKx2wEVQZ7DqpT9agWmDCr5TQg==", "requires": { "loader-utils": "1.1.0", - "svelte-dev-helper": "1.1.7", - "tmp": "0.0.31" + "svelte-dev-helper": "1.1.7" } }, "svelte-transitions": { @@ -10469,6 +10468,7 @@ "version": "0.0.31", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.31.tgz", "integrity": "sha1-jzirlDjhcxXl29izZX6L+yd65Kc=", + "dev": true, "requires": { "os-tmpdir": "1.0.2" } diff --git a/package.json b/package.json index e498d223..576041a6 100644 --- a/package.json +++ b/package.json @@ -77,9 +77,9 @@ "shrink-ray-current": "2.1.0", "stringz": "1.0.0", "style-loader": "0.21.0", - "svelte": "1.64.1", + "svelte": "2.4.1", "svelte-extras": "2.0.2", - "svelte-loader": "2.8.1", + "svelte-loader": "2.9.0", "svelte-transitions": "1.1.1", "svgo": "1.0.5", "timeago.js": "3.0.2", diff --git a/routes/_components/AccountsListPage.html b/routes/_components/AccountsListPage.html index edb60aea..9f846d2e 100644 --- a/routes/_components/AccountsListPage.html +++ b/routes/_components/AccountsListPage.html @@ -1,17 +1,17 @@
- {{#if loading}} + {#if loading} - {{elseif accounts && accounts.length}} + {:elseif accounts && accounts.length}
    - {{#each accounts as account}} + {#each accounts as account} - {{/each}} + {/each}
- {{/if}} + {/if}
diff --git a/routes/_components/search/Search.html b/routes/_components/search/Search.html index a0295269..6acaa350 100644 --- a/routes/_components/search/Search.html +++ b/routes/_components/search/Search.html @@ -7,21 +7,21 @@ required bind:value="$queryInSearch"> - -{{#if $searchLoading}} +{#if $searchLoading}
-{{elseif $searchResults && $searchResultsForQuery === $queryInSearch}} +{:elseif $searchResults && $searchResultsForQuery === $queryInSearch}
-{{/if}} +{/if} diff --git a/routes/_components/settings/SettingsLayout.html b/routes/_components/settings/SettingsLayout.html index 2fc2eb90..65dfbdd7 100644 --- a/routes/_components/settings/SettingsLayout.html +++ b/routes/_components/settings/SettingsLayout.html @@ -1,4 +1,4 @@ - +
diff --git a/routes/_components/settings/SettingsList.html b/routes/_components/settings/SettingsList.html index 4cca62f8..6d3bc1e5 100644 --- a/routes/_components/settings/SettingsList.html +++ b/routes/_components/settings/SettingsList.html @@ -1,13 +1,13 @@
- {{#if label}} -
    + {#if label} +
    - {{else}} + {:else}
    - {{/if}} + {/if}