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
c8c6e912
Commit
c8c6e912
authored
Nov 16, 2021
by
gxkai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: ace
parent
69ee2021
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
23 deletions
+13
-23
app.js
apps/remix-ide/src/app.js
+3
-7
walkthroughService.js
apps/remix-ide/src/walkthroughService.js
+7
-7
ace-remix-ui-editor.tsx
libs/remix-ui/editor/src/lib/ace-remix-ui-editor.tsx
+3
-9
No files found.
apps/remix-ide/src/app.js
View file @
c8c6e912
...
...
@@ -55,7 +55,7 @@ const Editor = require('./app/editor/editor')
const
Terminal
=
require
(
'./app/panels/terminal'
)
const
ContextualListener
=
require
(
'./app/editor/contextualListener'
)
const
_paq
=
window
.
_paq
=
window
.
_paq
||
[]
process
.
versions
=
{
node
:
'11.2.0'
}
//
process.versions ={node: '11.2.0'}
const
css
=
csjs
`
html { box-sizing: border-box; }
...
...
@@ -481,8 +481,7 @@ class App {
await
appManager
.
activatePlugin
([
'sidePanel'
])
// activating host plugin separately
await
appManager
.
activatePlugin
([
'home'
])
await
appManager
.
activatePlugin
([
'settings'
])
await
appManager
.
activatePlugin
([
'pluginManager'
])
await
appManager
.
activatePlugin
([
'hiddenPanel'
,
'contextualListener'
,
'terminal'
,
'blockchain'
,
'fetchAndCompile'
,
'contentImport'
])
await
appManager
.
activatePlugin
([
'hiddenPanel'
,
'pluginManager'
,
'contextualListener'
,
'terminal'
,
'blockchain'
,
'fetchAndCompile'
,
'contentImport'
])
appManager
.
on
(
'filePanel'
,
'workspaceInitializationCompleted'
,
async
()
=>
{
await
appManager
.
registerContextMenuItems
()
...
...
@@ -519,10 +518,7 @@ class App {
}).
catch
(
console
.
error
)
}
else
{
// activate solidity plugin
appManager
.
activatePlugin
([
'udapp'
])
appManager
.
activatePlugin
([
'solidity'
])
// appManager.activatePlugin(['optimism-compiler'])
appManager
.
activatePlugin
([
'debugger'
])
appManager
.
activatePlugin
([
'solidity'
,
'udapp'
,
'debugger'
])
}
})
...
...
apps/remix-ide/src/walkthroughService.js
View file @
c8c6e912
...
...
@@ -22,13 +22,13 @@ export class WalkthroughService {
tooltipClass
:
'bg-light text-dark'
,
position
:
'right'
},
//
{
//
title: 'Deploy your contract',
//
element: document.querySelector('#runIcons'),
//
intro: 'Choose a chain, deploy a contract and play with your functions.',
//
tooltipClass: 'bg-light text-dark',
//
position: 'right'
//
}
{
title
:
'Deploy your contract'
,
element
:
document
.
querySelector
(
'#runIcons'
),
intro
:
'Choose a chain, deploy a contract and play with your functions.'
,
tooltipClass
:
'bg-light text-dark'
,
position
:
'right'
}
]
}).
onafterchange
((
targetElement
)
=>
{
const
header
=
document
.
getElementsByClassName
(
'introjs-tooltip-header'
)[
0
]
...
...
libs/remix-ui/editor/src/lib/ace-remix-ui-editor.tsx
View file @
c8c6e912
...
...
@@ -81,7 +81,7 @@ export const EditorUI = (props: EditorUIProps) => {
const
[
currentMarkers
,
setCurrentMarkers
]
=
useState
({})
const
editorRef
=
useRef
<
Ace
.
Editor
>
(
null
)
const
currentFileRef
=
useRef
(
''
)
const
aceRef
=
useRef
(
null
)
const
aceRef
=
useRef
<
typeof
AceBuilds
>
(
null
)
const
[
editorModelsState
,
dispatch
]
=
useReducer
(
reducerActions
,
initialState
)
...
...
@@ -166,13 +166,6 @@ export const EditorUI = (props: EditorUIProps) => {
}
}
// props.editorAPI.getCursorPosition = () => {
// // if (!monacoRef.current) return
// const model = editorModelsState[currentFileRef.current]?.model
// if (model) {
// return model.getOffsetAt(editorRef.current.getPosition())
// }
// }
props
.
editorAPI
.
getCursorPosition
=
()
=>
{
if
(
!
aceRef
.
current
)
return
const
model
=
editorModelsState
[
currentFileRef
.
current
]?.
model
...
...
@@ -191,11 +184,12 @@ export const EditorUI = (props: EditorUIProps) => {
if
(
!
editorRef
.
current
)
return
return
Number
(
editorRef
.
current
.
getFontSize
())
}
function
onLoad
(
editor
:
Ace
.
Editor
)
{
editorRef
.
current
=
editor
reducerListener
(
props
.
plugin
,
dispatch
,
aceRef
.
current
,
editorRef
.
current
,
props
.
events
)
setTimeout
(()
=>
{
props
.
events
.
onEditorMounted
()
},
1000
)
// @ts-ignore
editor
.
on
(
'guttermousedown'
,
e
=>
{
const
row
=
e
.
getDocumentPosition
().
row
...
...
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