jabroni-outfit 1.6.4 → 1.6.5
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jabroni-outfit",
|
|
3
3
|
"description": "out-of-the-box gui and persistent-state library based on vue",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.5",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"gui",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"preview": "vite preview"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
+
"@biomejs/biome": "2.2.4",
|
|
45
46
|
"@vitejs/plugin-vue": "^5.1.2",
|
|
46
47
|
"autoprefixer": "^10.4.20",
|
|
47
48
|
"postcss": "^8.4.41",
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
"vue-tsc": "^2.0.29"
|
|
55
56
|
},
|
|
56
57
|
"dependencies": {
|
|
57
|
-
"billy-herrington-utils": "^1.
|
|
58
|
+
"billy-herrington-utils": "^1.4.2",
|
|
58
59
|
"vue": "^3.4.37"
|
|
59
60
|
}
|
|
60
61
|
}
|
|
@@ -20,7 +20,8 @@ export const stateOptions = {
|
|
|
20
20
|
},
|
|
21
21
|
PRIVACY_FILTER: {
|
|
22
22
|
filterPrivate: { value: false, persistent: true, watch: true },
|
|
23
|
-
filterPublic: { value: false, persistent: true, watch: true }
|
|
23
|
+
filterPublic: { value: false, persistent: true, watch: true },
|
|
24
|
+
autoRequestAccess: { value: false, persistent: true, watch: true },
|
|
24
25
|
},
|
|
25
26
|
HD_FILTER: {
|
|
26
27
|
filterHD: { value: false, persistent: true, watch: true }
|
package/src/ui/default-scheme.ts
CHANGED
|
@@ -32,24 +32,36 @@ export const customScheme: Scheme = {
|
|
|
32
32
|
type: 'button',
|
|
33
33
|
innerText: 'views',
|
|
34
34
|
callback: () => {
|
|
35
|
-
console.log('sort call', window);
|
|
36
35
|
//@ts-ignore
|
|
37
|
-
|
|
36
|
+
window.sortByViews?.();
|
|
38
37
|
},
|
|
39
38
|
},
|
|
40
39
|
{
|
|
41
40
|
type: 'button',
|
|
42
41
|
innerText: 'duration',
|
|
43
42
|
callback: () => {
|
|
44
|
-
console.log('sort call', window);
|
|
45
43
|
//@ts-ignore
|
|
46
|
-
|
|
44
|
+
window.sortByDuration?.();
|
|
47
45
|
},
|
|
48
46
|
}],
|
|
47
|
+
|
|
49
48
|
privacyFilter: [
|
|
50
49
|
{ type: "checkbox", model: "state.filterPrivate", label: "private" },
|
|
51
50
|
{ type: "checkbox", model: "state.filterPublic", label: "public" }
|
|
52
51
|
],
|
|
52
|
+
|
|
53
|
+
privacyAccess: [
|
|
54
|
+
{ type: "checkbox", model: "state.autoRequestAccess", label: "auto friend request" },
|
|
55
|
+
{
|
|
56
|
+
type: 'button',
|
|
57
|
+
innerText: 'check access 🔓',
|
|
58
|
+
callback: () => {
|
|
59
|
+
//@ts-ignore
|
|
60
|
+
window.requestAccess?.();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
|
|
53
65
|
hdFilter: [
|
|
54
66
|
{ type: "checkbox", model: "state.filterHD", label: "HD" },
|
|
55
67
|
]
|
|
@@ -63,7 +75,8 @@ export const extendScheme = (scheme: Scheme, newScheme: Scheme) =>
|
|
|
63
75
|
}, {});
|
|
64
76
|
|
|
65
77
|
export const defaultSchemeWithPrivacyFilter = extendScheme(DefaultScheme, {
|
|
66
|
-
privacyFilter: customScheme.privacyFilter
|
|
78
|
+
privacyFilter: customScheme.privacyFilter,
|
|
79
|
+
privacyAccess: customScheme.privacyAccess
|
|
67
80
|
});
|
|
68
81
|
|
|
69
82
|
export const defaultSchemeWithPrivacyFilterWithHD = extendScheme(defaultSchemeWithPrivacyFilter, {
|