Skip to content

Commit 4d92853

Browse files
committed
Added missing identifiers + archived less used.
1 parent 815bc8f commit 4d92853

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+336
-488
lines changed

components/connections.html renamed to archived/connections.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script total>
22

3+
exports.id = 'networkconnections';
34
exports.name = 'Connections';
45
exports.icon = 'ti ti-network';
56
exports.group = 'Linux Monitoring';
File renamed without changes.
File renamed without changes.

components/hdd.html renamed to archived/hdd.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script total>
22

3+
exports.id = 'hdd';
34
exports.name = 'HDD';
45
exports.icon = 'ti ti-hdd';
56
exports.group = 'Linux Monitoring';

components/memory.html renamed to archived/memory.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script total>
22

3+
exports.id = 'memory';
34
exports.name = 'Memory';
45
exports.icon = 'ti ti-hdd';
56
exports.group = 'Linux Monitoring';

components/middlewareexec.html renamed to archived/middlewareexec.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script total>
2+
23
exports.id = 'middleware_exec';
34
exports.name = 'Middleware Exec';
45
exports.group = 'Common';

components/middlewarefunction.html renamed to archived/middlewarefunction.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script total>
2+
23
exports.id = 'middleware_function';
34
exports.name = 'Middleware Function';
45
exports.group = 'Common';

components/process.html renamed to archived/process.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script total>
22

3+
exports.id = 'process';
34
exports.name = 'Process';
45
exports.icon = 'ti ti-chart-bar';
56
exports.group = 'Linux Monitoring';

components/qrgenerator.html renamed to archived/qrgenerator.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878

