diff --git a/src/App.vue b/src/App.vue index 82a214d..9a9aa68 100644 --- a/src/App.vue +++ b/src/App.vue @@ -7,43 +7,27 @@ class="mx-auto" max-width="600" > - - - - - - mdi-qrcode-scan - - Scan - - - - - mdi-history - - History - - - - - mdi-cog - - Settings - - - + - +
+ Scan a QR code! +
+ - - - + @@ -187,16 +176,20 @@ \ No newline at end of file diff --git a/src/components/ButtonDelete.vue b/src/components/ButtonDelete.vue new file mode 100644 index 0000000..aba5053 --- /dev/null +++ b/src/components/ButtonDelete.vue @@ -0,0 +1,18 @@ + + + \ No newline at end of file diff --git a/src/components/GeoCard.vue b/src/components/CardGeo.vue similarity index 86% rename from src/components/GeoCard.vue rename to src/components/CardGeo.vue index 5283f09..f996ecd 100644 --- a/src/components/GeoCard.vue +++ b/src/components/CardGeo.vue @@ -18,11 +18,8 @@ Open Location -
@@ -30,8 +27,12 @@ - - \ No newline at end of file diff --git a/src/components/TextCard.vue b/src/components/CardText.vue similarity index 83% rename from src/components/TextCard.vue rename to src/components/CardText.vue index f3bb316..9afbcce 100644 --- a/src/components/TextCard.vue +++ b/src/components/CardText.vue @@ -11,11 +11,8 @@ - @@ -23,8 +20,12 @@ - - \ No newline at end of file diff --git a/src/components/UrlCard.vue b/src/components/CardUrl.vue similarity index 84% rename from src/components/UrlCard.vue rename to src/components/CardUrl.vue index 823454f..1b16e03 100644 --- a/src/components/UrlCard.vue +++ b/src/components/CardUrl.vue @@ -18,11 +18,8 @@ Open Link - @@ -30,8 +27,12 @@ - - \ No newline at end of file diff --git a/src/components/CardWifi.vue b/src/components/CardWifi.vue new file mode 100644 index 0000000..c4bc3bc --- /dev/null +++ b/src/components/CardWifi.vue @@ -0,0 +1,61 @@ + + + + + \ No newline at end of file diff --git a/src/helpers.js b/src/helpers.js index f09127f..934cf7f 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -37,3 +37,20 @@ export function prepareCoordinate(data) { const parts = code.split(','); return {lat: parts[0], lng: parts[1]}; } + +export function prepareWifi(data) { + //remove the geo: string + const code = data.replace('WIFI:', ''); + //split the string in two parts + const parts = code.split(';'); + let wifi_info = {}; + //loop aver parts + for (let i = 0; i < parts.length; i++) { + let fragments = parts[i].split(':'); + if (fragments[0] == '') { + continue; + } + wifi_info[fragments[0]] = fragments[1]; + } + return wifi_info; +} \ No newline at end of file