diff --git a/routes/_components/NotLoggedInHome.html b/routes/_components/NotLoggedInHome.html
index 798e1f2f..92b1162f 100644
--- a/routes/_components/NotLoggedInHome.html
+++ b/routes/_components/NotLoggedInHome.html
@@ -7,7 +7,7 @@
Pinafore is a web client for Mastodon, optimized for speed and simplicity.
- To get started, log in to an instance.
+ To get started, log in to an instance.
Don't have an instance? Join Mastodon!
diff --git a/routes/_utils/mastodon.js b/routes/_utils/mastodon.js
index 95426232..94e7794b 100644
--- a/routes/_utils/mastodon.js
+++ b/routes/_utils/mastodon.js
@@ -1,5 +1,5 @@
const WEBSITE = 'https://pinafore.social'
-const REDIRECT_URI = (typeof location !== 'undefined' ? location.origin : 'https://pinafore.social') + '/settings/instances'
+const REDIRECT_URI = (typeof location !== 'undefined' ? location.origin : 'https://pinafore.social') + '/settings/instances/add'
const SCOPES = 'read write follow'
const CLIENT_NAME = 'Pinafore'
diff --git a/routes/settings/_components/SettingsLayout.html b/routes/settings/_components/SettingsLayout.html
index 4f2bb9b7..78111fb7 100644
--- a/routes/settings/_components/SettingsLayout.html
+++ b/routes/settings/_components/SettingsLayout.html
@@ -1,4 +1,4 @@
-
+
diff --git a/routes/settings/_components/SettingsList.html b/routes/settings/_components/SettingsList.html
new file mode 100644
index 00000000..fd5c8eab
--- /dev/null
+++ b/routes/settings/_components/SettingsList.html
@@ -0,0 +1,11 @@
+
+
\ No newline at end of file
diff --git a/routes/settings/_components/SettingsListItem.html b/routes/settings/_components/SettingsListItem.html
new file mode 100644
index 00000000..f322fee0
--- /dev/null
+++ b/routes/settings/_components/SettingsListItem.html
@@ -0,0 +1,22 @@
+{{label}}
+
\ No newline at end of file
diff --git a/routes/settings/_components/SettingsNav.html b/routes/settings/_components/SettingsNav.html
index c882c14d..cbe6137f 100644
--- a/routes/settings/_components/SettingsNav.html
+++ b/routes/settings/_components/SettingsNav.html
@@ -2,9 +2,12 @@
{{#each navItems as navItem}}
-
-
+
{{/each}}
+ -
+
+
@@ -39,21 +42,10 @@
import SettingsNavItem from './SettingsNavItem.html'
const NAV_ITEMS = {
- home: {
- name: 'home',
- href: '/settings',
- label: 'Settings'
- },
- about: {
- name: 'about',
- href: '/settings/about',
- label: 'About Pinafore'
- },
- instances: {
- name: 'instances',
- href: '/settings/instances',
- label: 'Instances'
- }
+ 'settings': 'Settings',
+ 'settings/about': 'About Pinafore',
+ 'settings/instances': 'Instances',
+ 'settings/instances/add': 'Add an instance',
}
export default {
@@ -62,11 +54,19 @@
},
computed: {
navItems: page => {
- let res = [NAV_ITEMS.home]
- if (page === 'home') {
- return res
+ let res = []
+ let breadcrumbs = page.split('/')
+ let path = ''
+ for (let i = 0; i < breadcrumbs.length - 1; i++) {
+ let currentPage = breadcrumbs[i]
+ path += currentPage
+ res.push({
+ label: NAV_ITEMS[path],
+ href: `/${path}`,
+ name: path
+ })
+ path += '/'
}
- res.push(NAV_ITEMS[page])
return res
}
}
diff --git a/routes/settings/about.html b/routes/settings/about.html
index 6e8f6162..fa3258a5 100644
--- a/routes/settings/about.html
+++ b/routes/settings/about.html
@@ -3,7 +3,7 @@
-
+
About Pinafore
Pinafore is open-source software created by Nolan Lawson.
diff --git a/routes/settings/index.html b/routes/settings/index.html
index b1f7071c..5ea4b4d1 100644
--- a/routes/settings/index.html
+++ b/routes/settings/index.html
@@ -3,51 +3,28 @@
-
+
Settings
-
+
+
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/routes/settings/instances/[instanceName].html b/routes/settings/instances/[instanceName].html
new file mode 100644
index 00000000..dc8666bf
--- /dev/null
+++ b/routes/settings/instances/[instanceName].html
@@ -0,0 +1,22 @@
+<:Head>
+ {{params.instanceName}}
+
+
+
+
+ {{params.instanceName}}
+
+
+
\ No newline at end of file
diff --git a/routes/settings/instances.html b/routes/settings/instances/add.html
similarity index 72%
rename from routes/settings/instances.html
rename to routes/settings/instances/add.html
index 87dd7389..bd819957 100644
--- a/routes/settings/instances.html
+++ b/routes/settings/instances/add.html
@@ -1,33 +1,25 @@
<:Head>
- Instances
+ Add an Instance
-
- Instances
+
+ Add an Instance
{{#if $isUserLoggedIn}}
-
- {{#each $loggedInInstancesAsList as instance}}
- -
- {{instance.name}}
-
- {{/each}}
-
+ Connect to an instance to log in.
{{else}}
- Connect to an instance to start using Pinafore.
+ Log in to an instance to start using Pinafore.
{{/if}}
- {{#if !$isUserLoggedIn}}
-
- {{/if}}
+
{{#if !$isUserLoggedIn}}
- Don't have an instance? Join Mastodon!
+ Don't have an instance? Join Mastodon!
{{/if}}
@@ -55,11 +47,11 @@
}
\ No newline at end of file