Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev tools settings #455

Merged
merged 4 commits into from
Dec 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default Vue.extend({
* @example
*/
didIReact(reaction: any) {
return reaction.reactors.includes(this.$mock.user.name)
return reaction.reactors.includes(this.$store.state.accounts.details.textilePubkey)
},
getReactorsList(reactors: string[], limit = 3) {
const numberOfReactors = reactors.length
Expand Down
4 changes: 4 additions & 0 deletions components/tailored/settings/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ export default Vue.extend({
to: 'notifications',
text: 'Notifications',
},
{
to: 'info',
text: 'App Info',
},
] as Array<SidebarLink>,
} as SidebarGrouping,
],
Expand Down
1 change: 1 addition & 0 deletions components/tailored/settings/modal/Modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<TailoredSettingsPagesAccounts v-if="page === 'accounts'" />
<TailoredSettingsPagesAudio v-if="page === 'audio'" />
<TailoredSettingsPagesDeveloper v-if="page === 'developer'" />
<TailoredSettingsPagesInfo v-if="page === 'info'" />
<TailoredSettingsPagesKeybinds v-if="page === 'keybinds'" />
<TailoredSettingsPagesNotifications v-if="page === 'notifications'" />
<TailoredSettingsPagesProfile v-if="page === 'profile'" />
Expand Down
4 changes: 2 additions & 2 deletions components/tailored/settings/pages/developer/index.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<template src="./Developer.html" />
<template src="./Info.html" />

<script lang="ts">
import Vue from 'vue'
import { mapState } from 'vuex'

export default Vue.extend({
name: 'DeveloperSettings',
name: 'InfoSettings',
layout: 'settings',
computed: {
...mapState(['accounts']),
Expand Down
23 changes: 23 additions & 0 deletions components/tailored/settings/pages/info/Developer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<div id="developer-settings">
<div class="columns is-desktop">
<div class="column">
<TypographyTitle :size="6" :text="$t('pages.settings.info.title')" />
<TypographySubtitle :size="6" :text="$t('pages.settings.info.subtitle')" />
</div>
</div>

<div class="columns is-desktop">
<div class="column">
<TypographyLabel :text="$t('pages.settings.app_info')" />
<br />
<pre>
App Version: {{ this.$config.clientVersion }}
Browser: {{ window.navigator.vendor }}, {{ window.navigator.product }}
Language: {{ window.navigator.product }}
Platform: {{ window.navigator.platform }}
Online: {{ window.navigator.onLine }}
</pre>
</div>
</div>

</div>
17 changes: 17 additions & 0 deletions components/tailored/settings/pages/info/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<template src="./Developer.html" />

<script lang="ts">
import Vue from 'vue'
import { mapState } from 'vuex'

export default Vue.extend({
name: 'DeveloperSettings',
layout: 'settings',
computed: {
...mapState(['accounts']),
window() {
return window
},
},
})
</script>