From 8ece9e8a6de8e0dd1d5ee0318884e9a4e131b026 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 21 Sep 2024 11:49:47 +0200 Subject: Remove the template.old/ directory --- template.old/404.templ | 16 --- template.old/about.templ | 52 -------- template.old/base.templ | 51 -------- template.old/coins.templ | 53 -------- template.old/coins_designs.templ | 41 ------ template.old/coins_designs_nl.templ | 43 ------- template.old/coins_mintages.templ | 167 ------------------------- template.old/error.templ | 24 ---- template.old/jargon.templ | 63 ---------- template.old/language.templ | 54 -------- template.old/navbar.templ | 241 ------------------------------------ template.old/root.templ | 23 ---- 12 files changed, 828 deletions(-) delete mode 100644 template.old/404.templ delete mode 100644 template.old/about.templ delete mode 100644 template.old/base.templ delete mode 100644 template.old/coins.templ delete mode 100644 template.old/coins_designs.templ delete mode 100644 template.old/coins_designs_nl.templ delete mode 100644 template.old/coins_mintages.templ delete mode 100644 template.old/error.templ delete mode 100644 template.old/jargon.templ delete mode 100644 template.old/language.templ delete mode 100644 template.old/navbar.templ delete mode 100644 template.old/root.templ diff --git a/template.old/404.templ b/template.old/404.templ deleted file mode 100644 index 9a03b43..0000000 --- a/template.old/404.templ +++ /dev/null @@ -1,16 +0,0 @@ -package template - -import "git.thomasvoss.com/euro-cash.eu/lib" - -templ NotFound() { - {{ p := ctx.Value("printer").(lib.Printer) }} -
- @navbar() -

{ p.T("Page Not Found") }

-
-
-

- @templ.Raw(p.T("The page you were looking for does not exist. If you believe this is a mistake then don’t hesitate to contact @onetruemangoman on Discord or to email us at %s.", contactEmail)) -

-
-} diff --git a/template.old/about.templ b/template.old/about.templ deleted file mode 100644 index d7dfa06..0000000 --- a/template.old/about.templ +++ /dev/null @@ -1,52 +0,0 @@ -package template - -import "git.thomasvoss.com/euro-cash.eu/lib" - -const ( - contactEmail = `mail@euro-cash.eu` - repoLinkStart = `` - linkEnd = `` -) - -templ About() { - {{ p := ctx.Value("printer").(lib.Printer) }} -
- @navbar() -

{ p.T("About Us") }

-
-
-

{ p.T("Open Source") }

-

- @templ.Raw(p.T("This website is an open project, and a collaboration between developers, translators, and researchers. All source code, data, images, and more for the website are open source and can be found %shere%s. This site is licensed under the BSD 0-Clause license giving you the full freedom to do whatever you would like with any of the content on this site.", repoLinkStart, linkEnd)) -

-

{ p.T("Contact Us") }

-

- @templ.Raw(p.T("While we try to stay as up-to-date as possible and to fact check our information, it is always possible that we get something wrong, lack a translation, or are missing some piece of data you may have. In such a case don’t hesitate to contact us; we’ll try to get the site updated or fixed as soon as possible. You are always free to contribute via a git patch if you are more technically included, but if not you can always send an email to %s or contact ‘@onetruemangoman’ on Discord.", contactEmail)) -

-

{ p.T("Special Thanks") }

- - - - - - - - - - - - - -
{ p.T("Development") }{ p.T("Research") }{ p.T("Translations") }
- Jessika Wexler, - Lyyli Savolainen, - Ralf Nadel - - Elín Hjartardóttir, - Storm Sørensen - - Thomas Voss, - Védís Indriðadóttir -
-
-} diff --git a/template.old/base.templ b/template.old/base.templ deleted file mode 100644 index dcef2d8..0000000 --- a/template.old/base.templ +++ /dev/null @@ -1,51 +0,0 @@ -package template - -import "git.thomasvoss.com/euro-cash.eu/lib" - -templ Base(body templ.Component) { - {{ p := ctx.Value("printer").(lib.Printer) }} - - - - - - - Euro Cash - - - - @body - - - -} diff --git a/template.old/coins.templ b/template.old/coins.templ deleted file mode 100644 index ef1b0a1..0000000 --- a/template.old/coins.templ +++ /dev/null @@ -1,53 +0,0 @@ -package template - -import "git.thomasvoss.com/euro-cash.eu/lib" - -const newsLinkStart = `` - -templ Coins() { - {{ p := ctx.Value("printer").(lib.Printer) }} -
- @navbar() -

{ p.T("Euro Coins") }

-
-
-

- @templ.Raw(p.T("On this section of the site you can find everything there is to know about the coins of the Eurozone. For the latest news on coin- and design releases, check out the %snews%s tab!", newsLinkStart, linkEnd)) -

-
-
- -
-
-} diff --git a/template.old/coins_designs.templ b/template.old/coins_designs.templ deleted file mode 100644 index de47482..0000000 --- a/template.old/coins_designs.templ +++ /dev/null @@ -1,41 +0,0 @@ -package template - -import ( - "fmt" - "strings" - - "git.thomasvoss.com/euro-cash.eu/lib" -) - -var varietiesLinkStart = `` - -func makeURL(c lib.Country) templ.SafeURL { - url := fmt.Sprintf("/coins/designs/%s", c.Code) - return templ.SafeURL(url) -} - -templ CoinsDesigns() { - {{ p := ctx.Value("printer").(lib.Printer) }} -
- @navbar() -

{ p.T("Euro Coin Designs") }

-
-
-

- @templ.Raw(p.T("Here you’ll be able to view all the coin designs for each country in the Eurozone. This section of the site doesn’t include minor varieties such as different mintmarks or errors; those are on the %svarieties%s page.", varietiesLinkStart, linkEnd)) -

-
-
-
-} diff --git a/template.old/coins_designs_nl.templ b/template.old/coins_designs_nl.templ deleted file mode 100644 index 92c01be..0000000 --- a/template.old/coins_designs_nl.templ +++ /dev/null @@ -1,43 +0,0 @@ -package template - -import "git.thomasvoss.com/euro-cash.eu/src" - -templ CoinsDesignsNl() { - {{ p := ctx.Value("printer").(lib.Printer) }} -
- @navbar() -

{ p.T("Dutch Euro Coin Designs") }

-
-
-
- Netherlands Queen Beatrix €0.50 Coin - Netherlands King Willem-Alexander €0.50 Coin -
-
- Netherlands Queen Beatrix €1 Coin - Netherlands King Willem-Alexander €1 Coin -
-

- { p.T("From the years 1999–2013 all Dutch euro coins featured the portrait of Queen Beatrix of the Netherlands. After her abdication from the throne in 2013 the designs of all denominations were changed to feature the portrait of the new King Willem-Alexander. After her abdication the direction in which the monarchs portrait faced was flipped; a tradition dating back to the earliest coins of the Kingdom of the Netherlands.") } -

-

- { p.T("Coins featuring both monarchs contain text reading ‘BEATRIX KONINGIN DER NEDERLANDEN’ (‘BEATRIX QUEEN OF THE NETHERLANDS’) and ‘Willem-Alexander Koning der Nederlanden’ (‘Willem-Alexander King of the Netherlands’) respectively.") } -

-

- - { p.T("The €1 and €2 coins featuring King Willem-Alexander were minted with a much lower relief than most euro coins of the same denomination. As a result it is not uncommon for these coins to appear worn after little use in circulation.") } -

-
-} diff --git a/template.old/coins_mintages.templ b/template.old/coins_mintages.templ deleted file mode 100644 index 894cb75..0000000 --- a/template.old/coins_mintages.templ +++ /dev/null @@ -1,167 +0,0 @@ -package template - -import ( - "strconv" - - "git.thomasvoss.com/euro-cash.eu/lib" - "git.thomasvoss.com/euro-cash.eu/lib/mintage" -) - -const muntrolpakketLinkStart = `` - -var denoms = [...]float64{ - 0.01, 0.02, 0.05, 0.10, - 0.20, 0.50, 1.00, 2.00, -} - -templ CoinsMintages() { - {{ - code := ctx.Value("code").(string) - data := ctx.Value("mintages").(mintage.Data) - ctype := ctx.Value("type").(string) - p := ctx.Value("printer").(lib.Printer) - }} -
- @navbar() -

{ p.T("Euro Coin Mintages") }

-
-
-

- { p.T("Here you’ll be able to view all the known mintages for all coins. You’ll also be able to filter on country, denomination, etc. If you have any mintage data that’s missing from our site, feel free to contact us.") } -

-
- if code == "nl" { -

{ p.T("Additional Notes") }

-
    -
  • - @templ.Raw(p.T("Most coins from the years 2003–2016 are listed as NIFC coins while other popular sources such as Numista claim they were minted for circulation. For more information on why others are wrong, %sclick here%s.", muntrolpakketLinkStart, linkEnd)) -
  • -
  • - { p.T("In 2003 Numista calculated a total of %d coins issued for coin sets per denomination. Our own calculations found only %d. Numista also forgot to include the many hundred thousand coins from the coin roll sets that were produced.", 217503, 177003) } -
  • -
- } -
-
-
- -
- @coinTypeRadio(ctype, "circ", p.T("Circulation Coins")) - @coinTypeRadio(ctype, "nifc", p.T("NIFC / BU Sets")) - @coinTypeRadio(ctype, "proof", p.T("Proof Coins")) -
-
- -
-
-
{ p.T("Standard Issue Coins") }
- - - - for _, x := range denoms { - - } - - - for _, row := range data.Standard { - - - for _, col := range row.Mintages[strToCtype(ctype)] { - switch col { - case mintage.Unknown: - - case 0: - - default: - - } - } - - } - -
{ p.T("Year") }{ p.Money(x, false) }
- if len(row.Mintmark) != 0 { - { strconv.Itoa(row.Year) } { row.Mintmark } - } else { - { strconv.Itoa(row.Year) } - } - { p.T("Unknown") }{ p.N(col) }
-
- if len(data.Commemorative) != 0 { -
-
{ p.T("Commemorative Coins") }
- - - - - - - - for _, row := range data.Commemorative { - - - - - switch row.Mintage[strToCtype(ctype)] { - case mintage.Unknown: - - case 0: - - default: - - } - - } - -
{ p.T("Year") }{ p.T("Commemorated Issue") }{ p.T("Mintage") }
- if len(row.Mintmark) != 0 { - { strconv.Itoa(row.Year) } { row.Mintmark } - } else { - { strconv.Itoa(row.Year) } - } - { row.Name }{ p.T("Unknown") }{ p.N(row.Mintage[strToCtype(ctype)]) }
-
- } -
-
-} - -templ coinTypeRadio(ctype, short, long string) { - -} - -func strToCtype(s string) int { - switch s { - case "circ": - return mintage.TypeCirc - case "nifc": - return mintage.TypeNIFC - case "proof": - return mintage.TypeProof - } - - /* Should never happen, but just incase */ - return mintage.TypeCirc -} diff --git a/template.old/error.templ b/template.old/error.templ deleted file mode 100644 index d2fed83..0000000 --- a/template.old/error.templ +++ /dev/null @@ -1,24 +0,0 @@ -package template - -import ( - "net/http" - "strconv" - - "git.thomasvoss.com/euro-cash.eu/lib" -) - -templ Error(status int) { - {{ p := ctx.Value("printer").(lib.Printer) }} -
- @navbar() -

{ strconv.Itoa(status) } { http.StatusText(status) }

-
-
-

- { p.T("If you’re seeing this page, it means that something went wrong on our end that we need to fix. Our team has been notified of this error, and we apologise for the inconvenience.") } -

-

- @templ.Raw(p.T("If this issue persists, don’t hesitate to contact @onetruemangoman on Discord or to email us at %s.", contactEmail)) -

-
-} diff --git a/template.old/jargon.templ b/template.old/jargon.templ deleted file mode 100644 index 255068e..0000000 --- a/template.old/jargon.templ +++ /dev/null @@ -1,63 +0,0 @@ -package template - -import "git.thomasvoss.com/euro-cash.eu/lib" - -templ Jargon() { - {{ p := ctx.Value("printer").(lib.Printer) }} -
- @navbar() -

{ p.T("Euro Cash Jargon") }

-
-
-

- { p.T("Both on this website and in other euro-cash-related forums there are many terms you will come across that you may not immediately understand. This page will hopefully get you up to speed with the most important and frequently-used terminology.") } -

-

- { p.T("All terms defined below can be used as clickable links which highlight the selected term. It is recommended to use these links when sharing this page with others, so that the relevant terms are highlighted.") } -

-
-

{ p.T("General Terms") }

-
- @dt("nifc", p.T("NIFC — Not Intended For Circulation")) -
-

- { p.T("NIFC coins are coins minted without the intention of being put into general circulation. These coins are typically minted with the purpose of being put into coincards or coin-sets to be sold to collectors. Occasionally they are also handed out to collectors for face value at banks.") } -

-

- { p.T("While uncommon, NIFC coins are occasionally found in circulation. This can happen for a variety of reasons such as someone depositing their coin collection (known as a ‘collection dump’), or a collector’s child spending their rare coins on an ice cream. Some coin mints have also been known to put NIFC coins that have gone unsold for multiple years into circulation.") } -

-
- @dt("au", p.T("AU — Almost Uncirculated")) -
- { p.T("AU coins are coins that are in extremely good condition as a result of limited use in circulation. Unlike the term ‘UNC’, this term is a description of the coins quality, not its usage. AU coins often appear to retain most of their original luster as well as possessing little-to-no scratches or other forms of post-mint damage (PMD).") } -
- @dt("bu", p.T("BU — Brilliantly Uncirculated")) -
- { p.T("BU is a general term to refer to coins from coincards and -sets. These are different from UNC coins in that they are typically handled with more care during the minting process and are struck with higher-quality dies than the coins minted for coin rolls resulting in a higher-quality end product. You may also see these coins referred to by the French term ‘fleur de coin’.") } -
- @dt("pmd", p.T("PMD — Post-Mint Damage")) -
- { p.T("Post-mint damage is any damage that a coin has sustained outside of the minting process, such as through being dropped on the ground, hit against a table, etc.") } -
- @dt("unc", p.T("UNC — Uncirculated")) -
- { p.T("Uncirculated coins are coins that have never been used in a monetary exchange. The term ‘UNC’ is often mistakenly used to refer to coins in very good condition, but this is incorrect. A coin in poor condition that has never been circulated is still considered an ‘UNC’ coin.") } -
-
-

{ p.T("Collector-Specific Terms") }

-
- @dt("crh", p.T("CRH — Coin Roll Hunting")) -
- { p.T("Coin roll hunting is a general term for the activity of searching through coin rolls and -bags to find coins for a collection. Coin rolls and bags are often obtained at banks or coin roll machines.") } -
-
-
-} - -templ dt(id, title string) { -
- - { title } - -
-} diff --git a/template.old/language.templ b/template.old/language.templ deleted file mode 100644 index 1b48295..0000000 --- a/template.old/language.templ +++ /dev/null @@ -1,54 +0,0 @@ -package template - -import ( - "strings" - - "git.thomasvoss.com/euro-cash.eu/lib" -) - -templ Language() { - {{ p := ctx.Value("printer").(lib.Printer) }} -
- @navbar() -

{ p.T("Select Your Language") }

-
-
-

- { p.T("Select your preferred language to use on the site.") } -

-

- If you are an American user, it’s suggested that you select - American English instead of British English. This will ensure that - dates will be formatted with the month before the day. -

-
-

{ p.T("Eurozone Languages") }

- @languageGrid(true) -

{ p.T("Other Languages") }

- @languageGrid(false) -
-} - -templ languageGrid(eurozone bool) { -
-
- for _, loc := range lib.Locales { - if loc.Eurozone == eurozone { - - } - } -
-
-} diff --git a/template.old/navbar.templ b/template.old/navbar.templ deleted file mode 100644 index 85ad8a2..0000000 --- a/template.old/navbar.templ +++ /dev/null @@ -1,241 +0,0 @@ -package template - -import "git.thomasvoss.com/euro-cash.eu/lib" - -templ navbar() { - {{ p := ctx.Value("printer").(lib.Printer) }} - -} - -css noMargin() { - margin: 0; -} diff --git a/template.old/root.templ b/template.old/root.templ deleted file mode 100644 index 657314c..0000000 --- a/template.old/root.templ +++ /dev/null @@ -1,23 +0,0 @@ -package template - -import "git.thomasvoss.com/euro-cash.eu/lib" - -templ Root() { - {{ p := ctx.Value("printer").(lib.Printer) }} -
- @navbar() -
-

{ p.T("The Euro Cash Compendium") }

-

- { p.T("United in") } - { p.T("diversity") } - { p.T("cash") } -

-
-
-
-

- { p.T("Welcome to the Euro Cash Compendium. This sites aims to be a resource for you to discover everything there is to know about the coins and banknotes of the Euro, a currency that spans 26 countries and 350 million people. We also have dedicated sections of the site for collectors.") } -

-
-} -- cgit v1.2.3