Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
Z
zap
管理
动态
成员
标记
计划
议题
议题看板
里程碑
迭代
Wiki
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
锁定的文件
构建
流水线
作业
流水线计划
产物
部署
发布
Package registry
容器镜像库
模型注册表
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
代码评审分析
议题分析
模型实验
效能分析
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
esp-mirror
project-chip
zap
提交
00935cd6
提交
00935cd6
编辑于
2 years ago
作者:
FIRST_NAME LAST_NAME
提交者:
Mehrad Malayeri
2 years ago
浏览文件
操作
下载
补丁
差异文件
https://github.com/project-chip/zap/issues/299
上级
d4832f9e
No related branches found
分支 包含提交
No related tags found
标签 包含提交
无相关合并请求
变更
2
隐藏空白变更内容
行内
左右并排
显示
2 个更改的文件
src/components/ZclCustomZclView.vue
+60
-70
60 个添加, 70 个删除
src/components/ZclCustomZclView.vue
src/layouts/ZclConfiguratorLayout.vue
+10
-3
10 个添加, 3 个删除
src/layouts/ZclConfiguratorLayout.vue
有
70 个添加
和
73 个删除
src/components/ZclCustomZclView.vue
+
60
−
70
浏览文件 @
00935cd6
...
...
@@ -14,77 +14,67 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
<
template
>
<div>
<div
class=
"row q-py-md"
>
<strong>
<q-breadcrumbs>
<!-- this needs to be updated depending on how the pages will work -->
<q-breadcrumbs-el
icon=
"keyboard_arrow_left"
to=
"/"
>
Main Configurator
</q-breadcrumbs-el>
<q-breadcrumbs-el
to=
"/"
>
Add Custom ZCL
</q-breadcrumbs-el>
</q-breadcrumbs>
</strong>
</div>
<div
style=
"padding: 0 10px"
>
<h5
style=
"margin: 10px 0 0px"
>
<strong>
Add Custom ZCL
</strong>
</h5>
<div
class=
"row items-center"
style=
"padding: 10px 10px 10px 10px"
>
<div
>
You can use this functionality to add custom ZCL clusters or commands to
the Zigbee Clusters Configurator
<div
style=
"width: 800px; max-width: 80vw"
>
<q-card>
<q-card-section>
<div
class=
"text-h5"
>
Add Custom ZCL
</div>
<div
class=
"row items-center"
>
<div>
You can use this functionality to add custom ZCL clusters or
commands to the Zigbee Clusters Configurator
</div>
<q-space
/>
<q-btn
color=
"primary"
icon=
"add"
@
click=
"browseForFile()"
/>
</div>
<q-space
/>
<q-btn
color=
"primary"
label=
"Add"
@
click=
"browseForFile()"
v-close-popup
/>
</div>
</div>
<div>
<q-list
bordered
separator
>
<template
v-for=
"(sessionPackage, index) in packages"
>
<q-item
v-bind:key=
"index"
>
<q-item-section>
<q-expansion-item>
<template
slot=
"header"
>
<q-toolbar>
<div>
<strong>
{{
getFileName
(
sessionPackage
.
pkg
.
path
)
}}
</strong>
</div>
<q-space
/>
<q-btn
label=
"Delete"
icon=
"delete"
flat
@
click.stop=
"deletePackage(sessionPackage)"
:disable=
"sessionPackage.sessionPackage.required == 1"
/>
<q-btn
label=
"Relative to..."
outlined
v-show=
"false"
@
click.stop
/>
</q-toolbar>
</
template
>
Full File path: {{ sessionPackage.pkg.path }}
<br
/>
Package Type: {{ sessionPackage.pkg.type }}
<br
/>
Version: {{ sessionPackage.pkg.version }}
<br
/>
Required:
{{ sessionPackage.sessionPackage.required ? 'True' : 'False' }}
<br
/>
</q-expansion-item>
</q-item-section>
</q-item>
</template>
</q-list>
</div>
</q-card-section>
<q-card-section>
<q-list
bordered
separator
>
<template
v-for=
"(sessionPackage, index) in packages"
>
<q-item
v-bind:key=
"index"
>
<q-item-section>
<q-expansion-item>
<template
slot=
"header"
>
<q-toolbar>
<div>
<strong>
{{
getFileName
(
sessionPackage
.
pkg
.
path
)
}}
</strong>
</div>
<q-space
/>
<q-btn
label=
"Delete"
icon=
"delete"
flat
@
click.stop=
"deletePackage(sessionPackage)"
:disable=
"sessionPackage.sessionPackage.required == 1"
/>
<q-btn
label=
"Relative to..."
outlined
v-show=
"false"
@
click.stop
/>
</q-toolbar>
</
template
>
Full File path: {{ sessionPackage.pkg.path }}
<br
/>
Package Type: {{ sessionPackage.pkg.type }}
<br
/>
Version: {{ sessionPackage.pkg.version }}
<br
/>
Required:
{{
sessionPackage.sessionPackage.required ? 'True' : 'False'
}}
<br
/>
</q-expansion-item>
</q-item-section>
</q-item>
</template>
</q-list>
</q-card-section>
</q-card>
</div>
</template>
...
...
此差异已折叠。
点击以展开。
src/layouts/ZclConfiguratorLayout.vue
+
10
−
3
浏览文件 @
00935cd6
...
...
@@ -33,7 +33,8 @@ limitations under the License.
emit-value
map-options
@
input=
"setSelectedEndpoint($event)"
style=
"width: 250px"
bg-color=
"white"
style=
"width: 250px;"
/>
</q-toolbar-title>
<q-toolbar-title
v-on:click.ctrl=
"showVersion"
v-else
>
...
...
@@ -59,7 +60,7 @@ limitations under the License.
:ripple=
"false"
:unelevated=
"false"
:outline=
"false"
to=
"/customZcl
"
@
click=
"zclExtensionDialog = true
"
>
<div
class=
"text-align q-ml-xs"
>
ZCL Extensions...
</div>
</q-btn>
...
...
@@ -84,6 +85,9 @@ limitations under the License.
<zcl-cluster-manager
/>
</q-page-container>
</q-layout>
<q-dialog
v-model=
"zclExtensionDialog"
style=
"width:800px;"
>
<ZclExtensionDialog
/>
</q-dialog>
</div>
</
template
>
...
...
@@ -92,6 +96,7 @@ import ZclGeneralOptionsBar from '../components/ZclGeneralOptionsBar.vue'
import
ZclEndpointManager
from
'
../components/ZclEndpointManager.vue
'
import
ZclClusterManager
from
'
../components/ZclClusterManager.vue
'
import
InitialContent
from
'
../components/InitialContent.vue
'
import
ZclExtensionDialog
from
'
../components/ZclCustomZclView.vue
'
const
restApi
=
require
(
'
../../src-shared/rest-api.js
'
)
const
commonUrl
=
require
(
'
../../src-shared/common-url.js
'
)
...
...
@@ -199,7 +204,8 @@ export default {
data
()
{
return
{
isExpanded
:
false
,
globalOptionsDialog
:
false
globalOptionsDialog
:
false
,
zclExtensionDialog
:
false
}
},
...
...
@@ -208,6 +214,7 @@ export default {
ZclEndpointManager
,
ZclClusterManager
,
InitialContent
,
ZclExtensionDialog
},
}
</
script
>
...
...
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录