Skip to content

Commit bfff2d6

Browse files
authored
commit
1 parent 98b8d37 commit bfff2d6

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const getProjectUri = () => new Promise(resolve => {
2828
const isUploadAvailable = async () => {
2929
let res = null;
3030
try {
31-
res = await fetch('http://localhost:8080/api/v1/projects/canuploadprojects').then(res => res.json());
31+
res = await fetch('https://projects.penguinmod.com/api/v1/projects/canuploadprojects').then(res => res.json());
3232
} catch {
3333
// failed to fetch entirely
3434
return false;
@@ -60,7 +60,7 @@ class ShareButton extends React.Component {
6060
this.handleMessageEvent(e);
6161
}
6262
async handleMessageEvent(e) {
63-
if (!e.origin.startsWith(`http://localhost:5173`)) {
63+
if (!e.origin.startsWith(`https://penguinmod-home-git-new-backend-live-penguinmod.vercel.app/`)) {
6464
return;
6565
}
6666

@@ -148,7 +148,7 @@ class ShareButton extends React.Component {
148148
}
149149

150150
const url = location.origin;
151-
window.open(`http://localhost:5173/${targetPage}?name=${this.props.projectTitle}${editPiece}${remixPiece}&external=${url}`, '_blank');
151+
window.open(`https://penguinmod-home-git-new-backend-live-penguinmod.vercel.app//${targetPage}?name=${this.props.projectTitle}${editPiece}${remixPiece}&external=${url}`, '_blank');
152152
});
153153
}
154154
render() {

src/components/tw-studioview/studioview.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,11 @@ StudioView.prototype.onselect = function (id, el) { };
299299
StudioView.prototype.onpageload = function () { };
300300
StudioView.prototype.onend = function () { };
301301

302-
StudioView.STUDIO_API = 'http://localhost:8080/api/v1';
302+
StudioView.STUDIO_API = 'https://projects.penguinmod.com/api/v1';
303303

304304
// The URL to download thumbnails from.
305305
// $id is replaced with the project's ID.
306-
StudioView.THUMBNAIL_SRC = 'http://localhost:8080/api/v1/projects/getproject?projectID=$id&requestType=thumbnail';
306+
StudioView.THUMBNAIL_SRC = 'https://projects.penguinmod.com/api/v1/projects/getproject?projectID=$id&requestType=thumbnail';
307307

308308
// The URL for project pages.
309309
// $id is replaced with the project ID.

src/containers/home-communication.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {connect} from 'react-redux';
55
import {setUsername, setUsernameInvalid, setUsernameLoggedIn} from '../reducers/tw';
66

77
let origin = "https://penguinmod.com";
8-
// origin = 'http://localhost:5173';
8+
// origin = 'https://penguinmod-home-git-new-backend-live-penguinmod.vercel.app/';
99

1010
class HomeCommunication extends React.Component {
1111
constructor (props) {

src/containers/tw-security-manager.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const isTrustedExtension = url => (
3434
url.startsWith('http://localhost:8000') ||
3535
url.startsWith('http://localhost:6000') || // Launcher Home
3636
url.startsWith('http://localhost:6001') || // Launcher Extensions
37-
url.startsWith('http://localhost:5173') || // Local Home or Extensions
37+
url.startsWith('https://penguinmod-home-git-new-backend-live-penguinmod.vercel.app/') || // Local Home or Extensions
3838
url.startsWith('http://localhost:5174') || // Local Home or Extensions
3939

4040
extensionsTrustedByUser.has(url)

src/lib/project-fetcher-hoc.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const fetchProjectToken = projectId => {
4545
if (hashParams.has('token')) {
4646
return Promise.resolve(hashParams.get('token'));
4747
}
48-
return fetch(`http://localhost:8080/api/v1/projects/getproject?projectID=${projectId}&requestType=metadata`)
48+
return fetch(`https://projects.penguinmod.com/api/v1/projects/getproject?projectID=${projectId}&requestType=metadata`)
4949
.then(r => {
5050
if (!r.ok) return null;
5151
return r.json();
@@ -285,7 +285,7 @@ const ProjectFetcherHOC = function (WrappedComponent) {
285285
storage.setProjectToken(projectId);
286286
assetPromise = storage.load(storage.AssetType.Project, projectId, storage.DataFormat.JSON);
287287
} else {
288-
projectUrl = `http://localhost:8080/api/v1/projects/getprojectwrapper?safe=true&projectId=${projectId}`
288+
projectUrl = `https://projects.penguinmod.com/api/v1/projects/getprojectwrapper?safe=true&projectId=${projectId}`
289289
// TODO: convert the protobuf to a pmp. Get the pbf file from the server to do this.
290290
assetPromise = progressMonitor.fetchWithProgress(projectUrl)
291291
.then(async r => {

src/lib/tw-project-meta-fetcher-hoc.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import log from './log';
66
import { setProjectTitle } from '../reducers/project-title';
77
import { setAuthor, setDescription, setExtraProjectInfo, setRemixedProjectInfo } from '../reducers/tw';
88

9-
const API_URL = 'http://localhost:8080/api/v1/projects/getproject?projectID=$id&requestType=metadata';
10-
const API_REMIX_URL = 'http://localhost:8080/api/v1/projects/getremixes?projectId=$id';
9+
const API_URL = 'https://projects.penguinmod.com/api/v1/projects/getproject?projectID=$id&requestType=metadata';
10+
const API_REMIX_URL = 'https://projects.penguinmod.com/api/v1/projects/getremixes?projectId=$id';
1111

1212
function APIProjectToReadableProject(apiProject) {
1313
return {

src/playground/render-interface.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ class Interface extends React.Component {
280280
}
281281
copyProjectLink (id) {
282282
if ('clipboard' in navigator && 'writeText' in navigator.clipboard) {
283-
navigator.clipboard.writeText(`http://localhost:8080/${id}`);
283+
navigator.clipboard.writeText(`https://projects.penguinmod.com/${id}`);
284284
}
285285
}
286286
render () {
@@ -348,7 +348,7 @@ class Interface extends React.Component {
348348
className={styles.projectAuthorImage}
349349
title={extraProjectInfo.author}
350350
alt={extraProjectInfo.author}
351-
src={`http://localhost:8080/api/v1/users/getpfp?username=${extraProjectInfo.author}`}
351+
src={`https://projects.penguinmod.com/api/v1/users/getpfp?username=${extraProjectInfo.author}`}
352352
/>
353353
</a>
354354
<div className={styles.projectMetadata}>
@@ -394,7 +394,7 @@ class Interface extends React.Component {
394394
className={styles.remixAuthorImage}
395395
title={remixedProjectInfo.author}
396396
alt={remixedProjectInfo.author}
397-
src={`http://localhost:8080/api/v1/users/getpfp?username=${remixedProjectInfo.author}`}
397+
src={`https://projects.penguinmod.com/api/v1/users/getpfp?username=${remixedProjectInfo.author}`}
398398
/>
399399
</a>
400400
<p>

src/playground/vote-frame.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const VoteFrame = props => (
77
style={props.id != '0' ? {} : { display: 'none' }}
88
src={
99
props.id != '0'
10-
? `http://localhost:5173/embed/vote?id=${props.id}#dark=${props.darkmode}`
10+
? `https://penguinmod-home-git-new-backend-live-penguinmod.vercel.app//embed/vote?id=${props.id}#dark=${props.darkmode}`
1111
: 'about:blank'
1212
}
1313
></iframe>

0 commit comments

Comments
 (0)