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
61029b8f
Commit
61029b8f
authored
Apr 09, 2019
by
Grandschtroumpf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
standard
parent
79b3cf2a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
19 deletions
+11
-19
app.js
src/app.js
+1
-1
browser-files-tree.js
src/app/files/browser-files-tree.js
+9
-6
fileManager.js
src/app/files/fileManager.js
+0
-4
analysis-tab.js
src/app/tabs/analysis-tab.js
+0
-4
universal-dapp.js
src/universal-dapp.js
+1
-4
No files found.
src/app.js
View file @
61029b8f
...
...
@@ -488,7 +488,7 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
// The event listener needs to be registered as early as possible, because the
// parent will send the message upon the "load" event.
let
filesToLoad
=
null
cons
t
loadFilesCallback
=
function
(
files
)
{
filesToLoad
=
files
}
// will be replaced later
le
t
loadFilesCallback
=
function
(
files
)
{
filesToLoad
=
files
}
// will be replaced later
window
.
addEventListener
(
'message'
,
function
(
ev
)
{
if
(
typeof
ev
.
data
===
typeof
[]
&&
ev
.
data
[
0
]
===
'loadFiles'
)
{
...
...
src/app/files/browser-files-tree.js
View file @
61029b8f
...
...
@@ -4,13 +4,13 @@ var EventManager = require('../../lib/events')
import
{
BaseApi
}
from
'remix-plugin'
class
FilesTree
extends
BaseApi
{
class
FilesTree
extends
BaseApi
{
constructor
(
name
,
storage
)
{
super
({
name
:
name
,
methods
:
[
'get'
,
'set'
,
'remove'
],
description
:
'service - read/write file to the `config` explorer without need of additionnal permission.'
description
:
'service - read/write file to the `config` explorer without need of additionnal permission.'
})
this
.
event
=
new
EventManager
()
this
.
storage
=
storage
...
...
@@ -109,7 +109,11 @@ import { BaseApi } from 'remix-plugin'
if
(
!
this
.
storage
.
rename
(
unprefixedoldPath
,
unprefixednewPath
))
{
return
false
}
this
.
event
.
trigger
(
'fileRenamed'
,
[
this
.
type
+
'/'
+
unprefixedoldPath
,
this
.
type
+
'/'
+
unprefixednewPath
,
isFolder
])
this
.
event
.
trigger
(
'fileRenamed'
,
[
this
.
type
+
'/'
+
unprefixedoldPath
,
this
.
type
+
'/'
+
unprefixednewPath
,
isFolder
])
return
true
}
return
false
...
...
@@ -117,7 +121,7 @@ import { BaseApi } from 'remix-plugin'
resolveDirectory
(
path
,
callback
)
{
if
(
path
[
0
]
===
'/'
)
path
=
path
.
substring
(
1
)
if
(
!
path
)
return
callback
(
null
,
{
[
this
.
type
]:
{
}
})
if
(
!
path
)
return
callback
(
null
,
{
[
this
.
type
]:
{}
})
var
tree
=
{}
path
=
this
.
removePrefix
(
path
)
...
...
@@ -138,7 +142,6 @@ import { BaseApi } from 'remix-plugin'
if
(
path
[
0
]
===
'/'
)
return
path
.
substring
(
1
)
return
path
}
}
module
.
exports
=
FilesTree
src/app/files/fileManager.js
View file @
61029b8f
...
...
@@ -49,10 +49,6 @@ class FileManager extends FileSystemApi {
this
.
_deps
.
localhostExplorer
.
event
.
register
(
'closed'
,
(
event
)
=>
{
this
.
removeTabsOf
(
this
.
_deps
.
localhostExplorer
)
})
}
get
profile
()
{
return
}
fileRenamedEvent
(
oldName
,
newName
,
isFolder
)
{
if
(
!
isFolder
)
{
this
.
_deps
.
config
.
set
(
'currentFile'
,
''
)
...
...
src/app/tabs/analysis-tab.js
View file @
61029b8f
...
...
@@ -25,10 +25,6 @@ class AnalysisTab extends BaseApi {
this
.
registry
=
registry
}
get
profile
()
{
return
}
render
()
{
var
staticanalysis
=
new
StaticAnalysis
()
staticanalysis
.
event
.
register
(
'staticAnaysisWarning'
,
(
count
)
=>
{
...
...
src/universal-dapp.js
View file @
61029b8f
...
...
@@ -8,18 +8,15 @@ var txHelper = remixLib.execution.txHelper
var
EventManager
=
remixLib
.
EventManager
var
executionContext
=
remixLib
.
execution
.
executionContext
import
{
UdappApi
}
from
'remix-plugin'
import
{
EventEmitter
}
from
'events'
;
import
{
EventEmitter
}
from
'events'
const
profile
=
{
name
:
'udapp'
,
displayName
:
'universal dapp'
,
events
:
[
'newTransaction'
],
methods
:
[
'sendTransaction'
,
'getAccounts'
,
'createVMAccount'
],
description
:
'service - run transaction and access account'
,
permission
:
true
}
module
.
exports
=
class
UniversalDApp
extends
UdappApi
{
constructor
(
registry
)
{
...
...
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