[CCSDK-28] populated the seed code for dgbuilder
[ccsdk/distribution.git] / dgbuilder / core_nodes / core / 98-unknown.html
1 <!--
2   Copyright 2013 IBM Corp.
3
4   Licensed under the Apache License, Version 2.0 (the "License");
5   you may not use this file except in compliance with the License.
6   You may obtain a copy of the License at
7
8   http://www.apache.org/licenses/LICENSE-2.0
9
10   Unless required by applicable law or agreed to in writing, software
11   distributed under the License is distributed on an "AS IS" BASIS,
12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   See the License for the specific language governing permissions and
14   limitations under the License.
15 -->
16
17 <script type="text/x-red" data-template-name="unknown">
18     <div class="form-tips"><p>This node is a type unknown to your installation of Node-RED.</p>
19     <p><i>If you deploy with the node in this state, it will lose all of its configuration.</i></p>
20     <p>See the Info side bar for more help</p></div>
21 </script>
22
23 <script type="text/x-red" data-help-name="unknown">
24     <p>This node is a type unknown to your installation of Node-RED.</p>
25     <p><i>If you deploy with the node in this state, it will lose all of its configuration.</i></p>
26     <p>It is possible this node type is already installed, but is missing a dependency. Check the Node-RED start-up log for
27        any error messages associated with the missing node type. Use <b>npm install &lt;module&gt;</b> to install any missing modules
28        and restart Node-RED and reimport the nodes.</p>
29     <p>Otherwise, you should contact the author of the flow to obtain a copy of the missing node type.</p>
30 </script>
31
32 <script type="text/javascript">
33     RED.nodes.registerType('unknown',{
34         category: 'unknown',
35         color:"#fff0f0",
36         defaults: {
37             name: {value:""}
38         },
39         inputs:1,
40         outputs:1,
41         icon: "",
42         label: function() {
43             return "("+this.name+")"||"unknown";
44         },
45         labelStyle: function() {
46             return "node_label_unknown";
47         }
48     });
49 </script>