-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
322 lines (264 loc) · 13.1 KB
/
Copy pathindex.html
File metadata and controls
322 lines (264 loc) · 13.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Probar API Name</title>
<link rel="stylesheet" href="popup/popup.css">
<link rel="stylesheet" href="popup/flows/flows.css">
<link rel="icon" href="imgs/icon_logo.png">
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css" rel="stylesheet">
</head>
<body class="dark-mode">
<div class="header">
<a class="container_logo" href="https://salesforce-extension.vercel.app" target="_blank">
<img src="imgs/icon_logo.png" alt="extension_logo" title="Salesforce Auto-API">
<h4>Salesforce Auto-API</h4>
</a>
<a href="https://github.com/JulianKer" target="_blank" class="gh" title="JulianKer - Github">
<svg height="32" aria-hidden="true" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-mark-github v-align-middle">
<path d="M12 1C5.923 1 1 5.923 1 12c0 4.867 3.149 8.979 7.521 10.436.55.096.756-.233.756-.522 0-.262-.013-1.128-.013-2.049-2.764.509-3.479-.674-3.699-1.292-.124-.317-.66-1.293-1.127-1.554-.385-.207-.936-.715-.014-.729.866-.014 1.485.797 1.691 1.128.99 1.663 2.571 1.196 3.204.907.096-.715.385-1.196.701-1.471-2.448-.275-5.005-1.224-5.005-5.432 0-1.196.426-2.186 1.128-2.956-.111-.275-.496-1.402.11-2.915 0 0 .921-.288 3.024 1.128a10.193 10.193 0 0 1 2.75-.371c.936 0 1.871.123 2.75.371 2.104-1.43 3.025-1.128 3.025-1.128.605 1.513.221 2.64.111 2.915.701.77 1.127 1.747 1.127 2.956 0 4.222-2.571 5.157-5.019 5.432.399.344.743 1.004.743 2.035 0 1.471-.014 2.654-.014 3.025 0 .289.206.632.756.522C19.851 20.979 23 16.854 23 12c0-6.077-4.922-11-11-11Z"></path>
</svg>
</a>
<div class="container_of_toggles">
<div class="toggle-container">
<label class="togglelabel">
<input type="checkbox" id="darkToggle" checked />
<span class="toggle-slider"></span> Modo Oscuro
</label>
</div>
<div class="toggle-container center">
<label class="togglelabel">
<input type="checkbox" id="camelToggle" checked />
<span class="toggle-slider-camel"></span>
Cammel Case
</label>
</div>
</div>
</div>
<div class="tabs">
<button class="tab-button active" data-tab="campos">Campos / Objetos</button>
<div class="separador"></div>
<button class="tab-button" data-tab="flows">Flows</button>
</div>
<!------------------------------ CAMPOS / OBJETOS ----------------------------------------------------->
<div class="tab-content active" id="campos">
<div class="container1y2">
<div class="container1">
<div class="containerLabelAndTrash">
<label for="labelInput" class="labelinput">Label</label>
<div class="containerTrash"><i class='bx bx-trash' title="Borrar todo." id="trash"></i></div>
</div>
<div class="copy-wrapper">
<input type="search" id="labelInput" placeholder="Ej: Teléfono N°2" />
<button id="copyBtnLabel" title="Copiar al portapapeles">
<i class="bx bxs-copy"></i>
</button>
</div>
</div>
<div class="container2">
<label for="output" class="resultado">API Name</label>
<div class="copy-wrapper">
<input type="search" id="output" placeholder="Ej: telefono_n_2" readonly />
<button id="copyBtnOutput" title="Copiar al portapapeles">
<i class="bx bxs-copy"></i>
</button>
</div>
</div>
</div>
</div>
<!------------------------------------------------------------------------------------------------------------------>
<!------------------------------------------ FLOWS--------------------------------------------------------------->
<div class="tab-content" id="flows">
<div class="flows-section">
<label for="colorSelect">Tipo de Flow:</label>
<select id="colorSelect">
<option value="">-- None --</option>
<option value="record_triggered_flows">Record-Triggered Flow</option>
<option value="screen_flows">Screen Flow</option>
<option value="autolaunched_flows">Autolaunched Flow</option>
<option value="schedule_triggered_flows">Schedule-Triggered Flow</option>
</select>
</div>
<!-- ---------------- RECORD TRIGGERED FLOWS ------------------------------------------------------------->
<div id="record_triggered_flows" class="color-box record_triggered_flows hidden">
<label for="objeto">Objeto:</label>
<input type="text" id="objeto" name="objeto" placeholder="Ej: Account" />
<div class="contenedor_opt_trigg">
<div class="trgg_rtf">
<label for="trigger">Trigger:</label>
<select id="trigger" name="trigger">
<option value="created">Created</option>
<option value="updated">Updated</option>
<option value="created_or_updated">Created or Updated</option>
<option value="deleted">Deleted</option>
</select>
</div>
<div class="opt_rtf">
<label for="optimizacion">Optimización:</label>
<select id="optimizacion" name="optimizacion">
<option value="actions_and_related_records">Actions and Related Records</option>
<option value="fast_field_updates">Fast Field Updates</option>
</select>
</div>
</div>
<label for="accion">Acción:</label>
<input type="text" id="accion" name="accion" placeholder="Ej: Update status"/>
<fieldset id="tipoEjecucion">
<legend>Tipo de Ejecución:</legend>
<div class="fieldset-labels">
<label for="syn-rtf">Síncrono</label>
<label for="asyn-rtf">Asíncrono</label>
<label for="sch-rtf">Programado</label>
</div>
<div class="fieldset-labels">
<input type="checkbox" name="tipoEjecucion" id="syn-rtf" value="syn" />
<input type="checkbox" name="tipoEjecucion" id="asyn-rtf" value="asy" />
<input type="checkbox" name="tipoEjecucion" id="sch-rtf" value="sch" />
</div>
</fieldset>
<div class="separador-horizontal"></div>
<div class="cont-resultado-rtf">
<label for="label">Label:</label>
<div>
<input type="text" id="label" name="label" readonly />
<button id="copyBtnOutputLabelRTF" title="Copiar al portapapeles">
<i class="bx bxs-copy"></i>
</button>
</div>
</div>
<div class="cont-resultado-rtf">
<label for="apiName">API Name:</label>
<div>
<input type="text" id="apiName" name="apiName" readonly />
<button id="copyBtnOutputApiRTF" title="Copiar al portapapeles">
<i class="bx bxs-copy"></i>
</button>
</div>
</div>
</div>
<!-- --------------------------------------- ------------------------------------------------------------->
<!-- ---------------------------- SCREENFLOWS ------------------------------------------------------------->
<div id="screen_flows" class="color-box screen_flows hidden">
<label for="objeto_scf">Objeto:</label>
<input type="text" id="objeto_scf" name="objeto_scf" placeholder="Ej: File" />
<label for="accion_scf">Acción:</label>
<input type="text" id="accion_scf" name="accion_scf" placeholder="Ej: Show Id" />
<div class="separador-horizontal"></div>
<div class="cont-resultado-rtf">
<label for="label_scf">Label:</label>
<div>
<input type="text" id="label_scf" name="label_scf" readonly />
<button id="copyBtnOutputLabelSCF" title="Copiar al portapapeles">
<i class="bx bxs-copy"></i>
</button>
</div>
</div>
<div class="cont-resultado-rtf">
<label for="apiName_scf">API Name:</label>
<div>
<input type="text" id="apiName_scf" name="apiName_scf" readonly />
<button id="copyBtnOutputApiSCF" title="Copiar al portapapeles">
<i class="bx bxs-copy"></i>
</button>
</div>
</div>
</div>
<!-- --------------------------------------- ------------------------------------------------------------->
<!-- ----------------------------------- AUTOLAUNCHED ------------------------------------------------------------->
<div id="autolaunched_flows" class="color-box autolaunched_flows hidden">
<label for="accion_alf">Acción:</label>
<input type="text" id="accion_alf" placeholder="Ej: Send Email"/>
<label for="descripcion_alf">Descripción Inputs y Outputs:</label>
<input type="text" id="descripcion_alf" placeholder="Ej: Email address and CaseId"/>
<fieldset id="invocadores_alf">
<legend>Invocadores:</legend>
<div class="fieldset-labels">
<label><input type="checkbox" value="F" /> Flow</label>
<label><input type="checkbox" value="A" /> Apex</label>
<label><input type="checkbox" value="R" /> REST API</label>
<label><input type="checkbox" value="EB" /> Einstein Bot</label>
<label><input type="checkbox" value="M" /> Milestones</label>
</div>
</fieldset>
<div class="separador-horizontal"></div>
<div class="cont-resultado-rtf">
<label for="label_alf">Label:</label>
<div>
<input type="text" id="label_alf" readonly />
<button id="copyBtnOutputLabelALF" title="Copiar al portapapeles">
<i class="bx bxs-copy"></i>
</button>
</div>
</div>
<div class="cont-resultado-rtf">
<label for="apiName_alf">API Name:</label>
<div>
<input type="text" id="apiName_alf" readonly />
<button id="copyBtnOutputApiALF" title="Copiar al portapapeles">
<i class="bx bxs-copy"></i>
</button>
</div>
</div>
</div>
<!-- --------------------------------------- ------------------------------------------------------------->
<!-- --------------------------SCHEDULE TRIGGERED FLOWS---------------------------------------------------->
<div id="schedule_triggered_flows" class="color-box schedule_triggered_flows hidden">
<div class="cont-campo">
<label for="inputAccionSTF">Objeto / Proceso:</label>
<input type="text" id="inputAccionSTF" placeholder="Ej: Case"/>
</div>
<div class="contenedor_opt_trigg cont-frecuencia_y_horario">
<div class="cont-campo trgg_rtf">
<label for="selectFrecuenciaSTF">Frecuencia:</label>
<select id="selectFrecuenciaSTF">
<option value="O">Once</option>
<option value="D">Daily</option>
<option value="W">Weekly</option>
</select>
</div>
<div class="cont-campo opt_rtf">
<label for="selectHorarioSTF">Horario:</label>
<select id="selectHorarioSTF">
<!--pongo los valores con js pq son bastantes xd-->
</select>
</div>
</div>
<div class="cont-campo">
<label for="inputDescripcionSTF">Descripción:</label>
<input type="text" id="inputDescripcionSTF" placeholder="Ej: Update Status" />
</div>
<div class="separador-horizontal"></div>
<div class="cont-resultado-rtf">
<label for="labelSTF">Label:</label>
<div>
<input type="text" id="labelSTF" name="labelSTF" readonly />
<button id="copyBtnOutputLabelSTF" title="Copiar al portapapeles">
<i class="bx bxs-copy"></i>
</button>
</div>
</div>
<div class="cont-resultado-rtf">
<label for="apiNameSTF">API Name:</label>
<div>
<input type="text" id="apiNameSTF" name="apiNameSTF" readonly />
<button id="copyBtnOutputApiSTF" title="Copiar al portapapeles">
<i class="bx bxs-copy"></i>
</button>
</div>
</div>
</div>
<!-- --------------------------------------- ------------------------------------------------------------->
</div>
<footer class="footer">
<span class="footer-text">
<span id="year"></span> | v <span id="version"></span>
</span>
</footer>
<script>
document.getElementById("year").textContent = new Date().getFullYear();
</script>
<script type="module" src="popup/popup.js"></script>
<script type="module" src="popup/flows/flows.js"></script>
</body>
</html>