feeds-fun 1.20.7 → 1.21.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.
- package/package.json +1 -1
- package/src/components/FaviconElement.vue +3 -2
- package/src/components/page_footer/Footer.vue +2 -0
- package/src/logic/settings.ts +4 -0
- package/src/stores/globalSettings.ts +1 -6
- package/src/views/MainView.vue +2 -1
- package/vite.config.ts +6 -0
- /package/{public → src/assets}/news-filtering-example.png +0 -0
- /package/{public → src/assets}/no-favicon.ico +0 -0
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
8
|
import * as utils from "@/logic/utils";
|
|
9
|
+
import noFaviconImage from "@/assets/no-favicon.ico";
|
|
9
10
|
import {computed, ref} from "vue";
|
|
10
11
|
|
|
11
12
|
const properties = defineProps<{url: string}>();
|
|
@@ -18,13 +19,13 @@
|
|
|
18
19
|
|
|
19
20
|
const faviconUrl = computed(() => {
|
|
20
21
|
if (noFavicon.value) {
|
|
21
|
-
return
|
|
22
|
+
return noFaviconImage;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
const url = utils.faviconForUrl(properties.url);
|
|
25
26
|
|
|
26
27
|
if (url == null) {
|
|
27
|
-
return
|
|
28
|
+
return noFaviconImage;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
return url;
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
<div class="flex flex-col space-y-2">
|
|
7
7
|
<div class="font-medium"> The project is in demo mode and free of charge </div>
|
|
8
8
|
|
|
9
|
+
<div>Version: {{ settings.version }}</div>
|
|
10
|
+
|
|
9
11
|
<div>
|
|
10
12
|
© 2023‑{{ year }} Aliaksei Yaletski (<external-url
|
|
11
13
|
url="https://github.com/Tiendil"
|
package/src/logic/settings.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
declare const __APP_VERSION__: string;
|
|
2
|
+
|
|
1
3
|
export enum AuthMode {
|
|
2
4
|
SingleUser = "single_user",
|
|
3
5
|
Supertokens = "supertokens"
|
|
@@ -8,6 +10,7 @@ export const appDomain = import.meta.env.VITE_FFUN_APP_DOMAIN || "localhost";
|
|
|
8
10
|
export const appPort = import.meta.env.VITE_FFUN_APP_PORT || "5173";
|
|
9
11
|
|
|
10
12
|
export const environment = import.meta.env.VITE_FFUN_ENVIRONMENT || "local";
|
|
13
|
+
export const version = __APP_VERSION__;
|
|
11
14
|
|
|
12
15
|
export const authMode = import.meta.env.VITE_FFUN_AUTH_MODE || AuthMode.SingleUser;
|
|
13
16
|
export const authSupertokensApiBasePath = import.meta.env.VITE_FFUN_AUTH_SUPERTOKENS_API_BASE_PATH || "/supertokens";
|
|
@@ -36,6 +39,7 @@ console.log("settings.appDomain", appDomain);
|
|
|
36
39
|
console.log("settings.appPort", appPort);
|
|
37
40
|
|
|
38
41
|
console.log("settings.environment", environment);
|
|
42
|
+
console.log("settings.version", version);
|
|
39
43
|
|
|
40
44
|
console.log("settings.authMode", authMode);
|
|
41
45
|
console.log("settings.authSupertokensApiBasePath", authSupertokensApiBasePath);
|
|
@@ -21,13 +21,8 @@ export const useGlobalSettingsStore = defineStore("globalSettings", () => {
|
|
|
21
21
|
|
|
22
22
|
// TODO: We may want to remove this API and move user_id to the user settings API
|
|
23
23
|
const info = computedAsync(async () => {
|
|
24
|
-
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// force refresh
|
|
24
|
+
globalState.isLoggedIn;
|
|
29
25
|
dataVersion.value;
|
|
30
|
-
|
|
31
26
|
return await api.getInfo();
|
|
32
27
|
}, null);
|
|
33
28
|
|
package/src/views/MainView.vue
CHANGED
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
<div class="text-center p-5">
|
|
213
213
|
<img
|
|
214
214
|
class="border-2 rounded border-slate-300 mx-auto"
|
|
215
|
-
src="
|
|
215
|
+
:src="exampleImage"
|
|
216
216
|
alt="News filtering example" />
|
|
217
217
|
</div>
|
|
218
218
|
</wide-layout>
|
|
@@ -220,6 +220,7 @@
|
|
|
220
220
|
|
|
221
221
|
<script lang="ts" setup>
|
|
222
222
|
import {computed, ref, onUnmounted, watch, provide} from "vue";
|
|
223
|
+
import exampleImage from "@/assets/news-filtering-example.png";
|
|
223
224
|
import * as settings from "@/logic/settings";
|
|
224
225
|
import {useRouter, RouterLink, RouterView} from "vue-router";
|
|
225
226
|
import {useCollectionsStore} from "@/stores/collections";
|
package/vite.config.ts
CHANGED
|
@@ -2,9 +2,15 @@ import { fileURLToPath, URL } from 'node:url'
|
|
|
2
2
|
|
|
3
3
|
import { defineConfig } from 'vite'
|
|
4
4
|
import vue from '@vitejs/plugin-vue'
|
|
5
|
+
import pkg from './package.json'
|
|
5
6
|
|
|
6
7
|
export default defineConfig({
|
|
7
8
|
plugins: [vue()],
|
|
9
|
+
|
|
10
|
+
define: {
|
|
11
|
+
__APP_VERSION__: JSON.stringify(pkg.version),
|
|
12
|
+
},
|
|
13
|
+
|
|
8
14
|
resolve: {
|
|
9
15
|
alias: {
|
|
10
16
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
File without changes
|
|
File without changes
|