aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsecondl1ght <[email protected]>2022-07-26 08:49:51 -0600
committersecondl1ght <[email protected]>2022-07-26 08:49:51 -0600
commit6ceaf176de896862cb398f71ca17f081a798d1cd (patch)
tree34017ebce3fcdd6b4e1ec37f259759e9f182935a
parent28836fc276a75e71dc556ba42b1b499e260ba175 (diff)
downloadcoinos-ui-6ceaf176de896862cb398f71ca17f081a798d1cd.tar.gz
coinos-ui-6ceaf176de896862cb398f71ca17f081a798d1cd.zip
run prettier and other adjustments
-rw-r--r--.prettierrc2
-rw-r--r--src/components/LandingHeader.svelte2
-rw-r--r--src/lib/socket.js6
-rw-r--r--src/lib/store.js2
-rw-r--r--src/routes/invoice.svelte6
-rw-r--r--src/routes/receive.svelte10
-rw-r--r--vite.config.js3
7 files changed, 12 insertions, 19 deletions
diff --git a/.prettierrc b/.prettierrc
index c9a3eed7..4d33dfc8 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -3,5 +3,5 @@
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
- "plugins": ["./node_modules/prettier-plugin-svelte"]
+ "plugins": ["./node_modules/prettier-plugin-svelte"]
}
diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte
index 92558777..4da9a17e 100644
--- a/src/components/LandingHeader.svelte
+++ b/src/components/LandingHeader.svelte
@@ -1,6 +1,6 @@
<script>
import { goto } from '$app/navigation';
- import { scroll } from '$utils';
+ import { scroll } from '$lib/utils';
import { Icon } from '$comp';
export let howItWorks;
diff --git a/src/lib/socket.js b/src/lib/socket.js
index 448d8e88..38efd2ec 100644
--- a/src/lib/socket.js
+++ b/src/lib/socket.js
@@ -18,9 +18,9 @@ export const messages = (data) => ({
socket.send(JSON.stringify({ type: 'login', data: token }));
},
- login() {
- user.set(data);
- }
+ login() {
+ user.set(data);
+ }
});
const initialReconnectDelay = 1000;
diff --git a/src/lib/store.js b/src/lib/store.js
index 0a9301ff..120acc77 100644
--- a/src/lib/store.js
+++ b/src/lib/store.js
@@ -1,4 +1,4 @@
-import { writable } from "svelte/store";
+import { writable } from 'svelte/store';
export const rate = writable();
export const user = writable();
diff --git a/src/routes/invoice.svelte b/src/routes/invoice.svelte
index 7df1cb99..b8f9e54b 100644
--- a/src/routes/invoice.svelte
+++ b/src/routes/invoice.svelte
@@ -2,7 +2,7 @@
import { rate, user } from '$lib/store';
import { onMount } from 'svelte';
- export let text;
+ export let text;
</script>
QR code
@@ -13,8 +13,6 @@ QR code
{$user?.username}
-
{#each $user.payments as p}
- {p.amount}<br/>
+ {p.amount}<br />
{/each}
-
diff --git a/src/routes/receive.svelte b/src/routes/receive.svelte
index 7aa8536f..73d3cc06 100644
--- a/src/routes/receive.svelte
+++ b/src/routes/receive.svelte
@@ -1,7 +1,7 @@
<script>
// in the future we will want to allow users to set their fiat currency in the settings
import { AppHeader, Icon } from '$comp';
- import { goto } from "$app/navigation";
+ import { goto } from '$app/navigation';
let useFiat = true;
let amountFiat = 0;
@@ -63,8 +63,8 @@
<!-- buttons -->
<div class="space-y-3">
<button
- class="bg-black text-white rounded-xl w-full h-[48px] flex justify-center items-center font-semibold text-sm" on:click={() => goto('/invoice')}
- ><Icon icon="qr" style="mr-2" /> Show QR</button
+ class="bg-black text-white rounded-xl w-full h-[48px] flex justify-center items-center font-semibold text-sm"
+ on:click={() => goto('/invoice')}><Icon icon="qr" style="mr-2" /> Show QR</button
>
<button
class="bg-primary rounded-xl w-full h-[48px] flex justify-center items-center font-semibold text-sm"
@@ -73,7 +73,3 @@
</div>
</div>
</div>
-
-<!-- step 2 customer adds tip and pays -->
-
-<!-- step 3 success screen -->
diff --git a/vite.config.js b/vite.config.js
index ca2ac7aa..bb04f608 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -6,8 +6,7 @@ const config = {
plugins: [sveltekit()],
resolve: {
alias: {
- $comp: path.resolve('src/components/index.js'),
- $utils: path.resolve('src/lib/utils.js')
+ $comp: path.resolve('src/components/index.js')
}
}
};