@ludo.ninja/components 2.1.53 → 2.1.55

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.
@@ -8,7 +8,7 @@ const head_1 = __importDefault(require("next/head"));
8
8
  const env_1 = require("../../../store/env");
9
9
  // Component
10
10
  const Meta = () => {
11
- const { NEXT_PUBLIC_STATIC_DOMAIN, NEXT_PUBLIC_ENV_DOMAIN, getMediaDomain, getStaticDomain, } = (0, env_1.useEnvStore)((state) => ({
11
+ const { getMediaDomain, getStaticDomain, } = (0, env_1.useEnvStore)((state) => ({
12
12
  NEXT_PUBLIC_STATIC_DOMAIN: state.NEXT_PUBLIC_STATIC_DOMAIN,
13
13
  NEXT_PUBLIC_ENV_DOMAIN: state.NEXT_PUBLIC_ENV_DOMAIN,
14
14
  getMediaDomain: state.getMediaDomain,
@@ -17,23 +17,8 @@ const Meta = () => {
17
17
  const DEFAULT_SEO = {
18
18
  title: 'Ludo | The Reputation-Driven Discovery Engine',
19
19
  description: 'Ludo is super-cool. Share it with your friends',
20
- openGraph: {
21
- type: 'website',
22
- locale: 'en_US',
23
- url: `https://${NEXT_PUBLIC_STATIC_DOMAIN}`,
24
- title: 'Ludo - NFT server-search engine',
25
- description: 'Ludo is super-cool. Share it with your friends',
26
- image: `https://${NEXT_PUBLIC_STATIC_DOMAIN}/favicon.png`,
27
- site_name: NEXT_PUBLIC_ENV_DOMAIN,
28
- imageWidth: '512',
29
- imageHeight: '512',
30
- },
31
- twitter: {
32
- handle: '@ludo',
33
- cardType: 'summary_large_image',
34
- },
35
20
  };
36
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(head_1.default, { children: [(0, jsx_runtime_1.jsx)("title", { children: DEFAULT_SEO.title }), (0, jsx_runtime_1.jsx)("link", { rel: "preconnect", href: getMediaDomain() }), (0, jsx_runtime_1.jsx)("link", { rel: "preconnect", href: getStaticDomain() }), (0, jsx_runtime_1.jsx)("link", { rel: "dns-prefetch", href: getMediaDomain() }), (0, jsx_runtime_1.jsx)("link", { rel: "dns-prefetch", href: getStaticDomain() }), (0, jsx_runtime_1.jsx)("link", { rel: "icon", type: "image/svg+xml", href: `${getStaticDomain()}/favicon/favicon.svg`, sizes: "any" }), (0, jsx_runtime_1.jsx)("link", { rel: "icon", type: "image/x-icon", href: `${getStaticDomain()}/favicon/fav64.ico`, sizes: "any" }), (0, jsx_runtime_1.jsx)("link", { rel: "apple-touch-icon", href: `${getStaticDomain()}/favicon/favicon128.png` }), (0, jsx_runtime_1.jsx)("meta", { name: "description", content: DEFAULT_SEO.description }, "description"), (0, jsx_runtime_1.jsx)("meta", { name: "twitter:card", content: DEFAULT_SEO.twitter.cardType }, "twitter:card"), (0, jsx_runtime_1.jsx)("meta", { name: "twitter:site", content: DEFAULT_SEO.twitter.handle }, "twitter:site"), (0, jsx_runtime_1.jsx)("meta", { property: "og:url", content: DEFAULT_SEO.openGraph.url }, "og:url"), (0, jsx_runtime_1.jsx)("meta", { property: "og:type", content: DEFAULT_SEO.openGraph.type }, "og:type"), (0, jsx_runtime_1.jsx)("meta", { property: "og:title", content: DEFAULT_SEO.openGraph.title }, "og:title"), (0, jsx_runtime_1.jsx)("meta", { property: "og:description", content: DEFAULT_SEO.openGraph.description }, "og:description"), (0, jsx_runtime_1.jsx)("meta", { property: "og:image", content: DEFAULT_SEO.openGraph.image }, "og:image"), (0, jsx_runtime_1.jsx)("meta", { property: "og:image:width", content: DEFAULT_SEO.openGraph.imageWidth }, "og:image:width"), (0, jsx_runtime_1.jsx)("meta", { property: "og:image:height", content: DEFAULT_SEO.openGraph.imageHeight }, "og:image:height"), (0, jsx_runtime_1.jsx)("meta", { property: "og:locale", content: DEFAULT_SEO.openGraph.locale }, "og:locale"), (0, jsx_runtime_1.jsx)("meta", { name: "viewport", content: "width=device-width, initial-scale=1" }), (0, jsx_runtime_1.jsx)("meta", { charSet: "utf-8" }), (0, jsx_runtime_1.jsx)("meta", { name: "viewport", content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" })] }) }));
21
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(head_1.default, { children: [(0, jsx_runtime_1.jsx)("title", { children: DEFAULT_SEO.title }), (0, jsx_runtime_1.jsx)("link", { rel: "preconnect", href: getMediaDomain() }), (0, jsx_runtime_1.jsx)("link", { rel: "preconnect", href: getStaticDomain() }), (0, jsx_runtime_1.jsx)("link", { rel: "dns-prefetch", href: getMediaDomain() }), (0, jsx_runtime_1.jsx)("link", { rel: "dns-prefetch", href: getStaticDomain() }), (0, jsx_runtime_1.jsx)("link", { rel: "icon", type: "image/svg+xml", href: `${getStaticDomain()}/favicon/favicon.svg`, sizes: "any" }), (0, jsx_runtime_1.jsx)("link", { rel: "icon", type: "image/x-icon", href: `${getStaticDomain()}/favicon/fav64.ico`, sizes: "any" }), (0, jsx_runtime_1.jsx)("link", { rel: "apple-touch-icon", href: `${getStaticDomain()}/favicon/favicon128.png` }), (0, jsx_runtime_1.jsx)("meta", { name: "description", content: DEFAULT_SEO.description }, "description"), (0, jsx_runtime_1.jsx)("meta", { name: "viewport", content: "width=device-width, initial-scale=1" }), (0, jsx_runtime_1.jsx)("meta", { charSet: "utf-8" }), (0, jsx_runtime_1.jsx)("meta", { name: "viewport", content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" })] }) }));
37
22
  };
38
23
  // Export
39
24
  exports.default = Meta;
@@ -38,7 +38,7 @@ const useVerification = () => {
38
38
  authCookiesParsed.refreshToken &&
39
39
  authCookiesParsed.newUser &&
40
40
  authCookiesParsed.userId &&
41
- authCookiesParsed.inviteCode &&
41
+ // authCookiesParsed.inviteCode &&
42
42
  authCookiesParsed.role) {
43
43
  signIn({
44
44
  userId: authCookiesParsed.userId,
@@ -46,7 +46,7 @@ const useVerification = () => {
46
46
  authToken: authCookiesParsed.authToken,
47
47
  refreshToken: authCookiesParsed.refreshToken,
48
48
  newUser: authCookiesParsed.newUser === "true",
49
- inviteCode: authCookiesParsed.inviteCode,
49
+ inviteCode: authCookiesParsed.inviteCode || null,
50
50
  role: authCookiesParsed.role,
51
51
  });
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/components",
3
- "version": "2.1.53",
3
+ "version": "2.1.55",
4
4
  "private": false,
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",