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
3102f2e8
Commit
3102f2e8
authored
Jun 08, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose methods
parent
44855aff
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
.gitignore
.gitignore
+1
-0
package.json
package.json
+1
-1
remixdClient.ts
src/services/remixdClient.ts
+4
-3
index.ts
types/index.ts
+11
-0
No files found.
.gitignore
View file @
3102f2e8
...
@@ -2,3 +2,4 @@ node_modules
...
@@ -2,3 +2,4 @@ node_modules
npm-debug.log
npm-debug.log
python_modules
python_modules
lib
lib
shared
package.json
View file @
3102f2e8
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
},
},
"scripts"
:
{
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
"
,
"test"
:
"echo
\"
Error: no test specified
\"
"
,
"start"
:
"./lib/bin/remixd.js"
,
"start"
:
"./lib/bin/remixd.js
-s ./shared --remix-ide http://127.0.0.1:8080
"
,
"npip"
:
"npip"
,
"npip"
:
"npip"
,
"lint"
:
"eslint ./src"
,
"lint"
:
"eslint ./src"
,
"build"
:
"tsc -p ./ && chmod +x ./lib/bin/remixd.js"
,
"build"
:
"tsc -p ./ && chmod +x ./lib/bin/remixd.js"
,
...
...
src/services/remixdClient.ts
View file @
3102f2e8
...
@@ -7,7 +7,7 @@ const isbinaryfile = require('isbinaryfile')
...
@@ -7,7 +7,7 @@ const isbinaryfile = require('isbinaryfile')
const
fs
=
require
(
'fs-extra'
)
const
fs
=
require
(
'fs-extra'
)
export
default
class
RemixdClient
extends
PluginClient
{
export
default
class
RemixdClient
extends
PluginClient
{
methods
:
[]
methods
:
[
'folderIsReadOnly'
,
'resolveDirectory'
]
trackDownStreamUpdate
:
TrackDownStreamUpdate
trackDownStreamUpdate
:
TrackDownStreamUpdate
websocket
:
WebSocket
|
null
websocket
:
WebSocket
|
null
currentSharedFolder
:
string
currentSharedFolder
:
string
...
@@ -31,6 +31,7 @@ export default class RemixdClient extends PluginClient {
...
@@ -31,6 +31,7 @@ export default class RemixdClient extends PluginClient {
}
}
resolveDirectory
(
args
:
SharedFolderArgs
,
cb
:
Function
)
{
resolveDirectory
(
args
:
SharedFolderArgs
,
cb
:
Function
)
{
console
.
log
(
'called resolveDirectory!'
)
try
{
try
{
const
path
=
utils
.
absolutePath
(
args
.
path
,
this
.
currentSharedFolder
)
const
path
=
utils
.
absolutePath
(
args
.
path
,
this
.
currentSharedFolder
)
...
@@ -40,8 +41,8 @@ export default class RemixdClient extends PluginClient {
...
@@ -40,8 +41,8 @@ export default class RemixdClient extends PluginClient {
}
}
}
}
folderIsReadOnly
(
args
:
SharedFolderArgs
,
cb
:
Function
)
{
folderIsReadOnly
()
{
return
cb
(
null
,
this
.
readOnly
)
return
this
.
readOnly
}
}
get
(
args
:
SharedFolderArgs
,
cb
:
Function
)
{
get
(
args
:
SharedFolderArgs
,
cb
:
Function
)
{
...
...
types/index.ts
View file @
3102f2e8
...
@@ -17,4 +17,14 @@ export type ResolveDirectory = {
...
@@ -17,4 +17,14 @@ export type ResolveDirectory = {
}
}
}
}
export
type
WebsocketProfile
=
{
name
:
string
methods
?:
string
[]
permission
?:
boolean
hash
?:
string
redirect
?:
{
[
key
:
string
]:
string
}
}
export
type
TrackDownStreamUpdate
=
KeyPairString
export
type
TrackDownStreamUpdate
=
KeyPairString
\ No newline at end of file
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