Merge remote-tracking branch 'upstream/master'
commit
eb61678bb1
|
@ -29,7 +29,7 @@ const TYPE_ICONS = {
|
|||
[TYPE_EVENT]: <Bolt />,
|
||||
};
|
||||
|
||||
export default function RealtimeLog({ data, websites }) {
|
||||
export default function RealtimeLog({ data, websites, websiteId }) {
|
||||
const intl = useIntl();
|
||||
const [locale] = useLocale();
|
||||
const countryNames = useCountryNames(locale);
|
||||
|
@ -88,7 +88,7 @@ export default function RealtimeLog({ data, websites }) {
|
|||
}
|
||||
|
||||
function getWebsite({ website_id }) {
|
||||
return websites.find(n => n.website_id === website_id)?.name;
|
||||
return websites.find(n => n.website_id === website_id);
|
||||
}
|
||||
|
||||
function getDetail({
|
||||
|
@ -101,6 +101,7 @@ export default function RealtimeLog({ data, websites }) {
|
|||
os,
|
||||
country,
|
||||
device,
|
||||
website_id,
|
||||
}) {
|
||||
if (event_type) {
|
||||
return (
|
||||
|
@ -110,7 +111,17 @@ export default function RealtimeLog({ data, websites }) {
|
|||
);
|
||||
}
|
||||
if (view_id) {
|
||||
return url;
|
||||
const domain = getWebsite({ website_id })?.domain;
|
||||
return (
|
||||
<a
|
||||
className={styles.link}
|
||||
href={`//${domain}${url}`}
|
||||
target="_blank"
|
||||
rel="noreferrer noopener"
|
||||
>
|
||||
{url}
|
||||
</a>
|
||||
);
|
||||
}
|
||||
if (session_id) {
|
||||
return (
|
||||
|
@ -150,7 +161,9 @@ export default function RealtimeLog({ data, websites }) {
|
|||
<Icon className={styles.icon} icon={getIcon(row)} />
|
||||
{getDetail(row)}
|
||||
</div>
|
||||
<div className={styles.website}>{getWebsite(row)}</div>
|
||||
{!websiteId && websites.length > 1 && (
|
||||
<div className={styles.website}>{getWebsite(row)?.domain}</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -44,3 +44,12 @@
|
|||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.row .link {
|
||||
color: var(--gray900);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.row .link:hover {
|
||||
color: var(--primary400);
|
||||
}
|
||||
|
|
|
@ -28,6 +28,15 @@ export default function RealtimeViews({ websiteId, data, websites }) {
|
|||
},
|
||||
];
|
||||
|
||||
const renderLink = ({ x }) => {
|
||||
const domain = x.startsWith('/') ? getDomain(websiteId) : '';
|
||||
return (
|
||||
<a href={`//${domain}${x}`} target="_blank" rel="noreferrer noopener">
|
||||
{x}
|
||||
</a>
|
||||
);
|
||||
};
|
||||
|
||||
const [referrers, pages] = useMemo(() => {
|
||||
if (pageviews) {
|
||||
const referrers = percentFilter(
|
||||
|
@ -55,7 +64,7 @@ export default function RealtimeViews({ websiteId, data, websites }) {
|
|||
pageviews
|
||||
.reduce((arr, { url, website_id }) => {
|
||||
if (url?.startsWith('/')) {
|
||||
if (!websiteId) {
|
||||
if (!websiteId && websites.length > 1) {
|
||||
url = `${getDomain(website_id)}${url}`;
|
||||
}
|
||||
const row = arr.find(({ x }) => x === url);
|
||||
|
@ -91,6 +100,7 @@ export default function RealtimeViews({ websiteId, data, websites }) {
|
|||
<DataTable
|
||||
title={<FormattedMessage id="metrics.pages" defaultMessage="Pages" />}
|
||||
metric={<FormattedMessage id="metrics.views" defaultMessage="Views" />}
|
||||
renderLabel={renderLink}
|
||||
data={pages}
|
||||
height={400}
|
||||
/>
|
||||
|
|
|
@ -135,7 +135,7 @@ export default function RealtimeDashboard() {
|
|||
<RealtimeViews websiteId={websiteId} data={realtimeData} websites={websites} />
|
||||
</GridColumn>
|
||||
<GridColumn xs={12} lg={8}>
|
||||
<RealtimeLog data={realtimeData} websites={websites} />
|
||||
<RealtimeLog websiteId={websiteId} data={realtimeData} websites={websites} />
|
||||
</GridColumn>
|
||||
</GridRow>
|
||||
<GridRow>
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
"label.add-account": "Tilføj konto",
|
||||
"label.add-website": "Tilføj hjemmeside",
|
||||
"label.administrator": "Administrator",
|
||||
"label.all": "All",
|
||||
"label.all-websites": "All websites",
|
||||
"label.all": "Alle",
|
||||
"label.all-websites": "Alle websites",
|
||||
"label.back": "Tilbage",
|
||||
"label.cancel": "Afvis",
|
||||
"label.change-password": "Skift adgangskode",
|
||||
|
@ -14,11 +14,11 @@
|
|||
"label.custom-range": "Tilpasset interval",
|
||||
"label.dashboard": "Betjeningspanel",
|
||||
"label.date-range": "Datointerval",
|
||||
"label.default-date-range": "Default date range",
|
||||
"label.default-date-range": "Standard datointerval",
|
||||
"label.delete": "Slet",
|
||||
"label.delete-account": "Slet konto",
|
||||
"label.delete-website": "Slet hjemmeside",
|
||||
"label.dismiss": "Dismiss",
|
||||
"label.dismiss": "Afvis",
|
||||
"label.domain": "Domæne",
|
||||
"label.edit": "Rediger",
|
||||
"label.edit-account": "Rediger konto",
|
||||
|
@ -37,8 +37,8 @@
|
|||
"label.password": "Adgangskode",
|
||||
"label.passwords-dont-match": "Adgangskoder matcher ikke",
|
||||
"label.profile": "Profil",
|
||||
"label.realtime": "Realtime",
|
||||
"label.realtime-logs": "Realtime logs",
|
||||
"label.realtime": "Realtid",
|
||||
"label.realtime-logs": "Realtid logs",
|
||||
"label.refresh": "Opdater",
|
||||
"label.required": "Påkrævet",
|
||||
"label.reset": "Reset",
|
||||
|
@ -49,7 +49,7 @@
|
|||
"label.this-month": "Denne måned",
|
||||
"label.this-week": "Denne uge",
|
||||
"label.this-year": "Dette år",
|
||||
"label.timezone": "Timezone",
|
||||
"label.timezone": "Tidszone",
|
||||
"label.today": "Idag",
|
||||
"label.tracking-code": "Sporingskode",
|
||||
"label.unknown": "Ukendt",
|
||||
|
@ -65,8 +65,8 @@
|
|||
"message.get-tracking-code": "Få sporingskode",
|
||||
"message.go-to-settings": "Gå til betjeningspanel",
|
||||
"message.incorrect-username-password": "Ugyldigt brugernavn/adgangskode.",
|
||||
"message.log.visitor": "Visitor from {country} using {browser} on {os} {device}",
|
||||
"message.new-version-available": "A new version of umami {version} is available!",
|
||||
"message.log.visitor": "Besøgende fra {country} bruger {browser} på {os} {device}",
|
||||
"message.new-version-available": "Ny udgave af Umami {version} er tilgængelig!",
|
||||
"message.no-data-available": "Ingen data tilgængelig.",
|
||||
"message.no-websites-configured": "Du har ikke konfigureret nogen websteder.",
|
||||
"message.page-not-found": "Side ikke fundet.",
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
"label.add-account": "Lisää tili",
|
||||
"label.add-website": "Lisää verkkosivu",
|
||||
"label.administrator": "Järjestelmänvalvoja",
|
||||
"label.all": "All",
|
||||
"label.all-websites": "All websites",
|
||||
"label.all": "Kaikki",
|
||||
"label.all-websites": "Kaikki verkkosivut",
|
||||
"label.back": "Takaisin",
|
||||
"label.cancel": "Peruuta",
|
||||
"label.change-password": "Vaihda salasana",
|
||||
|
@ -12,7 +12,7 @@
|
|||
"label.copy-to-clipboard": "Kopioi leikepöydälle",
|
||||
"label.current-password": "Nykyinen salasana",
|
||||
"label.custom-range": "Mukautettu jakso",
|
||||
"label.dashboard": "Dashboard",
|
||||
"label.dashboard": "Ohjauspaneeli",
|
||||
"label.date-range": "Ajanjakso",
|
||||
"label.default-date-range": "Oletusajanjakso",
|
||||
"label.delete": "Poista",
|
||||
|
@ -37,8 +37,8 @@
|
|||
"label.password": "Salasana",
|
||||
"label.passwords-dont-match": "Salasanat eivät täsmää",
|
||||
"label.profile": "Profiili",
|
||||
"label.realtime": "Realtime",
|
||||
"label.realtime-logs": "Realtime logs",
|
||||
"label.realtime": "Reaaliaikainen",
|
||||
"label.realtime-logs": "Reaaliaikaiset lokit",
|
||||
"label.refresh": "Päivitä",
|
||||
"label.required": "Vaaditaan",
|
||||
"label.reset": "Nollaa",
|
||||
|
@ -65,7 +65,7 @@
|
|||
"message.get-tracking-code": "Hanki seurantakoodi",
|
||||
"message.go-to-settings": "Mene asetuksiin",
|
||||
"message.incorrect-username-password": "Väärä käyttäjänimi/salasana.",
|
||||
"message.log.visitor": "Visitor from {country} using {browser} on {os} {device}",
|
||||
"message.log.visitor": "Vierailija maasta {country} käyttäen selainta {browser} {os}-laitteella: {device}",
|
||||
"message.new-version-available": "Uusi versio umamista {version} on käytettävissä!",
|
||||
"message.no-data-available": "Tietoja ei ole käytettävissä.",
|
||||
"message.no-websites-configured": "Sinulla ei ole määritettyjä verkkosivustoja.",
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
"label.add-account": "アカウントの追加",
|
||||
"label.add-website": "Webサイトの追加",
|
||||
"label.administrator": "管理者",
|
||||
"label.all": "All",
|
||||
"label.all-websites": "All websites",
|
||||
"label.all": "すべて表示",
|
||||
"label.all-websites": "すべてのWebサイト",
|
||||
"label.back": "戻る",
|
||||
"label.cancel": "キャンセル",
|
||||
"label.change-password": "パスワード変更",
|
||||
|
@ -13,7 +13,7 @@
|
|||
"label.current-password": "現在のパスワード",
|
||||
"label.custom-range": "期間を指定する",
|
||||
"label.dashboard": "ダッシュボード",
|
||||
"label.date-range": "日付範囲",
|
||||
"label.date-range": "範囲指定",
|
||||
"label.default-date-range": "最初に表示する期間",
|
||||
"label.delete": "削除",
|
||||
"label.delete-account": "アカウントの削除",
|
||||
|
@ -37,8 +37,8 @@
|
|||
"label.password": "パスワード",
|
||||
"label.passwords-dont-match": "パスワードが一致しません",
|
||||
"label.profile": "プロファイル",
|
||||
"label.realtime": "Realtime",
|
||||
"label.realtime-logs": "Realtime logs",
|
||||
"label.realtime": "リアルタイム",
|
||||
"label.realtime-logs": "リアルタイムログ",
|
||||
"label.refresh": "更新",
|
||||
"label.required": "必須",
|
||||
"label.reset": "リセット",
|
||||
|
@ -70,7 +70,7 @@
|
|||
"message.no-data-available": "データがありません。",
|
||||
"message.no-websites-configured": "Webサイトが設定されていません。",
|
||||
"message.page-not-found": "ページが見つかりません。",
|
||||
"message.powered-by": "Powered by {name}",
|
||||
"message.powered-by": "このシステムは {name} で実行されています。",
|
||||
"message.save-success": "正常に保存されました。",
|
||||
"message.share-url": "これは {target} の共有リンクです。",
|
||||
"message.track-stats": "{target}のアクセス解析を開始するには、次のコードをWebサイトの{head}セクションへ追加してください。",
|
||||
|
|
|
@ -0,0 +1,99 @@
|
|||
{
|
||||
"label.accounts": "Konta",
|
||||
"label.add-account": "Dodaj konto",
|
||||
"label.add-website": "Dodaj witrynę",
|
||||
"label.administrator": "Administrator",
|
||||
"label.all": "Wszystkie",
|
||||
"label.all-websites": "Wszystkie witryny",
|
||||
"label.back": "Powrót",
|
||||
"label.cancel": "Anuluj",
|
||||
"label.change-password": "Zmień hasło",
|
||||
"label.confirm-password": "Potwierdź hasło",
|
||||
"label.copy-to-clipboard": "Skopiuj do schowka",
|
||||
"label.current-password": "Aktualne hasło",
|
||||
"label.custom-range": "Zakres niestandardowy",
|
||||
"label.dashboard": "Dashboard",
|
||||
"label.date-range": "Zakres dat",
|
||||
"label.default-date-range": "Domyślny zakres dat",
|
||||
"label.delete": "Usuń",
|
||||
"label.delete-account": "Usuń konto",
|
||||
"label.delete-website": "Usuń witrynę",
|
||||
"label.dismiss": "Odrzuć",
|
||||
"label.domain": "Domena",
|
||||
"label.edit": "Edytuj",
|
||||
"label.edit-account": "Edytuj konto",
|
||||
"label.edit-website": "Edytuj witrynę",
|
||||
"label.enable-share-url": "Włącz udostępnianie adresu URL",
|
||||
"label.invalid": "Nieprawidłowy",
|
||||
"label.invalid-domain": "Nieprawidłowa witryna",
|
||||
"label.last-days": "Ostatnie {x} dni",
|
||||
"label.last-hours": "Ostatnie {x} godzin",
|
||||
"label.logged-in-as": "Zalogowano jako {username}",
|
||||
"label.login": "Zaloguj sie",
|
||||
"label.logout": "Wyloguj",
|
||||
"label.more": "Więcej",
|
||||
"label.name": "Name",
|
||||
"label.new-password": "Nowe hasło",
|
||||
"label.password": "Hasło",
|
||||
"label.passwords-dont-match": "Hasła się nie zgadzają",
|
||||
"label.profile": "Profil",
|
||||
"label.realtime": "Czas rzeczywisty",
|
||||
"label.realtime-logs": "Logi w czasie rzeczywistym",
|
||||
"label.refresh": "Odśwież",
|
||||
"label.required": "Wymagany",
|
||||
"label.reset": "Zresetuj",
|
||||
"label.save": "Zapisz",
|
||||
"label.settings": "Ustawienia",
|
||||
"label.share-url": "Udostępnij adres URL",
|
||||
"label.single-day": "W tym dniu",
|
||||
"label.this-month": "W tym miesiącu",
|
||||
"label.this-week": "W tym tygodniu",
|
||||
"label.this-year": "W tym roku",
|
||||
"label.timezone": "Strefa czasowa",
|
||||
"label.today": "Dzisiaj",
|
||||
"label.tracking-code": "Kod śledzenia",
|
||||
"label.unknown": "Nieznany",
|
||||
"label.username": "Nazwa użytkownika",
|
||||
"label.view-details": "Pokaż szczegóły",
|
||||
"label.websites": "Witryny",
|
||||
"message.active-users": "{x} aktualnie {x, plural, one {odwiedzający} other {odwiedzających}}",
|
||||
"message.confirm-delete": "Czy na pewno chcesz usunąć {target}?",
|
||||
"message.copied": "Skopiowano!",
|
||||
"message.delete-warning": "Wszystkie powiązane dane również zostaną usunięte.",
|
||||
"message.failure": "Coś poszło nie tak.",
|
||||
"message.get-share-url": "Uzyskaj adres URL udostępniania",
|
||||
"message.get-tracking-code": "Pobierz kod śledzenia",
|
||||
"message.go-to-settings": "Przejdź do ustawień",
|
||||
"message.incorrect-username-password": "Nieprawidłowa nazwa użytkownika/hasło.",
|
||||
"message.log.visitor": "Odwiedzający z {country} używa {browser} na {os} {device}",
|
||||
"message.new-version-available": "Nowa wersja umami {version} jest dostępna!",
|
||||
"message.no-data-available": "Brak dostępnych danych.",
|
||||
"message.no-websites-configured": "Nie masz skonfigurowanych żadnych witryn internetowych.",
|
||||
"message.page-not-found": "Strona nie znaleziona.",
|
||||
"message.powered-by": "Obsługiwane przez {name}",
|
||||
"message.save-success": "Zapisano pomyślnie.",
|
||||
"message.share-url": "To jest publicznie udostępniany adres URL dla {target}.",
|
||||
"message.track-stats": "Aby śledzić statystyki dla {target}, umieść poniższy kod w sekcji {head} swojej witryny.",
|
||||
"message.type-delete": "Wpisz {delete} w polu poniżej, aby potwierdzić.",
|
||||
"metrics.actions": "Działania",
|
||||
"metrics.average-visit-time": "Średni czas wizyty",
|
||||
"metrics.bounce-rate": "Współczynnik odrzuceń",
|
||||
"metrics.browsers": "Przeglądarki",
|
||||
"metrics.countries": "Kraje",
|
||||
"metrics.device.desktop": "Komputer",
|
||||
"metrics.device.laptop": "Laptop",
|
||||
"metrics.device.mobile": "Smartfon",
|
||||
"metrics.device.tablet": "Tablet",
|
||||
"metrics.devices": "Urządzenia",
|
||||
"metrics.events": "Zdarzenia",
|
||||
"metrics.filter.combined": "Połączone",
|
||||
"metrics.filter.domain-only": "Tylko domena",
|
||||
"metrics.filter.raw": "Surowe dane",
|
||||
"metrics.operating-systems": "System operacyjny",
|
||||
"metrics.page-views": "Wyświetlenia strony",
|
||||
"metrics.pages": "Strony",
|
||||
"metrics.referrers": "Źródła odsyłające",
|
||||
"metrics.unique-visitors": "Unikalni odwiedzający",
|
||||
"metrics.views": "Wyświetlenia",
|
||||
"metrics.visitors": "Odwiedzający"
|
||||
}
|
|
@ -12,6 +12,7 @@ import {
|
|||
ja,
|
||||
nb,
|
||||
nl,
|
||||
pl,
|
||||
pt,
|
||||
ro,
|
||||
ru,
|
||||
|
@ -43,6 +44,7 @@ import idMessages from 'lang-compiled/id-ID.json';
|
|||
import ukMessages from 'lang-compiled/uk-UA.json';
|
||||
import fiMessages from 'lang-compiled/fi-FI.json';
|
||||
import csMessages from 'lang-compiled/cs-CZ.json';
|
||||
import plMessages from 'lang-compiled/pl-PL.json';
|
||||
|
||||
export const messages = {
|
||||
'en-US': enMessages,
|
||||
|
@ -67,6 +69,7 @@ export const messages = {
|
|||
'uk-UA': ukMessages,
|
||||
'fi-FI': fiMessages,
|
||||
'cs-CZ': csMessages,
|
||||
'pl-PL': plMessages,
|
||||
};
|
||||
|
||||
export const dateLocales = {
|
||||
|
@ -92,6 +95,7 @@ export const dateLocales = {
|
|||
'uk-UA': uk,
|
||||
'fi-FI': fi,
|
||||
'cs-CZ': cs,
|
||||
'pl-PL': pl,
|
||||
};
|
||||
|
||||
export const menuOptions = [
|
||||
|
@ -110,6 +114,7 @@ export const menuOptions = [
|
|||
{ label: 'Монгол', value: 'mn-MN', display: 'mn' },
|
||||
{ label: 'Nederlands', value: 'nl-NL', display: 'nl' },
|
||||
{ label: 'Norsk Bokmål', value: 'nb-NO', display: 'nb' },
|
||||
{ label: 'Polski', value: 'pl-PL', display: 'pl' },
|
||||
{ label: 'Português', value: 'pt-PT', display: 'pt' },
|
||||
{ label: 'Русский', value: 'ru-RU', display: 'ru' },
|
||||
{ label: 'Română', value: 'ro-RO', display: 'ro' },
|
||||
|
|
52
package.json
52
package.json
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "umami",
|
||||
"version": "1.2.0",
|
||||
"version": "1.5.0",
|
||||
"description": "A simple, fast, website analytics alternative to Google Analytics. ",
|
||||
"author": "Mike Cao <mike@mikecao.com>",
|
||||
"license": "MIT",
|
||||
|
@ -56,11 +56,11 @@
|
|||
}
|
||||
},
|
||||
"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",
|
||||
|
@ -68,24 +68,24 @@
|
|||
"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",
|
||||
|
@ -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",
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
|||
{"AF":"Afganistan","AL":"Albania","DZ":"Algieria","AD":"Andora","AO":"Angola","AI":"Anguilla","AQ":"Antarktyda","AG":"Antigua i Barbuda","SA":"Arabia Saudyjska","AR":"Argentyna","AM":"Armenia","AW":"Aruba","AU":"Australia","AT":"Austria","AZ":"Azerbejd\u017can","BS":"Bahamy","BH":"Bahrajn","BD":"Bangladesz","BB":"Barbados","BE":"Belgia","BZ":"Belize","BJ":"Benin","BM":"Bermudy","BT":"Bhutan","BY":"Bia\u0142oru\u015b","BO":"Boliwia","BA":"Bo\u015bnia i Hercegowina","BW":"Botswana","BR":"Brazylia","BN":"Brunei","IO":"Brytyjskie Terytorium Oceanu Indyjskiego","VG":"Brytyjskie Wyspy Dziewicze","BG":"Bu\u0142garia","BF":"Burkina Faso","BI":"Burundi","CL":"Chile","CN":"Chiny","HR":"Chorwacja","CI":"C\u00f4te d\u2019Ivoire","CW":"Cura\u00e7ao","CY":"Cypr","TD":"Czad","ME":"Czarnog\u00f3ra","CZ":"Czechy","UM":"Dalekie Wyspy Mniejsze Stan\u00f3w Zjednoczonych","DK":"Dania","CD":"Demokratyczna Republika Konga","DM":"Dominika","DO":"Dominikana","DJ":"D\u017cibuti","EG":"Egipt","EC":"Ekwador","ER":"Erytrea","EE":"Estonia","SZ":"Eswatini","ET":"Etiopia","FK":"Falklandy","FJ":"Fid\u017ci","PH":"Filipiny","FI":"Finlandia","FR":"Francja","TF":"Francuskie Terytoria Po\u0142udniowe i Antarktyczne","GA":"Gabon","GM":"Gambia","GS":"Georgia Po\u0142udniowa i Sandwich Po\u0142udniowy","GH":"Ghana","GI":"Gibraltar","GR":"Grecja","GD":"Grenada","GL":"Grenlandia","GE":"Gruzja","GU":"Guam","GG":"Guernsey","GY":"Gujana","GF":"Gujana Francuska","GP":"Gwadelupa","GT":"Gwatemala","GN":"Gwinea","GW":"Gwinea Bissau","GQ":"Gwinea R\u00f3wnikowa","HT":"Haiti","ES":"Hiszpania","NL":"Holandia","HN":"Honduras","IN":"Indie","ID":"Indonezja","IQ":"Irak","IR":"Iran","IE":"Irlandia","IS":"Islandia","IL":"Izrael","JM":"Jamajka","JP":"Japonia","YE":"Jemen","JE":"Jersey","JO":"Jordania","KY":"Kajmany","KH":"Kambod\u017ca","CM":"Kamerun","CA":"Kanada","QA":"Katar","KZ":"Kazachstan","KE":"Kenia","KG":"Kirgistan","KI":"Kiribati","CO":"Kolumbia","KM":"Komory","CG":"Kongo","KR":"Korea Po\u0142udniowa","KP":"Korea P\u00f3\u0142nocna","CR":"Kostaryka","CU":"Kuba","KW":"Kuwejt","LA":"Laos","LS":"Lesotho","LB":"Liban","LR":"Liberia","LY":"Libia","LI":"Liechtenstein","LT":"Litwa","LU":"Luksemburg","LV":"\u0141otwa","MK":"Macedonia P\u00f3\u0142nocna","MG":"Madagaskar","YT":"Majotta","MW":"Malawi","MV":"Malediwy","MY":"Malezja","ML":"Mali","MT":"Malta","MP":"Mariany P\u00f3\u0142nocne","MA":"Maroko","MQ":"Martynika","MR":"Mauretania","MU":"Mauritius","MX":"Meksyk","FM":"Mikronezja","MM":"Mjanma (Birma)","MD":"Mo\u0142dawia","MC":"Monako","MN":"Mongolia","MS":"Montserrat","MZ":"Mozambik","NA":"Namibia","NR":"Nauru","NP":"Nepal","BQ":"Niderlandy Karaibskie","DE":"Niemcy","NE":"Niger","NG":"Nigeria","NI":"Nikaragua","NU":"Niue","NF":"Norfolk","NO":"Norwegia","NC":"Nowa Kaledonia","NZ":"Nowa Zelandia","OM":"Oman","PK":"Pakistan","PW":"Palau","PA":"Panama","PG":"Papua-Nowa Gwinea","PY":"Paragwaj","PE":"Peru","PN":"Pitcairn","PF":"Polinezja Francuska","PL":"Polska","PR":"Portoryko","PT":"Portugalia","ZA":"Republika Po\u0142udniowej Afryki","CF":"Republika \u015arodkowoafryka\u0144ska","CV":"Republika Zielonego Przyl\u0105dka","RE":"Reunion","RU":"Rosja","RO":"Rumunia","RW":"Rwanda","EH":"Sahara Zachodnia","KN":"Saint Kitts i Nevis","LC":"Saint Lucia","VC":"Saint Vincent i Grenadyny","BL":"Saint-Barth\u00e9lemy","MF":"Saint-Martin","PM":"Saint-Pierre i Miquelon","SV":"Salwador","WS":"Samoa","AS":"Samoa Ameryka\u0144skie","SM":"San Marino","SN":"Senegal","RS":"Serbia","SC":"Seszele","SL":"Sierra Leone","SG":"Singapur","SX":"Sint Maarten","SK":"S\u0142owacja","SI":"S\u0142owenia","SO":"Somalia","HK":"SRA Hongkong (Chiny)","MO":"SRA Makau (Chiny)","LK":"Sri Lanka","US":"Stany Zjednoczone","SD":"Sudan","SS":"Sudan Po\u0142udniowy","SR":"Surinam","SJ":"Svalbard i Jan Mayen","SY":"Syria","CH":"Szwajcaria","SE":"Szwecja","TJ":"Tad\u017cykistan","TH":"Tajlandia","TW":"Tajwan","TZ":"Tanzania","PS":"Terytoria Palesty\u0144skie","TL":"Timor Wschodni","TG":"Togo","TK":"Tokelau","TO":"Tonga","TT":"Trynidad i Tobago","TN":"Tunezja","TR":"Turcja","TM":"Turkmenistan","TC":"Turks i Caicos","TV":"Tuvalu","UG":"Uganda","UA":"Ukraina","UY":"Urugwaj","UZ":"Uzbekistan","VU":"Vanuatu","WF":"Wallis i Futuna","VA":"Watykan","VE":"Wenezuela","HU":"W\u0119gry","GB":"Wielka Brytania","VN":"Wietnam","IT":"W\u0142ochy","BV":"Wyspa Bouveta","CX":"Wyspa Bo\u017cego Narodzenia","IM":"Wyspa Man","SH":"Wyspa \u015awi\u0119tej Heleny","AX":"Wyspy Alandzkie","CK":"Wyspy Cooka","VI":"Wyspy Dziewicze Stan\u00f3w Zjednoczonych","HM":"Wyspy Heard i McDonalda","CC":"Wyspy Kokosowe","MH":"Wyspy Marshalla","FO":"Wyspy Owcze","SB":"Wyspy Salomona","ST":"Wyspy \u015awi\u0119tego Tomasza i Ksi\u0105\u017c\u0119ca","ZM":"Zambia","ZW":"Zimbabwe","AE":"Zjednoczone Emiraty Arabskie"}
|
File diff suppressed because one or more lines are too long
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ import { removeTrailingSlash } from '../lib/url';
|
|||
screen: { width, height },
|
||||
navigator: { language },
|
||||
location: { hostname, pathname, search },
|
||||
localStorage,
|
||||
sessionStorage,
|
||||
document,
|
||||
history,
|
||||
|
@ -24,6 +25,7 @@ import { removeTrailingSlash } from '../lib/url';
|
|||
const domains = attr('data-domains');
|
||||
|
||||
const disableTracking =
|
||||
localStorage.getItem('umami.disabled') ||
|
||||
(dnt && doNotTrack()) ||
|
||||
(domains &&
|
||||
!domains
|
||||
|
|
Loading…
Reference in New Issue