@@ -37,11 +35,11 @@ if (plugin) {
...(installedEmbeds || []),
{
widgetSrc: plugin.widgetSrc,
- embedSrc: plugin.embedSrc,
- },
- ],
- },
- },
+ embedSrc: plugin.embedSrc
+ }
+ ]
+ }
+ }
})
}
>
@@ -53,8 +51,8 @@ if (plugin) {
notifyAccountId: accountId,
item: {
type: "social",
- path: `${accountId}/${type}/${name}`,
- },
+ path: `${accountId}/${type}/${name}`
+ }
}}
/>
@@ -94,7 +92,7 @@ return (
display: "flex",
flexDirection: "column",
justifyContent: "space-between",
- overflow: "hidden",
+ overflow: "hidden"
}}
>
@@ -145,11 +143,11 @@ return (
...(installedEmbeds || []),
{
widgetSrc: data.widgetSrc,
- embedSrc: data.embedSrc,
- },
- ],
- },
- },
+ embedSrc: data.embedSrc
+ }
+ ]
+ }
+ }
})
}
>
@@ -161,8 +159,8 @@ return (
notifyAccountId: accountId,
item: {
type: "social",
- path: `${accountId}/${type}/${name}`,
- },
+ path: `${accountId}/${type}/${name}`
+ }
}}
/>
diff --git a/apps/embeds/widget/Post/Index.jsx b/apps/embeds/widget/Post/Index.jsx
index 8168a0e1..fbf75ac4 100644
--- a/apps/embeds/widget/Post/Index.jsx
+++ b/apps/embeds/widget/Post/Index.jsx
@@ -21,7 +21,7 @@ const notifyAccountId = accountId;
const item = {
type: "social",
path: `${accountId}/post/main`,
- blockHeight,
+ blockHeight
};
const link =
@@ -172,7 +172,7 @@ const contentWidget = (
content,
raw,
truncateContent: props.truncateContent,
- noEmbed: props.noEmbed,
+ noEmbed: props.noEmbed
}}
/>
);
@@ -183,7 +183,7 @@ return (
props.hideComments || props.noBorder
? undefined
: {
- borderBottom: "1px solid #eee",
+ borderBottom: "1px solid #eee"
}
}
>
@@ -206,7 +206,7 @@ return (
hideMenu,
link,
postType: "post",
- flagItem: item,
+ flagItem: item
}}
/>
{fullPostLink ? (
@@ -230,7 +230,7 @@ return (
src="mob.near/widget/N.CommentButton"
props={{
disabled: permissions.disableComment,
- onClick: () => State.update({ showReply: !state.showReply }),
+ onClick: () => State.update({ showReply: !state.showReply })
}}
/>
State.update({ showReply: false }),
+ onComment: () => State.update({ showReply: false })
}}
/>
@@ -291,7 +291,7 @@ return (
raw,
accounts: props.commentAccounts,
groupId,
- permissions,
+ permissions
}}
/>
)}
diff --git a/functions/sitemap/posts/[index].js b/functions/sitemap/posts/[index].js
index cb926e01..34b24415 100644
--- a/functions/sitemap/posts/[index].js
+++ b/functions/sitemap/posts/[index].js
@@ -11,7 +11,7 @@ export const generateSitemapPosts = async (env, offset) => {
monthly
`
);
- console.log("urls count", urls.length);
+
return urls.slice(offset, offset + Limit).join("\n");
};
@@ -30,8 +30,8 @@ ${await generateSitemapPosts(env, offset)}
`,
{
headers: {
- "content-type": "application/xml;charset=UTF-8",
- },
+ "content-type": "application/xml;charset=UTF-8"
+ }
}
);
}
diff --git a/functions/sitemap/sources/[index].js b/functions/sitemap/sources/[index].js
index 01f6d436..36211ba6 100644
--- a/functions/sitemap/sources/[index].js
+++ b/functions/sitemap/sources/[index].js
@@ -5,7 +5,7 @@ const LIMIT = 50000;
export const generateSitemapSources = async (env, offset) => {
const data = await socialKeys("*/widget/*", null, {
- return_type: "History",
+ return_type: "History"
});
const urls = Object.entries(data)
.map(([accountId, widget]) =>
@@ -24,7 +24,6 @@ export const generateSitemapSources = async (env, offset) => {
.flat()
)
.flat();
- console.log("urls count", urls.length);
return urls.slice(offset, offset + LIMIT).join("\n");
};
@@ -43,8 +42,8 @@ ${await generateSitemapSources(env, offset)}
`,
{
headers: {
- "content-type": "application/xml;charset=UTF-8",
- },
+ "content-type": "application/xml;charset=UTF-8"
+ }
}
);
}
diff --git a/src/App.js b/src/App.js
index 2daff8c9..d8f2f6ec 100644
--- a/src/App.js
+++ b/src/App.js
@@ -20,7 +20,7 @@ import {
useAccount,
useInitNear,
useNear,
- utils,
+ utils
} from "near-social-vm";
import React, { useCallback, useEffect, useState } from "react";
import "react-bootstrap-typeahead/css/Typeahead.bs5.css";
@@ -77,7 +77,7 @@ function App() {
setupMeteorWallet(),
setupNeth({
gas: "300000000000000",
- bundle: false,
+ bundle: false
}),
setupNightly(),
setupKeypom({
@@ -95,10 +95,10 @@ function App() {
url:
NetworkId == "testnet"
? "https://test.nearbuilders.org/#instant-url/ACCOUNT_ID/SECRET_KEY/MODULE_ID"
- : "https://nearbuilders.org/#instant-url/ACCOUNT_ID/SECRET_KEY/MODULE_ID",
- },
- }),
- ],
+ : "https://nearbuilders.org/#instant-url/ACCOUNT_ID/SECRET_KEY/MODULE_ID"
+ }
+ })
+ ]
}),
customElements: {
Link: (props) => {
@@ -114,11 +114,11 @@ function App() {
: "about:blank";
}
return ;
- },
+ }
},
config: {
- defaultFinality: undefined,
- },
+ defaultFinality: undefined
+ }
});
}, [initNear]);
@@ -190,7 +190,7 @@ function App() {
logOut,
requestSignIn,
widgets: Widgets,
- documentationHref,
+ documentationHref
};
return (
diff --git a/src/components/OnboardingFlow.js b/src/components/OnboardingFlow.js
new file mode 100644
index 00000000..98bd601d
--- /dev/null
+++ b/src/components/OnboardingFlow.js
@@ -0,0 +1,18 @@
+import React from "react";
+import { Widget } from "near-social-vm";
+import { useBosLoaderStore } from "../stores/bos-loader";
+
+export default function OnboardingFlow() {
+ const redirectMapStore = useBosLoaderStore();
+
+ return (
+
+
+
+ );
+}
diff --git a/src/components/navigation/UserDropdown.js b/src/components/navigation/UserDropdown.js
index 700c8a92..a5de78d1 100644
--- a/src/components/navigation/UserDropdown.js
+++ b/src/components/navigation/UserDropdown.js
@@ -120,7 +120,7 @@ export function UserDropdown(props) {
props={{
accountId: account.accountId,
className: "d-inline-block",
- style: { width: "40px", height: "40px" },
+ style: { width: "40px", height: "40px" }
}}
/>
diff --git a/src/pages/Viewer.js b/src/pages/Viewer.js
index 600b2c2e..de1c3754 100644
--- a/src/pages/Viewer.js
+++ b/src/pages/Viewer.js
@@ -1,6 +1,7 @@
import { Widget } from "near-social-vm";
import React, { useEffect, useMemo, useState } from "react";
import { useLocation, useParams } from "react-router-dom";
+import OnboardingFlow from "../components/OnboardingFlow";
const SESSION_STORAGE_REDIRECT_MAP_KEY = "nearSocialVMredirectMap";
@@ -59,16 +60,19 @@ function Viewer({ code, ...props }) {
);
return (
-
+ <>
+
+
+ >
);
}