From 503378a400df9529bc44a4d5f6b064fd990cea25 Mon Sep 17 00:00:00 2001 From: Isabelle Knott Date: Wed, 6 Feb 2019 23:56:30 -0500 Subject: [PATCH] feat: Add 'switch to instance' buttons next to instances in instance list. (#945) --- bin/svgs.js | 1 + .../settings/SettingsListButton.html | 23 ++++++ .../settings/SettingsListItem.html | 74 ------------------- .../_components/settings/SettingsListRow.html | 44 +++++++++++ src/routes/_pages/settings/index.html | 22 ++++-- .../_pages/settings/instances/index.html | 40 ++++++++-- 6 files changed, 117 insertions(+), 87 deletions(-) create mode 100644 src/routes/_components/settings/SettingsListButton.html delete mode 100644 src/routes/_components/settings/SettingsListItem.html create mode 100644 src/routes/_components/settings/SettingsListRow.html diff --git a/bin/svgs.js b/bin/svgs.js index f48e0a1f..1d33209f 100644 --- a/bin/svgs.js +++ b/bin/svgs.js @@ -8,6 +8,7 @@ module.exports = [ { id: 'fa-reply-all', src: 'src/thirdparty/font-awesome-svg-png/white/svg/reply-all.svg' }, { id: 'fa-retweet', src: 'src/thirdparty/font-awesome-svg-png/white/svg/retweet.svg' }, { id: 'fa-star', src: 'src/thirdparty/font-awesome-svg-png/white/svg/star.svg' }, + { id: 'fa-star-o', src: 'src/thirdparty/font-awesome-svg-png/white/svg/star-o.svg' }, { id: 'fa-ellipsis-h', src: 'src/thirdparty/font-awesome-svg-png/white/svg/ellipsis-h.svg' }, { id: 'fa-spinner', src: 'src/thirdparty/font-awesome-svg-png/white/svg/spinner.svg' }, { id: 'fa-user', src: 'src/thirdparty/font-awesome-svg-png/white/svg/user.svg' }, diff --git a/src/routes/_components/settings/SettingsListButton.html b/src/routes/_components/settings/SettingsListButton.html new file mode 100644 index 00000000..4d4434a2 --- /dev/null +++ b/src/routes/_components/settings/SettingsListButton.html @@ -0,0 +1,23 @@ + + + {label} + + + + diff --git a/src/routes/_components/settings/SettingsListItem.html b/src/routes/_components/settings/SettingsListItem.html deleted file mode 100644 index b5eb0e68..00000000 --- a/src/routes/_components/settings/SettingsListItem.html +++ /dev/null @@ -1,74 +0,0 @@ -
  • - - {#if icon} - - - - {/if} - - {label} - - -
  • - - diff --git a/src/routes/_components/settings/SettingsListRow.html b/src/routes/_components/settings/SettingsListRow.html new file mode 100644 index 00000000..904b3d11 --- /dev/null +++ b/src/routes/_components/settings/SettingsListRow.html @@ -0,0 +1,44 @@ +
  • + +
  • + + diff --git a/src/routes/_pages/settings/index.html b/src/routes/_pages/settings/index.html index e1f97c27..442075a0 100644 --- a/src/routes/_pages/settings/index.html +++ b/src/routes/_pages/settings/index.html @@ -2,23 +2,33 @@

    Settings

    - - - - + + + + + + + + + + + + diff --git a/src/routes/_pages/settings/instances/index.html b/src/routes/_pages/settings/instances/index.html index 908f95c7..17ca24f2 100644 --- a/src/routes/_pages/settings/instances/index.html +++ b/src/routes/_pages/settings/instances/index.html @@ -5,11 +5,16 @@

    Instances you've logged in to:

    {#each $loggedInInstancesAsList as instance} - + + + + {/each}

    Add another instance

    @@ -18,17 +23,38 @@

    Log in to an instance to start using Pinafore.

    {/if} +