itube-specs 0.0.916 → 0.0.918
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.
|
@@ -42,7 +42,7 @@ $nav-border--active: $color-indigo-500-50;
|
|
|
42
42
|
$nav-border--hover: transparent;
|
|
43
43
|
$nav-border: $color-zinc-700-50;
|
|
44
44
|
$nav-icon: $color-zinc-400;
|
|
45
|
-
$nav-icon-accent: $color-
|
|
45
|
+
$nav-icon-accent: $color-red-400;
|
|
46
46
|
$nav-icon--active: $color-zinc-400;
|
|
47
47
|
$nav-container-bg: $color-black;
|
|
48
48
|
$nav-down-icon: $color-zinc-500;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// @vitest-environment nuxt
|
|
2
|
+
import { describe, it, expect, beforeEach } from 'vitest';
|
|
3
|
+
import { usePlaylistDelete } from '../use-playlist-delete';
|
|
4
|
+
|
|
5
|
+
describe('usePlaylistDelete', () => {
|
|
6
|
+
beforeEach(() => {
|
|
7
|
+
useNuxtApp().payload.state = {};
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('метка скрывает плейлист и не дублируется', () => {
|
|
11
|
+
const { pendingIds, isPendingDelete, markPendingDelete } = usePlaylistDelete();
|
|
12
|
+
|
|
13
|
+
markPendingDelete('playlist-1');
|
|
14
|
+
markPendingDelete('playlist-1');
|
|
15
|
+
|
|
16
|
+
expect(pendingIds.value).toEqual([ 'playlist-1' ]);
|
|
17
|
+
expect(isPendingDelete('playlist-1')).toBe(true);
|
|
18
|
+
expect(isPendingDelete('playlist-2')).toBe(false);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('снятие метки не задевает соседние удаления', () => {
|
|
22
|
+
const { pendingIds, markPendingDelete, unmarkPendingDelete } = usePlaylistDelete();
|
|
23
|
+
|
|
24
|
+
markPendingDelete('playlist-1');
|
|
25
|
+
markPendingDelete('playlist-2');
|
|
26
|
+
unmarkPendingDelete('playlist-1');
|
|
27
|
+
|
|
28
|
+
expect(pendingIds.value).toEqual([ 'playlist-2' ]);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it('снятие несуществующей метки ничего не ломает', () => {
|
|
32
|
+
const { pendingIds, unmarkPendingDelete } = usePlaylistDelete();
|
|
33
|
+
|
|
34
|
+
unmarkPendingDelete('playlist-1');
|
|
35
|
+
|
|
36
|
+
expect(pendingIds.value).toEqual([]);
|
|
37
|
+
});
|
|
38
|
+
});
|
|
@@ -33,7 +33,7 @@ export function getNavigationItems(): INavigationItems[] {
|
|
|
33
33
|
...(featureFlags.FeatureLiveEnabled ? [{
|
|
34
34
|
title: 'live_sex',
|
|
35
35
|
link: '/2257',
|
|
36
|
-
icon: '
|
|
36
|
+
icon: 'photo-cam',
|
|
37
37
|
accent: true,
|
|
38
38
|
}] : []),
|
|
39
39
|
...(featureFlags.FeatureHistoryEnabled ? [{
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="9" r="6.5"></circle><circle cx="12" cy="9" r="2.5"></circle><path d="M12 15.5V19"></path><path d="M8 20h8"></path></svg>
|