From 859c303600ef8631fc48394274a36b0ee3863ef8 Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Tue, 10 Nov 2020 19:48:59 +0800 Subject: [PATCH] Add country code --- Makefile | 2 +- assets/css/styles.css | 2 +- data/types.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index cc555dc..d331a85 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ DATASETS = \ .PHONY: data data: data/cities.json -data/cities.json: $(DATASETS) scripts/data.go +data/cities.json: $(DATASETS) scripts/data.go data/*.go cd scripts && $(GO) run data.go third-party/cities15000.txt: diff --git a/assets/css/styles.css b/assets/css/styles.css index 88ac68d..a373dcb 100644 --- a/assets/css/styles.css +++ b/assets/css/styles.css @@ -232,6 +232,6 @@ d-zonefigure { d-time { display: block; - font-size: 2em; + font-size: 2.5em; } diff --git a/data/types.go b/data/types.go index 6e7fdea..4032738 100644 --- a/data/types.go +++ b/data/types.go @@ -29,7 +29,7 @@ type Admin1 struct { // Country represents a country type Country struct { // CountryRef is the ISO-3166 2-letter country code - Ref string `json:"-"` + Ref string `json:"r"` // Name is the full UTF-8 name of the country Name string `json:"n"` }