aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/jade/lib/jade.js
diff options
context:
space:
mode:
authormetoro <[email protected]>2013-10-03 14:55:54 -0700
committermetoro <[email protected]>2013-10-03 14:55:54 -0700
commitdd1313f68b14b2dbba28ade07ca5e45ca678fc1f (patch)
tree28f0ddfb8c5296b51f301c6c1f32be161d2a2f10 /node_modules/jade/lib/jade.js
parent676a9c336a8cda838d7350134d2781c176731e6a (diff)
downloadcoinos-server-dd1313f68b14b2dbba28ade07ca5e45ca678fc1f.tar.gz
coinos-server-dd1313f68b14b2dbba28ade07ca5e45ca678fc1f.zip
Do some database init
Diffstat (limited to 'node_modules/jade/lib/jade.js')
0 files changed, 0 insertions, 0 deletions
;id=674de46a6a9f1b793313b5c027a34d396217ed84'>674de46a ^
380da842 ^
674de46a ^
bee96ca4 ^
32fcc461 ^
674de46a ^


7dc1358f ^
674de46a ^

7801ce67 ^
7dc1358f ^
674de46a ^





9b3e117e ^
674de46a ^



















04232a4f ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
        

                                           
                                                    

           
         




               
           
        
         
               


            
                                     

                   
                                                           
                                          





                 
                                  



















                                                                      


                                                      
<script>
  import Amount from "$comp/Amount.svelte";

  import { btc, f, sat, s, sats } from "$lib/utils";
  let {
    showQr,
    link,
    txt,
    invoice,
    amount,
    amountFiat,
    currency,
    locale,
    tip,
    rate,
  } = $props();
</script>

{#if showQr}
  <div class="max-w-[360px] mx-auto">
    <a href={link}>
      <img
        src={`/qr/${encodeURIComponent(invoice.text)}/raw`}
        class="z-10 border-4 border-white"
        alt={txt}
      />
    </a>
  </div>
{/if}

{#if !showQr || txt.length <= 120}
  <div class="break-all text-center text-secondary text-xl">
    {txt}
  </div>
{/if}

{#each invoice.items as i}
  <div class="grid grid-cols-12 text-xl">
    <div class="col-span-1 my-auto">{i.quantity}</div>
    <div class="mr-auto grow col-span-7 my-auto">
      {i.name}
    </div>
    <div class="col-span-2 font-semibold text-right my-auto">
      {f(i.price * i.quantity, currency)}
    </div>
    <div class="col-span-2 text-secondary text-right text-lg my-auto">
      {sat(btc(i.price * i.quantity, rate))}
    </div>
  </div>
{/each}

{#if amount > 0}
  <Amount {amount} {currency} {rate} {locale} {tip} />
{/if}