Remove the popup at the startup of the web-app

Don't show in changelog
This commit is contained in:
Florian Rival
2022-01-27 11:58:46 +00:00
parent c2fbd173e1
commit 7f3289d5a1
6 changed files with 15 additions and 93 deletions

View File

@@ -8,7 +8,6 @@ import Authentication from './Utils/GDevelopServices/Authentication';
import './UI/icomoon-font.css'; // Styles for Icomoon font.
// Import for browser only IDE
import BrowserIntroDialog from './MainFrame/BrowserIntroDialog';
import browserResourceSources from './ResourcesList/BrowserResourceSources';
import browserResourceExternalEditors from './ResourcesList/BrowserResourceExternalEditors';
import BrowserS3PreviewLauncher from './Export/BrowserExporters/BrowserS3PreviewLauncher';
@@ -87,7 +86,6 @@ export const create = (authentication: Authentication) => {
onCreateFromExampleShortHeader={onCreateFromExampleShortHeader}
/>
)}
introDialog={<BrowserIntroDialog />}
storageProviders={storageProviders}
onCreateFromExampleShortHeader={onCreateFromExampleShortHeader}
onCreateBlank={onCreateBlank}

View File

@@ -1,72 +0,0 @@
import { Trans } from '@lingui/macro';
import React, { Component } from 'react';
import Dialog from '../UI/Dialog';
import Window from '../Utils/Window';
import FlatButton from '../UI/FlatButton';
import Text from '../UI/Text';
import { ResponsiveWindowMeasurer } from '../UI/Reponsive/ResponsiveWindowMeasurer';
import RaisedButton from '../UI/RaisedButton';
import { Line } from '../UI/Grid';
export default class BetaIntroDialog extends Component {
_onOpenWebsite() {
Window.openExternalURL('http://gdevelop-app.com');
}
render() {
const { open, onClose } = this.props;
return (
<ResponsiveWindowMeasurer>
{windowWidth => (
<Dialog
title={<Trans>Welcome to GDevelop</Trans>}
actions={[
<FlatButton
key="download"
label={<Trans>Download GDevelop desktop app</Trans>}
primary={false}
onClick={this._onOpenWebsite}
/>,
<FlatButton
label={<Trans>Close</Trans>}
primary={false}
onClick={onClose}
key="close"
/>,
]}
cannotBeDismissed={false}
open={open}
onRequestClose={onClose}
>
<div>
<Text>
<Trans>
This is a version of GDevelop 5 that you can try online.
</Trans>
</Text>
<Text>
Choose a <b>new project to create</b>, then edit the scene or
the events ruling the game. You can{' '}
<b>launch a preview of your game</b> at any time.
</Text>
<Text>
<Trans>
Download the full version of GDevelop on your desktop computer
to create your own game without limits!
</Trans>
</Text>
<Line justifyContent="center">
<RaisedButton
label={<Trans>Start using GDevelop</Trans>}
primary
onClick={onClose}
/>
</Line>
</div>
</Dialog>
)}
</ResponsiveWindowMeasurer>
);
}
}

View File

@@ -1,17 +0,0 @@
// @flow
import * as React from 'react';
import ThemeConsumer from '../../../UI/Theme/ThemeConsumer';
const styles = {
logo: {
width: '100%',
},
};
const GDevelopLogo = () => (
<ThemeConsumer>
{muiTheme => <img src={muiTheme.logo.src} alt="" style={styles.logo} />}
</ThemeConsumer>
);
export default GDevelopLogo;

View File

@@ -41,6 +41,8 @@ import PreferencesContext from '../../Preferences/PreferencesContext';
import { type FileMetadataAndStorageProviderName } from '../../../ProjectsStorage';
import { sendTutorialOpened } from '../../../Utils/Analytics/EventSender';
import { hasPendingNotifications } from '../../../Utils/Notification';
import optionalRequire from '../../../Utils/OptionalRequire.js';
const electron = optionalRequire('electron');
const styles = {
container: {
@@ -440,6 +442,18 @@ export const HomePage = React.memo<Props>(
label={<Trans>Help and documentation</Trans>}
onClick={onOpenHelpFinder}
/>
{!electron && (
<RaisedButton
label={
<Trans>Download the full desktop version</Trans>
}
onClick={() =>
Window.openExternalURL(
'https://gdevelop.io/download'
)
}
/>
)}
</ResponsiveLineStackLayout>
<Line
noMargin

View File

@@ -421,7 +421,7 @@ const MainFrame = (props: Props) => {
);
} else {
// Open the intro dialog if not opening any project.
if (introDialog && !Window.isDev()) openIntroDialog(true);
if (introDialog) openIntroDialog(true);
}
})
.catch(() => {

View File

@@ -1,6 +1,5 @@
// @flow
import * as React from 'react';
import { Trans } from '@lingui/macro';
import { makeStyles, createStyles } from '@material-ui/styles';
import GridList from '@material-ui/core/GridList';
import { GridListTile } from '@material-ui/core';