7979
<readme>
8080
## Input
81+
8182
```js
8283
{
8384
text: 'text to write to qr code',
@@ -86,6 +87,7 @@
8687
}
8788
```
8889
## Output
90+
8991
```js
9092
{
9193
text: 'text to write to qr code',
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

components/tail.html renamed to archived/tail.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script total>
22

3+
exports.id = 'tail';
34
exports.name = 'Tail';
45
exports.icon = 'ti ti-file';
56
exports.group = 'Linux Monitoring';

components/chatgpt.html

Lines changed: 52 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -107,89 +107,87 @@
107107
</script>
108108

109109
<readme>
110-
This component can talk to ChatGPT.
111-
openai
110+
This component can talk to ChatGPT.
112111

113-
# input
112+
## Input
114113

115-
Input will depend on selected model
114+
Input will depend on selected model
116115

117-
- __CPT 3.5 Turbo__
118-
```js
116+
- __CPT 3.5 Turbo__
117+
```js
119118

120-
// Object
121-
{
122-
messages : [{ role: 'user', content: 'Text' }]
123-
}
119+
// Object
120+
{
121+
messages : [{ role: 'user', content: 'Text' }]
122+
}
124123

125-
// or
124+
// or
126125

127126

128-
// Array
129-
[{ role: 'assistant', content: 'Text' }]
130-
```
127+
// Array
128+
[{ role: 'assistant', content: 'Text' }]
129+
```
131130

132-
- __Whisper__
133-
```js
131+
- __Whisper__
132+
```js
134133

135-
// Object
136-
{
137-
path : 'path-to-file'
138-
}
134+
// Object
135+
{
136+
path : 'path-to-file'
137+
}
139138

140-
// or
139+
// or
141140

142141

143-
// String
144-
'path-to-file'
145-
```
142+
// String
143+
'path-to-file'
144+
```
146145

147-
- __Other__
148-
```js
146+
- __Other__
147+
```js
149148

150-
// Object
151-
{
152-
text : 'your question'
153-
}
149+
// Object
150+
{
151+
text : 'your question'
152+
}
154153

155-
// or
154+
// or
156155

157156

158-
// String
159-
'your question'
160-
```
157+
// String
158+
'your question'
159+
```
161160

162161

163-
# output
162+
## Output
164163

165-
Output also depends on selected model
166-
- __CPT 3.5 Turbo__
167-
```js
168-
'Response from assistant'
169-
```
164+
Output also depends on selected model
165+
- __CPT 3.5 Turbo__
166+
```js
167+
'Response from assistant'
168+
```
170169

171-
- __Whisper__
172-
```js
170+
- __Whisper__
171+
```js
173172

174-
// Object
175-
{
176-
text : 'transcipted text'
177-
}
178-
```
179-
- __Other__
180-
```js
173+
// Object
174+
{
175+
text : 'transcipted text'
176+
}
177+
```
178+
- __Other__
179+
```js
181180

182-
// String
183-
'your question'
184-
```
181+
// String
182+
'your question'
183+
```
185184
</readme>
186185

187186
<settings>
188187
<div class="padding">
189188
<ui-component name="input" path="?.apikey" config="camouflage:1;required:1">API key</ui-component>
190189
<div class="help m"><a href="https://platform.openai.com/account/api-keys" target="_blank"><i class="ti ti-external"></i>Generate API key</a></div>
191-
<ui-component name="input" path="?.model"
192-
config="type:select;dirsource:gpt-3.5-turbo|GPT 3.5 Turbo,Whisper|whisper-1,text-davinci-003|Davinci,text-curie-001|Curie,text-babbage-001|Babbage,text-ada-001|ADA">Model</ui-component>
190+
<ui-component name="input" path="?.model" config="type:select;dirsource:gpt-3.5-turbo|GPT 3.5 Turbo,Whisper|whisper-1,text-davinci-003|Davinci,text-curie-001|Curie,text-babbage-001|Babbage,text-ada-001|ADA">Model</ui-component>
193191
</div>
194192
</settings>
195193

components/cheerio.html

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -75,28 +75,28 @@
7575
Please refer to the [documentation](https://cheerio.js.org/classes/Cheerio.html) for available functions.
7676
## Input
7777
```js
78-
<any>
78+
<any>
7979
```
8080

8181
## Output
8282
```js
83-
{
84-
result: <the data returned from the code>,
85-
input: <incomming data>
86-
}
83+
{
84+
result: <the data returned from the code>,
85+
input: <incomming data>
86+
}
8787
```
8888

8989
## Example code
9090
```js
91-
// instance : component instance
92-
// $: cheerio instance
93-
// html: html string
94-
95-
var txt = [];
96-
$('ul > li').each(function (i, elem) {
97-
txt.push($(this).text());
98-
});
99-
return txt;
91+
// instance : component instance
92+
// $: cheerio instance
93+
// html: html string
94+
95+
var txt = [];
96+
$('ul > li').each(function (i, elem) {
97+
txt.push($(this).text());
98+
});
99+
return txt;
100100
```
101101
</readme>
102102

@@ -114,10 +114,6 @@
114114
.CLASS footer { padding: 10px; font-size: 12px; }
115115
</style>
116116

117-
<script>
118-
119-
</script>
120-
121117
<body>
122118
<header>
123119
<i class="ICON"></i>NAME

components/code.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@
5858
</script>
5959

6060
<readme>
61-
This component executes a custom JavaScript code as it is.
61+
This component executes a custom JavaScript code as it is.
6262

63-
To send data to the default output use `send(somedata);`
64-
To send data to specific output when number of outputs > 1 use `$.send('outputX', somedata)` where `X` is output index, see example bellow:
65-
- first output--> `send(somedata)` or `$.send('output', somedata)`
66-
- second output --> `$.send('output2', somedata)`
67-
- ...
68-
- 5th output --> `$.send('output5', somedata)`
69-
- etc.
63+
To send data to the default output use `send(somedata);`
64+
To send data to specific output when number of outputs > 1 use `$.send('outputX', somedata)` where `X` is output index, see example bellow:
65+
- first output--> `send(somedata)` or `$.send('output', somedata)`
66+
- second output --> `$.send('output2', somedata)`
67+
- ...
68+
- 5th output --> `$.send('output5', somedata)`
69+
- etc.
7070
</readme>
7171

7272
<settings>
@@ -76,6 +76,7 @@
7676
<ui-component name="codemirror" path="?.code" config="type:javascript;minheight:300;parent:auto;margin:60;tabs:true;trim:true" class="m"></ui-component>
7777
</div>
7878
</settings>
79+
7980
<script>
8081
TOUCH(function(exports, init) {
8182
exports.configure = function() {
@@ -91,6 +92,7 @@
9192
}
9293
});
9394
</script>
95+
9496
<body>
9597
<header>
9698
<i class="ICON"></i>NAME

components/confirmation-code.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script total>
22

3+
exports.id = 'confirmationcode';
34
exports.name = 'Confirmation code';
45
exports.icon = 'ti ti-barcode';
56
exports.author = 'Total.js';

components/counter.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script total>
22

3+
exports.id = 'counter';
34
exports.name = 'Counter';
45
exports.group = 'Common';
56
exports.version = '1';

components/crontab.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script total>
22

3-
exports.id = 'crontab'
3+
exports.id = 'crontab';
44
exports.name = 'Crontab';
55
exports.icon = 'ti ti-clock';
66
exports.author = 'Peter Širka / Total.js';

components/dataparser.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script total>
22

3+
exports.id = 'dataparser';
34
exports.name = 'Data parser';
45
exports.icon = 'ti ti-compress';
56
exports.group = 'Transformations';

components/datasorter.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script total>
22

3+
exports.id = 'datasorter';
34
exports.name = 'Data sorter';
45
exports.group = 'Common';
56
exports.icon = 'ti ti-vector';

components/debug.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script total>
22

3+
exports.id = 'debug';
34
exports.name = 'Debug';
45
exports.group = 'Common';
56
exports.version = '3';

components/delay.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script total>
22

3+
exports.id = 'delay';
34
exports.name = 'Delay';
45
exports.group = 'Common';
56
exports.version = '3';

components/duration.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script total>
22

3+
exports.id = 'duration';
34
exports.name = 'Duration';
45
exports.group = 'Stats';
56
exports.version = '1';

components/end.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script total>
22

3+
exports.id = 'end';
34
exports.name = 'End';
45
exports.group = 'Common';
56
exports.version = '1';

components/error.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script total>
22

3+
exports.id = 'error';
34
exports.name = 'Error';
45
exports.icon = 'ti ti-bug';
56
exports.author = 'Total.js';

components/exec.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script total>
22

3+
exports.id = 'exec';
34
exports.name = 'Exec';
45
exports.group = 'Triggers';
56
exports.version = '1';

components/extend.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script total>
22

3+
exports.id = 'extend';
34
exports.name = 'Extend';
45
exports.group = 'Common';
56
exports.version = '1';

components/filewatcher.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script total>
22

3+
exports.id = 'filewatcher';
34
exports.name = 'File Watcher';
45
exports.group = 'Files';
56
exports.version = '1';

components/filewriter.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script total>
22

3+
exports.id = 'filewriter';
34
exports.name = 'File Writer';
45
exports.group = 'Files';
56
exports.version = '1';

0 commit comments

Comments
 (0)