ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"base": {
|
||||
"containerId": "test-suite-container",
|
||||
"dataAttr": "data-mage-init"
|
||||
},
|
||||
"virtual": {
|
||||
"scriptData": {
|
||||
"*": {
|
||||
"tests/assets/script/component": {
|
||||
"config": {
|
||||
"foo": "bar"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"scriptId": "virtual-selector"
|
||||
},
|
||||
"bySelector": {
|
||||
"nodeData": {
|
||||
"tests/assets/script/component": {
|
||||
"data": {
|
||||
"foo": {
|
||||
"baz": "foo"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"scriptData": {
|
||||
"#node-by-selector": {
|
||||
"tests/assets/script/component": {
|
||||
"data": {
|
||||
"foo": {
|
||||
"bar": "baz"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"merged": {
|
||||
"tests/assets/script/component": {
|
||||
"data": {
|
||||
"foo": {
|
||||
"baz": "foo",
|
||||
"bar": "baz"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nodeId": "node-by-selector"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
define([
|
||||
'tests/assets/tools',
|
||||
'text!./config.json',
|
||||
'text!./templates/selector.html',
|
||||
'text!./templates/virtual.html'
|
||||
], function (tools, config, selectorTmpl, virtualTmpl) {
|
||||
'use strict';
|
||||
|
||||
return tools.init(config, {
|
||||
bySelector: selectorTmpl,
|
||||
virtual: virtualTmpl
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,15 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<div id="<%= containerId %>">
|
||||
<div
|
||||
id="<%= nodeId %>"
|
||||
<%= dataAttr %>='<%= JSON.stringify(nodeData) %>'></div>
|
||||
|
||||
<script type="text/x-magento-init">
|
||||
<%= JSON.stringify(scriptData) %>
|
||||
</script>
|
||||
</div>
|
||||
@@ -0,0 +1,11 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<div id="<%= containerId %>">
|
||||
<script id="<%= scriptId %>" type="text/x-magento-init">
|
||||
<%= JSON.stringify(scriptData) %>
|
||||
</script>
|
||||
</div>
|
||||
Reference in New Issue
Block a user