Skip to content

Commit

Permalink
Added again the backpack for travis, refers to #1
Browse files Browse the repository at this point in the history
  • Loading branch information
raffaelepojer committed Aug 30, 2020
1 parent 4434e4d commit 68f87fc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions src/components/gui/gui.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import CostumeLibrary from '../../containers/costume-library.jsx';
import BackdropLibrary from '../../containers/backdrop-library.jsx';
import Watermark from '../../containers/watermark.jsx';

// import Backpack from '../../containers/backpack.jsx';
import Backpack from '../../containers/backpack.jsx';
import WebGlModal from '../../containers/webgl-modal.jsx';
import TipsLibrary from '../../containers/tips-library.jsx';
import Cards from '../../containers/cards.jsx';
Expand Down Expand Up @@ -67,8 +67,8 @@ const GUIComponent = props => {
authorUsername,
basePath,
backdropLibraryVisible,
/* backpackHost,
backpackVisible, */
backpackHost,
backpackVisible,
blocksTabVisible,
cardsVisible,
canChangeLanguage,
Expand Down Expand Up @@ -388,9 +388,9 @@ const GUIComponent = props => {
</TabPanel>

</Tabs>
{/* {backpackVisible ? (
{backpackVisible ? (
<Backpack host={backpackHost} />
) : null} */}
) : null}
</Box>

<Box className={classNames(styles.stageAndTargetWrapper, styles[stageSize])}>
Expand Down Expand Up @@ -422,8 +422,8 @@ GUIComponent.propTypes = {
authorThumbnailUrl: PropTypes.string,
authorUsername: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]), // can be false
backdropLibraryVisible: PropTypes.bool,
/* backpackHost: PropTypes.string,
backpackVisible: PropTypes.bool, */
backpackHost: PropTypes.string,
backpackVisible: PropTypes.bool,
basePath: PropTypes.string,
blocksTabVisible: PropTypes.bool,
canChangeLanguage: PropTypes.bool,
Expand Down Expand Up @@ -479,8 +479,8 @@ GUIComponent.propTypes = {
vm: PropTypes.instanceOf(VM).isRequired
};
GUIComponent.defaultProps = {
/* backpackHost: null,
backpackVisible: false, */
backpackHost: null,
backpackVisible: false,
basePath: './',
canChangeLanguage: true,
canCreateNew: false,
Expand Down
8 changes: 4 additions & 4 deletions src/playground/render-gui.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export default appTarget => {
)(GUI);

// TODO a hack for testing the backpack, allow backpack host to be set by url param
// const backpackHostMatches = window.location.href.match(/[?&]backpack_host=([^&]*)&?/);
// const backpackHost = backpackHostMatches ? backpackHostMatches[1] : null;
const backpackHostMatches = window.location.href.match(/[?&]backpack_host=([^&]*)&?/);
const backpackHost = backpackHostMatches ? backpackHostMatches[1] : null;

const scratchDesktopMatches = window.location.href.match(/[?&]isScratchDesktop=([^&]+)/);
let simulateScratchDesktop;
Expand Down Expand Up @@ -75,9 +75,9 @@ export default appTarget => {
/> :
<WrappedGui
canEditTitle
// backpackVisible
backpackVisible
// showComingSoon
// backpackHost={backpackHost}
backpackHost={backpackHost}
canSave={false}
onClickLogo={onClickLogo}
/>,
Expand Down

0 comments on commit 68f87fc

Please sign in to comment.