-
Notifications
You must be signed in to change notification settings - Fork 885
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [ ] Display recent local files as games - [ ] Display "Open project" button (with arrow if multiples) - [x] Display cloud/local projects in game dashboard for a game - [ ] Probably merge also projects without game id but with the same name. - [ ] Ensure we always save the game id - [ ] Adapt the wording if nothing is found. - [ ] Add button to Create a game or Import in the Manage tab - [ ] Create a new "new project dialog" showing templates/AI/from scratch - [ ] Remove Build tab - [ ] Rename Manage tab - [ ] ???
- Loading branch information
Showing
17 changed files
with
504 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// @flow | ||
import * as React from 'react'; | ||
import { I18n } from '@lingui/react'; | ||
import { Trans } from '@lingui/macro'; | ||
import { type Game } from '../../Utils/GDevelopServices/Game'; | ||
import { | ||
type FileMetadataAndStorageProviderName, | ||
type FileMetadata, | ||
type StorageProvider, | ||
} from '../../ProjectsStorage'; | ||
import DashboardWidget from './DashboardWidget'; | ||
import ProjectFileList from '../../MainFrame/EditorContainers/HomePage/CreateSection/ProjectFileList'; | ||
|
||
type Props = {| | ||
game: Game, | ||
onOpenRecentFile: (file: FileMetadataAndStorageProviderName) => Promise<void>, | ||
storageProviders: Array<StorageProvider>, | ||
|
||
project: ?gdProject, | ||
currentFileMetadata: ?FileMetadata, | ||
closeProject: () => Promise<void>, | ||
|}; | ||
|
||
const ProjectsWidget = (props: Props) => { | ||
return ( | ||
<I18n> | ||
{({ i18n }) => ( | ||
<DashboardWidget gridSize={3} title={<Trans>Projects</Trans>}> | ||
<ProjectFileList {...props} i18n={i18n} /> | ||
</DashboardWidget> | ||
)} | ||
</I18n> | ||
); | ||
}; | ||
|
||
export default ProjectsWidget; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.