feeds-fun 1.19.0 → 1.19.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feeds-fun",
3
- "version": "1.19.0",
3
+ "version": "1.19.2",
4
4
  "author": "Aliaksei Yaletski (Tiendil) <a.eletsky@gmail.com> (https://tiendil.org/)",
5
5
  "description": "Frontend for the Feeds Fun — web-based news reader",
6
6
  "keywords": [
@@ -11,6 +11,7 @@
11
11
  import {useGlobalSettingsStore} from "@/stores/globalSettings";
12
12
  import {useCollectionsStore} from "@/stores/collections";
13
13
  import * as tagsFilterState from "@/logic/tagsFilterState";
14
+ import * as settings from "@/logic/settings";
14
15
 
15
16
  const properties = defineProps<{
16
17
  apiKey: boolean;
@@ -38,7 +39,8 @@
38
39
  properties.collectionsNotification_ &&
39
40
  globalSettings.userSettings &&
40
41
  !globalSettings.userSettings.hide_message_about_adding_collections.value &&
41
- !tagsStates?.value.hasSelectedTags
42
+ !tagsStates?.value.hasSelectedTags &&
43
+ settings.hasCollections
42
44
  );
43
45
  });
44
46
 
@@ -1,4 +1,5 @@
1
1
  import * as c from "@/logic/constants";
2
+ import * as settings from "@/logic/settings";
2
3
 
3
4
  export type AnyEnum = {
4
5
  [key in keyof any]: string | number;
@@ -24,7 +25,7 @@ export const MainPanelModeProperties = new Map<MainPanelMode, MainPanelModePrope
24
25
  [MainPanelMode.Feeds, {text: "Feeds", showInMenu: true}],
25
26
  [MainPanelMode.Rules, {text: "Rules", showInMenu: true}],
26
27
  [MainPanelMode.Discovery, {text: "Discovery", showInMenu: true}],
27
- [MainPanelMode.Collections, {text: "Collections", showInMenu: true}],
28
+ [MainPanelMode.Collections, {text: "Collections", showInMenu: settings.hasCollections}],
28
29
  [MainPanelMode.PublicCollection, {text: "Public Collection", showInMenu: false}],
29
30
  [MainPanelMode.Settings, {text: "Settings", showInMenu: true}]
30
31
  ]);
@@ -29,6 +29,8 @@ export const utmLifetime = import.meta.env.VITE_FFUN_UTM_LIFETIME || 7; // days
29
29
  export const crmTerms = import.meta.env.VITE_FFUN_CRM_TERMS || null;
30
30
  export const crmPrivacy = import.meta.env.VITE_FFUN_CRM_PRIVACY || null;
31
31
 
32
+ export const hasCollections = import.meta.env.VITE_FFUN_HAS_COLLECTIONS == "true" || false;
33
+
32
34
  console.log("settings.appName", appName);
33
35
  console.log("settings.appDomain", appDomain);
34
36
  console.log("settings.appPort", appPort);
@@ -55,4 +57,6 @@ console.log("settings.utmLifetime", utmLifetime);
55
57
  console.log("settings.crmTerms", crmTerms ? "set" : "not set");
56
58
  console.log("settings.crmPrivacy", crmPrivacy ? "set" : "not set");
57
59
 
60
+ console.log("settings.hasCollections", hasCollections);
61
+
58
62
  export const isSingleUserMode = authMode === AuthMode.SingleUser;
@@ -179,11 +179,11 @@
179
179
  </main-description>
180
180
  </main-block>
181
181
 
182
- <main-header-line v-if="collections.collectionsOrder.length > 0">
182
+ <main-header-line v-if="settings.hasCollections">
183
183
  Curated news collections <br class="md:hidden" />for easy start
184
184
  </main-header-line>
185
185
 
186
- <main-block>
186
+ <main-block v-if="settings.hasCollections">
187
187
  <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
188
188
  <template
189
189
  v-for="collectionId in collections.collectionsOrder"