@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mevbg/nuxt-kit",
3
3
  "configKey": "mevKit",
4
- "version": "0.5.8",
4
+ "version": "0.5.9",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.0"
@@ -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
- { rel: "icon", type: "image/png", sizes: "16x16", href: `${path}/favicon-16x16.png` },
9
- { rel: "icon", type: "image/png", sizes: "32x32", href: `${path}/favicon-32x32.png` },
10
- { rel: "icon", type: "image/png", sizes: "48x48", href: `${path}/favicon-48x48.png` }
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
- { rel: "apple-touch-icon", sizes: "57x57", href: `${path}/apple-touch-icon-57x57.png` },
14
- { rel: "apple-touch-icon", sizes: "60x60", href: `${path}/apple-touch-icon-60x60.png` },
15
- { rel: "apple-touch-icon", sizes: "72x72", href: `${path}/apple-touch-icon-72x72.png` },
16
- { rel: "apple-touch-icon", sizes: "76x76", href: `${path}/apple-touch-icon-76x76.png` },
17
- { rel: "apple-touch-icon", sizes: "114x114", href: `${path}/apple-touch-icon-114x114.png` },
18
- { rel: "apple-touch-icon", sizes: "120x120", href: `${path}/apple-touch-icon-120x120.png` },
19
- { rel: "apple-touch-icon", sizes: "144x144", href: `${path}/apple-touch-icon-144x144.png` },
20
- { rel: "apple-touch-icon", sizes: "152x152", href: `${path}/apple-touch-icon-152x152.png` },
21
- { rel: "apple-touch-icon", sizes: "167x167", href: `${path}/apple-touch-icon-167x167.png` },
22
- { rel: "apple-touch-icon", sizes: "180x180", href: `${path}/apple-touch-icon-180x180.png` },
23
- { rel: "apple-touch-icon", sizes: "1024x1024", href: `${path}/apple-touch-icon-1024x1024.png` }
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 appleTouchStartupImages = [
26
- // iPod Touch 5th generation and later • iPhone SE
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
- { rel: "apple-touch-startup-image", media: "(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)", href: `${path}/apple-touch-startup-image-1125x2436.png` },
43
- { rel: "apple-touch-startup-image", media: "(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)", href: `${path}/apple-touch-startup-image-2436x1125.png` },
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
- { rel: "apple-touch-startup-image", media: "(device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)", href: `${path}/apple-touch-startup-image-1170x2532.png` },
46
- { rel: "apple-touch-startup-image", media: "(device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)", href: `${path}/apple-touch-startup-image-2532x1170.png` },
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
- { rel: "apple-touch-startup-image", media: "(device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)", href: `${path}/apple-touch-startup-image-1284x2778.png` },
49
- { rel: "apple-touch-startup-image", media: "(device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)", href: `${path}/apple-touch-startup-image-2778x1284.png` },
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
- { rel: "apple-touch-startup-image", media: "(device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)", href: `${path}/apple-touch-startup-image-1179x2556.png` },
52
- { rel: "apple-touch-startup-image", media: "(device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)", href: `${path}/apple-touch-startup-image-2556x1179.png` },
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
- { rel: "apple-touch-startup-image", media: "(device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)", href: `${path}/apple-touch-startup-image-1290x2796.png` },
55
- { rel: "apple-touch-startup-image", media: "(device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)", href: `${path}/apple-touch-startup-image-2796x1290.png` },
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
- { rel: "apple-touch-startup-image", media: "(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)", href: `${path}/apple-touch-startup-image-1536x2048.png` },
58
- { rel: "apple-touch-startup-image", media: "(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)", href: `${path}/apple-touch-startup-image-2048x1536.png` },
72
+ {
73
+ width: 768,
74
+ height: 1024,
75
+ ratio: 2,
76
+ short: 1536,
77
+ long: 2048
78
+ },
59
79
  // iPad 10.2
60
- { rel: "apple-touch-startup-image", media: "(device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)", href: `${path}/apple-touch-startup-image-1620x2160.png` },
61
- { rel: "apple-touch-startup-image", media: "(device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)", href: `${path}/apple-touch-startup-image-2160x1620.png` },
80
+ {
81
+ width: 810,
82
+ height: 1080,
83
+ ratio: 2,
84
+ short: 1620,
85
+ long: 2160
86
+ },
62
87
  // iPad Air 10.5
63
- { rel: "apple-touch-startup-image", media: "(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)", href: `${path}/apple-touch-startup-image-1668x2224.png` },
64
- { rel: "apple-touch-startup-image", media: "(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)", href: `${path}/apple-touch-startup-image-2224x1668.png` },
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
- { rel: "apple-touch-startup-image", media: "(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)", href: `${path}/apple-touch-startup-image-1668x2388.png` },
67
- { rel: "apple-touch-startup-image", media: "(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)", href: `${path}/apple-touch-startup-image-2388x1668.png` },
96
+ {
97
+ width: 834,
98
+ height: 1194,
99
+ ratio: 2,
100
+ short: 1668,
101
+ long: 2388
102
+ },
68
103
  // iPad Pro 12.9
69
- { rel: "apple-touch-startup-image", media: "(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)", href: `${path}/apple-touch-startup-image-2048x2732.png` },
70
- { rel: "apple-touch-startup-image", media: "(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)", href: `${path}/apple-touch-startup-image-2732x2048.png` },
104
+ {
105
+ width: 1024,
106
+ height: 1366,
107
+ ratio: 2,
108
+ short: 2048,
109
+ long: 2732
110
+ },
71
111
  // iPad Mini 8.3
72
- { rel: "apple-touch-startup-image", media: "(device-width: 744px) and (device-height: 1133px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)", href: `${path}/apple-touch-startup-image-1488x2266.png` },
73
- { rel: "apple-touch-startup-image", media: "(device-width: 744px) and (device-height: 1133px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)", href: `${path}/apple-touch-startup-image-2266x1488.png` },
112
+ {
113
+ width: 744,
114
+ height: 1133,
115
+ ratio: 2,
116
+ short: 1488,
117
+ long: 2266
118
+ },
74
119
  // iPad Air 10.9
75
- { rel: "apple-touch-startup-image", media: "(device-width: 820px) and (device-height: 1180px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)", href: `${path}/apple-touch-startup-image-1640x2360.png` },
76
- { rel: "apple-touch-startup-image", media: "(device-width: 820px) and (device-height: 1180px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)", href: `${path}/apple-touch-startup-image-2360x1640.png` }
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,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mevbg/nuxt-kit",
3
3
  "title": "Mev’s Nuxt Kit",
4
- "version": "0.5.8",
4
+ "version": "0.5.9",
5
5
  "description": "Mev’s personal Nuxt kit module.",
6
6
  "keywords": [
7
7
  "nuxt kit",