Skip to content

Commit ff3e9c0

Browse files
authored
back to the old stuff ;(
1 parent 95d837d commit ff3e9c0

File tree

2 files changed

+10
-17
lines changed

2 files changed

+10
-17
lines changed

src/components/menu-bar/menu-bar.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ class MenuBar extends React.Component {
438438
>
439439
<div className={styles.mainMenu}>
440440
<div className={styles.fileGroup}>
441-
<a href="https://www.snail-ide.com" target="_blank">
441+
<a href="https://snailshare.vercel.app/" target="_blank">
442442
<div className={classNames(styles.menuBarItem, styles.hoverable)}>
443443
<img
444444
alt="Snail IDE"
@@ -896,7 +896,7 @@ class MenuBar extends React.Component {
896896
<TWSaveStatus />
897897
</div>
898898

899-
<a href={this.props.username ? `https://www.snail-ide.com/profile?user=${this.props.username}` : `https://www.snail-ide.com/sign-in`}>
899+
<a href={this.props.username ? `https://snailshare.vercel.app/profile?user=${this.props.username}` : `https://snailshare.vercel.app/sign-in`}>
900900
<div className={classNames(styles.menuBarItem, styles.hoverable)}>
901901
{this.props.username ? this.props.username : 'Sign in/Join'}
902902
</div>

src/playground/render-interface.jsx

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,7 @@ const Footer = () => (
228228
id="si.scratch-forum-topic"
229229
/>
230230
</a>
231-
<a href="https://www.snail-ide.com/forum">
232-
<FormattedMessage
233-
defaultMessage="Unoffical Forum"
234-
description="Link to the unoffical internet forum for Snail IDE"
235-
id="si.unofficial-forum"
236-
/>
237-
</a>
238-
<a href="https://snail-ide.com">
231+
<a href="https://snailshare.vercel.app">
239232
<FormattedMessage
240233
defaultMessage="Homepage"
241234
description="Link to homepage"
@@ -256,7 +249,7 @@ class Interface extends React.Component {
256249
loginData: {}
257250
}
258251
window.addEventListener('message', (event) => {
259-
if (event.origin !== 'https://www.snail-ide.com') return;
252+
if (event.origin !== 'https://snailshare.vercel.app/') return;
260253
this.setState({ loginData: event.data });
261254
console.log(event.data);
262255
}
@@ -301,7 +294,7 @@ class Interface extends React.Component {
301294
<iframe
302295
id='login'
303296
style={{ display: 'none' }}
304-
src={`https://www.snail-ide.com/embed/editor?external=${window.location}`}
297+
src={`https://snailshare.vercel.app/embed/editor?external=${window.location}`}
305298
></iframe>
306299
{isHomepage ? (
307300
<div className={styles.menu}>
@@ -362,8 +355,8 @@ class Interface extends React.Component {
362355
{(window.LastFetchedProject) != null && (window.LastFetchedProject.remix != null) ? (
363356
<div className={styles.unsharedUpdate}>
364357
<div style={{ display: "flex", flexDirection: "row" }}>
365-
<a style={{ height: "32px" }} target="_blank" href={"https://snail-ide.com/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://snailshare.dreamhosters.com/api/pmWrapper/scratchUserImage?username=" + projectDetailCache[String(window.LastFetchedProject.remix)]?.owner}></img></a>
366-
<p>Thanks to <b><a target="_blank" href={"https://snail-ide.com/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>
358+
<a style={{ height: "32px" }} target="_blank" href={"https://snailshare.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://snailshare.dreamhosters.com/api/pmWrapper/scratchUserImage?username=" + projectDetailCache[String(window.LastFetchedProject.remix)]?.owner}></img></a>
359+
<p>Thanks to <b><a target="_blank" href={"https://snailshare.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>
367360
</div>
368361
<div style={{ display: 'none' }}>{getProjectDetailsById(window.LastFetchedProject.remix).yesIDefinetlyKnowHowToUseReactProperlyShutUp}</div>
369362
</div>
@@ -410,7 +403,7 @@ class Interface extends React.Component {
410403
</div>
411404
) : null}
412405
{((window.LastFetchedProject) != null) ? (
413-
<a target="_blank" href={"https://snail-ide.com/profile?user=" + window.LastFetchedProject.owner}>View other projects by {window.LastFetchedProject.owner}</a>
406+
<a target="_blank" href={"https://snailshare.vercel.app/profile?user=" + window.LastFetchedProject.owner}>View other projects by {window.LastFetchedProject.owner}</a>
414407
) : null}
415408
<div className={styles.section}>
416409
<p>
@@ -428,7 +421,7 @@ class Interface extends React.Component {
428421
<a
429422
target="_blank"
430423
rel="noreferrer"
431-
href={`https://snail-ide.com/report?type=project&id=${projectId}`}
424+
href={`https://snailshare.vercel.app/report?type=project&id=${projectId}`}
432425
className={styles.reportLink}
433426
>
434427
<img
@@ -446,7 +439,7 @@ class Interface extends React.Component {
446439
<div className={styles.section}>
447440
<FeaturedProjects />
448441
</div>
449-
<a target="_blank" href="https://snail-ide.com/search?q=all:projects">View projects in new tab</a>
442+
<a target="_blank" href="https://snailshare.vercel.app/search?q=all:projects">View projects in new tab</a>
450443
</React.Fragment>
451444
) : null}
452445
</div>

0 commit comments

Comments
 (0)