2013-09-05 16:02:48 +02:00
|
|
|
<!--
|
2017-01-11 16:24:33 +01:00
|
|
|
Copyright JS Foundation and other contributors, http://js.foundation
|
2013-09-05 16:02:48 +02:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
|
2020-01-15 03:40:48 +01:00
|
|
|
<script type="text/html" data-template-name="watch">
|
2013-09-05 16:02:48 +02:00
|
|
|
<div class="form-row node-input-filename">
|
2015-05-10 22:47:22 +02:00
|
|
|
<label for="node-input-files"><i class="fa fa-file"></i> <span data-i18n="watch.label.files"></span></label>
|
2016-10-28 09:37:33 +02:00
|
|
|
<input id="node-input-files" type="text" tabindex="1" data-i18n="[placeholder]watch.placeholder.files">
|
2013-09-05 16:02:48 +02:00
|
|
|
</div>
|
2017-02-07 21:32:16 +01:00
|
|
|
<div class="form-row">
|
|
|
|
<label> </label>
|
|
|
|
<input type="checkbox" id="node-input-recursive" style="display:inline-block; width:auto; vertical-align:top;">
|
|
|
|
<label for="node-input-recursive" style="width:70%;"> <span data-i18n="watch.label.recursive"></span></label>
|
|
|
|
</div>
|
2013-09-05 16:02:48 +02:00
|
|
|
<div class="form-row">
|
2015-05-10 22:47:22 +02:00
|
|
|
<label for="node-input-name"><i class="fa fa-tag"></i> <span data-i18n="common.label.name"></span></label>
|
2015-05-26 22:11:14 +02:00
|
|
|
<input type="text" id="node-input-name" data-i18n="[placeholder]common.label.name">
|
2013-09-05 16:02:48 +02:00
|
|
|
</div>
|
2015-05-10 22:47:22 +02:00
|
|
|
<div id="node-input-tip" class="form-tips"><span data-i18n="watch.tip"></span></div>
|
2013-09-05 16:02:48 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
RED.nodes.registerType('watch',{
|
2019-07-09 21:26:26 +02:00
|
|
|
category: 'storage',
|
2013-09-05 16:02:48 +02:00
|
|
|
defaults: {
|
|
|
|
name: {value:""},
|
2017-02-07 21:32:16 +01:00
|
|
|
files: {value:"",required:true},
|
|
|
|
recursive: {value:""}
|
2013-09-05 16:02:48 +02:00
|
|
|
},
|
|
|
|
color:"BurlyWood",
|
|
|
|
inputs:0,
|
|
|
|
outputs:1,
|
2019-06-21 13:36:20 +02:00
|
|
|
icon: "watch.svg",
|
2013-09-05 16:02:48 +02:00
|
|
|
label: function() {
|
2018-03-30 15:31:59 +02:00
|
|
|
return this.name||this.files||this._("watch.watch");
|
2013-09-05 16:02:48 +02:00
|
|
|
},
|
|
|
|
labelStyle: function() {
|
|
|
|
return this.name?"node_label_italic":"";
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|