@mevbg/nuxt-kit 0.5.8 → 0.5.9
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/dist/module.json +1 -1
- package/dist/runtime/composables/useHeadLinks.js +113 -55
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -4,76 +4,134 @@ export function useHeadLinks(path = "/assets") {
|
|
|
4
4
|
{ rel: "yandex-tableau-widget", href: `${path}/yandex-browser-manifest.json` }
|
|
5
5
|
];
|
|
6
6
|
const favicons = [
|
|
7
|
-
{ rel: "icon", type: "image/x-icon", href: `${path}/favicon.ico` },
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
{ rel: "icon", type: "image/x-icon", href: `${path}/favicon.ico?v=${Date.now()}` },
|
|
8
|
+
...[
|
|
9
|
+
"16",
|
|
10
|
+
"32",
|
|
11
|
+
"48"
|
|
12
|
+
].map((size) => ({ rel: "icon", type: "image/png", sizes: `${size}x${size}`, href: `${path}/favicon-${size}x${size}.png?v=${Date.now()}` }))
|
|
11
13
|
];
|
|
12
14
|
const appleTouchIcons = [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
...[
|
|
16
|
+
"57",
|
|
17
|
+
"60",
|
|
18
|
+
"72",
|
|
19
|
+
"76",
|
|
20
|
+
"114",
|
|
21
|
+
"120",
|
|
22
|
+
"144",
|
|
23
|
+
"152",
|
|
24
|
+
"167",
|
|
25
|
+
"180",
|
|
26
|
+
"1024"
|
|
27
|
+
].map((size) => ({ rel: "apple-touch-icon", sizes: `${size}x${size}`, href: `${path}/apple-touch-icon-${size}x${size}.png?v=${Date.now()}` }))
|
|
24
28
|
];
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
{ rel: "apple-touch-startup-image", media: "(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)", href: `${path}/apple-touch-startup-image-640x1136.png` },
|
|
28
|
-
{ rel: "apple-touch-startup-image", media: "(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)", href: `${path}/apple-touch-startup-image-1136x640.png` },
|
|
29
|
-
// iPhone SE • iPhone 6 • iPhone 6s • iPhone 7 • iPhone 8
|
|
30
|
-
{ rel: "apple-touch-startup-image", media: "(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)", href: `${path}/apple-touch-startup-image-750x1334.png` },
|
|
31
|
-
{ rel: "apple-touch-startup-image", media: "(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)", href: `${path}/apple-touch-startup-image-1334x750.png` },
|
|
32
|
-
// iPhone 6 Plus • iPhone 6s Plus • iPhone 7 Plus • iPhone 8 Plus
|
|
33
|
-
{ rel: "apple-touch-startup-image", media: "(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)", href: `${path}/apple-touch-startup-image-1242x2208.png` },
|
|
34
|
-
{ rel: "apple-touch-startup-image", media: "(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)", href: `${path}/apple-touch-startup-image-2208x1242.png` },
|
|
35
|
-
// iPhone XR • iPhone 11
|
|
36
|
-
{ rel: "apple-touch-startup-image", media: "(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)", href: `${path}/apple-touch-startup-image-828x1792.png` },
|
|
37
|
-
{ rel: "apple-touch-startup-image", media: "(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)", href: `${path}/apple-touch-startup-image-1792x828.png` },
|
|
38
|
-
// iPhone XS Max • iPhone 11 Pro Max
|
|
39
|
-
{ rel: "apple-touch-startup-image", media: "(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)", href: `${path}/apple-touch-startup-image-1242x2688.png` },
|
|
40
|
-
{ rel: "apple-touch-startup-image", media: "(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)", href: `${path}/apple-touch-startup-image-2688x1242.png` },
|
|
29
|
+
const orientation = ["portrait", "landscape"];
|
|
30
|
+
const appleTouchStartupImagesData = [
|
|
41
31
|
// iPhone X • iPhone XS • iPhone 11 Pro • iPhone 12 mini • iPhone 13 mini
|
|
42
|
-
{
|
|
43
|
-
|
|
32
|
+
{
|
|
33
|
+
width: 375,
|
|
34
|
+
height: 812,
|
|
35
|
+
ratio: 3,
|
|
36
|
+
short: 1125,
|
|
37
|
+
long: 2436
|
|
38
|
+
},
|
|
44
39
|
// iPhone 12 • iPhone 12 Pro • iPhone 13 • iPhone 13 Pro • iPhone 14
|
|
45
|
-
{
|
|
46
|
-
|
|
40
|
+
{
|
|
41
|
+
width: 390,
|
|
42
|
+
height: 844,
|
|
43
|
+
ratio: 3,
|
|
44
|
+
short: 1170,
|
|
45
|
+
long: 2532
|
|
46
|
+
},
|
|
47
47
|
// iPhone 12 Pro Max • iPhone 13 Pro Max • iPhone 14 Plus
|
|
48
|
-
{
|
|
49
|
-
|
|
48
|
+
{
|
|
49
|
+
width: 428,
|
|
50
|
+
height: 926,
|
|
51
|
+
ratio: 3,
|
|
52
|
+
short: 1284,
|
|
53
|
+
long: 2778
|
|
54
|
+
},
|
|
50
55
|
// iPhone 14 Pro • iPhone 15 Pro • iPhone 15
|
|
51
|
-
{
|
|
52
|
-
|
|
56
|
+
{
|
|
57
|
+
width: 393,
|
|
58
|
+
height: 852,
|
|
59
|
+
ratio: 3,
|
|
60
|
+
short: 1179,
|
|
61
|
+
long: 2556
|
|
62
|
+
},
|
|
53
63
|
// iPhone 14 Pro Max • iPhone 15 Pro Max • iPhone 15 Plus
|
|
54
|
-
{
|
|
55
|
-
|
|
64
|
+
{
|
|
65
|
+
width: 430,
|
|
66
|
+
height: 932,
|
|
67
|
+
ratio: 3,
|
|
68
|
+
short: 1290,
|
|
69
|
+
long: 2796
|
|
70
|
+
},
|
|
56
71
|
// iPad 9.7 • iPad Air 9.7 • iPad Mini 7.9 • iPad Pro 9.7
|
|
57
|
-
{
|
|
58
|
-
|
|
72
|
+
{
|
|
73
|
+
width: 768,
|
|
74
|
+
height: 1024,
|
|
75
|
+
ratio: 2,
|
|
76
|
+
short: 1536,
|
|
77
|
+
long: 2048
|
|
78
|
+
},
|
|
59
79
|
// iPad 10.2
|
|
60
|
-
{
|
|
61
|
-
|
|
80
|
+
{
|
|
81
|
+
width: 810,
|
|
82
|
+
height: 1080,
|
|
83
|
+
ratio: 2,
|
|
84
|
+
short: 1620,
|
|
85
|
+
long: 2160
|
|
86
|
+
},
|
|
62
87
|
// iPad Air 10.5
|
|
63
|
-
{
|
|
64
|
-
|
|
88
|
+
{
|
|
89
|
+
width: 834,
|
|
90
|
+
height: 1112,
|
|
91
|
+
ratio: 2,
|
|
92
|
+
short: 1668,
|
|
93
|
+
long: 2224
|
|
94
|
+
},
|
|
65
95
|
// iPad 11 • iPad Pro 10.5
|
|
66
|
-
{
|
|
67
|
-
|
|
96
|
+
{
|
|
97
|
+
width: 834,
|
|
98
|
+
height: 1194,
|
|
99
|
+
ratio: 2,
|
|
100
|
+
short: 1668,
|
|
101
|
+
long: 2388
|
|
102
|
+
},
|
|
68
103
|
// iPad Pro 12.9
|
|
69
|
-
{
|
|
70
|
-
|
|
104
|
+
{
|
|
105
|
+
width: 1024,
|
|
106
|
+
height: 1366,
|
|
107
|
+
ratio: 2,
|
|
108
|
+
short: 2048,
|
|
109
|
+
long: 2732
|
|
110
|
+
},
|
|
71
111
|
// iPad Mini 8.3
|
|
72
|
-
{
|
|
73
|
-
|
|
112
|
+
{
|
|
113
|
+
width: 744,
|
|
114
|
+
height: 1133,
|
|
115
|
+
ratio: 2,
|
|
116
|
+
short: 1488,
|
|
117
|
+
long: 2266
|
|
118
|
+
},
|
|
74
119
|
// iPad Air 10.9
|
|
75
|
-
{
|
|
76
|
-
|
|
120
|
+
{
|
|
121
|
+
width: 820,
|
|
122
|
+
height: 1180,
|
|
123
|
+
ratio: 2,
|
|
124
|
+
short: 1640,
|
|
125
|
+
long: 2360
|
|
126
|
+
}
|
|
127
|
+
];
|
|
128
|
+
const appleTouchStartupImagesParser = ({ width, height, ratio, short, long }, o) => ({
|
|
129
|
+
rel: "apple-touch-startup-image",
|
|
130
|
+
media: `(device-width: ${width}px) and (device-height: ${height}px) and (-webkit-device-pixel-ratio: ${ratio}) and (orientation: ${o})`,
|
|
131
|
+
href: `${path}/apple-touch-startup-image-${o === "portrait" ? short : long}x${o === "portrait" ? long : short}.png?v=${Date.now()}`
|
|
132
|
+
});
|
|
133
|
+
const appleTouchStartupImages = [
|
|
134
|
+
...orientation.flatMap((o) => appleTouchStartupImagesData.map((data) => appleTouchStartupImagesParser(data, o)))
|
|
77
135
|
];
|
|
78
136
|
return [
|
|
79
137
|
...manifests,
|