@silexlabs/silex-dashboard 1.0.4 → 1.0.6

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/.silex.js CHANGED
@@ -14,6 +14,8 @@ const {FsStorage} = require('@silexlabs/silex/dist/server/server/connectors/FsSt
14
14
  const {FsHosting} = require('@silexlabs/silex/dist/server/server/connectors/FsHosting')
15
15
 
16
16
  module.exports = async function(config, options) {
17
+ console.log('> Silex dashboard plugin starting', {config, options})
18
+
17
19
  // Defaults
18
20
  const opts = {
19
21
  defaultLanguage: 'en',
@@ -67,9 +69,8 @@ module.exports = async function(config, options) {
67
69
 
68
70
  // Serve the editor when the ?id param is present in the URL
69
71
  const editorRouter = express.Router()
70
- console.log('dashboard route /', {opts})
72
+ console.log('> Silex dashboard on route /', {opts})
71
73
  editorRouter.use('/', (req, res, next) => {
72
- console.log('dashboard route / called', req.path, req.query.id, req.locale)
73
74
  if (req.path === '/' && !req.query.id) res.redirect(`/${req.locale}/`)
74
75
  else next()
75
76
  })
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "en": {
3
+ "Failed to start dashboard": "Failed to start dashboard",
3
4
  "Failed to fetch websites": "Failed to fetch websites",
4
5
  "HTTP error! status: ${response.status}": "HTTP error! status: ${response.status}",
5
6
  "You need to provide a website name": "You need to provide a website name",
@@ -10,6 +11,7 @@
10
11
  "Failed to delete website": "Failed to delete website",
11
12
  "New name for this website": "New name for this website",
12
13
  "Website renamed successfully": "Website renamed successfully",
14
+ "Failed to rename website": "Failed to rename website",
13
15
  "Login failed": "Error, login failed.",
14
16
  "Logout": "Logout",
15
17
  "Logging out": "Logging out",
@@ -18,6 +20,7 @@
18
20
  "Please login to continue": "Please login to continue"
19
21
  },
20
22
  "fr": {
23
+ "Failed to start dashboard": "Erreur, impossible de démarrer le tableau de bord",
21
24
  "Failed to fetch websites": "Erreur, impossible de récupérer la liste des sites",
22
25
  "HTTP error! status: ${response.status}": "Erreur HTTP ! status: ${response.status}",
23
26
  "You need to provide a website name": "Vous n\\'avez pas donné de nom à votre site",
@@ -28,6 +31,7 @@
28
31
  "Failed to delete website": "Erreur, le site n\\'a pas été effacé",
29
32
  "New name for this website": "Nouveau nom",
30
33
  "Website renamed successfully": "Changement de nom effectué",
34
+ "Failed to rename website": "Erreur, le nom n\\'a pas été changé",
31
35
  "Login failed": "Erreur, impossible de se connecter.",
32
36
  "Logout": "Déconnexion",
33
37
  "Logging out": "Déconnexion en cours",
@@ -30,6 +30,7 @@ window.addEventListener('load', function() {
30
30
  storage: null,
31
31
  user: null,
32
32
  showMenu: false,
33
+ empty: false,
33
34
  }
34
35
  },
35
36
  mounted() {
@@ -46,6 +47,7 @@ window.addEventListener('load', function() {
46
47
  this.user = user
47
48
  this.loggedIn = true
48
49
  this.websites = await websiteList({connectorId: this.user.storage.connectorId})
50
+ this.empty = this.websites.length === 0
49
51
  this.loading = false
50
52
  } else {
51
53
  this.openLogin()
@@ -57,7 +59,8 @@ window.addEventListener('load', function() {
57
59
  this.loggedIn = false
58
60
  this.openLogin()
59
61
  } else {
60
- this.error = error
62
+ this.error = `{{ api-translations[lang]["Failed to start dashboard"] }} - ${error.message}`
63
+ this.message = ''
61
64
  }
62
65
  }
63
66
  },
@@ -83,9 +86,9 @@ window.addEventListener('load', function() {
83
86
  },
84
87
 
85
88
  async createWebsite() {
86
- if (!this.newWebsiteName) throw new Error('{{ api-translations[lang]["You need to provide a website name"] }}')
87
- this.loading = true
88
89
  try {
90
+ if (!this.newWebsiteName) throw new Error('{{ api-translations[lang]["You need to provide a website name"] }}')
91
+ this.loading = true
89
92
  const websiteId = this.newWebsiteName.replace(/[/\\?%*:|"<>]/g, '_')
90
93
  const result = await websiteCreate({
91
94
  websiteId,
@@ -96,15 +99,18 @@ window.addEventListener('load', function() {
96
99
  connectorId: this.user.storage.connectorId
97
100
  })
98
101
  this.message = '{{ api-translations[lang]["Website created successfully"] }}'
102
+ this.error = ''
99
103
  this.newWebsiteName = ''
100
104
  this.showCreationForm = false;
101
105
  this.websites = await websiteList({connectorId: this.user.storage.connectorId})
106
+ this.empty = this.websites.length === 0
102
107
  this.loading = false
103
108
  return result
104
109
  } catch (error) {
105
110
  this.loading = false
106
111
  console.error(error)
107
- this.error = '{{ api-translations[lang]["Failed to create website"] }}'
112
+ this.error = `{{ api-translations[lang]["Failed to create website"] }} - ${error.message}`
113
+ this.message = ''
108
114
  }
109
115
  },
110
116
 
@@ -115,12 +121,15 @@ window.addEventListener('load', function() {
115
121
  try {
116
122
  const result = await websiteDelete({websiteId, connectorId: this.user.storage.connectorId})
117
123
  this.message = '{{ api-translations[lang]["Website deleted successfully"] }}'
124
+ this.error = ''
118
125
  this.websites = await websiteList({connectorId: this.user.storage.connectorId})
126
+ this.empty = this.websites.length === 0
119
127
  this.loading = false
120
128
  return result
121
129
  } catch (error) {
122
130
  this.loading = false
123
- this.error = '{{ api-translations[lang]["Failed to delete website"] }}'
131
+ this.error = `{{ api-translations[lang]["Failed to delete website"] }} - ${error.message}`
132
+ this.message = ''
124
133
  }
125
134
  },
126
135
 
@@ -132,12 +141,15 @@ window.addEventListener('load', function() {
132
141
  try {
133
142
  const result = await websiteMetaWrite({websiteId, connectorId: this.user.storage.connectorId, data: { name }})
134
143
  this.message = '{{ api-translations[lang]["Website renamed successfully"] }}'
144
+ this.error = ''
135
145
  this.websites = await websiteList({connectorId: this.user.storage.connectorId})
146
+ this.empty = this.websites.length === 0
136
147
  this.loading = false
137
148
  return result
138
149
  } catch (error) {
139
150
  this.loading = false
140
- this.error = '{{ api-translations[lang]["Failed to delete website"] }}'
151
+ this.error = `{{ api-translations[lang]["Failed to rename website"] }} - ${error.message}`
152
+ this.message = ''
141
153
  }
142
154
  },
143
155
  },
@@ -46,10 +46,46 @@ a:hover { text-decoration: underline; }
46
46
  </head>
47
47
  <body
48
48
  id="i2hcfw"
49
- class=" app"
49
+ class="body app"
50
+
51
+
52
+ ><HEADER
53
+
54
+ class="header padding-normal "
50
55
 
51
56
 
52
57
  ><A
58
+ href="/"
59
+
60
+
61
+
62
+ ><img
63
+ src="/assets/silex-icon-2018@200px.png" href=""
64
+ class="nav__logo "
65
+
66
+
67
+ ></img></A><NAV
68
+ id="in5jeq"
69
+ class="nav "
70
+
71
+
72
+ >{% for item in nav %}<A
73
+ href="{{ item.url }}" id="i0g3ac"
74
+ class="nav__item {% if forloop.index == 1 %}active{% endif %}"
75
+ target="{{ item.target }}"
76
+
77
+ >{{ item.label }}</A>{% endfor %}</NAV><div
78
+
79
+ class="lang h-space "
80
+
81
+
82
+ >{% assign links = languages %}
83
+ {%- for link in links %}<A
84
+ href="/{{ link.code }}"
85
+ class="lang__item nav__item {% if link.code == lang %}active{% endif %}"
86
+ hreflang="{{link.code}}"
87
+
88
+ >{{ link.code }}</A>{% endfor %}</div></HEADER><A
53
89
  id="ixzhcr" href="/"
54
90
  class="button button-bar__item--secondary "
55
91
 
@@ -60,12 +96,12 @@ a:hover { text-decoration: underline; }
60
96
 
61
97
 
62
98
  ><H1
63
-
64
-
99
+ id="ighycb"
100
+ class="title "
65
101
 
66
102
 
67
103
  >{{ api-translations[lang]["Welcome to Silex"] }}</H1><div
68
-
104
+ id="it2175"
69
105
  class="subtitle "
70
106
 
71
107
 
@@ -116,16 +116,31 @@ a:hover { text-decoration: underline; }
116
116
 
117
117
 
118
118
  ><H1
119
- id="itp1f"
120
- class="title "
121
119
 
120
+ class="title "
121
+ v-if="!empty"
122
122
 
123
123
  >{{ title2 }}</H1><div
124
124
  id="iyex8"
125
- class="subtitle color--light "
125
+ class="subtitle "
126
+ v-if="!empty"
127
+
128
+ >{{ subtitle }}</div><SECTION
129
+ id="iqmx38"
130
+
131
+ v-if="empty"
132
+
133
+ ><H1
134
+
135
+ class="title "
136
+
126
137
 
138
+ >{{ title2-empty }}</H1><DIV
127
139
 
128
- >{{ subtitle }}</div><div
140
+ class="subtitle "
141
+
142
+
143
+ >{{ subtitle-empty }}</DIV></SECTION><div
129
144
  id="ickx4"
130
145
  class="button-bar margin-20 "
131
146
 
@@ -198,7 +213,7 @@ a:hover { text-decoration: underline; }
198
213
  >{{ add-cancel }}</button></div></form></div><div
199
214
  id="if80m"
200
215
 
201
-
216
+ v-if="!empty"
202
217
 
203
218
  ><SECTION
204
219
  id="idgvg"
@@ -315,31 +330,6 @@ a:hover { text-decoration: underline; }
315
330
  class="button-bar_item skeleton skeleton-button "
316
331
 
317
332
 
318
- >Edit</div></SECTION><SECTION
319
- id="iqmx38"
320
- class="button-bar button-bar--full-width bg-white rounded loading__item skeleton-anim skeleton-wrapper "
321
- v-if="loading"
322
-
323
- ><H3
324
-
325
- class="button-bar_item button-bar__item--main skeleton-text skeleton "
326
-
327
-
328
- >My first websiteMy first websiteMy first websiteMy first</H3><P
329
-
330
- class="button-bar_item button-bar__item--secondary skeleton-text skeleton "
331
-
332
-
333
- >Updated 1h ago by lexoyo</P><P
334
-
335
- class="button-bar_item button-bar__item--secondary skeleton-text skeleton "
336
-
337
-
338
- >Created 2023-02-16 by lexoyo</P><div
339
- id="ie83jl"
340
- class="button-bar_item skeleton skeleton-button "
341
-
342
-
343
333
  >Edit</div></SECTION></div><div
344
334
  id="i7ej6j"
345
335
  class="box horizontal "
@@ -1 +1 @@
1
- {"assets":[{"type":"image","src":"assets/alex-small.jpg","unitDim":"px","height":0,"width":0},{"type":"image","src":"assets/silex-icon-2018@200px.png","unitDim":"px","height":0,"width":0}],"styles":[{"selectors":[{"name":"nav__item","active":false}],"style":{"margin":"0px 10px 0px 10px","font-size":"0.8rem","padding":"24px 0px 24px 0px","color":"grey","font-weight":"700"}},{"selectors":["body"],"style":{"font-family":"\"Roboto\", sans-serif","background-color":"#f0f0f0"}},{"selectors":[{"name":"header","active":false}],"style":{"display":"flex","align-items":"center","justify-content":"space-between","background-color":"#ffffff"}},{"selectors":["#ir7s"],"style":{"color":"black"}},{"selectors":["padding-normal"],"style":{"padding":"0px 24px 0px 24px"}},{"selectors":["#i9jq"],"style":{"display":"flex"}},{"selectors":["nav"],"style":{"width":"100%","margin":"0px 20px 0px 20px"}},{"selectors":["#iz63r"],"style":{"min-height":"90vh"}},{"selectors":["subtitle"],"style":{"font-size":"1rem","margin":"0px 0px 20px 0px"}},{"selectors":["section"],"style":{"max-width":"1200px","margin":"80px auto 80px auto"}},{"selectors":["subtitle",{"name":"color--light","active":false}],"style":{"color":"#636363","font-weight":"700"}},{"selectors":[{"name":"button","active":false}],"style":{"font-weight":"700","font-size":"0.8rem","padding":"8px 15px 8px 15px","display":"inline-block","border":"1px solid transparent","transition":"all 0.18s ease-out","font-family":"\"Roboto\", sans-serif"}},{"selectors":[{"name":"button","active":false},{"name":"button--primary","active":false}],"style":{"background-color":"#5e85a8","color":"white"}},{"selectors":[{"name":"button-bar","active":false}],"style":{"margin":"10px 0px 10px 0px","display":"flex"}},{"selectors":["#ibsgw"],"style":{"position":"relative","top":"3px"}},{"selectors":[{"name":"button-bar","active":false},{"name":"button-bar--full-width","active":false}],"style":{"justify-content":"space-between","align-items":"center"}},{"selectors":[{"name":"button-bar_item","active":false}],"style":{"margin":"20px 20px 20px 20px"}},{"selectors":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false}],"style":{"font-size":"0.8rem","color":"#444444"}},{"selectors":[{"name":"button","active":false},"button--secondary"],"style":{"font-weight":"400","background-color":"rgba(221,221,221,0.5)"}},{"selectors":[{"name":"bg-white","active":false}],"style":{"background-color":"#ffffff"}},{"selectors":[{"name":"rounded","active":false}],"style":{"border-radius":"2px 2px 2px 2px"}},{"selectors":["#ilzpl"],"style":{"min-height":"100px"}},{"selectors":["#i238z"],"style":{"padding":"10px"}},{"selectors":["footer"],"style":{"display":"block","margin":"20px 0px 0 0px","padding":"1px 0px 1px 0px"}},{"selectors":["skeleton-text",{"name":"skeleton","active":false}],"style":{"background-color":"#dddddd","color":"transparent","opacity":"0.31","border-radius":"5px 5px 5px 5px"}},{"selectors":[{"name":"skeleton","active":false},{"name":"skeleton-button","active":false}],"style":{"color":"transparent","opacity":"0.16"}},{"selectors":[{"name":"skeleton-anim","active":false}],"style":{"position":"relative"}},{"selectors":[{"name":"nav__item","active":false},"active"],"style":{"color":"black"}},{"selectors":["margin-20"],"style":{"margin":"20px 0px 20px 0px"}},{"selectors":["#i0ro3"],"style":{"display":"none"}},{"selectors":[{"name":"loading__item","active":false},"loaded-true"],"style":{"display":"none"}},{"selectors":["#i69a7"],"style":{"width":"100%"}},{"selectors":["flex-no-shrink"],"style":{"flex-shrink":"0"}},{"selectors":["button--small"],"style":{"padding":"3px 12px 4px 12px"}},{"selectors":["form"],"style":{"padding":"10px 10px 10px 10px","border-radius":"5px 5px 5px 5px"}},{"selectors":["#i1nmbc"],"style":{"flex-shrink":"0"}},{"selectors":["input"],"style":{"padding":"10px 10px 10px 10px","background-color":"transparent","border":"1px solid #5e85a8"}},{"selectors":[{"name":"full-width","active":false}],"style":{"width":"100%"}},{"selectors":[{"name":"v-space","active":false}],"style":{"margin":"10px 0px 10px 0px"}},{"selectors":["#ihwwxz"],"style":{"min-height":"100px"}},{"selectors":[{"name":"box","active":false}],"style":{"border":"2px solid #5e85a8"}},{"selectors":["box__header"],"style":{"margin":"0px 0px 0px 0px","padding":"10px 0px 10px 10px"}},{"selectors":[{"name":"box","active":false},"horizontal"],"style":{"align-items":"center"}},{"selectors":["horizontal"],"style":{"display":"flex","align-items":"center"}},{"selectors":[{"name":"h-space","active":false}],"style":{"margin":"0px 10px 0px 10px"}},{"selectors":[{"name":"button--tertiary","active":false}],"style":{"background-color":"transparent","font-weight":"400"}},{"selectors":["icon-font"],"style":{"font-size":"1.5rem","line-height":"1px","margin":"0px 2px 0px 2px"}},{"selectors":["lang__item"],"style":{"margin":"0px 5px 0px 5px"}},{"selectors":["top-space-40"],"style":{"margin":"40px 0 0 0"}},{"selectors":["nav__logo"],"style":{"height":"50px"}},{"selectors":["user-icon__image"],"style":{"width":"100%","height":"100%"}},{"selectors":["user__wrapper"],"style":{"border":"1px solid white"}},{"selectors":[{"name":"right-space","active":false}],"style":{"margin":"0px 5px 0px 0px"}},{"selectors":["#ic9eoa"],"style":{"min-height":"100px"}},{"selectors":["#iksw4d"],"style":{"padding":"10px"}},{"selectors":[{"name":"button","active":false}],"style":{"color":"#ff6600","background-color":"transparent","border":"1px solid #dddddd"},"state":"hover"},{"selectors":[{"name":"button","active":false},"button--secondary"],"style":{"background-color":"white"},"state":"hover"},{"selectors":["#ip1xpi"],"style":{"color":"black"}},{"selectors":["#i6no5k"],"style":{"display":"flex"}},{"selectors":["#i1k8my"],"style":{"padding":"10px"}},{"selectors":["#i208mw"],"style":{"min-height":"100px"}},{"selectors":["#iel80b"],"style":{"color":"black"}},{"selectors":["#ioziwk"],"style":{"width":"100%"}},{"selectors":["#imgx81"],"style":{"min-height":"100vh","display":"flex","justify-content":"center","align-items":"center","flex-direction":"column"}},{"selectors":["#in62y2"],"style":{"width":"100%","display":"flex","justify-content":"center"}},{"selectors":["user-icon__wrapper"],"style":{"border":"1px solid #f0f0f0","background-color":"#f0f0f0","border-radius":"50% 50% 50% 50%","width":"40px","height":"40px","padding":"5px 5px 5px 5px"}},{"selectors":["user-icon__wrapper2"],"style":{"width":"40px","height":"40px"}},{"selectors":["big-button"],"style":{"border-radius":"5px 5px 5px 5px","font-size":"15px","margin":"10px 10px 10px 10px","padding":"15px 30px 15px 30px","font-weight":"400"}},{"selectors":["#i9msnk"],"style":{"padding":"10px","display":"inline"}},{"selectors":["#i6akll"],"style":{"padding":"10px","display":"inline"}},{"selectors":["#ixzhcr"],"style":{"padding":"10px","position":"absolute","display":"none"}},{"selectors":["title"],"style":{"margin":"0 0 10px 0","font-size":"2rem","font-weight":"400"}},{"selectors":["#ighycb"],"style":{"padding":"10px"}},{"selectors":["#it2175"],"style":{"padding":"10px"}}],"pages":[{"frames":[{"component":{"type":"wrapper","classes":["body",{"name":"loading","active":false}],"attributes":{"id":"ik0i"},"components":[{"tagName":"HEADER","type":"container","icon":"<span class=\"fa fa-top\"></span>","classes":[{"name":"header","active":false},"padding-normal"],"attributes":{"id":"igrg"},"components":[{"tagName":"A","type":"container","attributes":{"id":"igvu43","href":"/"},"components":[{"type":"image","classes":["nav__logo"],"attributes":{"src":"/assets/silex-icon-2018@200px.png","href":"","id":"iel80b-2"},"custom-name":"logo","originalTagName":"img"}],"originalTagName":"div"},{"tagName":"NAV","type":"container","classes":["nav"],"attributes":{"id":"i9jq"},"components":[{"tagName":"A","type":"text","classes":[{"name":"nav__item","active":false}],"attributes":{"id":"iels","href":"{{ item.url }}"},"components":[{"type":"textnode","content":"Sites"}],"template":{"before":"{% for item in nav %}","replace":"{{ item.label }}","after":"{% endfor %}","attributes":"target=\"{{ item.target }}\"","classname":"{% if forloop.index == 1 %}active{% endif %}","style":""},"originalTagName":"div"}],"custom-name":"Nav"},{"type":"container","classes":["lang",{"name":"h-space","active":false}],"attributes":{"id":"i2red7"},"components":[{"tagName":"A","type":"text","classes":["lang__item",{"name":"nav__item","active":false}],"attributes":{"href":"/{{ link.code }}","id":"iciz"},"components":[{"type":"textnode","content":"en"}],"template":{"before":"{% assign links = languages %}\n{%- for link in links %}","replace":"{{ link.code }}","after":"{% endfor %}","attributes":"hreflang=\"{{link.code}}\"","classname":"{% if link.code == lang %}active{% endif %}","style":""},"originalTagName":"div"}],"custom-name":"Lang"},{"type":"container","classes":["user__wrapper"],"attributes":{"id":"i24ew"},"custom-name":"User","components":[{"type":"container","classes":["user-icon__wrapper"],"attributes":{"id":"i5xsbd"},"components":[{"type":"container","classes":["user-icon__image"],"attributes":{"id":"i5wlbq"},"template":{"before":"","replace":"","after":"","attributes":"v-if=\"user\" v-show=\"!showMenu || user.storage.disableLogout\" :style='`background: url(\"${user.picture}\"); background-repeat: no-repeat; background-size: contain;`'","classname":"","style":""},"custom-name":"Image"}],"custom-name":"Wrapper","template":{"before":"","replace":"","after":"","attributes":"v-if=\"user\" v-show=\"!showMenu || user.storage.disableLogout\" ","classname":"","style":""}},{"type":"container","attributes":{"id":"ic9eoa"},"components":[{"type":"text","classes":[{"name":"button","active":false},"button--secondary"],"attributes":{"id":"iksw4d"},"components":[{"type":"textnode","content":"Logout"}],"template":{"before":"","replace":"","after":"","attributes":"@click=\"logout()\"","classname":"","style":""}}],"custom-name":"Menu","template":{"before":"","replace":"","after":"","attributes":"v-show=\"showMenu && !user.storage.disableLogout\"","classname":"","style":""}}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"user && !user.storage.disableLogout\" @NOmouseover=\"showMenu = true\" @NOmouseout=\"showMenu = false\" @click=\"showMenu = !showMenu\"","classname":"","style":""}}],"custom-name":"Header"},{"tagName":"MAIN","type":"container","classes":["padding-normal","section"],"attributes":{"id":"iz63r"},"components":[{"tagName":"H1","type":"text","classes":["title"],"attributes":{"id":"itp1f"},"components":[{"type":"textnode","content":"Welcome back!"},{"tagName":"br","void":true}],"template":{"before":"","replace":"{{ title2 }}","after":"","attributes":"","classname":"","style":""}},{"type":"text","classes":["subtitle",{"name":"color--light","active":false}],"attributes":{"id":"iyex8"},"components":[{"type":"textnode","content":"Dive into your projects or kickstart a new one"}],"template":{"before":"","replace":"{{ subtitle }}","after":"","attributes":"","classname":"","style":""}},{"type":"container","classes":[{"name":"button-bar","active":false},"margin-20"],"attributes":{"id":"ickx4"},"components":[{"tagName":"BUTTON","type":"text","classes":[{"name":"button","active":false},{"name":"button--primary","active":false},{"name":"rounded","active":false},"top-space-40"],"attributes":{"id":"i2x0l"},"components":[{"tagName":"span","type":"text","classes":["icon-font"],"attributes":{"id":"ibsgw"},"components":[{"type":"textnode","content":"+"}]},{"type":"textnode","content":" "},{"tagName":"span","type":"text","attributes":{"id":"itl2n8"},"components":[{"type":"textnode","content":"Create website"}],"template":{"before":"","replace":"{{ add-button }}","after":"","attributes":"","classname":"","style":""}}],"template":{"before":"","replace":"","after":"","attributes":"@click=\"showCreationForm = !showCreationForm\" v-if=\"!showCreationForm\"","classname":"","style":""}},{"type":"text","classes":[{"name":"button","active":false},"button--secondary",{"name":"rounded","active":false}],"attributes":{"id":"i0ro3"},"components":[{"type":"textnode","content":"Import"}]}]},{"type":"container","classes":[{"name":"box","active":false},"top-space-40"],"attributes":{"id":"ihwwxz"},"components":[{"tagName":"H3","type":"text","classes":["box__header"],"attributes":{"id":"i3gd1b"},"components":[{"type":"textnode","content":"Create a new website"}],"template":{"before":"","replace":"{{ add-title }}","after":"","attributes":"","classname":"","style":""}},{"type":"form","classes":["form"],"attributes":{"method":"get","id":"i50acf"},"components":[{"classes":[{"name":"v-space","active":false}],"attributes":{"id":"igtg1t"},"components":[{"type":"label","classes":[{"name":"v-space","active":false}],"attributes":{"id":"i1nmbc"},"components":[{"type":"textnode","content":"Website name"}],"template":{"before":"","replace":"{{ add-name-label }}","after":"","attributes":"","classname":"","style":""}},{"type":"input","void":true,"classes":["input",{"name":"full-width","active":false}],"attributes":{"type":"text","id":"ij5iwh","placeholder":"{{ add-name-placeholder }}"},"template":{"before":"","replace":"","after":"","attributes":"v-model=\"newWebsiteName\"","classname":"","style":""}}]},{"attributes":{"id":"ie0xes"},"components":[{"type":"button","classes":[{"name":"button","active":false},{"name":"rounded","active":false},{"name":"button--primary","active":false},{"name":"right-space","active":false}],"attributes":{"type":"submit","id":"i021na"},"text":"Create","components":[{"type":"textnode","content":"Create"}],"template":{"before":"","replace":"{{ add-ok }}","after":"","attributes":"","classname":"","style":""}},{"type":"button","classes":[{"name":"button","active":false},{"name":"rounded","active":false},"button--secondary"],"attributes":{"type":"reset"},"text":"Cancel","components":[{"type":"textnode","content":"Cancel"}],"template":{"before":"","replace":"{{ add-cancel }}","after":"","attributes":"@click=\"showCreationForm = !showCreationForm\"","classname":"","style":""}}]}],"template":{"before":"","replace":"","after":"","attributes":"@submit.prevent=\"createWebsite\"","classname":"","style":""}}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"showCreationForm\"","classname":"","style":""}},{"type":"container","icon":"<span class=\"fa fa-list\"></span>","attributes":{"id":"if80m"},"components":[{"tagName":"SECTION","type":"container","classes":[{"name":"button-bar","active":false},{"name":"button-bar--full-width","active":false},{"name":"bg-white","active":false},{"name":"rounded","active":false},"loaded__item"],"attributes":{"id":"idgvg"},"components":[{"tagName":"H3","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--main","active":false}],"attributes":{"id":"i69a7"},"components":[{"type":"textnode","content":"My first website"}],"template":{"before":"","replace":"","after":"","attributes":"v-text=\"website.name || website.id\"","classname":"","style":""}},{"tagName":"P","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false},"flex-no-shrink"],"attributes":{"id":"i65hn"},"components":[{"type":"textnode","content":"Updated 1h ago by lexoyo"}],"template":{"before":"","replace":"","after":"","attributes":"v-text=\"'{{ list-item-updated }} ' + new Date(website.updatedAt).toLocaleDateString(undefined, { day: 'numeric', month: 'long', year: 'numeric' })\"","classname":"","style":""}},{"tagName":"P","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false},"flex-no-shrink"],"attributes":{"id":"i64qa"},"components":[{"type":"textnode","content":"Created 2023-02-16 by lexoyo"}],"template":{"before":"","replace":"","after":"","attributes":"v-text=\"'{{ list-item-created }} ' + new Date(website.createdAt).toLocaleDateString(undefined, { day: 'numeric', month: 'long', year: 'numeric' })\"","classname":"","style":""}},{"type":"container","classes":[{"name":"button-bar_item","active":false},"flex-no-shrink"],"attributes":{"id":"i3b4tr"},"components":[{"tagName":"BUTTON","type":"text","classes":[{"name":"button","active":false},{"name":"rounded","active":false},{"name":"button--primary","active":false},"button--small",{"name":"right-space","active":false}],"attributes":{"id":"ifyf6p","href":""},"components":[{"type":"textnode","content":"Edit"}],"originalTagName":"div","template":{"before":"","replace":"{{ list-edit }}","after":"","attributes":"@click=\"openEditor(website.websiteId, '{{lang}}')\"","classname":"","style":""}},{"tagName":"BUTTON","type":"text","classes":[{"name":"button","active":false},{"name":"rounded","active":false},"button--small",{"name":"right-space","active":false},{"name":"button--tertiary","active":false}],"attributes":{"href":"","id":"ihf6ew"},"components":[{"type":"textnode","content":"Rename"}],"originalTagName":"div","template":{"before":"","replace":"{{ list-rename }}","after":"","attributes":"@click=\"renameWebsite(website.websiteId, '{{lang}}')\"","classname":"","style":""}},{"tagName":"BUTTON","type":"text","classes":[{"name":"button","active":false},{"name":"rounded","active":false},"button--small",{"name":"button--tertiary","active":false}],"attributes":{"id":"iol4h"},"components":[{"type":"textnode","content":"X"}],"template":{"before":"","replace":"","after":"","attributes":"@click=\"deleteWebsite(website.websiteId)\" title=\"{{ list-delete }}\"","classname":"","style":""}}]}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"!loading\" v-for=\"(website, index) in websites\" :key=\"index\"","classname":"","style":""}},{"tagName":"SECTION","type":"container","classes":[{"name":"button-bar","active":false},{"name":"button-bar--full-width","active":false},{"name":"bg-white","active":false},{"name":"rounded","active":false},{"name":"loading__item","active":false},{"name":"skeleton-anim","active":false},{"name":"skeleton-wrapper","active":false}],"attributes":{"id":"i1fjn"},"components":[{"tagName":"H3","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--main","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"My first websiteMy first websiteMy first websiteMy first"}]},{"tagName":"P","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"Updated 1h ago by lexoyo"}]},{"tagName":"P","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"Created 2023-02-16 by lexoyo"}]},{"type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"skeleton","active":false},{"name":"skeleton-button","active":false}],"attributes":{"id":"ixz6c"},"components":[{"type":"textnode","content":"Edit"}]}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"loading\"","classname":"","style":""}},{"tagName":"SECTION","type":"container","classes":[{"name":"button-bar","active":false},{"name":"button-bar--full-width","active":false},{"name":"bg-white","active":false},{"name":"rounded","active":false},{"name":"loading__item","active":false},{"name":"skeleton-anim","active":false},{"name":"skeleton-wrapper","active":false}],"attributes":{"id":"iwxxo5"},"components":[{"tagName":"H3","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--main","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"My first websiteMy first websiteMy first websiteMy first"}]},{"tagName":"P","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"Updated 1h ago by lexoyo"}]},{"tagName":"P","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"Created 2023-02-16 by lexoyo"}]},{"type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"skeleton","active":false},{"name":"skeleton-button","active":false}],"attributes":{"id":"i9fx3l"},"components":[{"type":"textnode","content":"Edit"}]}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"loading\"","classname":"","style":""}},{"tagName":"SECTION","type":"container","classes":[{"name":"button-bar","active":false},{"name":"button-bar--full-width","active":false},{"name":"bg-white","active":false},{"name":"rounded","active":false},{"name":"loading__item","active":false},{"name":"skeleton-anim","active":false},{"name":"skeleton-wrapper","active":false}],"attributes":{"id":"isld3r"},"components":[{"tagName":"H3","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--main","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"My first websiteMy first websiteMy first websiteMy first"}]},{"tagName":"P","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"Updated 1h ago by lexoyo"}]},{"tagName":"P","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"Created 2023-02-16 by lexoyo"}]},{"type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"skeleton","active":false},{"name":"skeleton-button","active":false}],"attributes":{"id":"i8oes3"},"components":[{"type":"textnode","content":"Edit"}]}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"loading\"","classname":"","style":""}},{"tagName":"SECTION","type":"container","classes":[{"name":"button-bar","active":false},{"name":"button-bar--full-width","active":false},{"name":"bg-white","active":false},{"name":"rounded","active":false},{"name":"loading__item","active":false},{"name":"skeleton-anim","active":false},{"name":"skeleton-wrapper","active":false}],"attributes":{"id":"iqmx38"},"components":[{"tagName":"H3","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--main","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"My first websiteMy first websiteMy first websiteMy first"}]},{"tagName":"P","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"Updated 1h ago by lexoyo"}]},{"tagName":"P","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"Created 2023-02-16 by lexoyo"}]},{"type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"skeleton","active":false},{"name":"skeleton-button","active":false}],"attributes":{"id":"ie83jl"},"components":[{"type":"textnode","content":"Edit"}]}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"loading\"","classname":"","style":""}}]},{"type":"container","classes":[{"name":"box","active":false},"horizontal"],"attributes":{"id":"i7ej6j"},"components":[{"type":"text","classes":[{"name":"full-width","active":false},{"name":"v-space","active":false},{"name":"h-space","active":false}],"attributes":{"id":"iv0eyi"},"components":[{"type":"textnode","content":"Insert your text here"}],"template":{"before":"","replace":"","after":"","attributes":"v-text=\"error\"","classname":"","style":""}},{"type":"text","classes":[{"name":"button","active":false},{"name":"rounded","active":false},"button--small",{"name":"button--tertiary","active":false}],"attributes":{"id":"i4656n"},"components":[{"type":"textnode","content":"Dismiss"}],"template":{"before":"","replace":"{{ message-dismiss }}","after":"","attributes":"@click=\"error = null\"","classname":"","style":""}}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"error\"","classname":"","style":""}},{"type":"container","classes":[{"name":"box","active":false},"horizontal"],"attributes":{"id":"ilteie"},"components":[{"type":"text","classes":[{"name":"full-width","active":false},{"name":"v-space","active":false},{"name":"h-space","active":false}],"attributes":{"id":"i2d31v"},"components":[{"type":"textnode","content":"Insert your text here"}],"template":{"before":"","replace":"","after":"","attributes":"v-text=\"message\"","classname":"","style":""}},{"type":"text","classes":[{"name":"button","active":false},{"name":"rounded","active":false},"button--small",{"name":"button--tertiary","active":false}],"attributes":{"id":"i2urco"},"components":[{"type":"textnode","content":"Dismiss"}],"template":{"before":"","replace":"{{ message-dismiss }}","after":"","attributes":"@click=\"message = null\"","classname":"","style":""}}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"message\"","classname":"","style":""}}],"custom-name":"Main"},{"tagName":"FOOTER","type":"container","classes":[{"name":"header","active":false},"footer"],"attributes":{"id":"ilzpl"},"components":[{"type":"text","classes":["section"],"attributes":{"id":"i238z"},"components":[{"type":"textnode","content":"Links"},{"tagName":"br","void":true},{"tagName":"ul","attributes":{"id":"ibmxx"},"components":[{"tagName":"li","type":"text","attributes":{"id":"iktkw"},"components":[{"type":"textnode","content":"Docs"}]},{"tagName":"li","type":"text","attributes":{"id":"ipexhl"},"components":[{"type":"textnode","content":"Support"}]},{"tagName":"li","type":"text","classes":["gjs-hovered"],"attributes":{"id":"ihfzt","draggable":"true"},"components":[{"type":"textnode","content":"Bug report"}]},{"tagName":"li","type":"text","attributes":{"id":"i4qli"},"components":[{"type":"textnode","content":"Source code"},{"tagName":"br","void":true}]}]}],"template":{"before":"","replace":"{{ content }}","after":"","attributes":"","classname":"","style":""}}],"custom-name":"Footer"}],"template":{"before":"","replace":"","after":"","attributes":"","classname":"app","style":""}}}],"type":"main","id":"mk3OKgfr4A9V7Dww","settings":{"lang":"","title":"","description":"","favicon":"","og:title":"","og:description":"","og:image":"","head":"{% render \"api-websites.js.html\" frontmatter: frontmatter page: page site: site api-translations: api-translations lang: lang %}\n"},"name":"Websites","slug":"websites"},{"frames":[{"component":{"type":"wrapper","attributes":{"id":"i2hcfw"},"components":[{"tagName":"A","type":"text","classes":[{"name":"button","active":false},{"name":"button-bar__item--secondary","active":false}],"attributes":{"id":"ixzhcr","href":"/"},"components":[{"type":"textnode","content":"{{ api-translations[lang][\"Back to home\"] }}"}],"originalTagName":"div"},{"type":"container","attributes":{"id":"imgx81"},"components":[{"tagName":"H1","type":"text","attributes":{"id":"ighycb"},"components":[{"type":"textnode","content":"Welcome to Silex"},{"tagName":"br","void":true}],"template":{"before":"","replace":"{{ api-translations[lang][\"Welcome to Silex\"] }}","after":"","attributes":"","classname":"","style":""}},{"type":"text","classes":["subtitle"],"attributes":{"id":"it2175"},"components":[{"type":"textnode","content":"Please login to continue"},{"tagName":"br","void":true}],"template":{"before":"","replace":"{{ api-translations[lang][\"Please login to continue\"] }}","after":"","attributes":"","classname":"","style":""}},{"type":"container","classes":[{"name":"button-bar","active":false}],"attributes":{"id":"in62y2"},"components":[{"tagName":"A","type":"container","classes":[{"name":"h-space","active":false},{"name":"button-bar__item--main","active":false},{"name":"button-bar_item","active":false},{"name":"button","active":false},"big-button"],"attributes":{"id":"isqe61","href":"https://"},"components":[{"type":"text","attributes":{"id":"i87asw"},"components":[{"type":"textnode","content":"Insert your text here"}],"template":{"before":"","replace":"","after":"","attributes":"v-text=\"connector.displayName\"","classname":"","style":""}}],"custom-name":"Button","template":{"before":"","replace":"","after":"","attributes":"v-if=\"!loading\" v-for=\"(connector, index) in connectors\" :key=\"index\" :style=\"{ backgroundColor: connector.background, color: connector.color }\" @click=\"openLogin(connector)\"","classname":"","style":""},"originalTagName":"div"}],"custom-name":"Popin"},{"type":"text","attributes":{"id":"i9msnk"},"components":[{"type":"textnode","content":"Insert your text here"}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"error\" v-html=\"message\"","classname":"","style":""}},{"type":"text","classes":[{"name":"button","active":false},{"name":"button--tertiary","active":false}],"attributes":{"id":"i6akll"},"components":[{"type":"textnode","content":"{{ api-translations[lang][\"Logout\"] }}"}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"error\" @click=\"logout()\"","classname":"","style":""}}],"custom-name":"Wrapper"}],"template":{"before":"","replace":"","after":"","attributes":"","classname":"app","style":""}}}],"name":"Connectors","id":"BOCWuSXKn6FRo8x5L","settings":{"lang":"","title":"","description":"","favicon":"","og:title":"","og:description":"","og:image":"","head":"{% render \"api-connectors.js.html\" frontmatter: frontmatter page: page site: site api-translations: api-translations lang: lang %}\n"},"slug":"connectors"}],"settings":{"lang":"","title":"{{ title }}","description":"","favicon":"","og:title":"","og:description":"","og:image":"","head":"{% render \"alternate.liquid\" languages: languages lang: lang page: page %}\n\n<style>\n.button { cursor: pointer; }\na { text-decoration: none; }\na:hover { text-decoration: underline; }\n\n.skeleton-anim:after {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n content: \"\";\n background: \n linear-gradient(0.25turn, transparent, rgba(255,255,255,.75), transparent),\n linear-gradient(transparent, transparent),\n radial-gradient(38px circle at 19px 19px, transparent 50%, transparent 51%),\n linear-gradient(transparent, transparent); \n background-repeat: no-repeat;\n background-size: 315px 250px, 315px 180px, 100px 100px, 225px 30px; \n background-position: -315px 0, 0 0, 0px 190px, 50px 195px; \n animation: loading 1.5s infinite;\n}\n\n@keyframes loading { \n to {\n background-position: 200% 0, 0 0, 0 190px, 50px 195px;\n }\n}\n\n</style>"},"name":"Dashboard","fonts":[{"name":"Roboto","value":"\"Roboto\", sans-serif","variants":[]}],"symbols":[],"publication":{"connector":{"connectorId":"fs-hosting","type":"HOSTING","displayName":"File system hosting","icon":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%202L6%2022%2018%2022%2018%207%2012%202%206%202Z%22%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M18%202L12%202%2012%208%2018%208%2018%202Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E","disableLogout":true,"isLoggedIn":true,"oauthUrl":null,"color":"#000000","background":"#006400"}}}
1
+ {"assets":[{"type":"image","src":"assets/alex-small.jpg","unitDim":"px","height":0,"width":0},{"type":"image","src":"assets/silex-icon-2018@200px.png","unitDim":"px","height":0,"width":0}],"styles":[{"selectors":["nav__item"],"style":{"margin":"0px 10px 0px 10px","font-size":"1rem","padding":"24px 0px 24px 0px","color":"#4a4a4a","font-family":"\"Montserrat\", sans-serif"}},{"selectors":["body"],"style":{"font-family":"\"Ubuntu\", sans-serif","background-color":"#f0f0f0"}},{"selectors":[{"name":"header","active":false}],"style":{"display":"flex","align-items":"center","justify-content":"space-between","background-color":"#ffffff"}},{"selectors":["#ir7s"],"style":{"color":"black"}},{"selectors":[{"name":"padding-normal","active":false}],"style":{"padding":"0px 24px 0px 24px"}},{"selectors":["#i9jq"],"style":{"display":"flex"}},{"selectors":["nav"],"style":{"width":"100%","margin":"0px 20px 0px 20px"}},{"selectors":["#iz63r"],"style":{"min-height":"90vh"}},{"selectors":["subtitle"],"style":{"font-size":"1rem","margin":"0px 0px 20px 0px","color":"#4a4a4a"}},{"selectors":["section"],"style":{"max-width":"1200px","margin":"80px auto 80px auto"}},{"selectors":["subtitle",{"name":"color--light","active":false}],"style":{"color":"#636363","font-weight":"700"}},{"selectors":["button"],"style":{"font-size":"0.8rem","padding":"8px 15px 8px 15px","display":"inline-block","border":"1px solid transparent","transition":"all 0.18s ease-out","font-family":"\"Montserrat\", sans-serif"}},{"selectors":["button",{"name":"button--primary","active":false}],"style":{"background-color":"#5e85a8","color":"white"}},{"selectors":[{"name":"button-bar","active":false}],"style":{"margin":"10px 0px 10px 0px","display":"flex"}},{"selectors":["#ibsgw"],"style":{"position":"relative","top":"3px"}},{"selectors":[{"name":"button-bar","active":false},{"name":"button-bar--full-width","active":false}],"style":{"justify-content":"space-between","align-items":"center"}},{"selectors":[{"name":"button-bar_item","active":false}],"style":{"margin":"20px 20px 20px 20px"}},{"selectors":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false}],"style":{"font-size":"0.8rem","color":"#444444"}},{"selectors":["button","button--secondary"],"style":{"font-weight":"400","background-color":"rgba(221,221,221,0.5)"}},{"selectors":[{"name":"bg-white","active":false}],"style":{"background-color":"#ffffff"}},{"selectors":[{"name":"rounded","active":false}],"style":{"border-radius":"2px 2px 2px 2px"}},{"selectors":["#ilzpl"],"style":{"min-height":"100px"}},{"selectors":["#i238z"],"style":{"padding":"10px"}},{"selectors":["footer"],"style":{"display":"block","margin":"20px 0px 0 0px","padding":"1px 0px 1px 0px"}},{"selectors":["skeleton-text",{"name":"skeleton","active":false}],"style":{"background-color":"#dddddd","color":"transparent","opacity":"0.31","border-radius":"5px 5px 5px 5px"}},{"selectors":[{"name":"skeleton","active":false},{"name":"skeleton-button","active":false}],"style":{"color":"transparent","opacity":"0.16"}},{"selectors":[{"name":"skeleton-anim","active":false}],"style":{"position":"relative"}},{"selectors":["nav__item","active"],"style":{"color":"black"}},{"selectors":["margin-20"],"style":{"margin":"20px 0px 20px 0px"}},{"selectors":["#i0ro3"],"style":{"display":"none"}},{"selectors":[{"name":"loading__item","active":false},"loaded-true"],"style":{"display":"none"}},{"selectors":["#i69a7"],"style":{"width":"100%"}},{"selectors":[{"name":"flex-no-shrink","active":false}],"style":{"flex-shrink":"0"}},{"selectors":["button--small"],"style":{"padding":"3px 12px 4px 12px"}},{"selectors":["form"],"style":{"padding":"10px 10px 10px 10px","border-radius":"5px 5px 5px 5px"}},{"selectors":["#i1nmbc"],"style":{"flex-shrink":"0"}},{"selectors":["input"],"style":{"padding":"10px 10px 10px 10px","background-color":"transparent","border":"1px solid #5e85a8"}},{"selectors":[{"name":"full-width","active":false}],"style":{"width":"100%"}},{"selectors":[{"name":"v-space","active":false}],"style":{"margin":"10px 0px 10px 0px"}},{"selectors":["#ihwwxz"],"style":{"min-height":"100px"}},{"selectors":[{"name":"box","active":false}],"style":{"border":"2px solid #5e85a8"}},{"selectors":["box__header"],"style":{"margin":"0px 0px 0px 0px","padding":"10px 0px 10px 10px","font-weight":"700","font-size":"1rem"}},{"selectors":[{"name":"box","active":false},"horizontal"],"style":{"align-items":"center"}},{"selectors":["horizontal"],"style":{"display":"flex","align-items":"center"}},{"selectors":[{"name":"h-space","active":false}],"style":{"margin":"0px 10px 0px 10px"}},{"selectors":[{"name":"button--tertiary","active":false}],"style":{"background-color":"transparent","font-weight":"400"}},{"selectors":["icon-font"],"style":{"font-size":"1.5rem","line-height":"1px","margin":"0px 2px 0px 2px"}},{"selectors":["lang__item"],"style":{"margin":"0px 5px 0px 5px"}},{"selectors":[{"name":"top-space-40","active":false}],"style":{"margin":"40px 0 0 0"}},{"selectors":["nav__logo"],"style":{"height":"50px"}},{"selectors":["user-icon__image"],"style":{"width":"100%","height":"100%"}},{"selectors":["user__wrapper"],"style":{"border":"1px solid white","display":"flex","flex-direction":"column","justify-content":"center","align-items":"center"}},{"selectors":[{"name":"right-space","active":false}],"style":{"margin":"0px 5px 0px 0px"}},{"selectors":["#iksw4d"],"style":{"padding":"10px"}},{"selectors":["button"],"style":{"color":"#ff6600","background-color":"transparent","border":"1px solid #dddddd"},"state":"hover"},{"selectors":["button","button--secondary"],"style":{"background-color":"white"},"state":"hover"},{"selectors":["#ip1xpi"],"style":{"color":"black"}},{"selectors":["#i6no5k"],"style":{"display":"flex"}},{"selectors":["#i1k8my"],"style":{"padding":"10px"}},{"selectors":["#i208mw"],"style":{"min-height":"100px"}},{"selectors":["#iel80b"],"style":{"color":"black"}},{"selectors":["#ioziwk"],"style":{"width":"100%"}},{"selectors":["#imgx81"],"style":{"min-height":"100vh","display":"flex","justify-content":"center","align-items":"center","flex-direction":"column"}},{"selectors":["#in62y2"],"style":{"width":"100%","display":"flex","justify-content":"center"}},{"selectors":["user-icon__wrapper"],"style":{"border":"1px solid #f0f0f0","background-color":"#f0f0f0","border-radius":"50% 50% 50% 50%","width":"40px","height":"40px","padding":"5px 5px 5px 5px"}},{"selectors":["user-icon__wrapper2"],"style":{"width":"40px","height":"40px"}},{"selectors":["big-button"],"style":{"border-radius":"5px 5px 5px 5px","font-size":"15px","margin":"10px 10px 10px 10px","padding":"15px 30px 15px 30px","font-weight":"400"}},{"selectors":["#i9msnk"],"style":{"padding":"10px","display":"inline"}},{"selectors":["#i6akll"],"style":{"padding":"10px","display":"inline"}},{"selectors":["#ixzhcr"],"style":{"padding":"10px","position":"absolute","display":"none"}},{"selectors":["title"],"style":{"margin":"0 0 10px 0","font-size":"1.5rem"}},{"selectors":["#ighycb"],"style":{"padding":"10px"}},{"selectors":["#it2175"],"style":{"padding":"10px"}},{"selectors":["#i7329q"],"style":{"display":"flex"}},{"selectors":["#iehijh"],"style":{"padding":"10px"}},{"selectors":["#in5jeq"],"style":{"display":"flex"}},{"selectors":["#ij139z"],"style":{"position":"absolute"}}],"pages":[{"frames":[{"component":{"type":"wrapper","classes":["body",{"name":"loading","active":false}],"attributes":{"id":"ik0i"},"components":[{"tagName":"HEADER","type":"container","icon":"<span class=\"fa fa-list\"></span>","classes":[{"name":"header","active":false},{"name":"padding-normal","active":false}],"attributes":{"id":"igrg"},"components":[{"tagName":"A","type":"container","attributes":{"id":"igvu43","href":"/"},"components":[{"type":"image","classes":["nav__logo"],"attributes":{"src":"/assets/silex-icon-2018@200px.png","href":"","id":"iel80b-2"},"custom-name":"logo","originalTagName":"img"}],"originalTagName":"div"},{"tagName":"NAV","type":"container","classes":["nav"],"attributes":{"id":"i9jq"},"components":[{"tagName":"A","type":"text","classes":["nav__item"],"attributes":{"id":"iels","href":"{{ item.url }}"},"components":[{"type":"textnode","content":"Sites"}],"template":{"before":"{% for item in nav %}","replace":"{{ item.label }}","after":"{% endfor %}","attributes":"target=\"{{ item.target }}\"","classname":"{% if forloop.index == 1 %}active{% endif %}","style":""},"originalTagName":"div"}],"custom-name":"Nav"},{"type":"container","classes":["lang",{"name":"h-space","active":false}],"attributes":{"id":"i2red7"},"components":[{"tagName":"A","type":"text","classes":["lang__item","nav__item"],"attributes":{"href":"/{{ link.code }}","id":"iciz"},"components":[{"type":"textnode","content":"en"}],"template":{"before":"{% assign links = languages %}\n{%- for link in links %}","replace":"{{ link.code }}","after":"{% endfor %}","attributes":"hreflang=\"{{link.code}}\"","classname":"{% if link.code == lang %}active{% endif %}","style":""},"originalTagName":"div"}],"custom-name":"Lang"},{"type":"container","classes":["user__wrapper"],"attributes":{"id":"i24ew"},"custom-name":"User","components":[{"type":"container","classes":["user-icon__wrapper"],"attributes":{"id":"i5xsbd"},"components":[{"type":"container","classes":["user-icon__image"],"attributes":{"id":"i5wlbq"},"template":{"before":"","replace":"","after":"","attributes":"v-if=\"user\" v-show=\"!showMenu || user.storage.disableLogout\" :style='`background: url(\"${user.picture}\"); background-repeat: no-repeat; background-size: contain;`'","classname":"","style":""},"custom-name":"Image"}],"custom-name":"Wrapper","template":{"before":"","replace":"","after":"","attributes":"v-if=\"user\" v-show=\"!showMenu || user.storage.disableLogout\" ","classname":"","style":""}},{"type":"container","attributes":{"id":"ic9eoa"},"components":[{"type":"text","classes":["button","button--secondary"],"attributes":{"id":"iksw4d"},"components":[{"type":"textnode","content":"Logout"}],"template":{"before":"","replace":"","after":"","attributes":"@click=\"logout()\"","classname":"","style":""}}],"custom-name":"Menu","template":{"before":"","replace":"","after":"","attributes":"v-show=\"showMenu && !user.storage.disableLogout\"","classname":"","style":""}}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"user && !user.storage.disableLogout\" @NOmouseover=\"showMenu = true\" @NOmouseout=\"showMenu = false\" @click=\"showMenu = !showMenu\"","classname":"","style":""}}],"custom-name":"Header"},{"tagName":"MAIN","type":"container","classes":[{"name":"padding-normal","active":false},"section"],"attributes":{"id":"iz63r"},"components":[{"tagName":"H1","type":"text","classes":["title"],"components":[{"type":"textnode","content":"Welcome back!"},{"tagName":"br","void":true}],"template":{"before":"","replace":"{{ title2 }}","after":"","attributes":"v-if=\"!empty\"","classname":"","style":""},"custom-name":"Title"},{"type":"text","classes":["subtitle"],"attributes":{"id":"iyex8"},"components":[{"type":"textnode","content":"Dive into your projects or kickstart a new one"}],"template":{"before":"","replace":"{{ subtitle }}","after":"","attributes":"v-if=\"!empty\"","classname":"","style":""},"custom-name":"Subtitle"},{"tagName":"SECTION","type":"container","attributes":{"id":"iqmx38"},"components":[{"tagName":"H1","type":"text","classes":["title"],"attributes":{"id":"i4ybc"},"components":[{"type":"textnode","content":"Welcome, let's get started"},{"tagName":"br","void":true}],"template":{"before":"","replace":"{{ title2-empty }}","after":"","attributes":"","classname":"","style":""}},{"tagName":"DIV","type":"text","classes":["subtitle"],"attributes":{"id":"iino6r"},"components":[{"type":"textnode","content":"Create your first project, click on the button \"Create a website\""},{"tagName":"br","void":true}],"template":{"before":"","replace":"{{ subtitle-empty }}","after":"","attributes":"","classname":"","style":""}}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"empty\"","classname":"","style":""},"custom-name":"Empty"},{"type":"container","classes":[{"name":"button-bar","active":false},"margin-20"],"attributes":{"id":"ickx4"},"components":[{"tagName":"BUTTON","type":"text","classes":["button",{"name":"button--primary","active":false},{"name":"rounded","active":false},{"name":"top-space-40","active":false}],"attributes":{"id":"i2x0l"},"components":[{"tagName":"span","type":"text","classes":["icon-font"],"attributes":{"id":"ibsgw"},"components":[{"type":"textnode","content":"+"}]},{"type":"textnode","content":" "},{"tagName":"span","type":"text","attributes":{"id":"itl2n8"},"components":[{"type":"textnode","content":"Create website"}],"template":{"before":"","replace":"{{ add-button }}","after":"","attributes":"","classname":"","style":""}}],"template":{"before":"","replace":"","after":"","attributes":"@click=\"showCreationForm = !showCreationForm\" v-if=\"!showCreationForm\"","classname":"","style":""}},{"type":"text","classes":["button","button--secondary",{"name":"rounded","active":false}],"attributes":{"id":"i0ro3"},"components":[{"type":"textnode","content":"Import"}]}]},{"type":"container","classes":[{"name":"box","active":false},{"name":"top-space-40","active":false}],"attributes":{"id":"ihwwxz"},"components":[{"tagName":"H3","type":"text","classes":["box__header"],"attributes":{"id":"i3gd1b"},"components":[{"type":"textnode","content":"Create a new website"}],"template":{"before":"","replace":"{{ add-title }}","after":"","attributes":"","classname":"","style":""}},{"type":"form","classes":["form"],"attributes":{"method":"get","id":"i50acf"},"components":[{"classes":[{"name":"v-space","active":false}],"attributes":{"id":"igtg1t"},"components":[{"type":"label","classes":[{"name":"v-space","active":false}],"attributes":{"id":"i1nmbc"},"components":[{"type":"textnode","content":"Website name"}],"template":{"before":"","replace":"{{ add-name-label }}","after":"","attributes":"","classname":"","style":""}},{"type":"input","void":true,"classes":["input",{"name":"full-width","active":false}],"attributes":{"type":"text","id":"ij5iwh","placeholder":"{{ add-name-placeholder }}"},"template":{"before":"","replace":"","after":"","attributes":"v-model=\"newWebsiteName\"","classname":"","style":""}}]},{"attributes":{"id":"ie0xes"},"components":[{"type":"button","classes":["button",{"name":"rounded","active":false},{"name":"button--primary","active":false},{"name":"right-space","active":false}],"attributes":{"type":"submit","id":"i021na"},"text":"Create","components":[{"type":"textnode","content":"Create"}],"template":{"before":"","replace":"{{ add-ok }}","after":"","attributes":"","classname":"","style":""}},{"type":"button","classes":["button",{"name":"rounded","active":false},"button--secondary"],"attributes":{"type":"reset"},"text":"Cancel","components":[{"type":"textnode","content":"Cancel"}],"template":{"before":"","replace":"{{ add-cancel }}","after":"","attributes":"@click=\"showCreationForm = !showCreationForm\"","classname":"","style":""}}]}],"template":{"before":"","replace":"","after":"","attributes":"@submit.prevent=\"createWebsite\"","classname":"","style":""}}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"showCreationForm\"","classname":"","style":""}},{"type":"container","icon":"<span class=\"fa fa-list\"></span>","attributes":{"id":"if80m"},"components":[{"tagName":"SECTION","type":"container","classes":[{"name":"button-bar","active":false},{"name":"button-bar--full-width","active":false},{"name":"bg-white","active":false},{"name":"rounded","active":false},"loaded__item"],"attributes":{"id":"idgvg"},"components":[{"tagName":"H3","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--main","active":false}],"attributes":{"id":"i69a7"},"components":[{"type":"textnode","content":"My first website"}],"template":{"before":"","replace":"","after":"","attributes":"v-text=\"website.name || website.id\"","classname":"","style":""}},{"tagName":"P","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false},{"name":"flex-no-shrink","active":false}],"attributes":{"id":"i65hn"},"components":[{"type":"textnode","content":"Updated 1h ago by lexoyo"}],"template":{"before":"","replace":"","after":"","attributes":"v-text=\"'{{ list-item-updated }} ' + new Date(website.updatedAt).toLocaleDateString(undefined, { day: 'numeric', month: 'long', year: 'numeric' })\"","classname":"","style":""}},{"tagName":"P","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false},{"name":"flex-no-shrink","active":false}],"attributes":{"id":"i64qa"},"components":[{"type":"textnode","content":"Created 2023-02-16 by lexoyo"}],"template":{"before":"","replace":"","after":"","attributes":"v-text=\"'{{ list-item-created }} ' + new Date(website.createdAt).toLocaleDateString(undefined, { day: 'numeric', month: 'long', year: 'numeric' })\"","classname":"","style":""}},{"type":"container","classes":[{"name":"button-bar_item","active":false},{"name":"flex-no-shrink","active":false}],"attributes":{"id":"i3b4tr"},"components":[{"tagName":"BUTTON","type":"text","classes":["button",{"name":"rounded","active":false},{"name":"button--primary","active":false},"button--small",{"name":"right-space","active":false}],"attributes":{"id":"ifyf6p","href":""},"components":[{"type":"textnode","content":"Edit"}],"originalTagName":"div","template":{"before":"","replace":"{{ list-edit }}","after":"","attributes":"@click=\"openEditor(website.websiteId, '{{lang}}')\"","classname":"","style":""}},{"tagName":"BUTTON","type":"text","classes":["button",{"name":"rounded","active":false},"button--small",{"name":"right-space","active":false},{"name":"button--tertiary","active":false}],"attributes":{"href":"","id":"ihf6ew"},"components":[{"type":"textnode","content":"Rename"}],"originalTagName":"div","template":{"before":"","replace":"{{ list-rename }}","after":"","attributes":"@click=\"renameWebsite(website.websiteId, '{{lang}}')\"","classname":"","style":""}},{"tagName":"BUTTON","type":"text","classes":["button",{"name":"rounded","active":false},"button--small",{"name":"button--tertiary","active":false}],"attributes":{"id":"iol4h"},"components":[{"type":"textnode","content":"X"}],"template":{"before":"","replace":"","after":"","attributes":"@click=\"deleteWebsite(website.websiteId)\" title=\"{{ list-delete }}\"","classname":"","style":""}}]}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"!loading\" v-for=\"(website, index) in websites\" :key=\"index\"","classname":"","style":""}},{"tagName":"SECTION","type":"container","classes":[{"name":"button-bar","active":false},{"name":"button-bar--full-width","active":false},{"name":"bg-white","active":false},{"name":"rounded","active":false},{"name":"loading__item","active":false},{"name":"skeleton-anim","active":false},{"name":"skeleton-wrapper","active":false}],"attributes":{"id":"i1fjn"},"components":[{"tagName":"H3","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--main","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"My first websiteMy first websiteMy first websiteMy first"}]},{"tagName":"P","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"Updated 1h ago by lexoyo"}]},{"tagName":"P","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"Created 2023-02-16 by lexoyo"}]},{"type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"skeleton","active":false},{"name":"skeleton-button","active":false}],"attributes":{"id":"ixz6c"},"components":[{"type":"textnode","content":"Edit"}]}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"loading\"","classname":"","style":""}},{"tagName":"SECTION","type":"container","classes":[{"name":"button-bar","active":false},{"name":"button-bar--full-width","active":false},{"name":"bg-white","active":false},{"name":"rounded","active":false},{"name":"loading__item","active":false},{"name":"skeleton-anim","active":false},{"name":"skeleton-wrapper","active":false}],"attributes":{"id":"iwxxo5"},"components":[{"tagName":"H3","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--main","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"My first websiteMy first websiteMy first websiteMy first"}]},{"tagName":"P","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"Updated 1h ago by lexoyo"}]},{"tagName":"P","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"Created 2023-02-16 by lexoyo"}]},{"type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"skeleton","active":false},{"name":"skeleton-button","active":false}],"attributes":{"id":"i9fx3l"},"components":[{"type":"textnode","content":"Edit"}]}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"loading\"","classname":"","style":""}},{"tagName":"SECTION","type":"container","classes":[{"name":"button-bar","active":false},{"name":"button-bar--full-width","active":false},{"name":"bg-white","active":false},{"name":"rounded","active":false},{"name":"loading__item","active":false},{"name":"skeleton-anim","active":false},{"name":"skeleton-wrapper","active":false}],"attributes":{"id":"isld3r"},"components":[{"tagName":"H3","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--main","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"My first websiteMy first websiteMy first websiteMy first"}]},{"tagName":"P","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"Updated 1h ago by lexoyo"}]},{"tagName":"P","type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"button-bar__item--secondary","active":false},"skeleton-text",{"name":"skeleton","active":false}],"components":[{"type":"textnode","content":"Created 2023-02-16 by lexoyo"}]},{"type":"text","classes":[{"name":"button-bar_item","active":false},{"name":"skeleton","active":false},{"name":"skeleton-button","active":false}],"attributes":{"id":"i8oes3"},"components":[{"type":"textnode","content":"Edit"}]}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"loading\"","classname":"","style":""}}],"custom-name":"List","template":{"before":"","replace":"","after":"","attributes":"v-if=\"!empty\"","classname":"","style":""}},{"type":"container","classes":[{"name":"box","active":false},"horizontal"],"attributes":{"id":"i7ej6j"},"components":[{"type":"text","classes":[{"name":"full-width","active":false},{"name":"v-space","active":false},{"name":"h-space","active":false}],"attributes":{"id":"iv0eyi"},"components":[{"type":"textnode","content":"Insert your text here"}],"template":{"before":"","replace":"","after":"","attributes":"v-text=\"error\"","classname":"","style":""}},{"type":"text","classes":["button",{"name":"rounded","active":false},"button--small",{"name":"button--tertiary","active":false}],"attributes":{"id":"i4656n"},"components":[{"type":"textnode","content":"Dismiss"}],"template":{"before":"","replace":"{{ message-dismiss }}","after":"","attributes":"@click=\"error = null\"","classname":"","style":""}}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"error\"","classname":"","style":""}},{"type":"container","classes":[{"name":"box","active":false},"horizontal"],"attributes":{"id":"ilteie"},"components":[{"type":"text","classes":[{"name":"full-width","active":false},{"name":"v-space","active":false},{"name":"h-space","active":false}],"attributes":{"id":"i2d31v"},"components":[{"type":"textnode","content":"Insert your text here"}],"template":{"before":"","replace":"","after":"","attributes":"v-text=\"message\"","classname":"","style":""}},{"type":"text","classes":["button",{"name":"rounded","active":false},"button--small",{"name":"button--tertiary","active":false}],"attributes":{"id":"i2urco"},"components":[{"type":"textnode","content":"Dismiss"}],"template":{"before":"","replace":"{{ message-dismiss }}","after":"","attributes":"@click=\"message = null\"","classname":"","style":""}}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"message\"","classname":"","style":""}}],"custom-name":"Main"},{"tagName":"FOOTER","type":"container","classes":[{"name":"header","active":false},"footer"],"attributes":{"id":"ilzpl"},"components":[{"type":"text","classes":["section"],"attributes":{"id":"i238z"},"components":[{"type":"textnode","content":"Links"},{"tagName":"br","void":true},{"tagName":"ul","attributes":{"id":"ibmxx"},"components":[{"tagName":"li","type":"text","attributes":{"id":"iktkw"},"components":[{"type":"textnode","content":"Docs"}]},{"tagName":"li","type":"text","attributes":{"id":"ipexhl"},"components":[{"type":"textnode","content":"Support"}]},{"tagName":"li","type":"text","classes":["gjs-hovered"],"attributes":{"id":"ihfzt","draggable":"true"},"components":[{"type":"textnode","content":"Bug report"}]},{"tagName":"li","type":"text","attributes":{"id":"i4qli"},"components":[{"type":"textnode","content":"Source code"},{"tagName":"br","void":true}]}]}],"template":{"before":"","replace":"{{ content }}","after":"","attributes":"","classname":"","style":""}}],"custom-name":"Footer"}],"template":{"before":"","replace":"","after":"","attributes":"","classname":"app","style":""}}}],"type":"main","id":"mk3OKgfr4A9V7Dww","settings":{"lang":"","title":"","description":"","favicon":"","og:title":"","og:description":"","og:image":"","head":"{% render \"api-websites.js.html\" frontmatter: frontmatter page: page site: site api-translations: api-translations lang: lang %}\n"},"name":"Websites","slug":"websites"},{"frames":[{"component":{"type":"wrapper","classes":["body"],"attributes":{"id":"i2hcfw"},"components":[{"tagName":"HEADER","type":"container","icon":"<span class=\"fa fa-list\"></span>","classes":[{"name":"header","active":false},{"name":"padding-normal","active":false},{"name":"full-width","active":false}],"attributes":{"id":"ij139z"},"components":[{"tagName":"A","type":"container","attributes":{"href":"/"},"components":[{"type":"image","classes":["nav__logo"],"attributes":{"src":"/assets/silex-icon-2018@200px.png","href":""},"custom-name":"logo","originalTagName":"img"}],"originalTagName":"div"},{"tagName":"NAV","type":"container","classes":["nav"],"attributes":{"id":"in5jeq"},"components":[{"tagName":"A","type":"text","classes":["nav__item"],"attributes":{"href":"{{ item.url }}","id":"i0g3ac"},"components":[{"type":"textnode","content":"Sites"}],"template":{"before":"{% for item in nav %}","replace":"{{ item.label }}","after":"{% endfor %}","attributes":"target=\"{{ item.target }}\"","classname":"{% if forloop.index == 1 %}active{% endif %}","style":""},"originalTagName":"div"}],"custom-name":"Nav"},{"type":"container","classes":["lang",{"name":"h-space","active":false}],"components":[{"tagName":"A","type":"text","classes":["lang__item","nav__item"],"attributes":{"href":"/{{ link.code }}"},"components":[{"type":"textnode","content":"en"}],"template":{"before":"{% assign links = languages %}\n{%- for link in links %}","replace":"{{ link.code }}","after":"{% endfor %}","attributes":"hreflang=\"{{link.code}}\"","classname":"{% if link.code == lang %}active{% endif %}","style":""},"originalTagName":"div"}],"custom-name":"Lang"}],"custom-name":"Header"},{"tagName":"A","type":"text","classes":["button",{"name":"button-bar__item--secondary","active":false}],"attributes":{"id":"ixzhcr","href":"/"},"components":[{"type":"textnode","content":"{{ api-translations[lang][\"Back to home\"] }}"}],"originalTagName":"div"},{"type":"container","attributes":{"id":"imgx81"},"components":[{"tagName":"H1","type":"text","classes":["title"],"attributes":{"id":"ighycb"},"components":[{"type":"textnode","content":"Welcome to Silex"},{"tagName":"br","void":true}],"template":{"before":"","replace":"{{ api-translations[lang][\"Welcome to Silex\"] }}","after":"","attributes":"","classname":"","style":""}},{"type":"text","classes":["subtitle"],"attributes":{"id":"it2175"},"components":[{"type":"textnode","content":"Please login to continue"},{"tagName":"br","void":true}],"template":{"before":"","replace":"{{ api-translations[lang][\"Please login to continue\"] }}","after":"","attributes":"","classname":"","style":""}},{"type":"container","classes":[{"name":"button-bar","active":false}],"attributes":{"id":"in62y2"},"components":[{"tagName":"A","type":"container","classes":[{"name":"h-space","active":false},{"name":"button-bar__item--main","active":false},{"name":"button-bar_item","active":false},"button","big-button"],"attributes":{"id":"isqe61","href":"https://"},"components":[{"type":"text","attributes":{"id":"i87asw"},"components":[{"type":"textnode","content":"Insert your text here"}],"template":{"before":"","replace":"","after":"","attributes":"v-text=\"connector.displayName\"","classname":"","style":""}}],"custom-name":"Button","template":{"before":"","replace":"","after":"","attributes":"v-if=\"!loading\" v-for=\"(connector, index) in connectors\" :key=\"index\" :style=\"{ backgroundColor: connector.background, color: connector.color }\" @click=\"openLogin(connector)\"","classname":"","style":""},"originalTagName":"div"}],"custom-name":"Popin"},{"type":"text","attributes":{"id":"i9msnk"},"components":[{"type":"textnode","content":"Insert your text here"}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"error\" v-html=\"message\"","classname":"","style":""}},{"type":"text","classes":["button",{"name":"button--tertiary","active":false}],"attributes":{"id":"i6akll"},"components":[{"type":"textnode","content":"{{ api-translations[lang][\"Logout\"] }}"}],"template":{"before":"","replace":"","after":"","attributes":"v-if=\"error\" @click=\"logout()\"","classname":"","style":""}}],"custom-name":"Wrapper"}],"template":{"before":"","replace":"","after":"","attributes":"","classname":"app","style":""}}}],"name":"Connectors","id":"BOCWuSXKn6FRo8x5L","settings":{"lang":"","title":"","description":"","favicon":"","og:title":"","og:description":"","og:image":"","head":"{% render \"api-connectors.js.html\" frontmatter: frontmatter page: page site: site api-translations: api-translations lang: lang %}\n"},"slug":"connectors"}],"settings":{"lang":"","title":"{{ title }}","description":"","favicon":"","og:title":"","og:description":"","og:image":"","head":"{% render \"alternate.liquid\" languages: languages lang: lang page: page %}\n\n<style>\n.button { cursor: pointer; }\na { text-decoration: none; }\na:hover { text-decoration: underline; }\n\n.skeleton-anim:after {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n content: \"\";\n background: \n linear-gradient(0.25turn, transparent, rgba(255,255,255,.75), transparent),\n linear-gradient(transparent, transparent),\n radial-gradient(38px circle at 19px 19px, transparent 50%, transparent 51%),\n linear-gradient(transparent, transparent); \n background-repeat: no-repeat;\n background-size: 315px 250px, 315px 180px, 100px 100px, 225px 30px; \n background-position: -315px 0, 0 0, 0px 190px, 50px 195px; \n animation: loading 1.5s infinite;\n}\n\n@keyframes loading { \n to {\n background-position: 200% 0, 0 0, 0 190px, 50px 195px;\n }\n}\n\n</style>"},"name":"Dashboard","fonts":[{"name":"Ubuntu","value":"\"Ubuntu\", sans-serif","variants":[]},{"name":"Montserrat","value":"\"Montserrat\", sans-serif","variants":[]}],"symbols":[],"publication":{"connector":{"connectorId":"fs-hosting","type":"HOSTING","displayName":"File system hosting","icon":"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%202L6%2022%2018%2022%2018%207%2012%202%206%202Z%22%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M18%202L12%202%2012%208%2018%208%2018%202Z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E","disableLogout":true,"isLoggedIn":true,"oauthUrl":null,"color":"#000000","background":"#006400"}}}
@@ -1 +1 @@
1
- * { box-sizing: border-box; } body {margin: 0;}.subtitle{font-size:1rem;margin:0px 0px 20px 0px;}.subtitle.color--light{color:#636363;font-weight:700;}.button{font-weight:700;font-size:0.8rem;padding:8px 15px 8px 15px;display:inline-block;border:1px solid transparent;transition:all 0.18s ease-out;font-family:"Roboto", sans-serif;}.button.button--primary{background-color:#5e85a8;color:white;}.button-bar{margin:10px 0px 10px 0px;display:flex;}.button-bar.button-bar--full-width{justify-content:space-between;align-items:center;}.button-bar_item{margin:20px 20px 20px 20px;}.button-bar_item.button-bar__item--secondary{font-size:0.8rem;color:#444444;}.button.button--secondary{font-weight:400;background-color:rgba(221,221,221,0.5);}.h-space{margin:0px 10px 0px 10px;}.button--tertiary{background-color:transparent;font-weight:400;}.button:hover{color:#ff6600;background-color:transparent;border:1px solid #dddddd;}.button.button--secondary:hover{background-color:white;}#imgx81{min-height:100vh;display:flex;justify-content:center;align-items:center;flex-direction:column;}#in62y2{width:100%;display:flex;justify-content:center;}.big-button{border-radius:5px 5px 5px 5px;font-size:15px;margin:10px 10px 10px 10px;padding:15px 30px 15px 30px;font-weight:400;}#i9msnk{padding:10px;display:inline;}#i6akll{padding:10px;display:inline;}#ixzhcr{padding:10px;position:absolute;display:none;}#ighycb{padding:10px;}#it2175{padding:10px;}
1
+ * { box-sizing: border-box; } body {margin: 0;}.nav__item{margin:0px 10px 0px 10px;font-size:1rem;padding:24px 0px 24px 0px;color:#4a4a4a;}.body{font-family:Verdana, Geneva, sans-serif;background-color:#f0f0f0;}.header{display:flex;align-items:center;justify-content:space-between;background-color:#ffffff;}.padding-normal{padding:0px 24px 0px 24px;}.nav{width:100%;margin:0px 20px 0px 20px;}.subtitle{font-size:1rem;margin:0px 0px 20px 0px;color:#4a4a4a;}.subtitle.color--light{color:#636363;font-weight:700;}.button{font-weight:700;font-size:0.8rem;padding:8px 15px 8px 15px;display:inline-block;border:1px solid transparent;transition:all 0.18s ease-out;font-family:"Roboto", sans-serif;}.button.button--primary{background-color:#5e85a8;color:white;}.button-bar{margin:10px 0px 10px 0px;display:flex;}.button-bar.button-bar--full-width{justify-content:space-between;align-items:center;}.button-bar_item{margin:20px 20px 20px 20px;}.button-bar_item.button-bar__item--secondary{font-size:0.8rem;color:#444444;}.button.button--secondary{font-weight:400;background-color:rgba(221,221,221,0.5);}.nav__item.active{color:black;}.h-space{margin:0px 10px 0px 10px;}.button--tertiary{background-color:transparent;font-weight:400;}.lang__item{margin:0px 5px 0px 5px;}.nav__logo{height:50px;}.button:hover{color:#ff6600;background-color:transparent;border:1px solid #dddddd;}.button.button--secondary:hover{background-color:white;}#imgx81{min-height:100vh;display:flex;justify-content:center;align-items:center;flex-direction:column;}#in62y2{width:100%;display:flex;justify-content:center;}.big-button{border-radius:5px 5px 5px 5px;font-size:15px;margin:10px 10px 10px 10px;padding:15px 30px 15px 30px;font-weight:400;}#i9msnk{padding:10px;display:inline;}#i6akll{padding:10px;display:inline;}#ixzhcr{padding:10px;position:absolute;display:none;}.title{margin:0 0 10px 0;font-size:2rem;font-weight:400;font-family:Times New Roman, Times, serif;}#ighycb{padding:10px;}#it2175{padding:10px;}#in5jeq{display:flex;}
@@ -1 +1 @@
1
- * { box-sizing: border-box; } body {margin: 0;}.nav__item{margin:0px 10px 0px 10px;font-size:0.8rem;padding:24px 0px 24px 0px;color:grey;font-weight:700;}.body{font-family:"Roboto", sans-serif;background-color:#f0f0f0;}.header{display:flex;align-items:center;justify-content:space-between;background-color:#ffffff;}.padding-normal{padding:0px 24px 0px 24px;}#i9jq{display:flex;}.nav{width:100%;margin:0px 20px 0px 20px;}#iz63r{min-height:90vh;}.subtitle{font-size:1rem;margin:0px 0px 20px 0px;}.section{max-width:1200px;margin:80px auto 80px auto;}.subtitle.color--light{color:#636363;font-weight:700;}.button{font-weight:700;font-size:0.8rem;padding:8px 15px 8px 15px;display:inline-block;border:1px solid transparent;transition:all 0.18s ease-out;font-family:"Roboto", sans-serif;}.button.button--primary{background-color:#5e85a8;color:white;}.button-bar{margin:10px 0px 10px 0px;display:flex;}#ibsgw{position:relative;top:3px;}.button-bar.button-bar--full-width{justify-content:space-between;align-items:center;}.button-bar_item{margin:20px 20px 20px 20px;}.button-bar_item.button-bar__item--secondary{font-size:0.8rem;color:#444444;}.button.button--secondary{font-weight:400;background-color:rgba(221,221,221,0.5);}.bg-white{background-color:#ffffff;}.rounded{border-radius:2px 2px 2px 2px;}#ilzpl{min-height:100px;}#i238z{padding:10px;}.footer{display:block;margin:20px 0px 0 0px;padding:1px 0px 1px 0px;}.skeleton-text.skeleton{background-color:#dddddd;color:transparent;opacity:0.31;border-radius:5px 5px 5px 5px;}.skeleton.skeleton-button{color:transparent;opacity:0.16;}.skeleton-anim{position:relative;}.nav__item.active{color:black;}.margin-20{margin:20px 0px 20px 0px;}#i0ro3{display:none;}.loading__item.loaded-true{display:none;}#i69a7{width:100%;}.flex-no-shrink{flex-shrink:0;}.button--small{padding:3px 12px 4px 12px;}.form{padding:10px 10px 10px 10px;border-radius:5px 5px 5px 5px;}#i1nmbc{flex-shrink:0;}.input{padding:10px 10px 10px 10px;background-color:transparent;border:1px solid #5e85a8;}.full-width{width:100%;}.v-space{margin:10px 0px 10px 0px;}#ihwwxz{min-height:100px;}.box{border:2px solid #5e85a8;}.box__header{margin:0px 0px 0px 0px;padding:10px 0px 10px 10px;}.box.horizontal{align-items:center;}.horizontal{display:flex;align-items:center;}.h-space{margin:0px 10px 0px 10px;}.button--tertiary{background-color:transparent;font-weight:400;}.icon-font{font-size:1.5rem;line-height:1px;margin:0px 2px 0px 2px;}.lang__item{margin:0px 5px 0px 5px;}.top-space-40{margin:40px 0 0 0;}.nav__logo{height:50px;}.user-icon__image{width:100%;height:100%;}.user__wrapper{border:1px solid white;}.right-space{margin:0px 5px 0px 0px;}#ic9eoa{min-height:100px;}#iksw4d{padding:10px;}.button:hover{color:#ff6600;background-color:transparent;border:1px solid #dddddd;}.button.button--secondary:hover{background-color:white;}.user-icon__wrapper{border:1px solid #f0f0f0;background-color:#f0f0f0;border-radius:50% 50% 50% 50%;width:40px;height:40px;padding:5px 5px 5px 5px;}.title{margin:0 0 10px 0;font-size:2rem;font-weight:400;}
1
+ * { box-sizing: border-box; } body {margin: 0;}.nav__item{margin:0px 10px 0px 10px;font-size:1rem;padding:24px 0px 24px 0px;color:#4a4a4a;}.body{font-family:Verdana, Geneva, sans-serif;background-color:#f0f0f0;}.header{display:flex;align-items:center;justify-content:space-between;background-color:#ffffff;}.padding-normal{padding:0px 24px 0px 24px;}#i9jq{display:flex;}.nav{width:100%;margin:0px 20px 0px 20px;}#iz63r{min-height:90vh;}.subtitle{font-size:1rem;margin:0px 0px 20px 0px;color:#4a4a4a;}.section{max-width:1200px;margin:80px auto 80px auto;}.subtitle.color--light{color:#636363;font-weight:700;}.button{font-weight:700;font-size:0.8rem;padding:8px 15px 8px 15px;display:inline-block;border:1px solid transparent;transition:all 0.18s ease-out;font-family:"Roboto", sans-serif;}.button.button--primary{background-color:#5e85a8;color:white;}.button-bar{margin:10px 0px 10px 0px;display:flex;}#ibsgw{position:relative;top:3px;}.button-bar.button-bar--full-width{justify-content:space-between;align-items:center;}.button-bar_item{margin:20px 20px 20px 20px;}.button-bar_item.button-bar__item--secondary{font-size:0.8rem;color:#444444;}.button.button--secondary{font-weight:400;background-color:rgba(221,221,221,0.5);}.bg-white{background-color:#ffffff;}.rounded{border-radius:2px 2px 2px 2px;}#ilzpl{min-height:100px;}#i238z{padding:10px;}.footer{display:block;margin:20px 0px 0 0px;padding:1px 0px 1px 0px;}.skeleton-text.skeleton{background-color:#dddddd;color:transparent;opacity:0.31;border-radius:5px 5px 5px 5px;}.skeleton.skeleton-button{color:transparent;opacity:0.16;}.skeleton-anim{position:relative;}.nav__item.active{color:black;}.margin-20{margin:20px 0px 20px 0px;}#i0ro3{display:none;}.loading__item.loaded-true{display:none;}#i69a7{width:100%;}.flex-no-shrink{flex-shrink:0;}.button--small{padding:3px 12px 4px 12px;}.form{padding:10px 10px 10px 10px;border-radius:5px 5px 5px 5px;}#i1nmbc{flex-shrink:0;}.input{padding:10px 10px 10px 10px;background-color:transparent;border:1px solid #5e85a8;}.full-width{width:100%;}.v-space{margin:10px 0px 10px 0px;}#ihwwxz{min-height:100px;}.box{border:2px solid #5e85a8;}.box__header{margin:0px 0px 0px 0px;padding:10px 0px 10px 10px;}.box.horizontal{align-items:center;}.horizontal{display:flex;align-items:center;}.h-space{margin:0px 10px 0px 10px;}.button--tertiary{background-color:transparent;font-weight:400;}.icon-font{font-size:1.5rem;line-height:1px;margin:0px 2px 0px 2px;}.lang__item{margin:0px 5px 0px 5px;}.top-space-40{margin:40px 0 0 0;}.nav__logo{height:50px;}.user-icon__image{width:100%;height:100%;}.user__wrapper{border:1px solid white;display:flex;flex-direction:column;justify-content:center;align-items:center;}.right-space{margin:0px 5px 0px 0px;}#iksw4d{padding:10px;}.button:hover{color:#ff6600;background-color:transparent;border:1px solid #dddddd;}.button.button--secondary:hover{background-color:white;}.user-icon__wrapper{border:1px solid #f0f0f0;background-color:#f0f0f0;border-radius:50% 50% 50% 50%;width:40px;height:40px;padding:5px 5px 5px 5px;}.title{margin:0 0 10px 0;font-size:2rem;font-weight:400;font-family:Times New Roman, Times, serif;}
@@ -135,10 +135,65 @@ window.addEventListener('load', function() {
135
135
  </head>
136
136
  <body
137
137
  id="i2hcfw"
138
- class=" app"
138
+ class="body app"
139
+
140
+
141
+ ><HEADER
142
+
143
+ class="header padding-normal "
144
+
145
+
146
+ ><A
147
+ href="/"
148
+
149
+
150
+
151
+ ><img
152
+ src="/assets/silex-icon-2018@200px.png" href=""
153
+ class="nav__logo "
154
+
155
+
156
+ ></img></A><NAV
157
+ id="in5jeq"
158
+ class="nav "
159
+
160
+
161
+ ><A
162
+ href="/" id="i0g3ac"
163
+ class="nav__item active"
164
+ target=""
165
+
166
+ >Sites</A><A
167
+ href="http://docs.silex.me/" id="i0g3ac"
168
+ class="nav__item "
169
+ target="_blank"
170
+
171
+ >Docs</A><A
172
+ href="https://www.silex.me/" id="i0g3ac"
173
+ class="nav__item "
174
+ target="_blank"
175
+
176
+ >About</A><A
177
+ href="https://mail-list.silexlabs.org/subscription/cemnfkaVrK?locale=en-US&source=silex-dashboard" id="i0g3ac"
178
+ class="nav__item "
179
+ target="_blank"
180
+
181
+ >News</A></NAV><div
182
+
183
+ class="lang h-space "
139
184
 
140
185
 
141
186
  ><A
187
+ href="/en"
188
+ class="lang__item nav__item active"
189
+ hreflang="en"
190
+
191
+ >en</A><A
192
+ href="/fr"
193
+ class="lang__item nav__item "
194
+ hreflang="fr"
195
+
196
+ >fr</A></div></HEADER><A
142
197
  id="ixzhcr" href="/"
143
198
  class="button button-bar__item--secondary "
144
199
 
@@ -149,12 +204,12 @@ window.addEventListener('load', function() {
149
204
 
150
205
 
151
206
  ><H1
152
-
153
-
207
+ id="ighycb"
208
+ class="title "
154
209
 
155
210
 
156
211
  >Welcome to Silex</H1><div
157
-
212
+ id="it2175"
158
213
  class="subtitle "
159
214
 
160
215
 
@@ -71,6 +71,7 @@ window.addEventListener('load', function() {
71
71
  storage: null,
72
72
  user: null,
73
73
  showMenu: false,
74
+ empty: false,
74
75
  }
75
76
  },
76
77
  mounted() {
@@ -87,6 +88,7 @@ window.addEventListener('load', function() {
87
88
  this.user = user
88
89
  this.loggedIn = true
89
90
  this.websites = await websiteList({connectorId: this.user.storage.connectorId})
91
+ this.empty = this.websites.length === 0
90
92
  this.loading = false
91
93
  } else {
92
94
  this.openLogin()
@@ -98,7 +100,8 @@ window.addEventListener('load', function() {
98
100
  this.loggedIn = false
99
101
  this.openLogin()
100
102
  } else {
101
- this.error = error
103
+ this.error = `Failed to start dashboard - ${error.message}`
104
+ this.message = ''
102
105
  }
103
106
  }
104
107
  },
@@ -124,9 +127,9 @@ window.addEventListener('load', function() {
124
127
  },
125
128
 
126
129
  async createWebsite() {
127
- if (!this.newWebsiteName) throw new Error('You need to provide a website name')
128
- this.loading = true
129
130
  try {
131
+ if (!this.newWebsiteName) throw new Error('You need to provide a website name')
132
+ this.loading = true
130
133
  const websiteId = this.newWebsiteName.replace(/[/\\?%*:|"<>]/g, '_')
131
134
  const result = await websiteCreate({
132
135
  websiteId,
@@ -137,15 +140,18 @@ window.addEventListener('load', function() {
137
140
  connectorId: this.user.storage.connectorId
138
141
  })
139
142
  this.message = 'Website created successfully'
143
+ this.error = ''
140
144
  this.newWebsiteName = ''
141
145
  this.showCreationForm = false;
142
146
  this.websites = await websiteList({connectorId: this.user.storage.connectorId})
147
+ this.empty = this.websites.length === 0
143
148
  this.loading = false
144
149
  return result
145
150
  } catch (error) {
146
151
  this.loading = false
147
152
  console.error(error)
148
- this.error = 'Failed to create website'
153
+ this.error = `Failed to create website - ${error.message}`
154
+ this.message = ''
149
155
  }
150
156
  },
151
157
 
@@ -156,12 +162,15 @@ window.addEventListener('load', function() {
156
162
  try {
157
163
  const result = await websiteDelete({websiteId, connectorId: this.user.storage.connectorId})
158
164
  this.message = 'Website deleted successfully'
165
+ this.error = ''
159
166
  this.websites = await websiteList({connectorId: this.user.storage.connectorId})
167
+ this.empty = this.websites.length === 0
160
168
  this.loading = false
161
169
  return result
162
170
  } catch (error) {
163
171
  this.loading = false
164
- this.error = 'Failed to delete website'
172
+ this.error = `Failed to delete website - ${error.message}`
173
+ this.message = ''
165
174
  }
166
175
  },
167
176
 
@@ -173,12 +182,15 @@ window.addEventListener('load', function() {
173
182
  try {
174
183
  const result = await websiteMetaWrite({websiteId, connectorId: this.user.storage.connectorId, data: { name }})
175
184
  this.message = 'Website renamed successfully'
185
+ this.error = ''
176
186
  this.websites = await websiteList({connectorId: this.user.storage.connectorId})
187
+ this.empty = this.websites.length === 0
177
188
  this.loading = false
178
189
  return result
179
190
  } catch (error) {
180
191
  this.loading = false
181
- this.error = 'Failed to delete website'
192
+ this.error = `Failed to rename website - ${error.message}`
193
+ this.message = ''
182
194
  }
183
195
  },
184
196
  },
@@ -288,16 +300,31 @@ window.addEventListener('load', function() {
288
300
 
289
301
 
290
302
  ><H1
291
- id="itp1f"
292
- class="title "
293
303
 
304
+ class="title "
305
+ v-if="!empty"
294
306
 
295
307
  >Welcome back!</H1><div
296
308
  id="iyex8"
297
- class="subtitle color--light "
309
+ class="subtitle "
310
+ v-if="!empty"
311
+
312
+ >Dive into your projects or kickstart a new one</div><SECTION
313
+ id="iqmx38"
314
+
315
+ v-if="empty"
316
+
317
+ ><H1
318
+
319
+ class="title "
298
320
 
299
321
 
300
- >Dive into your projects or kickstart a new one</div><div
322
+ >Welcome, let's get started</H1><DIV
323
+
324
+ class="subtitle "
325
+
326
+
327
+ >Create your first project, click on "Create a website"</DIV></SECTION><div
301
328
  id="ickx4"
302
329
  class="button-bar margin-20 "
303
330
 
@@ -370,7 +397,7 @@ window.addEventListener('load', function() {
370
397
  >Cancel</button></div></form></div><div
371
398
  id="if80m"
372
399
 
373
-
400
+ v-if="!empty"
374
401
 
375
402
  ><SECTION
376
403
  id="idgvg"
@@ -487,31 +514,6 @@ window.addEventListener('load', function() {
487
514
  class="button-bar_item skeleton skeleton-button "
488
515
 
489
516
 
490
- >Edit</div></SECTION><SECTION
491
- id="iqmx38"
492
- class="button-bar button-bar--full-width bg-white rounded loading__item skeleton-anim skeleton-wrapper "
493
- v-if="loading"
494
-
495
- ><H3
496
-
497
- class="button-bar_item button-bar__item--main skeleton-text skeleton "
498
-
499
-
500
- >My first websiteMy first websiteMy first websiteMy first</H3><P
501
-
502
- class="button-bar_item button-bar__item--secondary skeleton-text skeleton "
503
-
504
-
505
- >Updated 1h ago by lexoyo</P><P
506
-
507
- class="button-bar_item button-bar__item--secondary skeleton-text skeleton "
508
-
509
-
510
- >Created 2023-02-16 by lexoyo</P><div
511
- id="ie83jl"
512
- class="button-bar_item skeleton skeleton-button "
513
-
514
-
515
517
  >Edit</div></SECTION></div><div
516
518
  id="i7ej6j"
517
519
  class="box horizontal "
@@ -135,10 +135,65 @@ window.addEventListener('load', function() {
135
135
  </head>
136
136
  <body
137
137
  id="i2hcfw"
138
- class=" app"
138
+ class="body app"
139
+
140
+
141
+ ><HEADER
142
+
143
+ class="header padding-normal "
144
+
145
+
146
+ ><A
147
+ href="/"
148
+
149
+
150
+
151
+ ><img
152
+ src="/assets/silex-icon-2018@200px.png" href=""
153
+ class="nav__logo "
154
+
155
+
156
+ ></img></A><NAV
157
+ id="in5jeq"
158
+ class="nav "
159
+
160
+
161
+ ><A
162
+ href="/" id="i0g3ac"
163
+ class="nav__item active"
164
+ target=""
165
+
166
+ >Sites</A><A
167
+ href="http://docs.silex.me/" id="i0g3ac"
168
+ class="nav__item "
169
+ target="_blank"
170
+
171
+ >Docs</A><A
172
+ href="https://www.silex.me/" id="i0g3ac"
173
+ class="nav__item "
174
+ target="_blank"
175
+
176
+ >A propos</A><A
177
+ href="https://mail-list.silexlabs.org/subscription/cemnfkaVrK?locale=fr-FR&source=silex-dashboard" id="i0g3ac"
178
+ class="nav__item "
179
+ target="_blank"
180
+
181
+ >Info</A></NAV><div
182
+
183
+ class="lang h-space "
139
184
 
140
185
 
141
186
  ><A
187
+ href="/en"
188
+ class="lang__item nav__item "
189
+ hreflang="en"
190
+
191
+ >en</A><A
192
+ href="/fr"
193
+ class="lang__item nav__item active"
194
+ hreflang="fr"
195
+
196
+ >fr</A></div></HEADER><A
142
197
  id="ixzhcr" href="/"
143
198
  class="button button-bar__item--secondary "
144
199
 
@@ -149,12 +204,12 @@ window.addEventListener('load', function() {
149
204
 
150
205
 
151
206
  ><H1
152
-
153
-
207
+ id="ighycb"
208
+ class="title "
154
209
 
155
210
 
156
211
  >Bienvenue sur Silex</H1><div
157
-
212
+ id="it2175"
158
213
  class="subtitle "
159
214
 
160
215
 
@@ -71,6 +71,7 @@ window.addEventListener('load', function() {
71
71
  storage: null,
72
72
  user: null,
73
73
  showMenu: false,
74
+ empty: false,
74
75
  }
75
76
  },
76
77
  mounted() {
@@ -87,6 +88,7 @@ window.addEventListener('load', function() {
87
88
  this.user = user
88
89
  this.loggedIn = true
89
90
  this.websites = await websiteList({connectorId: this.user.storage.connectorId})
91
+ this.empty = this.websites.length === 0
90
92
  this.loading = false
91
93
  } else {
92
94
  this.openLogin()
@@ -98,7 +100,8 @@ window.addEventListener('load', function() {
98
100
  this.loggedIn = false
99
101
  this.openLogin()
100
102
  } else {
101
- this.error = error
103
+ this.error = `Erreur, impossible de démarrer le tableau de bord - ${error.message}`
104
+ this.message = ''
102
105
  }
103
106
  }
104
107
  },
@@ -124,9 +127,9 @@ window.addEventListener('load', function() {
124
127
  },
125
128
 
126
129
  async createWebsite() {
127
- if (!this.newWebsiteName) throw new Error('Vous n\'avez pas donné de nom à votre site')
128
- this.loading = true
129
130
  try {
131
+ if (!this.newWebsiteName) throw new Error('Vous n\'avez pas donné de nom à votre site')
132
+ this.loading = true
130
133
  const websiteId = this.newWebsiteName.replace(/[/\\?%*:|"<>]/g, '_')
131
134
  const result = await websiteCreate({
132
135
  websiteId,
@@ -137,15 +140,18 @@ window.addEventListener('load', function() {
137
140
  connectorId: this.user.storage.connectorId
138
141
  })
139
142
  this.message = 'Le site a bien été créé'
143
+ this.error = ''
140
144
  this.newWebsiteName = ''
141
145
  this.showCreationForm = false;
142
146
  this.websites = await websiteList({connectorId: this.user.storage.connectorId})
147
+ this.empty = this.websites.length === 0
143
148
  this.loading = false
144
149
  return result
145
150
  } catch (error) {
146
151
  this.loading = false
147
152
  console.error(error)
148
- this.error = 'Erreur, le site n\'a pas été créé'
153
+ this.error = `Erreur, le site n\'a pas été créé - ${error.message}`
154
+ this.message = ''
149
155
  }
150
156
  },
151
157
 
@@ -156,12 +162,15 @@ window.addEventListener('load', function() {
156
162
  try {
157
163
  const result = await websiteDelete({websiteId, connectorId: this.user.storage.connectorId})
158
164
  this.message = 'Le site a bien été effacé'
165
+ this.error = ''
159
166
  this.websites = await websiteList({connectorId: this.user.storage.connectorId})
167
+ this.empty = this.websites.length === 0
160
168
  this.loading = false
161
169
  return result
162
170
  } catch (error) {
163
171
  this.loading = false
164
- this.error = 'Erreur, le site n\'a pas été effacé'
172
+ this.error = `Erreur, le site n\'a pas été effacé - ${error.message}`
173
+ this.message = ''
165
174
  }
166
175
  },
167
176
 
@@ -173,12 +182,15 @@ window.addEventListener('load', function() {
173
182
  try {
174
183
  const result = await websiteMetaWrite({websiteId, connectorId: this.user.storage.connectorId, data: { name }})
175
184
  this.message = 'Changement de nom effectué'
185
+ this.error = ''
176
186
  this.websites = await websiteList({connectorId: this.user.storage.connectorId})
187
+ this.empty = this.websites.length === 0
177
188
  this.loading = false
178
189
  return result
179
190
  } catch (error) {
180
191
  this.loading = false
181
- this.error = 'Erreur, le site n\'a pas été effacé'
192
+ this.error = `Erreur, le nom n\'a pas été changé - ${error.message}`
193
+ this.message = ''
182
194
  }
183
195
  },
184
196
  },
@@ -288,16 +300,31 @@ window.addEventListener('load', function() {
288
300
 
289
301
 
290
302
  ><H1
291
- id="itp1f"
292
- class="title "
293
303
 
304
+ class="title "
305
+ v-if="!empty"
294
306
 
295
307
  >Bienvenue !</H1><div
296
308
  id="iyex8"
297
- class="subtitle color--light "
309
+ class="subtitle "
310
+ v-if="!empty"
311
+
312
+ >Plongez-vous dans un projet ou créez-en un nouveau</div><SECTION
313
+ id="iqmx38"
314
+
315
+ v-if="empty"
316
+
317
+ ><H1
318
+
319
+ class="title "
298
320
 
299
321
 
300
- >Plongez-vous dans un projet ou créez-en un nouveau</div><div
322
+ >Bienvenue !</H1><DIV
323
+
324
+ class="subtitle "
325
+
326
+
327
+ >Créez votre premier projet, clickez sur le boutont "Créer un site"</DIV></SECTION><div
301
328
  id="ickx4"
302
329
  class="button-bar margin-20 "
303
330
 
@@ -370,7 +397,7 @@ window.addEventListener('load', function() {
370
397
  >Annuler</button></div></form></div><div
371
398
  id="if80m"
372
399
 
373
-
400
+ v-if="!empty"
374
401
 
375
402
  ><SECTION
376
403
  id="idgvg"
@@ -487,31 +514,6 @@ window.addEventListener('load', function() {
487
514
  class="button-bar_item skeleton skeleton-button "
488
515
 
489
516
 
490
- >Edit</div></SECTION><SECTION
491
- id="iqmx38"
492
- class="button-bar button-bar--full-width bg-white rounded loading__item skeleton-anim skeleton-wrapper "
493
- v-if="loading"
494
-
495
- ><H3
496
-
497
- class="button-bar_item button-bar__item--main skeleton-text skeleton "
498
-
499
-
500
- >My first websiteMy first websiteMy first websiteMy first</H3><P
501
-
502
- class="button-bar_item button-bar__item--secondary skeleton-text skeleton "
503
-
504
-
505
- >Updated 1h ago by lexoyo</P><P
506
-
507
- class="button-bar_item button-bar__item--secondary skeleton-text skeleton "
508
-
509
-
510
- >Created 2023-02-16 by lexoyo</P><div
511
- id="ie83jl"
512
- class="button-bar_item skeleton skeleton-button "
513
-
514
-
515
517
  >Edit</div></SECTION></div><div
516
518
  id="i7ej6j"
517
519
  class="box horizontal "
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexlabs/silex-dashboard",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Dashboard for Silex v3",
5
5
  "main": ".silex.js",
6
6
  "scripts": {
@@ -24,7 +24,7 @@
24
24
  "homepage": "https://github.com/silexlabs/silex-dashboard#readme",
25
25
  "devDependencies": {
26
26
  "@11ty/eleventy": "^2.0.1",
27
- "@silexlabs/silex": "^3.0.0-alpha.45"
27
+ "@silexlabs/silex": "^3.0.0-alpha.49"
28
28
  },
29
29
  "dependencies": {
30
30
  "locale": "^0.1.0",
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  permalink: /css/connectors.css
3
3
  ---
4
- * { box-sizing: border-box; } body {margin: 0;}.subtitle{font-size:1rem;margin:0px 0px 20px 0px;}.subtitle.color--light{color:#636363;font-weight:700;}.button{font-weight:700;font-size:0.8rem;padding:8px 15px 8px 15px;display:inline-block;border:1px solid transparent;transition:all 0.18s ease-out;font-family:"Roboto", sans-serif;}.button.button--primary{background-color:#5e85a8;color:white;}.button-bar{margin:10px 0px 10px 0px;display:flex;}.button-bar.button-bar--full-width{justify-content:space-between;align-items:center;}.button-bar_item{margin:20px 20px 20px 20px;}.button-bar_item.button-bar__item--secondary{font-size:0.8rem;color:#444444;}.button.button--secondary{font-weight:400;background-color:rgba(221,221,221,0.5);}.h-space{margin:0px 10px 0px 10px;}.button--tertiary{background-color:transparent;font-weight:400;}.button:hover{color:#ff6600;background-color:transparent;border:1px solid #dddddd;}.button.button--secondary:hover{background-color:white;}#imgx81{min-height:100vh;display:flex;justify-content:center;align-items:center;flex-direction:column;}#in62y2{width:100%;display:flex;justify-content:center;}.big-button{border-radius:5px 5px 5px 5px;font-size:15px;margin:10px 10px 10px 10px;padding:15px 30px 15px 30px;font-weight:400;}#i9msnk{padding:10px;display:inline;}#i6akll{padding:10px;display:inline;}#ixzhcr{padding:10px;position:absolute;display:none;}#ighycb{padding:10px;}#it2175{padding:10px;}
4
+ * { box-sizing: border-box; } body {margin: 0;}.nav__item{margin:0px 10px 0px 10px;font-size:1rem;padding:24px 0px 24px 0px;color:#4a4a4a;}.body{font-family:Verdana, Geneva, sans-serif;background-color:#f0f0f0;}.header{display:flex;align-items:center;justify-content:space-between;background-color:#ffffff;}.padding-normal{padding:0px 24px 0px 24px;}.nav{width:100%;margin:0px 20px 0px 20px;}.subtitle{font-size:1rem;margin:0px 0px 20px 0px;color:#4a4a4a;}.subtitle.color--light{color:#636363;font-weight:700;}.button{font-weight:700;font-size:0.8rem;padding:8px 15px 8px 15px;display:inline-block;border:1px solid transparent;transition:all 0.18s ease-out;font-family:"Roboto", sans-serif;}.button.button--primary{background-color:#5e85a8;color:white;}.button-bar{margin:10px 0px 10px 0px;display:flex;}.button-bar.button-bar--full-width{justify-content:space-between;align-items:center;}.button-bar_item{margin:20px 20px 20px 20px;}.button-bar_item.button-bar__item--secondary{font-size:0.8rem;color:#444444;}.button.button--secondary{font-weight:400;background-color:rgba(221,221,221,0.5);}.nav__item.active{color:black;}.h-space{margin:0px 10px 0px 10px;}.button--tertiary{background-color:transparent;font-weight:400;}.lang__item{margin:0px 5px 0px 5px;}.nav__logo{height:50px;}.button:hover{color:#ff6600;background-color:transparent;border:1px solid #dddddd;}.button.button--secondary:hover{background-color:white;}#imgx81{min-height:100vh;display:flex;justify-content:center;align-items:center;flex-direction:column;}#in62y2{width:100%;display:flex;justify-content:center;}.big-button{border-radius:5px 5px 5px 5px;font-size:15px;margin:10px 10px 10px 10px;padding:15px 30px 15px 30px;font-weight:400;}#i9msnk{padding:10px;display:inline;}#i6akll{padding:10px;display:inline;}#ixzhcr{padding:10px;position:absolute;display:none;}.title{margin:0 0 10px 0;font-size:2rem;font-weight:400;font-family:Times New Roman, Times, serif;}#ighycb{padding:10px;}#it2175{padding:10px;}#in5jeq{display:flex;}
@@ -0,0 +1,23 @@
1
+ {
2
+ "nav": [
3
+ {
4
+ "label": "Sites",
5
+ "url": "/"
6
+ },
7
+ {
8
+ "label": "Docs",
9
+ "url": "http://docs.silex.me/",
10
+ "target": "_blank"
11
+ },
12
+ {
13
+ "label": "About",
14
+ "url": "https://www.silex.me/",
15
+ "target": "_blank"
16
+ },
17
+ {
18
+ "label": "News",
19
+ "url": "https://mail-list.silexlabs.org/subscription/cemnfkaVrK?locale=en-US&source=silex-dashboard",
20
+ "target": "_blank"
21
+ }
22
+ ]
23
+ }
package/pages/en/index.md CHANGED
@@ -3,6 +3,8 @@ layout: websites
3
3
  lang: en
4
4
  title: Silex Dashboard
5
5
  title2: Welcome back!
6
+ title2-empty: Welcome, let's get started
7
+ subtitle-empty: Create your first project, click on "Create a website"
6
8
  subtitle: Dive into your projects or kickstart a new one
7
9
  add-button: Create website
8
10
  add-title: Create a new website
@@ -16,18 +18,5 @@ list-edit: Edit
16
18
  list-rename: Rename
17
19
  list-delete: Delete
18
20
  message-dismiss: Dismiss
19
- nav:
20
- - label: Sites
21
- url: /
22
- - label: Docs
23
- url: http://docs.silex.me/
24
- target: _blank
25
- - label: About
26
- url: https://www.silex.me/
27
- target: _blank
28
- - label: News
29
- url: https://mail-list.silexlabs.org/subscription/cemnfkaVrK?locale=en-US&source=silex-dashboard
30
- target: _blank
31
-
32
21
 
33
22
  ---
@@ -0,0 +1,23 @@
1
+ {
2
+ "nav": [
3
+ {
4
+ "label": "Sites",
5
+ "url": "/"
6
+ },
7
+ {
8
+ "label": "Docs",
9
+ "url": "http://docs.silex.me/",
10
+ "target": "_blank"
11
+ },
12
+ {
13
+ "label": "A propos",
14
+ "url": "https://www.silex.me/",
15
+ "target": "_blank"
16
+ },
17
+ {
18
+ "label": "Info",
19
+ "url": "https://mail-list.silexlabs.org/subscription/cemnfkaVrK?locale=fr-FR&source=silex-dashboard",
20
+ "target": "_blank"
21
+ }
22
+ ]
23
+ }
package/pages/fr/index.md CHANGED
@@ -4,6 +4,8 @@ lang: fr
4
4
  title: Dashboard Silex
5
5
  title2: Bienvenue !
6
6
  subtitle: Plongez-vous dans un projet ou créez-en un nouveau
7
+ title2-empty: Bienvenue !
8
+ subtitle-empty: Créez votre premier projet, clickez sur le boutont "Créer un site"
7
9
  add-button: Créer un site
8
10
  add-title: Créer un nouveau site internet
9
11
  add-name-label: Nom du site
@@ -16,18 +18,6 @@ list-edit: Editer
16
18
  list-rename: Renommer
17
19
  list-delete: Supprimer
18
20
  message-dismiss: Fermer
19
- nav:
20
- - label: Sites
21
- url: /
22
- - label: Docs
23
- url: http://docs.silex.me/
24
- target: _blank
25
- - label: A propos
26
- url: https://www.silex.me/
27
- target: _blank
28
- - label: Info
29
- url: https://mail-list.silexlabs.org/subscription/cemnfkaVrK?locale=fr-FR&source=silex-dashboard
30
- target: _blank
31
21
 
32
22
  ---
33
23
  [Silex website builder](https://www.silex.me/) est un projet libre et open source, supporté par l'[association Silex Labs](https://www.silexlabs.org/)
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  permalink: /css/websites.css
3
3
  ---
4
- * { box-sizing: border-box; } body {margin: 0;}.nav__item{margin:0px 10px 0px 10px;font-size:0.8rem;padding:24px 0px 24px 0px;color:grey;font-weight:700;}.body{font-family:"Roboto", sans-serif;background-color:#f0f0f0;}.header{display:flex;align-items:center;justify-content:space-between;background-color:#ffffff;}.padding-normal{padding:0px 24px 0px 24px;}#i9jq{display:flex;}.nav{width:100%;margin:0px 20px 0px 20px;}#iz63r{min-height:90vh;}.subtitle{font-size:1rem;margin:0px 0px 20px 0px;}.section{max-width:1200px;margin:80px auto 80px auto;}.subtitle.color--light{color:#636363;font-weight:700;}.button{font-weight:700;font-size:0.8rem;padding:8px 15px 8px 15px;display:inline-block;border:1px solid transparent;transition:all 0.18s ease-out;font-family:"Roboto", sans-serif;}.button.button--primary{background-color:#5e85a8;color:white;}.button-bar{margin:10px 0px 10px 0px;display:flex;}#ibsgw{position:relative;top:3px;}.button-bar.button-bar--full-width{justify-content:space-between;align-items:center;}.button-bar_item{margin:20px 20px 20px 20px;}.button-bar_item.button-bar__item--secondary{font-size:0.8rem;color:#444444;}.button.button--secondary{font-weight:400;background-color:rgba(221,221,221,0.5);}.bg-white{background-color:#ffffff;}.rounded{border-radius:2px 2px 2px 2px;}#ilzpl{min-height:100px;}#i238z{padding:10px;}.footer{display:block;margin:20px 0px 0 0px;padding:1px 0px 1px 0px;}.skeleton-text.skeleton{background-color:#dddddd;color:transparent;opacity:0.31;border-radius:5px 5px 5px 5px;}.skeleton.skeleton-button{color:transparent;opacity:0.16;}.skeleton-anim{position:relative;}.nav__item.active{color:black;}.margin-20{margin:20px 0px 20px 0px;}#i0ro3{display:none;}.loading__item.loaded-true{display:none;}#i69a7{width:100%;}.flex-no-shrink{flex-shrink:0;}.button--small{padding:3px 12px 4px 12px;}.form{padding:10px 10px 10px 10px;border-radius:5px 5px 5px 5px;}#i1nmbc{flex-shrink:0;}.input{padding:10px 10px 10px 10px;background-color:transparent;border:1px solid #5e85a8;}.full-width{width:100%;}.v-space{margin:10px 0px 10px 0px;}#ihwwxz{min-height:100px;}.box{border:2px solid #5e85a8;}.box__header{margin:0px 0px 0px 0px;padding:10px 0px 10px 10px;}.box.horizontal{align-items:center;}.horizontal{display:flex;align-items:center;}.h-space{margin:0px 10px 0px 10px;}.button--tertiary{background-color:transparent;font-weight:400;}.icon-font{font-size:1.5rem;line-height:1px;margin:0px 2px 0px 2px;}.lang__item{margin:0px 5px 0px 5px;}.top-space-40{margin:40px 0 0 0;}.nav__logo{height:50px;}.user-icon__image{width:100%;height:100%;}.user__wrapper{border:1px solid white;}.right-space{margin:0px 5px 0px 0px;}#ic9eoa{min-height:100px;}#iksw4d{padding:10px;}.button:hover{color:#ff6600;background-color:transparent;border:1px solid #dddddd;}.button.button--secondary:hover{background-color:white;}.user-icon__wrapper{border:1px solid #f0f0f0;background-color:#f0f0f0;border-radius:50% 50% 50% 50%;width:40px;height:40px;padding:5px 5px 5px 5px;}.title{margin:0 0 10px 0;font-size:2rem;font-weight:400;}
4
+ * { box-sizing: border-box; } body {margin: 0;}.nav__item{margin:0px 10px 0px 10px;font-size:1rem;padding:24px 0px 24px 0px;color:#4a4a4a;}.body{font-family:Verdana, Geneva, sans-serif;background-color:#f0f0f0;}.header{display:flex;align-items:center;justify-content:space-between;background-color:#ffffff;}.padding-normal{padding:0px 24px 0px 24px;}#i9jq{display:flex;}.nav{width:100%;margin:0px 20px 0px 20px;}#iz63r{min-height:90vh;}.subtitle{font-size:1rem;margin:0px 0px 20px 0px;color:#4a4a4a;}.section{max-width:1200px;margin:80px auto 80px auto;}.subtitle.color--light{color:#636363;font-weight:700;}.button{font-weight:700;font-size:0.8rem;padding:8px 15px 8px 15px;display:inline-block;border:1px solid transparent;transition:all 0.18s ease-out;font-family:"Roboto", sans-serif;}.button.button--primary{background-color:#5e85a8;color:white;}.button-bar{margin:10px 0px 10px 0px;display:flex;}#ibsgw{position:relative;top:3px;}.button-bar.button-bar--full-width{justify-content:space-between;align-items:center;}.button-bar_item{margin:20px 20px 20px 20px;}.button-bar_item.button-bar__item--secondary{font-size:0.8rem;color:#444444;}.button.button--secondary{font-weight:400;background-color:rgba(221,221,221,0.5);}.bg-white{background-color:#ffffff;}.rounded{border-radius:2px 2px 2px 2px;}#ilzpl{min-height:100px;}#i238z{padding:10px;}.footer{display:block;margin:20px 0px 0 0px;padding:1px 0px 1px 0px;}.skeleton-text.skeleton{background-color:#dddddd;color:transparent;opacity:0.31;border-radius:5px 5px 5px 5px;}.skeleton.skeleton-button{color:transparent;opacity:0.16;}.skeleton-anim{position:relative;}.nav__item.active{color:black;}.margin-20{margin:20px 0px 20px 0px;}#i0ro3{display:none;}.loading__item.loaded-true{display:none;}#i69a7{width:100%;}.flex-no-shrink{flex-shrink:0;}.button--small{padding:3px 12px 4px 12px;}.form{padding:10px 10px 10px 10px;border-radius:5px 5px 5px 5px;}#i1nmbc{flex-shrink:0;}.input{padding:10px 10px 10px 10px;background-color:transparent;border:1px solid #5e85a8;}.full-width{width:100%;}.v-space{margin:10px 0px 10px 0px;}#ihwwxz{min-height:100px;}.box{border:2px solid #5e85a8;}.box__header{margin:0px 0px 0px 0px;padding:10px 0px 10px 10px;}.box.horizontal{align-items:center;}.horizontal{display:flex;align-items:center;}.h-space{margin:0px 10px 0px 10px;}.button--tertiary{background-color:transparent;font-weight:400;}.icon-font{font-size:1.5rem;line-height:1px;margin:0px 2px 0px 2px;}.lang__item{margin:0px 5px 0px 5px;}.top-space-40{margin:40px 0 0 0;}.nav__logo{height:50px;}.user-icon__image{width:100%;height:100%;}.user__wrapper{border:1px solid white;display:flex;flex-direction:column;justify-content:center;align-items:center;}.right-space{margin:0px 5px 0px 0px;}#iksw4d{padding:10px;}.button:hover{color:#ff6600;background-color:transparent;border:1px solid #dddddd;}.button.button--secondary:hover{background-color:white;}.user-icon__wrapper{border:1px solid #f0f0f0;background-color:#f0f0f0;border-radius:50% 50% 50% 50%;width:40px;height:40px;padding:5px 5px 5px 5px;}.title{margin:0 0 10px 0;font-size:2rem;font-weight:400;font-family:Times New Roman, Times, serif;}