Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
1ecbb6d1
A
apollo
项目概览
Pinoxchio
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1ecbb6d1
编写于
2月 06, 2018
作者:
V
vlin17
提交者:
Jiangtao Hu
2月 06, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Dreamview: storing state of taskPanelLock
上级
959ecf2a
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
28 addition
and
41 deletion
+28
-41
modules/dreamview/frontend/dist/app.bundle.js
modules/dreamview/frontend/dist/app.bundle.js
+1
-1
modules/dreamview/frontend/dist/app.bundle.js.map
modules/dreamview/frontend/dist/app.bundle.js.map
+1
-1
modules/dreamview/frontend/src/components/Tasks/Others.js
modules/dreamview/frontend/src/components/Tasks/Others.js
+15
-14
modules/dreamview/frontend/src/components/Tasks/QuickStart.js
...les/dreamview/frontend/src/components/Tasks/QuickStart.js
+6
-6
modules/dreamview/frontend/src/components/Tasks/index.js
modules/dreamview/frontend/src/components/Tasks/index.js
+2
-19
modules/dreamview/frontend/src/store/options.js
modules/dreamview/frontend/src/store/options.js
+3
-0
未找到文件。
modules/dreamview/frontend/dist/app.bundle.js
浏览文件 @
1ecbb6d1
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
modules/dreamview/frontend/dist/app.bundle.js.map
浏览文件 @
1ecbb6d1
此差异已折叠。
点击以展开。
modules/dreamview/frontend/src/components/Tasks/Others.js
浏览文件 @
1ecbb6d1
...
...
@@ -8,9 +8,8 @@ import WS from "store/websocket";
export
default
class
Others
extends
React
.
Component
{
render
()
{
const
{
options
,
enableHMIButtonsOnly
}
=
this
.
props
.
store
;
const
{
isPanelLocked
,
toggleLock
}
=
this
.
props
;
const
disablePanel
=
enableHMIButtonsOnly
||
i
sPanelLocked
;
const
disablePanel
=
enableHMIButtonsOnly
||
options
.
task
sPanelLocked
;
return
(
<
div
className
=
"
others card
"
>
...
...
@@ -24,13 +23,6 @@ export default class Others extends React.Component {
onClick
=
{()
=>
{
WS
.
dumpMessages
();
}}
>
Dump
Message
<
/button
>
<
CheckboxItem
id
=
{
"
showVideo
"
}
title
=
{
"
Camera Sensor
"
}
isChecked
=
{
options
.
showVideo
}
disabled
=
{
disablePanel
}
onClick
=
{()
=>
{
this
.
props
.
store
.
handleOptionToggle
(
'
showVideo
'
);
}}
/
>
<
CheckboxItem
id
=
{
"
showPNCMonitor
"
}
title
=
{
"
PNC Monitor
"
}
isChecked
=
{
options
.
showPNCMonitor
}
...
...
@@ -38,11 +30,6 @@ export default class Others extends React.Component {
onClick
=
{()
=>
{
this
.
props
.
store
.
handleOptionToggle
(
'
showPNCMonitor
'
);
}}
/
>
<
CheckboxItem
id
=
{
"
panelLock
"
}
title
=
{
"
Lock Task Panel
"
}
isChecked
=
{
isPanelLocked
}
disabled
=
{
false
}
onClick
=
{
toggleLock
}
/
>
<
CheckboxItem
id
=
{
"
toggleSimControl
"
}
title
=
{
"
SimControl
"
}
isChecked
=
{
options
.
simControlEnabled
}
...
...
@@ -51,6 +38,20 @@ export default class Others extends React.Component {
WS
.
toggleSimControl
(
!
options
.
simControlEnabled
);
this
.
props
.
store
.
handleOptionToggle
(
'
simControlEnabled
'
);
}}
/
>
<
CheckboxItem
id
=
{
"
showVideo
"
}
title
=
{
"
Camera Sensor
"
}
isChecked
=
{
options
.
showVideo
}
disabled
=
{
disablePanel
}
onClick
=
{()
=>
{
this
.
props
.
store
.
handleOptionToggle
(
'
showVideo
'
);
}}
/
>
<
CheckboxItem
id
=
{
"
panelLock
"
}
title
=
{
"
Lock Task Panel
"
}
isChecked
=
{
options
.
tasksPanelLocked
}
disabled
=
{
false
}
onClick
=
{()
=>
{
this
.
props
.
store
.
handleOptionToggle
(
'
tasksPanelLocked
'
);
}}
/
>
<
/div
>
<
/div
>
);
...
...
modules/dreamview/frontend/src/components/Tasks/QuickStart.js
浏览文件 @
1ecbb6d1
...
...
@@ -91,25 +91,25 @@ export default class QuickStarter extends React.Component {
render
()
{
const
{
hmi
}
=
this
.
props
.
store
;
const
{
isPanelLocked
}
=
this
.
prop
s
;
const
{
tasksPanelLocked
}
=
this
.
props
.
store
.
option
s
;
return
(
<
div
className
=
"
card
"
>
<
div
className
=
"
card-header
"
><
span
>
Quick
Start
<
/span></
div
>
<
div
className
=
"
card-content-column
"
>
<
CommandGroup
disabled
=
{
isPanelLocked
}
commands
=
{
this
.
setup
}
/
>
<
CommandGroup
disabled
=
{
isPanelLocked
}
commands
=
{
this
.
reset
}
/
>
<
CommandGroup
disabled
=
{
isPanelLocked
}
commands
=
{
this
.
version
}
/
>
<
CommandGroup
disabled
=
{
false
}
commands
=
{
this
.
version
}
/
>
<
CommandGroup
disabled
=
{
tasksPanelLocked
}
commands
=
{
this
.
setup
}
/
>
<
CommandGroup
disabled
=
{
tasksPanelLocked
}
commands
=
{
this
.
reset
}
/
>
<
CommandGroup
disabled
=
{
!
hmi
.
enableStartAuto
}
commands
=
{
this
.
auto
}
extraButtonClass
=
"
start-auto-button
"
extraCommandClass
=
"
start-auto-command
"
/>
{
hmi
.
showRTKCommands
&&
<
CommandGroup
name
=
"
Record
"
disabled
=
{
i
sPanelLocked
}
disabled
=
{
task
sPanelLocked
}
commands
=
{
this
.
rtKRecord
}
/>
}
{
hmi
.
showRTKCommands
&&
<
CommandGroup
name
=
"
Replay
"
disabled
=
{
i
sPanelLocked
}
disabled
=
{
task
sPanelLocked
}
commands
=
{
this
.
rtkReplay
}
/>
}
<
/div
>
<
/div
>
...
...
modules/dreamview/frontend/src/components/Tasks/index.js
浏览文件 @
1ecbb6d1
...
...
@@ -6,28 +6,11 @@ import Delay from "components/Tasks/Delay";
import
Console
from
"
components/Tasks/Console
"
;
export
default
class
Tasks
extends
React
.
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
isPanelLocked
:
false
,
};
this
.
toggleLock
=
this
.
toggleLock
.
bind
(
this
);
}
toggleLock
()
{
this
.
setState
({
isPanelLocked
:
!
this
.
state
.
isPanelLocked
,
});
}
render
()
{
return
(
<
div
className
=
"
tasks
"
>
<
QuickStart
isPanelLocked
=
{
this
.
state
.
isPanelLocked
}
/
>
<
Others
toggleLock
=
{
this
.
toggleLock
}
isPanelLocked
=
{
this
.
state
.
isPanelLocked
}
/
>
<
QuickStart
/>
<
Others
/>
<
Delay
/>
<
Console
/>
<
/div
>
...
...
modules/dreamview/frontend/src/store/options.js
浏览文件 @
1ecbb6d1
...
...
@@ -45,8 +45,11 @@ export default class Options {
PARAMETERS
.
options
.
defaults
.
showObstaclesHeading
;
@
observable
showObstaclesId
=
PARAMETERS
.
options
.
defaults
.
showObstaclesId
;
// Others
@
observable
cameraAngle
=
PARAMETERS
.
options
.
defaults
.
cameraAngle
;
@
observable
simControlEnabled
=
false
;
@
observable
tasksPanelLocked
=
false
;
@
observable
hideOptionToggle
=
{
'
planningCar
'
:
true
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录