mirror of
https://github.com/Skylar-Tech/node-red-contrib-matrix-chat.git
synced 2026-05-19 05:33:18 -06:00
Compare commits
4 Commits
653d7f5fc9
...
v0.8.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 5de1274def | |||
| 1b54bc03eb | |||
| 65edc94854 | |||
| 2b2da4faf7 |
@@ -1,6 +1,6 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
RED.nodes.registerType('matrix-send-file',{
|
RED.nodes.registerType('matrix-send-file',{
|
||||||
category: 'matrix',
|
category: 'matrix (deprecated)',
|
||||||
color: '#00b7ca',
|
color: '#00b7ca',
|
||||||
icon: "matrix.png",
|
icon: "matrix.png",
|
||||||
outputLabels: ["success", "error"],
|
outputLabels: ["success", "error"],
|
||||||
@@ -20,6 +20,26 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/html" data-template-name="matrix-send-file">
|
<script type="text/html" data-template-name="matrix-send-file">
|
||||||
|
<style>
|
||||||
|
.matrix-chat-alert {
|
||||||
|
color: #b94a48;
|
||||||
|
background-color: #f2dede;
|
||||||
|
border-color: #eed3d7;
|
||||||
|
margin: 30px 0;
|
||||||
|
padding: 8px 35px 8px 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.matrix-chat-alert a, .matrix-chat-alert a:active, .matrix-chat-alert a:hover {
|
||||||
|
color: #b94a48;
|
||||||
|
text-decoration: underline;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div class="matrix-chat-alert">
|
||||||
|
<strong>Deprecation Warning!</strong> This node will be removed in a future release. We have consolidated the Send File & Send Image nodes into a single Upload File node (with more options). Read <a href="https://github.com/Skylar-Tech/node-red-contrib-matrix-chat/issues/102" target="_blank">here</a> for more info.<br>
|
||||||
|
<br>
|
||||||
|
Replace this node with a File Upload node attached to a Send Message node to accomplish the same behavior.
|
||||||
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
||||||
<input type="text" id="node-input-name" placeholder="Name">
|
<input type="text" id="node-input-name" placeholder="Name">
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
RED.nodes.registerType('matrix-send-image',{
|
RED.nodes.registerType('matrix-send-image',{
|
||||||
category: 'matrix',
|
category: 'matrix (deprecated)',
|
||||||
color: '#00b7ca',
|
color: '#00b7ca',
|
||||||
icon: "matrix.png",
|
icon: "matrix.png",
|
||||||
outputLabels: ["success", "error"],
|
outputLabels: ["success", "error"],
|
||||||
@@ -20,6 +20,26 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/html" data-template-name="matrix-send-image">
|
<script type="text/html" data-template-name="matrix-send-image">
|
||||||
|
<style>
|
||||||
|
.matrix-chat-alert {
|
||||||
|
color: #b94a48;
|
||||||
|
background-color: #f2dede;
|
||||||
|
border-color: #eed3d7;
|
||||||
|
margin: 30px 0;
|
||||||
|
padding: 8px 35px 8px 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.matrix-chat-alert a, .matrix-chat-alert a:active, .matrix-chat-alert a:hover {
|
||||||
|
color: #b94a48;
|
||||||
|
text-decoration: underline;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div class="matrix-chat-alert">
|
||||||
|
<strong>Deprecation Warning!</strong> This node will be removed in a future release. We have consolidated the Send File & Send Image nodes into a single Upload File node (with more options). Read <a href="https://github.com/Skylar-Tech/node-red-contrib-matrix-chat/issues/102" target="_blank">here</a> for more info.<br>
|
||||||
|
<br>
|
||||||
|
Replace this node with a File Upload node attached to a Send Message node to accomplish the same behavior.
|
||||||
|
</div>
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
||||||
<input type="text" id="node-input-name" placeholder="Name">
|
<input type="text" id="node-input-name" placeholder="Name">
|
||||||
|
|||||||
@@ -489,7 +489,10 @@ module.exports = function(RED) {
|
|||||||
|
|
||||||
matrixClient.login(
|
matrixClient.login(
|
||||||
'm.login.password', {
|
'm.login.password', {
|
||||||
|
identifier: {
|
||||||
|
type: 'm.id.user',
|
||||||
user: userId,
|
user: userId,
|
||||||
|
},
|
||||||
password: password,
|
password: password,
|
||||||
initial_device_display_name: displayName
|
initial_device_display_name: displayName
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user