Skip to content

Commit

Permalink
Simplify node names
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkarex committed Oct 10, 2023
1 parent b328e74 commit 4a39c3d
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 69 deletions.
4 changes: 2 additions & 2 deletions nodes/http-auth-cred.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script type="text/javascript">
/* global RED:false */
RED.nodes.registerType('node-red-http-basic-auth-cred', {
RED.nodes.registerType('http-basic-auth-cred', {
category: 'config',
defaults: {
name: { value: '' },
Expand All @@ -14,7 +14,7 @@
});
</script>

<script type="text/x-red" data-template-name="node-red-http-basic-auth-cred">
<script type="text/x-red" data-template-name="http-basic-auth-cred">
<div class="form-row">
<label for="node-config-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="texth" id="node-config-input-name" />
Expand Down
2 changes: 1 addition & 1 deletion nodes/http-auth-cred.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ module.exports = function (RED) {
this.password = config.password;
}

RED.nodes.registerType('node-red-http-basic-auth-cred', HttpAuthCredNode);
RED.nodes.registerType('http-basic-auth-cred', HttpAuthCredNode);
};
4 changes: 2 additions & 2 deletions nodes/http-auth-file.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script type="text/javascript">
/* global RED:false */
RED.nodes.registerType('node-red-http-basic-auth-file', {
RED.nodes.registerType('http-basic-auth-file', {
category: 'config',
defaults: {
name: { value: '' },
Expand All @@ -13,7 +13,7 @@
});
</script>

<script type="text/x-red" data-template-name="node-red-http-basic-auth-file">
<script type="text/x-red" data-template-name="http-basic-auth-file">
<div class="form-row">
<label for="node-config-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="texth" id="node-config-input-name" />
Expand Down
2 changes: 1 addition & 1 deletion nodes/http-auth-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ module.exports = function (RED) {
};
}

RED.nodes.registerType('node-red-http-basic-auth-file', HttpAuthFileNode);
RED.nodes.registerType('http-basic-auth-file', HttpAuthFileNode);
};
10 changes: 5 additions & 5 deletions nodes/http-auth.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script type="text/javascript">
/* global RED:false */
RED.nodes.registerType('node-red-http-basic-auth', {
RED.nodes.registerType('http-basic-auth', {
category: 'function',
inputs: 1,
outputs: 1,
defaults: {
name: { value: '' },
file: { value: '', type: 'node-red-http-basic-auth-file', required: false },
cred: { value: '', type: 'node-red-http-basic-auth-cred', required: false },
file: { value: '', type: 'http-basic-auth-file', required: false },
cred: { value: '', type: 'http-basic-auth-cred', required: false },
realm: { value: '' },
username: { value: '' },
password: { value: '' },
Expand All @@ -20,7 +20,7 @@
});
</script>

<script type="text/x-red" data-template-name="node-red-http-basic-auth">
<script type="text/x-red" data-template-name="http-basic-auth">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" />
Expand Down Expand Up @@ -63,7 +63,7 @@
</fieldset>
</script>

<script type="text/x-red" data-help-name="node-red-http-basic-auth">
<script type="text/x-red" data-help-name="http-basic-auth">
<p>Node-RED node for HTTP Basic Auth</p>

<p>
Expand Down
2 changes: 1 addition & 1 deletion nodes/http-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,5 @@ module.exports = function (RED) {
});
}

RED.nodes.registerType('node-red-http-basic-auth', HttpAuthNode);
RED.nodes.registerType('http-basic-auth', HttpAuthNode);
};
85 changes: 32 additions & 53 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alexandrainst/node-red-http-basic-auth",
"version": "2.0.1",
"version": "2.1.0",
"description": "Node-RED node for HTTP Basic Authorization",
"keywords": [
"node-red",
Expand Down Expand Up @@ -33,9 +33,9 @@
"node-red": {
"version": ">=12",
"nodes": {
"node-red-http-basic-auth": "nodes/http-auth.js",
"node-red-http-basic-auth-cred": "nodes/http-auth-cred.js",
"node-red-http-basic-auth-file": "nodes/http-auth-file.js"
"http-basic-auth": "nodes/http-auth.js",
"http-basic-auth-cred": "nodes/http-auth-cred.js",
"http-basic-auth-file": "nodes/http-auth-file.js"
}
},
"dependencies": {
Expand Down

0 comments on commit 4a39c3d

Please sign in to comment.