This commit is contained in:
Ariadne Conill 2019-11-09 00:23:22 -06:00
parent 90f764224d
commit 6dfe3cc911
4 changed files with 50 additions and 20 deletions

View File

@ -2,32 +2,31 @@ const MRFTransparencyPanel = {
components: {
},
computed: {
federationPolicy() {
federationPolicy () {
return this.$store.state.instance.federationPolicy
},
mrfPolicies() {
mrfPolicies () {
return this.$store.state.instance.federationPolicy.mrf_policies
},
acceptInstances() {
acceptInstances () {
return this.$store.state.instance.federationPolicy.mrf_simple.accept
},
rejectInstances() {
rejectInstances () {
return this.$store.state.instance.federationPolicy.mrf_simple.reject
},
quarantineInstances() {
quarantineInstances () {
return this.$store.state.instance.federationPolicy.quarantined_instances
},
ftlRemovalInstances() {
ftlRemovalInstances () {
return this.$store.state.instance.federationPolicy.mrf_simple.federated_timeline_removal
},
mediaNsfwInstances() {
mediaNsfwInstances () {
return this.$store.state.instance.federationPolicy.mrf_simple.media_nsfw
},
mediaRemovalInstances() {
mediaRemovalInstances () {
return this.$store.state.instance.federationPolicy.mrf_simple.media_removal
}
}
}
export default MRFTransparencyPanel

View File

@ -1,5 +1,8 @@
<template>
<div class="mrf-transparency-panel" v-if="federationPolicy">
<div
v-if="federationPolicy"
class="mrf-transparency-panel"
>
<div class="panel panel-default base01-background">
<div class="panel-heading timeline-heading base02-background">
<div class="title">
@ -12,7 +15,11 @@
<p>{{ $t("about.mrf_policies_desc") }}</p>
<ul>
<li v-for="policy in mrfPolicies" v-bind:key="policy" v-text="policy" />
<li
v-for="policy in mrfPolicies"
:key="policy"
v-text="policy"
/>
</ul>
<h2>{{ $t("about.mrf_policy_simple") }}</h2>
@ -23,7 +30,11 @@
<p>{{ $t("about.mrf_policy_simple_accept_desc") }}</p>
<ul>
<li v-for="instance in acceptInstances" v-bind:key="instance" v-text="instance" />
<li
v-for="instance in acceptInstances"
:key="instance"
v-text="instance"
/>
</ul>
</div>
@ -33,7 +44,11 @@
<p>{{ $t("about.mrf_policy_simple_reject_desc") }}</p>
<ul>
<li v-for="instance in rejectInstances" v-bind:key="instance" v-text="instance" />
<li
v-for="instance in rejectInstances"
:key="instance"
v-text="instance"
/>
</ul>
</div>
@ -43,7 +58,11 @@
<p>{{ $t("about.mrf_policy_simple_quarantine_desc") }}</p>
<ul>
<li v-for="instance in quarantineInstances" v-bind:key="instance" v-text="instance" />
<li
v-for="instance in quarantineInstances"
:key="instance"
v-text="instance"
/>
</ul>
</div>
@ -53,7 +72,11 @@
<p>{{ $t("about.mrf_policy_simple_ftl_removal_desc") }}</p>
<ul>
<li v-for="instance in ftlRemovalInstances" v-bind:key="instance" v-text="instance" />
<li
v-for="instance in ftlRemovalInstances"
:key="instance"
v-text="instance"
/>
</ul>
</div>
@ -63,7 +86,11 @@
<p>{{ $t("about.mrf_policy_simple_media_nsfw_desc") }}</p>
<ul>
<li v-for="instance in mediaNsfwInstances" v-bind:key="instance" v-text="instance" />
<li
v-for="instance in mediaNsfwInstances"
:key="instance"
v-text="instance"
/>
</ul>
</div>
@ -73,7 +100,11 @@
<p>{{ $t("about.mrf_policy_simple_media_removal_desc") }}</p>
<ul>
<li v-for="instance in mediaRemovalInstances" v-bind:key="instance" v-text="instance" />
<li
v-for="instance in mediaRemovalInstances"
:key="instance"
v-text="instance"
/>
</ul>
</div>
</div>

View File

@ -5,11 +5,10 @@ const StaffPanel = {
BasicUserCard
},
computed: {
staffAccounts() {
staffAccounts () {
return this.$store.state.instance.staffAccounts
}
}
}
export default StaffPanel

View File

@ -9,8 +9,9 @@
<div class="panel-body">
<basic-user-card
v-for="user in staffAccounts"
:key="user.screen_name"
:user="user"
v-bind:key="user.screen_name" />
/>
</div>
</div>
</div>