-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from invopop/multi-currency
Multi currency
- Loading branch information
Showing
48 changed files
with
2,328 additions
and
4,511 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
root = "." | ||
testdata_dir = "testdata" | ||
tmp_dir = "tmp" | ||
|
||
[build] | ||
args_bin = ["serve", "-p", "3001", "--pdf", "prince"] | ||
bin = "./gobl.html" | ||
cmd = "templ generate && go build ./cmd/gobl.html" | ||
delay = 1000 | ||
exclude_dir = ["tmp", "vendor", "testdata"] | ||
exclude_file = ["gobl.html"] | ||
exclude_regex = ["_test.go", "_templ.go"] | ||
exclude_unchanged = false | ||
follow_symlink = false | ||
full_bin = "" | ||
include_dir = [] | ||
include_ext = ["go", "tpl", "templ", "css", "tmpl", "html"] | ||
include_file = [] | ||
kill_delay = "0s" | ||
log = "build-errors.log" | ||
poll = false | ||
poll_interval = 0 | ||
post_cmd = [] | ||
pre_cmd = [] | ||
rerun = false | ||
rerun_delay = 500 | ||
send_interrupt = false | ||
stop_on_error = false | ||
|
||
[color] | ||
app = "" | ||
build = "yellow" | ||
main = "magenta" | ||
runner = "green" | ||
watcher = "cyan" | ||
|
||
[log] | ||
main_only = false | ||
time = false | ||
|
||
[misc] | ||
clean_on_exit = false | ||
|
||
[proxy] | ||
enabled = true | ||
app_port = 3001 | ||
proxy_port = 3000 | ||
|
||
[screen] | ||
clear_on_rebuild = false | ||
keep_scroll = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Package assets contains the static resources for things like styles. | ||
package assets | ||
|
||
import "embed" | ||
|
||
//go:embed styles | ||
|
||
// Content stores all the asset contents. | ||
var Content embed.FS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
@page { | ||
font-family: "Inter", sans-serif; | ||
size: A4 portrait; | ||
margin: 10mm; | ||
margin-bottom: 20mm; | ||
counter-increment: page; | ||
font-size: 9pt; | ||
line-height: 1.5em; | ||
color: #4B5563; | ||
} | ||
body { | ||
font-family: "Inter", sans-serif; | ||
font-size: 9pt; | ||
line-height: 1.5em; | ||
margin: 0; | ||
margin-bottom: 0mm; | ||
/* color: #030712; */ | ||
/* color: #6B7280; */ | ||
color: #4B5563; | ||
} | ||
@media screen { | ||
body { | ||
margin: 10mm; | ||
} | ||
footer.screen { | ||
display: block; | ||
} | ||
footer.print { | ||
display: none; | ||
} | ||
} | ||
article.envelope { | ||
min-height: 100%; | ||
} | ||
article, section, header, div, h1, h2, h3, h4, table, th, td, p { | ||
font-size: 1em; | ||
margin: 0; | ||
} | ||
h1, h2, h3, h4 { | ||
font-weight: 500; | ||
/* color: #030712; */ | ||
} | ||
a { | ||
color: #4B5563; | ||
} | ||
table { | ||
border-spacing: 0; | ||
border-collapse: collapse; | ||
} | ||
th, td { | ||
text-align: left; | ||
} | ||
section.footer span.page-number:before { | ||
content: counter(page); | ||
} | ||
@media print { | ||
footer.screen { | ||
display: none; | ||
} | ||
footer.print { | ||
display: block; | ||
} | ||
} | ||
@page { | ||
@bottom { | ||
content: element(footer); | ||
} | ||
} | ||
footer { | ||
height: 12mm; | ||
text-align: right; | ||
padding: 4mm 0mm; | ||
} | ||
footer.print { | ||
position: running(footer); | ||
} | ||
footer.screen { | ||
padding: 2mm 0mm; | ||
} | ||
footer .page-number { | ||
content: counter(page); | ||
} | ||
footer .pages-number { | ||
content: counter(pages); | ||
} | ||
footer .gobl-logo { | ||
float: left; | ||
} | ||
footer.print .notes:after { | ||
content: " · "; | ||
} | ||
footer .gobl-logo img { | ||
width: 8mm; | ||
height: 8mm; | ||
} | ||
footer.print .gobl-logo { | ||
margin-top: -7mm; | ||
} |
Oops, something went wrong.