Skip to content

Commit

Permalink
change to .com when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyGamer13 committed Oct 16, 2023
1 parent eb51730 commit f2be573
Show file tree
Hide file tree
Showing 20 changed files with 193 additions and 190 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
deploy:
environment:
name: github-pages
url: 'https://penguinmod.site/project'
url: 'https://penguinmod.com/project'
runs-on: ubuntu-latest
needs: build
steps:
Expand Down
2 changes: 1 addition & 1 deletion src/addons/addons/block-switching/_manifest_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const manifest = {
},
{
"name": "JeremyGamer13",
"link": "https://penguinmod.site/profile?user=JGamerTesting"
"link": "https://penguinmod.com/profile?user=JGamerTesting"
}
],
"dynamicDisable": true,
Expand Down
2 changes: 1 addition & 1 deletion src/components/menu-bar/author-info.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ActualAuthorInfo = ({
</h1>
<div>
<span className={styles.usernameLine}>
<a style={{ color: "white" }} target="_blank" href={"https://penguinmod.site/profile?user=" + username}>
<a style={{ color: "white" }} target="_blank" href={"https://penguinmod.com/profile?user=" + username}>
<FormattedMessage
defaultMessage="by {username}"
description="Shows that a project was created by this user"
Expand Down
126 changes: 63 additions & 63 deletions src/components/menu-bar/menu-bar.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import classNames from 'classnames';
import {connect} from 'react-redux';
import {compose} from 'redux';
import {defineMessages, FormattedMessage, injectIntl, intlShape} from 'react-intl';
import { connect } from 'react-redux';
import { compose } from 'redux';
import { defineMessages, FormattedMessage, injectIntl, intlShape } from 'react-intl';
import PropTypes from 'prop-types';
import bindAll from 'lodash.bindall';
import bowser from 'bowser';
Expand All @@ -13,12 +13,12 @@ import Box from '../box/box.jsx';
import Button from '../button/button.jsx';
import CommunityButton from './community-button.jsx';
import ShareButton from './share-button.jsx';
import {ComingSoonTooltip} from '../coming-soon/coming-soon.jsx';
import { ComingSoonTooltip } from '../coming-soon/coming-soon.jsx';
import Divider from '../divider/divider.jsx';
import LanguageSelector from '../../containers/language-selector.jsx';
import ProjectWatcher from '../../containers/project-watcher.jsx';
import MenuBarMenu from './menu-bar-menu.jsx';
import {MenuItem, MenuSection} from '../menu/menu.jsx';
import { MenuItem, MenuSection } from '../menu/menu.jsx';
import ProjectTitleInput from './project-title-input.jsx';
import AuthorInfo from './author-info.jsx';
import SB3Downloader from '../../containers/sb3-downloader.jsx';
Expand All @@ -31,8 +31,8 @@ import ChangeUsername from '../../containers/tw-change-username.jsx';
import CloudVariablesToggler from '../../containers/tw-cloud-toggler.jsx';
import TWSaveStatus from './tw-save-status.jsx';

import {openTipsLibrary, openSettingsModal, openRestorePointModal} from '../../reducers/modals';
import {setPlayer} from '../../reducers/mode';
import { openTipsLibrary, openSettingsModal, openRestorePointModal } from '../../reducers/modals';
import { setPlayer } from '../../reducers/mode';
import {
autoUpdateProject,
getIsUpdating,
Expand Down Expand Up @@ -65,7 +65,7 @@ import {
closeLoginMenu,
loginMenuOpen
} from '../../reducers/menus';
import {setFileHandle} from '../../reducers/tw.js';
import { setFileHandle } from '../../reducers/tw.js';

import collectMetadata from '../../lib/collect-metadata';

Expand Down Expand Up @@ -141,7 +141,7 @@ MenuBarItemTooltip.propTypes = {
place: PropTypes.oneOf(['top', 'bottom', 'left', 'right'])
};

const MenuItemTooltip = ({id, isRtl, children, className}) => (
const MenuItemTooltip = ({ id, isRtl, children, className }) => (
<ComingSoonTooltip
className={classNames(styles.comingSoon, className)}
isRtl={isRtl}
Expand Down Expand Up @@ -193,7 +193,7 @@ MenuItemLink.propTypes = {
};

class MenuBar extends React.Component {
constructor (props) {
constructor(props) {
super(props);
bindAll(this, [
'handleClickSeeInside',
Expand All @@ -213,13 +213,13 @@ class MenuBar extends React.Component {
'restoreOptionMessage'
]);
}
componentDidMount () {
componentDidMount() {
document.addEventListener('keydown', this.handleKeyPress);
}
componentWillUnmount () {
componentWillUnmount() {
document.removeEventListener('keydown', this.handleKeyPress);
}
handleClickNew () {
handleClickNew() {
// if the project is dirty, and user owns the project, we will autosave.
// but if they are not logged in and can't save, user should consider
// downloading or logging in first.
Expand All @@ -234,39 +234,39 @@ class MenuBar extends React.Component {
}
this.props.onRequestCloseFile();
}
handleClickNewWindow () {
handleClickNewWindow() {
this.props.onClickNewWindow();
this.props.onRequestCloseFile();
}
handleClickRemix () {
handleClickRemix() {
this.props.onClickRemix();
this.props.onRequestCloseFile();
}
handleClickSave () {
handleClickSave() {
this.props.onClickSave();
this.props.onRequestCloseFile();
}
handleClickSaveAsCopy () {
handleClickSaveAsCopy() {
this.props.onClickSaveAsCopy();
this.props.onRequestCloseFile();
}
handleClickPackager () {
handleClickPackager() {
this.props.onClickPackager();
this.props.onRequestCloseFile();
}
handleClickRestorePoints () {
handleClickRestorePoints() {
this.props.onClickRestorePoints();
this.props.onRequestCloseFile();
}
handleClickSeeCommunity (waitForUpdate) {
handleClickSeeCommunity(waitForUpdate) {
if (this.props.shouldSaveBeforeTransition()) {
this.props.autoUpdateProject(); // save before transitioning to project page
waitForUpdate(true); // queue the transition to project page
} else {
waitForUpdate(false); // immediately transition to project page
}
}
handleClickShare (waitForUpdate) {
handleClickShare(waitForUpdate) {
if (!this.props.isShared) {
if (this.props.canShare) { // save before transitioning to project page
this.props.onShare();
Expand All @@ -279,20 +279,20 @@ class MenuBar extends React.Component {
}
}
}
handleRestoreOption (restoreFun) {
handleRestoreOption(restoreFun) {
return () => {
restoreFun();
this.props.onRequestCloseEdit();
};
}
handleKeyPress (event) {
handleKeyPress(event) {
const modifier = bowser.mac ? event.metaKey : event.ctrlKey;
if (modifier && event.key.toLowerCase() === 's') {
this.props.handleSaveProject();
event.preventDefault();
}
}
getSaveToComputerHandler (downloadProjectCallback) {
getSaveToComputerHandler(downloadProjectCallback) {
return () => {
this.props.onRequestCloseFile();
downloadProjectCallback();
Expand All @@ -302,44 +302,44 @@ class MenuBar extends React.Component {
}
};
}
handleLanguageMouseUp (e) {
handleLanguageMouseUp(e) {
if (!this.props.languageMenuOpen) {
this.props.onClickLanguage(e);
}
}
restoreOptionMessage (deletedItem) {
restoreOptionMessage(deletedItem) {
switch (deletedItem) {
case 'Sprite':
return (<FormattedMessage
defaultMessage="Restore Sprite"
description="Menu bar item for restoring the last deleted sprite."
id="gui.menuBar.restoreSprite"
/>);
case 'Sound':
return (<FormattedMessage
defaultMessage="Restore Sound"
description="Menu bar item for restoring the last deleted sound."
id="gui.menuBar.restoreSound"
/>);
case 'Costume':
return (<FormattedMessage
defaultMessage="Restore Costume"
description="Menu bar item for restoring the last deleted costume."
id="gui.menuBar.restoreCostume"
/>);
default: {
return (<FormattedMessage
defaultMessage="Restore"
description="Menu bar item for restoring the last deleted item in its disabled state." /* eslint-disable-line max-len */
id="gui.menuBar.restore"
/>);
}
case 'Sprite':
return (<FormattedMessage
defaultMessage="Restore Sprite"
description="Menu bar item for restoring the last deleted sprite."
id="gui.menuBar.restoreSprite"
/>);
case 'Sound':
return (<FormattedMessage
defaultMessage="Restore Sound"
description="Menu bar item for restoring the last deleted sound."
id="gui.menuBar.restoreSound"
/>);
case 'Costume':
return (<FormattedMessage
defaultMessage="Restore Costume"
description="Menu bar item for restoring the last deleted costume."
id="gui.menuBar.restoreCostume"
/>);
default: {
return (<FormattedMessage
defaultMessage="Restore"
description="Menu bar item for restoring the last deleted item in its disabled state." /* eslint-disable-line max-len */
id="gui.menuBar.restore"
/>);
}
}
}
handleClickSeeInside () {
handleClickSeeInside() {
this.props.onClickSeeInside();
}
buildAboutMenu (onClickAbout) {
buildAboutMenu(onClickAbout) {
if (!onClickAbout) {
// hide the button
return null;
Expand Down Expand Up @@ -384,13 +384,13 @@ class MenuBar extends React.Component {
</div>
);
}
wrapAboutMenuCallback (callback) {
wrapAboutMenuCallback(callback) {
return () => {
callback();
this.props.onRequestCloseAbout();
};
}
render () {
render() {
const saveNowMessage = (
<FormattedMessage
defaultMessage="Save now"
Expand Down Expand Up @@ -530,7 +530,7 @@ class MenuBar extends React.Component {
</MenuItemLink>
</MenuSection>
<MenuSection>
{this.props.compileErrors.map(({id, sprite, error}) => (
{this.props.compileErrors.map(({ id, sprite, error }) => (
<MenuItem key={id}>
{this.props.intl.formatMessage(twMessages.compileError, {
sprite,
Expand Down Expand Up @@ -702,17 +702,17 @@ class MenuBar extends React.Component {
onRequestClose={this.props.onRequestCloseEdit}
>
{this.props.isPlayerOnly ? null : (
<DeletionRestorer>{(handleRestore, {restorable, deletedItem}) => (
<DeletionRestorer>{(handleRestore, { restorable, deletedItem }) => (
<MenuItem
className={classNames({[styles.disabled]: !restorable})}
className={classNames({ [styles.disabled]: !restorable })}
onClick={this.handleRestoreOption(handleRestore)}
>
{this.restoreOptionMessage(deletedItem)}
</MenuItem>
)}</DeletionRestorer>
)}
<MenuSection>
<TurboMode>{(toggleTurboMode, {turboMode}) => (
<TurboMode>{(toggleTurboMode, { turboMode }) => (
<MenuItem onClick={toggleTurboMode}>
{turboMode ? (
<FormattedMessage
Expand All @@ -729,7 +729,7 @@ class MenuBar extends React.Component {
)}
</MenuItem>
)}</TurboMode>
<FramerateChanger>{(changeFramerate, {framerate}) => (
<FramerateChanger>{(changeFramerate, { framerate }) => (
<MenuItem onClick={changeFramerate}>
{framerate === 60 ? (
<FormattedMessage
Expand All @@ -755,9 +755,9 @@ class MenuBar extends React.Component {
/>
</MenuItem>
)}</ChangeUsername>
<CloudVariablesToggler>{(toggleCloudVariables, {enabled, canUseCloudVariables}) => (
<CloudVariablesToggler>{(toggleCloudVariables, { enabled, canUseCloudVariables }) => (
<MenuItem
className={classNames({[styles.disabled]: !canUseCloudVariables})}
className={classNames({ [styles.disabled]: !canUseCloudVariables })}
onClick={toggleCloudVariables}
>
{canUseCloudVariables ? (
Expand Down Expand Up @@ -889,7 +889,7 @@ class MenuBar extends React.Component {
<div className={styles.menuBarItem}>
<a
className={styles.feedbackLink}
href="https://penguinmod.site"
href="https://penguinmod.com"
rel="noopener noreferrer"
target="_blank"
>
Expand Down
Loading

0 comments on commit f2be573

Please sign in to comment.