-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #322 from SuperblocksHQ/feature-ipfs-sync
Feature ipfs sync
- Loading branch information
Showing
89 changed files
with
4,234 additions
and
682 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
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
export * from './app.actions'; | ||
export * from './panes.actions'; | ||
export * from './projects.actions'; | ||
export * from './project.actions'; | ||
export * from './explorer.actions'; | ||
export * from './sidePanels.actions'; | ||
export * from './settings.actions'; | ||
export * from './ipfs.actions'; | ||
export * from './toast.actions'; |
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,123 @@ | ||
// Copyright 2018 Superblocks AB | ||
// | ||
// This file is part of Superblocks Lab. | ||
// | ||
// Superblocks Lab is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation version 3 of the License. | ||
// | ||
// Superblocks Lab is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with Superblocks Lab. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
export const ipfsActions = { | ||
UPLOAD_TO_IPFS: 'UPLOAD_TO_IPFS', | ||
uploadToIPFS(uploadSettings) { | ||
return { | ||
type: ipfsActions.UPLOAD_TO_IPFS, | ||
data: { uploadSettings } | ||
}; | ||
}, | ||
UPLOAD_TO_IPFS_SUCCESS: 'UPLOAD_TO_IPFS_SUCCESS', | ||
uploadToIPFSSuccess({ timestamp, shareURL }) { | ||
return { | ||
type: ipfsActions.UPLOAD_TO_IPFS_SUCCESS, | ||
data: { timestamp, shareURL } | ||
} | ||
}, | ||
UPLOAD_TO_IPFS_FAIL: 'UPLOAD_TO_IPFS_FAIL', | ||
uploadToIPFSFail(error) { | ||
return { | ||
type: ipfsActions.UPLOAD_TO_IPFS_FAIL, | ||
data: error | ||
} | ||
}, | ||
RESTORE_IPFS_STATE_SUCCESS: 'RESTORE_IPFS_STATE_SUCCESS', | ||
restoreIPFSStateSuccess({ timestamp, shareURL }) { | ||
return { | ||
type: ipfsActions.RESTORE_IPFS_STATE_SUCCESS, | ||
data: { timestamp, shareURL } | ||
} | ||
}, | ||
RESTORE_IPFS_STATE_FAIL: 'RESTORE_IPFS_STATE_FAIL', | ||
restoreIPFSStateFail() { | ||
return { | ||
type: ipfsActions.RESTORE_IPFS_STATE_FAIL, | ||
} | ||
}, | ||
SHOW_UPLOAD_SETTINGS: 'SHOW_UPLOAD_SETTINGS', | ||
showUploadSettings() { | ||
return { | ||
type: ipfsActions.SHOW_UPLOAD_SETTINGS, | ||
} | ||
}, | ||
HIDE_UPLOAD_SETTINGS: 'HIDE_UPLOAD_SETTINGS', | ||
hideUploadSettings() { | ||
return { | ||
type: ipfsActions.HIDE_UPLOAD_SETTINGS, | ||
} | ||
}, | ||
UPLOAD_SETTINGS_CHANGED: 'UPLOAD_SETTINGS_CHANGED', | ||
uploadSettingsChanged(uploadSettings) { | ||
return { | ||
type: ipfsActions.UPLOAD_SETTINGS_CHANGED, | ||
data: uploadSettings | ||
} | ||
}, | ||
HIDE_UPLOAD_DIALOG: 'HIDE_UPLOAD_DIALOG', | ||
hideUploadDialog() { | ||
return { | ||
type: ipfsActions.HIDE_UPLOAD_DIALOG, | ||
} | ||
}, | ||
FORK_PROJECT: 'FORK_PROJECT', | ||
forkProject() { | ||
return { | ||
type: ipfsActions.FORK_PROJECT, | ||
} | ||
}, | ||
FORK_PROJECT_SUCCESS: 'FORK_PROJECT_SUCCESS', | ||
forkProjectSuccess() { | ||
return { | ||
type: ipfsActions.FORK_PROJECT_SUCCESS, | ||
} | ||
}, | ||
FORK_PROJECT_FAIL: 'FORK_PROJECT_FAIL', | ||
forkProjectFail(error) { | ||
return { | ||
type: ipfsActions.FORK_PROJECT_FAIL, | ||
data: error | ||
} | ||
}, | ||
IMPORT_PROJECT_FROM_IPFS: 'IMPORT_PROJECT_FROM_IPFS', | ||
importProjectFromIpfs(hash) { | ||
return { | ||
type: ipfsActions.IMPORT_PROJECT_FROM_IPFS, | ||
data: hash | ||
} | ||
}, | ||
IMPORT_PROJECT_FROM_IPFS_SUCCESS: 'IMPORT_PROJECT_FROM_IPFS_SUCCESS', | ||
importProjectFromIpfsSuccess() { | ||
return { | ||
type: ipfsActions.IMPORT_PROJECT_FROM_IPFS_SUCCESS, | ||
} | ||
}, | ||
IMPORT_PROJECT_FROM_IPFS_FAIL: 'IMPORT_PROJECT_FROM_IPFS_FAIL', | ||
importProjectFromIpfsFail(error) { | ||
return { | ||
type: ipfsActions.IMPORT_PROJECT_FROM_IPFS_FAIL, | ||
data: error | ||
} | ||
}, | ||
UPDATE_IPFS_ACTION_BUTTONS: 'UPDATE_IPFS_ACTION_BUTTONS', | ||
updateIpfsActionButtons({ showUploadButton, showForkButton }) { | ||
return { | ||
type: ipfsActions.UPDATE_IPFS_ACTION_BUTTONS, | ||
data: { showUploadButton, showForkButton } | ||
} | ||
} | ||
} |
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,48 @@ | ||
// Copyright 2018 Superblocks AB | ||
// | ||
// This file is part of Superblocks Lab. | ||
// | ||
// Superblocks Lab is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation version 3 of the License. | ||
// | ||
// Superblocks Lab is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with Superblocks Lab. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
export const projectActions = { | ||
SELECT_PROJECT: 'SELECT_PROJECT', | ||
selectProject(project) { | ||
return { | ||
type: projectActions.SELECT_PROJECT, | ||
data: project | ||
}; | ||
}, | ||
UPDATE_PROJECT_SETTINGS: 'UPDATE_PROJECT_SETTINGS', | ||
updateProjectSettings(projectSettings) { | ||
return { | ||
type: projectActions.UPDATE_PROJECT_SETTINGS, | ||
data: projectSettings | ||
}; | ||
}, | ||
UPDATE_PROJECT_SETTINGS_SUCCESS: 'UPDATE_PROJECT_SETTINGS_SUCCESS', | ||
updateProjectSettingsSuccess(newProjectSettings) { | ||
return { | ||
type: projectActions.UPDATE_PROJECT_SETTINGS_SUCCESS, | ||
data: newProjectSettings, | ||
}; | ||
}, | ||
UPDATE_PROJECT_SETTINGS_FAIL: 'UPDATE_PROJECT_SETTINGS_FAIL', | ||
updateProjectSettingsFail(error) { | ||
return { | ||
type: projectActions.UPDATE_PROJECT_SETTINGS_FAIL, | ||
error: error | ||
}; | ||
} | ||
} | ||
|
||
|
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
// Copyright 2018 Superblocks AB | ||
// | ||
// This file is part of Superblocks Lab. | ||
// | ||
// Superblocks Lab is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation version 3 of the License. | ||
// | ||
// Superblocks Lab is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with Superblocks Lab. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
export const toastActions = { | ||
TOAST_DISMISSED: 'TOAST_DISMISSED', | ||
toastDismissed(id) { | ||
return { | ||
type: toastActions.TOAST_DISMISSED, | ||
data: id | ||
}; | ||
} | ||
} |
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,20 @@ | ||
// Copyright 2018 Superblocks AB | ||
// | ||
// This file is part of Superblocks Lab. | ||
// | ||
// Superblocks Lab is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation version 3 of the License. | ||
// | ||
// Superblocks Lab is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with Superblocks Lab. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
export const closeAllPanels = () => ({ type: 'CLOSE_ALL_PANELS' }); | ||
export const toggleTransactionsHistoryPanel = () => ({ type: 'TOGGLE_TRANSACTIONS_HISTORY_PANEL' }); | ||
export const openTransactionsHistoryPanel = () => ({ type: 'OPEN_TRANSACTIONS_HISTORY_PANEL' }); | ||
export const closeTransactionsHistoryPanel = () => ({ type: 'CLOSE_TRANSACTIONS_HISTORY_PANEL' }); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.