feeds-fun 1.18.1 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,7 +28,7 @@
28
28
  <main-header-line> Smarter way to read news </main-header-line>
29
29
 
30
30
  <main-block>
31
- <main-description icon="ti-number-1">
31
+ <main-description step="1">
32
32
  <template #caption> Subscribe to sites </template>
33
33
 
34
34
  <template #description>
@@ -36,7 +36,7 @@
36
36
  </template>
37
37
  </main-description>
38
38
 
39
- <main-description icon="ti-number-2">
39
+ <main-description step="2">
40
40
  <template #caption> Get automatic tagging </template>
41
41
 
42
42
  <template #description>
@@ -73,7 +73,7 @@
73
73
  </template>
74
74
  </main-description>
75
75
 
76
- <main-description icon="ti-number-3">
76
+ <main-description step="3">
77
77
  <template #caption> Create scoring rules </template>
78
78
 
79
79
  <template #description>
@@ -85,9 +85,12 @@
85
85
  :link="null"
86
86
  css-modifier="positive" />
87
87
 
88
- <i class="ti ti-arrow-right"></i>
88
+ <icon
89
+ icon="arrow-right"
90
+ size="small"
91
+ class="mx-0.5" />
89
92
 
90
- <span class="cursor-default text-purple-700 text-lg md:text-xl">+5</span>
93
+ <span class="inline-block align-middle cursor-default text-purple-700 text-lg md:text-xl">+5</span>
91
94
  </div>
92
95
 
93
96
  <div class="">
@@ -97,9 +100,12 @@
97
100
  link="http://example.com"
98
101
  css-modifier="negative" />
99
102
 
100
- <i class="ti ti-arrow-right"></i>
103
+ <icon
104
+ icon="arrow-right"
105
+ size="small"
106
+ class="mx-0.5" />
101
107
 
102
- <span class="cursor-default text-purple-700 text-lg md:text-xl">-55</span>
108
+ <span class="inline-block align-middle cursor-default text-purple-700 text-lg md:text-xl">-55</span>
103
109
  </div>
104
110
 
105
111
  <div class="">
@@ -109,7 +115,10 @@
109
115
  :link="null"
110
116
  css-modifier="positive" />
111
117
 
112
- <i class="ti ti-plus"></i>
118
+ <icon
119
+ icon="plus"
120
+ size="small"
121
+ class="mx-0.5" />
113
122
 
114
123
  <fake-tag
115
124
  uid="new-york"
@@ -117,9 +126,12 @@
117
126
  :link="null"
118
127
  css-modifier="positive" />
119
128
 
120
- <i class="ti ti-arrow-right"></i>
129
+ <icon
130
+ icon="arrow-right"
131
+ size="small"
132
+ class="mx-0.5" />
121
133
 
122
- <span class="cursor-default-purple-700 text-lg md:text-xl">+8</span>
134
+ <span class="inline-block align-middle cursor-default text-purple-700 text-lg md:text-xl">+8</span>
123
135
  </div>
124
136
 
125
137
  <div class="">
@@ -129,15 +141,18 @@
129
141
  :link="null"
130
142
  css-modifier="positive" />
131
143
 
132
- <i class="ti ti-arrow-right"></i>
144
+ <icon
145
+ icon="arrow-right"
146
+ size="small"
147
+ class="mx-0.5" />
133
148
 
134
- <span class="cursor-default text-purple-700 text-lg md:text-xl">+21</span>
149
+ <span class="inline-block align-middle cursor-default text-purple-700 text-lg md:text-xl">+21</span>
135
150
  </div>
136
151
  </div>
137
152
  </template>
138
153
  </main-description>
139
154
 
140
- <main-description icon="ti-number-4">
155
+ <main-description step="4">
141
156
  <template #caption> Read what matters </template>
142
157
 
143
158
  <template #description>
@@ -151,7 +166,9 @@
151
166
  title="Sci-fi novel about UFO in New Yourk"
152
167
  :score="13" />
153
168
 
154
- <i class="opacity-65 block ti ti-dots justify-self-center"></i>
169
+ <div class="opacity-65 block justify-self-center">
170
+ <icon icon="dots" />
171
+ </div>
155
172
 
156
173
  <main-news-title
157
174
  class="opacity-55"
@@ -171,9 +188,7 @@
171
188
  <template
172
189
  v-for="collectionId in collections.collectionsOrder"
173
190
  :key="collectionId">
174
- <main-item
175
- v-if="collections.collections[collectionId].showOnMain"
176
- icon="ti-arrow-narrow-right">
191
+ <main-item v-if="collections.collections[collectionId].showOnMain">
177
192
  <template #caption>
178
193
  {{ collections.collections[collectionId].name }}
179
194
  </template>
@@ -116,6 +116,32 @@
116
116
  </tr>
117
117
  </tbody>
118
118
  </table>
119
+
120
+ <h3>Danger Zone</h3>
121
+
122
+ <div class="ffun-info-bad">
123
+ <p><strong>ATTENTION!</strong></p>
124
+
125
+ <p> Operations in this section are irreversible and may lead to data loss and even account deletion. </p>
126
+ </div>
127
+
128
+ <div
129
+ v-if="!settings.isSingleUserMode"
130
+ class="ffun-info-bad">
131
+ <button
132
+ @click.prevent="removeAccount()"
133
+ class="ffun-form-button bad short ml-1"
134
+ >Remove Account</button
135
+ >
136
+
137
+ <label class="ml-1"> Permanently remove your account and all your data. </label>
138
+ </div>
139
+
140
+ <div
141
+ v-else
142
+ class="ffun-info-common">
143
+ <p> Account removal in the single-user mode is not available. </p>
144
+ </div>
119
145
  </side-panel-layout>
120
146
  </template>
121
147
 
@@ -125,6 +151,7 @@
125
151
  import * as api from "@/logic/api";
126
152
  import * as t from "@/logic/types";
127
153
  import * as e from "@/logic/enums";
154
+ import * as settings from "@/logic/settings";
128
155
  import {useRouter} from "vue-router";
129
156
  import {useGlobalSettingsStore} from "@/stores/globalSettings";
130
157
 
@@ -158,6 +185,12 @@
158
185
  router.push({name: e.MainPanelMode.Collections, params: {}});
159
186
  }
160
187
 
188
+ function removeAccount() {
189
+ if (confirm("Are you sure you want to remove your account? THIS OPERATION IS NOT REVERSIBLE!")) {
190
+ api.removeUser();
191
+ }
192
+ }
193
+
161
194
  // TODO: check api keys on setup
162
195
  // TODO: basic integer checks
163
196
  </script>