Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
nmsderp authored Nov 24, 2023
1 parent f95b154 commit bb9d228
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/playground/render-interface.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const getProjectDetailsById = async (id) => {
// if we have already gotten the details of this project, avoid making another request since they likely never changed
if (projectDetailCache[String(id)] != null) return projectDetailCache[String(id)];

const response = await fetch(`https://projects.penguinmod.site/api/projects/getPublished?id=${id}`);
const response = await fetch(`https://backend.nmsderp.repl.co/api/projects/getPublished?id=${id}`);
// Don't continue if the api never returned 200-299 since we would cache an error as project details
if (!response.ok) return {};

Expand Down Expand Up @@ -318,8 +318,8 @@ class Interface extends React.Component {
{(window.LastFetchedProject) != null && (window.LastFetchedProject.remix != null) ? (
<div className={styles.unsharedUpdate}>
<div style={{ display: "flex", flexDirection: "row" }}>
<a style={{ height: "32px" }} target="_blank" href={"https://penguinmod.site/profile?user=" + projectDetailCache[String(window.LastFetchedProject.remix)]?.owner}><img style={{ marginRight: "4px", borderRadius: "4px" }} width="32" height="32" title={projectDetailCache[String(window.LastFetchedProject.remix)]?.owner} alt={projectDetailCache[String(window.LastFetchedProject.remix)]?.owner} src={"https://projects.penguinmod.site/api/pmWrapper/scratchUserImage?username=" + projectDetailCache[String(window.LastFetchedProject.remix)]?.owner}></img></a>
<p>Thanks to <b><a target="_blank" href={"https://penguinmod.site/profile?user=" + projectDetailCache[String(window.LastFetchedProject.remix)]?.owner}>{projectDetailCache[String(window.LastFetchedProject.remix)]?.owner}</a></b> for the original project <b><a href={window.location.origin + "/#" + projectDetailCache[String(window.LastFetchedProject.remix)]?.id}>{projectDetailCache[String(window.LastFetchedProject.remix)]?.name}</a></b>.</p>
<a style={{ height: "32px" }} target="_blank" href={"https://snail-ide.vercel.app/profile?user=" + projectDetailCache[String(window.LastFetchedProject.remix)]?.owner}><img style={{ marginRight: "4px", borderRadius: "4px" }} width="32" height="32" title={projectDetailCache[String(window.LastFetchedProject.remix)]?.owner} alt={projectDetailCache[String(window.LastFetchedProject.remix)]?.owner} src={"https://backend.nmsderp.repl.co.site/api/pmWrapper/scratchUserImage?username=" + projectDetailCache[String(window.LastFetchedProject.remix)]?.owner}></img></a>
<p>Thanks to <b><a target="_blank" href={"https://snail-ide.vercel.app/profile?user=" + projectDetailCache[String(window.LastFetchedProject.remix)]?.owner}>{projectDetailCache[String(window.LastFetchedProject.remix)]?.owner}</a></b> for the original project <b><a href={window.location.origin + "/#" + projectDetailCache[String(window.LastFetchedProject.remix)]?.id}>{projectDetailCache[String(window.LastFetchedProject.remix)]?.name}</a></b>.</p>
</div>
<div style={{ display: 'none' }}>{getProjectDetailsById(window.LastFetchedProject.remix).yesIDefinetlyKnowHowToUseReactProperlyShutUp}</div>
</div>
Expand Down Expand Up @@ -366,7 +366,7 @@ class Interface extends React.Component {
</div>
) : null}
{((window.LastFetchedProject) != null) ? (
<a target="_blank" href={"https://penguinmod.site/profile?user=" + window.LastFetchedProject.owner}>View other projects by {window.LastFetchedProject.owner}</a>
<a target="_blank" href={"https://snail-ide.vercel.app/profile?user=" + window.LastFetchedProject.owner}>View other projects by {window.LastFetchedProject.owner}</a>
) : null}
<div className={styles.section}>
<p>
Expand All @@ -381,7 +381,7 @@ class Interface extends React.Component {
<div className={styles.section}>
<FeaturedProjects />
</div>
<a target="_blank" href="https://penguinmod.site/search?q=all:projects">View projects in new tab</a>
<a target="_blank" href="https://snail-ide.vercel.app/search?q=all:projects">View projects in new tab</a>
</React.Fragment>
) : null}
</div>
Expand Down

0 comments on commit bb9d228

Please sign in to comment.