|
3 | 3 | package browser |
4 | 4 |
|
5 | 5 | import ( |
6 | | - "github.com/moond4rk/hackbrowserdata/item" |
| 6 | + "github.com/moond4rk/hackbrowserdata/types" |
7 | 7 | ) |
8 | 8 |
|
9 | 9 | var ( |
10 | 10 | chromiumList = map[string]struct { |
11 | 11 | name string |
12 | 12 | storage string |
13 | 13 | profilePath string |
14 | | - items []item.Item |
| 14 | + dataTypes []types.DataType |
15 | 15 | }{ |
16 | 16 | "chrome": { |
17 | 17 | name: chromeName, |
18 | 18 | storage: chromeStorageName, |
19 | 19 | profilePath: chromeProfilePath, |
20 | | - items: item.DefaultChromium, |
| 20 | + dataTypes: types.DefaultChromiumTypes, |
21 | 21 | }, |
22 | 22 | "edge": { |
23 | 23 | name: edgeName, |
24 | 24 | storage: edgeStorageName, |
25 | 25 | profilePath: edgeProfilePath, |
26 | | - items: item.DefaultChromium, |
| 26 | + dataTypes: types.DefaultChromiumTypes, |
27 | 27 | }, |
28 | 28 | "chromium": { |
29 | 29 | name: chromiumName, |
30 | 30 | storage: chromiumStorageName, |
31 | 31 | profilePath: chromiumProfilePath, |
32 | | - items: item.DefaultChromium, |
| 32 | + dataTypes: types.DefaultChromiumTypes, |
33 | 33 | }, |
34 | 34 | "chrome-beta": { |
35 | 35 | name: chromeBetaName, |
36 | 36 | storage: chromeBetaStorageName, |
37 | 37 | profilePath: chromeBetaProfilePath, |
38 | | - items: item.DefaultChromium, |
| 38 | + dataTypes: types.DefaultChromiumTypes, |
39 | 39 | }, |
40 | 40 | "opera": { |
41 | 41 | name: operaName, |
42 | 42 | profilePath: operaProfilePath, |
43 | 43 | storage: operaStorageName, |
44 | | - items: item.DefaultChromium, |
| 44 | + dataTypes: types.DefaultChromiumTypes, |
45 | 45 | }, |
46 | 46 | "opera-gx": { |
47 | 47 | name: operaGXName, |
48 | 48 | profilePath: operaGXProfilePath, |
49 | 49 | storage: operaStorageName, |
50 | | - items: item.DefaultChromium, |
| 50 | + dataTypes: types.DefaultChromiumTypes, |
51 | 51 | }, |
52 | 52 | "vivaldi": { |
53 | 53 | name: vivaldiName, |
54 | 54 | storage: vivaldiStorageName, |
55 | 55 | profilePath: vivaldiProfilePath, |
56 | | - items: item.DefaultChromium, |
| 56 | + dataTypes: types.DefaultChromiumTypes, |
57 | 57 | }, |
58 | 58 | "coccoc": { |
59 | 59 | name: coccocName, |
60 | 60 | storage: coccocStorageName, |
61 | 61 | profilePath: coccocProfilePath, |
62 | | - items: item.DefaultChromium, |
| 62 | + dataTypes: types.DefaultChromiumTypes, |
63 | 63 | }, |
64 | 64 | "brave": { |
65 | 65 | name: braveName, |
66 | 66 | profilePath: braveProfilePath, |
67 | 67 | storage: braveStorageName, |
68 | | - items: item.DefaultChromium, |
| 68 | + dataTypes: types.DefaultChromiumTypes, |
69 | 69 | }, |
70 | 70 | "yandex": { |
71 | 71 | name: yandexName, |
72 | 72 | storage: yandexStorageName, |
73 | 73 | profilePath: yandexProfilePath, |
74 | | - items: item.DefaultYandex, |
| 74 | + dataTypes: types.DefaultYandexTypes, |
75 | 75 | }, |
76 | 76 | "arc": { |
77 | 77 | name: arcName, |
78 | 78 | profilePath: arcProfilePath, |
79 | 79 | storage: arcStorageName, |
80 | | - items: item.DefaultChromium, |
| 80 | + dataTypes: types.DefaultChromiumTypes, |
81 | 81 | }, |
82 | 82 | } |
83 | 83 | firefoxList = map[string]struct { |
84 | 84 | name string |
85 | 85 | storage string |
86 | 86 | profilePath string |
87 | | - items []item.Item |
| 87 | + dataTypes []types.DataType |
88 | 88 | }{ |
89 | 89 | "firefox": { |
90 | 90 | name: firefoxName, |
91 | 91 | profilePath: firefoxProfilePath, |
92 | | - items: item.DefaultFirefox, |
| 92 | + dataTypes: types.DefaultFirefoxTypes, |
93 | 93 | }, |
94 | 94 | } |
95 | 95 | ) |
|
0 commit comments