@silexlabs/silex-dashboard 1.0.1 → 1.0.3

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.
@@ -0,0 +1,124 @@
1
+
2
+ <!DOCTYPE html>
3
+ <html lang="">
4
+ <head>
5
+ <link rel="stylesheet" href="/css/connectors.css" />
6
+
7
+ <link
8
+ rel="alternate"
9
+ hreflang="en"
10
+ href="/en/connectors" />
11
+
12
+ <style>
13
+ .button { cursor: pointer; }
14
+ a { text-decoration: none; }
15
+ a:hover { text-decoration: underline; }
16
+
17
+ .skeleton-anim:after {
18
+ width: 100%;
19
+ height: 100%;
20
+ position: absolute;
21
+ top: 0;
22
+ left: 0;
23
+ content: "";
24
+ background:
25
+ linear-gradient(0.25turn, transparent, rgba(255,255,255,.75), transparent),
26
+ linear-gradient(transparent, transparent),
27
+ radial-gradient(38px circle at 19px 19px, transparent 50%, transparent 51%),
28
+ linear-gradient(transparent, transparent);
29
+ background-repeat: no-repeat;
30
+ background-size: 315px 250px, 315px 180px, 100px 100px, 225px 30px;
31
+ background-position: -315px 0, 0 0, 0px 190px, 50px 195px;
32
+ animation: loading 1.5s infinite;
33
+ }
34
+
35
+ @keyframes loading {
36
+ to {
37
+ background-position: 200% 0, 0 0, 0 190px, 50px 195px;
38
+ }
39
+ }
40
+
41
+ </style>
42
+ <script src="/node_modules/vue/dist/vue.global.js"></script>
43
+ <script src="/js/main.js"></script>
44
+ <script type="module">
45
+ window.addEventListener('load', function() {
46
+ const { createApp } = Vue;
47
+ const { api, constants, types } = silex;
48
+ const {
49
+ ConnectorType,
50
+ } = types
51
+ const {
52
+ connectorList,
53
+ } = api
54
+
55
+ const App = {
56
+ data() {
57
+ return {
58
+ connectors: [],
59
+ error: null,
60
+ message: null,
61
+ loading: true,
62
+ }
63
+ },
64
+ mounted() {
65
+ this.init()
66
+ },
67
+
68
+ methods: {
69
+ async init() {
70
+ try {
71
+ this.loading = true
72
+ console.log('init')
73
+ this.connectors = await connectorList()
74
+ console.log('connectors', this.connectors)
75
+ this.loading = false
76
+ } catch (error) {
77
+ console.error(error)
78
+ this.error = error
79
+ this.loading = false
80
+ }
81
+ },
82
+ },
83
+ };
84
+
85
+ // Start vue app
86
+ createApp(App).mount('.app');
87
+ })
88
+ </script>
89
+
90
+ <title></title>
91
+ <link rel="icon" href="" />
92
+ <meta property="description" content=""/>
93
+ <meta property="og:title" content=""/>
94
+ <meta property="og:description" content=""/>
95
+ <meta property="og:image" content=""/>
96
+ </head>
97
+ <body
98
+ id="i2hcfw"
99
+ class=" app"
100
+
101
+
102
+ ><div
103
+ id="imgx81"
104
+
105
+
106
+
107
+ ><div
108
+ id="in62y2"
109
+
110
+
111
+
112
+ ><div
113
+ id="isqe61"
114
+
115
+ v-if="!loading" v-for="(connector, index) in connectors" :key="index"
116
+
117
+ ><div
118
+ id="i87asw"
119
+
120
+
121
+
122
+ >Insert your text here</div></div></div></div></body>
123
+ </html>
124
+