Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
b5acf15877 | |||
f62603fd9d | |||
d000b9e7cd | |||
0e1f858dfd | |||
bcf28282f6 | |||
abfbb068d7 | |||
9643a87320 | |||
b3817240b8 | |||
8d53f8639e |
@ -1,9 +1,15 @@
|
|||||||
|
const chalk = require('chalk');
|
||||||
|
const log = require('single-line-log').stdout;
|
||||||
const sequential = require('promise-sequential');
|
const sequential = require('promise-sequential');
|
||||||
const { default: DriveFile, deleteDriveFile } = require('../built/models/drive-file');
|
const { default: DriveFile, deleteDriveFile } = require('../built/models/drive-file');
|
||||||
const { default: Note } = require('../built/models/note');
|
const { default: Note } = require('../built/models/note');
|
||||||
const { default: MessagingMessage } = require('../built/models/messaging-message');
|
const { default: MessagingMessage } = require('../built/models/messaging-message');
|
||||||
const { default: User } = require('../built/models/user');
|
const { default: User } = require('../built/models/user');
|
||||||
|
|
||||||
|
const args = process.argv.slice(2);
|
||||||
|
|
||||||
|
const skip = parseInt(args[0] || '0', 10);
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
const promiseGens = [];
|
const promiseGens = [];
|
||||||
|
|
||||||
@ -11,46 +17,68 @@ async function main() {
|
|||||||
|
|
||||||
let prev;
|
let prev;
|
||||||
|
|
||||||
for (let i = 0; i < count; i++) {
|
for (let i = skip; i < count; i++) {
|
||||||
promiseGens.push(() => new Promise(async (res, rej) => {
|
promiseGens.push(() => {
|
||||||
const file = await DriveFile.findOne(prev ? {
|
const promise = new Promise(async (res, rej) => {
|
||||||
_id: { $gt: prev._id }
|
function skip() {
|
||||||
} : {}, {
|
res([i, file, false]);
|
||||||
sort: {
|
|
||||||
_id: 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const file = await DriveFile.findOne(prev ? {
|
||||||
|
_id: { $lt: prev._id }
|
||||||
|
} : {}, {
|
||||||
|
sort: {
|
||||||
|
_id: -1
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
prev = file;
|
||||||
|
|
||||||
|
if (file == null) return skip();
|
||||||
|
|
||||||
|
log(chalk`{gray ${i}} scanning {bold ${file._id}} ${file.filename} ...`);
|
||||||
|
|
||||||
|
const attachingUsersCount = await User.count({
|
||||||
|
$or: [{
|
||||||
|
avatarId: file._id
|
||||||
|
}, {
|
||||||
|
bannerId: file._id
|
||||||
|
}]
|
||||||
|
}, { limit: 1 });
|
||||||
|
if (attachingUsersCount !== 0) return skip();
|
||||||
|
|
||||||
|
const attachingNotesCount = await Note.count({
|
||||||
|
mediaIds: file._id
|
||||||
|
}, { limit: 1 });
|
||||||
|
if (attachingNotesCount !== 0) return skip();
|
||||||
|
|
||||||
|
const attachingMessagesCount = await MessagingMessage.count({
|
||||||
|
fileId: file._id
|
||||||
|
}, { limit: 1 });
|
||||||
|
if (attachingMessagesCount !== 0) return skip();
|
||||||
|
|
||||||
|
deleteDriveFile(file).then(() => {
|
||||||
|
res([i, file, true]);
|
||||||
|
}).catch(rej);
|
||||||
});
|
});
|
||||||
|
|
||||||
prev = file;
|
promise.then(([i, file, deleted]) => {
|
||||||
|
if (deleted) {
|
||||||
|
log(chalk`{gray ${i}} {red deleted: {bold ${file._id}} ${file.filename}}`);
|
||||||
|
} else {
|
||||||
|
log(chalk`{gray ${i}} {green skipped: {bold ${file._id}} ${file.filename}}`);
|
||||||
|
}
|
||||||
|
log.clear();
|
||||||
|
console.log();
|
||||||
|
});
|
||||||
|
|
||||||
console.log(`scanning ${file._id}`);
|
return promise;
|
||||||
|
});
|
||||||
const attachingUsersCount = await User.count({
|
|
||||||
$or: [{
|
|
||||||
avatarId: file._id
|
|
||||||
}, {
|
|
||||||
bannerId: file._id
|
|
||||||
}]
|
|
||||||
}, { limit: 1 });
|
|
||||||
if (attachingUsersCount !== 0) return res();
|
|
||||||
|
|
||||||
const attachingNotesCount = await Note.count({
|
|
||||||
mediaIds: file._id
|
|
||||||
}, { limit: 1 });
|
|
||||||
if (attachingNotesCount !== 0) return res();
|
|
||||||
|
|
||||||
const attachingMessagesCount = await MessagingMessage.count({
|
|
||||||
fileId: file._id
|
|
||||||
}, { limit: 1 });
|
|
||||||
if (attachingMessagesCount !== 0) return res();
|
|
||||||
|
|
||||||
console.log(`deleting ${file._id}`);
|
|
||||||
|
|
||||||
deleteDriveFile(file).then(res).catch(rej);
|
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return await sequential(promiseGens);
|
return await sequential(promiseGens);
|
||||||
}
|
}
|
||||||
|
|
||||||
main().then(console.dir).catch(console.error);
|
main().then(() => {
|
||||||
|
console.log('done');
|
||||||
|
}).catch(console.error);
|
||||||
|
@ -13,7 +13,8 @@ const native = loadLang('ja');
|
|||||||
const langs = {
|
const langs = {
|
||||||
'en': loadLang('en'),
|
'en': loadLang('en'),
|
||||||
'fr': loadLang('fr'),
|
'fr': loadLang('fr'),
|
||||||
'ja': native
|
'ja': native,
|
||||||
|
'pl': loadLang('pl')
|
||||||
};
|
};
|
||||||
|
|
||||||
Object.entries(langs).map(([, locale]) => {
|
Object.entries(langs).map(([, locale]) => {
|
||||||
|
628
locales/pl.yml
Normal file
628
locales/pl.yml
Normal file
@ -0,0 +1,628 @@
|
|||||||
|
common:
|
||||||
|
misskey: "Dziel się zawartością z innymi korzystając z Misskey."
|
||||||
|
|
||||||
|
time:
|
||||||
|
unknown: "nieznany"
|
||||||
|
future: "w przyszłości"
|
||||||
|
just_now: "teraz"
|
||||||
|
seconds_ago: "{} sek. temu"
|
||||||
|
minutes_ago: "{} min. temu"
|
||||||
|
hours_ago: "{} godz. temu"
|
||||||
|
days_ago: "{} dni temu"
|
||||||
|
weeks_ago: "{} tyg. temu"
|
||||||
|
months_ago: "{} mies. temu"
|
||||||
|
years_ago: "{} lat temu"
|
||||||
|
|
||||||
|
weekday-short:
|
||||||
|
sunday: "N"
|
||||||
|
monday: "Pn"
|
||||||
|
tuesday: "W"
|
||||||
|
wednesday: "Ś"
|
||||||
|
thursday: "C"
|
||||||
|
friday: "P"
|
||||||
|
satruday: "S"
|
||||||
|
|
||||||
|
reactions:
|
||||||
|
like: "Lubię"
|
||||||
|
love: "Kocham"
|
||||||
|
laugh: "Śmieszne"
|
||||||
|
hmm: "Hmm…?"
|
||||||
|
surprise: "Wow"
|
||||||
|
congrats: "Gratuluję!"
|
||||||
|
angry: "Wściekły"
|
||||||
|
confused: "Zmieszany"
|
||||||
|
pudding: "Pudding"
|
||||||
|
|
||||||
|
delete: "Usuń"
|
||||||
|
loading: "Ładowanie"
|
||||||
|
ok: "OK"
|
||||||
|
update-available: "Nowa wersja Misskey jest dostępna ({newer}, obecna to {current}). Odśwież stronę, aby zastosować aktualizację."
|
||||||
|
my-token-regenerated: "Twój token został wygenerowany. Zostaniesz wylogowany."
|
||||||
|
|
||||||
|
common/views/components/connect-failed.vue:
|
||||||
|
title: "Nie udało się połączyć z serwerem"
|
||||||
|
description: "Wystąpił problem z Twoim połączeniem z Internetem, lub z serwerem. {Spróbuj ponownie} wkrótce."
|
||||||
|
thanks: "Dziękujemy za korzystanie z Misskey."
|
||||||
|
troubleshoot: "Rozwiązywanie problemów"
|
||||||
|
|
||||||
|
common/views/components/connect-failed.troubleshooter.vue:
|
||||||
|
title: "Rozwiązywanie problemów"
|
||||||
|
network: "Połączenie z siecią"
|
||||||
|
checking-network: "Sprawdzanie połączenia sieciowego"
|
||||||
|
internet: "Połączenie z Internetem"
|
||||||
|
checking-internet: "Sprawdzanie połączenia z Internetem"
|
||||||
|
server: "Połączenie z serwerem"
|
||||||
|
checking-server: "Sprawdzanie połączenia z serwerem"
|
||||||
|
finding: "Wyszukiwanie problemu"
|
||||||
|
no-network: "Brak połączenia z siecią"
|
||||||
|
no-network-desc: "Upewnij się, że jesteś połączony z siecią."
|
||||||
|
no-internet: "Brak połączenia z Internetem"
|
||||||
|
no-internet-desc: "Upewnij się, że jesteś połączony z Internetem."
|
||||||
|
no-server: "Nie udało się połączyć z serwerem"
|
||||||
|
no-server-desc: "Połączenie sieciowe działa, ale nie udało się połączyć z serwerem Misskey. Możliwe że serwer nie działa lub trwają prace konserwacyjne, spróbuj ponownie później."
|
||||||
|
success: "Pomyślnie połączono z serwerem Misskey"
|
||||||
|
success-desc: "Wygląda na to, że udało się połączyć. Odśwież stronę."
|
||||||
|
flush: "Wyczyść pamięć podręczną"
|
||||||
|
set-version: "Określ wersję"
|
||||||
|
|
||||||
|
common/views/components/messaging.vue:
|
||||||
|
search-user: "Znajdź użytkownika"
|
||||||
|
you: "Ty"
|
||||||
|
no-history: "Brak historii"
|
||||||
|
|
||||||
|
common/views/components/messaging-room.vue:
|
||||||
|
empty: "Brak konwersacji"
|
||||||
|
more: "Więcej"
|
||||||
|
no-history: "Brak dalszej historii"
|
||||||
|
resize-form: "Przeciągnij aby zmienić rozmiar"
|
||||||
|
new-message: "Nowa wiadomość"
|
||||||
|
|
||||||
|
common/views/components/messaging-room.form.vue:
|
||||||
|
input-message-here: "Wprowadź wiadomość tutaj"
|
||||||
|
send: "Wyślij"
|
||||||
|
attach-from-local: "Załącz pliki z komputera"
|
||||||
|
attach-from-drive: "Załącz pliki z dysku"
|
||||||
|
|
||||||
|
common/views/components/messaging-room.message.vue:
|
||||||
|
is-read: "Przeczytano"
|
||||||
|
deleted: "Wiadomość została usunięta"
|
||||||
|
|
||||||
|
common/views/components/nav.vue:
|
||||||
|
about: "O stronie"
|
||||||
|
stats: "Statystyki"
|
||||||
|
status: "Stan"
|
||||||
|
wiki: "Wiki"
|
||||||
|
donors: "Sponsorzy"
|
||||||
|
repository: "Repozytorium"
|
||||||
|
develop: "Autorzy"
|
||||||
|
feedback: "Opinie"
|
||||||
|
|
||||||
|
common/views/components/note-menu.vue:
|
||||||
|
favorite: "Dodaj do ulubionych"
|
||||||
|
pin: "Przypnij do profilu"
|
||||||
|
|
||||||
|
common/views/components/poll.vue:
|
||||||
|
vote-to: "Zagłosuj na '{}'"
|
||||||
|
vote-count: "{} głosów"
|
||||||
|
total-users: "{} głosujących"
|
||||||
|
vote: "Zagłosuj"
|
||||||
|
show-result: "Pokaż wyniki"
|
||||||
|
voted: "Zagłosowano"
|
||||||
|
|
||||||
|
common/views/components/poll-editor.vue:
|
||||||
|
no-only-one-choice: "Musisz wprowadzić dwie lub więcej opcji."
|
||||||
|
choice-n: "Opcja {}"
|
||||||
|
remove: "Usuń tą opcję"
|
||||||
|
add: "+ Dodaj opcję"
|
||||||
|
destroy: "Usuń ankietę"
|
||||||
|
|
||||||
|
common/views/components/reaction-picker.vue:
|
||||||
|
choose-reaction: "Wybierz reakcję"
|
||||||
|
|
||||||
|
common/views/components/signin.vue:
|
||||||
|
username: "Nazwa użytkownika"
|
||||||
|
password: "Hasło"
|
||||||
|
token: "Token"
|
||||||
|
signing-in: "Logowanie…"
|
||||||
|
signin: "Zaloguj"
|
||||||
|
|
||||||
|
common/views/components/signup.vue:
|
||||||
|
username: "Nazwa użytkownika"
|
||||||
|
checking: "Sprawdzanie…"
|
||||||
|
available: "Dostępna"
|
||||||
|
unavailable: "Niedostępna"
|
||||||
|
error: "Błąd sieci"
|
||||||
|
invalid-format: "Może zawierać litery, cyfry i myślniki."
|
||||||
|
too-short: "Wprowadź przynajmniej jeden znak"
|
||||||
|
too-long: "Nazwa nie może zawierać więcej niż 20 znaków"
|
||||||
|
password: "Hasło"
|
||||||
|
password-placeholder: "Zalecamy korzystanie z hasła zawierającego przynajmniej 8 znaków."
|
||||||
|
weak-password: "Słabe"
|
||||||
|
normal-password: "Średnie"
|
||||||
|
strong-password: "Silne"
|
||||||
|
retype: "Powtórz hasło"
|
||||||
|
retype-placeholder: "Potwierdź hasło"
|
||||||
|
password-matched: "OK"
|
||||||
|
password-not-matched: "Hasła nie zgadzają się"
|
||||||
|
recaptcha: "Weryfikacja"
|
||||||
|
create: "Utwórz konto"
|
||||||
|
some-error: "Nie udało się utworzyć konta. Spróbuj ponownie."
|
||||||
|
|
||||||
|
common/views/components/special-message.vue:
|
||||||
|
new-year: "Szczęśliwego nowego roku!"
|
||||||
|
christmas: "Wesołych świąt!"
|
||||||
|
|
||||||
|
common/views/components/stream-indicator.vue:
|
||||||
|
connecting: "Łączenie"
|
||||||
|
reconnecting: "Ponowne łączenie"
|
||||||
|
connected: "Połączono"
|
||||||
|
|
||||||
|
common/views/components/twitter-setting.vue:
|
||||||
|
description: "Jeżeli połączysz konto Twittera z kontem Misskey, informacje z Twittera będą widoczne na Twoim profilu i będziesz mógł logować się z użyciem Twittera."
|
||||||
|
connected-to: "Jesteś połączony z tym kontem Twittera"
|
||||||
|
detail: "Szczegóły…"
|
||||||
|
reconnect: "Połącz ponownie"
|
||||||
|
connect: "Połącz z kontem Twittera"
|
||||||
|
disconnect: "Rozłącz"
|
||||||
|
|
||||||
|
common/views/components/uploader.vue:
|
||||||
|
waiting: "Oczekiwanie"
|
||||||
|
|
||||||
|
common/views/widgets/broadcast.vue:
|
||||||
|
no-broadcasts: "Brak transmisji"
|
||||||
|
have-a-nice-day: "Miłego dnia!"
|
||||||
|
next: "Dalej"
|
||||||
|
|
||||||
|
common/views/widgets/donation.vue:
|
||||||
|
title: "Dotacje"
|
||||||
|
text: "Aby utrzymywać Misskey, płacimy za domenę, serwery i nie tylko… Nie zarabiamy na tym, więc byłoby nam miło, gdybyśmy uzyskali od Ciebie dotację. Jeżeli jesteś zainteresowany, skontaktuj się z {}. Dziękujemy za wsparcie!"
|
||||||
|
|
||||||
|
common/views/widgets/photo-stream.vue:
|
||||||
|
no-photos: "Brak zdjęć"
|
||||||
|
|
||||||
|
common/views/widgets/server.vue:
|
||||||
|
title: "Informacje o serwerze"
|
||||||
|
toggle: "Przełącz widok"
|
||||||
|
|
||||||
|
desktop/views/components/activity.vue:
|
||||||
|
title: "Aktywność"
|
||||||
|
toggle: "Przełącz widok"
|
||||||
|
|
||||||
|
desktop/views/components/calendar.vue:
|
||||||
|
title: "{1} / {2}"
|
||||||
|
prev: "Poprzedni miesiąc"
|
||||||
|
next: "Następny miesiąc"
|
||||||
|
go: "Naciśnij, aby przejść"
|
||||||
|
|
||||||
|
desktop/views/components/drive-window.vue:
|
||||||
|
used: "wykorzystane"
|
||||||
|
drive: "Dysk"
|
||||||
|
|
||||||
|
desktop/views/components/drive.file.vue:
|
||||||
|
avatar: "Awatar"
|
||||||
|
banner: "Baner"
|
||||||
|
contextmenu:
|
||||||
|
rename: "Zmień nazwę"
|
||||||
|
copy-url: "Skopiuj adres"
|
||||||
|
download: "Pobierz"
|
||||||
|
else-files: "Inne"
|
||||||
|
set-as-avatar: "Ustaw jako awatar"
|
||||||
|
set-as-banner: "Ustaw jako baner"
|
||||||
|
open-in-app: "Otwórz w aplikacji"
|
||||||
|
add-app: "Dodaj aplikację"
|
||||||
|
rename-file: "Zmień nazwę pliku"
|
||||||
|
input-new-file-name: "Wprowadź nową nazwę"
|
||||||
|
copied: "Skopiowano"
|
||||||
|
copied-url-to-clipboard: "Skopiowano adres do schowka"
|
||||||
|
|
||||||
|
desktop/views/components/drive.folder.vue:
|
||||||
|
unable-to-process: "Nie udało się ukończyć działania."
|
||||||
|
circular-reference-detected: "Docelowy katalog znajduje się w katalogu, który chcesz przenieść."
|
||||||
|
unhandled-error: "Nieznany błąd"
|
||||||
|
contextmenu:
|
||||||
|
move-to-this-folder: "Przenieś do tego katalogu"
|
||||||
|
show-in-new-window: "Otwórz w nowym oknie"
|
||||||
|
rename: "Zmień nazwę"
|
||||||
|
rename-folder: "Zmień nazwę katalogu"
|
||||||
|
input-new-folder-name: "Wprowadź nową nazwę"
|
||||||
|
|
||||||
|
desktop/views/components/drive.nav-folder.vue:
|
||||||
|
drive: "Dysk"
|
||||||
|
|
||||||
|
desktop/views/components/drive.vue:
|
||||||
|
search: "Szukaj"
|
||||||
|
load-more: "Załaduj więcej"
|
||||||
|
empty-drive: "Twój dysk jest posty"
|
||||||
|
empty-drive-description: "Możesz wysłać plik klikając prawym przyciskiem myszy i wybierając \"Wyślij plik\" lub przeciągnąć plik i upuścić w tym oknie."
|
||||||
|
empty-folder: "Ten katalog jest posty"
|
||||||
|
unable-to-process: "Nie udało się dokończyć działania."
|
||||||
|
circular-reference-detected: "Ten katalog znajduje się w katalogu, który chcesz przenieść."
|
||||||
|
unhandled-error: "Nieznany błąd"
|
||||||
|
url-upload: "Wyślij z adresu"
|
||||||
|
url-of-file: "Adres URL pliku, który chcesz wysłać"
|
||||||
|
may-take-time: "Może trochę potrwać, zanim wysyłanie zostanie ukończone."
|
||||||
|
create-folder: "Utwórz katalog"
|
||||||
|
folder-name: "Nazwa katalogu"
|
||||||
|
contextmenu:
|
||||||
|
create-folder: "Utwórz katalog"
|
||||||
|
upload: "Wyślij plik"
|
||||||
|
url-upload: "Wyślij z adresu URL"
|
||||||
|
|
||||||
|
desktop/views/components/messaging-window.vue:
|
||||||
|
title: "Wiadomości"
|
||||||
|
|
||||||
|
desktop/views/components/notes.note.vue:
|
||||||
|
reposted-by: "Udostępniono przez {}"
|
||||||
|
reply: "Odpowiedz"
|
||||||
|
add-reaction: "Dodaj reakcję"
|
||||||
|
detail: "Pokaż szczegóły"
|
||||||
|
|
||||||
|
desktop/views/components/notifications.vue:
|
||||||
|
more: "Więcej"
|
||||||
|
empty: "Brak powiadomień"
|
||||||
|
|
||||||
|
desktop/views/components/post-form.vue:
|
||||||
|
note-placeholder: "Co się dzieje?"
|
||||||
|
reply-placeholder: "Odpowiedz na ten wpis…"
|
||||||
|
quote-placeholder: "Zacytuj ten wpis…"
|
||||||
|
note: "Wyślij"
|
||||||
|
reply: "Odpowiedz"
|
||||||
|
posted: "Posted!"
|
||||||
|
replied: "Odpowiedziano!"
|
||||||
|
reposted: "Udostępniono!"
|
||||||
|
note-failed: "Nie udało się wysłać"
|
||||||
|
reply-failed: "Nie udało się odpowiedzieć"
|
||||||
|
posting: "Wysyłanie"
|
||||||
|
attach-media-from-local: "Załącz zawartość multimedialną z komputera"
|
||||||
|
attach-media-from-drive: "Załącz zawartość multimedialną z dysku"
|
||||||
|
attach-cancel: "Usuń załącznik"
|
||||||
|
insert-a-kao: "v(‘ω’)v"
|
||||||
|
create-poll: "Utwórz ankietę"
|
||||||
|
text-remain: "pozostałe znaki: {}"
|
||||||
|
|
||||||
|
desktop/views/components/post-form-window.vue:
|
||||||
|
note: "Nowy wpis"
|
||||||
|
reply: "Odpowiedz"
|
||||||
|
attaches: "{} załączników multimedialnych"
|
||||||
|
uploading-media: "Wysyłanie {} treści multimedialnych"
|
||||||
|
|
||||||
|
desktop/views/components/renote-form.vue:
|
||||||
|
quote: "Cytuj…"
|
||||||
|
cancel: "Anuluj"
|
||||||
|
reposting: "Udostępnianie…"
|
||||||
|
success: "Udostępniono!"
|
||||||
|
|
||||||
|
desktop/views/components/settings.vue:
|
||||||
|
profile: "Profil"
|
||||||
|
notification: "Powiadomienie"
|
||||||
|
apps: "Aplikacje"
|
||||||
|
mute: "Wycisz"
|
||||||
|
drive: "Dysk"
|
||||||
|
security: "Bezpieczeństwo"
|
||||||
|
password: "Hasło"
|
||||||
|
2fa: "Uwierzytelnianie dwuetapowe"
|
||||||
|
other: "Inne"
|
||||||
|
license: "Licencja"
|
||||||
|
|
||||||
|
desktop/views/components/settings.2fa.vue:
|
||||||
|
intro: "Jeżeli skonfigurujesz uwierzytelnianie dwuetapowe, aby zablokować się będziesz potrzebować (oprócz hasła) kodu ze skonfigurowanego urządzenia (np. smartfonu), co zwiększy bezpieczeństwo."
|
||||||
|
detail: "Zobacz szczegóły…"
|
||||||
|
url: "https://www.google.com/landing/2step/"
|
||||||
|
caution: "Jeżeli stracisz dostęp do urządzenia, nie będziesz mógł logować się do Misskey!"
|
||||||
|
register: "Zarejestruj urządzenie"
|
||||||
|
already-registered: "Urządzenie jest już zarejestrowane"
|
||||||
|
unregister: "Wyłącz"
|
||||||
|
unregistered: "Wyłączono uwierzytelnianie dwuetapowe."
|
||||||
|
enter-password: "Wprowadź hasło"
|
||||||
|
authenticator: "Na początek musisz zainstalować Google Authenticator na swoim urządzeniu:"
|
||||||
|
howtoinstall: "Jak zainstalować"
|
||||||
|
scan: "Później, zeskanuje ten kod QR:"
|
||||||
|
done: "Wprowadź token wyświetlony na Twoim urządzeniu:"
|
||||||
|
submit: "Wyślij"
|
||||||
|
success: "Pomyślnie ukończono konfigurację!"
|
||||||
|
failed: "Nie udało się skonfigurować uwierzytelniania dwuetapowego, upewnij się że wprowadziłeś prawidłowy token."
|
||||||
|
info: "Od teraz, wprowadzaj token wyświetlany na urządzeniu przy każdym logowaniu do Misskey."
|
||||||
|
|
||||||
|
desktop/views/components/settings.api.vue:
|
||||||
|
caution: "Nie pokazuj tego tokenu osobom trzecim (nie wprowadzaj go nigdzie indziej), aby konto nie trafiło w niepowołane ręce."
|
||||||
|
regeneration-of-token: "W przypadku wycieku tokenu, możesz wygenerować nowy."
|
||||||
|
regenerate-token: "Wygeneruj nowy token"
|
||||||
|
enter-password: "Wprowadź hasło"
|
||||||
|
|
||||||
|
desktop/views/components/settings.app.vue:
|
||||||
|
no-apps: "Brak zautoryzowanych aplikacji"
|
||||||
|
|
||||||
|
desktop/views/components/settings.mute.vue:
|
||||||
|
no-users: "Brak wyciszonych użytkowników"
|
||||||
|
|
||||||
|
desktop/views/components/settings.password.vue:
|
||||||
|
reset: "Zmień hasło"
|
||||||
|
enter-current-password: "Wprowadź obecne hasło"
|
||||||
|
enter-new-password: "Wprowadź nowe hasło"
|
||||||
|
enter-new-password-again: "Wprowadź ponownie nowe hasło"
|
||||||
|
not-match: "Nowe hasła nie pasują do siebie"
|
||||||
|
changed: "Pomyślnie zmieniono hasło"
|
||||||
|
|
||||||
|
desktop/views/components/settings.profile.vue:
|
||||||
|
avatar: "Awatar"
|
||||||
|
choice-avatar: "Wybierz obraz"
|
||||||
|
name: "Nazwa"
|
||||||
|
location: "Lokalizacja"
|
||||||
|
description: "Opis"
|
||||||
|
birthday: "Data urodzenia"
|
||||||
|
save: "Aktualizuj profil"
|
||||||
|
|
||||||
|
desktop/views/components/ui.header.account.vue:
|
||||||
|
profile: "Twój profil"
|
||||||
|
drive: "Dysk"
|
||||||
|
favorites: "Ulubione"
|
||||||
|
lists: "Listy"
|
||||||
|
customize: "Dostosuj"
|
||||||
|
settings: "Ustawienia"
|
||||||
|
signout: "Wyloguj się"
|
||||||
|
dark: "Sprowadź ciemność"
|
||||||
|
|
||||||
|
desktop/views/components/ui.header.nav.vue:
|
||||||
|
home: "Strona główna"
|
||||||
|
messaging: "Wiadomości"
|
||||||
|
game: "Gra"
|
||||||
|
|
||||||
|
desktop/views/components/ui.header.notifications.vue:
|
||||||
|
title: "Powiadomienia"
|
||||||
|
|
||||||
|
desktop/views/components/ui.header.post.vue:
|
||||||
|
post: "Utwórz nowy wpis"
|
||||||
|
|
||||||
|
desktop/views/components/ui.header.search.vue:
|
||||||
|
placeholder: "Szukaj"
|
||||||
|
|
||||||
|
desktop/views/pages/note.vue:
|
||||||
|
prev: "Poprzedni wpis"
|
||||||
|
next: "Następny wpis"
|
||||||
|
|
||||||
|
desktop/views/pages/selectdrive.vue:
|
||||||
|
title: "Wybierz plik(i)"
|
||||||
|
ok: "OK"
|
||||||
|
cancel: "Anuluj"
|
||||||
|
upload: "Wyślij pliki z Twojego komputera"
|
||||||
|
|
||||||
|
desktop/views/pages/user/user.followers-you-know.vue:
|
||||||
|
title: "Śledzący których znasz"
|
||||||
|
loading: "Ładowanie"
|
||||||
|
no-users: "Brak użytkowników"
|
||||||
|
|
||||||
|
desktop/views/pages/user/user.friends.vue:
|
||||||
|
title: "Najczęściej odpisujący"
|
||||||
|
loading: "Ładowanie"
|
||||||
|
no-users: "Brak użytkowników"
|
||||||
|
|
||||||
|
desktop/views/pages/user/user.header.vue:
|
||||||
|
is-suspended: "To konto zostało zawieszone."
|
||||||
|
is-remote: "To jest użytkownik zdalnej instancji, informacje mogą nie być w pełni dokładne."
|
||||||
|
view-remote: "Wyświetl dokładne informacje"
|
||||||
|
|
||||||
|
desktop/views/pages/user/user.home.vue:
|
||||||
|
last-used-at: "Ostatnio aktywny: "
|
||||||
|
|
||||||
|
desktop/views/pages/user/user.photos.vue:
|
||||||
|
title: "Zdjęcia"
|
||||||
|
loading: "Ładowanie"
|
||||||
|
no-photos: "Brak zdjęć"
|
||||||
|
|
||||||
|
desktop/views/pages/user/user.profile.vue:
|
||||||
|
follows-you: "Śledzi Cię"
|
||||||
|
stalk: "Stalkuj"
|
||||||
|
stalking: "Stalkujesz"
|
||||||
|
unstalk: "Przestań stalkować"
|
||||||
|
mute: "Wycisz"
|
||||||
|
muted: "Wyciszyłeś"
|
||||||
|
unmute: "Cofnij wyciszenie"
|
||||||
|
|
||||||
|
desktop/views/widgets/notifications.vue:
|
||||||
|
title: "Powiadomienia"
|
||||||
|
settings: "Ustawienia"
|
||||||
|
|
||||||
|
desktop/views/widgets/polls.vue:
|
||||||
|
title: "Ankiety"
|
||||||
|
refresh: "Pokaż inne"
|
||||||
|
nothing: "Pusto"
|
||||||
|
|
||||||
|
desktop/views/widgets/post-form.vue:
|
||||||
|
title: "Wpis"
|
||||||
|
note: "Wpis"
|
||||||
|
placeholder: "Co się dzieje?"
|
||||||
|
|
||||||
|
desktop/views/widgets/trends.vue:
|
||||||
|
title: "Na czasie"
|
||||||
|
refresh: "Pokaż inne"
|
||||||
|
nothing: "Pusto"
|
||||||
|
|
||||||
|
desktop/views/widgets/users.vue:
|
||||||
|
title: "Polecani użytkownicy"
|
||||||
|
refresh: "Pokaż innych"
|
||||||
|
no-one: "Pusto"
|
||||||
|
|
||||||
|
desktop/views/widgets/channel.vue:
|
||||||
|
title: "Kanał"
|
||||||
|
settings: "Ustawienia widżetu"
|
||||||
|
|
||||||
|
mobile/views/components/drive.vue:
|
||||||
|
drive: "Dysk"
|
||||||
|
used: "użyto"
|
||||||
|
folder-count: "Katalog(i)"
|
||||||
|
count-separator: ", "
|
||||||
|
file-count: "Plik(i)"
|
||||||
|
load-more: "Załaduj więcej"
|
||||||
|
nothing-in-drive: "Pusto"
|
||||||
|
folder-is-empty: "Ten katalog jest pusty"
|
||||||
|
|
||||||
|
mobile/views/components/drive-file-chooser.vue:
|
||||||
|
select-file: "Wybierz plik"
|
||||||
|
|
||||||
|
mobile/views/components/drive-folder-chooser.vue:
|
||||||
|
select-folder: "Wybierz katalog"
|
||||||
|
|
||||||
|
mobile/views/components/drive.file-detail.vue:
|
||||||
|
download: "Pobierz"
|
||||||
|
rename: "Zmień nazwę"
|
||||||
|
move: "Przenieś"
|
||||||
|
hash: "Hash (md5)"
|
||||||
|
exif: "EXIF"
|
||||||
|
|
||||||
|
mobile/views/components/follow-button.vue:
|
||||||
|
follow: "Śledź"
|
||||||
|
unfollow: "Przestań śledzić"
|
||||||
|
|
||||||
|
mobile/views/components/note-detail.vue:
|
||||||
|
reply: "Odpowiedz"
|
||||||
|
reaction: "Reakcja"
|
||||||
|
|
||||||
|
mobile/views/components/notifications.vue:
|
||||||
|
more: "Więcej"
|
||||||
|
empty: "Brak powiadomień"
|
||||||
|
|
||||||
|
mobile/views/components/post-form.vue:
|
||||||
|
submit: "Wyślij"
|
||||||
|
reply-placeholder: "Odpowiedź na ten wpis…"
|
||||||
|
note-placeholder: "Co się dzieje?"
|
||||||
|
|
||||||
|
mobile/views/components/sub-note-content.vue:
|
||||||
|
media-count: "{} zawartości multimedialnej"
|
||||||
|
poll: "Ankieta"
|
||||||
|
|
||||||
|
mobile/views/components/timeline.vue:
|
||||||
|
empty: "Brak wpisów"
|
||||||
|
load-more: "Więcej"
|
||||||
|
|
||||||
|
mobile/views/components/ui.nav.vue:
|
||||||
|
home: "Strona główna"
|
||||||
|
notifications: "Powiadomienia"
|
||||||
|
messaging: "Wiadomości"
|
||||||
|
drive: "Dysk"
|
||||||
|
settings: "Ustawienia"
|
||||||
|
about: "O Misskey"
|
||||||
|
search: "Szukaj"
|
||||||
|
|
||||||
|
mobile/views/components/user-timeline.vue:
|
||||||
|
no-notes: "Wygląda na to, że ten użytkownik nie opublikował jeszcze niczego"
|
||||||
|
no-notes-with-media: "Brak wpisów z zawartością multimedialną"
|
||||||
|
load-more: "Więcej"
|
||||||
|
|
||||||
|
mobile/views/components/users-list.vue:
|
||||||
|
all: "Wszyscy"
|
||||||
|
known: "Znasz"
|
||||||
|
load-more: "Więcej"
|
||||||
|
|
||||||
|
mobile/views/pages/drive.vue:
|
||||||
|
drive: "Dysk"
|
||||||
|
|
||||||
|
mobile/views/pages/followers.vue:
|
||||||
|
followers-of: "Śledzący {}"
|
||||||
|
|
||||||
|
mobile/views/pages/following.vue:
|
||||||
|
following-of: "Śledzeni przez {}"
|
||||||
|
|
||||||
|
mobile/views/pages/home.vue:
|
||||||
|
timeline: "Oś czasu"
|
||||||
|
|
||||||
|
mobile/views/pages/messaging.vue:
|
||||||
|
messaging: "Wiadomości"
|
||||||
|
|
||||||
|
mobile/views/pages/messaging-room.vue:
|
||||||
|
messaging: "Wiadomości"
|
||||||
|
|
||||||
|
mobile/views/pages/note.vue:
|
||||||
|
title: "Wyślij"
|
||||||
|
prev: "Poprzedni wpis"
|
||||||
|
next: "Następny wpis"
|
||||||
|
|
||||||
|
mobile/views/pages/notifications.vue:
|
||||||
|
notifications: "Powiadomienia"
|
||||||
|
read-all: "Czy na pewno chcesz oznaczyć wszystkie powiadomienia jako przeczytane?"
|
||||||
|
|
||||||
|
mobile/views/pages/profile-setting.vue:
|
||||||
|
title: "Ustawienia profilu"
|
||||||
|
will-be-published: "Te ustawienia profilu zostaną zaktualizowane."
|
||||||
|
name: "Nazwa"
|
||||||
|
location: "Lokalizacja"
|
||||||
|
description: "Opis"
|
||||||
|
birthday: "Data urodzenia"
|
||||||
|
avatar: "Awatar"
|
||||||
|
banner: "Baner"
|
||||||
|
avatar-saved: "Pomyślnie zaktualizowano awatar"
|
||||||
|
banner-saved: "Pomyślnie zaktualizowano baner"
|
||||||
|
set-avatar: "Wybierz awatar"
|
||||||
|
set-banner: "Wybierz baner"
|
||||||
|
save: "Zapisz"
|
||||||
|
saved: "Pomyślnie zaktualizowano profil"
|
||||||
|
|
||||||
|
mobile/views/pages/search.vue:
|
||||||
|
search: "Szukaj"
|
||||||
|
empty: "Nie znaleziono wpisów zawierających '{}'"
|
||||||
|
|
||||||
|
mobile/views/pages/selectdrive.vue:
|
||||||
|
select-file: "Wybierz plik"
|
||||||
|
|
||||||
|
mobile/views/pages/settings.vue:
|
||||||
|
signed-in-as: "Zalogowany jako {}"
|
||||||
|
profile: "Profil"
|
||||||
|
twitter-integration: "Integracja z Twitterem"
|
||||||
|
signin-history: "Historia logowań"
|
||||||
|
settings: "Ustawienia"
|
||||||
|
signout: "Wyloguj"
|
||||||
|
|
||||||
|
mobile/views/pages/user.vue:
|
||||||
|
follows-you: "Śledzi Cię"
|
||||||
|
following: "Śledzeni"
|
||||||
|
followers: "Śledzący"
|
||||||
|
notes: "Wpisy"
|
||||||
|
overview: "Przegląd"
|
||||||
|
timeline: "Oś czasu"
|
||||||
|
media: "Zawartość multimedialna"
|
||||||
|
is-suspended: "To konto zostało zablokowane"
|
||||||
|
is-remote: "To jest użytkownik zdalnej instancji, informacje mogą nie być w pełni dokładne."
|
||||||
|
view-remote: "Wyświetl dokładne informacje"
|
||||||
|
|
||||||
|
mobile/views/pages/user/home.vue:
|
||||||
|
recent-notes: "Ostatnie wpisy"
|
||||||
|
images: "Zdjęcia"
|
||||||
|
activity: "Aktywność"
|
||||||
|
keywords: "Słowa kluczowe"
|
||||||
|
domains: "Domeny"
|
||||||
|
frequently-replied-users: "Często aktywni użytkownicy"
|
||||||
|
followers-you-know: "Śledzący których znasz"
|
||||||
|
last-used-at: "Ostatnio aktywny:"
|
||||||
|
|
||||||
|
mobile/views/pages/user/home.followers-you-know.vue:
|
||||||
|
loading: "Ładowanie"
|
||||||
|
no-users: "Brak użytkowników"
|
||||||
|
|
||||||
|
mobile/views/pages/user/home.friends.vue:
|
||||||
|
loading: "Ładowanie"
|
||||||
|
no-users: "Brak użytkowników"
|
||||||
|
|
||||||
|
mobile/views/pages/user/home.notes.vue:
|
||||||
|
loading: "Ładowanie"
|
||||||
|
no-notes: "Brak wpisów"
|
||||||
|
|
||||||
|
mobile/views/pages/user/home.photos.vue:
|
||||||
|
loading: "Ładowanie"
|
||||||
|
no-photos: "Brak zdjęć"
|
||||||
|
|
||||||
|
docs:
|
||||||
|
edit-this-page-on-github: "Znalazłeś błąd lub chcesz pomóc w tworzeniu dokumentacji?"
|
||||||
|
edit-this-page-on-github-link: "Edytuj stronę na GitHubie!"
|
||||||
|
|
||||||
|
api:
|
||||||
|
entities:
|
||||||
|
properties: "Właściwości"
|
||||||
|
endpoints:
|
||||||
|
params: "Parametry"
|
||||||
|
res: "Odpowiedź"
|
||||||
|
props:
|
||||||
|
name: "Nazwa"
|
||||||
|
type: "Rodzaj"
|
||||||
|
optional: "Nieobowiązkowy"
|
||||||
|
description: "Opis"
|
||||||
|
yes: "Tak"
|
||||||
|
no: "Nie"
|
57
migration/2.0.0.js
Normal file
57
migration/2.0.0.js
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
// for Node.js interpret
|
||||||
|
|
||||||
|
const chalk = require('chalk');
|
||||||
|
const sequential = require('promise-sequential');
|
||||||
|
|
||||||
|
const { default: User } = require('../built/models/user');
|
||||||
|
const { default: DriveFile } = require('../built/models/drive-file');
|
||||||
|
|
||||||
|
async function main() {
|
||||||
|
const promiseGens = [];
|
||||||
|
|
||||||
|
const count = await DriveFile.count({});
|
||||||
|
|
||||||
|
let prev;
|
||||||
|
|
||||||
|
for (let i = 0; i < count; i++) {
|
||||||
|
promiseGens.push(() => {
|
||||||
|
const promise = new Promise(async (res, rej) => {
|
||||||
|
const file = await DriveFile.findOne(prev ? {
|
||||||
|
_id: { $gt: prev._id }
|
||||||
|
} : {}, {
|
||||||
|
sort: {
|
||||||
|
_id: 1
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
prev = file;
|
||||||
|
|
||||||
|
const user = await User.findOne({ _id: file.metadata.userId });
|
||||||
|
|
||||||
|
DriveFile.update({
|
||||||
|
_id: file._id
|
||||||
|
}, {
|
||||||
|
$set: {
|
||||||
|
'metadata._user': {
|
||||||
|
host: user.host
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).then(() => {
|
||||||
|
res([i, file]);
|
||||||
|
}).catch(rej);
|
||||||
|
});
|
||||||
|
|
||||||
|
promise.then(([i, file]) => {
|
||||||
|
console.log(chalk`{gray ${i}} {green done: {bold ${file._id}} ${file.filename}}`);
|
||||||
|
});
|
||||||
|
|
||||||
|
return promise;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return await sequential(promiseGens);
|
||||||
|
}
|
||||||
|
|
||||||
|
main().then(() => {
|
||||||
|
console.log('ALL DONE');
|
||||||
|
}).catch(console.error);
|
@ -1,49 +0,0 @@
|
|||||||
// for Node.js interpret
|
|
||||||
|
|
||||||
const { default: User } = require('../built/models/user');
|
|
||||||
const { default: Following } = require('../built/models/following');
|
|
||||||
const { default: zip } = require('@prezzemolo/zip')
|
|
||||||
|
|
||||||
const migrate = async (following) => {
|
|
||||||
const follower = await User.findOne({ _id: following.followerId });
|
|
||||||
const followee = await User.findOne({ _id: following.followeeId });
|
|
||||||
const result = await Following.update(following._id, {
|
|
||||||
$set: {
|
|
||||||
stalk: true,
|
|
||||||
_follower: {
|
|
||||||
host: follower.host,
|
|
||||||
inbox: follower.host != null ? follower.inbox : undefined
|
|
||||||
},
|
|
||||||
_followee: {
|
|
||||||
host: followee.host,
|
|
||||||
inbox: followee.host != null ? followee.inbox : undefined
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return result.ok === 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
async function main() {
|
|
||||||
const count = await Following.count({});
|
|
||||||
|
|
||||||
const dop = Number.parseInt(process.argv[2]) || 5
|
|
||||||
const idop = ((count - (count % dop)) / dop) + 1
|
|
||||||
|
|
||||||
return zip(
|
|
||||||
1,
|
|
||||||
async (time) => {
|
|
||||||
console.log(`${time} / ${idop}`)
|
|
||||||
const doc = await Following.find({}, {
|
|
||||||
limit: dop, skip: time * dop
|
|
||||||
})
|
|
||||||
return Promise.all(doc.map(migrate))
|
|
||||||
},
|
|
||||||
idop
|
|
||||||
).then(a => {
|
|
||||||
const rv = []
|
|
||||||
a.forEach(e => rv.push(...e))
|
|
||||||
return rv
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
main().then(console.dir).catch(console.error)
|
|
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"author": "syuilo <i@syuilo.com>",
|
"author": "syuilo <i@syuilo.com>",
|
||||||
"version": "1.7.0",
|
"version": "2.0.0",
|
||||||
"clientVersion": "1.0.5175",
|
"clientVersion": "1.0.5184",
|
||||||
"codename": "nighthike",
|
"codename": "nighthike",
|
||||||
"main": "./built/index.js",
|
"main": "./built/index.js",
|
||||||
"private": true,
|
"private": true,
|
||||||
@ -76,6 +76,7 @@
|
|||||||
"@types/request-promise-native": "1.0.14",
|
"@types/request-promise-native": "1.0.14",
|
||||||
"@types/rimraf": "2.0.2",
|
"@types/rimraf": "2.0.2",
|
||||||
"@types/seedrandom": "2.4.27",
|
"@types/seedrandom": "2.4.27",
|
||||||
|
"@types/single-line-log": "^1.1.0",
|
||||||
"@types/speakeasy": "2.0.2",
|
"@types/speakeasy": "2.0.2",
|
||||||
"@types/tmp": "0.0.33",
|
"@types/tmp": "0.0.33",
|
||||||
"@types/uuid": "3.4.3",
|
"@types/uuid": "3.4.3",
|
||||||
@ -180,6 +181,7 @@
|
|||||||
"s-age": "1.1.2",
|
"s-age": "1.1.2",
|
||||||
"sass-loader": "7.0.1",
|
"sass-loader": "7.0.1",
|
||||||
"seedrandom": "2.4.3",
|
"seedrandom": "2.4.3",
|
||||||
|
"single-line-log": "^1.1.2",
|
||||||
"speakeasy": "2.0.0",
|
"speakeasy": "2.0.0",
|
||||||
"style-loader": "0.21.0",
|
"style-loader": "0.21.0",
|
||||||
"stylus": "0.54.5",
|
"stylus": "0.54.5",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="mk-media-list" :data-count="mediaList.length">
|
<div class="mk-media-list" :data-count="mediaList.length">
|
||||||
<template v-for="media in mediaList">
|
<template v-for="media in mediaList">
|
||||||
<mk-media-video :video="media" :key="media.id" v-if="media.type.startsWith('video')" :inline-playable="mediaList.length === 1"/>
|
<mk-media-video :video="media" :key="media.id" v-if="media.type.startsWith('video')" :inline-playable="mediaList.length === 1"/>
|
||||||
<mk-media-image :image="media" :key="media.id" v-else />
|
<mk-media-image :image="media" :key="media.id" v-else :raw="raw"/>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -11,7 +11,14 @@
|
|||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
props: ['mediaList'],
|
props: {
|
||||||
|
mediaList: {
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
raw: {
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -23,7 +30,7 @@ export default Vue.extend({
|
|||||||
|
|
||||||
@media (max-width 500px)
|
@media (max-width 500px)
|
||||||
height 192px
|
height 192px
|
||||||
|
|
||||||
&[data-count="1"]
|
&[data-count="1"]
|
||||||
grid-template-rows 1fr
|
grid-template-rows 1fr
|
||||||
&[data-count="2"]
|
&[data-count="2"]
|
||||||
@ -40,7 +47,7 @@ export default Vue.extend({
|
|||||||
&[data-count="4"]
|
&[data-count="4"]
|
||||||
grid-template-columns 1fr 1fr
|
grid-template-columns 1fr 1fr
|
||||||
grid-template-rows 1fr 1fr
|
grid-template-rows 1fr 1fr
|
||||||
|
|
||||||
:nth-child(1)
|
:nth-child(1)
|
||||||
grid-column 1 / 2
|
grid-column 1 / 2
|
||||||
grid-row 1 / 2
|
grid-row 1 / 2
|
||||||
@ -53,5 +60,5 @@ export default Vue.extend({
|
|||||||
:nth-child(4)
|
:nth-child(4)
|
||||||
grid-column 2 / 3
|
grid-column 2 / 3
|
||||||
grid-row 2 / 3
|
grid-row 2 / 3
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
<section v-if="invitations.length > 0">
|
<section v-if="invitations.length > 0">
|
||||||
<h2>対局の招待があります!:</h2>
|
<h2>対局の招待があります!:</h2>
|
||||||
<div class="invitation" v-for="i in invitations" tabindex="-1" @click="accept(i)">
|
<div class="invitation" v-for="i in invitations" tabindex="-1" @click="accept(i)">
|
||||||
<img :src="`${i.parent.avatarUrl}?thumbnail&size=32`" alt="">
|
<mk-avatar class="avatar" :user="i.parent"/>
|
||||||
<span class="name"><b>{{ i.parent.name }}</b></span>
|
<span class="name"><b>{{ i.parent.name }}</b></span>
|
||||||
<span class="username">@{{ i.parent.username }}</span>
|
<span class="username">@{{ i.parent.username }}</span>
|
||||||
<mk-time :time="i.createdAt"/>
|
<mk-time :time="i.createdAt"/>
|
||||||
@ -40,8 +40,8 @@
|
|||||||
<section v-if="myGames.length > 0">
|
<section v-if="myGames.length > 0">
|
||||||
<h2>自分の対局</h2>
|
<h2>自分の対局</h2>
|
||||||
<a class="game" v-for="g in myGames" tabindex="-1" @click.prevent="go(g)" :href="`/othello/${g.id}`">
|
<a class="game" v-for="g in myGames" tabindex="-1" @click.prevent="go(g)" :href="`/othello/${g.id}`">
|
||||||
<img :src="`${g.user1.avatarUrl}?thumbnail&size=32`" alt="">
|
<mk-avatar class="avatar" :user="g.user1.avatarUrl"/>
|
||||||
<img :src="`${g.user2.avatarUrl}?thumbnail&size=32`" alt="">
|
<mk-avatar class="avatar" :user="g.user2.avatarUrl"/>
|
||||||
<span><b>{{ g.user1.name }}</b> vs <b>{{ g.user2.name }}</b></span>
|
<span><b>{{ g.user1.name }}</b> vs <b>{{ g.user2.name }}</b></span>
|
||||||
<span class="state">{{ g.isEnded ? '終了' : '進行中' }}</span>
|
<span class="state">{{ g.isEnded ? '終了' : '進行中' }}</span>
|
||||||
</a>
|
</a>
|
||||||
@ -49,8 +49,8 @@
|
|||||||
<section v-if="games.length > 0">
|
<section v-if="games.length > 0">
|
||||||
<h2>みんなの対局</h2>
|
<h2>みんなの対局</h2>
|
||||||
<a class="game" v-for="g in games" tabindex="-1" @click.prevent="go(g)" :href="`/othello/${g.id}`">
|
<a class="game" v-for="g in games" tabindex="-1" @click.prevent="go(g)" :href="`/othello/${g.id}`">
|
||||||
<img :src="`${g.user1.avatarUrl}?thumbnail&size=32`" alt="">
|
<mk-avatar class="avatar" :user="g.user1.avatarUrl"/>
|
||||||
<img :src="`${g.user2.avatarUrl}?thumbnail&size=32`" alt="">
|
<mk-avatar class="avatar" :user="g.user2.avatarUrl"/>
|
||||||
<span><b>{{ g.user1.name }}</b> vs <b>{{ g.user2.name }}</b></span>
|
<span><b>{{ g.user1.name }}</b> vs <b>{{ g.user2.name }}</b></span>
|
||||||
<span class="state">{{ g.isEnded ? '終了' : '進行中' }}</span>
|
<span class="state">{{ g.isEnded ? '終了' : '進行中' }}</span>
|
||||||
</a>
|
</a>
|
||||||
@ -271,8 +271,7 @@ export default Vue.extend({
|
|||||||
&:active
|
&:active
|
||||||
background #eee
|
background #eee
|
||||||
|
|
||||||
> img
|
> .avatar
|
||||||
vertical-align bottom
|
|
||||||
border-radius 100%
|
border-radius 100%
|
||||||
|
|
||||||
> span
|
> span
|
||||||
@ -301,8 +300,7 @@ export default Vue.extend({
|
|||||||
&:active
|
&:active
|
||||||
background #eee
|
background #eee
|
||||||
|
|
||||||
> img
|
> .avatar
|
||||||
vertical-align bottom
|
|
||||||
border-radius 100%
|
border-radius 100%
|
||||||
|
|
||||||
> span
|
> span
|
||||||
|
@ -14,12 +14,20 @@ import Vue from 'vue';
|
|||||||
import MkMediaImageDialog from './media-image-dialog.vue';
|
import MkMediaImageDialog from './media-image-dialog.vue';
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
props: ['image'],
|
props: {
|
||||||
|
image: {
|
||||||
|
type: Object,
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
raw: {
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
style(): any {
|
style(): any {
|
||||||
return {
|
return {
|
||||||
'background-color': this.image.properties.avgColor ? `rgb(${this.image.properties.avgColor.join(',')})` : 'transparent',
|
'background-color': this.image.properties.avgColor ? `rgb(${this.image.properties.avgColor.join(',')})` : 'transparent',
|
||||||
'background-image': `url(${this.image.url}?thumbnail&size=512)`
|
'background-image': this.raw ? `url(${this.image.url})` : `url(${this.image.url}?thumbnail&size=512)`
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -52,6 +52,7 @@ export default Vue.extend({
|
|||||||
width 100%
|
width 100%
|
||||||
height 100%
|
height 100%
|
||||||
border-radius 4px
|
border-radius 4px
|
||||||
|
|
||||||
.mk-media-video-thumbnail
|
.mk-media-video-thumbnail
|
||||||
display flex
|
display flex
|
||||||
justify-content center
|
justify-content center
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
<mk-note-html v-if="p.text" :text="p.text" :i="os.i"/>
|
<mk-note-html v-if="p.text" :text="p.text" :i="os.i"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="media" v-if="p.media.length > 0">
|
<div class="media" v-if="p.media.length > 0">
|
||||||
<mk-media-list :media-list="p.media"/>
|
<mk-media-list :media-list="p.media" :raw="true"/>
|
||||||
</div>
|
</div>
|
||||||
<mk-poll v-if="p.poll" :note="p"/>
|
<mk-poll v-if="p.poll" :note="p"/>
|
||||||
<mk-url-preview v-for="url in urls" :url="url" :key="url"/>
|
<mk-url-preview v-for="url in urls" :url="url" :key="url"/>
|
||||||
|
@ -53,6 +53,7 @@ root(isDark)
|
|||||||
|
|
||||||
> header
|
> header
|
||||||
display flex
|
display flex
|
||||||
|
align-items baseline
|
||||||
white-space nowrap
|
white-space nowrap
|
||||||
|
|
||||||
> .name
|
> .name
|
||||||
|
@ -65,6 +65,7 @@ root(isDark)
|
|||||||
|
|
||||||
> header
|
> header
|
||||||
display flex
|
display flex
|
||||||
|
align-items baseline
|
||||||
margin-bottom 2px
|
margin-bottom 2px
|
||||||
white-space nowrap
|
white-space nowrap
|
||||||
line-height 21px
|
line-height 21px
|
||||||
|
@ -400,7 +400,7 @@ root(isDark)
|
|||||||
|
|
||||||
> header
|
> header
|
||||||
display flex
|
display flex
|
||||||
align-items center
|
align-items baseline
|
||||||
margin-bottom 4px
|
margin-bottom 4px
|
||||||
white-space nowrap
|
white-space nowrap
|
||||||
|
|
||||||
|
@ -83,6 +83,7 @@
|
|||||||
<el-option label="ja-JP" value="ja"/>
|
<el-option label="ja-JP" value="ja"/>
|
||||||
<el-option label="en-US" value="en"/>
|
<el-option label="en-US" value="en"/>
|
||||||
<el-option label="fr" value="fr"/>
|
<el-option label="fr" value="fr"/>
|
||||||
|
<el-option label="pl" value="pl"/>
|
||||||
</el-option-group>
|
</el-option-group>
|
||||||
</el-select>
|
</el-select>
|
||||||
<div class="none ui info">
|
<div class="none ui info">
|
||||||
|
@ -6,12 +6,20 @@
|
|||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
props: ['image'],
|
props: {
|
||||||
|
image: {
|
||||||
|
type: Object,
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
raw: {
|
||||||
|
default: false
|
||||||
|
}
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
style(): any {
|
style(): any {
|
||||||
return {
|
return {
|
||||||
'background-color': this.image.properties.avgColor ? `rgb(${this.image.properties.avgColor.join(',')})` : 'transparent',
|
'background-color': this.image.properties.avgColor ? `rgb(${this.image.properties.avgColor.join(',')})` : 'transparent',
|
||||||
'background-image': `url(${this.image.url}?thumbnail&size=512)`
|
'background-image': this.raw ? `url(${this.image.url})` : `url(${this.image.url}?thumbnail&size=512)`
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -55,6 +55,7 @@ root(isDark)
|
|||||||
|
|
||||||
> header
|
> header
|
||||||
display flex
|
display flex
|
||||||
|
align-items baseline
|
||||||
margin-bottom 4px
|
margin-bottom 4px
|
||||||
white-space nowrap
|
white-space nowrap
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
<router-link v-for="tag in p.tags" :key="tag" :to="`/search?q=#${tag}`">{{ tag }}</router-link>
|
<router-link v-for="tag in p.tags" :key="tag" :to="`/search?q=#${tag}`">{{ tag }}</router-link>
|
||||||
</div>
|
</div>
|
||||||
<div class="media" v-if="p.media.length > 0">
|
<div class="media" v-if="p.media.length > 0">
|
||||||
<mk-media-list :media-list="p.media"/>
|
<mk-media-list :media-list="p.media" :raw="true"/>
|
||||||
</div>
|
</div>
|
||||||
<mk-poll v-if="p.poll" :note="p"/>
|
<mk-poll v-if="p.poll" :note="p"/>
|
||||||
<mk-url-preview v-for="url in urls" :url="url" :key="url"/>
|
<mk-url-preview v-for="url in urls" :url="url" :key="url"/>
|
||||||
|
@ -49,6 +49,7 @@ root(isDark)
|
|||||||
|
|
||||||
> header
|
> header
|
||||||
display flex
|
display flex
|
||||||
|
align-items baseline
|
||||||
margin-bottom 4px
|
margin-bottom 4px
|
||||||
white-space nowrap
|
white-space nowrap
|
||||||
|
|
||||||
|
@ -69,6 +69,7 @@ root(isDark)
|
|||||||
|
|
||||||
> header
|
> header
|
||||||
display flex
|
display flex
|
||||||
|
align-items baseline
|
||||||
margin-bottom 2px
|
margin-bottom 2px
|
||||||
white-space nowrap
|
white-space nowrap
|
||||||
|
|
||||||
|
@ -333,7 +333,7 @@ root(isDark)
|
|||||||
|
|
||||||
> header
|
> header
|
||||||
display flex
|
display flex
|
||||||
align-items center
|
align-items baseline
|
||||||
white-space nowrap
|
white-space nowrap
|
||||||
|
|
||||||
@media (min-width 500px)
|
@media (min-width 500px)
|
||||||
|
@ -124,7 +124,7 @@ root(isDark)
|
|||||||
|
|
||||||
> header
|
> header
|
||||||
display flex
|
display flex
|
||||||
align-items center
|
align-items baseline
|
||||||
white-space nowrap
|
white-space nowrap
|
||||||
|
|
||||||
i, .mk-reaction-icon
|
i, .mk-reaction-icon
|
||||||
|
@ -25,6 +25,7 @@ export const getDriveFileBucket = async (): Promise<mongo.GridFSBucket> => {
|
|||||||
export type IMetadata = {
|
export type IMetadata = {
|
||||||
properties: any;
|
properties: any;
|
||||||
userId: mongo.ObjectID;
|
userId: mongo.ObjectID;
|
||||||
|
_user: any;
|
||||||
folderId: mongo.ObjectID;
|
folderId: mongo.ObjectID;
|
||||||
comment: string;
|
comment: string;
|
||||||
uri: string;
|
uri: string;
|
||||||
|
@ -15,7 +15,7 @@ import DriveFolder from '../../models/drive-folder';
|
|||||||
import { pack } from '../../models/drive-file';
|
import { pack } from '../../models/drive-file';
|
||||||
import event, { publishDriveStream } from '../../publishers/stream';
|
import event, { publishDriveStream } from '../../publishers/stream';
|
||||||
import getAcct from '../../acct/render';
|
import getAcct from '../../acct/render';
|
||||||
import { IUser, isLocalUser } from '../../models/user';
|
import { IUser, isLocalUser, isRemoteUser } from '../../models/user';
|
||||||
import DriveFileThumbnail, { getDriveFileThumbnailBucket, DriveFileThumbnailChunk } from '../../models/drive-file-thumbnail';
|
import DriveFileThumbnail, { getDriveFileThumbnailBucket, DriveFileThumbnailChunk } from '../../models/drive-file-thumbnail';
|
||||||
import genThumbnail from '../../drive/gen-thumbnail';
|
import genThumbnail from '../../drive/gen-thumbnail';
|
||||||
|
|
||||||
@ -284,6 +284,9 @@ const addFile = async (
|
|||||||
|
|
||||||
const metadata = {
|
const metadata = {
|
||||||
userId: user._id,
|
userId: user._id,
|
||||||
|
_user: {
|
||||||
|
host: user.host
|
||||||
|
},
|
||||||
folderId: folder !== null ? folder._id : null,
|
folderId: folder !== null ? folder._id : null,
|
||||||
comment: comment,
|
comment: comment,
|
||||||
properties: properties
|
properties: properties
|
||||||
|
Reference in New Issue
Block a user