|
14 | 14 | </q-card-section>
|
15 | 15 | </q-card>
|
16 | 16 |
|
17 |
| - <q-card> |
18 |
| - <q-card-section> |
| 17 | + <q-card> |
| 18 | + <q-card-section> |
19 | 19 | <div class="row items-center no-wrap q-mb-md">
|
20 |
| - <div class="col"> |
21 |
| - <h5 class="text-subtitle1 q-my-none">LNURLdevice</h5> |
22 |
| - </div> |
| 20 | + <div class="col"> |
| 21 | + <h5 class="text-subtitle1 q-my-none">LNURLdevice</h5> |
| 22 | + </div> |
23 | 23 |
|
24 | 24 | <div class="col-auto">
|
25 | 25 | <q-input
|
@@ -67,72 +67,72 @@ <h5 class="text-subtitle1 q-my-none">LNURLdevice</h5>
|
67 | 67 | </q-tr>
|
68 | 68 | </template>
|
69 | 69 |
|
70 |
| - <template v-slot:body="props"> |
71 |
| - <q-tr :props="props"> |
72 |
| - <q-td> |
73 |
| - <q-btn |
74 |
| - flat |
75 |
| - dense |
76 |
| - size="xs" |
77 |
| - @click="openUpdatelnurldeviceLink(props.row.id)" |
78 |
| - icon="edit" |
79 |
| - color="blue" |
80 |
| - > |
81 |
| - <q-tooltip>Edit LNURLDevice</q-tooltip> |
82 |
| - </q-btn> |
83 |
| - </q-td> |
84 |
| - <q-td> |
85 |
| - <q-btn |
86 |
| - flat |
87 |
| - dense |
88 |
| - size="xs" |
89 |
| - @click="deletelnurldeviceLink(props.row.id)" |
90 |
| - icon="cancel" |
91 |
| - color="pink" |
92 |
| - > |
93 |
| - <q-tooltip> Delete LNURLDevice </q-tooltip> |
94 |
| - </q-btn> |
95 |
| - </q-td> |
96 |
| - <q-td> |
97 |
| - <q-btn |
98 |
| - flat |
99 |
| - dense |
100 |
| - size="xs" |
101 |
| - @click="openlnurldeviceSettings(props.row.id)" |
102 |
| - icon="perm_data_setting" |
103 |
| - color="primary" |
104 |
| - > |
| 70 | + <template v-slot:body="props"> |
| 71 | + <q-tr :props="props"> |
| 72 | + <q-td> |
| 73 | + <q-btn |
| 74 | + flat |
| 75 | + dense |
| 76 | + size="xs" |
| 77 | + @click="openUpdatelnurldeviceLink(props.row.id)" |
| 78 | + icon="edit" |
| 79 | + color="blue" |
| 80 | + > |
| 81 | + <q-tooltip>Edit LNURLDevice</q-tooltip> |
| 82 | + </q-btn> |
| 83 | + </q-td> |
| 84 | + <q-td> |
| 85 | + <q-btn |
| 86 | + flat |
| 87 | + dense |
| 88 | + size="xs" |
| 89 | + @click="deletelnurldeviceLink(props.row.id)" |
| 90 | + icon="cancel" |
| 91 | + color="pink" |
| 92 | + > |
| 93 | + <q-tooltip> Delete LNURLDevice </q-tooltip> |
| 94 | + </q-btn> |
| 95 | + </q-td> |
| 96 | + <q-td> |
| 97 | + <q-btn |
| 98 | + flat |
| 99 | + dense |
| 100 | + size="xs" |
| 101 | + @click="openlnurldeviceSettings(props.row.id)" |
| 102 | + icon="perm_data_setting" |
| 103 | + color="primary" |
| 104 | + > |
105 | 105 | <q-tooltip> LNURLDevice Settings </q-tooltip>
|
106 |
| - </q-btn> |
107 |
| - </q-td> |
108 |
| - <q-td> |
109 |
| - <q-btn |
110 |
| - v-if="props.row.device == 'switch'" |
111 |
| - :disable="protocol == 'http:'" |
112 |
| - flat |
113 |
| - unelevated |
114 |
| - dense |
115 |
| - size="xs" |
116 |
| - icon="visibility" |
117 |
| - :color="($q.dark.isActive) ? 'grey-7' : 'grey-5'" |
118 |
| - @click="openQrCodeDialog(props.row.id)" |
119 |
| - ><q-tooltip v-if="protocol == 'http:'"> |
120 |
| - LNURLs only work over HTTPS </q-tooltip |
| 106 | + </q-btn> |
| 107 | + </q-td> |
| 108 | + <q-td> |
| 109 | + <q-btn |
| 110 | + v-if="props.row.device == 'switch'" |
| 111 | + :disable="protocol == 'http:'" |
| 112 | + flat |
| 113 | + unelevated |
| 114 | + dense |
| 115 | + size="xs" |
| 116 | + icon="visibility" |
| 117 | + :color="($q.dark.isActive) ? 'grey-7' : 'grey-5'" |
| 118 | + @click="openQrCodeDialog(props.row.id)" |
| 119 | + ><q-tooltip v-if="protocol == 'http:'"> |
| 120 | + LNURLs only work over HTTPS </q-tooltip |
121 | 121 | ><q-tooltip v-else> view LNURLS </q-tooltip></q-btn
|
122 |
| - > |
123 |
| - </q-td> |
124 |
| - <q-td |
125 |
| - v-for="col in props.cols" |
126 |
| - :key="col.name" |
127 |
| - :props="props" |
128 |
| - auto-width |
129 |
| - > |
130 |
| - <div v-if="col.name == 'id'"></div> |
131 |
| - <div v-else>{{ col.value }}</div> |
132 |
| - </q-td> |
133 |
| - </q-tr> |
134 |
| - </template> |
135 |
| - </q-table> |
| 122 | + > |
| 123 | + </q-td> |
| 124 | + <q-td |
| 125 | + v-for="col in props.cols" |
| 126 | + :key="col.name" |
| 127 | + :props="props" |
| 128 | + auto-width |
| 129 | + > |
| 130 | + <div v-if="col.name == 'id'"></div> |
| 131 | + <div v-else>{{ col.value }}</div> |
| 132 | + </q-td> |
| 133 | + </q-tr> |
| 134 | + </template> |
| 135 | + </q-table> |
136 | 136 | </q-card-section>
|
137 | 137 | </q-card>
|
138 | 138 |
|
@@ -222,103 +222,103 @@ <h5 class="text-subtitle1 q-my-none">ATM Payments</h5>
|
222 | 222 | </q-tr>
|
223 | 223 | </template>
|
224 | 224 | {% endraw %}
|
225 |
| - </q-table> |
226 |
| - </q-card-section> |
227 |
| - </q-card> |
228 |
| - </div> |
| 225 | + </q-table> |
| 226 | + </q-card-section> |
| 227 | + </q-card> |
| 228 | + </div> |
229 | 229 |
|
230 |
| - <div class="col-12 col-md-5 q-gutter-y-md"> |
231 |
| - <q-card> |
232 |
| - <q-card-section> |
233 |
| - <h6 class="text-subtitle1 q-my-none"> |
234 |
| - {{SITE_TITLE}} LNURLDevice Extension (0.4) |
235 |
| - </h6> |
236 |
| - </q-card-section> |
237 |
| - <q-separator></q-separator> |
238 |
| - <q-card-section> |
239 |
| - <p> |
240 |
| - For LNURL based Points of Sale, ATMs, and relay devices<br /> |
241 |
| - LNPoS: |
| 230 | + <div class="col-12 col-md-5 q-gutter-y-md"> |
| 231 | + <q-card> |
| 232 | + <q-card-section> |
| 233 | + <h6 class="text-subtitle1 q-my-none"> |
| 234 | + {{SITE_TITLE}} LNURLDevice Extension (0.4) |
| 235 | + </h6> |
| 236 | + </q-card-section> |
| 237 | + <q-separator></q-separator> |
| 238 | + <q-card-section> |
| 239 | + <p> |
| 240 | + For LNURL based Points of Sale, ATMs, and relay devices<br /> |
| 241 | + LNPoS: |
242 | 242 | <a class="text-secondary" href="https://lnbits.github.io/lnpos">
|
243 |
| - https://lnbits.github.io/lnpos</a |
244 |
| - ><br /> |
245 |
| - bitcoinSwitch: |
246 |
| - <a |
247 |
| - class="text-secondary" |
248 |
| - href="https://github.com/lnbits/bitcoinSwitch" |
249 |
| - > |
250 |
| - https://github.com/lnbits/bitcoinSwitch</a |
251 |
| - ><br /> |
252 |
| - FOSSA: |
| 243 | + https://lnbits.github.io/lnpos</a |
| 244 | + ><br /> |
| 245 | + bitcoinSwitch: |
| 246 | + <a |
| 247 | + class="text-secondary" |
| 248 | + href="https://github.com/lnbits/bitcoinSwitch" |
| 249 | + > |
| 250 | + https://github.com/lnbits/bitcoinSwitch</a |
| 251 | + ><br /> |
| 252 | + FOSSA: |
253 | 253 | <a class="text-secondary" href="https://github.com/lnbits/fossa">
|
254 |
| - https://github.com/lnbits/fossa</a |
255 |
| - ><br /> |
256 |
| - <small> |
257 |
| - Created by, |
| 254 | + https://github.com/lnbits/fossa</a |
| 255 | + ><br /> |
| 256 | + <small> |
| 257 | + Created by, |
258 | 258 | <a class="text-secondary" href="https://github.com/benarc"
|
259 |
| - >Ben Arc</a |
260 |
| - >, |
| 259 | + >Ben Arc</a |
| 260 | + >, |
261 | 261 | <a class="text-secondary" href="https://github.com/blackcoffeexbt"
|
262 |
| - >BC</a |
263 |
| - >, |
| 262 | + >BC</a |
| 263 | + >, |
264 | 264 | <a class="text-secondary" href="https://github.com/motorina0"
|
265 |
| - >Vlad Stan</a |
266 |
| - >, |
| 265 | + >Vlad Stan</a |
| 266 | + >, |
267 | 267 | <a class="text-secondary" href="https://github.com/dni">dni</a>
|
268 |
| - </small> |
269 |
| - </p> |
270 |
| - <p class="text-warning"> |
| 268 | + </small> |
| 269 | + </p> |
| 270 | + <p class="text-warning"> |
271 | 271 | WARNING: updating the switches amount, duration or pin will change the
|
272 | 272 | QR code.
|
273 |
| - </p> |
274 |
| - </q-card-section> |
275 |
| - </q-card> |
276 |
| - </div> |
| 273 | + </p> |
| 274 | + </q-card-section> |
| 275 | + </q-card> |
| 276 | + </div> |
277 | 277 |
|
278 |
| - <q-dialog |
279 |
| - v-model="settingsDialog.show" |
280 |
| - deviceition="top" |
281 |
| - @hide="closeFormDialog" |
| 278 | + <q-dialog |
| 279 | + v-model="settingsDialog.show" |
| 280 | + deviceition="top" |
| 281 | + @hide="closeFormDialog" |
| 282 | + > |
| 283 | + <q-card |
| 284 | + style="width: 700px; max-width: 80vw" |
| 285 | + class="q-pa-lg q-pt-xl lnbits__dialog-card" |
282 | 286 | >
|
283 |
| - <q-card |
284 |
| - style="width: 700px; max-width: 80vw" |
285 |
| - class="q-pa-lg q-pt-xl lnbits__dialog-card" |
| 287 | + <div class="text-h6">LNURLDevice device string</div> |
| 288 | + <center> |
| 289 | + <q-btn |
| 290 | + v-if="settingsDialog.data.device == 'switch'" |
| 291 | + dense |
| 292 | + outline |
| 293 | + unelevated |
| 294 | + color="primary" |
| 295 | + size="md" |
| 296 | + @click="copyText(wslocation + '/api/v1/ws/' + settingsDialog.data.id, 'Link copied to clipboard!')" |
286 | 297 | >
|
287 |
| - <div class="text-h6">LNURLDevice device string</div> |
288 |
| - <center> |
289 |
| - <q-btn |
290 |
| - v-if="settingsDialog.data.device == 'switch'" |
291 |
| - dense |
292 |
| - outline |
293 |
| - unelevated |
294 |
| - color="primary" |
295 |
| - size="md" |
296 |
| - @click="copyText(wslocation + '/api/v1/ws/' + settingsDialog.data.id, 'Link copied to clipboard!')" |
297 |
| - > |
298 | 298 | {% raw %}{{wslocation}}/api/v1/ws/{{settingsDialog.data.id}}{% endraw
|
299 | 299 | %}<q-tooltip> Click to copy URL </q-tooltip>
|
300 |
| - </q-btn> |
301 |
| - <q-btn |
302 |
| - v-else |
303 |
| - dense |
304 |
| - outline |
305 |
| - unelevated |
306 |
| - color="primary" |
307 |
| - size="md" |
308 |
| - @click="copyText(location + '/lnurldevice/api/v1/lnurl/' + settingsDialog.data.id + ',' + settingsDialog.data.key + ',' + settingsDialog.data.currency, 'Link copied to clipboard!')" |
309 |
| - > |
| 300 | + </q-btn> |
| 301 | + <q-btn |
| 302 | + v-else |
| 303 | + dense |
| 304 | + outline |
| 305 | + unelevated |
| 306 | + color="primary" |
| 307 | + size="md" |
| 308 | + @click="copyText(location + '/lnurldevice/api/v1/lnurl/' + settingsDialog.data.id + ',' + settingsDialog.data.key + ',' + settingsDialog.data.currency, 'Link copied to clipboard!')" |
| 309 | + > |
310 | 310 | {% raw
|
311 |
| - %}{{location}}/lnurldevice/api/v1/lnurl/{{settingsDialog.data.id}}, |
| 311 | + %}{{location}}/lnurldevice/api/v1/lnurl/{{settingsDialog.data.id}}, |
312 | 312 | {{settingsDialog.data.key}}, {{settingsDialog.data.currency}}{% endraw
|
313 | 313 | %}
|
314 | 314 | <q-tooltip> Click to copy URL </q-tooltip>
|
315 |
| - </q-btn> |
316 |
| - </center> |
317 |
| - <div class="text-subtitle2"> |
318 |
| - <small> </small> |
319 |
| - </div> |
320 |
| - </q-card> |
321 |
| - </q-dialog> |
| 315 | + </q-btn> |
| 316 | + </center> |
| 317 | + <div class="text-subtitle2"> |
| 318 | + <small> </small> |
| 319 | + </div> |
| 320 | + </q-card> |
| 321 | + </q-dialog> |
322 | 322 |
|
323 | 323 | <q-dialog
|
324 | 324 | v-model="formDialoglnurldevice.show"
|
|
0 commit comments