node-red-contrib-snap4city-user
Version:
Nodes for Snap4city project, targeted to standard user (no developer)
61 lines (55 loc) • 2.38 kB
HTML
<!--/* NODE-RED-CONTRIB-SNAP4CITY-USER
Copyright (C) 2018 DISIT Lab http://www.disit.org - University of Florence
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */-->
<script type="text/javascript">
RED.nodes.registerType('get-my-delegated', {
category: 'S4CData',
color: '#b0dfe3',
defaults: {
name: {
value: ""
},
authentication: {
type: "snap4city-authentication",
required: false
}
},
outputs: 1,
inputs: 1,
icon: "white-globe.png",
label: function () {
return this.name || "get-my-delegated";
}
});
</script>
<script type="text/x-red" data-template-name="get-my-delegated">
<div class="form-row" id="rowAuthentication">
<label for="node-input-authentication">Authentication</label>
<input type="text" id="node-input-authentication">
</div>
<div class="form-row">
<label for="node-input-name">Name</label>
<input type="text" autocomplete="off" id="node-input-name" placeholder="Name">
</div>
<div class="form-tips" id="tipAuthentication" style="max-width: none">
You must have an account with Snap4city to use this node. You can register for one
<a href="https://www.snap4city.org"
target="_blank">here</a>.
</div>
</script>
<script type="text/x-red" data-help-name="get-my-delegated">
<p>It allows to retrieve information related to users to whom you allow to see your data generated from this application.</p>
<h3>Outputs</h3>
<dl class="message-properties">
<dd> Returns an array containing the information about delegated users </dd>
</dl>
</script>