commit
0d897e957a
|
@ -1,6 +1,8 @@
|
|||
{
|
||||
"label.accounts": "Konta",
|
||||
"label.add-account": "Dodaj konto",
|
||||
"label.add-column": "Dodaj kolumnę",
|
||||
"label.add-filter": "Dodaj filtr",
|
||||
"label.add-website": "Dodaj witrynę",
|
||||
"label.administrator": "Administrator",
|
||||
"label.all": "Wszystkie",
|
||||
|
@ -25,6 +27,8 @@
|
|||
"label.edit-account": "Edytuj konto",
|
||||
"label.edit-website": "Edytuj witrynę",
|
||||
"label.enable-share-url": "Włącz udostępnianie adresu URL",
|
||||
"label.event-data": "Dane zdarzenia",
|
||||
"label.field-name": "Nazwa pola",
|
||||
"label.invalid": "Nieprawidłowy",
|
||||
"label.invalid-domain": "Nieprawidłowa witryna",
|
||||
"label.language": "Język",
|
||||
|
@ -36,7 +40,7 @@
|
|||
"label.more": "Więcej",
|
||||
"label.name": "Nazwa",
|
||||
"label.new-password": "Nowe hasło",
|
||||
"label.none": "None",
|
||||
"label.none": "Brak",
|
||||
"label.owner": "Właściciel",
|
||||
"label.password": "Hasło",
|
||||
"label.passwords-dont-match": "Hasła się nie zgadzają",
|
||||
|
@ -48,6 +52,7 @@
|
|||
"label.reset": "Zresetuj",
|
||||
"label.reset-website": "Zresetuj statystyki",
|
||||
"label.save": "Zapisz",
|
||||
"label.search": "Szukaj",
|
||||
"label.settings": "Ustawienia",
|
||||
"label.share-url": "Udostępnij adres URL",
|
||||
"label.single-day": "W tym dniu",
|
||||
|
@ -58,16 +63,19 @@
|
|||
"label.timezone": "Strefa czasowa",
|
||||
"label.today": "Dzisiaj",
|
||||
"label.tracking-code": "Kod śledzenia",
|
||||
"label.type": "Typ",
|
||||
"label.unknown": "Nieznany",
|
||||
"label.username": "Nazwa użytkownika",
|
||||
"label.value": "Wartość",
|
||||
"label.view-details": "Pokaż szczegóły",
|
||||
"label.websites": "Witryny",
|
||||
"label.yesterday": "Wczoraj",
|
||||
"message.active-users": "{x} aktualnie {x, plural, one {odwiedzający} other {odwiedzających}}",
|
||||
"message.confirm-delete": "Czy na pewno chcesz usunąć {target}?",
|
||||
"message.confirm-reset": "Czy na pewno chcesz zresetować statystyki {target}?",
|
||||
"message.copied": "Skopiowano!",
|
||||
"message.delete-warning": "Wszystkie powiązane dane również zostaną usunięte.",
|
||||
"message.edit-dashboard": "Edit dashboard",
|
||||
"message.edit-dashboard": "Edytuj panel",
|
||||
"message.failure": "Coś poszło nie tak.",
|
||||
"message.get-share-url": "Uzyskaj adres URL udostępniania",
|
||||
"message.get-tracking-code": "Pobierz kod śledzenia",
|
||||
|
@ -103,7 +111,7 @@
|
|||
"metrics.operating-systems": "System operacyjny",
|
||||
"metrics.page-views": "Wyświetlenia strony",
|
||||
"metrics.pages": "Strony",
|
||||
"metrics.query-parameters": "Query parameters",
|
||||
"metrics.query-parameters": "Parametry query",
|
||||
"metrics.referrers": "Źródła odsyłające",
|
||||
"metrics.screens": "Ekrany",
|
||||
"metrics.unique-visitors": "Unikalni odwiedzający",
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
[functions]
|
||||
included_files = ["node_modules/.geo/**"]
|
||||
|
||||
[[plugins]]
|
||||
package = "@netlify/plugin-nextjs"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "umami",
|
||||
"version": "1.39.3",
|
||||
"version": "1.39.4",
|
||||
"description": "A simple, fast, privacy-focused alternative to Google Analytics.",
|
||||
"author": "Mike Cao <mike@mikecao.com>",
|
||||
"license": "MIT",
|
||||
|
@ -106,6 +106,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@formatjs/cli": "^4.2.29",
|
||||
"@netlify/plugin-nextjs": "^4.27.3",
|
||||
"@rollup/plugin-buble": "^0.21.3",
|
||||
"@rollup/plugin-replace": "^4.0.0",
|
||||
"@svgr/webpack": "^6.2.1",
|
||||
|
|
|
@ -43,7 +43,7 @@ export default async (req, res) => {
|
|||
const accountByUsername = await getAccount({ username });
|
||||
|
||||
if (accountByUsername) {
|
||||
return badRequest(res, 'Account already exists');
|
||||
return badRequest(res, 'Account already exists.');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -53,11 +53,15 @@ export default async (req, res) => {
|
|||
}
|
||||
|
||||
if (req.method === 'DELETE') {
|
||||
if (id === userId) {
|
||||
return badRequest(res, 'You cannot delete your own account.');
|
||||
}
|
||||
|
||||
if (!isAdmin) {
|
||||
return unauthorized(res);
|
||||
}
|
||||
|
||||
await deleteAccount(userId);
|
||||
await deleteAccount(+id);
|
||||
|
||||
return ok(res);
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@ export default async (req, res) => {
|
|||
if (req.method === 'POST') {
|
||||
const { name, domain, owner, enableShareUrl, shareId } = req.body;
|
||||
const { accountUuid } = req.auth;
|
||||
|
||||
let account;
|
||||
|
||||
if (accountUuid) {
|
||||
|
@ -43,7 +44,7 @@ export default async (req, res) => {
|
|||
name,
|
||||
domain,
|
||||
shareId: shareId ? shareId : newShareId,
|
||||
userId: account ? account.id : +owner || undefined,
|
||||
userId: +owner || account.id,
|
||||
},
|
||||
{ websiteUuid },
|
||||
);
|
||||
|
|
|
@ -11,6 +11,18 @@
|
|||
"value": "Dodaj konto"
|
||||
}
|
||||
],
|
||||
"label.add-column": [
|
||||
{
|
||||
"type": 0,
|
||||
"value": "Dodaj kolumnę"
|
||||
}
|
||||
],
|
||||
"label.add-filter": [
|
||||
{
|
||||
"type": 0,
|
||||
"value": "Dodaj filtr"
|
||||
}
|
||||
],
|
||||
"label.add-website": [
|
||||
{
|
||||
"type": 0,
|
||||
|
@ -155,6 +167,18 @@
|
|||
"value": "Włącz udostępnianie adresu URL"
|
||||
}
|
||||
],
|
||||
"label.event-data": [
|
||||
{
|
||||
"type": 0,
|
||||
"value": "Dane zdarzenia"
|
||||
}
|
||||
],
|
||||
"label.field-name": [
|
||||
{
|
||||
"type": 0,
|
||||
"value": "Nazwa pola"
|
||||
}
|
||||
],
|
||||
"label.invalid": [
|
||||
{
|
||||
"type": 0,
|
||||
|
@ -244,7 +268,7 @@
|
|||
"label.none": [
|
||||
{
|
||||
"type": 0,
|
||||
"value": "None"
|
||||
"value": "Brak"
|
||||
}
|
||||
],
|
||||
"label.owner": [
|
||||
|
@ -313,6 +337,12 @@
|
|||
"value": "Zapisz"
|
||||
}
|
||||
],
|
||||
"label.search": [
|
||||
{
|
||||
"type": 0,
|
||||
"value": "Szukaj"
|
||||
}
|
||||
],
|
||||
"label.settings": [
|
||||
{
|
||||
"type": 0,
|
||||
|
@ -373,6 +403,12 @@
|
|||
"value": "Kod śledzenia"
|
||||
}
|
||||
],
|
||||
"label.type": [
|
||||
{
|
||||
"type": 0,
|
||||
"value": "Typ"
|
||||
}
|
||||
],
|
||||
"label.unknown": [
|
||||
{
|
||||
"type": 0,
|
||||
|
@ -385,6 +421,12 @@
|
|||
"value": "Nazwa użytkownika"
|
||||
}
|
||||
],
|
||||
"label.value": [
|
||||
{
|
||||
"type": 0,
|
||||
"value": "Wartość"
|
||||
}
|
||||
],
|
||||
"label.view-details": [
|
||||
{
|
||||
"type": 0,
|
||||
|
@ -397,6 +439,12 @@
|
|||
"value": "Witryny"
|
||||
}
|
||||
],
|
||||
"label.yesterday": [
|
||||
{
|
||||
"type": 0,
|
||||
"value": "Wczoraj"
|
||||
}
|
||||
],
|
||||
"message.active-users": [
|
||||
{
|
||||
"type": 1,
|
||||
|
@ -474,7 +522,7 @@
|
|||
"message.edit-dashboard": [
|
||||
{
|
||||
"type": 0,
|
||||
"value": "Edit dashboard"
|
||||
"value": "Edytuj panel"
|
||||
}
|
||||
],
|
||||
"message.failure": [
|
||||
|
@ -770,7 +818,7 @@
|
|||
"metrics.query-parameters": [
|
||||
{
|
||||
"type": 0,
|
||||
"value": "Query parameters"
|
||||
"value": "Parametry query"
|
||||
}
|
||||
],
|
||||
"metrics.referrers": [
|
||||
|
|
Loading…
Reference in New Issue