Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-editor
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-editor
Commits
08cb2dd5
Commit
08cb2dd5
authored
Jan 06, 2020
by
bianlongting
💬
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab2.dui88.com/laoqifeng/zeroing-editor
into feature/huhu
parents
6d639219
2803508e
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1410 additions
and
2269 deletions
+1410
-2269
index.html
public/index.html
+1
-1
Editor.vue
src/views/Editor.vue
+5
-2
MetaEditorDialog.vue
src/views/Editor/behavior-editor/MetaEditorDialog.vue
+7
-6
NodeSelectInput.vue
src/views/Editor/behavior-editor/inputs/NodeSelectInput.vue
+1
-0
vue.config.js
vue.config.js
+1
-1
yarn.lock
yarn.lock
+1395
-2259
No files found.
public/index.html
View file @
08cb2dd5
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</noscript>
</noscript>
<script>
<script>
window
.
__data
=
{
window
.
__data
=
{
token
:
"<%= process.env.NODE_ENV === 'development' ? 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Mj
U0NywibmFtZSI6IuWNnum-meS6rSIsImFjY291bnQiOiJiaWFubG9uZ3RpbmciLCJlbWFpbCI6ImJpYW5sb25ndGluZ0BkdWliYS5jb20uY24iLCJtb2JpbGUiOiIxNTg2OTE3NDMxMSIsImRpbmdVc2VySWQiOiIwMTE1MTgyMTEyMjE3OTYzNzAiLCJtb2RlbEF1dGhvcml6ZSI6ZmFsc2UsImxvZ2luVGltZW91dCI6NzczNjEsImdtdENyZWF0ZSI6MTU1OTUyNjcxNDAwMCwiZ210TW9kaWZpZWQiOjE1NzM3NDk1OTEwMDAsInN5c3RlbUlkU2V0IjpbMCwxLDM0LDM2LDM3LDIzMSwyMDMsNDQsMTksMjEsMjQ2LDIzLDI0OSwyNSwyNywzMF0sImlhdCI6MTU3Nzk1MjgxNH0.GNeP25ZZK5ca7rvwtj2BaQ3GZatGNSR3CthSN98PSD4
' : '$TOKEN$' %>"
,
token
:
"<%= process.env.NODE_ENV === 'development' ? 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Mj
A4NSwibmFtZSI6IuWKs-eQquWzsCIsImFjY291bnQiOiJsYW9xaWZlbmciLCJlbWFpbCI6Imxhb3FpZmVuZ0BkdWliYS5jb20uY24iLCJtb2JpbGUiOiIxMzQ1Njc3NDE1MyIsImRpbmdVc2VySWQiOiI1MDY5MDYyOTIxMjkxMDAxIiwibW9kZWxBdXRob3JpemUiOmZhbHNlLCJsb2dpblRpbWVvdXQiOjgzMzUzLCJnbXRDcmVhdGUiOjE1MzQ0MTIwMTUwMDAsImdtdE1vZGlmaWVkIjoxNTczODgyMDk2MDAwLCJzeXN0ZW1JZFNldCI6WzAsMSwzNCwyMjcsMzYsMzcsMjMxLDIwMyw0NCwxOSwyMSwyNDYsMjMsMjQ5LDI1LDI3LDMwXSwiaWF0IjoxNTc4Mjc3OTg5fQ.mm6T34NuMBwTKaLBbVOI5AqGQNC9rwfiAdIv8c4C4_I
' : '$TOKEN$' %>"
,
apiHost
:
"<%= process.env.NODE_ENV === 'development' ? 'http://beacon.duibadev.com.cn' : '$API_HOST$' %>"
apiHost
:
"<%= process.env.NODE_ENV === 'development' ? 'http://beacon.duibadev.com.cn' : '$API_HOST$' %>"
}
}
</script>
</script>
...
...
src/views/Editor.vue
View file @
08cb2dd5
...
@@ -88,12 +88,15 @@
...
@@ -88,12 +88,15 @@
});
});
await
playWaiting
(
this
.
prepare
(),
this
.
$t
(
'Preparing'
)).
catch
(
e
=>
{
await
playWaiting
(
this
.
prepare
(),
this
.
$t
(
'Preparing'
)).
catch
(
e
=>
{
console
.
log
(
e
);
});
});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
startCodeSyncServe
(
this
.
codeSyncServeConfig
);
//
startCodeSyncServe(this.codeSyncServeConfig);
},
100
);
},
100
);
this
.
loadProject
();
this
.
loadProject
().
catch
(
e
=>
{
console
.
log
(
e
);
});
},
},
destroyed
()
{
destroyed
()
{
document
.
removeEventListener
(
'keydown'
,
this
.
onKeyPress
)
document
.
removeEventListener
(
'keydown'
,
this
.
onKeyPress
)
...
...
src/views/Editor/behavior-editor/MetaEditorDialog.vue
View file @
08cb2dd5
...
@@ -99,12 +99,13 @@
...
@@ -99,12 +99,13 @@
:options="cmOptions"
:options="cmOptions"
@cursorActivity="onCodeChange"
@cursorActivity="onCodeChange"
/>-->
/>-->
<monaco-editor
<
!--<
monaco-editor
ref="codeEditor"
ref="codeEditor"
v-if="meta"
v-if="meta"
:code="meta.script"
:code="meta.script"
:options="monacoConfig"
:options="monacoConfig"
/>
/>-->
<code-editor
v-if=
"meta"
v-model=
"meta.script"
/>
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
class=
"button-bar"
>
<div
class=
"button-bar"
>
...
@@ -133,23 +134,23 @@
...
@@ -133,23 +134,23 @@
<
script
>
<
script
>
import
ElFormItem
from
"./inputs/form-item"
;
import
ElFormItem
from
"./inputs/form-item"
;
import
PropsEditorDialog
from
"./PropsEditorDialog"
;
import
PropsEditorDialog
from
"./PropsEditorDialog"
;
import
*
as
monaco
from
"monaco-editor"
;
//import MonacoEditor from "../components/MonacoEditor";
import
MonacoEditor
from
"../components/MonacoEditor"
;
import
copy
from
"copy-to-clipboard"
;
import
copy
from
"copy-to-clipboard"
;
import
{
clonePureObj
}
from
"../../../utils"
;
import
{
clonePureObj
}
from
"../../../utils"
;
import
events
from
"../../../global-events"
;
import
events
from
"../../../global-events"
;
import
CodeSyncIndicator
from
"../BottomBar/CodeSyncIndicator"
;
import
CodeSyncIndicator
from
"../BottomBar/CodeSyncIndicator"
;
import
CodeEditor
from
"./CodeEditor"
;
const
exposeVariables
=
[
"args"
,
"props"
,
"target"
,
"global"
,
"vm"
,
"engine"
];
const
exposeVariables
=
[
"args"
,
"props"
,
"target"
,
"global"
,
"vm"
,
"engine"
];
export
default
{
export
default
{
name
:
"MetaEditorDialog"
,
name
:
"MetaEditorDialog"
,
components
:
{
components
:
{
CodeEditor
,
CodeSyncIndicator
,
CodeSyncIndicator
,
PropsEditorDialog
,
PropsEditorDialog
,
ElFormItem
,
ElFormItem
,
monaco
,
//"monaco-editor": MonacoEditor
"monaco-editor"
:
MonacoEditor
},
},
data
()
{
data
()
{
return
{
return
{
...
...
src/views/Editor/behavior-editor/inputs/NodeSelectInput.vue
View file @
08cb2dd5
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
<div>
<div>
<el-scrollbar
class=
"tree-scrollbar"
wrap-class=
"wrap-x-hidden"
>
<el-scrollbar
class=
"tree-scrollbar"
wrap-class=
"wrap-x-hidden"
>
<el-tree
<el-tree
v-if=
"popoverVisible"
:data=
"behavior_views"
:data=
"behavior_views"
:props=
"defaultProps"
:props=
"defaultProps"
:expand-on-click-node=
"false"
:expand-on-click-node=
"false"
...
...
vue.config.js
View file @
08cb2dd5
...
@@ -28,7 +28,7 @@ module.exports = {
...
@@ -28,7 +28,7 @@ module.exports = {
plugins
:
[
plugins
:
[
new
MonacoWebpackPlugin
({
new
MonacoWebpackPlugin
({
languages
:
[
'javascript'
,
'typescript'
,
'json'
],
languages
:
[
'javascript'
,
'typescript'
,
'json'
],
output
:
"/monaco"
publicPath
:
process
.
env
.
NODE_ENV
===
'production'
?
"/monaco"
:
""
,
})
})
]
]
}
}
...
...
yarn.lock
View file @
08cb2dd5
This diff is collapsed.
Click to expand it.
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