@silexlabs/silex-dashboard 1.0.38 → 1.0.40

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.
@@ -18,7 +18,6 @@
18
18
  "Back to home": "< Back",
19
19
  "Welcome to Silex": "Welcome to Silex",
20
20
  "Please login to continue": "Please login to continue",
21
- "New name for the duplicated website": "New name for the duplicated website",
22
21
  "Failed to duplicate website": "Failed to duplicate website",
23
22
  "Website duplicated successfully": "Website duplicated successfully"
24
23
  },
@@ -41,7 +40,6 @@
41
40
  "Back to home": "< Retour",
42
41
  "Welcome to Silex": "Bienvenue sur Silex",
43
42
  "Please login to continue": "Merci de vous connecter pour continuer",
44
- "New name for the duplicated website": "Nouveau nom pour votre site",
45
43
  "Failed to duplicate website": "Erreur, le site n'a pas été dupliqué",
46
44
  "Website duplicated successfully": "Le site a bien été dupliqué"
47
45
  }
@@ -140,13 +140,10 @@ window.addEventListener('load', function() {
140
140
  }
141
141
  },
142
142
 
143
- async duplicateWebsite(fromId) {
144
- const name = prompt('{{ api-translations[lang]["New name for the duplicated website"] }}')
145
- if (!name) return
143
+ async duplicateWebsite(websiteId) {
146
144
  this.loading = true
147
145
  try {
148
- const toId = toSafeId(name)
149
- await websiteDuplicate({fromId, toId, connectorId: this.user.storage.connectorId, data: { name }})
146
+ await websiteDuplicate({websiteId, connectorId: this.user.storage.connectorId, data: { name }})
150
147
  this.error = ''
151
148
  this.websites = await websiteList({connectorId: this.user.storage.connectorId})
152
149
  this.message = '{{ api-translations[lang]["Website duplicated successfully"] }}'
@@ -355,16 +355,16 @@
355
355
 
356
356
 
357
357
  ><BUTTON
358
- id="ifyf6p"
359
- class="right-space-20 bold button-bar__item--link pointer fx-scale underline fx-flash "
358
+ id="ifyf6p" title="{{ list-edit }}"
359
+ class="button-bar__item--link pointer fx-scale fx-flash button-bar__item--icon "
360
360
  @click="openEditor(website.websiteId, '{{lang}}')"
361
361
 
362
- >{{ list-edit }}</BUTTON><BUTTON
363
- id="ihf6ew"
364
- class="right-space-20 button-bar__item--link pointer fx-scale underline fx-flash "
362
+ >{{ list-edit-icon }}</BUTTON><BUTTON
363
+ id="ihf6ew" title="{{ list-rename }}"
364
+ class="button-bar__item--link pointer fx-scale fx-flash button-bar__item--icon "
365
365
  @click="renameWebsite(website.websiteId, '{{lang}}')"
366
366
 
367
- >{{ list-rename }}</BUTTON><BUTTON
367
+ >{{ list-rename-icon }}</BUTTON><BUTTON
368
368
  id="iol4h" title="{{ list-duplicate }}"
369
369
  class="button-bar__item--link pointer fx-flash fx-scale button-bar__item--icon "
370
370
  @click="duplicateWebsite(website.websiteId, '{{lang}}')"
Binary file
@@ -285,13 +285,10 @@ window.addEventListener('load', function() {
285
285
  }
286
286
  },
287
287
 
288
- async duplicateWebsite(fromId) {
289
- const name = prompt('New name for the duplicated website')
290
- if (!name) return
288
+ async duplicateWebsite(websiteId) {
291
289
  this.loading = true
292
290
  try {
293
- const toId = toSafeId(name)
294
- await websiteDuplicate({fromId, toId, connectorId: this.user.storage.connectorId, data: { name }})
291
+ await websiteDuplicate({websiteId, connectorId: this.user.storage.connectorId, data: { name }})
295
292
  this.error = ''
296
293
  this.websites = await websiteList({connectorId: this.user.storage.connectorId})
297
294
  this.message = 'Website duplicated successfully'
@@ -575,16 +572,16 @@ window.addEventListener('load', function() {
575
572
 
576
573
 
577
574
  ><BUTTON
578
- id="ifyf6p"
579
- class="right-space-20 bold button-bar__item--link pointer fx-scale underline fx-flash "
575
+ id="ifyf6p" title="Edit"
576
+ class="button-bar__item--link pointer fx-scale fx-flash button-bar__item--icon "
580
577
  @click="openEditor(website.websiteId, 'en')"
581
578
 
582
- >Edit</BUTTON><BUTTON
583
- id="ihf6ew"
584
- class="right-space-20 button-bar__item--link pointer fx-scale underline fx-flash "
579
+ ><svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="#8873fe" d="M368 80h32v32H368V80zM352 32c-17.7 0-32 14.3-32 32H128c0-17.7-14.3-32-32-32H32C14.3 32 0 46.3 0 64v64c0 17.7 14.3 32 32 32V352c-17.7 0-32 14.3-32 32v64c0 17.7 14.3 32 32 32H96c17.7 0 32-14.3 32-32H320c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V384c0-17.7-14.3-32-32-32V160c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32H352zM96 160c17.7 0 32-14.3 32-32H320c0 17.7 14.3 32 32 32V352c-17.7 0-32 14.3-32 32H128c0-17.7-14.3-32-32-32V160zM48 400H80v32H48V400zm320 32V400h32v32H368zM48 112V80H80v32H48z"/></svg></BUTTON><BUTTON
580
+ id="ihf6ew" title="Rename"
581
+ class="button-bar__item--link pointer fx-scale fx-flash button-bar__item--icon "
585
582
  @click="renameWebsite(website.websiteId, 'en')"
586
583
 
587
- >Rename</BUTTON><BUTTON
584
+ ><svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="#8873fe" d="M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"/></svg></BUTTON><BUTTON
588
585
  id="iol4h" title="Duplicate"
589
586
  class="button-bar__item--link pointer fx-flash fx-scale button-bar__item--icon "
590
587
  @click="duplicateWebsite(website.websiteId, 'en')"
@@ -285,13 +285,10 @@ window.addEventListener('load', function() {
285
285
  }
286
286
  },
287
287
 
288
- async duplicateWebsite(fromId) {
289
- const name = prompt('Nouveau nom pour votre site')
290
- if (!name) return
288
+ async duplicateWebsite(websiteId) {
291
289
  this.loading = true
292
290
  try {
293
- const toId = toSafeId(name)
294
- await websiteDuplicate({fromId, toId, connectorId: this.user.storage.connectorId, data: { name }})
291
+ await websiteDuplicate({websiteId, connectorId: this.user.storage.connectorId, data: { name }})
295
292
  this.error = ''
296
293
  this.websites = await websiteList({connectorId: this.user.storage.connectorId})
297
294
  this.message = 'Le site a bien été dupliqué'
@@ -575,16 +572,16 @@ window.addEventListener('load', function() {
575
572
 
576
573
 
577
574
  ><BUTTON
578
- id="ifyf6p"
579
- class="right-space-20 bold button-bar__item--link pointer fx-scale underline fx-flash "
575
+ id="ifyf6p" title="Editer"
576
+ class="button-bar__item--link pointer fx-scale fx-flash button-bar__item--icon "
580
577
  @click="openEditor(website.websiteId, 'fr')"
581
578
 
582
- >Editer</BUTTON><BUTTON
583
- id="ihf6ew"
584
- class="right-space-20 button-bar__item--link pointer fx-scale underline fx-flash "
579
+ ><svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="#8873fe" d="M368 80h32v32H368V80zM352 32c-17.7 0-32 14.3-32 32H128c0-17.7-14.3-32-32-32H32C14.3 32 0 46.3 0 64v64c0 17.7 14.3 32 32 32V352c-17.7 0-32 14.3-32 32v64c0 17.7 14.3 32 32 32H96c17.7 0 32-14.3 32-32H320c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V384c0-17.7-14.3-32-32-32V160c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32H352zM96 160c17.7 0 32-14.3 32-32H320c0 17.7 14.3 32 32 32V352c-17.7 0-32 14.3-32 32H128c0-17.7-14.3-32-32-32V160zM48 400H80v32H48V400zm320 32V400h32v32H368zM48 112V80H80v32H48z"/></svg></BUTTON><BUTTON
580
+ id="ihf6ew" title="Renommer"
581
+ class="button-bar__item--link pointer fx-scale fx-flash button-bar__item--icon "
585
582
  @click="renameWebsite(website.websiteId, 'fr')"
586
583
 
587
- >Renommer</BUTTON><BUTTON
584
+ ><svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="#8873fe" d="M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"/></svg></BUTTON><BUTTON
588
585
  id="iol4h" title="Dupliquer"
589
586
  class="button-bar__item--link pointer fx-flash fx-scale button-bar__item--icon "
590
587
  @click="duplicateWebsite(website.websiteId, 'fr')"
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexlabs/silex-dashboard",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
4
4
  "description": "Dashboard for Silex v3",
5
5
  "main": ".silex.js",
6
6
  "scripts": {
package/pages/en/index.md CHANGED
@@ -17,7 +17,9 @@ add-cancel: Cancel
17
17
  list-item-updated: Updated
18
18
  list-item-created: Created
19
19
  list-edit: Edit
20
+ list-edit-icon: '<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="#8873fe" d="M368 80h32v32H368V80zM352 32c-17.7 0-32 14.3-32 32H128c0-17.7-14.3-32-32-32H32C14.3 32 0 46.3 0 64v64c0 17.7 14.3 32 32 32V352c-17.7 0-32 14.3-32 32v64c0 17.7 14.3 32 32 32H96c17.7 0 32-14.3 32-32H320c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V384c0-17.7-14.3-32-32-32V160c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32H352zM96 160c17.7 0 32-14.3 32-32H320c0 17.7 14.3 32 32 32V352c-17.7 0-32 14.3-32 32H128c0-17.7-14.3-32-32-32V160zM48 400H80v32H48V400zm320 32V400h32v32H368zM48 112V80H80v32H48z"/></svg>'
20
21
  list-rename: Rename
22
+ list-rename-icon: '<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="#8873fe" d="M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"/></svg>'
21
23
  list-duplicate: Duplicate
22
24
  list-duplicate-icon: '<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><path fill="#8873fe" d="M384 336H192c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16l140.1 0L400 115.9V320c0 8.8-7.2 16-16 16zM192 384H384c35.3 0 64-28.7 64-64V115.9c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1H192c-35.3 0-64 28.7-64 64V320c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H256c35.3 0 64-28.7 64-64V416H272v32c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V192c0-8.8 7.2-16 16-16H96V128H64z"/></svg>'
23
25
  list-delete: Delete
package/pages/fr/index.md CHANGED
@@ -17,7 +17,9 @@ add-cancel: Annuler
17
17
  list-item-updated: Mis à jour le
18
18
  list-item-created: Créé le
19
19
  list-edit: Editer
20
+ list-edit-icon: '<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="#8873fe" d="M368 80h32v32H368V80zM352 32c-17.7 0-32 14.3-32 32H128c0-17.7-14.3-32-32-32H32C14.3 32 0 46.3 0 64v64c0 17.7 14.3 32 32 32V352c-17.7 0-32 14.3-32 32v64c0 17.7 14.3 32 32 32H96c17.7 0 32-14.3 32-32H320c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V384c0-17.7-14.3-32-32-32V160c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32H352zM96 160c17.7 0 32-14.3 32-32H320c0 17.7 14.3 32 32 32V352c-17.7 0-32 14.3-32 32H128c0-17.7-14.3-32-32-32V160zM48 400H80v32H48V400zm320 32V400h32v32H368zM48 112V80H80v32H48z"/></svg>'
20
21
  list-rename: Renommer
22
+ list-rename-icon: '<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="#8873fe" d="M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"/></svg>'
21
23
  list-duplicate: Dupliquer
22
24
  list-duplicate-icon: '<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><path fill="#8873fe" d="M384 336H192c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16l140.1 0L400 115.9V320c0 8.8-7.2 16-16 16zM192 384H384c35.3 0 64-28.7 64-64V115.9c0-12.7-5.1-24.9-14.1-33.9L366.1 14.1c-9-9-21.2-14.1-33.9-14.1H192c-35.3 0-64 28.7-64 64V320c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H256c35.3 0 64-28.7 64-64V416H272v32c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V192c0-8.8 7.2-16 16-16H96V128H64z"/></svg>'
23
25
  list-delete: Supprimer