Skip to content

Commit

Permalink
Merge pull request #349 from mikecao/dev
Browse files Browse the repository at this point in the history
v1.4.0
  • Loading branch information
mikecao authored Nov 3, 2020
2 parents 78b4fb8 + b1a0d21 commit c881751
Show file tree
Hide file tree
Showing 9 changed files with 681 additions and 443 deletions.
13 changes: 12 additions & 1 deletion components/metrics/RealtimeLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export default function RealtimeLog({ data, websites }) {
os,
country,
device,
website_id,
}) {
if (event_type) {
return (
Expand All @@ -110,7 +111,17 @@ export default function RealtimeLog({ data, websites }) {
);
}
if (view_id) {
return url;
const domain = getWebsite({ website_id });
return (
<a
className={styles.link}
href={`//${domain}${url}`}
target="_blank"
rel="noreferrer noopener"
>
{url}
</a>
);
}
if (session_id) {
return (
Expand Down
9 changes: 9 additions & 0 deletions components/metrics/RealtimeLog.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,12 @@
text-overflow: ellipsis;
overflow: hidden;
}

.row .link {
color: var(--gray900);
text-decoration: none;
}

.row .link:hover {
color: var(--primary400);
}
8 changes: 1 addition & 7 deletions components/settings/LanguageButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@ export default function LanguageButton() {
return (
<>
<Head>
{locale === 'zh-CN' && (
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap"
rel="stylesheet"
/>
)}
{locale === 'zh-TW' && (
{(locale === 'zh-CN' || locale === 'zh-TW') && (
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap"
rel="stylesheet"
Expand Down
52 changes: 26 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "umami",
"version": "1.2.0",
"version": "1.4.0",
"description": "A simple, fast, website analytics alternative to Google Analytics. ",
"author": "Mike Cao <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -56,36 +56,36 @@
}
},
"dependencies": {
"@prisma/client": "2.9.0",
"@prisma/client": "2.10.1",
"@reduxjs/toolkit": "^1.4.0",
"bcrypt": "^5.0.0",
"chalk": "^4.1.0",
"chart.js": "^2.9.3",
"chart.js": "^2.9.4",
"classnames": "^2.2.6",
"cookie": "^0.4.1",
"cors": "^2.8.5",
"date-fns": "^2.16.1",
"date-fns-tz": "^1.0.12",
"detect-browser": "^5.2.0",
"dotenv": "^8.2.0",
"formik": "^2.2.0",
"immer": "^7.0.9",
"formik": "^2.2.1",
"immer": "^7.0.14",
"is-localhost-ip": "^1.4.0",
"isbot-fast": "^1.2.0",
"jose": "^2.0.2",
"maxmind": "^4.3.0",
"jose": "^2.0.3",
"maxmind": "^4.3.1",
"moment-timezone": "^0.5.31",
"next": "^9.5.5",
"prompts": "2.3.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-intl": "^5.8.4",
"react-redux": "^7.2.1",
"react-simple-maps": "^2.1.2",
"next": "^10.0.0",
"prompts": "2.4.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-intl": "^5.8.8",
"react-redux": "^7.2.2",
"react-simple-maps": "^2.3.0",
"react-spring": "^8.0.27",
"react-tooltip": "^4.2.10",
"react-use-measure": "^2.0.2",
"react-window": "^1.8.5",
"react-window": "^1.8.6",
"redux": "^4.0.5",
"redux-thunk": "^2.3.0",
"request-ip": "^2.1.3",
Expand All @@ -96,31 +96,31 @@
"uuid": "^8.3.1"
},
"devDependencies": {
"@formatjs/cli": "^2.13.2",
"@prisma/cli": "2.9.0",
"@formatjs/cli": "^2.13.5",
"@prisma/cli": "2.10.1",
"@rollup/plugin-buble": "^0.21.3",
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-replace": "^2.3.3",
"@rollup/plugin-node-resolve": "^10.0.0",
"@rollup/plugin-replace": "^2.3.4",
"@svgr/webpack": "^5.4.0",
"cross-env": "^7.0.2",
"del": "^6.0.0",
"dotenv-cli": "^4.0.0",
"eslint": "^7.11.0",
"eslint-config-prettier": "^6.12.0",
"eslint": "^7.12.1",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.21.4",
"eslint-plugin-react-hooks": "^4.1.2",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "^4.2.0",
"extract-react-intl-messages": "^4.1.1",
"husky": "^4.3.0",
"lint-staged": "^10.4.0",
"lint-staged": "^10.5.1",
"loadtest": "5.1.0",
"npm-run-all": "^4.1.5",
"postcss-flexbugs-fixes": "^4.2.1",
"postcss-import": "^12.0.1",
"postcss-import": "^13.0.0",
"postcss-preset-env": "^6.7.0",
"prettier": "^2.1.2",
"prettier-eslint": "^11.0.0",
"rollup": "^2.30.0",
"rollup": "^2.33.0",
"rollup-plugin-hashbang": "^2.2.2",
"rollup-plugin-terser": "^7.0.2",
"stylelint": "^13.7.2",
Expand Down
1 change: 1 addition & 0 deletions public/country/cs-CZ.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"AF":"Afgh\u00e1nist\u00e1n","AX":"\u00c5landy","AL":"Alb\u00e1nie","DZ":"Al\u017e\u00edrsko","AS":"Americk\u00e1 Samoa","VI":"Americk\u00e9 Panensk\u00e9 ostrovy","AD":"Andorra","AO":"Angola","AI":"Anguilla","AQ":"Antarktida","AG":"Antigua a Barbuda","AR":"Argentina","AM":"Arm\u00e9nie","AW":"Aruba","AU":"Austr\u00e1lie","AZ":"\u00c1zerb\u00e1jd\u017e\u00e1n","BS":"Bahamy","BH":"Bahrajn","BD":"Banglad\u00e9\u0161","BB":"Barbados","BE":"Belgie","BZ":"Belize","BY":"B\u011blorusko","BJ":"Benin","BM":"Bermudy","BT":"Bh\u00fat\u00e1n","BO":"Bol\u00edvie","BA":"Bosna a Hercegovina","BW":"Botswana","BV":"Bouvet\u016fv ostrov","BR":"Braz\u00edlie","IO":"Britsk\u00e9 indickooce\u00e1nsk\u00e9 \u00fazem\u00ed","VG":"Britsk\u00e9 Panensk\u00e9 ostrovy","BN":"Brunej","BG":"Bulharsko","BF":"Burkina Faso","BI":"Burundi","CK":"Cookovy ostrovy","CW":"Cura\u00e7ao","TD":"\u010cad","ME":"\u010cern\u00e1 Hora","CZ":"\u010cesko","CN":"\u010c\u00edna","DK":"D\u00e1nsko","DM":"Dominika","DO":"Dominik\u00e1nsk\u00e1 republika","DJ":"D\u017eibutsko","EG":"Egypt","EC":"Ekv\u00e1dor","ER":"Eritrea","EE":"Estonsko","ET":"Etiopie","FO":"Faersk\u00e9 ostrovy","FK":"Falklandsk\u00e9 ostrovy","FJ":"Fid\u017ei","PH":"Filip\u00edny","FI":"Finsko","FR":"Francie","GF":"Francouzsk\u00e1 Guyana","TF":"Francouzsk\u00e1 ji\u017en\u00ed \u00fazem\u00ed","PF":"Francouzsk\u00e1 Polyn\u00e9sie","GA":"Gabon","GM":"Gambie","GH":"Ghana","GI":"Gibraltar","GD":"Grenada","GL":"Gr\u00f3nsko","GE":"Gruzie","GP":"Guadeloupe","GU":"Guam","GT":"Guatemala","GG":"Guernsey","GN":"Guinea","GW":"Guinea-Bissau","GY":"Guyana","HT":"Haiti","HM":"Heard\u016fv ostrov a McDonaldovy ostrovy","HN":"Honduras","HK":"Hongkong \u2013 ZAO \u010c\u00edny","CL":"Chile","HR":"Chorvatsko","IN":"Indie","ID":"Indon\u00e9sie","IQ":"Ir\u00e1k","IR":"\u00cdr\u00e1n","IE":"Irsko","IS":"Island","IT":"It\u00e1lie","IL":"Izrael","JM":"Jamajka","JP":"Japonsko","YE":"Jemen","JE":"Jersey","ZA":"Jihoafrick\u00e1 republika","GS":"Ji\u017en\u00ed Georgie a Ji\u017en\u00ed Sandwichovy ostrovy","KR":"Ji\u017en\u00ed Korea","SS":"Ji\u017en\u00ed S\u00fad\u00e1n","JO":"Jord\u00e1nsko","KY":"Kajmansk\u00e9 ostrovy","KH":"Kambod\u017ea","CM":"Kamerun","CA":"Kanada","CV":"Kapverdy","BQ":"Karibsk\u00e9 Nizozemsko","QA":"Katar","KZ":"Kazachst\u00e1n","KE":"Ke\u0148a","KI":"Kiribati","CC":"Kokosov\u00e9 ostrovy","CO":"Kolumbie","KM":"Komory","CG":"Kongo \u2013 Brazzaville","CD":"Kongo \u2013 Kinshasa","CR":"Kostarika","CU":"Kuba","KW":"Kuvajt","CY":"Kypr","KG":"Kyrgyzst\u00e1n","LA":"Laos","LS":"Lesotho","LB":"Libanon","LR":"Lib\u00e9rie","LY":"Libye","LI":"Lichten\u0161tejnsko","LT":"Litva","LV":"Loty\u0161sko","LU":"Lucembursko","MO":"Macao \u2013 ZAO \u010c\u00edny","MG":"Madagaskar","HU":"Ma\u010farsko","MY":"Malajsie","MW":"Malawi","MV":"Maledivy","ML":"Mali","MT":"Malta","MA":"Maroko","MH":"Marshallovy ostrovy","MQ":"Martinik","MU":"Mauricius","MR":"Maurit\u00e1nie","YT":"Mayotte","UM":"Men\u0161\u00ed odlehl\u00e9 ostrovy USA","MX":"Mexiko","FM":"Mikron\u00e9sie","MD":"Moldavsko","MC":"Monako","MN":"Mongolsko","MS":"Montserrat","MZ":"Mosambik","MM":"Myanmar (Barma)","NA":"Namibie","NR":"Nauru","DE":"N\u011bmecko","NP":"Nep\u00e1l","NE":"Niger","NG":"Nig\u00e9rie","NI":"Nikaragua","NU":"Niue","NL":"Nizozemsko","NF":"Norfolk","NO":"Norsko","NC":"Nov\u00e1 Kaledonie","NZ":"Nov\u00fd Z\u00e9land","OM":"Om\u00e1n","IM":"Ostrov Man","PK":"P\u00e1kist\u00e1n","PW":"Palau","PS":"Palestinsk\u00e1 \u00fazem\u00ed","PA":"Panama","PG":"Papua-Nov\u00e1 Guinea","PY":"Paraguay","PE":"Peru","PN":"Pitcairnovy ostrovy","CI":"Pob\u0159e\u017e\u00ed slonoviny","PL":"Polsko","PR":"Portoriko","PT":"Portugalsko","AT":"Rakousko","RE":"R\u00e9union","GQ":"Rovn\u00edkov\u00e1 Guinea","RO":"Rumunsko","RU":"Rusko","RW":"Rwanda","GR":"\u0158ecko","PM":"Saint-Pierre a Miquelon","SV":"Salvador","WS":"Samoa","SM":"San Marino","SA":"Sa\u00fadsk\u00e1 Ar\u00e1bie","SN":"Senegal","KP":"Severn\u00ed Korea","MK":"Severn\u00ed Makedonie","MP":"Severn\u00ed Mariany","SC":"Seychely","SL":"Sierra Leone","SG":"Singapur","SK":"Slovensko","SI":"Slovinsko","SO":"Som\u00e1lsko","AE":"Spojen\u00e9 arabsk\u00e9 emir\u00e1ty","GB":"Spojen\u00e9 kr\u00e1lovstv\u00ed","US":"Spojen\u00e9 st\u00e1ty","RS":"Srbsko","LK":"Sr\u00ed Lanka","CF":"St\u0159edoafrick\u00e1 republika","SD":"S\u00fad\u00e1n","SR":"Surinam","SH":"Svat\u00e1 Helena","LC":"Svat\u00e1 Lucie","BL":"Svat\u00fd Bartolom\u011bj","KN":"Svat\u00fd Kry\u0161tof a Nevis","MF":"Svat\u00fd Martin (Francie)","SX":"Svat\u00fd Martin (Nizozemsko)","ST":"Svat\u00fd Tom\u00e1\u0161 a Princ\u016fv ostrov","VC":"Svat\u00fd Vincenc a Grenadiny","SZ":"Svazijsko","SY":"S\u00fdrie","SB":"\u0160alamounovy ostrovy","ES":"\u0160pan\u011blsko","SJ":"\u0160picberky a Jan Mayen","SE":"\u0160v\u00e9dsko","CH":"\u0160v\u00fdcarsko","TJ":"T\u00e1d\u017eikist\u00e1n","TZ":"Tanzanie","TH":"Thajsko","TW":"Tchaj-wan","TG":"Togo","TK":"Tokelau","TO":"Tonga","TT":"Trinidad a Tobago","TN":"Tunisko","TR":"Turecko","TM":"Turkmenist\u00e1n","TC":"Turks a Caicos","TV":"Tuvalu","UG":"Uganda","UA":"Ukrajina","UY":"Uruguay","UZ":"Uzbekist\u00e1n","CX":"V\u00e1no\u010dn\u00ed ostrov","VU":"Vanuatu","VA":"Vatik\u00e1n","VE":"Venezuela","VN":"Vietnam","TL":"V\u00fdchodn\u00ed Timor","WF":"Wallis a Futuna","ZM":"Zambie","EH":"Z\u00e1padn\u00ed Sahara","ZW":"Zimbabwe"}
1 change: 1 addition & 0 deletions public/country/zh-TW.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"TT":"\u5343\u91cc\u9054\u53ca\u6258\u5df4\u54e5","TR":"\u571f\u8033\u5176","TC":"\u571f\u514b\u65af\u53ca\u958b\u79d1\u65af\u7fa4\u5cf6","TM":"\u571f\u5eab\u66fc","BT":"\u4e0d\u4e39","CF":"\u4e2d\u975e\u5171\u548c\u570b","CN":"\u4e2d\u570b","HK":"\u4e2d\u570b\u9999\u6e2f\u7279\u5225\u884c\u653f\u5340","MO":"\u4e2d\u570b\u6fb3\u9580\u7279\u5225\u884c\u653f\u5340","DK":"\u4e39\u9ea5","EC":"\u5384\u74dc\u591a","ER":"\u5384\u5229\u5782\u4e9e","PG":"\u5df4\u5e03\u4e9e\u7d10\u5e7e\u5167\u4e9e","BR":"\u5df4\u897f","BB":"\u5df4\u8c9d\u591a","PY":"\u5df4\u62c9\u572d","BH":"\u5df4\u6797","BS":"\u5df4\u54c8\u99ac","PA":"\u5df4\u62ff\u99ac","PS":"\u5df4\u52d2\u65af\u5766\u81ea\u6cbb\u5340","PK":"\u5df4\u57fa\u65af\u5766","JP":"\u65e5\u672c","BE":"\u6bd4\u5229\u6642","JM":"\u7259\u8cb7\u52a0","IL":"\u4ee5\u8272\u5217","CA":"\u52a0\u62ff\u5927","GA":"\u52a0\u5f6d","MP":"\u5317\u99ac\u5229\u5b89\u7d0d\u7fa4\u5cf6","MK":"\u5317\u99ac\u5176\u9813","KP":"\u5317\u97d3","QA":"\u5361\u9054","CU":"\u53e4\u5df4","TW":"\u53f0\u7063","SZ":"\u53f2\u74e6\u5e1d\u5c3c","NE":"\u5c3c\u65e5","NI":"\u5c3c\u52a0\u62c9\u74dc","NP":"\u5c3c\u6cca\u723e","BF":"\u5e03\u5409\u7d0d\u6cd5\u7d22","BV":"\u5e03\u5a01\u5cf6","GP":"\u74dc\u5730\u6d1b\u666e","GT":"\u74dc\u5730\u99ac\u62c9","WF":"\u74e6\u5229\u65af\u7fa4\u5cf6\u548c\u5bcc\u5716\u90a3\u7fa4\u5cf6","GM":"\u7518\u6bd4\u4e9e","BY":"\u767d\u4fc4\u7f85\u65af","PN":"\u76ae\u7279\u80af\u7fa4\u5cf6","LT":"\u7acb\u9676\u5b9b","IQ":"\u4f0a\u62c9\u514b","IR":"\u4f0a\u6717","IS":"\u51b0\u5cf6","LI":"\u5217\u652f\u6566\u65af\u767b","HU":"\u5308\u7259\u5229","ID":"\u5370\u5c3c","IN":"\u5370\u5ea6","DJ":"\u5409\u5e03\u5730","KI":"\u5409\u91cc\u5df4\u65af","KG":"\u5409\u723e\u5409\u65af","TV":"\u5410\u74e6\u9b6f","DM":"\u591a\u7c73\u5c3c\u514b","DO":"\u591a\u660e\u5c3c\u52a0\u5171\u548c\u570b","TG":"\u591a\u54e5","AG":"\u5b89\u5730\u5361\u53ca\u5df4\u5e03\u9054","AI":"\u5b89\u594e\u62c9","AO":"\u5b89\u54e5\u62c9","AD":"\u5b89\u9053\u723e","TK":"\u6258\u514b\u52de\u7fa4\u5cf6","BM":"\u767e\u6155\u9054","ET":"\u8863\u7d22\u6bd4\u4e9e","ES":"\u897f\u73ed\u7259","EH":"\u897f\u6492\u54c8\u62c9","HR":"\u514b\u7f85\u57c3\u897f\u4e9e","LY":"\u5229\u6bd4\u4e9e","HN":"\u5b8f\u90fd\u62c9\u65af","GR":"\u5e0c\u81d8","BN":"\u6c76\u840a","SA":"\u6c99\u70cf\u5730\u963f\u62c9\u4f2f","BZ":"\u8c9d\u91cc\u65af","BJ":"\u8c9d\u5357","GQ":"\u8d64\u9053\u5e7e\u5167\u4e9e","ZW":"\u8f9b\u5df4\u5a01","AM":"\u4e9e\u7f8e\u5c3c\u4e9e","AZ":"\u4e9e\u585e\u62dc\u7136","TZ":"\u5766\u5c1a\u5c3c\u4e9e","NG":"\u5948\u53ca\u5229\u4e9e","VE":"\u59d4\u5167\u745e\u62c9","BD":"\u5b5f\u52a0\u62c9","ZM":"\u5c1a\u6bd4\u4e9e","PW":"\u5e1b\u7409","LV":"\u62c9\u812b\u7dad\u4e9e","TO":"\u6771\u52a0","TL":"\u6771\u5e1d\u6c76","FR":"\u6cd5\u570b","FO":"\u6cd5\u7f85\u7fa4\u5cf6","GF":"\u6cd5\u5c6c\u572d\u4e9e\u90a3","TF":"\u6cd5\u5c6c\u5357\u90e8\u5c6c\u5730","PF":"\u6cd5\u5c6c\u73bb\u91cc\u5c3c\u897f\u4e9e","MF":"\u6cd5\u5c6c\u8056\u99ac\u4e01","BA":"\u6ce2\u58eb\u5c3c\u4e9e\u8207\u8d6b\u585e\u54e5\u7dad\u7d0d","BW":"\u6ce2\u672d\u90a3","PR":"\u6ce2\u591a\u9ece\u5404","PL":"\u6ce2\u862d","GI":"\u76f4\u5e03\u7f85\u9640","KE":"\u80af\u4e9e","FI":"\u82ac\u862d","AE":"\u963f\u62c9\u4f2f\u806f\u5408\u5927\u516c\u570b","AR":"\u963f\u6839\u5ef7","OM":"\u963f\u66fc","AF":"\u963f\u5bcc\u6c57","DZ":"\u963f\u723e\u53ca\u5229\u4e9e","AL":"\u963f\u723e\u5df4\u5c3c\u4e9e","RU":"\u4fc4\u7f85\u65af","BG":"\u4fdd\u52a0\u5229\u4e9e","ZA":"\u5357\u975e","GS":"\u5357\u55ac\u6cbb\u4e9e\u8207\u5357\u4e09\u660e\u6cbb\u7fa4\u5cf6","AQ":"\u5357\u6975\u6d32","KR":"\u5357\u97d3","SS":"\u5357\u8607\u4e39","KZ":"\u54c8\u85a9\u514b","TD":"\u67e5\u5fb7","KH":"\u67ec\u57d4\u5be8","BO":"\u73bb\u5229\u7dad\u4e9e","CC":"\u79d1\u514b\u65af\uff08\u57fa\u9748\uff09\u7fa4\u5cf6","KW":"\u79d1\u5a01\u7279","TN":"\u7a81\u5c3c\u897f\u4e9e","JO":"\u7d04\u65e6","US":"\u7f8e\u570b","UM":"\u7f8e\u570b\u672c\u571f\u5916\u5c0f\u5cf6\u5dbc","VI":"\u7f8e\u5c6c\u7dad\u4eac\u7fa4\u5cf6","AS":"\u7f8e\u5c6c\u85a9\u6469\u4e9e","GB":"\u82f1\u570b","IO":"\u82f1\u5c6c\u5370\u5ea6\u6d0b\u9818\u5730","VG":"\u82f1\u5c6c\u7dad\u4eac\u7fa4\u5cf6","MR":"\u8305\u5229\u5854\u5c3c\u4e9e","GH":"\u8fe6\u7d0d","CG":"\u525b\u679c\uff08\u5e03\u62c9\u85a9\uff09","CD":"\u525b\u679c\uff08\u91d1\u590f\u6c99\uff09","CO":"\u54e5\u502b\u6bd4\u4e9e","CR":"\u54e5\u65af\u5927\u9ece\u52a0","EG":"\u57c3\u53ca","CK":"\u5eab\u514b\u7fa4\u5cf6","CW":"\u5eab\u62c9\u7d22","NO":"\u632a\u5a01","SJ":"\u632a\u5a01\u5c6c\u65af\u74e6\u5df4\u53ca\u5c16\u68c9","GG":"\u6839\u606f","GL":"\u683c\u9675\u862d","GD":"\u683c\u745e\u90a3\u9054","TH":"\u6cf0\u570b","HT":"\u6d77\u5730","UG":"\u70cf\u5e72\u9054","UA":"\u70cf\u514b\u862d","UY":"\u70cf\u62c9\u572d","UZ":"\u70cf\u8332\u5225\u514b","RE":"\u7559\u5c3c\u65fa","PE":"\u79d8\u9b6f","NA":"\u7d0d\u7c73\u6bd4\u4e9e","NZ":"\u7d10\u897f\u862d","NU":"\u7d10\u57c3\u5cf6","SO":"\u7d22\u99ac\u5229\u4e9e","SB":"\u7d22\u7f85\u9580\u7fa4\u5cf6","MQ":"\u99ac\u4e01\u5c3c\u514b","ML":"\u99ac\u5229","MY":"\u99ac\u4f86\u897f\u4e9e","MW":"\u99ac\u62c9\u5a01","YT":"\u99ac\u7d04\u7279\u5cf6","MH":"\u99ac\u7d39\u723e\u7fa4\u5cf6","MG":"\u99ac\u9054\u52a0\u65af\u52a0","MT":"\u99ac\u723e\u4ed6","MV":"\u99ac\u723e\u5730\u592b","FM":"\u5bc6\u514b\u7f85\u5c3c\u897f\u4e9e","CZ":"\u6377\u514b","SY":"\u6558\u5229\u4e9e","IM":"\u66fc\u5cf6","VA":"\u68b5\u8482\u5ca1","AW":"\u8377\u5c6c\u963f\u9b6f\u5df4","SX":"\u8377\u5c6c\u8056\u99ac\u4e01","NL":"\u8377\u862d","BQ":"\u8377\u862d\u52a0\u52d2\u6bd4\u5340","MZ":"\u83ab\u4e09\u6bd4\u514b","CM":"\u5580\u9ea5\u9686","GE":"\u55ac\u6cbb\u4e9e","GN":"\u5e7e\u5167\u4e9e","GW":"\u5e7e\u5167\u4e9e\u6bd4\u7d22","FJ":"\u6590\u6fdf","LK":"\u65af\u91cc\u862d\u5361","SK":"\u65af\u6d1b\u4f10\u514b","SI":"\u65af\u6d1b\u7dad\u5c3c\u4e9e","CL":"\u667a\u5229","PH":"\u83f2\u5f8b\u8cd3","CI":"\u8c61\u7259\u6d77\u5cb8","VN":"\u8d8a\u5357","KY":"\u958b\u66fc\u7fa4\u5cf6","TJ":"\u5854\u5409\u514b","SN":"\u585e\u5167\u52a0\u723e","SC":"\u585e\u5e2d\u723e","RS":"\u585e\u723e\u7dad\u4e9e","AT":"\u5967\u5730\u5229","AX":"\u5967\u862d\u7fa4\u5cf6","EE":"\u611b\u6c99\u5c3c\u4e9e","IE":"\u611b\u723e\u862d","SG":"\u65b0\u52a0\u5761","NC":"\u65b0\u5580\u91cc\u591a\u5c3c\u4e9e","SL":"\u7345\u5b50\u5c71","CH":"\u745e\u58eb","SE":"\u745e\u5178","VU":"\u842c\u90a3\u675c","IT":"\u7fa9\u5927\u5229","BL":"\u8056\u5df4\u745f\u7c73","VC":"\u8056\u6587\u68ee\u53ca\u683c\u745e\u90a3\u4e01","PM":"\u8056\u76ae\u57c3\u8207\u5bc6\u514b\u9686\u7fa4\u5cf6","ST":"\u8056\u591a\u7f8e\u666e\u6797\u897f\u6bd4","KN":"\u8056\u514b\u91cc\u65af\u591a\u798f\u53ca\u5c3c\u7dad\u65af","SM":"\u8056\u99ac\u5229\u8afe","SH":"\u8056\u8d6b\u52d2\u62ff\u5cf6","CX":"\u8056\u8a95\u5cf6","LC":"\u8056\u9732\u897f\u4e9e","YE":"\u8449\u9580","KM":"\u845b\u6469","PT":"\u8461\u8404\u7259","FK":"\u798f\u514b\u862d\u7fa4\u5cf6","CV":"\u7dad\u5fb7\u89d2","MN":"\u8499\u53e4","MS":"\u8499\u54f2\u81d8","ME":"\u8499\u7279\u5167\u54e5\u7f85","BI":"\u84b2\u9686\u5730","GY":"\u84cb\u4e9e\u90a3","HM":"\u8d6b\u5fb7\u5cf6\u53ca\u9ea5\u5510\u7d0d\u7fa4\u5cf6","LA":"\u5bee\u570b","DE":"\u5fb7\u570b","MA":"\u6469\u6d1b\u54e5","MC":"\u6469\u7d0d\u54e5","MD":"\u6469\u723e\u591a\u74e6","MU":"\u6a21\u91cc\u897f\u65af","MM":"\u7dec\u7538","LB":"\u9ece\u5df4\u5ae9","MX":"\u58a8\u897f\u54e5","JE":"\u6fa4\u897f\u5cf6","AU":"\u6fb3\u6d32","RW":"\u76e7\u5b89\u9054","LU":"\u76e7\u68ee\u5821","NF":"\u8afe\u798f\u514b\u5cf6","NR":"\u8afe\u9b6f","LR":"\u8cf4\u6bd4\u745e\u4e9e","LS":"\u8cf4\u7d22\u6258","CY":"\u8cfd\u666e\u52d2\u65af","SV":"\u85a9\u723e\u74e6\u591a","WS":"\u85a9\u6469\u4e9e","RO":"\u7f85\u99ac\u5c3c\u4e9e","GU":"\u95dc\u5cf6","SD":"\u8607\u4e39","SR":"\u8607\u5229\u5357"}
4 changes: 4 additions & 0 deletions styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ body {
font-family: 'Noto Sans SC', sans-serif !important;
}

.zh-TW {
font-family: 'Noto Sans SC', sans-serif !important;
}

.ja-JP {
font-family: 'Noto Sans JP', sans-serif !important;
}
Expand Down
2 changes: 2 additions & 0 deletions tracker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { removeTrailingSlash } from '../lib/url';
screen: { width, height },
navigator: { language },
location: { hostname, pathname, search },
localStorage,
sessionStorage,
document,
history,
Expand All @@ -24,6 +25,7 @@ import { removeTrailingSlash } from '../lib/url';
const domains = attr('data-domains');

const disableTracking =
localStorage.getItem('umami.disabled') ||
(dnt && doNotTrack()) ||
(domains &&
!domains
Expand Down
Loading

1 comment on commit c881751

@vercel
Copy link

@vercel vercel bot commented on c881751 Nov 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.