nodeskini 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/client/archive/bundle.js +11528 -0
- package/client/archive/golem.html +60 -0
- package/client/archive/golemClient.js +595 -0
- package/client/archive/golembundle.js +11634 -0
- package/client/archive/sequencer.html +43 -0
- package/client/archive/sequenceurClient.js +815 -0
- package/client/archive/stylegolem.css +158 -0
- package/client/archive/stylesequenceur.css +204 -0
- package/client/clientListe/Sortable-master/.circleci/config.yml +33 -0
- package/client/clientListe/Sortable-master/.editorconfig +15 -0
- package/client/clientListe/Sortable-master/.github/ISSUE_TEMPLATE/bug-report.md +73 -0
- package/client/clientListe/Sortable-master/.github/ISSUE_TEMPLATE/custom-template.md +48 -0
- package/client/clientListe/Sortable-master/.github/ISSUE_TEMPLATE/feature-request.md +41 -0
- package/client/clientListe/Sortable-master/.jshintrc +25 -0
- package/client/clientListe/Sortable-master/.testcaferc.json +7 -0
- package/client/clientListe/Sortable-master/CONTRIBUTING.md +26 -0
- package/client/clientListe/Sortable-master/LICENSE +21 -0
- package/client/clientListe/Sortable-master/README.md +813 -0
- package/client/clientListe/Sortable-master/Sortable.js +3709 -0
- package/client/clientListe/Sortable-master/Sortable.min.js +2 -0
- package/client/clientListe/Sortable-master/Sortable.min.old.js +2 -0
- package/client/clientListe/Sortable-master/Sortable.min.old.old.js +2 -0
- package/client/clientListe/Sortable-master/babel.config.js +27 -0
- package/client/clientListe/Sortable-master/bower.json +30 -0
- package/client/clientListe/Sortable-master/entry/entry-complete.js +8 -0
- package/client/clientListe/Sortable-master/entry/entry-core.js +19 -0
- package/client/clientListe/Sortable-master/entry/entry-defaults.js +19 -0
- package/client/clientListe/Sortable-master/index.html +460 -0
- package/client/clientListe/Sortable-master/modular/sortable.complete.esm.js +3701 -0
- package/client/clientListe/Sortable-master/modular/sortable.core.esm.js +3698 -0
- package/client/clientListe/Sortable-master/modular/sortable.esm.js +3699 -0
- package/client/clientListe/Sortable-master/package-lock.json +5704 -0
- package/client/clientListe/Sortable-master/package.json +56 -0
- package/client/clientListe/Sortable-master/plugins/AutoScroll/AutoScroll.js +270 -0
- package/client/clientListe/Sortable-master/plugins/AutoScroll/README.md +80 -0
- package/client/clientListe/Sortable-master/plugins/AutoScroll/index.js +1 -0
- package/client/clientListe/Sortable-master/plugins/MultiDrag/MultiDrag.js +617 -0
- package/client/clientListe/Sortable-master/plugins/MultiDrag/README.md +96 -0
- package/client/clientListe/Sortable-master/plugins/MultiDrag/index.js +1 -0
- package/client/clientListe/Sortable-master/plugins/OnSpill/OnSpill.js +79 -0
- package/client/clientListe/Sortable-master/plugins/OnSpill/README.md +60 -0
- package/client/clientListe/Sortable-master/plugins/OnSpill/index.js +1 -0
- package/client/clientListe/Sortable-master/plugins/README.md +178 -0
- package/client/clientListe/Sortable-master/plugins/Swap/README.md +55 -0
- package/client/clientListe/Sortable-master/plugins/Swap/Swap.js +90 -0
- package/client/clientListe/Sortable-master/plugins/Swap/index.js +1 -0
- package/client/clientListe/Sortable-master/scripts/banner.js +8 -0
- package/client/clientListe/Sortable-master/scripts/build.js +17 -0
- package/client/clientListe/Sortable-master/scripts/esm-build.js +28 -0
- package/client/clientListe/Sortable-master/scripts/minify.js +11 -0
- package/client/clientListe/Sortable-master/scripts/test-compat.js +30 -0
- package/client/clientListe/Sortable-master/scripts/test.js +21 -0
- package/client/clientListe/Sortable-master/scripts/umd-build.js +15 -0
- package/client/clientListe/Sortable-master/src/Animation.js +175 -0
- package/client/clientListe/Sortable-master/src/BrowserInfo.js +12 -0
- package/client/clientListe/Sortable-master/src/EventDispatcher.js +57 -0
- package/client/clientListe/Sortable-master/src/PluginManager.js +87 -0
- package/client/clientListe/Sortable-master/src/Sortable.js +1971 -0
- package/client/clientListe/Sortable-master/src/utils.js +556 -0
- package/client/clientListe/Sortable-master/st/app.js +224 -0
- package/client/clientListe/Sortable-master/st/iframe/frame.html +32 -0
- package/client/clientListe/Sortable-master/st/iframe/index.html +49 -0
- package/client/clientListe/Sortable-master/st/logo.png +0 -0
- package/client/clientListe/Sortable-master/st/og-image.png +0 -0
- package/client/clientListe/Sortable-master/st/prettify/prettify.css +1 -0
- package/client/clientListe/Sortable-master/st/prettify/prettify.js +46 -0
- package/client/clientListe/Sortable-master/st/prettify/run_prettify.js +64 -0
- package/client/clientListe/Sortable-master/st/saucelabs.svg +1 -0
- package/client/clientListe/Sortable-master/st/theme.css +254 -0
- package/client/clientListe/Sortable-master/tests/Sortable.compat.test.js +39 -0
- package/client/clientListe/Sortable-master/tests/Sortable.test.js +386 -0
- package/client/clientListe/Sortable-master/tests/dual-list.html +34 -0
- package/client/clientListe/Sortable-master/tests/empty-list.html +30 -0
- package/client/clientListe/Sortable-master/tests/filter.html +27 -0
- package/client/clientListe/Sortable-master/tests/handles.html +27 -0
- package/client/clientListe/Sortable-master/tests/nested.html +67 -0
- package/client/clientListe/Sortable-master/tests/single-list.html +25 -0
- package/client/clientListe/Sortable-master/tests/style.css +18 -0
- package/client/clientListe/clientListe.html +148 -0
- package/client/clientListe/clientListe.js +1508 -0
- package/client/clientListe/clientListebundle.js +13164 -0
- package/client/clientListe/images/poubelle.png +0 -0
- package/client/clientListe/images/start.png +0 -0
- package/client/clientListe/images/stop.png +0 -0
- package/client/clientListe/images/submit.png +0 -0
- package/client/clientListe/sortable-theme-bootstrap.css +90 -0
- package/client/configurateur/configReact.js +273 -0
- package/client/configurateur/configReactbundle.js +295 -0
- package/client/configurateur/configurateur.css +95 -0
- package/client/configurateur/configurateur.html +48 -0
- package/client/configurateur/lib/jexcel.css +755 -0
- package/client/configurateur/lib/jexcel.js +14970 -0
- package/client/configurateur/lib/jsuites.css +2801 -0
- package/client/configurateur/lib/jsuites.js +11822 -0
- package/client/configurateur/lib/react-dom.production.min.js +239 -0
- package/client/configurateur/lib/react.production.min.js +32 -0
- package/client/configurateur/src/configReact.js +247 -0
- package/client/controleur/clientcontroleur.js +536 -0
- package/client/controleur/clientcontroleur.test.js +282 -0
- package/client/controleur/controleur.html +51 -0
- package/client/controleur/controleurbundle.js +565 -0
- package/client/controleur/stylecontroleur.css +236 -0
- package/client/controleurHH/controleurHH.html +71 -0
- package/client/controleurHH/controleurHH.js +252 -0
- package/client/controleurHH/styles/index.css +320 -0
- package/client/controleurHH/styles/material.css +11552 -0
- package/client/parametrage/paramReact.js +473 -0
- package/client/parametrage/paramReactbundle.js +500 -0
- package/client/parametrage/parametrage.css +111 -0
- package/client/parametrage/parametrage.html +163 -0
- package/client/parametrage/src/paramReact.js +459 -0
- package/client/score/hash.js +83 -0
- package/client/score/p5.min.js +3 -0
- package/client/score/parto1.js +1171 -0
- package/client/score/parto1bundle.js +1181 -0
- package/client/score/processing.min.js +431 -0
- package/client/score/score.html +15 -0
- package/client/score/score.js +34 -0
- package/client/simulateurListe/simulateurFork.js +750 -0
- package/client/simulateurListe/simulateurFork.mjs +681 -0
- package/client/simulateurListe/simulateurForkSansReorg.js +569 -0
- package/client/simulateurListe/simulateurListe.js +628 -0
- package/myReact/archive/Nodeemitvaluedlocal1.hh.js +52 -0
- package/myReact/archive/abort-parNode.js +79 -0
- package/myReact/archive/abroNode.js +169 -0
- package/myReact/archive/abroNode2.js +80 -0
- package/myReact/archive/atom.compile.hh.js +51 -0
- package/myReact/archive/await-countNode.js +67 -0
- package/myReact/archive/await-nowvalNode.js +44 -0
- package/myReact/archive/callHH.js +96 -0
- package/myReact/archive/emit-if2.hh.compiled.js +113 -0
- package/myReact/archive/every1Node.js +35 -0
- package/myReact/archive/if-runNode.js +74 -0
- package/myReact/archive/if1Node.js +43 -0
- package/myReact/archive/makeawait.js +0 -0
- package/myReact/archive/myReact.old.js +684 -0
- package/myReact/archive/orchestration.js +281 -0
- package/myReact/archive/orchestration1.js +132 -0
- package/myReact/archive/orchestration1.xml +465 -0
- package/myReact/archive/orchestration2.js +161 -0
- package/myReact/archive/orchestrationHH.mano.js +280 -0
- package/myReact/archive/orchestrationHHTest.js +428 -0
- package/myReact/archive/orchestrationHHTest.xml +234 -0
- package/myReact/archive/orchestrationHHTestRun.js +104 -0
- package/myReact/archive/orchestrationHHTestRun.xml +34 -0
- package/myReact/archive/orchestrationTest0.js +178 -0
- package/myReact/archive/orchestrationTest1.js +181 -0
- package/myReact/archive/orchestrationTest2.js +281 -0
- package/myReact/archive/run3pointsNode.js +59 -0
- package/myReact/archive/runNode.js +123 -0
- package/myReact/archive/runNode2.js +91 -0
- package/myReact/archive/testAwait1.js +141 -0
- package/myReact/archive/testAwait1.xml +86 -0
- package/myReact/archive/testEvery1.js +122 -0
- package/myReact/archive/testEvery1.xml +79 -0
- package/myReact/archive/testHH1.js +135 -0
- package/myReact/archive/testHH1.xml +86 -0
- package/myReact/archive/testHH1revu.js +104 -0
- package/myReact/archive/testHH2.js +122 -0
- package/myReact/archive/testHH2.xml +79 -0
- package/myReact/archive/testHH3.js +130 -0
- package/myReact/archive/testHH3.xml +86 -0
- package/myReact/archive/testHHabort.js +121 -0
- package/myReact/archive/testHHabort.xml +83 -0
- package/myReact/archive/testMakeawait.js +202 -0
- package/myReact/archive/testRun1.js +168 -0
- package/myReact/archive/testRun1.xml +142 -0
- package/myReact/archive/titi.js +28 -0
- package/myReact/archive/titi.xml +110 -0
- package/myReact/archive/toto.js +73 -0
- package/myReact/archive/toto.xml +198 -0
- package/myReact/archive/trap-await-parallelNode.js +123 -0
- package/myReact/inutiles/hiver2022.xml +804 -0
- package/myReact/inutiles/hopeNode.xml +459 -0
- package/myReact/inutiles/mars2022.xml +871 -0
- package/myReact/inutiles/mystique1.xml +318 -0
- package/myReact/inutiles/mystiqueOSC.xml +277 -0
- package/myReact/inutiles/opus5Node.xml +1271 -0
- package/myReact/inutiles/opus5NodeLinux.xml +1241 -0
- package/myReact/inutiles/orchestrationHH.xml +541 -0
- package/myReact/inutiles/orchestrationHH2.xml +547 -0
- package/myReact/inutiles/testHH.xml +95 -0
- package/myReact/inutiles/trouveLaPercuTenor.xml +349 -0
- package/myReact/myReact.js +744 -0
- package/myReact/myReact.min.js +1 -0
- package/myReact/orchestrationHH.js +311 -0
- package/myReact/orchestrationHH.mjs +436 -0
- package/myReact/orchestrationHH.mjs.map +1 -0
- package/package.json +46 -0
- package/serveur/OSCandMidi.mjs +361 -0
- package/serveur/computeScore.mjs +415 -0
- package/serveur/controleDAW.mjs +1149 -0
- package/serveur/defaultSession.csv +2 -0
- package/serveur/defaultSkiniParametres.js +119 -0
- package/serveur/gameOSC.mjs +96 -0
- package/serveur/groupeClientsSons.mjs +1014 -0
- package/serveur/ipConfig.json +24 -0
- package/serveur/ipConfig127.json +19 -0
- package/serveur/ipConfig75.json +17 -0
- package/serveur/ipConfigBH.json +19 -0
- package/serveur/ipConfigLocal.json +19 -0
- package/serveur/midiConfig.json +26 -0
- package/serveur/midiConfigBH.json +26 -0
- package/serveur/midiConfigVoid.json +3 -0
- package/serveur/midimix.mjs +570 -0
- package/serveur/saveParam.mjs +159 -0
- package/serveur/skiniParametres.good.js +132 -0
- package/serveur/skiniParametres.js +106 -0
- package/serveur/utilsHHSkini.hh.js +64 -0
- package/serveur/utilsSkini.mjs +137 -0
- package/serveur/websocketServer.mjs +2052 -0
- package/serveur/workerInterfaceZ.mjs +327 -0
- package/serveur/workerSynchro.mjs +49 -0
- package/skini.mjs +141 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @fileOverview Configurateur in React.js
|
|
4
|
+
* compile JSX to js, launch this in the terminal, in ./client/configurateur
|
|
5
|
+
* npx babel --watch src --out-dir . --presets react-app/prod
|
|
6
|
+
* Do also: browserify configReact.js -o configReactbundle.js
|
|
7
|
+
*
|
|
8
|
+
* @copyright (C) 2022 Bertrand Petit-Hédelin
|
|
9
|
+
*
|
|
10
|
+
* This program is free software: you can redistribute it and/or modify
|
|
11
|
+
* it under the terms of the GNU General Public License as published by
|
|
12
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
13
|
+
* any later version.
|
|
14
|
+
*
|
|
15
|
+
* This program is distributed in the hope that it will be useful,
|
|
16
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
17
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
18
|
+
* GNU General Public License for more details.
|
|
19
|
+
*
|
|
20
|
+
* You should have received a copy of the GNU General Public License
|
|
21
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
22
|
+
*
|
|
23
|
+
* @version 1.2
|
|
24
|
+
* @author Bertrand Petit-Hédelin <bertrand@hedelin.fr>
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
var par;
|
|
29
|
+
var ipConfig = require("../../serveur/ipConfig.json");
|
|
30
|
+
|
|
31
|
+
var index = Math.floor((Math.random() * 10000) + 1); // Pour identifier le client
|
|
32
|
+
var ws;
|
|
33
|
+
|
|
34
|
+
var msg = { // On met des valeurs pas defaut
|
|
35
|
+
type: "configuration",
|
|
36
|
+
text: "ECRAN_NOIR",
|
|
37
|
+
pseudo: "Anonyme",
|
|
38
|
+
value: 0
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function saisiClip() {
|
|
42
|
+
var DAWNote = document.getElementById("numClip").value;
|
|
43
|
+
var DAWChannel = Math.floor(DAWNote / 127) + 1;
|
|
44
|
+
DAWNote = DAWNote % 127;
|
|
45
|
+
if (DAWChannel > 15) {
|
|
46
|
+
console.log("Web Socket Server.js : pushNoteOnDAW: Nombre de canaux midi dépassé.");
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
var msg = {
|
|
51
|
+
type: "configDAWMidiNote",
|
|
52
|
+
bus: par.busMidiDAW,
|
|
53
|
+
channel: DAWChannel,
|
|
54
|
+
note: DAWNote
|
|
55
|
+
}
|
|
56
|
+
ws.send(JSON.stringify(msg));
|
|
57
|
+
}
|
|
58
|
+
window.saisiClip = saisiClip;
|
|
59
|
+
|
|
60
|
+
function saisiCC() {
|
|
61
|
+
var controlChange = parseFloat(document.getElementById("numCC").value);
|
|
62
|
+
var controlChangeValue = parseFloat(document.getElementById("valueCC").value);
|
|
63
|
+
var DAWChannel = 1;
|
|
64
|
+
if (controlChange != undefined && controlChangeValue != undefined) {
|
|
65
|
+
var msg = {
|
|
66
|
+
type: "configDAWCC",
|
|
67
|
+
bus: par.busMidiDAW,
|
|
68
|
+
channel: DAWChannel,
|
|
69
|
+
CC: controlChange,
|
|
70
|
+
CCValue: controlChangeValue
|
|
71
|
+
}
|
|
72
|
+
ws.send(JSON.stringify(msg));
|
|
73
|
+
} else {
|
|
74
|
+
alert("CC or CC value undefined:", controlChange, controlChangeValue);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
window.saisiCC = saisiCC;
|
|
78
|
+
|
|
79
|
+
function saisiOSC(){
|
|
80
|
+
let IpOSC = document.getElementById("IpOSC").value;
|
|
81
|
+
let messageOSC = document.getElementById("messageOSC").value;
|
|
82
|
+
let value1OSC = document.getElementById("val1OSC").value;
|
|
83
|
+
|
|
84
|
+
if (IpOSC != '' && messageOSC != '' && value1OSC != '') {
|
|
85
|
+
var msg = {
|
|
86
|
+
type: "sendOSC",
|
|
87
|
+
IpAddress: IpOSC,
|
|
88
|
+
message: messageOSC,
|
|
89
|
+
value1: value1OSC
|
|
90
|
+
}
|
|
91
|
+
ws.send(JSON.stringify(msg));
|
|
92
|
+
} else {
|
|
93
|
+
alert("OSC command incomplete");
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
window.saisiOSC = saisiOSC;
|
|
97
|
+
|
|
98
|
+
function initWSSocket(host) {
|
|
99
|
+
|
|
100
|
+
window.resizeTo(900, 600);
|
|
101
|
+
|
|
102
|
+
ws = new WebSocket("ws://" + host + ":" + ipConfig.websocketServeurPort);
|
|
103
|
+
console.log("configurateur ws://" + host + ":" + ipConfig.websocketServeurPort);
|
|
104
|
+
|
|
105
|
+
ws.onopen = function (event) {
|
|
106
|
+
var msg = {
|
|
107
|
+
type: "startSpectateur",
|
|
108
|
+
text: "configurateur",
|
|
109
|
+
id: index
|
|
110
|
+
}
|
|
111
|
+
console.log("ID sent to server:", msg.id);
|
|
112
|
+
ws.send(JSON.stringify(msg));
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
//Traitement de la Réception sur le client
|
|
116
|
+
ws.onmessage = function (event) {
|
|
117
|
+
var msgRecu = JSON.parse(event.data);
|
|
118
|
+
switch (msgRecu.type) {
|
|
119
|
+
|
|
120
|
+
case "message":
|
|
121
|
+
console.log(msgRecu);
|
|
122
|
+
//document.getElementById("MessageDuServeur").innerHTML = msgRecu.value;
|
|
123
|
+
break;
|
|
124
|
+
|
|
125
|
+
case "skiniParametres":
|
|
126
|
+
console.log("skiniParametres:", msgRecu.value);
|
|
127
|
+
console.log("skiniParametres:", msgRecu.descriptors);
|
|
128
|
+
par = msgRecu.value;
|
|
129
|
+
var options = {
|
|
130
|
+
data: msgRecu.descriptors,
|
|
131
|
+
minDimensions: [14, 14],
|
|
132
|
+
columns: [
|
|
133
|
+
{ type: 'text', width: 80, title: 'Note' },
|
|
134
|
+
{ type: 'text', width: 80, title: 'Note stop' },
|
|
135
|
+
{ type: 'text', width: 80, title: 'Flag' },
|
|
136
|
+
{ type: 'text', width: 120, title: 'Text' },
|
|
137
|
+
{ type: 'text', width: 120, title: 'Sound file' },
|
|
138
|
+
{ type: 'text', width: 80, title: 'Fifo' },
|
|
139
|
+
{ type: 'text', width: 80, title: 'Slot' },
|
|
140
|
+
{ type: 'text', width: 80, title: 'Type' },
|
|
141
|
+
{ type: 'text', width: 80, title: 'Vert. type' },
|
|
142
|
+
{ type: 'text', width: 90, title: 'Group Index' },
|
|
143
|
+
{ type: 'text', width: 80, title: 'Duration' },
|
|
144
|
+
{ type: 'text', width: 100, title: 'IP address' },
|
|
145
|
+
{ type: 'text', width: 80, title: 'Buffer num' },
|
|
146
|
+
{ type: 'text', width: 80, title: 'Level' }
|
|
147
|
+
]
|
|
148
|
+
};
|
|
149
|
+
ReactDOM.render(<Jspreadsheet options={options} />, document.getElementById('spreadsheet'));
|
|
150
|
+
break;
|
|
151
|
+
|
|
152
|
+
default: console.log("Client reçoit un message inconnu");
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
ws.onclose = function (event) {
|
|
157
|
+
console.log("Client: websocket closed for :", index);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
window.onbeforeunload = function () {
|
|
161
|
+
msg.type = "closeSpectateur";
|
|
162
|
+
msg.text = "DISCONNECT_SPECTATEUR";
|
|
163
|
+
ws.send(JSON.stringify(msg));
|
|
164
|
+
ws.close();
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
window.initWSSocket = initWSSocket;
|
|
168
|
+
|
|
169
|
+
// Pour test, inutile sinon
|
|
170
|
+
class LikeButton extends React.Component {
|
|
171
|
+
constructor(props) {
|
|
172
|
+
super(props);
|
|
173
|
+
this.state = { liked: false };
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
render() {
|
|
177
|
+
if (this.state.liked) {
|
|
178
|
+
return ipConfig.websocketServeurPort;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
return (
|
|
182
|
+
<button onClick={() => this.setState({ liked: true })}>
|
|
183
|
+
Like
|
|
184
|
+
</button>
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
class Jspreadsheet extends React.Component {
|
|
190
|
+
constructor(props) {
|
|
191
|
+
super(props);
|
|
192
|
+
this.options = props.options;
|
|
193
|
+
this.wrapper = React.createRef();
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
hideSomeColumns = function (obj) {
|
|
197
|
+
//obj.hideColumn(2);
|
|
198
|
+
//obj.hideColumn(6);
|
|
199
|
+
//obj.hideColumn(8);
|
|
200
|
+
//obj.hideColumn(11);
|
|
201
|
+
//obj.hideColumn(12);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
componentDidMount = function () {
|
|
205
|
+
this.el = jspreadsheet(this.wrapper.current, this.options);
|
|
206
|
+
this.hideSomeColumns(this.el);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
addRow = function () {
|
|
210
|
+
this.el.insertRow();
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
updateDescriptors = function () {
|
|
214
|
+
let descr;
|
|
215
|
+
descr = this.el.getData();
|
|
216
|
+
console.log(descr);
|
|
217
|
+
var msg = {
|
|
218
|
+
type: "updateSession",
|
|
219
|
+
data: descr
|
|
220
|
+
}
|
|
221
|
+
ws.send(JSON.stringify(msg));
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
render() {
|
|
225
|
+
return (
|
|
226
|
+
<div>
|
|
227
|
+
<div ref={this.wrapper} />
|
|
228
|
+
<br />
|
|
229
|
+
<input
|
|
230
|
+
className="button"
|
|
231
|
+
type="button"
|
|
232
|
+
value="Add new row"
|
|
233
|
+
onClick={() => this.addRow()}
|
|
234
|
+
/>
|
|
235
|
+
<input
|
|
236
|
+
className="button"
|
|
237
|
+
type="button"
|
|
238
|
+
value="Update descriptors"
|
|
239
|
+
onClick={() => this.updateDescriptors()}
|
|
240
|
+
/>
|
|
241
|
+
</div>
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
//let domContainer = document.querySelector('#like_button_container');
|
|
247
|
+
//ReactDOM.render(<LikeButton />, domContainer);
|