aboutsummaryrefslogtreecommitdiff
path: root/src/components/settings/settings.vue
blob: 3fab1c1ce6da18cc536cbaa52743074dff562608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<template>
  <div class="settings panel panel-default base00-background">
    <div class="panel-heading base01-background base04">
      Settings
    </div>
    <div class="panel-body">
      <div class="setting-item">
        <h2>Theme</h2>
        <style-switcher></style-switcher>
      </div>
      <div class="setting-item">
        <h2>Filtering</h2>
        <p>All notices containing these words will be muted, one per line</p>
        <textarea id="muteWords" v-model="muteWordsString"></textarea>
      </div>
      <div class="setting-item">
        <h2>Attachments</h2>
        <ul class="setting-list">
            <li>
                <input type="checkbox" id="hideAttachments" v-model="hideAttachmentsLocal">
                <label for="hideAttachments">Hide attachments in timeline</label>
            </li>
            <li>
                <input type="checkbox" id="hideAttachmentsInConv" v-model="hideAttachmentsInConvLocal">
                <label for="hideAttachmentsInConv">Hide attachments in conversations</label>
            </li>
            <li>
                <input type="checkbox" id="hideNsfw" v-model="hideNsfwLocal">
                <label for="hideNsfw">Enable clickthrough NSFW attachment hiding</label>
            </li>
            <li>
                <input type="checkbox" id="autoLoad" v-model="autoLoadLocal">
                <label for="autoLoad">Enable automatic loading when scrolled to the bottom</label>
            </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script src="./settings.js">
</script>

<style lang="scss">
 .setting-item {
   margin: 1em 1em 1.4em;
   textarea {
     width: 100%;
     height: 100px;
   }
 }
 .setting-list {
   list-style-type: none;
 }
</style>