-
Notifications
You must be signed in to change notification settings - Fork 875
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: complete new design + ton of bug fixes + features
- Loading branch information
Showing
84 changed files
with
3,023 additions
and
1,437 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 @@ | ||
out/* |
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,8 +1,6 @@ | ||
debug.log | ||
node_modules | ||
build | ||
release | ||
npm-debug.log | ||
app.log | ||
package-lock.json | ||
out | ||
*.log |
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
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 |
---|---|---|
|
@@ -8,21 +8,22 @@ | |
"electron-compile": "^6.4.2", | ||
"electron-is-dev": "^0.3.0", | ||
"electron-squirrel-startup": "^1.0.0", | ||
"file-extension": "^4.0.0", | ||
"ipfs-api": "^17.1.3", | ||
"ipfs-geoip": "^2.3.0", | ||
"ipfs-logo": "github:ipfs/logo", | ||
"ipfsd-ctl": "^0.26.0", | ||
"menubar": "^5.2.3", | ||
"moment": "^2.19.2", | ||
"multiaddr": "^3.0.1", | ||
"node-notifier": "^5.1.2", | ||
"normalize.css": "^7.0.0", | ||
"pretty-bytes": "^4.0.2", | ||
"prop-types": "^15.6.0", | ||
"react": "^16.1.1", | ||
"react-dnd": "^2.5.4", | ||
"react-dnd-html5-backend": "^2.5.4", | ||
"react-dom": "^16.1.1", | ||
"react-transition-group": "^2.2.1", | ||
"react-widgets": "^4.1.1", | ||
"winston": "^3.0.0-rc1" | ||
}, | ||
"devDependencies": { | ||
|
@@ -97,11 +98,12 @@ | |
"url": "https://github.com/ipfs/station" | ||
}, | ||
"author": "IPFS", | ||
"authors": [ | ||
"contributors": [ | ||
"Kristoffer Ström <[email protected]>", | ||
"David Dias <[email protected]>", | ||
"Juan Benet <[email protected]>", | ||
"Friedel Ziegelmayer <[email protected]>" | ||
"Friedel Ziegelmayer <[email protected]>", | ||
"Henrique Dias <[email protected]>" | ||
], | ||
"license": "MIT", | ||
"bugs": { | ||
|
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export const PAGES = { | ||
FILES: 'files', | ||
INFO: 'info' | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
import {dialog} from 'electron' | ||
import uploadFiles from './upload-files' | ||
|
||
export default function openFileDialog (window, ipfs, dir = false) { | ||
return (event, callback) => { | ||
dialog.showOpenDialog(window, { | ||
properties: [dir ? 'openDirectory' : 'openFile', 'multiSelections'] | ||
}, (files) => { | ||
if (!files || files.length === 0) return | ||
uploadFiles(ipfs, event, files) | ||
}) | ||
} | ||
} |
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,11 @@ | ||
import {shell} from 'electron' | ||
import {apiAddrToUrl} from './utils' | ||
import {logger} from '../config' | ||
|
||
export default function openWebUI (ipfs, cb) { | ||
ipfs().config.get('Addresses.API') | ||
.then((res) => { | ||
shell.openExternal(apiAddrToUrl(res)) | ||
}) | ||
.catch(logger.error) | ||
} |
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,18 @@ | ||
import {logger, fileHistory} from '../config' | ||
import {clipboard} from 'electron' | ||
|
||
export default function uploadFiles (ipfs, event, files) { | ||
ipfs() | ||
.add(files, {recursive: true, w: files.length > 1}) | ||
.then((res) => { | ||
logger.info('Uploading files', {files}) | ||
|
||
res.forEach((file) => { | ||
const url = `https://ipfs.io/ipfs/${file.hash}` | ||
clipboard.writeText(url) | ||
logger.info('Uploaded file', {path: file.path}) | ||
fileHistory.add(file.path, file.hash) | ||
}) | ||
}) | ||
.catch(logger.error) | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.