Skip to content

Commit

Permalink
fix near accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed May 28, 2024
1 parent eee6060 commit 91f1097
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion widget/Library/Broadcast.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const PreviewContent = styled.div`

const WidgetCode = `
\`\`\`js
<Widget src={"efiz.near/widget/Broadcast.Player"} />
<Widget src={"${config_account}/widget/Broadcast.Player"} />
\`\`\`
`;

Expand Down
2 changes: 1 addition & 1 deletion widget/Library/BroadcastApiKey.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const PreviewContent = styled.div`
const WidgetCode = `
\`\`\`js
<Widget
src={"efiz.near/widget/Broadcast.ApiKey"}
src={"${config_account}/widget/Broadcast.ApiKey"}
props={{
automated: true,
apiKey: "8b3bdqjtdj4jsjwa",
Expand Down
4 changes: 2 additions & 2 deletions widget/Library/Creator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const WidgetCode = `
</Files>
<Widget
src={"efiz.near/widget/Livepeer.Creator"}
src={"${config_account}/widget/Livepeer.Creator"}
props={{
video: state.currentUpload,
metadata: { title, description },
Expand Down Expand Up @@ -144,7 +144,7 @@ return (
Stage Video
</Files>
<Widget
src={"efiz.near/widget/Livepeer.Creator"}
src={"${config_account}/widget/Livepeer.Creator"}
props={{
video: state.currentUpload,
metadata: { title, description },
Expand Down
2 changes: 1 addition & 1 deletion widget/Library/DirectUploadAsset.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const PreviewContent = styled.div`

const WidgetCode = `
\`\`\`js
<Widget src={"efiz.near/widget/Player.DirectUploadAsset"} />
<Widget src={"${config_account}/widget/Player.DirectUploadAsset"} />
\`\`\`
`;

Expand Down
2 changes: 1 addition & 1 deletion widget/Library/FileUploader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const PreviewContent = styled.div`

const WidgetCode = `
\`\`\`js
<Widget src={"efiz.near/widget/Player.FileUploader"} />
<Widget src={"${config_account}/widget/Player.FileUploader"} />
\`\`\`
`;

Expand Down
2 changes: 1 addition & 1 deletion widget/Library/GenerateStream.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const PreviewContent = styled.div`
const WidgetCode = `
\`\`\`js
<Widget
src={"efiz.near/widget/Livepeer.Player"}
src={"${config_account}/widget/Livepeer.Player"}
props={{
title: "Original Keyboard Cat!",
playbackId: "8b3bdqjtdj4jsjwa",
Expand Down
2 changes: 1 addition & 1 deletion widget/Library/GetAssets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const PreviewContent = styled.div`

const WidgetCode = `
\`\`\`js
<Widget src={"efiz.near/widget/Player.GetAssets"} />
<Widget src={"${config_account}/widget/Player.GetAssets"} />
\`\`\`
`;

Expand Down
2 changes: 1 addition & 1 deletion widget/Library/GetSrc.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const PreviewContent = styled.div`

const WidgetCode = `
\`\`\`js
<Widget src={"efiz.near/widget/Player.GetSrc"} />
<Widget src={"${config_account}/widget/Player.GetSrc"} />
\`\`\`
`;
const DescriptionContent = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion widget/Library/GetUploadUrl.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const PreviewContent = styled.div`

const WidgetCode = `
\`\`\`js
<Widget src={"efiz.near/widget/Player.GetUploadUrl"} />
<Widget src={"${config_account}/widget/Player.GetUploadUrl"} />
\`\`\`
`;

Expand Down
2 changes: 1 addition & 1 deletion widget/Library/Player.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const PreviewContent = styled.div`
const WidgetCode = `
\`\`\`js
<Widget
src={"efiz.near/widget/Player.Player"}
src={"${config_account}/widget/Player.Player"}
props={{
title: "Original Keyboard Cat!",
playbackId: "8b3bdqjtdj4jsjwa",
Expand Down
2 changes: 1 addition & 1 deletion widget/Library/PlayerApiKey.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const PreviewContent = styled.div`
const WidgetCode = `
\`\`\`js
<Widget
src={"efiz.near/widget/Player.ApiKey"}
src={"${config_account}/widget/Player.ApiKey"}
props={{
automated: true,
apiKey: "8b3bdqjtdj4jsjwa",
Expand Down
2 changes: 1 addition & 1 deletion widget/Library/ResumableUploadAsset.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const PreviewContent = styled.div`

const WidgetCode = `
\`\`\`js
<Widget src={"efiz.near/widget/Player.ResumableUploadAsset"} />
<Widget src={"${config_account}/widget/Player.ResumableUploadAsset"} />
\`\`\`
`;

Expand Down
2 changes: 1 addition & 1 deletion widget/Library/WatchStream.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const PreviewContent = styled.div`

const WidgetCode = `
\`\`\`js
<Widget src={"efiz.near/widget/Broadcast.WatchStream"} />
<Widget src={"${config_account}/widget/Broadcast.WatchStream"} />
\`\`\`
`;

Expand Down
18 changes: 9 additions & 9 deletions widget/SocialPost/Post.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const item = {
const link =
props.link ??
props.fullPostLink ??
`/mob.near/widget/MainPage.N.Post.Page?accountId=${accountId}&blockHeight=${blockHeight}`;
`/${alias_mob}/widget/MainPage.N.Post.Page?accountId=${accountId}&blockHeight=${blockHeight}`;

const Wrapper = styled.div`
margin: 0 -12px;
Expand Down Expand Up @@ -167,7 +167,7 @@ const contentWidget = (
style={{ minHeight: "100px" }}
/>
}
src="mob.near/widget/MainPage.N.Post.Content"
src="${alias_mob}/widget/MainPage.N.Post.Content"
props={{
content,
raw,
Expand All @@ -191,7 +191,7 @@ return (
<div className="left">
<Widget
loading=""
src="mob.near/widget/MainPage.N.Post.Left"
src="${alias_mob}/widget/MainPage.N.Post.Left"
props={{ accountId, groupId }}
/>
</div>
Expand Down Expand Up @@ -227,15 +227,15 @@ return (
<div className="buttons d-flex justify-content-between">
<Widget
loading=""
src="mob.near/widget/N.CommentButton"
src="${alias_mob}/widget/N.CommentButton"
props={{
disabled: permissions.disableComment,
onClick: () => State.update({ showReply: !state.showReply }),
}}
/>
<Widget
loading=""
src="mob.near/widget/N.RepostButton"
src="${alias_mob}/widget/N.RepostButton"
props={{
disable: permissions.disableRepost,
notifyAccountId,
Expand All @@ -246,15 +246,15 @@ return (
/>
<Widget
loading=""
src="mob.near/widget/N.LikeButton"
src="${alias_mob}/widget/N.LikeButton"
props={{
notifyAccountId,
item,
}}
/>
<Widget
loading=""
src="mob.near/widget/MainPage.N.Post.ShareButton"
src="${alias_mob}/widget/MainPage.N.Post.ShareButton"
props={{ accountId, blockHeight, postType: "post", groupId }}
/>
</div>
Expand All @@ -267,7 +267,7 @@ return (
<div className="border-top">
<Widget
loading=""
src="mob.near/widget/MainPage.N.Comment.Compose"
src="${alias_mob}/widget/MainPage.N.Comment.Compose"
props={{
notifyAccountId,
item,
Expand All @@ -282,7 +282,7 @@ return (
<Widget
key="comments"
loading={false}
src="mob.near/widget/MainPage.N.Comment.Feed"
src="${alias_mob}/widget/MainPage.N.Comment.Feed"
props={{
item,
highlightComment: props.highlightComment,
Expand Down
10 changes: 5 additions & 5 deletions widget/SocialPost/PostHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const isPremium = !!props.isPremium;

const Overlay = (props) => (
<Widget
src="mob.near/widget/Profile.N.OverlayTrigger"
src="${alias_mob}/widget/Profile.N.OverlayTrigger"
loading={props.children}
props={{
accountId,
Expand Down Expand Up @@ -84,7 +84,7 @@ return (
<div className="flex-shrink-0">
<Widget
loading={""}
src="mob.near/widget/Checkmark"
src="${alias_mob}/widget/Checkmark"
props={{ isPremium, accountId }}
/>
</div>
Expand All @@ -108,7 +108,7 @@ return (
<a className="text-truncate fw-bold" href={link}>
<Widget
loading=""
src="mob.near/widget/TimeAgo"
src="${alias_mob}/widget/TimeAgo"
props={{ blockHeight }}
/>
</a>
Expand Down Expand Up @@ -139,14 +139,14 @@ return (
</li>
<li>
<Widget
src="mob.near/widget/MainPage.Common.HideAccount"
src="${alias_mob}/widget/MainPage.Common.HideAccount"
props={{ accountId }}
/>
</li>
{props.flagItem && (
<li>
<Widget
src="mob.near/widget/MainPage.Common.FlagContent"
src="${alias_mob}/widget/MainPage.Common.FlagContent"
props={{
item: props.flagItem,
label: `Flag ${postType} for moderation`,
Expand Down
8 changes: 4 additions & 4 deletions widget/page/sandbox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ return (
<div className="col">
<div>
<h1>Player</h1>
<Widget src="trylivepeer.near/widget/Player" props={playerData} />
<Widget src="${config_account}/widget/Player" props={playerData} />
</div>
</div>
<div className="col">
<div>
<h1>Broadcast</h1>
<Widget
src="trylivepeer.near/widget/GenerateStream"
src="${config_account}/widget/GenerateStream"
props={broadcastData}
/>
<Widget
src="trylivepeer.near/widget/Broadcast"
src="${config_account}/widget/Broadcast"
props={broadcastData}
/>
</div>
</div>
</div>
<Widget src="trylivepeer.near/widget/Library" />
<Widget src="${config_account}/widget/Library" />
</>
);

0 comments on commit 91f1097

Please sign in to comment.