Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
042bce76
Unverified
Commit
042bce76
authored
Sep 11, 2019
by
yann300
Committed by
GitHub
Sep 11, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2298 from ethereum/feRef
refactored file-panel a bit
parents
e62ab213
af04cfbb
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
123 additions
and
116 deletions
+123
-116
package-lock.json
package-lock.json
+0
-0
app.js
src/app.js
+12
-12
NotPersistedExplorer.js
src/app/files/NotPersistedExplorer.js
+0
-39
basicFileProvider.js
src/app/files/basicFileProvider.js
+24
-7
file-explorer.js
src/app/files/file-explorer.js
+4
-0
fileManager.js
src/app/files/fileManager.js
+4
-4
filePovider.js
src/app/files/filePovider.js
+2
-2
fileProviderBase.js
src/app/files/fileProviderBase.js
+29
-0
localStorageProvider.js
src/app/files/localStorageProvider.js
+2
-2
readonlyProvider.js
src/app/files/readonlyProvider.js
+18
-0
remixDProvider.js
src/app/files/remixDProvider.js
+1
-1
remixd-handle.js
src/app/files/remixd-handle.js
+1
-1
file-panel.js
src/app/panels/file-panel.js
+26
-47
compile-tab.js
src/app/tabs/compile-tab.js
+0
-1
No files found.
package-lock.json
View file @
042bce76
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/app.js
View file @
042bce76
...
@@ -12,15 +12,15 @@ var { OffsetToLineColumnConverter } = require('./lib/offsetToLineColumnConverter
...
@@ -12,15 +12,15 @@ var { OffsetToLineColumnConverter } = require('./lib/offsetToLineColumnConverter
var
QueryParams
=
require
(
'./lib/query-params'
)
var
QueryParams
=
require
(
'./lib/query-params'
)
var
GistHandler
=
require
(
'./lib/gist-handler'
)
var
GistHandler
=
require
(
'./lib/gist-handler'
)
var
Storage
=
remixLib
.
Storage
var
Storage
=
remixLib
.
Storage
var
Browserfiles
=
require
(
'./app/files/browser-files
'
)
var
LocalStorageProvider
=
require
(
'./app/files/localStorageProvider
'
)
var
SharedFolder
=
require
(
'./app/files/shared-fol
der'
)
var
RemixDProvider
=
require
(
'./app/files/remixDProvi
der'
)
var
Config
=
require
(
'./config'
)
var
Config
=
require
(
'./config'
)
var
Renderer
=
require
(
'./app/ui/renderer'
)
var
Renderer
=
require
(
'./app/ui/renderer'
)
var
examples
=
require
(
'./app/editor/example-contracts'
)
var
examples
=
require
(
'./app/editor/example-contracts'
)
var
modalDialogCustom
=
require
(
'./app/ui/modal-dialog-custom'
)
var
modalDialogCustom
=
require
(
'./app/ui/modal-dialog-custom'
)
var
FileManager
=
require
(
'./app/files/fileManager'
)
var
FileManager
=
require
(
'./app/files/fileManager'
)
var
BasicReadOnlyExplorer
=
require
(
'./app/files/basicReadOnlyExplor
er'
)
var
ReadonlyProvider
=
require
(
'./app/files/readonlyProvid
er'
)
var
NotPersistedExplorer
=
require
(
'./app/files/NotPersistedExplor
er'
)
var
BasicFileProvider
=
require
(
'./app/files/basicFileProvid
er'
)
var
toolTip
=
require
(
'./app/ui/tooltip'
)
var
toolTip
=
require
(
'./app/ui/tooltip'
)
var
CompilerMetadata
=
require
(
'./app/files/compiler-metadata'
)
var
CompilerMetadata
=
require
(
'./app/files/compiler-metadata'
)
var
CompilerImport
=
require
(
'./app/compiler/compiler-imports'
)
var
CompilerImport
=
require
(
'./app/compiler/compiler-imports'
)
...
@@ -113,7 +113,7 @@ class App {
...
@@ -113,7 +113,7 @@ class App {
// load file system
// load file system
self
.
_components
.
filesProviders
=
{}
self
.
_components
.
filesProviders
=
{}
self
.
_components
.
filesProviders
[
'browser'
]
=
new
Browserfiles
(
fileStorage
)
self
.
_components
.
filesProviders
[
'browser'
]
=
new
LocalStorageProvider
(
fileStorage
)
registry
.
put
({
api
:
self
.
_components
.
filesProviders
[
'browser'
],
name
:
'fileproviders/browser'
})
registry
.
put
({
api
:
self
.
_components
.
filesProviders
[
'browser'
],
name
:
'fileproviders/browser'
})
var
remixd
=
new
Remixd
(
65520
)
var
remixd
=
new
Remixd
(
65520
)
...
@@ -122,13 +122,13 @@ class App {
...
@@ -122,13 +122,13 @@ class App {
if
(
message
.
error
)
toolTip
(
message
.
error
)
if
(
message
.
error
)
toolTip
(
message
.
error
)
})
})
self
.
_components
.
filesProviders
[
'localhost'
]
=
new
SharedFol
der
(
remixd
)
self
.
_components
.
filesProviders
[
'localhost'
]
=
new
RemixDProvi
der
(
remixd
)
self
.
_components
.
filesProviders
[
'swarm'
]
=
new
BasicReadOnlyExplor
er
(
'swarm'
)
self
.
_components
.
filesProviders
[
'swarm'
]
=
new
ReadonlyProvid
er
(
'swarm'
)
self
.
_components
.
filesProviders
[
'github'
]
=
new
BasicReadOnlyExplor
er
(
'github'
)
self
.
_components
.
filesProviders
[
'github'
]
=
new
ReadonlyProvid
er
(
'github'
)
self
.
_components
.
filesProviders
[
'gist'
]
=
new
NotPersistedExplor
er
(
'gist'
)
self
.
_components
.
filesProviders
[
'gist'
]
=
new
BasicFileProvid
er
(
'gist'
)
self
.
_components
.
filesProviders
[
'ipfs'
]
=
new
BasicReadOnlyExplor
er
(
'ipfs'
)
self
.
_components
.
filesProviders
[
'ipfs'
]
=
new
ReadonlyProvid
er
(
'ipfs'
)
self
.
_components
.
filesProviders
[
'https'
]
=
new
BasicReadOnlyExplor
er
(
'https'
)
self
.
_components
.
filesProviders
[
'https'
]
=
new
ReadonlyProvid
er
(
'https'
)
self
.
_components
.
filesProviders
[
'http'
]
=
new
BasicReadOnlyExplor
er
(
'http'
)
self
.
_components
.
filesProviders
[
'http'
]
=
new
ReadonlyProvid
er
(
'http'
)
registry
.
put
({
api
:
self
.
_components
.
filesProviders
[
'localhost'
],
name
:
'fileproviders/localhost'
})
registry
.
put
({
api
:
self
.
_components
.
filesProviders
[
'localhost'
],
name
:
'fileproviders/localhost'
})
registry
.
put
({
api
:
self
.
_components
.
filesProviders
[
'swarm'
],
name
:
'fileproviders/swarm'
})
registry
.
put
({
api
:
self
.
_components
.
filesProviders
[
'swarm'
],
name
:
'fileproviders/swarm'
})
registry
.
put
({
api
:
self
.
_components
.
filesProviders
[
'github'
],
name
:
'fileproviders/github'
})
registry
.
put
({
api
:
self
.
_components
.
filesProviders
[
'github'
],
name
:
'fileproviders/github'
})
...
...
src/app/files/NotPersistedExplorer.js
deleted
100644 → 0
View file @
e62ab213
'use strict'
var
ReadOnlyExplorer
=
require
(
'./basicReadOnlyExplorer'
)
var
toolTip
=
require
(
'../ui/tooltip'
)
class
NotPersistedExplorer
extends
ReadOnlyExplorer
{
constructor
(
type
)
{
super
(
type
)
this
.
readonly
=
false
}
remove
(
path
)
{
var
unprefixedPath
=
this
.
removePrefix
(
path
)
var
folderPath
=
path
.
substring
(
0
,
path
.
lastIndexOf
(
'/'
))
if
(
this
.
paths
[
folderPath
])
{
delete
this
.
paths
[
folderPath
][
unprefixedPath
]
delete
this
.
files
[
path
]
}
this
.
event
.
trigger
(
'fileRemoved'
,
[
this
.
type
+
'/'
+
unprefixedPath
])
return
true
}
rename
(
oldPath
,
newPath
,
isFolder
)
{
if
(
isFolder
)
{
return
toolTip
(
'folder renaming is not handled by this explorer'
)
}
var
unprefixedoldPath
=
this
.
removePrefix
(
oldPath
)
var
unprefixednewPath
=
this
.
removePrefix
(
newPath
)
this
.
get
(
oldPath
,
(
error
,
content
)
=>
{
if
(
error
)
return
console
.
log
(
error
)
this
.
remove
(
oldPath
)
this
.
set
(
newPath
,
content
)
this
.
event
.
trigger
(
'fileRenamed'
,
[
this
.
type
+
'/'
+
unprefixedoldPath
,
this
.
type
+
'/'
+
unprefixednewPath
,
isFolder
])
})
}
isReadOnly
(
path
)
{
return
false
}
}
module
.
exports
=
NotPersistedExplorer
src/app/files/basic
ReadOnlyExplor
er.js
→
src/app/files/basic
FileProvid
er.js
View file @
042bce76
'use strict'
'use strict'
var
EventManager
=
require
(
'../../lib/events'
)
const
EventManager
=
require
(
'../../lib/events'
)
const
toolTip
=
require
(
'../ui/tooltip'
)
class
Basic
ReadOnlyExplor
er
{
class
Basic
FileProvid
er
{
constructor
(
type
)
{
constructor
(
type
)
{
this
.
event
=
new
EventManager
()
this
.
event
=
new
EventManager
()
this
.
files
=
{}
this
.
files
=
{}
...
@@ -71,15 +72,31 @@ class BasicReadOnlyExplorer {
...
@@ -71,15 +72,31 @@ class BasicReadOnlyExplorer {
return
true
return
true
}
}
isReadOnly
(
path
)
{
remove
(
path
)
{
var
unprefixedPath
=
this
.
removePrefix
(
path
)
var
folderPath
=
path
.
substring
(
0
,
path
.
lastIndexOf
(
'/'
))
if
(
this
.
paths
[
folderPath
])
{
delete
this
.
paths
[
folderPath
][
unprefixedPath
]
delete
this
.
files
[
path
]
}
this
.
event
.
trigger
(
'fileRemoved'
,
[
this
.
type
+
'/'
+
unprefixedPath
])
return
true
return
true
}
}
remove
(
path
)
{
rename
(
oldPath
,
newPath
,
isFolder
)
{
if
(
isFolder
)
{
return
toolTip
(
'folder renaming is not handled by this explorer'
)
}
var
unprefixedoldPath
=
this
.
removePrefix
(
oldPath
)
var
unprefixednewPath
=
this
.
removePrefix
(
newPath
)
this
.
get
(
oldPath
,
(
error
,
content
)
=>
{
if
(
error
)
return
console
.
log
(
error
)
this
.
remove
(
oldPath
)
this
.
set
(
newPath
,
content
)
this
.
event
.
trigger
(
'fileRenamed'
,
[
this
.
type
+
'/'
+
unprefixedoldPath
,
this
.
type
+
'/'
+
unprefixednewPath
,
isFolder
])
})
}
}
rename
(
oldPath
,
newPath
,
isFolder
)
{
isReadOnly
(
path
)
{
return
tru
e
return
fals
e
}
}
list
()
{
list
()
{
...
@@ -99,4 +116,4 @@ class BasicReadOnlyExplorer {
...
@@ -99,4 +116,4 @@ class BasicReadOnlyExplorer {
}
}
}
}
module
.
exports
=
Basic
ReadOnlyExplor
er
module
.
exports
=
Basic
FileProvid
er
src/app/files/file-explorer.js
View file @
042bce76
...
@@ -62,6 +62,10 @@ function fileExplorer (localRegistry, files, menuItems) {
...
@@ -62,6 +62,10 @@ function fileExplorer (localRegistry, files, menuItems) {
fileManager
:
self
.
_components
.
registry
.
get
(
'filemanager'
).
api
fileManager
:
self
.
_components
.
registry
.
get
(
'filemanager'
).
api
}
}
self
.
events
.
register
(
'focus'
,
function
(
path
)
{
self
.
_deps
.
fileManager
.
switchFile
(
path
)
})
self
.
_components
.
registry
.
put
({
api
:
self
,
name
:
`fileexplorer/
${
self
.
files
.
type
}
`
})
self
.
_components
.
registry
.
put
({
api
:
self
,
name
:
`fileexplorer/
${
self
.
files
.
type
}
`
})
// warn if file changed outside of Remix
// warn if file changed outside of Remix
...
...
src/app/files/fileManager.js
View file @
042bce76
...
@@ -277,9 +277,9 @@ class FileManager extends Plugin {
...
@@ -277,9 +277,9 @@ class FileManager extends Plugin {
if
(
file
)
return
_switchFile
(
file
)
if
(
file
)
return
_switchFile
(
file
)
else
{
else
{
var
browserProvider
=
this
.
_deps
.
filesProviders
[
'browser'
]
var
browserProvider
=
this
.
_deps
.
filesProviders
[
'browser'
]
browserProvider
.
resolveDirectory
(
'browser'
,
(
error
,
files
Tree
)
=>
{
browserProvider
.
resolveDirectory
(
'browser'
,
(
error
,
files
Provider
)
=>
{
if
(
error
)
console
.
error
(
error
)
if
(
error
)
console
.
error
(
error
)
var
fileList
=
Object
.
keys
(
files
Tree
)
var
fileList
=
Object
.
keys
(
files
Provider
)
if
(
fileList
.
length
)
{
if
(
fileList
.
length
)
{
_switchFile
(
browserProvider
.
type
+
'/'
+
fileList
[
0
])
_switchFile
(
browserProvider
.
type
+
'/'
+
fileList
[
0
])
}
else
{
}
else
{
...
@@ -296,9 +296,9 @@ class FileManager extends Plugin {
...
@@ -296,9 +296,9 @@ class FileManager extends Plugin {
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
provider
=
this
.
fileProviderOf
(
path
)
const
provider
=
this
.
fileProviderOf
(
path
)
if
(
!
provider
)
return
reject
(
`provider for path
${
path
}
not found`
)
if
(
!
provider
)
return
reject
(
`provider for path
${
path
}
not found`
)
provider
.
resolveDirectory
(
path
,
(
error
,
files
Tree
)
=>
{
provider
.
resolveDirectory
(
path
,
(
error
,
files
Provider
)
=>
{
if
(
error
)
reject
(
error
)
if
(
error
)
reject
(
error
)
resolve
(
files
Tree
)
resolve
(
files
Provider
)
})
})
})
})
}
}
...
...
src/app/files/
browser-files-tree
.js
→
src/app/files/
filePovider
.js
View file @
042bce76
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
var
EventManager
=
require
(
'../../lib/events'
)
var
EventManager
=
require
(
'../../lib/events'
)
class
File
sTree
{
class
File
Provider
{
constructor
(
name
,
storage
)
{
constructor
(
name
,
storage
)
{
this
.
event
=
new
EventManager
()
this
.
event
=
new
EventManager
()
this
.
storage
=
storage
this
.
storage
=
storage
...
@@ -136,4 +136,4 @@ class FilesTree {
...
@@ -136,4 +136,4 @@ class FilesTree {
}
}
}
}
module
.
exports
=
File
sTree
module
.
exports
=
File
Provider
src/app/files/fileProviderBase.js
0 → 100644
View file @
042bce76
'use strict'
class
FileProvider
{
exists
(
path
,
cb
)
{
throw
new
Error
(
this
.
name
+
' function is not implemented for '
+
this
.
constructor
.
name
+
' class'
)
}
init
(
cb
)
{
throw
new
Error
(
this
.
name
+
' function is not implemented for '
+
this
.
constructor
.
name
+
' class'
)
}
get
(
path
,
cb
)
{
throw
new
Error
(
this
.
name
+
' function is not implemented for '
+
this
.
constructor
.
name
+
' class'
)
}
set
(
path
,
content
,
cb
)
{
throw
new
Error
(
this
.
name
+
' function is not implemented for '
+
this
.
constructor
.
name
+
' class'
)
}
addReadOnly
(
path
,
content
)
{
throw
new
Error
(
this
.
name
+
' function is not implemented for '
+
this
.
constructor
.
name
+
' class'
)
}
isReadOnly
(
path
)
{
throw
new
Error
(
this
.
name
+
' function is not implemented for '
+
this
.
constructor
.
name
+
' class'
)
}
remove
(
path
)
{
throw
new
Error
(
this
.
name
+
' function is not implemented for '
+
this
.
constructor
.
name
+
' class'
)
}
rename
(
oldPath
,
newPath
,
isFolder
)
{
throw
new
Error
(
this
.
name
+
' function is not implemented for '
+
this
.
constructor
.
name
+
' class'
)
}
resolveDirectory
(
path
,
callback
)
{
throw
new
Error
(
this
.
name
+
' function is not implemented for '
+
this
.
constructor
.
name
+
' class'
)
}
removePrefix
(
path
)
{
throw
new
Error
(
this
.
name
+
' function is not implemented for '
+
this
.
constructor
.
name
+
' class'
)
}
updateRefs
(
path
,
type
)
{
throw
new
Error
(
this
.
name
+
' function is not implemented for '
+
this
.
constructor
.
name
+
' class'
)
}
}
module
.
exports
=
FileProvider
src/app/files/
browser-files
.js
→
src/app/files/
localStorageProvider
.js
View file @
042bce76
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
var
EventManager
=
require
(
'../../lib/events'
)
var
EventManager
=
require
(
'../../lib/events'
)
function
Files
(
storage
)
{
function
LocalStorageProvider
(
storage
)
{
var
event
=
new
EventManager
()
var
event
=
new
EventManager
()
this
.
event
=
event
this
.
event
=
event
var
readonly
=
{}
var
readonly
=
{}
...
@@ -145,4 +145,4 @@ function Files (storage) {
...
@@ -145,4 +145,4 @@ function Files (storage) {
}
}
}
}
module
.
exports
=
Files
module
.
exports
=
LocalStorageProvider
src/app/files/readonlyProvider.js
0 → 100644
View file @
042bce76
'use strict'
let
BasicFileProvider
=
require
(
'./basicFileProvider'
)
class
ReadonlyProvider
extends
BasicFileProvider
{
remove
(
path
)
{
return
false
}
rename
(
oldPath
,
newPath
,
isFolder
)
{
return
false
}
isReadOnly
(
path
)
{
return
true
}
}
module
.
exports
=
ReadonlyProvider
src/app/files/
shared-fol
der.js
→
src/app/files/
remixDProvi
der.js
View file @
042bce76
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
var
EventManager
=
require
(
'../../lib/events'
)
var
EventManager
=
require
(
'../../lib/events'
)
var
pathtool
=
require
(
'path'
)
var
pathtool
=
require
(
'path'
)
module
.
exports
=
class
SharedFol
der
{
module
.
exports
=
class
RemixDProvi
der
{
constructor
(
remixd
)
{
constructor
(
remixd
)
{
this
.
event
=
new
EventManager
()
this
.
event
=
new
EventManager
()
this
.
_remixd
=
remixd
this
.
_remixd
=
remixd
...
...
src/app/files/remixd-handle.js
View file @
042bce76
...
@@ -21,7 +21,7 @@ const profile = {
...
@@ -21,7 +21,7 @@ const profile = {
name
:
'remixd'
,
name
:
'remixd'
,
methods
:
[],
methods
:
[],
events
:
[],
events
:
[],
description
:
'
u
sing Remixd daemon, allow to access file system'
,
description
:
'
U
sing Remixd daemon, allow to access file system'
,
kind
:
'other'
,
kind
:
'other'
,
version
:
packageJson
.
version
version
:
packageJson
.
version
}
}
...
...
src/app/panels/file-panel.js
View file @
042bce76
...
@@ -55,29 +55,40 @@ module.exports = class Filepanel extends ViewPlugin {
...
@@ -55,29 +55,40 @@ module.exports = class Filepanel extends ViewPlugin {
var
fileExplorer
=
new
FileExplorer
(
self
.
_components
.
registry
,
self
.
_deps
.
fileProviders
[
'browser'
],
var
fileExplorer
=
new
FileExplorer
(
self
.
_components
.
registry
,
self
.
_deps
.
fileProviders
[
'browser'
],
[
'createNewFile'
,
'publishToGist'
,
'copyFiles'
,
canUpload
?
'uploadFile'
:
''
]
[
'createNewFile'
,
'publishToGist'
,
'copyFiles'
,
canUpload
?
'uploadFile'
:
''
]
)
)
var
fileSystemExplorer
=
new
FileExplorer
(
self
.
_components
.
registry
,
self
.
_deps
.
fileProviders
[
'localhost'
])
var
swarmExplorer
=
new
FileExplorer
(
self
.
_components
.
registry
,
self
.
_deps
.
fileProviders
[
'swarm'
])
function
createProvider
(
key
,
menuItems
)
{
var
githubExplorer
=
new
FileExplorer
(
self
.
_components
.
registry
,
self
.
_deps
.
fileProviders
[
'github'
])
return
new
FileExplorer
(
self
.
_components
.
registry
,
self
.
_deps
.
fileProviders
[
key
],
menuItems
)
var
gistExplorer
=
new
FileExplorer
(
self
.
_components
.
registry
,
self
.
_deps
.
fileProviders
[
'gist'
],
[
'updateGist'
])
}
var
httpExplorer
=
new
FileExplorer
(
self
.
_components
.
registry
,
self
.
_deps
.
fileProviders
[
'http'
])
var
httpsExplorer
=
new
FileExplorer
(
self
.
_components
.
registry
,
self
.
_deps
.
fileProviders
[
'https'
])
var
fileSystemExplorer
=
createProvider
(
'localhost'
)
var
ipfsExplorer
=
new
FileExplorer
(
self
.
_components
.
registry
,
self
.
_deps
.
fileProviders
[
'ipfs'
])
var
swarmExplorer
=
createProvider
(
'swarm'
)
var
githubExplorer
=
createProvider
(
'github'
)
var
gistExplorer
=
createProvider
(
'gist'
,
[
'updateGist'
])
var
httpExplorer
=
createProvider
(
'http'
)
var
httpsExplorer
=
createProvider
(
'https'
)
var
ipfsExplorer
=
createProvider
(
'ipfs'
)
self
.
remixdHandle
=
new
RemixdHandle
(
fileSystemExplorer
,
self
.
_deps
.
fileProviders
[
'localhost'
],
appManager
)
self
.
remixdHandle
=
new
RemixdHandle
(
fileSystemExplorer
,
self
.
_deps
.
fileProviders
[
'localhost'
],
appManager
)
const
explorers
=
yo
`
<div>
<div class=
${
css
.
treeview
}
>
${
fileExplorer
.
init
()}
</div>
<div class="filesystemexplorer
${
css
.
treeview
}
">
${
fileSystemExplorer
.
init
()}
</div>
<div class="swarmexplorer
${
css
.
treeview
}
">
${
swarmExplorer
.
init
()}
</div>
<div class="githubexplorer
${
css
.
treeview
}
">
${
githubExplorer
.
init
()}
</div>
<div class="gistexplorer
${
css
.
treeview
}
">
${
gistExplorer
.
init
()}
</div>
<div class="httpexplorer
${
css
.
treeview
}
">
${
httpExplorer
.
init
()}
</div>
<div class="httpsexplorer
${
css
.
treeview
}
">
${
httpsExplorer
.
init
()}
</div>
<div class="ipfsexplorer
${
css
.
treeview
}
">
${
ipfsExplorer
.
init
()}
</div>
</div>
`
function
template
()
{
function
template
()
{
return
yo
`
return
yo
`
<div class=
${
css
.
container
}
>
<div class=
${
css
.
container
}
>
<div class="
${
css
.
fileexplorer
}
">
<div class="
${
css
.
fileexplorer
}
">
<div class="
${
css
.
fileExplorerTree
}
">
<div class="
${
css
.
fileExplorerTree
}
">
<div class=
${
css
.
treeview
}
>
${
fileExplorer
.
init
()}
</div>
${
explorers
}
<div class="filesystemexplorer
${
css
.
treeview
}
">
${
fileSystemExplorer
.
init
()}
</div>
<div class="swarmexplorer
${
css
.
treeview
}
">
${
swarmExplorer
.
init
()}
</div>
<div class="githubexplorer
${
css
.
treeview
}
">
${
githubExplorer
.
init
()}
</div>
<div class="gistexplorer
${
css
.
treeview
}
">
${
gistExplorer
.
init
()}
</div>
<div class="httpexplorer
${
css
.
treeview
}
">
${
httpExplorer
.
init
()}
</div>
<div class="httpsexplorer
${
css
.
treeview
}
">
${
httpsExplorer
.
init
()}
</div>
<div class="httpsexplorer
${
css
.
treeview
}
">
${
ipfsExplorer
.
init
()}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -103,38 +114,6 @@ module.exports = class Filepanel extends ViewPlugin {
...
@@ -103,38 +114,6 @@ module.exports = class Filepanel extends ViewPlugin {
fileSystemExplorer
.
hide
()
fileSystemExplorer
.
hide
()
})
})
fileExplorer
.
events
.
register
(
'focus'
,
function
(
path
)
{
self
.
_deps
.
fileManager
.
switchFile
(
path
)
})
fileSystemExplorer
.
events
.
register
(
'focus'
,
function
(
path
)
{
self
.
_deps
.
fileManager
.
switchFile
(
path
)
})
swarmExplorer
.
events
.
register
(
'focus'
,
function
(
path
)
{
self
.
_deps
.
fileManager
.
switchFile
(
path
)
})
githubExplorer
.
events
.
register
(
'focus'
,
function
(
path
)
{
self
.
_deps
.
fileManager
.
switchFile
(
path
)
})
gistExplorer
.
events
.
register
(
'focus'
,
function
(
path
)
{
self
.
_deps
.
fileManager
.
switchFile
(
path
)
})
httpExplorer
.
events
.
register
(
'focus'
,
function
(
path
)
{
self
.
_deps
.
fileManager
.
switchFile
(
path
)
})
httpsExplorer
.
events
.
register
(
'focus'
,
function
(
path
)
{
self
.
_deps
.
fileManager
.
switchFile
(
path
)
})
ipfsExplorer
.
events
.
register
(
'focus'
,
function
(
path
)
{
self
.
_deps
.
fileManager
.
switchFile
(
path
)
})
self
.
render
=
function
render
()
{
return
element
}
self
.
render
=
function
render
()
{
return
element
}
}
}
}
}
...
...
src/app/tabs/compile-tab.js
View file @
042bce76
...
@@ -232,7 +232,6 @@ class CompileTab extends ViewPlugin {
...
@@ -232,7 +232,6 @@ class CompileTab extends ViewPlugin {
<label class="border-0 input-group-text" for="compiledContracts">Contract</label>
<label class="border-0 input-group-text" for="compiledContracts">Contract</label>
${
selectEl
}
${
selectEl
}
</div>
</div>
<article class="
${
css
.
compilerArticle
}
">
<article class="
${
css
.
compilerArticle
}
">
<button class="btn btn-secondary btn-block" title="Publish on Swarm" onclick="
${()
=>
{
this
.
publish
(
'swarm'
)
}}
">
<button class="btn btn-secondary btn-block" title="Publish on Swarm" onclick="
${()
=>
{
this
.
publish
(
'swarm'
)
}}
">
<span>Publish on Swarm</span>
<span>Publish on Swarm</span>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment