192
192
</ button >
193
193
</ div >
194
194
< div class ="flex-shrink-0 flex py-6 justify-center ">
195
- < a data-tip ="Changelog " target ="_blank " rel ="noopener noreferrer "
196
- class ="z-50 tooltip tooltip-right cursor-pointer select-none text-white "
197
- href ="https://docs.kern.ai/changelog "> v1.1.1</ a >
195
+ < label data-tip ="Version overview " for ="version-overview " (click) ="requestVersionOverview() "
196
+ class ="z-50 tooltip tooltip-right cursor-pointer select-none text-white flex items-center "> v1.1.1
197
+ < svg *ngIf ="hasUpdates " xmlns ="http://www.w3.org/2000/svg " data-tip ="Newer version available "
198
+ class ="icon icon-tabler icon-tabler-alert-circle inline-block text-yellow-700 tooltip tooltip-right align-top ml-1 mt-px " width ="16 " height ="16 " viewBox ="0 0 24 24 " stroke-width ="2 " stroke ="currentColor " fill ="none " stroke-linecap ="round " stroke-linejoin ="round ">
199
+ < path stroke ="none " d ="M0 0h24v24H0z " fill ="none "> </ path >
200
+ < circle cx ="12 " cy ="12 " r ="9 "> </ circle >
201
+ < line x1 ="12 " y1 ="8 " x2 ="12 " y2 ="12 "> </ line >
202
+ < line x1 ="12 " y1 ="16 " x2 ="12.01 " y2 ="16 "> </ line >
203
+ </ svg >
204
+ </ label >
198
205
</ div >
199
206
</ div >
200
207
</ div >
206
213
< path stroke-linecap ="round " stroke-linejoin ="round " d ="M4 6h16M4 12h16M4 18h16 " />
207
214
</ svg >
208
215
</ div >
216
+ </ div >
217
+
218
+ < input #versionOverviewModal type ="checkbox " id ="version-overview " class ="modal-toggle ">
219
+ < div class ="modal ">
220
+ < div class ="modal-box text-black bg-white justify-center modal-configuration text-center ">
221
+ < div class ="inline-block justify-center text-lg leading-6 text-gray-900 font-medium ">
222
+ Version overview
223
+
224
+ < a class ="text-green-800 text-base font-medium ml-3 " href ="https://docs.kern.ai/changelog " target ="_blank ">
225
+ < span class ="leading-5 "> Changelog</ span >
226
+ < svg xmlns ="http://www.w3.org/2000/svg " class ="h-6 w-6 inline-block " fill ="none "
227
+ viewBox ="0 0 24 24 " stroke ="currentColor " stroke-width ="2 ">
228
+ < path stroke-linecap ="round " stroke-linejoin ="round "
229
+ d ="M13 7l5 5m0 0l-5 5m5-5H6 " />
230
+ </ svg >
231
+ </ a >
232
+ </ div >
233
+
234
+ < div class ="inline-block min-w-full align-middle mt-3 " *ngIf ="versionOverview ">
235
+ < div class ="overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg scrollable-size ">
236
+ < table class ="min-w-full divide-y divide-gray-300 ">
237
+ < thead class ="bg-gray-50 ">
238
+ < tr >
239
+ < th scope ="col "
240
+ class ="px-3 py-2 text-left text-xs font-medium uppercase tracking-wide text-gray-500 ">
241
+ Service</ th >
242
+ < th scope ="col "
243
+ class ="px-3 py-2 text-center text-xs font-medium uppercase tracking-wide text-gray-500 ">
244
+ Installed version</ th >
245
+ < th scope ="col "
246
+ class ="px-3 py-2 text-center text-xs font-medium uppercase tracking-wide text-gray-500 ">
247
+ Remote version</ th >
248
+ < th scope ="col "
249
+ class ="px-3 py-2 text-center text-xs font-medium uppercase tracking-wide text-gray-500 ">
250
+ Last checked</ th >
251
+ < th scope ="col "
252
+ class ="px-3 py-2 text-center text-xs font-medium uppercase tracking-wide text-gray-500 ">
253
+ Link</ th >
254
+ </ tr >
255
+ </ thead >
256
+ < tbody class ="divide-y divide-gray-200 ">
257
+ < tr *ngFor ="let service of versionOverview ">
258
+ < td class ="text-left px-3 py-2 text-sm text-gray-500 ">
259
+ {{service.service}}
260
+ </ td >
261
+ < td class ="text-center px-3 py-2 text-sm text-gray-500 ">
262
+ {{service.installedVersion}}
263
+ </ td >
264
+ < td class ="text-center px-3 py-2 text-sm text-gray-500 ">
265
+ < div class ="flex flex-row items-center justify-center ">
266
+ < div class ="mr-2 "> {{service.remoteVersion}}</ div >
267
+ < div *ngIf ="service.remoteHasNewer " class ="tooltip tooltip-right " data-tip ="Newer version available ">
268
+ < svg xmlns ="http://www.w3.org/2000/svg "
269
+ class ="icon icon-tabler icon-tabler-alert-circle inline-block text-yellow-700 align-top " width ="20 " height ="20 " viewBox ="0 0 24 24 " stroke-width ="2 " stroke ="currentColor " fill ="none " stroke-linecap ="round " stroke-linejoin ="round ">
270
+ < path stroke ="none " d ="M0 0h24v24H0z " fill ="none "> </ path >
271
+ < circle cx ="12 " cy ="12 " r ="9 "> </ circle >
272
+ < line x1 ="12 " y1 ="8 " x2 ="12 " y2 ="12 "> </ line >
273
+ < line x1 ="12 " y1 ="16 " x2 ="12.01 " y2 ="16 "> </ line >
274
+ </ svg > </ div >
275
+ </ div >
276
+ </ td >
277
+ < td class ="text-center px-3 py-2 text-sm text-gray-500 ">
278
+ {{service.parseDate}}
279
+ </ td >
280
+ < td class ="text-center px-3 py-2 text-sm text-gray-500 ">
281
+ < a [href] ="service.link " target ="_blank " class ="h4 w-4 m-auto block "
282
+ style ="padding:0px "> < svg xmlns ="http://www.w3.org/2000/svg " class ="h-4 w-4 m-auto "
283
+ fill ="none " viewBox ="0 0 24 24 " stroke ="currentColor " stroke-width ="2 ">
284
+ < path stroke-linecap ="round " stroke-linejoin ="round "
285
+ d ="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14 " />
286
+ </ svg > </ a >
287
+ </ td >
288
+ </ tr >
289
+ </ tbody >
290
+ </ table >
291
+ </ div >
292
+ </ div >
293
+
294
+ < kern-loading *ngIf ="versionOverview == null " color ="yellow " class ="mt-3 "> </ kern-loading >
295
+
296
+ < div class ="modal-action ">
297
+ < label (click) ="howToUpdate() " *ngIf ="!isManaged "
298
+ class ="mr-2 bg-green-100 text-green-700 border border-green-400 text-xs font-semibold px-4 py-2 rounded-md cursor-pointer hover:bg-green-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500 "> How to update</ label >
299
+ < label for ="version-overview "
300
+ class ="bg-white text-gray-700 text-xs font-semibold mr-4 px-4 py-2 rounded border border-gray-300 cursor-pointer hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 inline-block "> Close</ label >
301
+ </ div >
302
+ </ div >
303
+ </ div >
304
+
305
+ < input #stepsUpdate type ="checkbox " id ="steps-update " class ="modal-toggle ">
306
+ < div class ="modal ">
307
+ < div class ="modal-box text-black bg-white justify-center modal-sizes ">
308
+ < div class ="text-center justify-center text-lg leading-6 text-gray-900 font-medium ">
309
+ How to update
310
+ </ div >
311
+
312
+ < div class ="flex border-b-2 border-b-gray-200 max-w-full text-center overflow-visible ">
313
+ < div (click) ="toggleTabs(0) "
314
+ [ngClass] ="openTab == 0 ? 'text-indigo-700 border-bottom' : 'text-gray-500' "
315
+ class ="text-sm leading-5 font-medium mr-10 cursor-help py-3 ">
316
+ < span class ="tooltip tooltip-bottom tooltip-margin border-dotted " data-tip ="Linux/Mac "> Bash users</ span >
317
+ </ div >
318
+ < div (click) ="toggleTabs(1) "
319
+ [ngClass] ="openTab == 1 ? 'text-indigo-700 border-bottom' : 'text-gray-500' "
320
+ class ="text-sm leading-5 font-medium mr-10 cursor-help py-3 ">
321
+ < span class ="tooltip tooltip-bottom border-dotted " data-tip ="Installed refinery with pip "> CLI users</ span >
322
+ </ div >
323
+ < div (click) ="toggleTabs(2) "
324
+ [ngClass] ="openTab == 2 ? 'text-indigo-700 border-bottom' : 'text-gray-500' "
325
+ class ="text-sm leading-5 font-medium mr-10 cursor-help py-3 ">
326
+ < span class ="tooltip tooltip-bottom border-dotted " data-tip ="Windows terminal "> cmd</ span >
327
+ </ div >
328
+ < div (click) ="toggleTabs(3) "
329
+ [ngClass] ="openTab == 3 ? 'text-indigo-700 border-bottom' : 'text-gray-500' "
330
+ class ="text-sm leading-5 font-medium mr-10 cursor-help py-3 ">
331
+ < span class ="tooltip tooltip-bottom border-dotted " data-tip ="Windows from File Explorer "> Executing from explorer</ span >
332
+ </ div >
333
+ </ div >
334
+
335
+ < div class ="mt-3 px-5 h-40 ">
336
+ < ng-container [ngSwitch] ="openTab ">
337
+ < ng-template [ngSwitchCase] ="0 ">
338
+ < ol class ="font-dmMono ">
339
+ < li > Open a Terminal</ li >
340
+ < li > Change to refinery directory (using cd) -
341
+ < span class ="bg-gray-200 text-red-700 rounded-md p-1 whitespace-nowrap "> $ cd /path/to/refinery</ span >
342
+ </ li >
343
+ < li > Run the update script -
344
+ < span class ="bg-gray-200 text-red-700 rounded-md p-1 whitespace-nowrap "> $
345
+ < span class ="cursor-pointer tooltip tooltip-top " data-tip ="Click to copy " (click) ="copyToClipboard('./update') "> ./update</ span >
346
+ </ span >
347
+ </ li >
348
+ </ ol >
349
+ </ ng-template >
350
+ < ng-template [ngSwitchCase] ="1 ">
351
+ < ol class ="font-dmMono ">
352
+ < li > Open a Terminal</ li >
353
+ < li > Change to refinery directory
354
+ < ol class ="list-letters px-8 ">
355
+ < li > Linux/Mac -
356
+ < span class ="bg-gray-200 text-red-700 rounded-md p-1 whitespace-nowrap "> $ cd path/to/refinery</ span >
357
+ </ li >
358
+ < li > Windows -
359
+ < span class ="bg-gray-200 text-red-700 rounded-md p-1 whitespace-nowrap "> cd path\to\refinery</ span >
360
+ </ li >
361
+ </ ol >
362
+ </ li >
363
+ < li >
364
+ Run the CLI update command
365
+ < span class ="bg-gray-200 text-red-700 rounded-md p-1 whitespace-nowrap "> $
366
+ < span class ="cursor-pointer tooltip tooltip-top " data-tip ="Click to copy " (click) ="copyToClipboard('refinery update') "> refinery update</ span >
367
+ </ span >
368
+ </ li >
369
+ </ ol >
370
+ </ ng-template >
371
+ < ng-template [ngSwitchCase] ="2 ">
372
+ < ol class ="font-dmMono ">
373
+ < li > Open a Terminal</ li >
374
+ < li > Change to refinery directory
375
+ < span class ="bg-gray-200 text-red-700 rounded-md p-1 whitespace-nowrap "> cd path\to\refinery</ span >
376
+ </ li >
377
+ < li > Run the update script -
378
+ < span class ="bg-gray-200 text-red-700 rounded-md p-1 whitespace-nowrap ">
379
+ < span class ="cursor-pointer tooltip tooltip-top " data-tip ="Click to copy " (click) ="copyToClipboard('update.bat') "> update.bat</ span >
380
+ </ span >
381
+ </ li >
382
+ </ ol >
383
+ </ ng-template >
384
+ < ng-template [ngSwitchCase] ="3 ">
385
+ < ol class ="font-dmMono ">
386
+ < li > Open the File Explorer</ li >
387
+ < li > Navigate to the refinery directory</ li >
388
+ < li > Launch the update script by double-clicking
389
+ < span class ="bg-gray-200 text-red-700 rounded-md p-1 whitespace-nowrap ">
390
+ < span class ="cursor-pointer tooltip tooltip-top " data-tip ="Click to copy " (click) ="copyToClipboard('update.bat') "> update.bat</ span >
391
+ </ span >
392
+ </ li >
393
+ </ ol >
394
+ </ ng-template >
395
+ </ ng-container >
396
+ </ div >
397
+
398
+ < div class ="modal-action ">
399
+ < label (click) ="back() "
400
+ class ="bg-white text-gray-700 text-xs font-semibold mr-2 px-4 py-2 rounded border border-gray-300 cursor-pointer hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 inline-block "> Go back</ label >
401
+ < label for ="steps-update "
402
+ class ="bg-white text-gray-700 text-xs font-semibold mr-4 px-4 py-2 rounded border border-gray-300 cursor-pointer hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 inline-block "> Close</ label >
403
+ </ div >
404
+ </ div >
209
405
</ div >
0 commit comments