Compare commits
438 Commits
Author | SHA1 | Date | |
---|---|---|---|
3cd3e19199 | |||
ed36ceadbc | |||
8736c9dfe6 | |||
e44f33bf14 | |||
6e39b73f07 | |||
01703e5584 | |||
fee7cb41cb | |||
bb14af8b40 | |||
54b849e548 | |||
8f50482896 | |||
b3b82e7595 | |||
9c4e0a4ae6 | |||
0b656999d8 | |||
7605a512ba | |||
2018a29968 | |||
dbf335a05d | |||
ad5a7e9d70 | |||
f8477fa88d | |||
a22ddb05ba | |||
9455edf2da | |||
4a2244327f | |||
708a800a25 | |||
a34193ca16 | |||
a4886975e4 | |||
8b6a015602 | |||
f915560752 | |||
f2f0910771 | |||
9316e2ce15 | |||
128573e73e | |||
3d132ad803 | |||
6f671325fa | |||
7e6ac77341 | |||
51bafe8259 | |||
f1bbbcfedf | |||
7d99b154c0 | |||
575da76235 | |||
c3b3b9b9a6 | |||
7432de3d33 | |||
03ce87d710 | |||
5e9fb8bd84 | |||
68a205486e | |||
94c106a87a | |||
1b2a04bd2a | |||
a048939cf1 | |||
6296846078 | |||
e530d12f7f | |||
adc3c16ef3 | |||
5458b10774 | |||
9ad403af00 | |||
8d7f16caed | |||
e5c20ca9a7 | |||
bd4a7d8cbb | |||
5b116737b6 | |||
8adc799041 | |||
41e657b64e | |||
f16cda51fb | |||
886510d721 | |||
427b3dcd73 | |||
138fa1454f | |||
7ec9b03990 | |||
65a91c5709 | |||
e679f47c1a | |||
337ecafa56 | |||
2c46098fb5 | |||
35247af220 | |||
e71da1f659 | |||
91daa1958b | |||
900a9cb34f | |||
297a7f541e | |||
049085fb7a | |||
f594a2d0f4 | |||
ffd13accca | |||
edf2503ee5 | |||
4d0c303660 | |||
49bc00102b | |||
29f074267c | |||
7671c37f2a | |||
91ad9e4c41 | |||
ed48349e39 | |||
2df02a9d70 | |||
1d027613e4 | |||
e9de73d2f6 | |||
7b9b01688c | |||
afcf2fddb1 | |||
78de3ba691 | |||
2cfefee94d | |||
d50940cdf8 | |||
e38ee663dc | |||
5a160a76f7 | |||
c504f27a51 | |||
3f5155e9b5 | |||
dcb85073da | |||
2a5f3491a6 | |||
6f6b01344d | |||
73810758d9 | |||
6cb527fd58 | |||
7316352ff5 | |||
ad76d5d8e2 | |||
539f307500 | |||
5f68d08cbc | |||
bc8bea11c0 | |||
9bb02e5bf6 | |||
ae68e6372c | |||
69593994ef | |||
cb52ebe65b | |||
9b989ebac6 | |||
f13bef4ac8 | |||
29b1aa0d9b | |||
5aa2e47c49 | |||
773d104306 | |||
b8e948b009 | |||
49298d2f3f | |||
ac19567f2b | |||
bc627fc55c | |||
eb6c2d0f73 | |||
436757c71d | |||
5d09b7e38b | |||
a8cf67198f | |||
06539db1a0 | |||
de10890bd8 | |||
8dc5375d55 | |||
1d23076191 | |||
cbdc061891 | |||
9536d76b61 | |||
7a030901c8 | |||
bcc02047ca | |||
c61616388e | |||
499486f559 | |||
179d231fd8 | |||
2e4a391eda | |||
3d214fee4b | |||
509a4c7955 | |||
c754046eaf | |||
92571d9133 | |||
add425abdb | |||
1890d9e2ee | |||
83f2926f0c | |||
738ced81ec | |||
b22c1ae520 | |||
e2e7489b1f | |||
6ae7b8303d | |||
55f40af51c | |||
7a784cea3b | |||
f86cccec0c | |||
9d90a28d76 | |||
1724cf7c17 | |||
d64d92ccf5 | |||
f64ced8677 | |||
db1c0468aa | |||
77c5d3276a | |||
ec2b1ec3f0 | |||
85bf76dd98 | |||
bfa326af2c | |||
534c47935a | |||
31a6f2b421 | |||
66c106722c | |||
9d0204f2fa | |||
fceb0e2158 | |||
14e7caaa5d | |||
744e009690 | |||
713dcd9083 | |||
e03ec67b5c | |||
7e27e2757f | |||
f05c5ff617 | |||
1afb26f04a | |||
7873905cde | |||
41a9100477 | |||
b8cc1eb993 | |||
adbbfd9dc2 | |||
84da99d56c | |||
aaf8f09cfd | |||
6da464fd1b | |||
efaa41ba49 | |||
67e8e1d819 | |||
532f8f8e4c | |||
0109e8e57c | |||
6e720b2798 | |||
d3f2a97dd4 | |||
9f7b04b0ec | |||
c4118c78b7 | |||
84147c558f | |||
4cb51a2d32 | |||
4727780a3d | |||
df20f5063d | |||
d2a5f4c5c1 | |||
64ba85aa9b | |||
51c33989fe | |||
4713822122 | |||
e10de62a7a | |||
14b235e3a4 | |||
eb4aac3902 | |||
180bf33a28 | |||
935a254c97 | |||
3c678f0e92 | |||
a053e1c1de | |||
b8fa1751ba | |||
c4243d54a9 | |||
1767f54fed | |||
7e465cdbbe | |||
47f67fcba9 | |||
3fff20fb13 | |||
06a2d87129 | |||
a8076e306a | |||
05e5829260 | |||
5a91416f34 | |||
70db1d0066 | |||
26c936d19e | |||
3b0ae3f80d | |||
2570d85543 | |||
b274c4160e | |||
f9d5d9e30b | |||
8cdf5ff6df | |||
409ebf6e14 | |||
a3d34ba919 | |||
242bb1a428 | |||
4a25ed0627 | |||
f65fbf9d55 | |||
6169acd478 | |||
481f1a7c36 | |||
16726789da | |||
e71f650ade | |||
e8a7f571e1 | |||
3117c8a98f | |||
90b845f3db | |||
f5dd972e38 | |||
4b210e1a6a | |||
1a7eb3c1df | |||
52f84d8603 | |||
f92d218c0c | |||
81c5ece8a9 | |||
a97bc38f3e | |||
aacfb5e221 | |||
f88ac3c04e | |||
1fb53acc46 | |||
ae3b0d5437 | |||
f9b2da1bb0 | |||
d0bea052ad | |||
c012faa958 | |||
c8cfd1ee65 | |||
e8da0bcd80 | |||
591ff9095a | |||
6df91d3078 | |||
288c14efce | |||
ee8d636ca8 | |||
a3ceecae91 | |||
5ad89a3b3d | |||
e1089cc18d | |||
f9e780187c | |||
42cbe96a14 | |||
1f23b11dcc | |||
ad3b4bbd58 | |||
455f4ffa27 | |||
1d867b8aca | |||
1f9c18e615 | |||
5bf439851d | |||
9df3f99a1c | |||
f41232703b | |||
abc4e53943 | |||
f846508fc1 | |||
7343003287 | |||
25ca3d610b | |||
9d286786d4 | |||
91037ebdd6 | |||
26b2eafea0 | |||
432beedd94 | |||
3a919bab45 | |||
11af9b808d | |||
af35335772 | |||
7b9047cc82 | |||
4cad36572c | |||
b5625a4550 | |||
ec41d8053c | |||
284cfe6989 | |||
ad8f363c5d | |||
3d3cf73c30 | |||
fd9bd28361 | |||
d2919dece0 | |||
a86442bff7 | |||
4b915d43cf | |||
b20c3d84a6 | |||
d2bbf5ffc4 | |||
4ef9411f35 | |||
168d13d6e6 | |||
1e921a9fd5 | |||
9e438ed674 | |||
3a02a7dad8 | |||
1744316656 | |||
1e4a86da8e | |||
2b31b6a6b0 | |||
c7a3f40eba | |||
8b9710df9f | |||
ce6f750fa5 | |||
468eb02ff3 | |||
dfca7f1340 | |||
7bfa56d199 | |||
c579cbdf10 | |||
0b3609c775 | |||
be52eb9b3f | |||
5f5156561f | |||
d47f92f396 | |||
2a30bc9a56 | |||
a427b7a1af | |||
05d5e70c58 | |||
62858caaa4 | |||
b9b48a55ef | |||
7276ec185b | |||
e063ac10c5 | |||
eca9a7ea13 | |||
86d9a72bbf | |||
073707b2d0 | |||
b971fbaac6 | |||
86795f1091 | |||
5b9dd4fb80 | |||
5ff31e197b | |||
0bd5e64b86 | |||
3089b56f70 | |||
46bf0eae40 | |||
97f411130f | |||
b9ce7bc99d | |||
9d3ecda43d | |||
8356f6d128 | |||
05a084dadf | |||
f338fa552e | |||
7ab9d01bac | |||
5b0aaf66eb | |||
6a4e92a999 | |||
0a4b652493 | |||
eebc1af672 | |||
41fa045999 | |||
4b52c89a75 | |||
28dcf8bc1e | |||
5af469282a | |||
4c58dc61bc | |||
c4bf80c262 | |||
e485e8936f | |||
e495e0d2e6 | |||
3695e6db15 | |||
ac7df96f68 | |||
cf17a39446 | |||
87cc5f790c | |||
b03987290c | |||
1f4969547b | |||
d12d201ef4 | |||
c91a4c9da1 | |||
1213e95ddd | |||
90a836d587 | |||
973c2ebafd | |||
24f52aee46 | |||
4d2c0e4161 | |||
b687546fcd | |||
3c701aaf86 | |||
d50e99c17b | |||
41d5e0ab24 | |||
c99e864dbc | |||
f39adfdf87 | |||
0d1ffb581f | |||
4add44f3bd | |||
baae9f6f39 | |||
0a9958f45f | |||
7e5d25cf2c | |||
9666e6b4d3 | |||
c937cb94f9 | |||
5e54d093f5 | |||
c7f099276e | |||
ee4235ba71 | |||
71066d69fb | |||
4581376198 | |||
04ebde62bc | |||
fec47f05cf | |||
b9e2fb74ed | |||
a1d6637dd1 | |||
e6fa5a07ce | |||
eec6226c8d | |||
356fe8180e | |||
30c120596a | |||
c6e330ea8d | |||
dca55d12ac | |||
4426da6233 | |||
381fe2f436 | |||
28cd7a67de | |||
97f75cea52 | |||
5e788f0da4 | |||
1fc9d034d0 | |||
dc8f14c23a | |||
e9717da916 | |||
73c328f90b | |||
25a6f7041a | |||
ff278c8bea | |||
35dd6a5ac3 | |||
98ea238087 | |||
3830b0d831 | |||
b6de5a2268 | |||
77327c7a40 | |||
26664a8351 | |||
912964104b | |||
63653ccb01 | |||
5df54700b8 | |||
f952dde1d4 | |||
2c0aac5eed | |||
4e3a2c4bb8 | |||
17ccfcfb53 | |||
f2959ada85 | |||
e427c12ac2 | |||
874837666c | |||
c66532d18f | |||
2bc572b4cc | |||
2db01f3d5c | |||
a0a116b7bf | |||
aec7d53414 | |||
09416c9893 | |||
0e7fe670aa | |||
bd805f1d88 | |||
b984aecaf2 | |||
56efffffa3 | |||
2f92be1da0 | |||
baa52921a0 | |||
20e0c44f9a | |||
ebc83c8f60 | |||
2d48d9fd87 | |||
5eb06a3a52 | |||
9917a1c7e1 | |||
e9c886e871 | |||
0074f8da1b | |||
1c98b51e6a | |||
837bdb1b43 | |||
48e034be0e | |||
b067162ce6 | |||
5f9482e7d5 | |||
bb98ee27a1 | |||
3506dd3656 | |||
88d0b09c88 | |||
25b88f89a6 | |||
85343b80b7 | |||
6766fbdfb3 | |||
c488fca2f2 | |||
ea51460169 | |||
80e7af30d0 | |||
8f20edaed0 |
@ -1,73 +1,110 @@
|
|||||||
# インスタンス名
|
name: example-instance-name # Name of your instance
|
||||||
name:
|
description: example-description # Description of your instance
|
||||||
|
|
||||||
# インスタンスの紹介
|
|
||||||
description:
|
|
||||||
|
|
||||||
# サーバーのメンテナ情報
|
|
||||||
maintainer:
|
maintainer:
|
||||||
# メンテナの名前
|
name: example-maitainer-name # Your name
|
||||||
name:
|
url: http://example.com/ # Your contact (http or mailto)
|
||||||
|
repository_url: https://github.com/syuilo/misskey # Repository URL
|
||||||
|
feedback_url: https://github.com/syuilo/misskey/issues # Feedback URL (e.g. github issue)
|
||||||
|
|
||||||
# メンテナの連絡先(URLかmailto形式のURL)
|
# URL and Port settings overview
|
||||||
url:
|
# e.g., If you want to realize following structure:
|
||||||
|
#
|
||||||
|
# +--- https://example.com:123 ----------+
|
||||||
|
# +------+ |+-------------+ +---------------+|
|
||||||
|
# | User | ---> || Proxy (123) | ---> | Misskey (456) ||
|
||||||
|
# +------+ |+-------------+ +---------------+|
|
||||||
|
# +--------------------------------------+
|
||||||
|
#
|
||||||
|
# You need to set 'https://example.com:123' to 'url' prop and
|
||||||
|
# You need to set 456 to 'port' prop.
|
||||||
|
#
|
||||||
|
# In other words, the 'url' prop should be the final accessible URL seen by a user.
|
||||||
|
# 'port' prop is a port that the Misskey server should actually listen
|
||||||
|
# on and it is not necessarily the port that a user accesses.
|
||||||
|
|
||||||
# レポジトリのURL
|
url: http://localhost/
|
||||||
repository_url:
|
|
||||||
|
|
||||||
# フィードバックのURL(issueなど)
|
# A port that your Misskey server should listen.
|
||||||
feedback_url:
|
# This value is not a port to use when accessing with a browser.
|
||||||
|
port: 80
|
||||||
|
|
||||||
# (Misskeyを動かす)URL
|
|
||||||
url:
|
|
||||||
|
|
||||||
# 待受ポート
|
|
||||||
port:
|
|
||||||
|
|
||||||
# TLSの設定(利用しない場合はフィールドごと削除してください)
|
|
||||||
https:
|
|
||||||
# 証明書のパス...
|
|
||||||
key:
|
|
||||||
cert:
|
|
||||||
|
|
||||||
# MongoDBの設定
|
|
||||||
mongodb:
|
mongodb:
|
||||||
host: localhost
|
host: localhost
|
||||||
port: 27017
|
port: 27017
|
||||||
db: misskey
|
db: misskey
|
||||||
user:
|
user: example-misskey-user
|
||||||
pass:
|
pass: example-misskey-pass
|
||||||
|
|
||||||
# Redisの設定
|
|
||||||
redis:
|
redis:
|
||||||
host: localhost
|
host: localhost
|
||||||
port: 6379
|
port: 6379
|
||||||
pass:
|
pass: example-pass
|
||||||
|
|
||||||
# reCAPTCHAの設定
|
# Drive capacity of a local user (MB)
|
||||||
recaptcha:
|
localDriveCapacityMb: 256
|
||||||
site_key:
|
|
||||||
secret_key:
|
|
||||||
|
|
||||||
# ServiceWorkerの設定
|
# Drive capacity of a remote user (MB)
|
||||||
sw:
|
remoteDriveCapacityMb: 8
|
||||||
# VAPIDの公開鍵
|
|
||||||
public_key:
|
|
||||||
|
|
||||||
# VAPIDの秘密鍵
|
# If enabled:
|
||||||
private_key:
|
# Server will not cache remote files (Using direct link instead).
|
||||||
|
# You can save your storage.
|
||||||
# Google Maps API
|
# Users cannot see remote images when they turn off "Show media from a remote server" setting.
|
||||||
google_maps_api_key:
|
|
||||||
|
|
||||||
# Twitterインテグレーションの設定(利用しない場合は省略可能)
|
|
||||||
twitter:
|
|
||||||
# インテグレーション用アプリのコンシューマーキー
|
|
||||||
consumer_key:
|
|
||||||
|
|
||||||
# インテグレーション用アプリのコンシューマーシークレット
|
|
||||||
consumer_secret:
|
|
||||||
|
|
||||||
# true にすると、リモートのファイルをキャッシュしなくなります(直リンクします)。
|
|
||||||
# ストレージ容量を節約することができますが、「リモートメディアを表示しない」設定をオンにしているユーザーは、リモートの画像などは見えなくなります。
|
|
||||||
preventCache: false
|
preventCache: false
|
||||||
|
|
||||||
|
drive:
|
||||||
|
storage: 'db'
|
||||||
|
|
||||||
|
# OR
|
||||||
|
|
||||||
|
# storage: 'minio'
|
||||||
|
# bucket:
|
||||||
|
# prefix:
|
||||||
|
# config:
|
||||||
|
# endPoint:
|
||||||
|
# port:
|
||||||
|
# secure:
|
||||||
|
# accessKey:
|
||||||
|
# secretKey:
|
||||||
|
|
||||||
|
#
|
||||||
|
# Below settings are optional
|
||||||
|
#
|
||||||
|
|
||||||
|
# TLS
|
||||||
|
# https:
|
||||||
|
# # path for certification
|
||||||
|
# key: example-tls-key
|
||||||
|
# cert: example-tls-cert
|
||||||
|
|
||||||
|
# Elasticsearch
|
||||||
|
# elasticsearch:
|
||||||
|
# host: localhost
|
||||||
|
# port: 9200
|
||||||
|
# pass: null
|
||||||
|
|
||||||
|
# reCAPTCHA
|
||||||
|
# recaptcha:
|
||||||
|
# site_key: example-site-key
|
||||||
|
# secret_key: example-secret-key
|
||||||
|
|
||||||
|
# ServiceWorker
|
||||||
|
# sw:
|
||||||
|
# # Public key of VAPID
|
||||||
|
# public_key: example-sw-public-key
|
||||||
|
|
||||||
|
# # Private key of VAPID
|
||||||
|
# private_key: example-sw-private-key
|
||||||
|
|
||||||
|
# google_maps_api_key: example-google-maps-api-key
|
||||||
|
|
||||||
|
# Twitter integration
|
||||||
|
# twitter:
|
||||||
|
# consumer_key: example-twitter-consumer-key
|
||||||
|
# consumer_secret: example-twitter-consumer-secret-key
|
||||||
|
|
||||||
|
# Ghost
|
||||||
|
# Ghost account is an account used for the purpose of delegating
|
||||||
|
# followers when putting users in the list.
|
||||||
|
# ghost: user-id-of-your-ghost-account
|
||||||
|
7
.github/ISSUE_TEMPLATE
vendored
@ -1,7 +0,0 @@
|
|||||||
<!--
|
|
||||||
Misskeyへの貢献ありがとうございます。
|
|
||||||
|
|
||||||
バグの報告や提案などで、可能であれば以下の情報を含めてください。
|
|
||||||
* お使いのブラウザ
|
|
||||||
* デスクトップ版Misskeyかモバイル版Misskeyか
|
|
||||||
-->
|
|
22
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
name: Bug Report
|
||||||
|
about: Create a report to help us improve
|
||||||
|
---
|
||||||
|
|
||||||
|
# Summary
|
||||||
|
<!-- Tell us what the bug is -->
|
||||||
|
|
||||||
|
# Expected Behavior
|
||||||
|
<!--- Tell us what should happen -->
|
||||||
|
|
||||||
|
# Actual Behavior
|
||||||
|
<!--- Tell us what happens instead of the expected behavior -->
|
||||||
|
|
||||||
|
# Steps to Reproduce
|
||||||
|
1.
|
||||||
|
2.
|
||||||
|
3.
|
||||||
|
|
||||||
|
# Environment
|
||||||
|
<!-- Tell us where on the platform it happens -->
|
||||||
|
<!-- e.g. desktop or mobile version, your browser, your OS -->
|
11
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
name: Feature Request
|
||||||
|
about: Suggest an idea for this project
|
||||||
|
---
|
||||||
|
|
||||||
|
# Summary
|
||||||
|
<!-- Tell us what the suggestion is -->
|
||||||
|
|
||||||
|
# Environment
|
||||||
|
<!-- Tell us where on the platform it related -->
|
||||||
|
<!-- e.g. desktop or mobile version, your browser, your OS -->
|
12
.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"ducksoupdev.vue2",
|
||||||
|
"editorconfig.editorconfig",
|
||||||
|
"eg2.tslint",
|
||||||
|
"eg2.vscode-npm-script",
|
||||||
|
"hollowtree.vue-snippets",
|
||||||
|
"ms-vscode.typescript-javascript-grammar",
|
||||||
|
"octref.vetur",
|
||||||
|
"sysoev.language-stylus"
|
||||||
|
]
|
||||||
|
}
|
@ -5,6 +5,15 @@ ChangeLog
|
|||||||
|
|
||||||
This document describes breaking changes only.
|
This document describes breaking changes only.
|
||||||
|
|
||||||
|
5.0.0
|
||||||
|
-----
|
||||||
|
|
||||||
|
### Migration
|
||||||
|
|
||||||
|
起動する前に、`node cli/migration/5.0.0`してください。
|
||||||
|
|
||||||
|
Please run `node cli/migration/5.0.0` before launch.
|
||||||
|
|
||||||
4.0.0
|
4.0.0
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
19
README.md
@ -7,7 +7,7 @@
|
|||||||
[![][dependencies-badge]][dependencies-link]
|
[![][dependencies-badge]][dependencies-link]
|
||||||
[](http://makeapullrequest.com) [](https://greenkeeper.io/)
|
[](http://makeapullrequest.com) [](https://greenkeeper.io/)
|
||||||
|
|
||||||
> Lead Maintainer: [syuilo][syuilo-link]
|
**Microblogging. Redefined.**
|
||||||
|
|
||||||
**[Misskey](https://misskey.xyz)** is a completely open source,
|
**[Misskey](https://misskey.xyz)** is a completely open source,
|
||||||
ultimately sophisticated professional microblogging software.
|
ultimately sophisticated professional microblogging software.
|
||||||
@ -18,14 +18,13 @@ ultimately sophisticated professional microblogging software.
|
|||||||
|
|
||||||
:sparkles: Features
|
:sparkles: Features
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
|
* Rich text contents
|
||||||
* Reactions
|
* Reactions
|
||||||
* User lists
|
* User lists
|
||||||
* Customizable column view (called MisskeyDeck)
|
* Customizable column view (called MisskeyDeck)
|
||||||
* and widgets!
|
* and widgets!
|
||||||
* Private messages
|
* Private messages
|
||||||
* Mute
|
* ActivityPub support
|
||||||
* Real-time timelines
|
|
||||||
* ActivityPub compatible
|
|
||||||
|
|
||||||
and more! You can see it with your own eyes at [misskey.xyz](https://misskey.xyz).
|
and more! You can see it with your own eyes at [misskey.xyz](https://misskey.xyz).
|
||||||
|
|
||||||
@ -44,9 +43,9 @@ If you want to...
|
|||||||
|
|
||||||
:heart: Backers & Sponsors
|
:heart: Backers & Sponsors
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
| ![][nagarus-icon] | ![][dansup-icon] |
|
| <img src="https://c10.patreonusercontent.com/3/eyJoIjoxMDAsInciOjEwMH0%3D/patreon-media/p/user/619786/32cf01444db24e578cd1982c197f6fc6/1?token-time=2145916800&token-hash=tB1e_r8RlZ5sFL0KV_e8dugapxatNBRK1Z3h67TO1g8%3D"> | <img src="https://c10.patreonusercontent.com/3/eyJoIjoxMDAsInciOjEwMH0%3D/patreon-media/p/user/12378075/0156f769e20f412594fa6b87d85fe228/1?token-time=2145916800&token-hash=IsIJRUXszzoD6-7pDnRY8I05T9nSznc4GTaxj7C9SwU%3D"> | <img src="https://c10.patreonusercontent.com/3/eyJoIjoxMDAsInciOjEwMH0%3D/patreon-media/p/user/4503830/ccf2cc867ea64de0b524bb2e24b9a1cb/1?token-time=2145916800&token-hash=S1zP0QyLU52Dqq6dtc9qNYyWfW86XrYHiR4NMbeOrnA%3D"> |
|
||||||
|:-:|:-:|
|
|:-:|:-:|:-:|
|
||||||
| [nagarus][nagarus-link] | [dansup][dansup-link] |
|
| [Gargron](https://www.patreon.com/mastodon) | [39ff](https://www.patreon.com/user/creators?u=12378075) | [dansup](https://www.patreon.com/dansup) |
|
||||||
|
|
||||||
:four_leaf_clover: Copyright
|
:four_leaf_clover: Copyright
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
@ -73,9 +72,3 @@ Misskey is an open-source software licensed under the [GNU AGPLv3](LICENSE).
|
|||||||
|
|
||||||
[syuilo-link]: https://syuilo.com
|
[syuilo-link]: https://syuilo.com
|
||||||
[syuilo-icon]: https://avatars2.githubusercontent.com/u/4439005?v=3&s=70
|
[syuilo-icon]: https://avatars2.githubusercontent.com/u/4439005?v=3&s=70
|
||||||
|
|
||||||
[nagarus-link]: https://www.patreon.com/user/creators?u=11601413
|
|
||||||
[nagarus-icon]: https://c10.patreonusercontent.com/3/eyJ2IjoiMSIsInciOjIwMH0%3D/patreon-media/user/11601413/20cb15f209924302b399b99d3c98b850?token-time=2145916800&token-hash=IO31nK6VZCMWBWU2VAk2c824BX2QZ4DNPKyHHZXS0iw%3D
|
|
||||||
[dansup-link]: https://www.patreon.com/dansup
|
|
||||||
[dansup-icon]: https://c10.patreonusercontent.com/3/eyJ2IjoiMSIsInciOjIwMH0%3D/patreon-media/user/4503830/ccf2cc867ea64de0b524bb2e24b9a1cb?token-time=2145916800&token-hash=opXAM_pnhUTuN1jCA6p_Nn_YsaqohY465YFjWFqMEEE%3D
|
|
||||||
|
|
||||||
|
41
appveyor.yml
@ -1,41 +0,0 @@
|
|||||||
# appveyor file
|
|
||||||
# http://www.appveyor.com/docs/appveyor-yml
|
|
||||||
|
|
||||||
environment:
|
|
||||||
matrix:
|
|
||||||
- nodejs_version: 10.1.0
|
|
||||||
|
|
||||||
cache:
|
|
||||||
- node_modules
|
|
||||||
|
|
||||||
build: off
|
|
||||||
|
|
||||||
install:
|
|
||||||
# Update Node.js
|
|
||||||
# 標準で入っている Node.js を更新します (2014/11/13 時点では、v0.10.32 が標準)
|
|
||||||
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
|
|
||||||
- node --version
|
|
||||||
|
|
||||||
# Update NPM
|
|
||||||
- npm install -g npm
|
|
||||||
- npm --version
|
|
||||||
|
|
||||||
# Update node-gyp
|
|
||||||
# 必須! node-gyp のバージョンを上げないと、ネイティブモジュールのコンパイルに失敗します
|
|
||||||
- npm install -g node-gyp
|
|
||||||
|
|
||||||
- npm install
|
|
||||||
|
|
||||||
init:
|
|
||||||
# git clone の際の改行を変換しないようにします
|
|
||||||
- git config --global core.autocrlf false
|
|
||||||
|
|
||||||
before_test:
|
|
||||||
# 設定ファイルを配置
|
|
||||||
- cp ./.travis/default.yml ./.config
|
|
||||||
- cp ./.travis/test.yml ./.config
|
|
||||||
|
|
||||||
- npm run build
|
|
||||||
|
|
||||||
test_script:
|
|
||||||
- npm test
|
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.2 KiB |
BIN
assets/title.png
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 3.8 KiB |
@ -9,7 +9,7 @@ const q = {
|
|||||||
'metadata._user.host': {
|
'metadata._user.host': {
|
||||||
$ne: null
|
$ne: null
|
||||||
},
|
},
|
||||||
'metadata.isMetaOnly': false
|
'metadata.withoutChunks': false
|
||||||
};
|
};
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
@ -57,7 +57,7 @@ async function main() {
|
|||||||
|
|
||||||
DriveFile.update({ _id: file._id }, {
|
DriveFile.update({ _id: file._id }, {
|
||||||
$set: {
|
$set: {
|
||||||
'metadata.isMetaOnly': true
|
'metadata.withoutChunks': true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
]).then(async () => {
|
]).then(async () => {
|
||||||
|
168
cli/init.js
@ -1,168 +0,0 @@
|
|||||||
const fs = require('fs');
|
|
||||||
const path = require('path');
|
|
||||||
const yaml = require('js-yaml');
|
|
||||||
const inquirer = require('inquirer');
|
|
||||||
const chalk = require('chalk');
|
|
||||||
|
|
||||||
const configDirPath = `${__dirname}/../.config`;
|
|
||||||
const configPath = `${configDirPath}/default.yml`;
|
|
||||||
|
|
||||||
const form = [{
|
|
||||||
type: 'input',
|
|
||||||
name: 'maintainerName',
|
|
||||||
message: 'Your name:'
|
|
||||||
}, {
|
|
||||||
type: 'input',
|
|
||||||
name: 'maintainerUrl',
|
|
||||||
message: 'Your home page URL or your mailto URL:'
|
|
||||||
}, {
|
|
||||||
type: 'input',
|
|
||||||
name: 'url',
|
|
||||||
message: 'URL you want to run Misskey:',
|
|
||||||
validate: function(wannabeurl) {
|
|
||||||
return wannabeurl.match('^http\(s?\)://') ? true :
|
|
||||||
'URL needs to start with http:// or https://';
|
|
||||||
}
|
|
||||||
}, {
|
|
||||||
type: 'input',
|
|
||||||
name: 'port',
|
|
||||||
message: 'Listen port (e.g. 443):'
|
|
||||||
}, {
|
|
||||||
type: 'confirm',
|
|
||||||
name: 'https',
|
|
||||||
message: 'Use TLS?',
|
|
||||||
default: false
|
|
||||||
}, {
|
|
||||||
type: 'input',
|
|
||||||
name: 'https_key',
|
|
||||||
message: 'Path of tls key:',
|
|
||||||
when: ctx => ctx.https
|
|
||||||
}, {
|
|
||||||
type: 'input',
|
|
||||||
name: 'https_cert',
|
|
||||||
message: 'Path of tls cert:',
|
|
||||||
when: ctx => ctx.https
|
|
||||||
}, {
|
|
||||||
type: 'input',
|
|
||||||
name: 'https_ca',
|
|
||||||
message: 'Path of tls ca:',
|
|
||||||
when: ctx => ctx.https
|
|
||||||
}, {
|
|
||||||
type: 'input',
|
|
||||||
name: 'mongo_host',
|
|
||||||
message: 'MongoDB\'s host:',
|
|
||||||
default: 'localhost'
|
|
||||||
}, {
|
|
||||||
type: 'input',
|
|
||||||
name: 'mongo_port',
|
|
||||||
message: 'MongoDB\'s port:',
|
|
||||||
default: '27017'
|
|
||||||
}, {
|
|
||||||
type: 'input',
|
|
||||||
name: 'mongo_db',
|
|
||||||
message: 'MongoDB\'s db:',
|
|
||||||
default: 'misskey'
|
|
||||||
}, {
|
|
||||||
type: 'input',
|
|
||||||
name: 'mongo_user',
|
|
||||||
message: 'MongoDB\'s user:'
|
|
||||||
}, {
|
|
||||||
type: 'password',
|
|
||||||
name: 'mongo_pass',
|
|
||||||
message: 'MongoDB\'s password:'
|
|
||||||
}, {
|
|
||||||
type: 'input',
|
|
||||||
name: 'redis_host',
|
|
||||||
message: 'Redis\'s host:',
|
|
||||||
default: 'localhost'
|
|
||||||
}, {
|
|
||||||
type: 'input',
|
|
||||||
name: 'redis_port',
|
|
||||||
message: 'Redis\'s port:',
|
|
||||||
default: '6379'
|
|
||||||
}, {
|
|
||||||
type: 'password',
|
|
||||||
name: 'redis_pass',
|
|
||||||
message: 'Redis\'s password:'
|
|
||||||
}, {
|
|
||||||
type: 'confirm',
|
|
||||||
name: 'elasticsearch',
|
|
||||||
message: 'Use Elasticsearch?',
|
|
||||||
default: false
|
|
||||||
}, {
|
|
||||||
type: 'input',
|
|
||||||
name: 'es_host',
|
|
||||||
message: 'Elasticsearch\'s host:',
|
|
||||||
default: 'localhost',
|
|
||||||
when: ctx => ctx.elasticsearch
|
|
||||||
}, {
|
|
||||||
type: 'input',
|
|
||||||
name: 'es_port',
|
|
||||||
message: 'Elasticsearch\'s port:',
|
|
||||||
default: '9200',
|
|
||||||
when: ctx => ctx.elasticsearch
|
|
||||||
}, {
|
|
||||||
type: 'password',
|
|
||||||
name: 'es_pass',
|
|
||||||
message: 'Elasticsearch\'s password:',
|
|
||||||
when: ctx => ctx.elasticsearch
|
|
||||||
}, {
|
|
||||||
type: 'input',
|
|
||||||
name: 'recaptcha_site',
|
|
||||||
message: 'reCAPTCHA\'s site key:'
|
|
||||||
}, {
|
|
||||||
type: 'input',
|
|
||||||
name: 'recaptcha_secret',
|
|
||||||
message: 'reCAPTCHA\'s secret key:'
|
|
||||||
}];
|
|
||||||
|
|
||||||
inquirer.prompt(form).then(as => {
|
|
||||||
// Mapping answers
|
|
||||||
const conf = {
|
|
||||||
maintainer: {
|
|
||||||
name: as['maintainerName'],
|
|
||||||
url: as['maintainerUrl']
|
|
||||||
},
|
|
||||||
url: as['url'],
|
|
||||||
port: parseInt(as['port'], 10),
|
|
||||||
mongodb: {
|
|
||||||
host: as['mongo_host'],
|
|
||||||
port: parseInt(as['mongo_port'], 10),
|
|
||||||
db: as['mongo_db'],
|
|
||||||
user: as['mongo_user'],
|
|
||||||
pass: as['mongo_pass']
|
|
||||||
},
|
|
||||||
redis: {
|
|
||||||
host: as['redis_host'],
|
|
||||||
port: parseInt(as['redis_port'], 10),
|
|
||||||
pass: as['redis_pass']
|
|
||||||
},
|
|
||||||
elasticsearch: {
|
|
||||||
enable: as['elasticsearch'],
|
|
||||||
host: as['es_host'] || null,
|
|
||||||
port: parseInt(as['es_port'], 10) || null,
|
|
||||||
pass: as['es_pass'] || null
|
|
||||||
},
|
|
||||||
recaptcha: {
|
|
||||||
site_key: as['recaptcha_site'],
|
|
||||||
secret_key: as['recaptcha_secret']
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
if (as['https']) {
|
|
||||||
conf.https = {
|
|
||||||
key: as['https_key'] || null,
|
|
||||||
cert: as['https_cert'] || null,
|
|
||||||
ca: as['https_ca'] || null
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log(`Thanks. Writing the configuration to ${chalk.bold(path.resolve(configPath))}`);
|
|
||||||
|
|
||||||
try {
|
|
||||||
fs.writeFileSync(configPath, yaml.dump(conf));
|
|
||||||
console.log(chalk.green('Well done.'));
|
|
||||||
} catch (e) {
|
|
||||||
console.error(e);
|
|
||||||
}
|
|
||||||
});
|
|
23
cli/mark-admin.js
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
const mongo = require('mongodb');
|
||||||
|
const User = require('../built/models/user').default;
|
||||||
|
|
||||||
|
const args = process.argv.slice(2);
|
||||||
|
|
||||||
|
const user = args[0];
|
||||||
|
|
||||||
|
const q = user.startsWith('@') ? {
|
||||||
|
username: user.split('@')[1],
|
||||||
|
host: user.split('@')[2] || null
|
||||||
|
} : { _id: new mongo.ObjectID(user) };
|
||||||
|
|
||||||
|
console.log(`Mark as admin ${user}...`);
|
||||||
|
|
||||||
|
User.update(q, {
|
||||||
|
$set: {
|
||||||
|
isAdmin: true
|
||||||
|
}
|
||||||
|
}).then(() => {
|
||||||
|
console.log(`Done ${user}`);
|
||||||
|
}, e => {
|
||||||
|
console.error(e);
|
||||||
|
});
|
23
cli/mark-verified.js
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
const mongo = require('mongodb');
|
||||||
|
const User = require('../built/models/user').default;
|
||||||
|
|
||||||
|
const args = process.argv.slice(2);
|
||||||
|
|
||||||
|
const user = args[0];
|
||||||
|
|
||||||
|
const q = user.startsWith('@') ? {
|
||||||
|
username: user.split('@')[1],
|
||||||
|
host: user.split('@')[2] || null
|
||||||
|
} : { _id: new mongo.ObjectID(user) };
|
||||||
|
|
||||||
|
console.log(`Mark as verfied ${user}...`);
|
||||||
|
|
||||||
|
User.update(q, {
|
||||||
|
$set: {
|
||||||
|
isVerified: true
|
||||||
|
}
|
||||||
|
}).then(() => {
|
||||||
|
console.log(`Done ${user}`);
|
||||||
|
}, e => {
|
||||||
|
console.error(e);
|
||||||
|
});
|
@ -3,8 +3,8 @@
|
|||||||
const chalk = require('chalk');
|
const chalk = require('chalk');
|
||||||
const sequential = require('promise-sequential');
|
const sequential = require('promise-sequential');
|
||||||
|
|
||||||
const { default: User } = require('../built/models/user');
|
const { default: User } = require('../../built/models/user');
|
||||||
const { default: DriveFile } = require('../built/models/drive-file');
|
const { default: DriveFile } = require('../../built/models/drive-file');
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
const promiseGens = [];
|
const promiseGens = [];
|
@ -3,8 +3,8 @@
|
|||||||
const chalk = require('chalk');
|
const chalk = require('chalk');
|
||||||
const sequential = require('promise-sequential');
|
const sequential = require('promise-sequential');
|
||||||
|
|
||||||
const { default: User } = require('../built/models/user');
|
const { default: User } = require('../../built/models/user');
|
||||||
const { default: DriveFile } = require('../built/models/drive-file');
|
const { default: DriveFile } = require('../../built/models/drive-file');
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
const promiseGens = [];
|
const promiseGens = [];
|
9
cli/migration/5.0.0.js
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
const { default: DriveFile } = require('../../built/models/drive-file');
|
||||||
|
|
||||||
|
DriveFile.update({}, {
|
||||||
|
$rename: {
|
||||||
|
'metadata.isMetaOnly': 'metadata.withoutChunks'
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
multi: true
|
||||||
|
});
|
@ -14,7 +14,7 @@ RUN pacman -S --noconfirm pacman
|
|||||||
RUN pacman-db-upgrade
|
RUN pacman-db-upgrade
|
||||||
RUN pacman -S --noconfirm archlinux-keyring
|
RUN pacman -S --noconfirm archlinux-keyring
|
||||||
RUN pacman -Syyu --noconfirm
|
RUN pacman -Syyu --noconfirm
|
||||||
RUN pacman -S --noconfirm git nodejs npm mongodb redis imagemagick
|
RUN pacman -S --noconfirm git nodejs npm mongodb redis
|
||||||
|
|
||||||
COPY misskey.sh /root/misskey.sh
|
COPY misskey.sh /root/misskey.sh
|
||||||
RUN chmod u+x /root/misskey.sh
|
RUN chmod u+x /root/misskey.sh
|
||||||
|
6
docs/README.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# Docs
|
||||||
|
These docs are for contributors of Misskey or admins of instance of Misskey.
|
||||||
|
Docs for users are located in `src/docs`.
|
||||||
|
|
||||||
|
これらのドキュメントはMisskeyの開発者またはMisskeyインスタンス運営者向けです。
|
||||||
|
利用者向けのドキュメントは`src/docs`にあります。
|
45
docs/manage.en.md
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
# Management guide
|
||||||
|
|
||||||
|
## Check the status of the job queue
|
||||||
|
In the directory of Misskey:
|
||||||
|
``` shell
|
||||||
|
node_modules/kue/bin/kue-dashboard -p 3050
|
||||||
|
```
|
||||||
|
When you access port 3050, you will see the UI.
|
||||||
|
|
||||||
|
## Mark as 'admin' user
|
||||||
|
``` shell
|
||||||
|
node cli/mark-admin (User-ID or Username)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Mark as 'verified' user
|
||||||
|
``` shell
|
||||||
|
node cli/mark-verified (User-ID or Username)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Suspend users
|
||||||
|
``` shell
|
||||||
|
node cli/suspend (User-ID or Username)
|
||||||
|
```
|
||||||
|
e.g.
|
||||||
|
``` shell
|
||||||
|
# Use id
|
||||||
|
node cli/suspend 57d01a501fdf2d07be417afe
|
||||||
|
|
||||||
|
# Use username
|
||||||
|
node cli/suspend @syuilo
|
||||||
|
|
||||||
|
# Use username (remote)
|
||||||
|
node cli/suspend @syuilo@misskey.xyz
|
||||||
|
```
|
||||||
|
|
||||||
|
## Clean up cached remote files
|
||||||
|
``` shell
|
||||||
|
node cli/clean-cached-remote-files
|
||||||
|
```
|
||||||
|
|
||||||
|
## Clean up unused drive files
|
||||||
|
``` shell
|
||||||
|
node cli/clean-unused-drive-files
|
||||||
|
```
|
||||||
|
> We recommend that you announce a user that unused drive files will be deleted before performing this operation, as it may delete the user's important files.
|
@ -7,7 +7,39 @@ node_modules/kue/bin/kue-dashboard -p 3050
|
|||||||
```
|
```
|
||||||
ポート3050にアクセスするとUIが表示されます
|
ポート3050にアクセスするとUIが表示されます
|
||||||
|
|
||||||
|
## 管理者ユーザーを設定する
|
||||||
|
``` shell
|
||||||
|
node cli/mark-admin (ユーザーID または ユーザー名)
|
||||||
|
```
|
||||||
|
|
||||||
|
## 'verified'ユーザーを設定する
|
||||||
|
``` shell
|
||||||
|
node cli/mark-verified (ユーザーID または ユーザー名)
|
||||||
|
```
|
||||||
|
|
||||||
## ユーザーを凍結する
|
## ユーザーを凍結する
|
||||||
``` shell
|
``` shell
|
||||||
node cli/suspend (ユーザーID)
|
node cli/suspend (ユーザーID または ユーザー名)
|
||||||
```
|
```
|
||||||
|
例:
|
||||||
|
``` shell
|
||||||
|
# ユーザーID
|
||||||
|
node cli/suspend 57d01a501fdf2d07be417afe
|
||||||
|
|
||||||
|
# ユーザー名
|
||||||
|
node cli/suspend @syuilo
|
||||||
|
|
||||||
|
# ユーザー名 (リモート)
|
||||||
|
node cli/suspend @syuilo@misskey.xyz
|
||||||
|
```
|
||||||
|
|
||||||
|
## キャッシュされたリモートファイルをクリーンアップする
|
||||||
|
``` shell
|
||||||
|
node cli/clean-cached-remote-files
|
||||||
|
```
|
||||||
|
|
||||||
|
## 使われていないドライブのファイルをクリーンアップする
|
||||||
|
``` shell
|
||||||
|
node cli/clean-unused-drive-files
|
||||||
|
```
|
||||||
|
> ユーザーの大事なファイルを削除する可能性があるので、この操作を実行する前にユーザーに告知することをお勧めします。
|
||||||
|
110
docs/setup.en.md
@ -8,18 +8,13 @@ This guide describes how to install and setup Misskey.
|
|||||||
|
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
|
|
||||||
*1.* reCAPTCHA tokens
|
*1.* Create Misskey user
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
Misskey requires reCAPTCHA tokens.
|
Running misskey on root is not a good idea so we create a user for that.
|
||||||
Please visit https://www.google.com/recaptcha/intro/ and generate keys.
|
In debian for exemple :
|
||||||
|
|
||||||
*(optional)* Generating VAPID keys
|
```
|
||||||
----------------------------------------------------------------
|
adduser --disabled-password --disabled-login misskey
|
||||||
If you want to enable ServiceWroker, you need to generate VAPID keys:
|
|
||||||
|
|
||||||
``` shell
|
|
||||||
npm install web-push -g
|
|
||||||
web-push generate-vapid-keys
|
|
||||||
```
|
```
|
||||||
|
|
||||||
*2.* Install dependencies
|
*2.* Install dependencies
|
||||||
@ -27,25 +22,52 @@ web-push generate-vapid-keys
|
|||||||
Please install and setup these softwares:
|
Please install and setup these softwares:
|
||||||
|
|
||||||
#### Dependencies :package:
|
#### Dependencies :package:
|
||||||
* *Node.js* and *npm*
|
* **[Node.js](https://nodejs.org/en/)**
|
||||||
* **[MongoDB](https://www.mongodb.com/)**
|
* **[MongoDB](https://www.mongodb.com/)** >= 3.6
|
||||||
* **[Redis](https://redis.io/)**
|
* **[Redis](https://redis.io/)**
|
||||||
* **[ImageMagick](http://www.imagemagick.org/script/index.php)** >= 7.0
|
|
||||||
|
|
||||||
##### Optional
|
##### Optional
|
||||||
* [Elasticsearch](https://www.elastic.co/) - used to provide searching feature instead of MongoDB
|
* [Elasticsearch](https://www.elastic.co/) - used to provide searching feature instead of MongoDB
|
||||||
|
|
||||||
*3.* Install Misskey
|
|
||||||
----------------------------------------------------------------
|
|
||||||
1. `git clone -b master git://github.com/syuilo/misskey.git`
|
|
||||||
2. `cd misskey`
|
|
||||||
3. `npm install`
|
|
||||||
|
|
||||||
*4.* Prepare configuration
|
*3.* Setup MongoDB
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
You need to generate config file via `npm run config` command.
|
In root :
|
||||||
|
1. `mongo` Go to the mongo shell
|
||||||
|
2. `use misskey` Use the misskey database
|
||||||
|
3. `db.users.save( {dummy:"dummy"} )` Write dummy data to initialize the db.
|
||||||
|
4. `db.createUser( { user: "misskey", pwd: "<password>", roles: [ { role: "readWrite", db: "misskey" } ] } )` Create the misskey user.
|
||||||
|
5. `exit` You're done !
|
||||||
|
|
||||||
*5.* Build Misskey
|
*4.* Install Misskey
|
||||||
|
----------------------------------------------------------------
|
||||||
|
1. `su - misskey` Connect to misskey user.
|
||||||
|
2. `git clone -b master git://github.com/syuilo/misskey.git` Clone the misskey repo from master branch.
|
||||||
|
3. `cd misskey` Navigate to misskey directory
|
||||||
|
4. `git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)` Checkout to the [latest release](https://github.com/syuilo/misskey/releases/latest)
|
||||||
|
5. `npm install` Install misskey dependencies.
|
||||||
|
|
||||||
|
*(optional)* reCAPTCHA tokens
|
||||||
|
----------------------------------------------------------------
|
||||||
|
If you want to enable reCAPTCHA, you need to generate reCAPTCHA tokens:
|
||||||
|
Please visit https://www.google.com/recaptcha/intro/ and generate keys.
|
||||||
|
|
||||||
|
*(optional)* Generating VAPID keys
|
||||||
|
----------------------------------------------------------------
|
||||||
|
If you want to enable ServiceWroker, you need to generate VAPID keys:
|
||||||
|
Unless you have set your global node_modules location elsewhere, you need to run this in root.
|
||||||
|
|
||||||
|
``` shell
|
||||||
|
npm install web-push -g
|
||||||
|
web-push generate-vapid-keys
|
||||||
|
```
|
||||||
|
|
||||||
|
*5.* Make configuration file
|
||||||
|
----------------------------------------------------------------
|
||||||
|
1. `cp .config/example.yml .config/default.yml` Copy the `.config/example.yml` and rename it to `default.yml`.
|
||||||
|
2. Edit `default.yml`
|
||||||
|
|
||||||
|
*6.* Build Misskey
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
|
|
||||||
Build misskey with the following:
|
Build misskey with the following:
|
||||||
@ -61,14 +83,48 @@ If you're still encountering errors about some modules, use node-gyp:
|
|||||||
3. `node-gyp build`
|
3. `node-gyp build`
|
||||||
4. `npm run build`
|
4. `npm run build`
|
||||||
|
|
||||||
*6.* That is it.
|
*7.* That is it.
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
Well done! Now, you have an environment that run to Misskey.
|
Well done! Now, you have an environment that run to Misskey.
|
||||||
|
|
||||||
### Launch
|
### Launch normally
|
||||||
Just `sudo npm start`. GLHF!
|
Just `npm start`. GLHF!
|
||||||
|
|
||||||
|
### Launch with systemd
|
||||||
|
|
||||||
|
1. Create a systemd service here: `/etc/systemd/system/misskey.service`
|
||||||
|
2. Edit it, and paste this and save:
|
||||||
|
|
||||||
|
```
|
||||||
|
[Unit]
|
||||||
|
Description=Misskey daemon
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=misskey
|
||||||
|
ExecStart=/usr/bin/npm start
|
||||||
|
WorkingDirectory=/home/misskey/misskey
|
||||||
|
TimeoutSec=60
|
||||||
|
StandardOutput=syslog
|
||||||
|
StandardError=syslog
|
||||||
|
SyslogIdentifier=misskey
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
```
|
||||||
|
|
||||||
|
3. `systemctl daemon-reload ; systemctl enable misskey` Reload systemd and enable the misskey service.
|
||||||
|
4. `systemctl start misskey` Start the misskey service.
|
||||||
|
|
||||||
|
You can check if the service is running with `systemctl status misskey`.
|
||||||
|
|
||||||
### Way to Update to latest version of your Misskey
|
### Way to Update to latest version of your Misskey
|
||||||
1. `git reset --hard && git pull origin master`
|
1. `git fetch`
|
||||||
2. `npm install`
|
2. `git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)`
|
||||||
3. `npm run build`
|
3. `npm install`
|
||||||
|
4. `npm run build`
|
||||||
|
|
||||||
|
----------------------------------------------------------------
|
||||||
|
|
||||||
|
If you have any questions or troubles, feel free to contact us!
|
||||||
|
127
docs/setup.ja.md
@ -8,10 +8,48 @@ Misskeyサーバーの構築にご関心をお寄せいただきありがとう
|
|||||||
|
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
|
|
||||||
*1.* reCAPTCHAトークンの用意
|
*1.* Misskeyユーザーの作成
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
MisskeyはreCAPTCHAトークンを必要とします。
|
Misskeyのrootで実行しない方がよいため、代わりにユーザーを作成します。
|
||||||
https://www.google.com/recaptcha/intro/ にアクセスしてトークンを生成してください。
|
Debianの例:
|
||||||
|
|
||||||
|
```
|
||||||
|
adduser --disabled-password --disabled-login misskey
|
||||||
|
```
|
||||||
|
|
||||||
|
*2.* 依存関係をインストールする
|
||||||
|
----------------------------------------------------------------
|
||||||
|
これらのソフトウェアをインストール・設定してください:
|
||||||
|
|
||||||
|
#### 依存関係 :package:
|
||||||
|
* **[Node.js](https://nodejs.org/en/)**
|
||||||
|
* **[MongoDB](https://www.mongodb.com/)** (3.6以上)
|
||||||
|
* **[Redis](https://redis.io/)**
|
||||||
|
|
||||||
|
##### オプション
|
||||||
|
* [Elasticsearch](https://www.elastic.co/) - 検索機能を向上させるために用います。
|
||||||
|
|
||||||
|
*3.* MongoDBの設定
|
||||||
|
----------------------------------------------------------------
|
||||||
|
ルートで:
|
||||||
|
1. `mongo` mongoシェルを起動
|
||||||
|
2. `use misskey` misskeyデータベースを使用
|
||||||
|
3. `db.users.save( {dummy:"dummy"} )` ダミーデータを書き込みDBを初期化
|
||||||
|
4. `db.createUser( { user: "misskey", pwd: "<password>", roles: [ { role: "readWrite", db: "misskey" } ] } )` misskeyユーザーを作成
|
||||||
|
5. `exit` mongoシェルを終了
|
||||||
|
|
||||||
|
*4.* Misskeyのインストール
|
||||||
|
----------------------------------------------------------------
|
||||||
|
1. `su - misskey` misskeyユーザーを使用
|
||||||
|
2. `git clone -b master git://github.com/syuilo/misskey.git` masterブランチからMisskeyレポジトリをクローン
|
||||||
|
3. `cd misskey` misskeyディレクトリに移動
|
||||||
|
4. `git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)` [最新のリリース](https://github.com/syuilo/misskey/releases/latest)を確認
|
||||||
|
5. `npm install` Misskeyの依存パッケージをインストール
|
||||||
|
|
||||||
|
*(オプション)* reCAPTCHAトークン
|
||||||
|
----------------------------------------------------------------
|
||||||
|
reCAPTCHAを有効にする場合、reCAPTCHAトークンを取得する必要があります。
|
||||||
|
https://www.google.com/recaptcha/intro/ にアクセスしてトークンを取得してください。
|
||||||
|
|
||||||
*(オプション)* VAPIDキーペアの生成
|
*(オプション)* VAPIDキーペアの生成
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
@ -22,56 +60,67 @@ npm install web-push -g
|
|||||||
web-push generate-vapid-keys
|
web-push generate-vapid-keys
|
||||||
```
|
```
|
||||||
|
|
||||||
*2.* 依存関係をインストールする
|
*5.* 設定ファイルを作成する
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
これらのソフトウェアをインストール・設定してください:
|
1. `cp .config/example.yml .config/default.yml` `.config/example.yml`をコピーし名前を`default.yml`にする。
|
||||||
|
2. `default.yml` を編集する。
|
||||||
|
|
||||||
#### 依存関係 :package:
|
*6.* Misskeyのビルド
|
||||||
* *Node.js* と *npm*
|
|
||||||
* **[MongoDB](https://www.mongodb.com/)**
|
|
||||||
* **[Redis](https://redis.io/)**
|
|
||||||
* **[ImageMagick](http://www.imagemagick.org/script/index.php)**
|
|
||||||
|
|
||||||
##### オプション
|
|
||||||
* [Elasticsearch](https://www.elastic.co/) - 検索機能を向上させるために用います。
|
|
||||||
|
|
||||||
*3.* Misskeyのインストール
|
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
1. `git clone -b master git://github.com/syuilo/misskey.git`
|
|
||||||
2. `cd misskey`
|
|
||||||
3. `npm install`
|
|
||||||
|
|
||||||
*4.* 設定ファイルを用意する
|
次のコマンドでMisskeyをビルドしてください:
|
||||||
----------------------------------------------------------------
|
|
||||||
`npm run config`コマンドを利用して、ガイドに従って情報を入力してください。
|
|
||||||
|
|
||||||
*5.* Misskeyのビルド
|
`npm run build`
|
||||||
----------------------------------------------------------------
|
|
||||||
|
Debianをお使いであれば、`build-essential`パッケージをインストールする必要があります。
|
||||||
|
|
||||||
|
何らかのモジュールでエラーが発生する場合はnode-gypを使ってください:
|
||||||
1. `npm install -g node-gyp`
|
1. `npm install -g node-gyp`
|
||||||
2. `node-gyp configure`
|
2. `node-gyp configure`
|
||||||
3. `node-gyp build`
|
3. `node-gyp build`
|
||||||
4. `npm run build`
|
4. `npm run build`
|
||||||
|
|
||||||
*6.* 以上です!
|
*7.* 以上です!
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
お疲れ様でした。これでMisskeyを動かす準備は整いました。
|
お疲れ様でした。これでMisskeyを動かす準備は整いました。
|
||||||
|
|
||||||
### 起動
|
### 通常起動
|
||||||
`sudo npm start`するだけです。GLHF!
|
`npm start`するだけです。GLHF!
|
||||||
|
|
||||||
|
### systemdを用いた起動
|
||||||
|
1. systemdサービスのファイルを作成: `/etc/systemd/system/misskey.service`
|
||||||
|
2. エディタで開き、以下のコードを貼り付けて保存:
|
||||||
|
|
||||||
|
```
|
||||||
|
[Unit]
|
||||||
|
Description=Misskey daemon
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=misskey
|
||||||
|
ExecStart=/usr/bin/npm start
|
||||||
|
WorkingDirectory=/home/misskey/misskey
|
||||||
|
TimeoutSec=60
|
||||||
|
StandardOutput=syslog
|
||||||
|
StandardError=syslog
|
||||||
|
SyslogIdentifier=misskey
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
```
|
||||||
|
|
||||||
|
3. `systemctl daemon-reload ; systemctl enable misskey` systemdを再読み込みしmisskeyサービスを有効化
|
||||||
|
4. `systemctl start misskey` misskeyサービスの起動
|
||||||
|
|
||||||
|
`systemctl status misskey`と入力すると、サービスの状態を調べることができます。
|
||||||
|
|
||||||
### Misskeyを最新バージョンにアップデートする方法:
|
### Misskeyを最新バージョンにアップデートする方法:
|
||||||
1. `git reset --hard && git pull origin master`
|
1. `git fetch`
|
||||||
2. `npm install`
|
2. `git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)`
|
||||||
3. `npm run build`
|
3. `npm install`
|
||||||
|
4. `npm run build`
|
||||||
|
|
||||||
## メモリが足りなくてビルドできない場合
|
----------------------------------------------------------------
|
||||||
Misskeyの(クライアントの)ビルドには、目安として8GBくらいのメモリを必要とします。
|
|
||||||
VPSなどでビルドする時は、もしかしたらメモリが足りなくなる可能性があります。
|
|
||||||
そうなった場合、もしVPSではなくあなたのPCが十分なメモリを搭載しているなら、あなたのPC上でビルドし、生成されたファイルをVPSにFTPでアップロードする方法を採ることができます。
|
|
||||||
|
|
||||||
1. あなたのPC上にMisskeyをインストールする
|
なにかお困りのことがありましたらお気軽にご連絡ください。
|
||||||
2. 設定ファイルを用意する。設定ファイルは、サーバーに合わせた設定にします。
|
|
||||||
3. npm run webpack
|
|
||||||
4. built/client をサーバーにアップロードする
|
|
||||||
5. サーバー上で、npm run gulp
|
|
||||||
6. 完了
|
|
||||||
|
26
gulpfile.ts
@ -9,6 +9,7 @@ import * as ts from 'gulp-typescript';
|
|||||||
const sourcemaps = require('gulp-sourcemaps');
|
const sourcemaps = require('gulp-sourcemaps');
|
||||||
import tslint from 'gulp-tslint';
|
import tslint from 'gulp-tslint';
|
||||||
const cssnano = require('gulp-cssnano');
|
const cssnano = require('gulp-cssnano');
|
||||||
|
const stylus = require('gulp-stylus');
|
||||||
import * as uglifyComposer from 'gulp-uglify/composer';
|
import * as uglifyComposer from 'gulp-uglify/composer';
|
||||||
import pug = require('gulp-pug');
|
import pug = require('gulp-pug');
|
||||||
import * as rimraf from 'rimraf';
|
import * as rimraf from 'rimraf';
|
||||||
@ -22,7 +23,6 @@ const uglifyes = require('uglify-es');
|
|||||||
|
|
||||||
const locales = require('./locales');
|
const locales = require('./locales');
|
||||||
import { fa } from './src/misc/fa';
|
import { fa } from './src/misc/fa';
|
||||||
const client = require('./built/client/meta.json');
|
|
||||||
import config from './src/config';
|
import config from './src/config';
|
||||||
|
|
||||||
const uglify = uglifyComposer(uglifyes, console);
|
const uglify = uglifyComposer(uglifyes, console);
|
||||||
@ -38,8 +38,6 @@ if (isDebug) {
|
|||||||
|
|
||||||
const constants = require('./src/const.json');
|
const constants = require('./src/const.json');
|
||||||
|
|
||||||
require('./src/client/docs/gulpfile.ts');
|
|
||||||
|
|
||||||
gulp.task('build', [
|
gulp.task('build', [
|
||||||
'build:ts',
|
'build:ts',
|
||||||
'build:copy',
|
'build:copy',
|
||||||
@ -47,8 +45,6 @@ gulp.task('build', [
|
|||||||
'doc'
|
'doc'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
gulp.task('rebuild', ['clean', 'build']);
|
|
||||||
|
|
||||||
gulp.task('build:ts', () => {
|
gulp.task('build:ts', () => {
|
||||||
const tsProject = ts.createProject('./tsconfig.json');
|
const tsProject = ts.createProject('./tsconfig.json');
|
||||||
|
|
||||||
@ -94,10 +90,10 @@ gulp.src('./src/**/*.ts')
|
|||||||
);
|
);
|
||||||
|
|
||||||
gulp.task('mocha', () =>
|
gulp.task('mocha', () =>
|
||||||
gulp.src([])
|
gulp.src('./test/**/*.ts')
|
||||||
.pipe(mocha({
|
.pipe(mocha({
|
||||||
exit: true,
|
exit: true,
|
||||||
compilers: 'ts:ts-node/register'
|
require: 'ts-node/register'
|
||||||
} as any))
|
} as any))
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -118,8 +114,9 @@ gulp.task('build:client', [
|
|||||||
'copy:client'
|
'copy:client'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
gulp.task('build:client:script', () =>
|
gulp.task('build:client:script', () => {
|
||||||
gulp.src(['./src/client/app/boot.js', './src/client/app/safe.js'])
|
const client = require('./built/client/meta.json');
|
||||||
|
return gulp.src(['./src/client/app/boot.js', './src/client/app/safe.js'])
|
||||||
.pipe(replace('VERSION', JSON.stringify(client.version)))
|
.pipe(replace('VERSION', JSON.stringify(client.version)))
|
||||||
.pipe(replace('API', JSON.stringify(config.api_url)))
|
.pipe(replace('API', JSON.stringify(config.api_url)))
|
||||||
.pipe(replace('ENV', JSON.stringify(env)))
|
.pipe(replace('ENV', JSON.stringify(env)))
|
||||||
@ -127,8 +124,8 @@ gulp.task('build:client:script', () =>
|
|||||||
.pipe(isProduction ? uglify({
|
.pipe(isProduction ? uglify({
|
||||||
toplevel: true
|
toplevel: true
|
||||||
} as any) : gutil.noop())
|
} as any) : gutil.noop())
|
||||||
.pipe(gulp.dest('./built/client/assets/')) as any
|
.pipe(gulp.dest('./built/client/assets/'));
|
||||||
);
|
});
|
||||||
|
|
||||||
gulp.task('build:client:styles', () =>
|
gulp.task('build:client:styles', () =>
|
||||||
gulp.src('./src/client/app/init.css')
|
gulp.src('./src/client/app/init.css')
|
||||||
@ -201,3 +198,10 @@ gulp.task('build:client:pug', [
|
|||||||
}))
|
}))
|
||||||
.pipe(gulp.dest('./built/client/app/'))
|
.pipe(gulp.dest('./built/client/app/'))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
gulp.task('doc', () =>
|
||||||
|
gulp.src('./src/docs/**/*.styl')
|
||||||
|
.pipe(stylus())
|
||||||
|
.pipe((cssnano as any)())
|
||||||
|
.pipe(gulp.dest('./built/docs/assets/'))
|
||||||
|
);
|
||||||
|
@ -51,6 +51,7 @@ common:
|
|||||||
my-token-regenerated: "あなたのトークンが更新されたのでサインアウトします。"
|
my-token-regenerated: "あなたのトークンが更新されたのでサインアウトします。"
|
||||||
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
|
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
|
||||||
show-reversi-board-labels: "リバーシのボードの行と列のラベルを表示"
|
show-reversi-board-labels: "リバーシのボードの行と列のラベルを表示"
|
||||||
|
verified-user: "認証済みのユーザー"
|
||||||
reversi:
|
reversi:
|
||||||
drawn: "引き分け"
|
drawn: "引き分け"
|
||||||
my-turn: "あなたのターンです"
|
my-turn: "あなたのターンです"
|
||||||
@ -85,6 +86,7 @@ common:
|
|||||||
widgets: "ウィジェット"
|
widgets: "ウィジェット"
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
notifications: "通知"
|
notifications: "通知"
|
||||||
list: "リスト"
|
list: "リスト"
|
||||||
@ -287,6 +289,8 @@ desktop/views/components/drive.file.vue:
|
|||||||
banner: "バナー"
|
banner: "バナー"
|
||||||
contextmenu:
|
contextmenu:
|
||||||
rename: "名前を変更"
|
rename: "名前を変更"
|
||||||
|
mark-as-sensitive: "閲覧注意に設定"
|
||||||
|
unmark-as-sensitive: "閲覧注意を解除"
|
||||||
copy-url: "URLをコピー"
|
copy-url: "URLをコピー"
|
||||||
download: "ダウンロード"
|
download: "ダウンロード"
|
||||||
else-files: "その他..."
|
else-files: "その他..."
|
||||||
@ -330,6 +334,12 @@ desktop/views/components/drive.vue:
|
|||||||
create-folder: "フォルダーを作成"
|
create-folder: "フォルダーを作成"
|
||||||
upload: "ファイルをアップロード"
|
upload: "ファイルをアップロード"
|
||||||
url-upload: "URLからアップロード"
|
url-upload: "URLからアップロード"
|
||||||
|
desktop/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
desktop/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
desktop/views/components/follow-button.vue:
|
desktop/views/components/follow-button.vue:
|
||||||
following: "フォロー中"
|
following: "フォロー中"
|
||||||
follow: "フォロー"
|
follow: "フォロー"
|
||||||
@ -404,6 +414,8 @@ desktop/views/components/post-form.vue:
|
|||||||
insert-a-kao: "v('ω')v"
|
insert-a-kao: "v('ω')v"
|
||||||
create-poll: "アンケートを作成"
|
create-poll: "アンケートを作成"
|
||||||
text-remain: "残り{}文字"
|
text-remain: "残り{}文字"
|
||||||
|
recent-tags: "最近"
|
||||||
|
click-to-tagging: "クリックでタグ付け"
|
||||||
desktop/views/components/post-form-window.vue:
|
desktop/views/components/post-form-window.vue:
|
||||||
note: "新規投稿"
|
note: "新規投稿"
|
||||||
reply: "返信"
|
reply: "返信"
|
||||||
@ -556,6 +568,7 @@ desktop/views/components/taskmanager.vue:
|
|||||||
desktop/views/components/timeline.vue:
|
desktop/views/components/timeline.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
list: "リスト"
|
list: "リスト"
|
||||||
desktop/views/components/ui.header.vue:
|
desktop/views/components/ui.header.vue:
|
||||||
@ -723,6 +736,12 @@ mobile/views/components/drive.file-detail.vue:
|
|||||||
move: "移動"
|
move: "移動"
|
||||||
hash: "ハッシュ (md5)"
|
hash: "ハッシュ (md5)"
|
||||||
exif: "EXIF"
|
exif: "EXIF"
|
||||||
|
mobile/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
mobile/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
mobile/views/components/follow-button.vue:
|
mobile/views/components/follow-button.vue:
|
||||||
following: "フォロー中"
|
following: "フォロー中"
|
||||||
follow: "フォロー"
|
follow: "フォロー"
|
||||||
@ -818,6 +837,7 @@ mobile/views/pages/following.vue:
|
|||||||
mobile/views/pages/home.vue:
|
mobile/views/pages/home.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
mobile/views/pages/messaging.vue:
|
mobile/views/pages/messaging.vue:
|
||||||
messaging: "メッセージ"
|
messaging: "メッセージ"
|
||||||
@ -931,7 +951,16 @@ docs:
|
|||||||
properties: "プロパティ"
|
properties: "プロパティ"
|
||||||
endpoints:
|
endpoints:
|
||||||
params: "パラメータ"
|
params: "パラメータ"
|
||||||
|
no-params: "パラメータはありません"
|
||||||
res: "レスポンス"
|
res: "レスポンス"
|
||||||
|
require-credential: "このエンドポイントは認証情報が必須です。"
|
||||||
|
require-permission: "このエンドポイントは{permission}の権限を必要とします。"
|
||||||
|
has-limit: "レートリミットがあります。"
|
||||||
|
duration-limit: "直近{duration}ミリ秒の間のこのエンドポイントへのリクエスト数の合計が{max}を超える場合はリクエストできません。"
|
||||||
|
min-interval-limit: "前回のリクエストから{interval}ミリ秒経っていない場合はリクエストできません。"
|
||||||
|
show-src: "このエンドポイントのソースコードも閲覧できます。"
|
||||||
|
show-src-link: "コードをGitHubで見る"
|
||||||
|
generated: "このドキュメントはAPI定義に基づき自動生成されています。"
|
||||||
props:
|
props:
|
||||||
name: "名前"
|
name: "名前"
|
||||||
type: "型"
|
type: "型"
|
||||||
|
@ -51,6 +51,7 @@ common:
|
|||||||
my-token-regenerated: "Dein Token wurde generiert. Du wirst jetzt abgemeldet."
|
my-token-regenerated: "Dein Token wurde generiert. Du wirst jetzt abgemeldet."
|
||||||
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
|
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
|
||||||
show-reversi-board-labels: "リバーシのボードの行と列のラベルを表示"
|
show-reversi-board-labels: "リバーシのボードの行と列のラベルを表示"
|
||||||
|
verified-user: "認証済みのユーザー"
|
||||||
reversi:
|
reversi:
|
||||||
drawn: "引き分け"
|
drawn: "引き分け"
|
||||||
my-turn: "あなたのターンです"
|
my-turn: "あなたのターンです"
|
||||||
@ -85,6 +86,7 @@ common:
|
|||||||
widgets: "Widget hinzufügen:"
|
widgets: "Widget hinzufügen:"
|
||||||
home: "Startseite"
|
home: "Startseite"
|
||||||
local: "Lokal"
|
local: "Lokal"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "Global"
|
global: "Global"
|
||||||
notifications: "Mitteilungen"
|
notifications: "Mitteilungen"
|
||||||
list: "Listen"
|
list: "Listen"
|
||||||
@ -287,6 +289,8 @@ desktop/views/components/drive.file.vue:
|
|||||||
banner: "Banner"
|
banner: "Banner"
|
||||||
contextmenu:
|
contextmenu:
|
||||||
rename: "Umbenennen"
|
rename: "Umbenennen"
|
||||||
|
mark-as-sensitive: "閲覧注意に設定"
|
||||||
|
unmark-as-sensitive: "閲覧注意を解除"
|
||||||
copy-url: "URL kopieren"
|
copy-url: "URL kopieren"
|
||||||
download: "Download"
|
download: "Download"
|
||||||
else-files: "Anderes…"
|
else-files: "Anderes…"
|
||||||
@ -330,6 +334,12 @@ desktop/views/components/drive.vue:
|
|||||||
create-folder: "Ein Verzeichnis erstellen"
|
create-folder: "Ein Verzeichnis erstellen"
|
||||||
upload: "Eine Datei hochladen"
|
upload: "Eine Datei hochladen"
|
||||||
url-upload: "Von einer URL hochladen"
|
url-upload: "Von einer URL hochladen"
|
||||||
|
desktop/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
desktop/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
desktop/views/components/follow-button.vue:
|
desktop/views/components/follow-button.vue:
|
||||||
following: "Folge ich"
|
following: "Folge ich"
|
||||||
follow: "Folgen"
|
follow: "Folgen"
|
||||||
@ -404,6 +414,8 @@ desktop/views/components/post-form.vue:
|
|||||||
insert-a-kao: "v('ω')v"
|
insert-a-kao: "v('ω')v"
|
||||||
create-poll: "Eine Abstimmung erstellen"
|
create-poll: "Eine Abstimmung erstellen"
|
||||||
text-remain: "{} Zeichen verbleibend"
|
text-remain: "{} Zeichen verbleibend"
|
||||||
|
recent-tags: "最近"
|
||||||
|
click-to-tagging: "クリックでタグ付け"
|
||||||
desktop/views/components/post-form-window.vue:
|
desktop/views/components/post-form-window.vue:
|
||||||
note: "Neue Notiz"
|
note: "Neue Notiz"
|
||||||
reply: "Antworten"
|
reply: "Antworten"
|
||||||
@ -556,6 +568,7 @@ desktop/views/components/taskmanager.vue:
|
|||||||
desktop/views/components/timeline.vue:
|
desktop/views/components/timeline.vue:
|
||||||
home: "Home"
|
home: "Home"
|
||||||
local: "Lokal"
|
local: "Lokal"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "Global"
|
global: "Global"
|
||||||
list: "Listen"
|
list: "Listen"
|
||||||
desktop/views/components/ui.header.vue:
|
desktop/views/components/ui.header.vue:
|
||||||
@ -723,6 +736,12 @@ mobile/views/components/drive.file-detail.vue:
|
|||||||
move: "移動"
|
move: "移動"
|
||||||
hash: "ハッシュ (md5)"
|
hash: "ハッシュ (md5)"
|
||||||
exif: "EXIF"
|
exif: "EXIF"
|
||||||
|
mobile/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
mobile/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
mobile/views/components/follow-button.vue:
|
mobile/views/components/follow-button.vue:
|
||||||
following: "フォロー中"
|
following: "フォロー中"
|
||||||
follow: "フォロー"
|
follow: "フォロー"
|
||||||
@ -818,6 +837,7 @@ mobile/views/pages/following.vue:
|
|||||||
mobile/views/pages/home.vue:
|
mobile/views/pages/home.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
mobile/views/pages/messaging.vue:
|
mobile/views/pages/messaging.vue:
|
||||||
messaging: "メッセージ"
|
messaging: "メッセージ"
|
||||||
@ -931,7 +951,16 @@ docs:
|
|||||||
properties: "プロパティ"
|
properties: "プロパティ"
|
||||||
endpoints:
|
endpoints:
|
||||||
params: "パラメータ"
|
params: "パラメータ"
|
||||||
|
no-params: "パラメータはありません"
|
||||||
res: "レスポンス"
|
res: "レスポンス"
|
||||||
|
require-credential: "このエンドポイントは認証情報が必須です。"
|
||||||
|
require-permission: "このエンドポイントは{permission}の権限を必要とします。"
|
||||||
|
has-limit: "レートリミットがあります。"
|
||||||
|
duration-limit: "直近{duration}ミリ秒の間のこのエンドポイントへのリクエスト数の合計が{max}を超える場合はリクエストできません。"
|
||||||
|
min-interval-limit: "前回のリクエストから{interval}ミリ秒経っていない場合はリクエストできません。"
|
||||||
|
show-src: "このエンドポイントのソースコードも閲覧できます。"
|
||||||
|
show-src-link: "コードをGitHubで見る"
|
||||||
|
generated: "このドキュメントはAPI定義に基づき自動生成されています。"
|
||||||
props:
|
props:
|
||||||
name: "名前"
|
name: "名前"
|
||||||
type: "型"
|
type: "型"
|
||||||
|
@ -51,6 +51,7 @@ common:
|
|||||||
my-token-regenerated: "Your token has been regenerated, so you will be signed out."
|
my-token-regenerated: "Your token has been regenerated, so you will be signed out."
|
||||||
i-like-sushi: "I prefer sushi rather than pudding"
|
i-like-sushi: "I prefer sushi rather than pudding"
|
||||||
show-reversi-board-labels: "Show row and column labels in Reversi"
|
show-reversi-board-labels: "Show row and column labels in Reversi"
|
||||||
|
verified-user: "Verified user"
|
||||||
reversi:
|
reversi:
|
||||||
drawn: "Draw"
|
drawn: "Draw"
|
||||||
my-turn: "Your turn"
|
my-turn: "Your turn"
|
||||||
@ -85,12 +86,13 @@ common:
|
|||||||
widgets: "Widgets"
|
widgets: "Widgets"
|
||||||
home: "Home"
|
home: "Home"
|
||||||
local: "Local"
|
local: "Local"
|
||||||
|
hybrid: "Social"
|
||||||
global: "Global"
|
global: "Global"
|
||||||
notifications: "Notifications"
|
notifications: "Notifications"
|
||||||
list: "Lists"
|
list: "Lists"
|
||||||
swap-left: "Move to the left"
|
swap-left: "Move to the left"
|
||||||
swap-right: "Move to the right"
|
swap-right: "Move to the right"
|
||||||
swap-up: "Move upward"
|
swap-up: "Move up"
|
||||||
swap-down: "Move downward"
|
swap-down: "Move downward"
|
||||||
remove: "Remove"
|
remove: "Remove"
|
||||||
add-column: "Add a column"
|
add-column: "Add a column"
|
||||||
@ -270,7 +272,7 @@ desktop/views/components/choose-file-from-drive-window.vue:
|
|||||||
upload: "Upload files from your device"
|
upload: "Upload files from your device"
|
||||||
cancel: "Cancel"
|
cancel: "Cancel"
|
||||||
ok: "OK"
|
ok: "OK"
|
||||||
choose-prompt: "Choose a file"
|
choose-prompt: "Choose files"
|
||||||
desktop/views/components/choose-folder-from-drive-window.vue:
|
desktop/views/components/choose-folder-from-drive-window.vue:
|
||||||
cancel: "Cancel"
|
cancel: "Cancel"
|
||||||
ok: "OK"
|
ok: "OK"
|
||||||
@ -287,6 +289,8 @@ desktop/views/components/drive.file.vue:
|
|||||||
banner: "Banner"
|
banner: "Banner"
|
||||||
contextmenu:
|
contextmenu:
|
||||||
rename: "Rename"
|
rename: "Rename"
|
||||||
|
mark-as-sensitive: "Mark as 'sensitive'"
|
||||||
|
unmark-as-sensitive: "Unmark as 'sensitive'"
|
||||||
copy-url: "Copy URL"
|
copy-url: "Copy URL"
|
||||||
download: "Download"
|
download: "Download"
|
||||||
else-files: "Others"
|
else-files: "Others"
|
||||||
@ -330,6 +334,12 @@ desktop/views/components/drive.vue:
|
|||||||
create-folder: "Create a folder"
|
create-folder: "Create a folder"
|
||||||
upload: "Upload a file"
|
upload: "Upload a file"
|
||||||
url-upload: "Upload from a URL"
|
url-upload: "Upload from a URL"
|
||||||
|
desktop/views/components/media-image.vue:
|
||||||
|
sensitive: "The content is NSFW"
|
||||||
|
click-to-show: "Click to show"
|
||||||
|
desktop/views/components/media-video.vue:
|
||||||
|
sensitive: "The content is NSFW"
|
||||||
|
click-to-show: "Click to show"
|
||||||
desktop/views/components/follow-button.vue:
|
desktop/views/components/follow-button.vue:
|
||||||
following: "Following"
|
following: "Following"
|
||||||
follow: "Follow"
|
follow: "Follow"
|
||||||
@ -404,6 +414,8 @@ desktop/views/components/post-form.vue:
|
|||||||
insert-a-kao: "v('ω')v"
|
insert-a-kao: "v('ω')v"
|
||||||
create-poll: "Create a poll"
|
create-poll: "Create a poll"
|
||||||
text-remain: "{} characters remaining"
|
text-remain: "{} characters remaining"
|
||||||
|
recent-tags: "Recent"
|
||||||
|
click-to-tagging: "Click to tagging"
|
||||||
desktop/views/components/post-form-window.vue:
|
desktop/views/components/post-form-window.vue:
|
||||||
note: "New note"
|
note: "New note"
|
||||||
reply: "Reply"
|
reply: "Reply"
|
||||||
@ -556,6 +568,7 @@ desktop/views/components/taskmanager.vue:
|
|||||||
desktop/views/components/timeline.vue:
|
desktop/views/components/timeline.vue:
|
||||||
home: "Home"
|
home: "Home"
|
||||||
local: "Local"
|
local: "Local"
|
||||||
|
hybrid: "Social"
|
||||||
global: "Global"
|
global: "Global"
|
||||||
list: "Lists"
|
list: "Lists"
|
||||||
desktop/views/components/ui.header.vue:
|
desktop/views/components/ui.header.vue:
|
||||||
@ -566,7 +579,7 @@ desktop/views/components/ui.header.account.vue:
|
|||||||
favorites: "Favorites"
|
favorites: "Favorites"
|
||||||
lists: "Lists"
|
lists: "Lists"
|
||||||
follow-requests: "Follow requests"
|
follow-requests: "Follow requests"
|
||||||
customize: "Customization of the home layout"
|
customize: "Customize home layout"
|
||||||
settings: "Settings"
|
settings: "Settings"
|
||||||
signout: "Sign out"
|
signout: "Sign out"
|
||||||
dark: "Submerge in dark"
|
dark: "Submerge in dark"
|
||||||
@ -714,7 +727,7 @@ mobile/views/components/drive.vue:
|
|||||||
mobile/views/components/drive-file-detail.vue:
|
mobile/views/components/drive-file-detail.vue:
|
||||||
rename: "Rename"
|
rename: "Rename"
|
||||||
mobile/views/components/drive-file-chooser.vue:
|
mobile/views/components/drive-file-chooser.vue:
|
||||||
select-file: "Choose a file"
|
select-file: "Choose files"
|
||||||
mobile/views/components/drive-folder-chooser.vue:
|
mobile/views/components/drive-folder-chooser.vue:
|
||||||
select-folder: "Choose a folder"
|
select-folder: "Choose a folder"
|
||||||
mobile/views/components/drive.file-detail.vue:
|
mobile/views/components/drive.file-detail.vue:
|
||||||
@ -723,6 +736,12 @@ mobile/views/components/drive.file-detail.vue:
|
|||||||
move: "Move"
|
move: "Move"
|
||||||
hash: "Hash (md5)"
|
hash: "Hash (md5)"
|
||||||
exif: "EXIF"
|
exif: "EXIF"
|
||||||
|
mobile/views/components/media-image.vue:
|
||||||
|
sensitive: "The content is NSFW"
|
||||||
|
click-to-show: "Click to show"
|
||||||
|
mobile/views/components/media-video.vue:
|
||||||
|
sensitive: "The content is NSFW"
|
||||||
|
click-to-show: "Click to show"
|
||||||
mobile/views/components/follow-button.vue:
|
mobile/views/components/follow-button.vue:
|
||||||
following: "Following"
|
following: "Following"
|
||||||
follow: "Follow"
|
follow: "Follow"
|
||||||
@ -818,6 +837,7 @@ mobile/views/pages/following.vue:
|
|||||||
mobile/views/pages/home.vue:
|
mobile/views/pages/home.vue:
|
||||||
home: "Home"
|
home: "Home"
|
||||||
local: "Local"
|
local: "Local"
|
||||||
|
hybrid: "Social"
|
||||||
global: "Global"
|
global: "Global"
|
||||||
mobile/views/pages/messaging.vue:
|
mobile/views/pages/messaging.vue:
|
||||||
messaging: "Messaging"
|
messaging: "Messaging"
|
||||||
@ -852,7 +872,7 @@ mobile/views/pages/search.vue:
|
|||||||
search: "Search"
|
search: "Search"
|
||||||
empty: "No posts were found for '{}'"
|
empty: "No posts were found for '{}'"
|
||||||
mobile/views/pages/selectdrive.vue:
|
mobile/views/pages/selectdrive.vue:
|
||||||
select-file: "Choose a file"
|
select-file: "Choose files"
|
||||||
mobile/views/pages/settings.vue:
|
mobile/views/pages/settings.vue:
|
||||||
signed-in-as: "Signed in as {}"
|
signed-in-as: "Signed in as {}"
|
||||||
lang: "Language"
|
lang: "Language"
|
||||||
@ -931,7 +951,16 @@ docs:
|
|||||||
properties: "Properties"
|
properties: "Properties"
|
||||||
endpoints:
|
endpoints:
|
||||||
params: "Parameters"
|
params: "Parameters"
|
||||||
|
no-params: "No parameter."
|
||||||
res: "Response"
|
res: "Response"
|
||||||
|
require-credential: "This endpoint requires the authentication information."
|
||||||
|
require-permission: "This endpoint requires {permission} permission."
|
||||||
|
has-limit: "There is a rate limit."
|
||||||
|
duration-limit: "You can't request when a frequency of a request in during {duration} milliseconds exceeds {max} times."
|
||||||
|
min-interval-limit: "You can't request before {interval} milliseconds has passed since previous request."
|
||||||
|
show-src: "You can view source code for this endpoint."
|
||||||
|
show-src-link: "See the code on GitHub"
|
||||||
|
generated: "This doc is generated by an API definition."
|
||||||
props:
|
props:
|
||||||
name: "Name"
|
name: "Name"
|
||||||
type: "Type"
|
type: "Type"
|
||||||
|
@ -51,6 +51,7 @@ common:
|
|||||||
my-token-regenerated: "Tu token se ha regenerado vas a ser desconectado."
|
my-token-regenerated: "Tu token se ha regenerado vas a ser desconectado."
|
||||||
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
|
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
|
||||||
show-reversi-board-labels: "リバーシのボードの行と列のラベルを表示"
|
show-reversi-board-labels: "リバーシのボードの行と列のラベルを表示"
|
||||||
|
verified-user: "認証済みのユーザー"
|
||||||
reversi:
|
reversi:
|
||||||
drawn: "引き分け"
|
drawn: "引き分け"
|
||||||
my-turn: "あなたのターンです"
|
my-turn: "あなたのターンです"
|
||||||
@ -85,6 +86,7 @@ common:
|
|||||||
widgets: "Accesorios"
|
widgets: "Accesorios"
|
||||||
home: "Inicio"
|
home: "Inicio"
|
||||||
local: "Local"
|
local: "Local"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "Global"
|
global: "Global"
|
||||||
notifications: "Notificaciones"
|
notifications: "Notificaciones"
|
||||||
list: "Listado"
|
list: "Listado"
|
||||||
@ -287,6 +289,8 @@ desktop/views/components/drive.file.vue:
|
|||||||
banner: "Banner"
|
banner: "Banner"
|
||||||
contextmenu:
|
contextmenu:
|
||||||
rename: "Renombrar"
|
rename: "Renombrar"
|
||||||
|
mark-as-sensitive: "閲覧注意に設定"
|
||||||
|
unmark-as-sensitive: "閲覧注意を解除"
|
||||||
copy-url: "Copia la URL"
|
copy-url: "Copia la URL"
|
||||||
download: "Descargar"
|
download: "Descargar"
|
||||||
else-files: "Otros"
|
else-files: "Otros"
|
||||||
@ -330,6 +334,12 @@ desktop/views/components/drive.vue:
|
|||||||
create-folder: "Crear una carpeta"
|
create-folder: "Crear una carpeta"
|
||||||
upload: "Subir fichero"
|
upload: "Subir fichero"
|
||||||
url-upload: "Subir desde una URL"
|
url-upload: "Subir desde una URL"
|
||||||
|
desktop/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
desktop/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
desktop/views/components/follow-button.vue:
|
desktop/views/components/follow-button.vue:
|
||||||
following: "Siguiendo"
|
following: "Siguiendo"
|
||||||
follow: "Sigue"
|
follow: "Sigue"
|
||||||
@ -404,6 +414,8 @@ desktop/views/components/post-form.vue:
|
|||||||
insert-a-kao: "v('ω')v"
|
insert-a-kao: "v('ω')v"
|
||||||
create-poll: "Crea una encuesta"
|
create-poll: "Crea una encuesta"
|
||||||
text-remain: "quedan {} caracteres"
|
text-remain: "quedan {} caracteres"
|
||||||
|
recent-tags: "最近"
|
||||||
|
click-to-tagging: "クリックでタグ付け"
|
||||||
desktop/views/components/post-form-window.vue:
|
desktop/views/components/post-form-window.vue:
|
||||||
note: "Nota nueva"
|
note: "Nota nueva"
|
||||||
reply: "Responder"
|
reply: "Responder"
|
||||||
@ -556,6 +568,7 @@ desktop/views/components/taskmanager.vue:
|
|||||||
desktop/views/components/timeline.vue:
|
desktop/views/components/timeline.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
list: "リスト"
|
list: "リスト"
|
||||||
desktop/views/components/ui.header.vue:
|
desktop/views/components/ui.header.vue:
|
||||||
@ -723,6 +736,12 @@ mobile/views/components/drive.file-detail.vue:
|
|||||||
move: "移動"
|
move: "移動"
|
||||||
hash: "ハッシュ (md5)"
|
hash: "ハッシュ (md5)"
|
||||||
exif: "EXIF"
|
exif: "EXIF"
|
||||||
|
mobile/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
mobile/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
mobile/views/components/follow-button.vue:
|
mobile/views/components/follow-button.vue:
|
||||||
following: "フォロー中"
|
following: "フォロー中"
|
||||||
follow: "フォロー"
|
follow: "フォロー"
|
||||||
@ -818,6 +837,7 @@ mobile/views/pages/following.vue:
|
|||||||
mobile/views/pages/home.vue:
|
mobile/views/pages/home.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
mobile/views/pages/messaging.vue:
|
mobile/views/pages/messaging.vue:
|
||||||
messaging: "メッセージ"
|
messaging: "メッセージ"
|
||||||
@ -931,7 +951,16 @@ docs:
|
|||||||
properties: "プロパティ"
|
properties: "プロパティ"
|
||||||
endpoints:
|
endpoints:
|
||||||
params: "パラメータ"
|
params: "パラメータ"
|
||||||
|
no-params: "パラメータはありません"
|
||||||
res: "レスポンス"
|
res: "レスポンス"
|
||||||
|
require-credential: "このエンドポイントは認証情報が必須です。"
|
||||||
|
require-permission: "このエンドポイントは{permission}の権限を必要とします。"
|
||||||
|
has-limit: "レートリミットがあります。"
|
||||||
|
duration-limit: "直近{duration}ミリ秒の間のこのエンドポイントへのリクエスト数の合計が{max}を超える場合はリクエストできません。"
|
||||||
|
min-interval-limit: "前回のリクエストから{interval}ミリ秒経っていない場合はリクエストできません。"
|
||||||
|
show-src: "このエンドポイントのソースコードも閲覧できます。"
|
||||||
|
show-src-link: "コードをGitHubで見る"
|
||||||
|
generated: "このドキュメントはAPI定義に基づき自動生成されています。"
|
||||||
props:
|
props:
|
||||||
name: "名前"
|
name: "名前"
|
||||||
type: "型"
|
type: "型"
|
||||||
|
@ -51,6 +51,7 @@ common:
|
|||||||
my-token-regenerated: "Votre token vient d'être généré, vous allez maintenant être déconnecté."
|
my-token-regenerated: "Votre token vient d'être généré, vous allez maintenant être déconnecté."
|
||||||
i-like-sushi: "Je préfère les sushis (au pudding)"
|
i-like-sushi: "Je préfère les sushis (au pudding)"
|
||||||
show-reversi-board-labels: "Afficher les étiquettes des lignes et colonnes dans Reversi"
|
show-reversi-board-labels: "Afficher les étiquettes des lignes et colonnes dans Reversi"
|
||||||
|
verified-user: "認証済みのユーザー"
|
||||||
reversi:
|
reversi:
|
||||||
drawn: "Partie nulle"
|
drawn: "Partie nulle"
|
||||||
my-turn: "C’est votre tour"
|
my-turn: "C’est votre tour"
|
||||||
@ -85,6 +86,7 @@ common:
|
|||||||
widgets: "Widgets"
|
widgets: "Widgets"
|
||||||
home: "Accueil"
|
home: "Accueil"
|
||||||
local: "Local"
|
local: "Local"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "Global"
|
global: "Global"
|
||||||
notifications: "Notifications"
|
notifications: "Notifications"
|
||||||
list: "Liste"
|
list: "Liste"
|
||||||
@ -287,6 +289,8 @@ desktop/views/components/drive.file.vue:
|
|||||||
banner: "Bannière"
|
banner: "Bannière"
|
||||||
contextmenu:
|
contextmenu:
|
||||||
rename: "Renommer"
|
rename: "Renommer"
|
||||||
|
mark-as-sensitive: "Marquer comme sensible"
|
||||||
|
unmark-as-sensitive: "Ne pas marquer comme sensible"
|
||||||
copy-url: "Copier l'URL"
|
copy-url: "Copier l'URL"
|
||||||
download: "Télécharger"
|
download: "Télécharger"
|
||||||
else-files: "Autres..."
|
else-files: "Autres..."
|
||||||
@ -330,6 +334,12 @@ desktop/views/components/drive.vue:
|
|||||||
create-folder: "Créer un dossier"
|
create-folder: "Créer un dossier"
|
||||||
upload: "Uploader un fichier"
|
upload: "Uploader un fichier"
|
||||||
url-upload: "Uploader d'un URL"
|
url-upload: "Uploader d'un URL"
|
||||||
|
desktop/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "Cliquer pour afficher"
|
||||||
|
desktop/views/components/media-video.vue:
|
||||||
|
sensitive: "Le contenu est NSFW"
|
||||||
|
click-to-show: "Cliquer pour afficher"
|
||||||
desktop/views/components/follow-button.vue:
|
desktop/views/components/follow-button.vue:
|
||||||
following: "Abonnements"
|
following: "Abonnements"
|
||||||
follow: "Suivre"
|
follow: "Suivre"
|
||||||
@ -381,7 +391,7 @@ desktop/views/components/notes.note.vue:
|
|||||||
desktop/views/components/notes.vue:
|
desktop/views/components/notes.vue:
|
||||||
error: "Échec du chargement."
|
error: "Échec du chargement."
|
||||||
retry: "Réessayer"
|
retry: "Réessayer"
|
||||||
load-more: "もっと読み込む"
|
load-more: "Afficher plus"
|
||||||
desktop/views/components/notifications.vue:
|
desktop/views/components/notifications.vue:
|
||||||
more: "Plus"
|
more: "Plus"
|
||||||
empty: "Pas de notifications"
|
empty: "Pas de notifications"
|
||||||
@ -404,6 +414,8 @@ desktop/views/components/post-form.vue:
|
|||||||
insert-a-kao: "v('ω')v"
|
insert-a-kao: "v('ω')v"
|
||||||
create-poll: "Créer un sondage"
|
create-poll: "Créer un sondage"
|
||||||
text-remain: "{} charactères restants"
|
text-remain: "{} charactères restants"
|
||||||
|
recent-tags: "Récent"
|
||||||
|
click-to-tagging: "クリックでタグ付け"
|
||||||
desktop/views/components/post-form-window.vue:
|
desktop/views/components/post-form-window.vue:
|
||||||
note: "Nouvelle note"
|
note: "Nouvelle note"
|
||||||
reply: "Répondre"
|
reply: "Répondre"
|
||||||
@ -444,8 +456,8 @@ desktop/views/components/settings.vue:
|
|||||||
api-via-stream-desc: "この設定をオンにすると、websocket接続を経由してAPIリクエストが行われます(パフォーマンス向上が期待できます)。オフにすると、ネイティブの fetch APIが利用されます。この設定はこのデバイスのみ有効です。"
|
api-via-stream-desc: "この設定をオンにすると、websocket接続を経由してAPIリクエストが行われます(パフォーマンス向上が期待できます)。オフにすると、ネイティブの fetch APIが利用されます。この設定はこのデバイスのみ有効です。"
|
||||||
display: "Affichage et design"
|
display: "Affichage et design"
|
||||||
customize: "Personnaliser l'Accueil"
|
customize: "Personnaliser l'Accueil"
|
||||||
choose-wallpaper: "壁紙を選択"
|
choose-wallpaper: "Sélectionner un fond d'écran"
|
||||||
delete-wallpaper: "壁紙を削除"
|
delete-wallpaper: "Supprimer le fond d'écran"
|
||||||
dark-mode: "Mode nuit"
|
dark-mode: "Mode nuit"
|
||||||
circle-icons: "Utiliser des icônes circulaires"
|
circle-icons: "Utiliser des icônes circulaires"
|
||||||
gradient-window-header: "Utiliser les dégradés sur la barre de titre de la fenêtre"
|
gradient-window-header: "Utiliser les dégradés sur la barre de titre de la fenêtre"
|
||||||
@ -473,7 +485,7 @@ desktop/views/components/settings.vue:
|
|||||||
cache-warn: "クリーンアップを行うと、ブラウザに記憶されたアカウント情報のキャッシュ、書きかけの投稿・返信・メッセージ、およびその他のデータ(設定情報含む)が削除されます。クリーンアップを行った後はページを再度読み込みする必要があります。"
|
cache-warn: "クリーンアップを行うと、ブラウザに記憶されたアカウント情報のキャッシュ、書きかけの投稿・返信・メッセージ、およびその他のデータ(設定情報含む)が削除されます。クリーンアップを行った後はページを再度読み込みする必要があります。"
|
||||||
cache-cleared: "Cache nettoyé"
|
cache-cleared: "Cache nettoyé"
|
||||||
cache-cleared-desc: "Veuillez recharger la page."
|
cache-cleared-desc: "Veuillez recharger la page."
|
||||||
auto-watch: "投稿の自動ウォッチ"
|
auto-watch: "Montre automatique"
|
||||||
auto-watch-desc: "リアクションしたり返信したりした投稿に関する通知を自動的に受け取るようにします。"
|
auto-watch-desc: "リアクションしたり返信したりした投稿に関する通知を自動的に受け取るようにします。"
|
||||||
about: "À propose de Misskey"
|
about: "À propose de Misskey"
|
||||||
operator: "L'admin de cette instance"
|
operator: "L'admin de cette instance"
|
||||||
@ -541,9 +553,9 @@ desktop/views/components/settings.profile.vue:
|
|||||||
description: "Description"
|
description: "Description"
|
||||||
birthday: "Date de naissance"
|
birthday: "Date de naissance"
|
||||||
save: "Mettre à jour le profil"
|
save: "Mettre à jour le profil"
|
||||||
locked-account: "アカウントの保護"
|
locked-account: "Protéger votre compte"
|
||||||
is-locked: "投稿を非公開にする"
|
is-locked: "投稿を非公開にする"
|
||||||
other: "その他"
|
other: "Autre"
|
||||||
is-bot: "Ce compte est un Bot"
|
is-bot: "Ce compte est un Bot"
|
||||||
is-cat: "Ce compte est un Chat"
|
is-cat: "Ce compte est un Chat"
|
||||||
desktop/views/components/sub-note-content.vue:
|
desktop/views/components/sub-note-content.vue:
|
||||||
@ -556,6 +568,7 @@ desktop/views/components/taskmanager.vue:
|
|||||||
desktop/views/components/timeline.vue:
|
desktop/views/components/timeline.vue:
|
||||||
home: "Accueil"
|
home: "Accueil"
|
||||||
local: "Local"
|
local: "Local"
|
||||||
|
hybrid: "Social"
|
||||||
global: "Global"
|
global: "Global"
|
||||||
list: "Listes"
|
list: "Listes"
|
||||||
desktop/views/components/ui.header.vue:
|
desktop/views/components/ui.header.vue:
|
||||||
@ -605,7 +618,7 @@ desktop/views/components/window.vue:
|
|||||||
desktop/views/pages/deck/deck.tl-column.vue:
|
desktop/views/pages/deck/deck.tl-column.vue:
|
||||||
is-media-only: "Les publications médias uniquement"
|
is-media-only: "Les publications médias uniquement"
|
||||||
is-media-view: "Vue média"
|
is-media-view: "Vue média"
|
||||||
edit: "オプション"
|
edit: "Options"
|
||||||
desktop/views/pages/deck/deck.note.vue:
|
desktop/views/pages/deck/deck.note.vue:
|
||||||
reposted-by: "Reposté par {}"
|
reposted-by: "Reposté par {}"
|
||||||
private: "cette publication est privée"
|
private: "cette publication est privée"
|
||||||
@ -663,7 +676,7 @@ desktop/views/pages/user/user.profile.vue:
|
|||||||
muted: "Muting"
|
muted: "Muting"
|
||||||
unmute: "Enlever la sourdine"
|
unmute: "Enlever la sourdine"
|
||||||
desktop/views/pages/user/user.header.vue:
|
desktop/views/pages/user/user.header.vue:
|
||||||
posts: "投稿"
|
posts: "Notes"
|
||||||
following: "Suit"
|
following: "Suit"
|
||||||
followers: "Abonnés"
|
followers: "Abonnés"
|
||||||
is-bot: "Ce compte est un Bot"
|
is-bot: "Ce compte est un Bot"
|
||||||
@ -723,6 +736,12 @@ mobile/views/components/drive.file-detail.vue:
|
|||||||
move: "Déplacer"
|
move: "Déplacer"
|
||||||
hash: "Hash (md5)"
|
hash: "Hash (md5)"
|
||||||
exif: "EXIF"
|
exif: "EXIF"
|
||||||
|
mobile/views/components/media-image.vue:
|
||||||
|
sensitive: "Le contenu est NSFW"
|
||||||
|
click-to-show: "Cliquer pour afficher"
|
||||||
|
mobile/views/components/media-video.vue:
|
||||||
|
sensitive: "Le contenu est NSFW"
|
||||||
|
click-to-show: "Cliquer pour afficher"
|
||||||
mobile/views/components/follow-button.vue:
|
mobile/views/components/follow-button.vue:
|
||||||
following: "Abonnements"
|
following: "Abonnements"
|
||||||
follow: "Suivre"
|
follow: "Suivre"
|
||||||
@ -818,6 +837,7 @@ mobile/views/pages/following.vue:
|
|||||||
mobile/views/pages/home.vue:
|
mobile/views/pages/home.vue:
|
||||||
home: "Accueil"
|
home: "Accueil"
|
||||||
local: "Local"
|
local: "Local"
|
||||||
|
hybrid: "Social"
|
||||||
global: "Global"
|
global: "Global"
|
||||||
mobile/views/pages/messaging.vue:
|
mobile/views/pages/messaging.vue:
|
||||||
messaging: "Messagerie"
|
messaging: "Messagerie"
|
||||||
@ -931,7 +951,16 @@ docs:
|
|||||||
properties: "Propriétés"
|
properties: "Propriétés"
|
||||||
endpoints:
|
endpoints:
|
||||||
params: "Paramètres"
|
params: "Paramètres"
|
||||||
|
no-params: "Aucun paramètre"
|
||||||
res: "Réponse"
|
res: "Réponse"
|
||||||
|
require-credential: "このエンドポイントは認証情報が必須です。"
|
||||||
|
require-permission: "このエンドポイントは{permission}の権限を必要とします。"
|
||||||
|
has-limit: "レートリミットがあります。"
|
||||||
|
duration-limit: "直近{duration}ミリ秒の間のこのエンドポイントへのリクエスト数の合計が{max}を超える場合はリクエストできません。"
|
||||||
|
min-interval-limit: "前回のリクエストから{interval}ミリ秒経っていない場合はリクエストできません。"
|
||||||
|
show-src: "このエンドポイントのソースコードも閲覧できます。"
|
||||||
|
show-src-link: "Consulter le code sur GitHub"
|
||||||
|
generated: "このドキュメントはAPI定義に基づき自動生成されています。"
|
||||||
props:
|
props:
|
||||||
name: "Nom"
|
name: "Nom"
|
||||||
type: "Type"
|
type: "Type"
|
||||||
|
@ -19,9 +19,9 @@ const langs = {
|
|||||||
'es': loadLang('es')
|
'es': loadLang('es')
|
||||||
};
|
};
|
||||||
|
|
||||||
Object.entries(langs).map(([, locale]) => {
|
Object.values(langs).forEach(locale => {
|
||||||
// Extend native language (Japanese)
|
// Extend native language (Japanese)
|
||||||
locale = Object.assign({}, native, locale);
|
Object.assign(locale, native);
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = langs;
|
module.exports = langs;
|
||||||
|
@ -51,6 +51,7 @@ common:
|
|||||||
my-token-regenerated: "あなたのトークンが更新されたのでサインアウトします。"
|
my-token-regenerated: "あなたのトークンが更新されたのでサインアウトします。"
|
||||||
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
|
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
|
||||||
show-reversi-board-labels: "リバーシのボードの行と列のラベルを表示"
|
show-reversi-board-labels: "リバーシのボードの行と列のラベルを表示"
|
||||||
|
verified-user: "認証済みのユーザー"
|
||||||
reversi:
|
reversi:
|
||||||
drawn: "引き分け"
|
drawn: "引き分け"
|
||||||
my-turn: "あなたのターンです"
|
my-turn: "あなたのターンです"
|
||||||
@ -85,6 +86,7 @@ common:
|
|||||||
widgets: "ウィジェット"
|
widgets: "ウィジェット"
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
notifications: "通知"
|
notifications: "通知"
|
||||||
list: "リスト"
|
list: "リスト"
|
||||||
@ -287,6 +289,8 @@ desktop/views/components/drive.file.vue:
|
|||||||
banner: "バナー"
|
banner: "バナー"
|
||||||
contextmenu:
|
contextmenu:
|
||||||
rename: "名前を変更"
|
rename: "名前を変更"
|
||||||
|
mark-as-sensitive: "閲覧注意に設定"
|
||||||
|
unmark-as-sensitive: "閲覧注意を解除"
|
||||||
copy-url: "URLをコピー"
|
copy-url: "URLをコピー"
|
||||||
download: "ダウンロード"
|
download: "ダウンロード"
|
||||||
else-files: "その他..."
|
else-files: "その他..."
|
||||||
@ -330,6 +334,12 @@ desktop/views/components/drive.vue:
|
|||||||
create-folder: "フォルダーを作成"
|
create-folder: "フォルダーを作成"
|
||||||
upload: "ファイルをアップロード"
|
upload: "ファイルをアップロード"
|
||||||
url-upload: "URLからアップロード"
|
url-upload: "URLからアップロード"
|
||||||
|
desktop/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
desktop/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
desktop/views/components/follow-button.vue:
|
desktop/views/components/follow-button.vue:
|
||||||
following: "フォロー中"
|
following: "フォロー中"
|
||||||
follow: "フォロー"
|
follow: "フォロー"
|
||||||
@ -404,6 +414,8 @@ desktop/views/components/post-form.vue:
|
|||||||
insert-a-kao: "v('ω')v"
|
insert-a-kao: "v('ω')v"
|
||||||
create-poll: "アンケートを作成"
|
create-poll: "アンケートを作成"
|
||||||
text-remain: "残り{}文字"
|
text-remain: "残り{}文字"
|
||||||
|
recent-tags: "最近"
|
||||||
|
click-to-tagging: "クリックでタグ付け"
|
||||||
desktop/views/components/post-form-window.vue:
|
desktop/views/components/post-form-window.vue:
|
||||||
note: "新規投稿"
|
note: "新規投稿"
|
||||||
reply: "返信"
|
reply: "返信"
|
||||||
@ -556,6 +568,7 @@ desktop/views/components/taskmanager.vue:
|
|||||||
desktop/views/components/timeline.vue:
|
desktop/views/components/timeline.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
list: "リスト"
|
list: "リスト"
|
||||||
desktop/views/components/ui.header.vue:
|
desktop/views/components/ui.header.vue:
|
||||||
@ -723,6 +736,12 @@ mobile/views/components/drive.file-detail.vue:
|
|||||||
move: "移動"
|
move: "移動"
|
||||||
hash: "ハッシュ (md5)"
|
hash: "ハッシュ (md5)"
|
||||||
exif: "EXIF"
|
exif: "EXIF"
|
||||||
|
mobile/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
mobile/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
mobile/views/components/follow-button.vue:
|
mobile/views/components/follow-button.vue:
|
||||||
following: "フォロー中"
|
following: "フォロー中"
|
||||||
follow: "フォロー"
|
follow: "フォロー"
|
||||||
@ -818,6 +837,7 @@ mobile/views/pages/following.vue:
|
|||||||
mobile/views/pages/home.vue:
|
mobile/views/pages/home.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
mobile/views/pages/messaging.vue:
|
mobile/views/pages/messaging.vue:
|
||||||
messaging: "メッセージ"
|
messaging: "メッセージ"
|
||||||
@ -931,7 +951,16 @@ docs:
|
|||||||
properties: "プロパティ"
|
properties: "プロパティ"
|
||||||
endpoints:
|
endpoints:
|
||||||
params: "パラメータ"
|
params: "パラメータ"
|
||||||
|
no-params: "パラメータはありません"
|
||||||
res: "レスポンス"
|
res: "レスポンス"
|
||||||
|
require-credential: "このエンドポイントは認証情報が必須です。"
|
||||||
|
require-permission: "このエンドポイントは{permission}の権限を必要とします。"
|
||||||
|
has-limit: "レートリミットがあります。"
|
||||||
|
duration-limit: "直近{duration}ミリ秒の間のこのエンドポイントへのリクエスト数の合計が{max}を超える場合はリクエストできません。"
|
||||||
|
min-interval-limit: "前回のリクエストから{interval}ミリ秒経っていない場合はリクエストできません。"
|
||||||
|
show-src: "このエンドポイントのソースコードも閲覧できます。"
|
||||||
|
show-src-link: "コードをGitHubで見る"
|
||||||
|
generated: "このドキュメントはAPI定義に基づき自動生成されています。"
|
||||||
props:
|
props:
|
||||||
name: "名前"
|
name: "名前"
|
||||||
type: "型"
|
type: "型"
|
||||||
|
@ -56,6 +56,7 @@ common:
|
|||||||
my-token-regenerated: "あなたのトークンが更新されたのでサインアウトします。"
|
my-token-regenerated: "あなたのトークンが更新されたのでサインアウトします。"
|
||||||
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
|
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
|
||||||
show-reversi-board-labels: "リバーシのボードの行と列のラベルを表示"
|
show-reversi-board-labels: "リバーシのボードの行と列のラベルを表示"
|
||||||
|
verified-user: "認証済みのユーザー"
|
||||||
|
|
||||||
reversi:
|
reversi:
|
||||||
drawn: "引き分け"
|
drawn: "引き分け"
|
||||||
@ -93,7 +94,7 @@ common:
|
|||||||
widgets: "ウィジェット"
|
widgets: "ウィジェット"
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
hybrid: "ハイブリッド"
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
notifications: "通知"
|
notifications: "通知"
|
||||||
list: "リスト"
|
list: "リスト"
|
||||||
@ -330,6 +331,8 @@ desktop/views/components/drive.file.vue:
|
|||||||
banner: "バナー"
|
banner: "バナー"
|
||||||
contextmenu:
|
contextmenu:
|
||||||
rename: "名前を変更"
|
rename: "名前を変更"
|
||||||
|
mark-as-sensitive: "閲覧注意に設定"
|
||||||
|
unmark-as-sensitive: "閲覧注意を解除"
|
||||||
copy-url: "URLをコピー"
|
copy-url: "URLをコピー"
|
||||||
download: "ダウンロード"
|
download: "ダウンロード"
|
||||||
else-files: "その他..."
|
else-files: "その他..."
|
||||||
@ -377,6 +380,14 @@ desktop/views/components/drive.vue:
|
|||||||
upload: "ファイルをアップロード"
|
upload: "ファイルをアップロード"
|
||||||
url-upload: "URLからアップロード"
|
url-upload: "URLからアップロード"
|
||||||
|
|
||||||
|
desktop/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
|
||||||
|
desktop/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
|
||||||
desktop/views/components/follow-button.vue:
|
desktop/views/components/follow-button.vue:
|
||||||
following: "フォロー中"
|
following: "フォロー中"
|
||||||
follow: "フォロー"
|
follow: "フォロー"
|
||||||
@ -466,6 +477,8 @@ desktop/views/components/post-form.vue:
|
|||||||
insert-a-kao: "v('ω')v"
|
insert-a-kao: "v('ω')v"
|
||||||
create-poll: "アンケートを作成"
|
create-poll: "アンケートを作成"
|
||||||
text-remain: "残り{}文字"
|
text-remain: "残り{}文字"
|
||||||
|
recent-tags: "最近"
|
||||||
|
click-to-tagging: "クリックでタグ付け"
|
||||||
|
|
||||||
desktop/views/components/post-form-window.vue:
|
desktop/views/components/post-form-window.vue:
|
||||||
note: "新規投稿"
|
note: "新規投稿"
|
||||||
@ -643,7 +656,7 @@ desktop/views/components/taskmanager.vue:
|
|||||||
desktop/views/components/timeline.vue:
|
desktop/views/components/timeline.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
hybrid: "ハイブリッド"
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
list: "リスト"
|
list: "リスト"
|
||||||
|
|
||||||
@ -853,6 +866,14 @@ mobile/views/components/drive.file-detail.vue:
|
|||||||
hash: "ハッシュ (md5)"
|
hash: "ハッシュ (md5)"
|
||||||
exif: "EXIF"
|
exif: "EXIF"
|
||||||
|
|
||||||
|
mobile/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
|
||||||
|
mobile/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
|
||||||
mobile/views/components/follow-button.vue:
|
mobile/views/components/follow-button.vue:
|
||||||
following: "フォロー中"
|
following: "フォロー中"
|
||||||
follow: "フォロー"
|
follow: "フォロー"
|
||||||
@ -967,7 +988,7 @@ mobile/views/pages/following.vue:
|
|||||||
mobile/views/pages/home.vue:
|
mobile/views/pages/home.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
hybrid: "ハイブリッド"
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
|
|
||||||
mobile/views/pages/messaging.vue:
|
mobile/views/pages/messaging.vue:
|
||||||
@ -1098,7 +1119,16 @@ docs:
|
|||||||
properties: "プロパティ"
|
properties: "プロパティ"
|
||||||
endpoints:
|
endpoints:
|
||||||
params: "パラメータ"
|
params: "パラメータ"
|
||||||
|
no-params: "パラメータはありません"
|
||||||
res: "レスポンス"
|
res: "レスポンス"
|
||||||
|
require-credential: "このエンドポイントは認証情報が必須です。"
|
||||||
|
require-permission: "このエンドポイントは{permission}の権限を必要とします。"
|
||||||
|
has-limit: "レートリミットがあります。"
|
||||||
|
duration-limit: "直近{duration}ミリ秒の間のこのエンドポイントへのリクエスト数の合計が{max}を超える場合はリクエストできません。"
|
||||||
|
min-interval-limit: "前回のリクエストから{interval}ミリ秒経っていない場合はリクエストできません。"
|
||||||
|
show-src: "このエンドポイントのソースコードも閲覧できます。"
|
||||||
|
show-src-link: "コードをGitHubで見る"
|
||||||
|
generated: "このドキュメントはAPI定義に基づき自動生成されています。"
|
||||||
props:
|
props:
|
||||||
name: "名前"
|
name: "名前"
|
||||||
type: "型"
|
type: "型"
|
||||||
|
@ -51,6 +51,7 @@ common:
|
|||||||
my-token-regenerated: "あなたのトークンが更新されたのでサインアウトします。"
|
my-token-regenerated: "あなたのトークンが更新されたのでサインアウトします。"
|
||||||
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
|
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
|
||||||
show-reversi-board-labels: "リバーシのボードの行と列のラベルを表示"
|
show-reversi-board-labels: "リバーシのボードの行と列のラベルを表示"
|
||||||
|
verified-user: "認証済みのユーザー"
|
||||||
reversi:
|
reversi:
|
||||||
drawn: "引き分け"
|
drawn: "引き分け"
|
||||||
my-turn: "あなたのターンです"
|
my-turn: "あなたのターンです"
|
||||||
@ -85,6 +86,7 @@ common:
|
|||||||
widgets: "ウィジェット"
|
widgets: "ウィジェット"
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
notifications: "通知"
|
notifications: "通知"
|
||||||
list: "リスト"
|
list: "リスト"
|
||||||
@ -287,6 +289,8 @@ desktop/views/components/drive.file.vue:
|
|||||||
banner: "バナー"
|
banner: "バナー"
|
||||||
contextmenu:
|
contextmenu:
|
||||||
rename: "名前を変更"
|
rename: "名前を変更"
|
||||||
|
mark-as-sensitive: "閲覧注意に設定"
|
||||||
|
unmark-as-sensitive: "閲覧注意を解除"
|
||||||
copy-url: "URLをコピー"
|
copy-url: "URLをコピー"
|
||||||
download: "ダウンロード"
|
download: "ダウンロード"
|
||||||
else-files: "その他..."
|
else-files: "その他..."
|
||||||
@ -330,6 +334,12 @@ desktop/views/components/drive.vue:
|
|||||||
create-folder: "フォルダーを作成"
|
create-folder: "フォルダーを作成"
|
||||||
upload: "ファイルをアップロード"
|
upload: "ファイルをアップロード"
|
||||||
url-upload: "URLからアップロード"
|
url-upload: "URLからアップロード"
|
||||||
|
desktop/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
desktop/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
desktop/views/components/follow-button.vue:
|
desktop/views/components/follow-button.vue:
|
||||||
following: "フォロー中"
|
following: "フォロー中"
|
||||||
follow: "フォロー"
|
follow: "フォロー"
|
||||||
@ -404,6 +414,8 @@ desktop/views/components/post-form.vue:
|
|||||||
insert-a-kao: "v('ω')v"
|
insert-a-kao: "v('ω')v"
|
||||||
create-poll: "アンケートを作成"
|
create-poll: "アンケートを作成"
|
||||||
text-remain: "残り{}文字"
|
text-remain: "残り{}文字"
|
||||||
|
recent-tags: "最近"
|
||||||
|
click-to-tagging: "クリックでタグ付け"
|
||||||
desktop/views/components/post-form-window.vue:
|
desktop/views/components/post-form-window.vue:
|
||||||
note: "新規投稿"
|
note: "新規投稿"
|
||||||
reply: "返信"
|
reply: "返信"
|
||||||
@ -556,6 +568,7 @@ desktop/views/components/taskmanager.vue:
|
|||||||
desktop/views/components/timeline.vue:
|
desktop/views/components/timeline.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
list: "リスト"
|
list: "リスト"
|
||||||
desktop/views/components/ui.header.vue:
|
desktop/views/components/ui.header.vue:
|
||||||
@ -723,6 +736,12 @@ mobile/views/components/drive.file-detail.vue:
|
|||||||
move: "移動"
|
move: "移動"
|
||||||
hash: "ハッシュ (md5)"
|
hash: "ハッシュ (md5)"
|
||||||
exif: "EXIF"
|
exif: "EXIF"
|
||||||
|
mobile/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
mobile/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
mobile/views/components/follow-button.vue:
|
mobile/views/components/follow-button.vue:
|
||||||
following: "フォロー中"
|
following: "フォロー中"
|
||||||
follow: "フォロー"
|
follow: "フォロー"
|
||||||
@ -818,6 +837,7 @@ mobile/views/pages/following.vue:
|
|||||||
mobile/views/pages/home.vue:
|
mobile/views/pages/home.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
mobile/views/pages/messaging.vue:
|
mobile/views/pages/messaging.vue:
|
||||||
messaging: "メッセージ"
|
messaging: "メッセージ"
|
||||||
@ -931,7 +951,16 @@ docs:
|
|||||||
properties: "プロパティ"
|
properties: "プロパティ"
|
||||||
endpoints:
|
endpoints:
|
||||||
params: "パラメータ"
|
params: "パラメータ"
|
||||||
|
no-params: "パラメータはありません"
|
||||||
res: "レスポンス"
|
res: "レスポンス"
|
||||||
|
require-credential: "このエンドポイントは認証情報が必須です。"
|
||||||
|
require-permission: "このエンドポイントは{permission}の権限を必要とします。"
|
||||||
|
has-limit: "レートリミットがあります。"
|
||||||
|
duration-limit: "直近{duration}ミリ秒の間のこのエンドポイントへのリクエスト数の合計が{max}を超える場合はリクエストできません。"
|
||||||
|
min-interval-limit: "前回のリクエストから{interval}ミリ秒経っていない場合はリクエストできません。"
|
||||||
|
show-src: "このエンドポイントのソースコードも閲覧できます。"
|
||||||
|
show-src-link: "コードをGitHubで見る"
|
||||||
|
generated: "このドキュメントはAPI定義に基づき自動生成されています。"
|
||||||
props:
|
props:
|
||||||
name: "名前"
|
name: "名前"
|
||||||
type: "型"
|
type: "型"
|
||||||
|
@ -51,6 +51,7 @@ common:
|
|||||||
my-token-regenerated: "Twój token został wygenerowany. Zostaniesz wylogowany."
|
my-token-regenerated: "Twój token został wygenerowany. Zostaniesz wylogowany."
|
||||||
i-like-sushi: "Wolę sushi od puddingu"
|
i-like-sushi: "Wolę sushi od puddingu"
|
||||||
show-reversi-board-labels: "Pokazuj podpisy wierszy i kolumn w Reversi"
|
show-reversi-board-labels: "Pokazuj podpisy wierszy i kolumn w Reversi"
|
||||||
|
verified-user: "認証済みのユーザー"
|
||||||
reversi:
|
reversi:
|
||||||
drawn: "Remis"
|
drawn: "Remis"
|
||||||
my-turn: "Twoja kolej"
|
my-turn: "Twoja kolej"
|
||||||
@ -85,6 +86,7 @@ common:
|
|||||||
widgets: "Widżety"
|
widgets: "Widżety"
|
||||||
home: "Strona główna"
|
home: "Strona główna"
|
||||||
local: "Lokalne"
|
local: "Lokalne"
|
||||||
|
hybrid: "Społeczność"
|
||||||
global: "Globalne"
|
global: "Globalne"
|
||||||
notifications: "Powiadomienia"
|
notifications: "Powiadomienia"
|
||||||
list: "Listy"
|
list: "Listy"
|
||||||
@ -287,6 +289,8 @@ desktop/views/components/drive.file.vue:
|
|||||||
banner: "Baner"
|
banner: "Baner"
|
||||||
contextmenu:
|
contextmenu:
|
||||||
rename: "Zmień nazwę"
|
rename: "Zmień nazwę"
|
||||||
|
mark-as-sensitive: "閲覧注意に設定"
|
||||||
|
unmark-as-sensitive: "閲覧注意を解除"
|
||||||
copy-url: "Skopiuj adres"
|
copy-url: "Skopiuj adres"
|
||||||
download: "Pobierz"
|
download: "Pobierz"
|
||||||
else-files: "Inne"
|
else-files: "Inne"
|
||||||
@ -330,6 +334,12 @@ desktop/views/components/drive.vue:
|
|||||||
create-folder: "Utwórz katalog"
|
create-folder: "Utwórz katalog"
|
||||||
upload: "Wyślij plik"
|
upload: "Wyślij plik"
|
||||||
url-upload: "Wyślij z adresu URL"
|
url-upload: "Wyślij z adresu URL"
|
||||||
|
desktop/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
desktop/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
desktop/views/components/follow-button.vue:
|
desktop/views/components/follow-button.vue:
|
||||||
following: "Śledzisz"
|
following: "Śledzisz"
|
||||||
follow: "Śledź"
|
follow: "Śledź"
|
||||||
@ -404,6 +414,8 @@ desktop/views/components/post-form.vue:
|
|||||||
insert-a-kao: "v('ω')v"
|
insert-a-kao: "v('ω')v"
|
||||||
create-poll: "Utwórz ankietę"
|
create-poll: "Utwórz ankietę"
|
||||||
text-remain: "pozostałe znaki: {}"
|
text-remain: "pozostałe znaki: {}"
|
||||||
|
recent-tags: "最近"
|
||||||
|
click-to-tagging: "クリックでタグ付け"
|
||||||
desktop/views/components/post-form-window.vue:
|
desktop/views/components/post-form-window.vue:
|
||||||
note: "Nowy wpis"
|
note: "Nowy wpis"
|
||||||
reply: "Odpowiedz"
|
reply: "Odpowiedz"
|
||||||
@ -556,6 +568,7 @@ desktop/views/components/taskmanager.vue:
|
|||||||
desktop/views/components/timeline.vue:
|
desktop/views/components/timeline.vue:
|
||||||
home: "Strona główna"
|
home: "Strona główna"
|
||||||
local: "Lokalne"
|
local: "Lokalne"
|
||||||
|
hybrid: "Społeczność"
|
||||||
global: "Globalne"
|
global: "Globalne"
|
||||||
list: "Listy"
|
list: "Listy"
|
||||||
desktop/views/components/ui.header.vue:
|
desktop/views/components/ui.header.vue:
|
||||||
@ -723,6 +736,12 @@ mobile/views/components/drive.file-detail.vue:
|
|||||||
move: "Przenieś"
|
move: "Przenieś"
|
||||||
hash: "Hash (md5)"
|
hash: "Hash (md5)"
|
||||||
exif: "EXIF"
|
exif: "EXIF"
|
||||||
|
mobile/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
mobile/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
mobile/views/components/follow-button.vue:
|
mobile/views/components/follow-button.vue:
|
||||||
following: "Śledzisz"
|
following: "Śledzisz"
|
||||||
follow: "Śledź"
|
follow: "Śledź"
|
||||||
@ -818,6 +837,7 @@ mobile/views/pages/following.vue:
|
|||||||
mobile/views/pages/home.vue:
|
mobile/views/pages/home.vue:
|
||||||
home: "Strona główna"
|
home: "Strona główna"
|
||||||
local: "Lokalne"
|
local: "Lokalne"
|
||||||
|
hybrid: "Społeczność"
|
||||||
global: "Globalne"
|
global: "Globalne"
|
||||||
mobile/views/pages/messaging.vue:
|
mobile/views/pages/messaging.vue:
|
||||||
messaging: "Wiadomości"
|
messaging: "Wiadomości"
|
||||||
@ -931,7 +951,16 @@ docs:
|
|||||||
properties: "Właściwości"
|
properties: "Właściwości"
|
||||||
endpoints:
|
endpoints:
|
||||||
params: "Parametry"
|
params: "Parametry"
|
||||||
|
no-params: "パラメータはありません"
|
||||||
res: "Odpowiedź"
|
res: "Odpowiedź"
|
||||||
|
require-credential: "このエンドポイントは認証情報が必須です。"
|
||||||
|
require-permission: "このエンドポイントは{permission}の権限を必要とします。"
|
||||||
|
has-limit: "レートリミットがあります。"
|
||||||
|
duration-limit: "直近{duration}ミリ秒の間のこのエンドポイントへのリクエスト数の合計が{max}を超える場合はリクエストできません。"
|
||||||
|
min-interval-limit: "前回のリクエストから{interval}ミリ秒経っていない場合はリクエストできません。"
|
||||||
|
show-src: "このエンドポイントのソースコードも閲覧できます。"
|
||||||
|
show-src-link: "Zobacz kod na GitHubie"
|
||||||
|
generated: "このドキュメントはAPI定義に基づき自動生成されています。"
|
||||||
props:
|
props:
|
||||||
name: "Nazwa"
|
name: "Nazwa"
|
||||||
type: "Rodzaj"
|
type: "Rodzaj"
|
||||||
|
@ -51,6 +51,7 @@ common:
|
|||||||
my-token-regenerated: "あなたのトークンが更新されたのでサインアウトします。"
|
my-token-regenerated: "あなたのトークンが更新されたのでサインアウトします。"
|
||||||
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
|
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
|
||||||
show-reversi-board-labels: "リバーシのボードの行と列のラベルを表示"
|
show-reversi-board-labels: "リバーシのボードの行と列のラベルを表示"
|
||||||
|
verified-user: "認証済みのユーザー"
|
||||||
reversi:
|
reversi:
|
||||||
drawn: "引き分け"
|
drawn: "引き分け"
|
||||||
my-turn: "あなたのターンです"
|
my-turn: "あなたのターンです"
|
||||||
@ -85,6 +86,7 @@ common:
|
|||||||
widgets: "ウィジェット"
|
widgets: "ウィジェット"
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
notifications: "通知"
|
notifications: "通知"
|
||||||
list: "リスト"
|
list: "リスト"
|
||||||
@ -287,6 +289,8 @@ desktop/views/components/drive.file.vue:
|
|||||||
banner: "バナー"
|
banner: "バナー"
|
||||||
contextmenu:
|
contextmenu:
|
||||||
rename: "名前を変更"
|
rename: "名前を変更"
|
||||||
|
mark-as-sensitive: "閲覧注意に設定"
|
||||||
|
unmark-as-sensitive: "閲覧注意を解除"
|
||||||
copy-url: "URLをコピー"
|
copy-url: "URLをコピー"
|
||||||
download: "ダウンロード"
|
download: "ダウンロード"
|
||||||
else-files: "その他..."
|
else-files: "その他..."
|
||||||
@ -330,6 +334,12 @@ desktop/views/components/drive.vue:
|
|||||||
create-folder: "フォルダーを作成"
|
create-folder: "フォルダーを作成"
|
||||||
upload: "ファイルをアップロード"
|
upload: "ファイルをアップロード"
|
||||||
url-upload: "URLからアップロード"
|
url-upload: "URLからアップロード"
|
||||||
|
desktop/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
desktop/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
desktop/views/components/follow-button.vue:
|
desktop/views/components/follow-button.vue:
|
||||||
following: "フォロー中"
|
following: "フォロー中"
|
||||||
follow: "フォロー"
|
follow: "フォロー"
|
||||||
@ -404,6 +414,8 @@ desktop/views/components/post-form.vue:
|
|||||||
insert-a-kao: "v('ω')v"
|
insert-a-kao: "v('ω')v"
|
||||||
create-poll: "アンケートを作成"
|
create-poll: "アンケートを作成"
|
||||||
text-remain: "残り{}文字"
|
text-remain: "残り{}文字"
|
||||||
|
recent-tags: "最近"
|
||||||
|
click-to-tagging: "クリックでタグ付け"
|
||||||
desktop/views/components/post-form-window.vue:
|
desktop/views/components/post-form-window.vue:
|
||||||
note: "新規投稿"
|
note: "新規投稿"
|
||||||
reply: "返信"
|
reply: "返信"
|
||||||
@ -556,6 +568,7 @@ desktop/views/components/taskmanager.vue:
|
|||||||
desktop/views/components/timeline.vue:
|
desktop/views/components/timeline.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
list: "リスト"
|
list: "リスト"
|
||||||
desktop/views/components/ui.header.vue:
|
desktop/views/components/ui.header.vue:
|
||||||
@ -723,6 +736,12 @@ mobile/views/components/drive.file-detail.vue:
|
|||||||
move: "移動"
|
move: "移動"
|
||||||
hash: "ハッシュ (md5)"
|
hash: "ハッシュ (md5)"
|
||||||
exif: "EXIF"
|
exif: "EXIF"
|
||||||
|
mobile/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
mobile/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
mobile/views/components/follow-button.vue:
|
mobile/views/components/follow-button.vue:
|
||||||
following: "フォロー中"
|
following: "フォロー中"
|
||||||
follow: "フォロー"
|
follow: "フォロー"
|
||||||
@ -818,6 +837,7 @@ mobile/views/pages/following.vue:
|
|||||||
mobile/views/pages/home.vue:
|
mobile/views/pages/home.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
mobile/views/pages/messaging.vue:
|
mobile/views/pages/messaging.vue:
|
||||||
messaging: "メッセージ"
|
messaging: "メッセージ"
|
||||||
@ -931,7 +951,16 @@ docs:
|
|||||||
properties: "プロパティ"
|
properties: "プロパティ"
|
||||||
endpoints:
|
endpoints:
|
||||||
params: "パラメータ"
|
params: "パラメータ"
|
||||||
|
no-params: "パラメータはありません"
|
||||||
res: "レスポンス"
|
res: "レスポンス"
|
||||||
|
require-credential: "このエンドポイントは認証情報が必須です。"
|
||||||
|
require-permission: "このエンドポイントは{permission}の権限を必要とします。"
|
||||||
|
has-limit: "レートリミットがあります。"
|
||||||
|
duration-limit: "直近{duration}ミリ秒の間のこのエンドポイントへのリクエスト数の合計が{max}を超える場合はリクエストできません。"
|
||||||
|
min-interval-limit: "前回のリクエストから{interval}ミリ秒経っていない場合はリクエストできません。"
|
||||||
|
show-src: "このエンドポイントのソースコードも閲覧できます。"
|
||||||
|
show-src-link: "コードをGitHubで見る"
|
||||||
|
generated: "このドキュメントはAPI定義に基づき自動生成されています。"
|
||||||
props:
|
props:
|
||||||
name: "名前"
|
name: "名前"
|
||||||
type: "型"
|
type: "型"
|
||||||
|
@ -51,6 +51,7 @@ common:
|
|||||||
my-token-regenerated: "あなたのトークンが更新されたのでサインアウトします。"
|
my-token-regenerated: "あなたのトークンが更新されたのでサインアウトします。"
|
||||||
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
|
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
|
||||||
show-reversi-board-labels: "リバーシのボードの行と列のラベルを表示"
|
show-reversi-board-labels: "リバーシのボードの行と列のラベルを表示"
|
||||||
|
verified-user: "認証済みのユーザー"
|
||||||
reversi:
|
reversi:
|
||||||
drawn: "引き分け"
|
drawn: "引き分け"
|
||||||
my-turn: "あなたのターンです"
|
my-turn: "あなたのターンです"
|
||||||
@ -85,6 +86,7 @@ common:
|
|||||||
widgets: "ウィジェット"
|
widgets: "ウィジェット"
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
notifications: "通知"
|
notifications: "通知"
|
||||||
list: "リスト"
|
list: "リスト"
|
||||||
@ -287,6 +289,8 @@ desktop/views/components/drive.file.vue:
|
|||||||
banner: "バナー"
|
banner: "バナー"
|
||||||
contextmenu:
|
contextmenu:
|
||||||
rename: "名前を変更"
|
rename: "名前を変更"
|
||||||
|
mark-as-sensitive: "閲覧注意に設定"
|
||||||
|
unmark-as-sensitive: "閲覧注意を解除"
|
||||||
copy-url: "URLをコピー"
|
copy-url: "URLをコピー"
|
||||||
download: "ダウンロード"
|
download: "ダウンロード"
|
||||||
else-files: "その他..."
|
else-files: "その他..."
|
||||||
@ -330,6 +334,12 @@ desktop/views/components/drive.vue:
|
|||||||
create-folder: "フォルダーを作成"
|
create-folder: "フォルダーを作成"
|
||||||
upload: "ファイルをアップロード"
|
upload: "ファイルをアップロード"
|
||||||
url-upload: "URLからアップロード"
|
url-upload: "URLからアップロード"
|
||||||
|
desktop/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
desktop/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
desktop/views/components/follow-button.vue:
|
desktop/views/components/follow-button.vue:
|
||||||
following: "フォロー中"
|
following: "フォロー中"
|
||||||
follow: "フォロー"
|
follow: "フォロー"
|
||||||
@ -404,6 +414,8 @@ desktop/views/components/post-form.vue:
|
|||||||
insert-a-kao: "v('ω')v"
|
insert-a-kao: "v('ω')v"
|
||||||
create-poll: "アンケートを作成"
|
create-poll: "アンケートを作成"
|
||||||
text-remain: "残り{}文字"
|
text-remain: "残り{}文字"
|
||||||
|
recent-tags: "最近"
|
||||||
|
click-to-tagging: "クリックでタグ付け"
|
||||||
desktop/views/components/post-form-window.vue:
|
desktop/views/components/post-form-window.vue:
|
||||||
note: "新規投稿"
|
note: "新規投稿"
|
||||||
reply: "返信"
|
reply: "返信"
|
||||||
@ -556,6 +568,7 @@ desktop/views/components/taskmanager.vue:
|
|||||||
desktop/views/components/timeline.vue:
|
desktop/views/components/timeline.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
list: "リスト"
|
list: "リスト"
|
||||||
desktop/views/components/ui.header.vue:
|
desktop/views/components/ui.header.vue:
|
||||||
@ -723,6 +736,12 @@ mobile/views/components/drive.file-detail.vue:
|
|||||||
move: "移動"
|
move: "移動"
|
||||||
hash: "ハッシュ (md5)"
|
hash: "ハッシュ (md5)"
|
||||||
exif: "EXIF"
|
exif: "EXIF"
|
||||||
|
mobile/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
mobile/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
mobile/views/components/follow-button.vue:
|
mobile/views/components/follow-button.vue:
|
||||||
following: "フォロー中"
|
following: "フォロー中"
|
||||||
follow: "フォロー"
|
follow: "フォロー"
|
||||||
@ -818,6 +837,7 @@ mobile/views/pages/following.vue:
|
|||||||
mobile/views/pages/home.vue:
|
mobile/views/pages/home.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
mobile/views/pages/messaging.vue:
|
mobile/views/pages/messaging.vue:
|
||||||
messaging: "メッセージ"
|
messaging: "メッセージ"
|
||||||
@ -931,7 +951,16 @@ docs:
|
|||||||
properties: "プロパティ"
|
properties: "プロパティ"
|
||||||
endpoints:
|
endpoints:
|
||||||
params: "パラメータ"
|
params: "パラメータ"
|
||||||
|
no-params: "パラメータはありません"
|
||||||
res: "レスポンス"
|
res: "レスポンス"
|
||||||
|
require-credential: "このエンドポイントは認証情報が必須です。"
|
||||||
|
require-permission: "このエンドポイントは{permission}の権限を必要とします。"
|
||||||
|
has-limit: "レートリミットがあります。"
|
||||||
|
duration-limit: "直近{duration}ミリ秒の間のこのエンドポイントへのリクエスト数の合計が{max}を超える場合はリクエストできません。"
|
||||||
|
min-interval-limit: "前回のリクエストから{interval}ミリ秒経っていない場合はリクエストできません。"
|
||||||
|
show-src: "このエンドポイントのソースコードも閲覧できます。"
|
||||||
|
show-src-link: "コードをGitHubで見る"
|
||||||
|
generated: "このドキュメントはAPI定義に基づき自動生成されています。"
|
||||||
props:
|
props:
|
||||||
name: "名前"
|
name: "名前"
|
||||||
type: "型"
|
type: "型"
|
||||||
|
@ -51,6 +51,7 @@ common:
|
|||||||
my-token-regenerated: "あなたのトークンが更新されたのでサインアウトします。"
|
my-token-regenerated: "あなたのトークンが更新されたのでサインアウトします。"
|
||||||
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
|
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
|
||||||
show-reversi-board-labels: "リバーシのボードの行と列のラベルを表示"
|
show-reversi-board-labels: "リバーシのボードの行と列のラベルを表示"
|
||||||
|
verified-user: "認証済みのユーザー"
|
||||||
reversi:
|
reversi:
|
||||||
drawn: "引き分け"
|
drawn: "引き分け"
|
||||||
my-turn: "あなたのターンです"
|
my-turn: "あなたのターンです"
|
||||||
@ -85,6 +86,7 @@ common:
|
|||||||
widgets: "ウィジェット"
|
widgets: "ウィジェット"
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
notifications: "通知"
|
notifications: "通知"
|
||||||
list: "リスト"
|
list: "リスト"
|
||||||
@ -287,6 +289,8 @@ desktop/views/components/drive.file.vue:
|
|||||||
banner: "バナー"
|
banner: "バナー"
|
||||||
contextmenu:
|
contextmenu:
|
||||||
rename: "名前を変更"
|
rename: "名前を変更"
|
||||||
|
mark-as-sensitive: "閲覧注意に設定"
|
||||||
|
unmark-as-sensitive: "閲覧注意を解除"
|
||||||
copy-url: "URLをコピー"
|
copy-url: "URLをコピー"
|
||||||
download: "ダウンロード"
|
download: "ダウンロード"
|
||||||
else-files: "その他..."
|
else-files: "その他..."
|
||||||
@ -330,6 +334,12 @@ desktop/views/components/drive.vue:
|
|||||||
create-folder: "フォルダーを作成"
|
create-folder: "フォルダーを作成"
|
||||||
upload: "ファイルをアップロード"
|
upload: "ファイルをアップロード"
|
||||||
url-upload: "URLからアップロード"
|
url-upload: "URLからアップロード"
|
||||||
|
desktop/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
desktop/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
desktop/views/components/follow-button.vue:
|
desktop/views/components/follow-button.vue:
|
||||||
following: "フォロー中"
|
following: "フォロー中"
|
||||||
follow: "フォロー"
|
follow: "フォロー"
|
||||||
@ -404,6 +414,8 @@ desktop/views/components/post-form.vue:
|
|||||||
insert-a-kao: "v('ω')v"
|
insert-a-kao: "v('ω')v"
|
||||||
create-poll: "アンケートを作成"
|
create-poll: "アンケートを作成"
|
||||||
text-remain: "残り{}文字"
|
text-remain: "残り{}文字"
|
||||||
|
recent-tags: "最近"
|
||||||
|
click-to-tagging: "クリックでタグ付け"
|
||||||
desktop/views/components/post-form-window.vue:
|
desktop/views/components/post-form-window.vue:
|
||||||
note: "新規投稿"
|
note: "新規投稿"
|
||||||
reply: "返信"
|
reply: "返信"
|
||||||
@ -556,6 +568,7 @@ desktop/views/components/taskmanager.vue:
|
|||||||
desktop/views/components/timeline.vue:
|
desktop/views/components/timeline.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
list: "リスト"
|
list: "リスト"
|
||||||
desktop/views/components/ui.header.vue:
|
desktop/views/components/ui.header.vue:
|
||||||
@ -723,6 +736,12 @@ mobile/views/components/drive.file-detail.vue:
|
|||||||
move: "移動"
|
move: "移動"
|
||||||
hash: "ハッシュ (md5)"
|
hash: "ハッシュ (md5)"
|
||||||
exif: "EXIF"
|
exif: "EXIF"
|
||||||
|
mobile/views/components/media-image.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
|
mobile/views/components/media-video.vue:
|
||||||
|
sensitive: "閲覧注意"
|
||||||
|
click-to-show: "クリックして表示"
|
||||||
mobile/views/components/follow-button.vue:
|
mobile/views/components/follow-button.vue:
|
||||||
following: "フォロー中"
|
following: "フォロー中"
|
||||||
follow: "フォロー"
|
follow: "フォロー"
|
||||||
@ -818,6 +837,7 @@ mobile/views/pages/following.vue:
|
|||||||
mobile/views/pages/home.vue:
|
mobile/views/pages/home.vue:
|
||||||
home: "ホーム"
|
home: "ホーム"
|
||||||
local: "ローカル"
|
local: "ローカル"
|
||||||
|
hybrid: "ソーシャル"
|
||||||
global: "グローバル"
|
global: "グローバル"
|
||||||
mobile/views/pages/messaging.vue:
|
mobile/views/pages/messaging.vue:
|
||||||
messaging: "メッセージ"
|
messaging: "メッセージ"
|
||||||
@ -931,7 +951,16 @@ docs:
|
|||||||
properties: "プロパティ"
|
properties: "プロパティ"
|
||||||
endpoints:
|
endpoints:
|
||||||
params: "パラメータ"
|
params: "パラメータ"
|
||||||
|
no-params: "パラメータはありません"
|
||||||
res: "レスポンス"
|
res: "レスポンス"
|
||||||
|
require-credential: "このエンドポイントは認証情報が必須です。"
|
||||||
|
require-permission: "このエンドポイントは{permission}の権限を必要とします。"
|
||||||
|
has-limit: "レートリミットがあります。"
|
||||||
|
duration-limit: "直近{duration}ミリ秒の間のこのエンドポイントへのリクエスト数の合計が{max}を超える場合はリクエストできません。"
|
||||||
|
min-interval-limit: "前回のリクエストから{interval}ミリ秒経っていない場合はリクエストできません。"
|
||||||
|
show-src: "このエンドポイントのソースコードも閲覧できます。"
|
||||||
|
show-src-link: "コードをGitHubで見る"
|
||||||
|
generated: "このドキュメントはAPI定義に基づき自動生成されています。"
|
||||||
props:
|
props:
|
||||||
name: "名前"
|
name: "名前"
|
||||||
type: "型"
|
type: "型"
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
Misskeyの破壊的変更に対応するいくつかのスニペットがあります。
|
|
||||||
MongoDBシェルで実行する必要のあるものとnodeで直接実行する必要のあるものがあります。
|
|
||||||
ファイル名が `shell.` から始まるものは前者、 `node.` から始まるものは後者です。
|
|
||||||
|
|
||||||
MongoDBシェルで実行する場合、`use`でデータベースを選択しておく必要があります。
|
|
||||||
|
|
||||||
nodeで実行するいくつかのスニペットは、並列処理させる数を引数で設定できるものがあります。
|
|
||||||
処理中にエラーで落ちる場合は、メモリが足りていない可能性があるので、少ない数に設定してみてください。
|
|
||||||
※デフォルトは`5`です。
|
|
||||||
|
|
||||||
ファイルを作成する際は `../init-migration-file.sh -t _type_ -n _name_` を実行すると _type_._unixtime_._name_.js が生成されます
|
|
@ -1,37 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
usage() {
|
|
||||||
echo "$0 [-t type] [-n name]"
|
|
||||||
echo " type: [node | shell]"
|
|
||||||
echo " name: if no present, set untitled"
|
|
||||||
exit 0
|
|
||||||
}
|
|
||||||
|
|
||||||
while getopts :t:n:h OPT
|
|
||||||
do
|
|
||||||
case $OPT in
|
|
||||||
t) type=$OPTARG
|
|
||||||
;;
|
|
||||||
n) name=$OPTARG
|
|
||||||
;;
|
|
||||||
h) usage
|
|
||||||
;;
|
|
||||||
\?) usage
|
|
||||||
;;
|
|
||||||
:) usage
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ "$type" = "" ]
|
|
||||||
then
|
|
||||||
echo "no type present!!!"
|
|
||||||
usage
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$name" = "" ]
|
|
||||||
then
|
|
||||||
name="untitled"
|
|
||||||
fi
|
|
||||||
|
|
||||||
touch "$(realpath $(dirname $BASH_SOURCE))/migration/$type.$(date +%s).$name.js"
|
|
16344
package-lock.json
generated
64
package.json
@ -1,21 +1,18 @@
|
|||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"author": "syuilo <i@syuilo.com>",
|
"author": "syuilo <i@syuilo.com>",
|
||||||
"version": "4.17.1",
|
"version": "5.0.0",
|
||||||
"clientVersion": "1.0.7112",
|
"clientVersion": "1.0.7553",
|
||||||
"codename": "nighthike",
|
"codename": "nighthike",
|
||||||
"main": "./built/index.js",
|
"main": "./built/index.js",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"config": "node ./cli/init.js",
|
|
||||||
"start": "node ./built",
|
"start": "node ./built",
|
||||||
"debug": "DEBUG=misskey:* node ./built",
|
"debug": "DEBUG=misskey:* node ./built",
|
||||||
"swagger": "node ./swagger.js",
|
|
||||||
"build": "webpack && gulp build",
|
"build": "webpack && gulp build",
|
||||||
"webpack": "webpack",
|
"webpack": "webpack",
|
||||||
"watch": "webpack --watch",
|
"watch": "webpack --watch",
|
||||||
"gulp": "gulp build",
|
"gulp": "gulp build",
|
||||||
"rebuild": "gulp rebuild",
|
|
||||||
"clean": "gulp clean",
|
"clean": "gulp clean",
|
||||||
"cleanall": "gulp cleanall",
|
"cleanall": "gulp cleanall",
|
||||||
"lint": "gulp lint",
|
"lint": "gulp lint",
|
||||||
@ -27,15 +24,15 @@
|
|||||||
"@fortawesome/fontawesome-free-brands": "5.0.13",
|
"@fortawesome/fontawesome-free-brands": "5.0.13",
|
||||||
"@fortawesome/fontawesome-free-regular": "5.0.13",
|
"@fortawesome/fontawesome-free-regular": "5.0.13",
|
||||||
"@fortawesome/fontawesome-free-solid": "5.0.13",
|
"@fortawesome/fontawesome-free-solid": "5.0.13",
|
||||||
"@koa/cors": "2.2.1",
|
"@koa/cors": "2.2.2",
|
||||||
"@prezzemolo/rap": "0.1.2",
|
"@prezzemolo/rap": "0.1.2",
|
||||||
"@prezzemolo/zip": "0.0.3",
|
"@prezzemolo/zip": "0.0.3",
|
||||||
"@types/bcryptjs": "2.4.1",
|
"@types/bcryptjs": "2.4.1",
|
||||||
|
"@types/dateformat": "1.0.1",
|
||||||
"@types/debug": "0.0.30",
|
"@types/debug": "0.0.30",
|
||||||
"@types/deep-equal": "1.0.1",
|
"@types/deep-equal": "1.0.1",
|
||||||
"@types/elasticsearch": "5.0.24",
|
"@types/elasticsearch": "5.0.25",
|
||||||
"@types/file-type": "5.2.1",
|
"@types/file-type": "5.2.1",
|
||||||
"@types/gm": "1.18.0",
|
|
||||||
"@types/gulp": "3.8.36",
|
"@types/gulp": "3.8.36",
|
||||||
"@types/gulp-htmlmin": "1.3.32",
|
"@types/gulp-htmlmin": "1.3.32",
|
||||||
"@types/gulp-mocha": "0.0.32",
|
"@types/gulp-mocha": "0.0.32",
|
||||||
@ -43,7 +40,6 @@
|
|||||||
"@types/gulp-replace": "0.0.31",
|
"@types/gulp-replace": "0.0.31",
|
||||||
"@types/gulp-uglify": "3.0.5",
|
"@types/gulp-uglify": "3.0.5",
|
||||||
"@types/gulp-util": "3.0.34",
|
"@types/gulp-util": "3.0.34",
|
||||||
"@types/inquirer": "0.0.42",
|
|
||||||
"@types/is-root": "1.0.0",
|
"@types/is-root": "1.0.0",
|
||||||
"@types/is-url": "1.2.28",
|
"@types/is-url": "1.2.28",
|
||||||
"@types/js-yaml": "3.11.2",
|
"@types/js-yaml": "3.11.2",
|
||||||
@ -60,12 +56,14 @@
|
|||||||
"@types/koa-views": "2.0.3",
|
"@types/koa-views": "2.0.3",
|
||||||
"@types/koa__cors": "2.2.2",
|
"@types/koa__cors": "2.2.2",
|
||||||
"@types/kue": "0.11.9",
|
"@types/kue": "0.11.9",
|
||||||
|
"@types/minio": "6.0.2",
|
||||||
"@types/mkdirp": "0.5.2",
|
"@types/mkdirp": "0.5.2",
|
||||||
"@types/mocha": "5.2.3",
|
"@types/mocha": "5.2.3",
|
||||||
"@types/mongodb": "3.1.1",
|
"@types/mongodb": "3.1.2",
|
||||||
"@types/ms": "0.7.30",
|
"@types/ms": "0.7.30",
|
||||||
"@types/node": "10.5.2",
|
"@types/node": "10.5.3",
|
||||||
"@types/parse5": "5.0.0",
|
"@types/parse5": "5.0.0",
|
||||||
|
"@types/portscanner": "2.1.0",
|
||||||
"@types/pug": "2.0.4",
|
"@types/pug": "2.0.4",
|
||||||
"@types/qrcode": "1.2.0",
|
"@types/qrcode": "1.2.0",
|
||||||
"@types/ratelimiter": "2.1.28",
|
"@types/ratelimiter": "2.1.28",
|
||||||
@ -74,11 +72,13 @@
|
|||||||
"@types/request-promise-native": "1.0.15",
|
"@types/request-promise-native": "1.0.15",
|
||||||
"@types/rimraf": "2.0.2",
|
"@types/rimraf": "2.0.2",
|
||||||
"@types/seedrandom": "2.4.27",
|
"@types/seedrandom": "2.4.27",
|
||||||
|
"@types/sharp": "0.17.9",
|
||||||
|
"@types/showdown": "1.7.5",
|
||||||
"@types/single-line-log": "1.1.0",
|
"@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",
|
||||||
"@types/webpack": "4.4.5",
|
"@types/webpack": "4.4.8",
|
||||||
"@types/webpack-stream": "3.2.10",
|
"@types/webpack-stream": "3.2.10",
|
||||||
"@types/websocket": "0.0.39",
|
"@types/websocket": "0.0.39",
|
||||||
"@types/ws": "5.1.2",
|
"@types/ws": "5.1.2",
|
||||||
@ -91,44 +91,45 @@
|
|||||||
"chalk": "2.4.1",
|
"chalk": "2.4.1",
|
||||||
"crc-32": "1.2.0",
|
"crc-32": "1.2.0",
|
||||||
"css-loader": "1.0.0",
|
"css-loader": "1.0.0",
|
||||||
|
"dateformat": "3.0.3",
|
||||||
"debug": "3.1.0",
|
"debug": "3.1.0",
|
||||||
"deep-equal": "1.0.1",
|
"deep-equal": "1.0.1",
|
||||||
"deepcopy": "0.6.3",
|
"deepcopy": "0.6.3",
|
||||||
"diskusage": "0.2.4",
|
"diskusage": "0.2.4",
|
||||||
"dompurify": "1.0.5",
|
"dompurify": "1.0.5",
|
||||||
"elasticsearch": "15.1.1",
|
"elasticsearch": "15.1.1",
|
||||||
"element-ui": "2.4.3",
|
"element-ui": "2.4.4",
|
||||||
"emojilib": "2.2.12",
|
"emojilib": "2.3.0",
|
||||||
"escape-regexp": "0.0.1",
|
"escape-regexp": "0.0.1",
|
||||||
"eslint": "5.0.1",
|
"eslint": "5.0.1",
|
||||||
"eslint-plugin-vue": "4.5.0",
|
"eslint-plugin-vue": "4.7.1",
|
||||||
"eventemitter3": "3.1.0",
|
"eventemitter3": "3.1.0",
|
||||||
"exif-js": "2.3.0",
|
"exif-js": "2.3.0",
|
||||||
"file-loader": "1.1.11",
|
"file-loader": "1.1.11",
|
||||||
"file-type": "8.1.0",
|
"file-type": "8.1.0",
|
||||||
"fuckadblock": "3.2.1",
|
"fuckadblock": "3.2.1",
|
||||||
"gm": "1.23.1",
|
|
||||||
"gulp": "3.9.1",
|
"gulp": "3.9.1",
|
||||||
"gulp-cssnano": "2.1.3",
|
"gulp-cssnano": "2.1.3",
|
||||||
"gulp-htmlmin": "4.0.0",
|
"gulp-htmlmin": "4.0.0",
|
||||||
"gulp-imagemin": "4.1.0",
|
"gulp-imagemin": "4.1.0",
|
||||||
"gulp-mocha": "6.0.0",
|
"gulp-mocha": "6.0.0",
|
||||||
"gulp-pug": "4.0.1",
|
"gulp-pug": "4.0.1",
|
||||||
"gulp-rename": "1.3.0",
|
"gulp-rename": "1.4.0",
|
||||||
"gulp-replace": "1.0.0",
|
"gulp-replace": "1.0.0",
|
||||||
"gulp-sourcemaps": "2.6.4",
|
"gulp-sourcemaps": "2.6.4",
|
||||||
"gulp-stylus": "2.7.0",
|
"gulp-stylus": "2.7.0",
|
||||||
"gulp-tslint": "8.1.3",
|
"gulp-tslint": "8.1.3",
|
||||||
"gulp-typescript": "4.0.2",
|
"gulp-typescript": "4.0.2",
|
||||||
"gulp-uglify": "3.0.0",
|
"gulp-uglify": "3.0.1",
|
||||||
"gulp-util": "3.0.8",
|
"gulp-util": "3.0.8",
|
||||||
"hard-source-webpack-plugin": "0.11.0",
|
"hard-source-webpack-plugin": "0.11.2",
|
||||||
"highlight.js": "9.12.0",
|
"highlight.js": "9.12.0",
|
||||||
"html-minifier": "3.5.18",
|
"html-minifier": "3.5.19",
|
||||||
"http-signature": "1.2.0",
|
"http-signature": "1.2.0",
|
||||||
"inquirer": "6.0.0",
|
"insert-text-at-cursor": "0.1.1",
|
||||||
"is-root": "2.0.0",
|
"is-root": "2.0.0",
|
||||||
"is-url": "1.2.4",
|
"is-url": "1.2.4",
|
||||||
|
"jquery": "3.3.1",
|
||||||
"js-yaml": "3.12.0",
|
"js-yaml": "3.12.0",
|
||||||
"jsdom": "11.11.0",
|
"jsdom": "11.11.0",
|
||||||
"koa": "2.5.1",
|
"koa": "2.5.1",
|
||||||
@ -146,6 +147,7 @@
|
|||||||
"kue": "0.11.6",
|
"kue": "0.11.6",
|
||||||
"loader-utils": "1.1.0",
|
"loader-utils": "1.1.0",
|
||||||
"mecab-async": "0.1.2",
|
"mecab-async": "0.1.2",
|
||||||
|
"minio": "6.0.0",
|
||||||
"mkdirp": "0.5.1",
|
"mkdirp": "0.5.1",
|
||||||
"mocha": "5.2.0",
|
"mocha": "5.2.0",
|
||||||
"moji": "0.5.1",
|
"moji": "0.5.1",
|
||||||
@ -160,13 +162,13 @@
|
|||||||
"on-build-webpack": "0.1.0",
|
"on-build-webpack": "0.1.0",
|
||||||
"os-utils": "0.0.14",
|
"os-utils": "0.0.14",
|
||||||
"parse5": "5.0.0",
|
"parse5": "5.0.0",
|
||||||
|
"portscanner": "2.2.0",
|
||||||
"progress-bar-webpack-plugin": "1.11.0",
|
"progress-bar-webpack-plugin": "1.11.0",
|
||||||
"prominence": "0.2.0",
|
|
||||||
"promise-sequential": "1.1.1",
|
"promise-sequential": "1.1.1",
|
||||||
"pug": "2.0.3",
|
"pug": "2.0.3",
|
||||||
"punycode": "2.1.1",
|
"punycode": "2.1.1",
|
||||||
"qrcode": "1.2.0",
|
"qrcode": "1.2.0",
|
||||||
"ratelimiter": "3.1.0",
|
"ratelimiter": "3.2.0",
|
||||||
"recaptcha-promise": "0.1.3",
|
"recaptcha-promise": "0.1.3",
|
||||||
"reconnecting-websocket": "3.2.2",
|
"reconnecting-websocket": "3.2.2",
|
||||||
"redis": "2.8.0",
|
"redis": "2.8.0",
|
||||||
@ -177,15 +179,16 @@
|
|||||||
"s-age": "1.1.2",
|
"s-age": "1.1.2",
|
||||||
"sass-loader": "7.0.3",
|
"sass-loader": "7.0.3",
|
||||||
"seedrandom": "2.4.3",
|
"seedrandom": "2.4.3",
|
||||||
|
"sharp": "0.20.5",
|
||||||
|
"showdown": "1.8.6",
|
||||||
|
"showdown-highlightjs-extension": "0.1.2",
|
||||||
"single-line-log": "1.1.2",
|
"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",
|
||||||
"stylus-loader": "3.0.2",
|
"stylus-loader": "3.0.2",
|
||||||
"summaly": "2.0.6",
|
"summaly": "2.0.6",
|
||||||
"swagger-jsdoc": "1.9.7",
|
|
||||||
"syuilo-password-strength": "0.0.1",
|
"syuilo-password-strength": "0.0.1",
|
||||||
"tcp-port-used": "0.1.2",
|
|
||||||
"textarea-caret": "3.1.0",
|
"textarea-caret": "3.1.0",
|
||||||
"tmp": "0.0.33",
|
"tmp": "0.0.33",
|
||||||
"ts-loader": "4.4.1",
|
"ts-loader": "4.4.1",
|
||||||
@ -201,18 +204,19 @@
|
|||||||
"vue-cropperjs": "2.2.1",
|
"vue-cropperjs": "2.2.1",
|
||||||
"vue-js-modal": "1.3.16",
|
"vue-js-modal": "1.3.16",
|
||||||
"vue-json-tree-view": "2.1.4",
|
"vue-json-tree-view": "2.1.4",
|
||||||
"vue-loader": "15.2.4",
|
"vue-loader": "15.2.6",
|
||||||
"vue-router": "3.0.1",
|
"vue-router": "3.0.1",
|
||||||
|
"vue-style-loader": "4.1.1",
|
||||||
"vue-template-compiler": "2.5.16",
|
"vue-template-compiler": "2.5.16",
|
||||||
"vuedraggable": "2.16.0",
|
"vuedraggable": "2.16.0",
|
||||||
"vuex": "3.0.1",
|
"vuex": "3.0.1",
|
||||||
"vuex-persistedstate": "^2.5.4",
|
"vuex-persistedstate": "2.5.4",
|
||||||
"web-push": "3.3.2",
|
"web-push": "3.3.2",
|
||||||
"webfinger.js": "2.6.6",
|
"webfinger.js": "2.6.6",
|
||||||
"webpack": "4.15.1",
|
"webpack": "4.16.2",
|
||||||
"webpack-cli": "3.0.8",
|
"webpack-cli": "3.1.0",
|
||||||
"websocket": "1.0.26",
|
"websocket": "1.0.26",
|
||||||
"ws": "5.2.1",
|
"ws": "6.0.0",
|
||||||
"xev": "2.0.1"
|
"xev": "2.0.1"
|
||||||
},
|
},
|
||||||
"greenkeeper": {
|
"greenkeeper": {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="form">
|
<div class="form">
|
||||||
<header>
|
<header>
|
||||||
<h1><i>{{ app.name }}</i>があなたのアカウントにアクセスすることを<b>許可</b>しますか?</h1>
|
<h1><i>{{ app.name }}</i>があなたのアカウントにアクセスすることを<b>許可</b>しますか?</h1>
|
||||||
<img :src="`${app.iconUrl}?thumbnail&size=64`"/>
|
<img :src="app.iconUrl"/>
|
||||||
</header>
|
</header>
|
||||||
<div class="app">
|
<div class="app">
|
||||||
<section>
|
<section>
|
||||||
|
@ -17,21 +17,21 @@ export default function(type, data): Notification {
|
|||||||
return {
|
return {
|
||||||
title: 'ファイルがアップロードされました',
|
title: 'ファイルがアップロードされました',
|
||||||
body: data.name,
|
body: data.name,
|
||||||
icon: data.url + '?thumbnail&size=64'
|
icon: data.url
|
||||||
};
|
};
|
||||||
|
|
||||||
case 'unread_messaging_message':
|
case 'unread_messaging_message':
|
||||||
return {
|
return {
|
||||||
title: `${getUserName(data.user)}さんからメッセージ:`,
|
title: `${getUserName(data.user)}さんからメッセージ:`,
|
||||||
body: data.text, // TODO: getMessagingMessageSummary(data),
|
body: data.text, // TODO: getMessagingMessageSummary(data),
|
||||||
icon: data.user.avatarUrl + '?thumbnail&size=64'
|
icon: data.user.avatarUrl
|
||||||
};
|
};
|
||||||
|
|
||||||
case 'reversi_invited':
|
case 'reversi_invited':
|
||||||
return {
|
return {
|
||||||
title: '対局への招待があります',
|
title: '対局への招待があります',
|
||||||
body: `${getUserName(data.parent)}さんから`,
|
body: `${getUserName(data.parent)}さんから`,
|
||||||
icon: data.parent.avatarUrl + '?thumbnail&size=64'
|
icon: data.parent.avatarUrl
|
||||||
};
|
};
|
||||||
|
|
||||||
case 'notification':
|
case 'notification':
|
||||||
@ -40,28 +40,28 @@ export default function(type, data): Notification {
|
|||||||
return {
|
return {
|
||||||
title: `${getUserName(data.user)}さんから:`,
|
title: `${getUserName(data.user)}さんから:`,
|
||||||
body: getNoteSummary(data),
|
body: getNoteSummary(data),
|
||||||
icon: data.user.avatarUrl + '?thumbnail&size=64'
|
icon: data.user.avatarUrl
|
||||||
};
|
};
|
||||||
|
|
||||||
case 'reply':
|
case 'reply':
|
||||||
return {
|
return {
|
||||||
title: `${getUserName(data.user)}さんから返信:`,
|
title: `${getUserName(data.user)}さんから返信:`,
|
||||||
body: getNoteSummary(data),
|
body: getNoteSummary(data),
|
||||||
icon: data.user.avatarUrl + '?thumbnail&size=64'
|
icon: data.user.avatarUrl
|
||||||
};
|
};
|
||||||
|
|
||||||
case 'quote':
|
case 'quote':
|
||||||
return {
|
return {
|
||||||
title: `${getUserName(data.user)}さんが引用:`,
|
title: `${getUserName(data.user)}さんが引用:`,
|
||||||
body: getNoteSummary(data),
|
body: getNoteSummary(data),
|
||||||
icon: data.user.avatarUrl + '?thumbnail&size=64'
|
icon: data.user.avatarUrl
|
||||||
};
|
};
|
||||||
|
|
||||||
case 'reaction':
|
case 'reaction':
|
||||||
return {
|
return {
|
||||||
title: `${getUserName(data.user)}: ${getReactionEmoji(data.reaction)}:`,
|
title: `${getUserName(data.user)}: ${getReactionEmoji(data.reaction)}:`,
|
||||||
body: getNoteSummary(data.note),
|
body: getNoteSummary(data.note),
|
||||||
icon: data.user.avatarUrl + '?thumbnail&size=64'
|
icon: data.user.avatarUrl
|
||||||
};
|
};
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -39,13 +39,17 @@ export default Vue.extend({
|
|||||||
dark: {
|
dark: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
smooth: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
now: new Date(),
|
now: new Date(),
|
||||||
clock: null,
|
enabled: true,
|
||||||
|
|
||||||
graduationsPadding: 0.5,
|
graduationsPadding: 0.5,
|
||||||
handsPadding: 1,
|
handsPadding: 1,
|
||||||
@ -74,6 +78,9 @@ export default Vue.extend({
|
|||||||
return themeColor;
|
return themeColor;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
ms(): number {
|
||||||
|
return this.now.getMilliseconds() * this.smooth;
|
||||||
|
}
|
||||||
s(): number {
|
s(): number {
|
||||||
return this.now.getSeconds();
|
return this.now.getSeconds();
|
||||||
},
|
},
|
||||||
@ -85,13 +92,13 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
hAngle(): number {
|
hAngle(): number {
|
||||||
return Math.PI * (this.h % 12 + this.m / 60) / 6;
|
return Math.PI * (this.h % 12 + (this.m + (this.s + this.ms / 1000) / 60) / 60) / 6;
|
||||||
},
|
},
|
||||||
mAngle(): number {
|
mAngle(): number {
|
||||||
return Math.PI * (this.m + this.s / 60) / 30;
|
return Math.PI * (this.m + (this.s + this.ms / 1000) / 60) / 30;
|
||||||
},
|
},
|
||||||
sAngle(): number {
|
sAngle(): number {
|
||||||
return Math.PI * this.s / 30;
|
return Math.PI * (this.s + this.ms / 1000) / 30;
|
||||||
},
|
},
|
||||||
|
|
||||||
graduations(): any {
|
graduations(): any {
|
||||||
@ -106,11 +113,17 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.clock = setInterval(this.tick, 1000);
|
const update = () => {
|
||||||
|
if (this.enabled) {
|
||||||
|
this.tick();
|
||||||
|
requestAnimationFrame(update);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
update();
|
||||||
},
|
},
|
||||||
|
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
clearInterval(this.clock);
|
this.enabled = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -2,11 +2,16 @@
|
|||||||
<div class="mk-autocomplete" @contextmenu.prevent="() => {}">
|
<div class="mk-autocomplete" @contextmenu.prevent="() => {}">
|
||||||
<ol class="users" ref="suggests" v-if="users.length > 0">
|
<ol class="users" ref="suggests" v-if="users.length > 0">
|
||||||
<li v-for="user in users" @click="complete(type, user)" @keydown="onKeydown" tabindex="-1">
|
<li v-for="user in users" @click="complete(type, user)" @keydown="onKeydown" tabindex="-1">
|
||||||
<img class="avatar" :src="`${user.avatarUrl}?thumbnail&size=32`" alt=""/>
|
<img class="avatar" :src="user.avatarUrl" alt=""/>
|
||||||
<span class="name">{{ user | userName }}</span>
|
<span class="name">{{ user | userName }}</span>
|
||||||
<span class="username">@{{ user | acct }}</span>
|
<span class="username">@{{ user | acct }}</span>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
<ol class="hashtags" ref="suggests" v-if="hashtags.length > 0">
|
||||||
|
<li v-for="hashtag in hashtags" @click="complete(type, hashtag)" @keydown="onKeydown" tabindex="-1">
|
||||||
|
<span class="name">{{ hashtag }}</span>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
<ol class="emojis" ref="suggests" v-if="emojis.length > 0">
|
<ol class="emojis" ref="suggests" v-if="emojis.length > 0">
|
||||||
<li v-for="emoji in emojis" @click="complete(type, emoji.emoji)" @keydown="onKeydown" tabindex="-1">
|
<li v-for="emoji in emojis" @click="complete(type, emoji.emoji)" @keydown="onKeydown" tabindex="-1">
|
||||||
<span class="emoji">{{ emoji.emoji }}</span>
|
<span class="emoji">{{ emoji.emoji }}</span>
|
||||||
@ -48,33 +53,33 @@ emjdb.sort((a, b) => a.name.length - b.name.length);
|
|||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
props: ['type', 'q', 'textarea', 'complete', 'close', 'x', 'y'],
|
props: ['type', 'q', 'textarea', 'complete', 'close', 'x', 'y'],
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
fetching: true,
|
fetching: true,
|
||||||
users: [],
|
users: [],
|
||||||
|
hashtags: [],
|
||||||
emojis: [],
|
emojis: [],
|
||||||
select: -1,
|
select: -1,
|
||||||
emojilib
|
emojilib
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
items(): HTMLCollection {
|
items(): HTMLCollection {
|
||||||
return (this.$refs.suggests as Element).children;
|
return (this.$refs.suggests as Element).children;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
updated() {
|
updated() {
|
||||||
//#region 位置調整
|
//#region 位置調整
|
||||||
const margin = 32;
|
if (this.x + this.$el.offsetWidth > window.innerWidth) {
|
||||||
|
this.$el.style.left = (window.innerWidth - this.$el.offsetWidth) + 'px';
|
||||||
if (this.x + this.$el.offsetWidth > window.innerWidth - margin) {
|
|
||||||
this.$el.style.left = (this.x - this.$el.offsetWidth) + 'px';
|
|
||||||
this.$el.style.marginLeft = '-16px';
|
|
||||||
} else {
|
} else {
|
||||||
this.$el.style.left = this.x + 'px';
|
this.$el.style.left = this.x + 'px';
|
||||||
this.$el.style.marginLeft = '0';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.y + this.$el.offsetHeight > window.innerHeight - margin) {
|
if (this.y + this.$el.offsetHeight > window.innerHeight) {
|
||||||
this.$el.style.top = (this.y - this.$el.offsetHeight) + 'px';
|
this.$el.style.top = (this.y - this.$el.offsetHeight) + 'px';
|
||||||
this.$el.style.marginTop = '0';
|
this.$el.style.marginTop = '0';
|
||||||
} else {
|
} else {
|
||||||
@ -83,6 +88,7 @@ export default Vue.extend({
|
|||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.textarea.addEventListener('keydown', this.onKeydown);
|
this.textarea.addEventListener('keydown', this.onKeydown);
|
||||||
|
|
||||||
@ -100,6 +106,7 @@ export default Vue.extend({
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
this.textarea.removeEventListener('keydown', this.onKeydown);
|
this.textarea.removeEventListener('keydown', this.onKeydown);
|
||||||
|
|
||||||
@ -107,6 +114,7 @@ export default Vue.extend({
|
|||||||
el.removeEventListener('mousedown', this.onMousedown);
|
el.removeEventListener('mousedown', this.onMousedown);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
exec() {
|
exec() {
|
||||||
this.select = -1;
|
this.select = -1;
|
||||||
@ -117,7 +125,8 @@ export default Vue.extend({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.type == 'user') {
|
if (this.type == 'user') {
|
||||||
const cache = sessionStorage.getItem(this.q);
|
const cacheKey = 'autocomplete:user:' + this.q;
|
||||||
|
const cache = sessionStorage.getItem(cacheKey);
|
||||||
if (cache) {
|
if (cache) {
|
||||||
const users = JSON.parse(cache);
|
const users = JSON.parse(cache);
|
||||||
this.users = users;
|
this.users = users;
|
||||||
@ -131,9 +140,33 @@ export default Vue.extend({
|
|||||||
this.fetching = false;
|
this.fetching = false;
|
||||||
|
|
||||||
// キャッシュ
|
// キャッシュ
|
||||||
sessionStorage.setItem(this.q, JSON.stringify(users));
|
sessionStorage.setItem(cacheKey, JSON.stringify(users));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
} else if (this.type == 'hashtag') {
|
||||||
|
if (this.q == null || this.q == '') {
|
||||||
|
this.hashtags = JSON.parse(localStorage.getItem('hashtags') || '[]');
|
||||||
|
this.fetching = false;
|
||||||
|
} else {
|
||||||
|
const cacheKey = 'autocomplete:hashtag:' + this.q;
|
||||||
|
const cache = sessionStorage.getItem(cacheKey);
|
||||||
|
if (cache) {
|
||||||
|
const hashtags = JSON.parse(cache);
|
||||||
|
this.hashtags = hashtags;
|
||||||
|
this.fetching = false;
|
||||||
|
} else {
|
||||||
|
(this as any).api('hashtags/search', {
|
||||||
|
query: this.q,
|
||||||
|
limit: 30
|
||||||
|
}).then(hashtags => {
|
||||||
|
this.hashtags = hashtags;
|
||||||
|
this.fetching = false;
|
||||||
|
|
||||||
|
// キャッシュ
|
||||||
|
sessionStorage.setItem(cacheKey, JSON.stringify(hashtags));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
} else if (this.type == 'emoji') {
|
} else if (this.type == 'emoji') {
|
||||||
const matched = [];
|
const matched = [];
|
||||||
emjdb.some(x => {
|
emjdb.some(x => {
|
||||||
@ -228,12 +261,13 @@ export default Vue.extend({
|
|||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
@import '~const.styl'
|
@import '~const.styl'
|
||||||
|
|
||||||
.mk-autocomplete
|
root(isDark)
|
||||||
position fixed
|
position fixed
|
||||||
z-index 65535
|
z-index 65535
|
||||||
|
max-width 100%
|
||||||
margin-top calc(1em + 8px)
|
margin-top calc(1em + 8px)
|
||||||
overflow hidden
|
overflow hidden
|
||||||
background #fff
|
background isDark ? #313543 : #fff
|
||||||
border solid 1px rgba(#000, 0.1)
|
border solid 1px rgba(#000, 0.1)
|
||||||
border-radius 4px
|
border-radius 4px
|
||||||
transition top 0.1s ease, left 0.1s ease
|
transition top 0.1s ease, left 0.1s ease
|
||||||
@ -248,7 +282,8 @@ export default Vue.extend({
|
|||||||
list-style none
|
list-style none
|
||||||
|
|
||||||
> li
|
> li
|
||||||
display block
|
display flex
|
||||||
|
align-items center
|
||||||
padding 4px 12px
|
padding 4px 12px
|
||||||
white-space nowrap
|
white-space nowrap
|
||||||
overflow hidden
|
overflow hidden
|
||||||
@ -259,7 +294,13 @@ export default Vue.extend({
|
|||||||
&, *
|
&, *
|
||||||
user-select none
|
user-select none
|
||||||
|
|
||||||
|
*
|
||||||
|
overflow hidden
|
||||||
|
text-overflow ellipsis
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
|
background isDark ? rgba(#fff, 0.1) : rgba(#000, 0.1)
|
||||||
|
|
||||||
&[data-selected='true']
|
&[data-selected='true']
|
||||||
background $theme-color
|
background $theme-color
|
||||||
|
|
||||||
@ -275,7 +316,6 @@ export default Vue.extend({
|
|||||||
> .users > li
|
> .users > li
|
||||||
|
|
||||||
.avatar
|
.avatar
|
||||||
vertical-align middle
|
|
||||||
min-width 28px
|
min-width 28px
|
||||||
min-height 28px
|
min-height 28px
|
||||||
max-width 28px
|
max-width 28px
|
||||||
@ -285,10 +325,15 @@ export default Vue.extend({
|
|||||||
|
|
||||||
.name
|
.name
|
||||||
margin 0 8px 0 0
|
margin 0 8px 0 0
|
||||||
color rgba(#000, 0.8)
|
color isDark ? rgba(#fff, 0.8) : rgba(#000, 0.8)
|
||||||
|
|
||||||
.username
|
.username
|
||||||
color rgba(#000, 0.3)
|
color isDark ? rgba(#fff, 0.3) : rgba(#000, 0.3)
|
||||||
|
|
||||||
|
> .hashtags > li
|
||||||
|
|
||||||
|
.name
|
||||||
|
color isDark ? rgba(#fff, 0.8) : rgba(#000, 0.8)
|
||||||
|
|
||||||
> .emojis > li
|
> .emojis > li
|
||||||
|
|
||||||
@ -298,10 +343,15 @@ export default Vue.extend({
|
|||||||
width 24px
|
width 24px
|
||||||
|
|
||||||
.name
|
.name
|
||||||
color rgba(#000, 0.8)
|
color isDark ? rgba(#fff, 0.8) : rgba(#000, 0.8)
|
||||||
|
|
||||||
.alias
|
.alias
|
||||||
margin 0 0 0 8px
|
margin 0 0 0 8px
|
||||||
color rgba(#000, 0.3)
|
color isDark ? rgba(#fff, 0.3) : rgba(#000, 0.3)
|
||||||
|
|
||||||
|
.mk-autocomplete[data-darkmode]
|
||||||
|
root(true)
|
||||||
|
|
||||||
|
.mk-autocomplete:not([data-darkmode])
|
||||||
|
root(false)
|
||||||
</style>
|
</style>
|
||||||
|
@ -31,7 +31,7 @@ export default Vue.extend({
|
|||||||
: this.user.avatarColor && this.user.avatarColor.length == 3
|
: this.user.avatarColor && this.user.avatarColor.length == 3
|
||||||
? `rgb(${ this.user.avatarColor.join(',') })`
|
? `rgb(${ this.user.avatarColor.join(',') })`
|
||||||
: null,
|
: null,
|
||||||
backgroundImage: this.lightmode ? null : `url(${ this.user.avatarUrl }?thumbnail)`,
|
backgroundImage: this.lightmode ? null : `url(${ this.user.avatarUrl })`,
|
||||||
borderRadius: this.$store.state.settings.circleIcons ? '100%' : null
|
borderRadius: this.$store.state.settings.circleIcons ? '100%' : null
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -26,8 +26,8 @@
|
|||||||
:class="{ empty: stone == null, none: o.map[i] == 'null', isEnded: game.isEnded, myTurn: !game.isEnded && isMyTurn, can: turnUser ? o.canPut(turnUser.id == blackUser.id, i) : null, prev: o.prevPos == i }"
|
:class="{ empty: stone == null, none: o.map[i] == 'null', isEnded: game.isEnded, myTurn: !game.isEnded && isMyTurn, can: turnUser ? o.canPut(turnUser.id == blackUser.id, i) : null, prev: o.prevPos == i }"
|
||||||
@click="set(i)"
|
@click="set(i)"
|
||||||
:title="`${String.fromCharCode(65 + o.transformPosToXy(i)[0])}${o.transformPosToXy(i)[1] + 1}`">
|
:title="`${String.fromCharCode(65 + o.transformPosToXy(i)[0])}${o.transformPosToXy(i)[1] + 1}`">
|
||||||
<img v-if="stone === true" :src="`${blackUser.avatarUrl}?thumbnail&size=128`" alt="">
|
<img v-if="stone === true" :src="blackUser.avatarUrl" alt="">
|
||||||
<img v-if="stone === false" :src="`${whiteUser.avatarUrl}?thumbnail&size=128`" alt="">
|
<img v-if="stone === false" :src="whiteUser.avatarUrl" alt="">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="labels-y" v-if="this.$store.state.settings.reversiBoardLabels">
|
<div class="labels-y" v-if="this.$store.state.settings.reversiBoardLabels">
|
||||||
|
@ -112,7 +112,7 @@ export default Vue.extend({
|
|||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
mapCategories(): string[] {
|
mapCategories(): string[] {
|
||||||
const categories = Object.entries(maps).map(x => x[1].category);
|
const categories = Object.values(maps).map(x => x.category);
|
||||||
return categories.filter((item, pos) => categories.indexOf(item) == pos);
|
return categories.filter((item, pos) => categories.indexOf(item) == pos);
|
||||||
},
|
},
|
||||||
isAccepted(): boolean {
|
isAccepted(): boolean {
|
||||||
@ -179,8 +179,8 @@ export default Vue.extend({
|
|||||||
if (this.game.settings.map == null) {
|
if (this.game.settings.map == null) {
|
||||||
this.mapName = null;
|
this.mapName = null;
|
||||||
} else {
|
} else {
|
||||||
const foundMap = Object.entries(maps).find(x => x[1].data.join('') == this.game.settings.map.join(''));
|
const found = Object.values(maps).find(x => x.data.join('') == this.game.settings.map.join(''));
|
||||||
this.mapName = foundMap ? foundMap[1].name : '-Custom-';
|
this.mapName = found ? found.name : '-Custom-';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -206,7 +206,7 @@ export default Vue.extend({
|
|||||||
if (v == null) {
|
if (v == null) {
|
||||||
this.game.settings.map = null;
|
this.game.settings.map = null;
|
||||||
} else {
|
} else {
|
||||||
this.game.settings.map = Object.entries(maps).find(x => x[1].name == v)[1].data;
|
this.game.settings.map = Object.values(maps).find(x => x.name == v).data;
|
||||||
}
|
}
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
this.updateSettings();
|
this.updateSettings();
|
||||||
|
@ -46,33 +46,45 @@ export default Vue.extend({
|
|||||||
display grid
|
display grid
|
||||||
grid-gap 4px
|
grid-gap 4px
|
||||||
|
|
||||||
|
> *
|
||||||
|
overflow hidden
|
||||||
|
border-radius 4px
|
||||||
|
|
||||||
&[data-count="1"]
|
&[data-count="1"]
|
||||||
grid-template-rows 1fr
|
grid-template-rows 1fr
|
||||||
|
|
||||||
&[data-count="2"]
|
&[data-count="2"]
|
||||||
grid-template-columns 1fr 1fr
|
grid-template-columns 1fr 1fr
|
||||||
grid-template-rows 1fr
|
grid-template-rows 1fr
|
||||||
|
|
||||||
&[data-count="3"]
|
&[data-count="3"]
|
||||||
grid-template-columns 1fr 0.5fr
|
grid-template-columns 1fr 0.5fr
|
||||||
grid-template-rows 1fr 1fr
|
grid-template-rows 1fr 1fr
|
||||||
:nth-child(1)
|
|
||||||
|
> *:nth-child(1)
|
||||||
grid-row 1 / 3
|
grid-row 1 / 3
|
||||||
:nth-child(3)
|
|
||||||
|
> *:nth-child(3)
|
||||||
grid-column 2 / 3
|
grid-column 2 / 3
|
||||||
grid-row 2 / 3
|
grid-row 2 / 3
|
||||||
|
|
||||||
&[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
|
||||||
:nth-child(2)
|
|
||||||
|
> *:nth-child(2)
|
||||||
grid-column 2 / 3
|
grid-column 2 / 3
|
||||||
grid-row 1 / 2
|
grid-row 1 / 2
|
||||||
:nth-child(3)
|
|
||||||
|
> *:nth-child(3)
|
||||||
grid-column 1 / 2
|
grid-column 1 / 2
|
||||||
grid-row 2 / 3
|
grid-row 2 / 3
|
||||||
:nth-child(4)
|
|
||||||
|
> *:nth-child(4)
|
||||||
grid-column 2 / 3
|
grid-column 2 / 3
|
||||||
grid-row 2 / 3
|
grid-row 2 / 3
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onKeypress(e) {
|
onKeypress(e) {
|
||||||
if ((e.which == 10 || e.which == 13) && e.ctrlKey) {
|
if ((e.which == 10 || e.which == 13) && e.ctrlKey && this.canSend) {
|
||||||
this.send();
|
this.send();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
<mk-avatar class="avatar" :user="message.user" target="_blank"/>
|
<mk-avatar class="avatar" :user="message.user" target="_blank"/>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="balloon" :data-no-text="message.text == null">
|
<div class="balloon" :data-no-text="message.text == null">
|
||||||
<button class="delete-button" v-if="isMe" title="%i18n:common.delete%">
|
<!-- <button class="delete-button" v-if="isMe" title="%i18n:common.delete%">
|
||||||
<img src="/assets/desktop/messaging/delete.png" alt="Delete"/>
|
<img src="/assets/desktop/messaging/delete.png" alt="Delete"/>
|
||||||
</button>
|
</button> -->
|
||||||
<div class="content" v-if="!message.isDeleted">
|
<div class="content" v-if="!message.isDeleted">
|
||||||
<misskey-flavored-markdown class="text" v-if="message.text" ref="text" :text="message.text" :i="$store.state.i"/>
|
<misskey-flavored-markdown class="text" v-if="message.text" ref="text" :text="message.text" :i="$store.state.i"/>
|
||||||
<div class="file" v-if="message.file">
|
<div class="file" v-if="message.file">
|
||||||
@ -175,14 +175,11 @@ root(isDark)
|
|||||||
margin 8px 0
|
margin 8px 0
|
||||||
|
|
||||||
> footer
|
> footer
|
||||||
display flex
|
display block
|
||||||
margin 2px 0 0 0
|
margin 2px 0 0 0
|
||||||
font-size 11px
|
font-size 10px
|
||||||
color isDark ? rgba(#fff, 0.4) : rgba(#000, 0.4)
|
color isDark ? rgba(#fff, 0.4) : rgba(#000, 0.4)
|
||||||
|
|
||||||
> .read
|
|
||||||
margin 0 8px 0 0
|
|
||||||
|
|
||||||
> [data-fa]
|
> [data-fa]
|
||||||
margin-left 4px
|
margin-left 4px
|
||||||
|
|
||||||
@ -214,7 +211,7 @@ root(isDark)
|
|||||||
color #fff
|
color #fff
|
||||||
|
|
||||||
> footer
|
> footer
|
||||||
justify-content left
|
text-align left
|
||||||
|
|
||||||
&[data-is-me]
|
&[data-is-me]
|
||||||
> .avatar
|
> .avatar
|
||||||
@ -248,7 +245,13 @@ root(isDark)
|
|||||||
color #fff !important
|
color #fff !important
|
||||||
|
|
||||||
> footer
|
> footer
|
||||||
justify-content right
|
text-align right
|
||||||
|
|
||||||
|
> .read
|
||||||
|
user-select none
|
||||||
|
margin 0 4px 0 0
|
||||||
|
color isDark ? rgba(#fff, 0.5) : rgba(#000, 0.5)
|
||||||
|
font-size 11px
|
||||||
|
|
||||||
&[data-is-deleted]
|
&[data-is-deleted]
|
||||||
> .baloon
|
> .baloon
|
||||||
|
@ -255,8 +255,7 @@ root(isDark)
|
|||||||
width 100%
|
width 100%
|
||||||
max-width 600px
|
max-width 600px
|
||||||
margin 0 auto
|
margin 0 auto
|
||||||
flex 1 1 0
|
flex 1
|
||||||
overflow-y auto
|
|
||||||
|
|
||||||
> .init
|
> .init
|
||||||
width 100%
|
width 100%
|
||||||
@ -342,6 +341,10 @@ root(isDark)
|
|||||||
background isDark ? #191b22 : #fff
|
background isDark ? #191b22 : #fff
|
||||||
|
|
||||||
> footer
|
> footer
|
||||||
|
position -webkit-sticky
|
||||||
|
position sticky
|
||||||
|
z-index 2
|
||||||
|
bottom 0
|
||||||
width 100%
|
width 100%
|
||||||
max-width 600px
|
max-width 600px
|
||||||
margin 0 auto
|
margin 0 auto
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
<header class="bvonvjxbwzaiskogyhbwgyxvcgserpmu">
|
<header class="bvonvjxbwzaiskogyhbwgyxvcgserpmu">
|
||||||
<mk-avatar class="avatar" :user="note.user" v-if="$store.state.device.postStyle == 'smart'"/>
|
<mk-avatar class="avatar" :user="note.user" v-if="$store.state.device.postStyle == 'smart'"/>
|
||||||
<router-link class="name" :to="note.user | userPage" v-user-preview="note.user.id">{{ note.user | userName }}</router-link>
|
<router-link class="name" :to="note.user | userPage" v-user-preview="note.user.id">{{ note.user | userName }}</router-link>
|
||||||
|
<span class="is-verified" v-if="note.user.isVerified" title="%i18n:common.verified-user%">%fa:bookmark%</span>
|
||||||
<span class="is-admin" v-if="note.user.isAdmin">admin</span>
|
<span class="is-admin" v-if="note.user.isAdmin">admin</span>
|
||||||
<span class="is-bot" v-if="note.user.isBot">bot</span>
|
<span class="is-bot" v-if="note.user.isBot">bot</span>
|
||||||
<span class="is-cat" v-if="note.user.isCat">cat</span>
|
<span class="is-cat" v-if="note.user.isCat">cat</span>
|
||||||
@ -69,6 +70,10 @@ root(isDark)
|
|||||||
&:hover
|
&:hover
|
||||||
text-decoration underline
|
text-decoration underline
|
||||||
|
|
||||||
|
> .is-verified
|
||||||
|
margin-right 8px
|
||||||
|
color #4dabf7
|
||||||
|
|
||||||
> .is-admin
|
> .is-admin
|
||||||
> .is-bot
|
> .is-bot
|
||||||
> .is-cat
|
> .is-cat
|
||||||
|
@ -29,11 +29,7 @@
|
|||||||
<p slot="text" v-if="passwordRetypeState == 'not-match'" style="color:#FF1161">%fa:exclamation-triangle .fw% %i18n:@password-not-matched%</p>
|
<p slot="text" v-if="passwordRetypeState == 'not-match'" style="color:#FF1161">%fa:exclamation-triangle .fw% %i18n:@password-not-matched%</p>
|
||||||
</div>
|
</div>
|
||||||
</ui-input>
|
</ui-input>
|
||||||
<div class="g-recaptcha" :data-sitekey="recaptchaSitekey" style="margin: 16px 0;"></div>
|
<div v-if="recaptchaSitekey != null" class="g-recaptcha" :data-sitekey="recaptchaSitekey" style="margin: 16px 0;"></div>
|
||||||
<label class="agree-tou" style="display: block; margin: 16px 0;">
|
|
||||||
<input name="agree-tou" type="checkbox" required/>
|
|
||||||
<p><a :href="touUrl" target="_blank">利用規約</a>に同意する</p>
|
|
||||||
</label>
|
|
||||||
<ui-button type="submit">%i18n:@create%</ui-button>
|
<ui-button type="submit">%i18n:@create%</ui-button>
|
||||||
</form>
|
</form>
|
||||||
</template>
|
</template>
|
||||||
@ -41,7 +37,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
const getPasswordStrength = require('syuilo-password-strength');
|
const getPasswordStrength = require('syuilo-password-strength');
|
||||||
import { host, url, docsUrl, lang, recaptchaSitekey } from '../../../config';
|
import { host, url, recaptchaSitekey } from '../../../config';
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
data() {
|
data() {
|
||||||
@ -51,7 +47,6 @@ export default Vue.extend({
|
|||||||
password: '',
|
password: '',
|
||||||
retypedPassword: '',
|
retypedPassword: '',
|
||||||
url,
|
url,
|
||||||
touUrl: `${docsUrl}/${lang}/tou`,
|
|
||||||
recaptchaSitekey,
|
recaptchaSitekey,
|
||||||
usernameState: null,
|
usernameState: null,
|
||||||
passwordStrength: '',
|
passwordStrength: '',
|
||||||
@ -115,7 +110,7 @@ export default Vue.extend({
|
|||||||
(this as any).api('signup', {
|
(this as any).api('signup', {
|
||||||
username: this.username,
|
username: this.username,
|
||||||
password: this.password,
|
password: this.password,
|
||||||
'g-recaptcha-response': (window as any).grecaptcha.getResponse()
|
'g-recaptcha-response': recaptchaSitekey != null ? (window as any).grecaptcha.getResponse() : null
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
(this as any).api('signin', {
|
(this as any).api('signin', {
|
||||||
username: this.username,
|
username: this.username,
|
||||||
@ -126,16 +121,20 @@ export default Vue.extend({
|
|||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
alert('%i18n:@some-error%');
|
alert('%i18n:@some-error%');
|
||||||
|
|
||||||
|
if (recaptchaSitekey != null) {
|
||||||
(window as any).grecaptcha.reset();
|
(window as any).grecaptcha.reset();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
if (recaptchaSitekey != null) {
|
||||||
const head = document.getElementsByTagName('head')[0];
|
const head = document.getElementsByTagName('head')[0];
|
||||||
const script = document.createElement('script');
|
const script = document.createElement('script');
|
||||||
script.setAttribute('src', 'https://www.google.com/recaptcha/api.js');
|
script.setAttribute('src', 'https://www.google.com/recaptcha/api.js');
|
||||||
head.appendChild(script);
|
head.appendChild(script);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -144,22 +143,4 @@ export default Vue.extend({
|
|||||||
|
|
||||||
.mk-signup
|
.mk-signup
|
||||||
min-width 302px
|
min-width 302px
|
||||||
|
|
||||||
.agree-tou
|
|
||||||
padding 4px
|
|
||||||
border-radius 4px
|
|
||||||
|
|
||||||
&:hover
|
|
||||||
background #f4f4f4
|
|
||||||
|
|
||||||
&:active
|
|
||||||
background #eee
|
|
||||||
|
|
||||||
&, *
|
|
||||||
cursor pointer
|
|
||||||
|
|
||||||
p
|
|
||||||
display inline
|
|
||||||
color #555
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
<iframe v-if="youtubeId" type="text/html" height="250"
|
<iframe v-if="youtubeId" type="text/html" height="250"
|
||||||
:src="`https://www.youtube.com/embed/${youtubeId}?origin=${misskeyUrl}`"
|
:src="`https://www.youtube.com/embed/${youtubeId}?origin=${misskeyUrl}`"
|
||||||
frameborder="0"/>
|
frameborder="0"/>
|
||||||
|
<blockquote v-else-if="tweetUrl" class="twitter-tweet" ref="tweet">
|
||||||
|
<a :href="url"></a>
|
||||||
|
</blockquote>
|
||||||
<div v-else class="mk-url-preview">
|
<div v-else class="mk-url-preview">
|
||||||
<a :href="url" target="_blank" :title="url" v-if="!fetching">
|
<a :href="url" target="_blank" :title="url" v-if="!fetching">
|
||||||
<div class="thumbnail" v-if="thumbnail" :style="`background-image: url(${thumbnail})`"></div>
|
<div class="thumbnail" v-if="thumbnail" :style="`background-image: url(${thumbnail})`"></div>
|
||||||
@ -34,6 +37,7 @@ export default Vue.extend({
|
|||||||
icon: null,
|
icon: null,
|
||||||
sitename: null,
|
sitename: null,
|
||||||
youtubeId: null,
|
youtubeId: null,
|
||||||
|
tweetUrl: null,
|
||||||
misskeyUrl
|
misskeyUrl
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -44,6 +48,25 @@ export default Vue.extend({
|
|||||||
this.youtubeId = url.searchParams.get('v');
|
this.youtubeId = url.searchParams.get('v');
|
||||||
} else if (url.hostname == 'youtu.be') {
|
} else if (url.hostname == 'youtu.be') {
|
||||||
this.youtubeId = url.pathname;
|
this.youtubeId = url.pathname;
|
||||||
|
} else if (url.hostname == 'twitter.com' && /^\/.+\/status(es)?\/\d+/.test(url.pathname)) {
|
||||||
|
this.tweetUrl = url;
|
||||||
|
const twttr = (window as any).twttr || {};
|
||||||
|
const loadTweet = () => twttr.widgets.load(this.$refs.tweet);
|
||||||
|
|
||||||
|
if (twttr.widgets) {
|
||||||
|
Vue.nextTick(loadTweet);
|
||||||
|
} else {
|
||||||
|
const wjsId = 'twitter-wjs';
|
||||||
|
if (!document.getElementById(wjsId)) {
|
||||||
|
const head = document.getElementsByTagName('head')[0];
|
||||||
|
const script = document.createElement('script');
|
||||||
|
script.setAttribute('id', wjsId);
|
||||||
|
script.setAttribute('src', 'https://platform.twitter.com/widgets.js');
|
||||||
|
head.appendChild(script);
|
||||||
|
}
|
||||||
|
twttr.ready = loadTweet;
|
||||||
|
(window as any).twttr = twttr;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
fetch('/url?url=' + encodeURIComponent(this.url)).then(res => {
|
fetch('/url?url=' + encodeURIComponent(this.url)).then(res => {
|
||||||
res.json().then(info => {
|
res.json().then(info => {
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import * as getCaretCoordinates from 'textarea-caret';
|
import * as getCaretCoordinates from 'textarea-caret';
|
||||||
import MkAutocomplete from '../components/autocomplete.vue';
|
import MkAutocomplete from '../components/autocomplete.vue';
|
||||||
|
import renderAcct from '../../../../../misc/acct/render';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
bind(el, binding, vn) {
|
bind(el, binding, vn) {
|
||||||
@ -67,15 +68,30 @@ class Autocomplete {
|
|||||||
* テキスト入力時
|
* テキスト入力時
|
||||||
*/
|
*/
|
||||||
private onInput() {
|
private onInput() {
|
||||||
const caret = this.textarea.selectionStart;
|
const caretPos = this.textarea.selectionStart;
|
||||||
const text = this.text.substr(0, caret);
|
const text = this.text.substr(0, caretPos);
|
||||||
|
|
||||||
const mentionIndex = text.lastIndexOf('@');
|
const mentionIndex = text.lastIndexOf('@');
|
||||||
|
const hashtagIndex = text.lastIndexOf('#');
|
||||||
const emojiIndex = text.lastIndexOf(':');
|
const emojiIndex = text.lastIndexOf(':');
|
||||||
|
|
||||||
|
const start = Math.min(
|
||||||
|
mentionIndex == -1 ? Infinity : mentionIndex,
|
||||||
|
hashtagIndex == -1 ? Infinity : hashtagIndex,
|
||||||
|
emojiIndex == -1 ? Infinity : emojiIndex);
|
||||||
|
|
||||||
|
if (start == Infinity) {
|
||||||
|
this.close();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const isMention = mentionIndex == start;
|
||||||
|
const isHashtag = hashtagIndex == start;
|
||||||
|
const isEmoji = emojiIndex == start;
|
||||||
|
|
||||||
let opened = false;
|
let opened = false;
|
||||||
|
|
||||||
if (mentionIndex != -1 && mentionIndex > emojiIndex) {
|
if (isMention) {
|
||||||
const username = text.substr(mentionIndex + 1);
|
const username = text.substr(mentionIndex + 1);
|
||||||
if (username != '' && username.match(/^[a-zA-Z0-9_]+$/)) {
|
if (username != '' && username.match(/^[a-zA-Z0-9_]+$/)) {
|
||||||
this.open('user', username);
|
this.open('user', username);
|
||||||
@ -83,7 +99,15 @@ class Autocomplete {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (emojiIndex != -1 && emojiIndex > mentionIndex) {
|
if (isHashtag || opened == false) {
|
||||||
|
const hashtag = text.substr(hashtagIndex + 1);
|
||||||
|
if (!hashtag.includes(' ') && !hashtag.includes('\n')) {
|
||||||
|
this.open('hashtag', hashtag);
|
||||||
|
opened = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isEmoji || opened == false) {
|
||||||
const emoji = text.substr(emojiIndex + 1);
|
const emoji = text.substr(emojiIndex + 1);
|
||||||
if (emoji != '' && emoji.match(/^[\+\-a-z0-9_]+$/)) {
|
if (emoji != '' && emoji.match(/^[\+\-a-z0-9_]+$/)) {
|
||||||
this.open('emoji', emoji);
|
this.open('emoji', emoji);
|
||||||
@ -164,13 +188,31 @@ class Autocomplete {
|
|||||||
const trimmedBefore = before.substring(0, before.lastIndexOf('@'));
|
const trimmedBefore = before.substring(0, before.lastIndexOf('@'));
|
||||||
const after = source.substr(caret);
|
const after = source.substr(caret);
|
||||||
|
|
||||||
|
const acct = renderAcct(value);
|
||||||
|
|
||||||
// 挿入
|
// 挿入
|
||||||
this.text = trimmedBefore + '@' + value.username + ' ' + after;
|
this.text = trimmedBefore + '@' + acct + ' ' + after;
|
||||||
|
|
||||||
// キャレットを戻す
|
// キャレットを戻す
|
||||||
this.vm.$nextTick(() => {
|
this.vm.$nextTick(() => {
|
||||||
this.textarea.focus();
|
this.textarea.focus();
|
||||||
const pos = trimmedBefore.length + (value.username.length + 2);
|
const pos = trimmedBefore.length + (acct.length + 2);
|
||||||
|
this.textarea.setSelectionRange(pos, pos);
|
||||||
|
});
|
||||||
|
} else if (type == 'hashtag') {
|
||||||
|
const source = this.text;
|
||||||
|
|
||||||
|
const before = source.substr(0, caret);
|
||||||
|
const trimmedBefore = before.substring(0, before.lastIndexOf('#'));
|
||||||
|
const after = source.substr(caret);
|
||||||
|
|
||||||
|
// 挿入
|
||||||
|
this.text = trimmedBefore + '#' + value + ' ' + after;
|
||||||
|
|
||||||
|
// キャレットを戻す
|
||||||
|
this.vm.$nextTick(() => {
|
||||||
|
this.textarea.focus();
|
||||||
|
const pos = trimmedBefore.length + (value.length + 2);
|
||||||
this.textarea.setSelectionRange(pos, pos);
|
this.textarea.setSelectionRange(pos, pos);
|
||||||
});
|
});
|
||||||
} else if (type == 'emoji') {
|
} else if (type == 'emoji') {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="mkw-analog-clock">
|
<div class="mkw-analog-clock">
|
||||||
<mk-widget-container :naked="props.naked" :show-header="false">
|
<mk-widget-container :naked="!(props.design % 2)" :show-header="false">
|
||||||
<div class="mkw-analog-clock--body">
|
<div class="mkw-analog-clock--body">
|
||||||
<mk-analog-clock :dark="$store.state.device.darkmode"/>
|
<mk-analog-clock :dark="$store.state.device.darkmode" :smooth="!(props.design && ~props.design)"/>
|
||||||
</div>
|
</div>
|
||||||
</mk-widget-container>
|
</mk-widget-container>
|
||||||
</div>
|
</div>
|
||||||
@ -13,12 +13,13 @@ import define from '../../../common/define-widget';
|
|||||||
export default define({
|
export default define({
|
||||||
name: 'analog-clock',
|
name: 'analog-clock',
|
||||||
props: () => ({
|
props: () => ({
|
||||||
naked: false
|
design: -1
|
||||||
})
|
})
|
||||||
}).extend({
|
}).extend({
|
||||||
methods: {
|
methods: {
|
||||||
func() {
|
func() {
|
||||||
this.props.naked = !this.props.naked;
|
if (++this.props.design > 2)
|
||||||
|
this.props.design = -1;
|
||||||
this.save();
|
this.save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -175,6 +175,7 @@ root(isDark)
|
|||||||
> .val
|
> .val
|
||||||
height 4px
|
height 4px
|
||||||
background $theme-color
|
background $theme-color
|
||||||
|
transition width .3s cubic-bezier(0.23, 1, 0.32, 1)
|
||||||
|
|
||||||
&:nth-child(1)
|
&:nth-child(1)
|
||||||
> .meter > .val
|
> .meter > .val
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<p :class="$style.fetching" v-if="fetching">%fa:spinner .pulse .fw%%i18n:common.loading%<mk-ellipsis/></p>
|
<p :class="$style.fetching" v-if="fetching">%fa:spinner .pulse .fw%%i18n:common.loading%<mk-ellipsis/></p>
|
||||||
<div :class="$style.stream" v-if="!fetching && images.length > 0">
|
<div :class="$style.stream" v-if="!fetching && images.length > 0">
|
||||||
<div v-for="image in images" :class="$style.img" :style="`background-image: url(${image.url}?thumbnail&size=256)`"></div>
|
<div v-for="image in images" :class="$style.img" :style="`background-image: url(${image.url})`"></div>
|
||||||
</div>
|
</div>
|
||||||
<p :class="$style.empty" v-if="!fetching && images.length == 0">%i18n:@no-photos%</p>
|
<p :class="$style.empty" v-if="!fetching && images.length == 0">%i18n:@no-photos%</p>
|
||||||
</mk-widget-container>
|
</mk-widget-container>
|
||||||
|
@ -72,7 +72,7 @@ export default define({
|
|||||||
if (this.images.length == 0) return;
|
if (this.images.length == 0) return;
|
||||||
|
|
||||||
const index = Math.floor(Math.random() * this.images.length);
|
const index = Math.floor(Math.random() * this.images.length);
|
||||||
const img = `url(${ this.images[index].url }?thumbnail&size=1024)`;
|
const img = `url(${ this.images[index].url })`;
|
||||||
|
|
||||||
(this.$refs.slideB as any).style.backgroundImage = img;
|
(this.$refs.slideB as any).style.backgroundImage = img;
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 401 KiB After Width: | Height: | Size: 400 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 424 B |
@ -35,10 +35,7 @@ import Vue from 'vue';
|
|||||||
const eachMonthDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
const eachMonthDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
||||||
|
|
||||||
function isLeapYear(year) {
|
function isLeapYear(year) {
|
||||||
return (year % 400 == 0) ? true :
|
return !(year % (year % 25 ? 4 : 16));
|
||||||
(year % 100 == 0) ? false :
|
|
||||||
(year % 4 == 0) ? true :
|
|
||||||
false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
|
@ -28,7 +28,7 @@ export default Vue.extend({
|
|||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
default: '%fa:R file%%i18n:@choose-prompt%s'
|
default: '%fa:R file%%i18n:@choose-prompt%'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="root file"
|
<div class="gvfdktuvdgwhmztnuekzkswkjygptfcv"
|
||||||
:data-is-selected="isSelected"
|
:data-is-selected="isSelected"
|
||||||
:data-is-contextmenu-showing="isContextmenuShowing"
|
:data-is-contextmenu-showing="isContextmenuShowing"
|
||||||
@click="onClick"
|
@click="onClick"
|
||||||
@ -16,7 +16,7 @@
|
|||||||
<p>%i18n:@banner%</p>
|
<p>%i18n:@banner%</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="thumbnail" ref="thumbnail" :style="`background-color: ${ background }`">
|
<div class="thumbnail" ref="thumbnail" :style="`background-color: ${ background }`">
|
||||||
<img :src="`${file.url}?thumbnail&size=128`" alt="" @load="onThumbnailLoaded"/>
|
<img :src="file.url" alt="" @load="onThumbnailLoaded"/>
|
||||||
</div>
|
</div>
|
||||||
<p class="name">
|
<p class="name">
|
||||||
<span>{{ file.name.lastIndexOf('.') != -1 ? file.name.substr(0, file.name.lastIndexOf('.')) : file.name }}</span>
|
<span>{{ file.name.lastIndexOf('.') != -1 ? file.name.substr(0, file.name.lastIndexOf('.')) : file.name }}</span>
|
||||||
@ -68,6 +68,11 @@ export default Vue.extend({
|
|||||||
icon: '%fa:i-cursor%',
|
icon: '%fa:i-cursor%',
|
||||||
action: this.rename
|
action: this.rename
|
||||||
}, {
|
}, {
|
||||||
|
type: 'item',
|
||||||
|
text: this.file.isSensitive ? '%i18n:@contextmenu.unmark-as-sensitive%' : '%i18n:@contextmenu.mark-as-sensitive%',
|
||||||
|
icon: this.file.isSensitive ? '%fa:R eye%' : '%fa:R eye-slash%',
|
||||||
|
action: this.toggleSensitive
|
||||||
|
}, null, {
|
||||||
type: 'item',
|
type: 'item',
|
||||||
text: '%i18n:@contextmenu.copy-url%',
|
text: '%i18n:@contextmenu.copy-url%',
|
||||||
icon: '%fa:link%',
|
icon: '%fa:link%',
|
||||||
@ -149,6 +154,13 @@ export default Vue.extend({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
toggleSensitive() {
|
||||||
|
(this as any).api('drive/files/update', {
|
||||||
|
fileId: this.file.id,
|
||||||
|
isSensitive: !this.file.isSensitive
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
copyUrl() {
|
copyUrl() {
|
||||||
copyToClipboard(this.file.url);
|
copyToClipboard(this.file.url);
|
||||||
(this as any).apis.dialog({
|
(this as any).apis.dialog({
|
||||||
@ -312,10 +324,10 @@ root(isDark)
|
|||||||
> .ext
|
> .ext
|
||||||
opacity 0.5
|
opacity 0.5
|
||||||
|
|
||||||
.root.file[data-darkmode]
|
.gvfdktuvdgwhmztnuekzkswkjygptfcv[data-darkmode]
|
||||||
root(true)
|
root(true)
|
||||||
|
|
||||||
.root.file:not([data-darkmode])
|
.gvfdktuvdgwhmztnuekzkswkjygptfcv:not([data-darkmode])
|
||||||
root(false)
|
root(false)
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="root folder"
|
<div class="ynntpczxvnusfwdyxsfuhvcmuypqopdd"
|
||||||
:data-is-contextmenu-showing="isContextmenuShowing"
|
:data-is-contextmenu-showing="isContextmenuShowing"
|
||||||
:data-draghover="draghover"
|
:data-draghover="draghover"
|
||||||
@click="onClick"
|
@click="onClick"
|
||||||
@ -216,10 +216,10 @@ export default Vue.extend({
|
|||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
@import '~const.styl'
|
@import '~const.styl'
|
||||||
|
|
||||||
.root.folder
|
root(isDark)
|
||||||
padding 8px
|
padding 8px
|
||||||
height 64px
|
height 64px
|
||||||
background lighten($theme-color, 95%)
|
background isDark ? rgba($theme-color, 0.2) : lighten($theme-color, 95%)
|
||||||
border-radius 4px
|
border-radius 4px
|
||||||
|
|
||||||
&, *
|
&, *
|
||||||
@ -229,10 +229,10 @@ export default Vue.extend({
|
|||||||
pointer-events none
|
pointer-events none
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
background lighten($theme-color, 90%)
|
background isDark ? rgba(lighten($theme-color, 10%), 0.2) : lighten($theme-color, 90%)
|
||||||
|
|
||||||
&:active
|
&:active
|
||||||
background lighten($theme-color, 85%)
|
background isDark ? rgba(darken($theme-color, 10%), 0.2) : lighten($theme-color, 85%)
|
||||||
|
|
||||||
&[data-is-contextmenu-showing]
|
&[data-is-contextmenu-showing]
|
||||||
&[data-draghover]
|
&[data-draghover]
|
||||||
@ -248,16 +248,22 @@ export default Vue.extend({
|
|||||||
border-radius 4px
|
border-radius 4px
|
||||||
|
|
||||||
&[data-draghover]
|
&[data-draghover]
|
||||||
background lighten($theme-color, 90%)
|
background isDark ? rgba(darken($theme-color, 10%), 0.2) : lighten($theme-color, 90%)
|
||||||
|
|
||||||
> .name
|
> .name
|
||||||
margin 0
|
margin 0
|
||||||
font-size 0.9em
|
font-size 0.9em
|
||||||
color darken($theme-color, 30%)
|
color isDark ? #fff : darken($theme-color, 30%)
|
||||||
|
|
||||||
> [data-fa]
|
> [data-fa]
|
||||||
margin-right 4px
|
margin-right 4px
|
||||||
margin-left 2px
|
margin-left 2px
|
||||||
text-align left
|
text-align left
|
||||||
|
|
||||||
|
.ynntpczxvnusfwdyxsfuhvcmuypqopdd[data-darkmode]
|
||||||
|
root(true)
|
||||||
|
|
||||||
|
.ynntpczxvnusfwdyxsfuhvcmuypqopdd:not([data-darkmode])
|
||||||
|
root(false)
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -10,7 +10,10 @@
|
|||||||
<span class="separator" v-if="folder != null">%fa:angle-right%</span>
|
<span class="separator" v-if="folder != null">%fa:angle-right%</span>
|
||||||
<span class="folder current" v-if="folder != null">{{ folder.name }}</span>
|
<span class="folder current" v-if="folder != null">{{ folder.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
<!--
|
||||||
|
TODO: #343
|
||||||
<input class="search" type="search" placeholder=" %i18n:@search%"/>
|
<input class="search" type="search" placeholder=" %i18n:@search%"/>
|
||||||
|
-->
|
||||||
</nav>
|
</nav>
|
||||||
<div class="main" :class="{ uploading: uploadings.length > 0, fetching }"
|
<div class="main" :class="{ uploading: uploadings.length > 0, fetching }"
|
||||||
ref="main"
|
ref="main"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<mk-window width="400px" height="550px" @closed="$destroy">
|
<mk-window width="400px" height="550px" @closed="$destroy">
|
||||||
<span slot="header" :class="$style.header">
|
<span slot="header" :class="$style.header">
|
||||||
<img :src="`${user.avatarUrl}?thumbnail&size=64`" alt=""/>{{ '%i18n:@followers%'.replace('{}', name) }}
|
<img :src="user.avatarUrl" alt=""/>{{ '%i18n:@followers%'.replace('{}', name) }}
|
||||||
</span>
|
</span>
|
||||||
<mk-followers :user="user"/>
|
<mk-followers :user="user"/>
|
||||||
</mk-window>
|
</mk-window>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<mk-window width="400px" height="550px" @closed="$destroy">
|
<mk-window width="400px" height="550px" @closed="$destroy">
|
||||||
<span slot="header" :class="$style.header">
|
<span slot="header" :class="$style.header">
|
||||||
<img :src="`${user.avatarUrl}?thumbnail&size=64`" alt=""/>{{ '%i18n:@following%'.replace('{}', name) }}
|
<img :src="user.avatarUrl" alt=""/>{{ '%i18n:@following%'.replace('{}', name) }}
|
||||||
</span>
|
</span>
|
||||||
<mk-following :user="user"/>
|
<mk-following :user="user"/>
|
||||||
</mk-window>
|
</mk-window>
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<a class="mk-media-image"
|
<div class="ldwbgwstjsdgcjruamauqdrffetqudry" v-if="image.isSensitive && hide" @click="hide = false">
|
||||||
|
<div>
|
||||||
|
<b>%fa:exclamation-triangle% %i18n:@sensitive%</b>
|
||||||
|
<span>%i18n:@click-to-show%</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a class="lcjomzwbohoelkxsnuqjiaccdbdfiazy" v-else
|
||||||
:href="image.url"
|
:href="image.url"
|
||||||
@mousemove="onMousemove"
|
@mousemove="onMousemove"
|
||||||
@mouseleave="onMouseleave"
|
@mouseleave="onMouseleave"
|
||||||
@ -21,13 +27,17 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
raw: {
|
raw: {
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
hide: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
style(): any {
|
style(): any {
|
||||||
return {
|
return {
|
||||||
'background-color': this.image.properties.avgColor && this.image.properties.avgColor.length == 3 ? `rgb(${this.image.properties.avgColor.join(',')})` : 'transparent',
|
'background-color': this.image.properties.avgColor && this.image.properties.avgColor.length == 3 ? `rgb(${this.image.properties.avgColor.join(',')})` : 'transparent',
|
||||||
'background-image': this.raw ? `url(${this.image.url})` : `url(${this.image.url}?thumbnail&size=512)`
|
'background-image': this.raw ? `url(${this.image.url})` : `url(${this.image.url})`
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -56,16 +66,30 @@ export default Vue.extend({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
.mk-media-image
|
.lcjomzwbohoelkxsnuqjiaccdbdfiazy
|
||||||
display block
|
display block
|
||||||
cursor zoom-in
|
cursor zoom-in
|
||||||
overflow hidden
|
overflow hidden
|
||||||
width 100%
|
width 100%
|
||||||
height 100%
|
height 100%
|
||||||
background-position center
|
background-position center
|
||||||
border-radius 4px
|
|
||||||
|
|
||||||
&:not(:hover)
|
&:not(:hover)
|
||||||
background-size cover
|
background-size cover
|
||||||
|
|
||||||
|
.ldwbgwstjsdgcjruamauqdrffetqudry
|
||||||
|
display flex
|
||||||
|
justify-content center
|
||||||
|
align-items center
|
||||||
|
background #111
|
||||||
|
color #fff
|
||||||
|
|
||||||
|
> div
|
||||||
|
display table-cell
|
||||||
|
text-align center
|
||||||
|
font-size 12px
|
||||||
|
|
||||||
|
> b
|
||||||
|
display block
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,12 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<video class="mk-media-video"
|
<div class="uofhebxjdgksfmltszlxurtjnjjsvioh" v-if="video.isSensitive && hide" @click="hide = false">
|
||||||
|
<div>
|
||||||
|
<b>%fa:exclamation-triangle% %i18n:@sensitive%</b>
|
||||||
|
<span>%i18n:@click-to-show%</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="vwxdhznewyashiknzolsoihtlpicqepe" v-else>
|
||||||
|
<video class="video"
|
||||||
:src="video.url"
|
:src="video.url"
|
||||||
:title="video.name"
|
:title="video.name"
|
||||||
controls
|
controls
|
||||||
@dblclick.prevent="onClick"
|
@dblclick.prevent="onClick"
|
||||||
ref="video"
|
ref="video"
|
||||||
v-if="inlinePlayable" />
|
v-if="inlinePlayable" />
|
||||||
<a class="mk-media-video-thumbnail"
|
<a class="thumbnail"
|
||||||
:href="video.url"
|
:href="video.url"
|
||||||
:style="imageStyle"
|
:style="imageStyle"
|
||||||
@click.prevent="onClick"
|
@click.prevent="onClick"
|
||||||
@ -14,6 +21,7 @@
|
|||||||
v-else>
|
v-else>
|
||||||
%fa:R play-circle%
|
%fa:R play-circle%
|
||||||
</a>
|
</a>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
@ -21,11 +29,23 @@ import Vue from 'vue';
|
|||||||
import MkMediaVideoDialog from './media-video-dialog.vue';
|
import MkMediaVideoDialog from './media-video-dialog.vue';
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
props: ['video', 'inlinePlayable'],
|
props: {
|
||||||
|
video: {
|
||||||
|
type: Object,
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
inlinePlayable: {
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
hide: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
}
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
imageStyle(): any {
|
imageStyle(): any {
|
||||||
return {
|
return {
|
||||||
'background-image': `url(${this.video.url}?thumbnail&size=512)`
|
'background-image': `url(${this.video.url})`
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -47,13 +67,14 @@ export default Vue.extend({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
.mk-media-video
|
.vwxdhznewyashiknzolsoihtlpicqepe
|
||||||
|
.video
|
||||||
display block
|
display block
|
||||||
width 100%
|
width 100%
|
||||||
height 100%
|
height 100%
|
||||||
border-radius 4px
|
border-radius 4px
|
||||||
|
|
||||||
.mk-media-video-thumbnail
|
.thumbnail
|
||||||
display flex
|
display flex
|
||||||
justify-content center
|
justify-content center
|
||||||
align-items center
|
align-items center
|
||||||
@ -65,4 +86,20 @@ export default Vue.extend({
|
|||||||
background-size cover
|
background-size cover
|
||||||
width 100%
|
width 100%
|
||||||
height 100%
|
height 100%
|
||||||
|
|
||||||
|
.uofhebxjdgksfmltszlxurtjnjjsvioh
|
||||||
|
display flex
|
||||||
|
justify-content center
|
||||||
|
align-items center
|
||||||
|
background #111
|
||||||
|
color #fff
|
||||||
|
|
||||||
|
> div
|
||||||
|
display table-cell
|
||||||
|
text-align center
|
||||||
|
font-size 12px
|
||||||
|
|
||||||
|
> b
|
||||||
|
display block
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -56,10 +56,10 @@
|
|||||||
<button @click="menu" ref="menuButton">
|
<button @click="menu" ref="menuButton">
|
||||||
%fa:ellipsis-h%
|
%fa:ellipsis-h%
|
||||||
</button>
|
</button>
|
||||||
<button title="%i18n:@detail">
|
<!-- <button title="%i18n:@detail">
|
||||||
<template v-if="!isDetailOpened">%fa:caret-down%</template>
|
<template v-if="!isDetailOpened">%fa:caret-down%</template>
|
||||||
<template v-if="isDetailOpened">%fa:caret-up%</template>
|
<template v-if="isDetailOpened">%fa:caret-up%</template>
|
||||||
</button>
|
</button> -->
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
@ -10,6 +10,10 @@
|
|||||||
<span v-for="u in visibleUsers">{{ u | userName }}<a @click="removeVisibleUser(u)">[x]</a></span>
|
<span v-for="u in visibleUsers">{{ u | userName }}<a @click="removeVisibleUser(u)">[x]</a></span>
|
||||||
<a @click="addVisibleUser">+ユーザーを追加</a>
|
<a @click="addVisibleUser">+ユーザーを追加</a>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="hashtags" v-if="recentHashtags.length > 0">
|
||||||
|
<b>%i18n:@recent-tags%:</b>
|
||||||
|
<a v-for="tag in recentHashtags.slice(0, 5)" @click="addTag(tag)" title="%@click-to-tagging%">#{{ tag }}</a>
|
||||||
|
</div>
|
||||||
<input v-show="useCw" v-model="cw" placeholder="内容への注釈 (オプション)">
|
<input v-show="useCw" v-model="cw" placeholder="内容への注釈 (オプション)">
|
||||||
<textarea :class="{ with: (files.length != 0 || poll) }"
|
<textarea :class="{ with: (files.length != 0 || poll) }"
|
||||||
ref="text" v-model="text" :disabled="posting"
|
ref="text" v-model="text" :disabled="posting"
|
||||||
@ -19,7 +23,7 @@
|
|||||||
<div class="medias" :class="{ with: poll }" v-show="files.length != 0">
|
<div class="medias" :class="{ with: poll }" v-show="files.length != 0">
|
||||||
<x-draggable :list="files" :options="{ animation: 150 }">
|
<x-draggable :list="files" :options="{ animation: 150 }">
|
||||||
<div v-for="file in files" :key="file.id">
|
<div v-for="file in files" :key="file.id">
|
||||||
<div class="img" :style="{ backgroundImage: `url(${file.url}?thumbnail&size=64)` }" :title="file.name"></div>
|
<div class="img" :style="{ backgroundImage: `url(${file.url})` }" :title="file.name"></div>
|
||||||
<img class="remove" @click="detachMedia(file.id)" src="/assets/desktop/remove.png" title="%i18n:@attach-cancel%" alt=""/>
|
<img class="remove" @click="detachMedia(file.id)" src="/assets/desktop/remove.png" title="%i18n:@attach-cancel%" alt=""/>
|
||||||
</div>
|
</div>
|
||||||
</x-draggable>
|
</x-draggable>
|
||||||
@ -46,6 +50,7 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
import insertTextAtCursor from 'insert-text-at-cursor';
|
||||||
import * as XDraggable from 'vuedraggable';
|
import * as XDraggable from 'vuedraggable';
|
||||||
import getKao from '../../../common/scripts/get-kao';
|
import getKao from '../../../common/scripts/get-kao';
|
||||||
import MkVisibilityChooser from '../../../common/views/components/visibility-chooser.vue';
|
import MkVisibilityChooser from '../../../common/views/components/visibility-chooser.vue';
|
||||||
@ -91,7 +96,8 @@ export default Vue.extend({
|
|||||||
visibility: 'public',
|
visibility: 'public',
|
||||||
visibleUsers: [],
|
visibleUsers: [],
|
||||||
autocomplete: null,
|
autocomplete: null,
|
||||||
draghover: false
|
draghover: false,
|
||||||
|
recentHashtags: JSON.parse(localStorage.getItem('hashtags') || '[]')
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -131,7 +137,9 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
canPost(): boolean {
|
canPost(): boolean {
|
||||||
return !this.posting && (this.text.length != 0 || this.files.length != 0 || this.poll || this.renote);
|
return !this.posting &&
|
||||||
|
(1 <= this.text.length || 1 <= this.files.length || this.poll || this.renote) &&
|
||||||
|
(this.text.trim().length <= 1000);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -183,6 +191,10 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
addTag(tag: string) {
|
||||||
|
insertTextAtCursor(this.$refs.text, ` #${tag} `);
|
||||||
|
},
|
||||||
|
|
||||||
watch() {
|
watch() {
|
||||||
this.$watch('text', () => this.saveDraft());
|
this.$watch('text', () => this.saveDraft());
|
||||||
this.$watch('poll', () => this.saveDraft());
|
this.$watch('poll', () => this.saveDraft());
|
||||||
@ -235,7 +247,7 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onKeydown(e) {
|
onKeydown(e) {
|
||||||
if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey)) this.post();
|
if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey) && this.canPost) this.post();
|
||||||
},
|
},
|
||||||
|
|
||||||
onPaste(e) {
|
onPaste(e) {
|
||||||
@ -370,6 +382,12 @@ export default Vue.extend({
|
|||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.posting = false;
|
this.posting = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (this.text && this.text != '') {
|
||||||
|
const hashtags = parse(this.text).filter(x => x.type == 'hashtag').map(x => x.hashtag);
|
||||||
|
const history = JSON.parse(localStorage.getItem('hashtags') || '[]') as string[];
|
||||||
|
localStorage.setItem('hashtags', JSON.stringify(hashtags.concat(history).reduce((a, c) => a.includes(c) ? a : [...a, c], [])));
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
saveDraft() {
|
saveDraft() {
|
||||||
@ -452,7 +470,7 @@ root(isDark)
|
|||||||
margin 0
|
margin 0
|
||||||
max-width 100%
|
max-width 100%
|
||||||
min-width 100%
|
min-width 100%
|
||||||
min-height 64px
|
min-height 84px
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
& + *
|
& + *
|
||||||
@ -478,6 +496,19 @@ root(isDark)
|
|||||||
margin-right 16px
|
margin-right 16px
|
||||||
color isDark ? #fff : #666
|
color isDark ? #fff : #666
|
||||||
|
|
||||||
|
> .hashtags
|
||||||
|
margin 0 0 8px 0
|
||||||
|
overflow hidden
|
||||||
|
white-space nowrap
|
||||||
|
font-size 14px
|
||||||
|
|
||||||
|
> b
|
||||||
|
color isDark ? #9baec8 : darken($theme-color, 20%)
|
||||||
|
|
||||||
|
> *
|
||||||
|
margin-right 8px
|
||||||
|
white-space nowrap
|
||||||
|
|
||||||
> .medias
|
> .medias
|
||||||
margin 0
|
margin 0
|
||||||
padding 0
|
padding 0
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="profile">
|
<div class="profile">
|
||||||
<label class="avatar ui from group">
|
<label class="avatar ui from group">
|
||||||
<p>%i18n:@avatar%</p>
|
<p>%i18n:@avatar%</p>
|
||||||
<img class="avatar" :src="`${$store.state.i.avatarUrl}?thumbnail&size=64`" alt="avatar"/>
|
<img class="avatar" :src="$store.state.i.avatarUrl" alt="avatar"/>
|
||||||
<button class="ui" @click="updateAvatar">%i18n:@choice-avatar%</button>
|
<button class="ui" @click="updateAvatar">%i18n:@choice-avatar%</button>
|
||||||
</label>
|
</label>
|
||||||
<label class="ui from group">
|
<label class="ui from group">
|
||||||
|
@ -50,7 +50,7 @@ export default Vue.extend({
|
|||||||
this.list = this.$store.state.device.tl.arg;
|
this.list = this.$store.state.device.tl.arg;
|
||||||
}
|
}
|
||||||
} else if (this.$store.state.i.followingCount == 0) {
|
} else if (this.$store.state.i.followingCount == 0) {
|
||||||
this.src = 'local';
|
this.src = 'hybrid';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
<div class="nav">
|
<div class="nav">
|
||||||
<ul>
|
<ul>
|
||||||
<template v-if="$store.getters.isSignedIn">
|
<template v-if="$store.getters.isSignedIn">
|
||||||
<li class="home" :class="{ active: $route.name == 'index' }">
|
<li class="home" :class="{ active: $route.name == 'index' }" @click="goToTop">
|
||||||
<router-link to="/">
|
<router-link to="/">
|
||||||
%fa:home%
|
%fa:home%
|
||||||
<p>%i18n:@home%</p>
|
<p>%i18n:@home%</p>
|
||||||
</router-link>
|
</router-link>
|
||||||
</li>
|
</li>
|
||||||
<li class="deck" :class="{ active: $route.name == 'deck' }">
|
<li class="deck" :class="{ active: $route.name == 'deck' }" @click="goToTop">
|
||||||
<router-link to="/deck">
|
<router-link to="/deck">
|
||||||
%fa:columns%
|
%fa:columns%
|
||||||
<p>%i18n:@deck% <small>(beta)</small></p>
|
<p>%i18n:@deck% <small>(beta)</small></p>
|
||||||
@ -82,6 +82,14 @@ export default Vue.extend({
|
|||||||
|
|
||||||
game() {
|
game() {
|
||||||
(this as any).os.new(MkGameWindow);
|
(this as any).os.new(MkGameWindow);
|
||||||
|
},
|
||||||
|
|
||||||
|
goToTop(e: HTMLElement) {
|
||||||
|
if (e.classList.contains('active'))
|
||||||
|
window.scrollTo({
|
||||||
|
top: 0,
|
||||||
|
behavior: 'smooth'
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -29,9 +29,7 @@ export default Vue.extend({
|
|||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
@import '~const.styl'
|
@import '~const.styl'
|
||||||
|
root(isDark)
|
||||||
.search
|
|
||||||
|
|
||||||
> [data-fa]
|
> [data-fa]
|
||||||
display block
|
display block
|
||||||
position absolute
|
position absolute
|
||||||
@ -60,15 +58,20 @@ export default Vue.extend({
|
|||||||
border none
|
border none
|
||||||
border-radius 16px
|
border-radius 16px
|
||||||
transition color 0.5s ease, border 0.5s ease
|
transition color 0.5s ease, border 0.5s ease
|
||||||
font-family FontAwesome, sans-serif
|
color isDark ? #fff : #000
|
||||||
|
|
||||||
&::placeholder
|
&::placeholder
|
||||||
color #9eaba8
|
color #9eaba8
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
background rgba(#000, 0.08)
|
background isDark ? rgba(#fff, 0.04) : rgba(#000, 0.08)
|
||||||
|
|
||||||
&:focus
|
&:focus
|
||||||
box-shadow 0 0 0 2px rgba($theme-color, 0.5) !important
|
box-shadow 0 0 0 2px rgba($theme-color, 0.5) !important
|
||||||
|
|
||||||
|
.search[data-darkmode]
|
||||||
|
root(true)
|
||||||
|
|
||||||
|
.search:not([data-darkmode])
|
||||||
|
root(false)
|
||||||
</style>
|
</style>
|
||||||
|
@ -9,6 +9,9 @@
|
|||||||
<div class="left">
|
<div class="left">
|
||||||
<x-nav/>
|
<x-nav/>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="center">
|
||||||
|
<div class="icon" @click="goToTop"></div>
|
||||||
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<x-search/>
|
<x-search/>
|
||||||
<x-account v-if="$store.getters.isSignedIn"/>
|
<x-account v-if="$store.getters.isSignedIn"/>
|
||||||
@ -42,6 +45,14 @@ export default Vue.extend({
|
|||||||
XPost,
|
XPost,
|
||||||
XClock,
|
XClock,
|
||||||
},
|
},
|
||||||
|
methods: {
|
||||||
|
goToTop() {
|
||||||
|
window.scrollTo({
|
||||||
|
top: 0,
|
||||||
|
behavior: 'smooth'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$store.commit('setUiHeaderHeight', 48);
|
this.$store.commit('setUiHeaderHeight', 48);
|
||||||
|
|
||||||
@ -142,26 +153,24 @@ root(isDark)
|
|||||||
max-width 1300px
|
max-width 1300px
|
||||||
margin 0 auto
|
margin 0 auto
|
||||||
|
|
||||||
&:before
|
> .center
|
||||||
content ""
|
margin auto
|
||||||
position absolute
|
|
||||||
top 0
|
> .icon
|
||||||
left 0
|
|
||||||
display block
|
display block
|
||||||
width 100%
|
width 48px
|
||||||
height 48px
|
height 48px
|
||||||
background-image isDark ? url('/assets/desktop/header-icon.dark.svg') : url('/assets/desktop/header-icon.light.svg')
|
background-image isDark ? url('/assets/desktop/header-icon.dark.svg') : url('/assets/desktop/header-icon.light.svg')
|
||||||
background-size 24px
|
background-size 24px
|
||||||
background-position center
|
background-position center
|
||||||
background-repeat no-repeat
|
background-repeat no-repeat
|
||||||
opacity 0.3
|
opacity 0.3
|
||||||
|
cursor pointer
|
||||||
|
|
||||||
> .left
|
> .left
|
||||||
margin 0 auto 0 0
|
|
||||||
height 48px
|
height 48px
|
||||||
|
|
||||||
> .right
|
> .right
|
||||||
margin 0 0 0 auto
|
|
||||||
height 48px
|
height 48px
|
||||||
|
|
||||||
> *
|
> *
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="mk-user-preview">
|
<div class="mk-user-preview">
|
||||||
<template v-if="u != null">
|
<template v-if="u != null">
|
||||||
<div class="banner" :style="u.bannerUrl ? `background-image: url(${u.bannerUrl}?thumbnail&size=512)` : ''"></div>
|
<div class="banner" :style="u.bannerUrl ? `background-image: url(${u.bannerUrl})` : ''"></div>
|
||||||
<mk-avatar class="avatar" :user="u" :disable-preview="true"/>
|
<mk-avatar class="avatar" :user="u" :disable-preview="true"/>
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<router-link class="name" :to="u | userPage">{{ u | userName }}</router-link>
|
<router-link class="name" :to="u | userPage">{{ u | userName }}</router-link>
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
<div :class="$style.loading" v-if="fetching">
|
<div :class="$style.loading" v-if="fetching">
|
||||||
<mk-ellipsis-icon/>
|
<mk-ellipsis-icon/>
|
||||||
</div>
|
</div>
|
||||||
|
<p :class="$style.notAvailable" v-if="!fetching && notAvailable">検索機能を利用することができません。</p>
|
||||||
<p :class="$style.empty" v-if="!fetching && empty">%fa:search%「{{ q }}」に関する投稿は見つかりませんでした。</p>
|
<p :class="$style.empty" v-if="!fetching && empty">%fa:search%「{{ q }}」に関する投稿は見つかりませんでした。</p>
|
||||||
<mk-notes ref="timeline" :class="$style.notes" :more="existMore ? more : null"/>
|
<mk-notes ref="timeline" :class="$style.notes" :more="existMore ? more : null"/>
|
||||||
</mk-ui>
|
</mk-ui>
|
||||||
@ -24,7 +25,8 @@ export default Vue.extend({
|
|||||||
moreFetching: false,
|
moreFetching: false,
|
||||||
existMore: false,
|
existMore: false,
|
||||||
offset: 0,
|
offset: 0,
|
||||||
empty: false
|
empty: false,
|
||||||
|
notAvailable: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -71,7 +73,11 @@ export default Vue.extend({
|
|||||||
res(notes);
|
res(notes);
|
||||||
this.fetching = false;
|
this.fetching = false;
|
||||||
Progress.done();
|
Progress.done();
|
||||||
}, rej);
|
}, (e: string) => {
|
||||||
|
this.fetching = false;
|
||||||
|
Progress.done();
|
||||||
|
if (e === 'searching not available') this.notAvailable = true;
|
||||||
|
});
|
||||||
}));
|
}));
|
||||||
},
|
},
|
||||||
more() {
|
more() {
|
||||||
@ -130,4 +136,18 @@ export default Vue.extend({
|
|||||||
font-size 3em
|
font-size 3em
|
||||||
color #ccc
|
color #ccc
|
||||||
|
|
||||||
|
|
||||||
|
.notAvailable
|
||||||
|
display block
|
||||||
|
margin 0 auto
|
||||||
|
padding 32px
|
||||||
|
max-width 400px
|
||||||
|
text-align center
|
||||||
|
color #999
|
||||||
|
|
||||||
|
> [data-fa]
|
||||||
|
display block
|
||||||
|
margin-bottom 16px
|
||||||
|
font-size 3em
|
||||||
|
color #ccc
|
||||||
</style>
|
</style>
|
||||||
|
@ -49,7 +49,8 @@ export default Vue.extend({
|
|||||||
add() {
|
add() {
|
||||||
(this as any).apis.input({
|
(this as any).apis.input({
|
||||||
title: '%i18n:@username%',
|
title: '%i18n:@username%',
|
||||||
}).then(async username => {
|
}).then(async (username: string) => {
|
||||||
|
if (username.startsWith('@')) username = username.slice(1);
|
||||||
const user = await (this as any).api('users/show', {
|
const user = await (this as any).api('users/show', {
|
||||||
username
|
username
|
||||||
});
|
});
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<p class="initializing" v-if="fetching">%fa:spinner .pulse .fw%%i18n:@loading%<mk-ellipsis/></p>
|
<p class="initializing" v-if="fetching">%fa:spinner .pulse .fw%%i18n:@loading%<mk-ellipsis/></p>
|
||||||
<div v-if="!fetching && users.length > 0">
|
<div v-if="!fetching && users.length > 0">
|
||||||
<router-link v-for="user in users" :to="user | userPage" :key="user.id">
|
<router-link v-for="user in users" :to="user | userPage" :key="user.id">
|
||||||
<img :src="`${user.avatarUrl}?thumbnail&size=64`" :alt="user | userName" v-user-preview="user.id"/>
|
<img :src="user.avatarUrl" :alt="user | userName" v-user-preview="user.id"/>
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
<p class="empty" v-if="!fetching && users.length == 0">%i18n:@no-users%</p>
|
<p class="empty" v-if="!fetching && users.length == 0">%i18n:@no-users%</p>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<p class="initializing" v-if="fetching">%fa:spinner .pulse .fw%%i18n:@loading%<mk-ellipsis/></p>
|
<p class="initializing" v-if="fetching">%fa:spinner .pulse .fw%%i18n:@loading%<mk-ellipsis/></p>
|
||||||
<div class="stream" v-if="!fetching && images.length > 0">
|
<div class="stream" v-if="!fetching && images.length > 0">
|
||||||
<div v-for="image in images" class="img"
|
<div v-for="image in images" class="img"
|
||||||
:style="`background-image: url(${image.url}?thumbnail&size=256)`"
|
:style="`background-image: url(${image.url})`"
|
||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
<p class="empty" v-if="!fetching && images.length == 0">%i18n:@no-photos%</p>
|
<p class="empty" v-if="!fetching && images.length == 0">%i18n:@no-photos%</p>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="mkw-notifications">
|
<div class="mkw-notifications">
|
||||||
<mk-widget-container :show-header="!props.compact">
|
<mk-widget-container :show-header="!props.compact">
|
||||||
<template slot="header">%fa:R bell%%i18n:@title%</template>
|
<template slot="header">%fa:R bell%%i18n:@title%</template>
|
||||||
<button slot="func" title="%i18n:@settings%" @click="settings">%fa:cog%</button>
|
<!-- <button slot="func" title="%i18n:@settings%" @click="settings">%fa:cog%</button> -->
|
||||||
|
|
||||||
<mk-notifications :class="$style.notifications"/>
|
<mk-notifications :class="$style.notifications"/>
|
||||||
</mk-widget-container>
|
</mk-widget-container>
|
||||||
|
@ -45,7 +45,7 @@ export default define({
|
|||||||
this.save();
|
this.save();
|
||||||
},
|
},
|
||||||
onKeydown(e) {
|
onKeydown(e) {
|
||||||
if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey)) this.post();
|
if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey) && !this.posting && this.text) this.post();
|
||||||
},
|
},
|
||||||
post() {
|
post() {
|
||||||
this.posting = true;
|
this.posting = true;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
:data-melt="props.design == 2"
|
:data-melt="props.design == 2"
|
||||||
>
|
>
|
||||||
<div class="banner"
|
<div class="banner"
|
||||||
:style="$store.state.i.bannerUrl ? `background-image: url(${$store.state.i.bannerUrl}?thumbnail&size=256)` : ''"
|
:style="$store.state.i.bannerUrl ? `background-image: url(${$store.state.i.bannerUrl})` : ''"
|
||||||
title="%i18n:@update-banner%"
|
title="%i18n:@update-banner%"
|
||||||
@click="os.apis.updateBanner"
|
@click="os.apis.updateBanner"
|
||||||
></div>
|
></div>
|
||||||
|
@ -43,7 +43,7 @@ export default Vue.extend({
|
|||||||
thumbnail(): any {
|
thumbnail(): any {
|
||||||
return {
|
return {
|
||||||
'background-color': this.file.properties.avgColor && this.file.properties.avgColor.length == 3 ? `rgb(${this.file.properties.avgColor.join(',')})` : 'transparent',
|
'background-color': this.file.properties.avgColor && this.file.properties.avgColor.length == 3 ? `rgb(${this.file.properties.avgColor.join(',')})` : 'transparent',
|
||||||
'background-image': `url(${this.file.url}?thumbnail&size=128)`
|
'background-image': `url(${this.file.url})`
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<a class="mk-media-image" :href="image.url" target="_blank" :style="style" :title="image.name"></a>
|
<div class="qjewsnkgzzxlxtzncydssfbgjibiehcy" v-if="image.isSensitive && hide" @click="hide = false">
|
||||||
|
<div>
|
||||||
|
<b>%fa:exclamation-triangle% %i18n:@sensitive%</b>
|
||||||
|
<span>%i18n:@click-to-show%</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a class="gqnyydlzavusgskkfvwvjiattxdzsqlf" v-else :href="image.url" target="_blank" :style="style" :title="image.name"></a>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
@ -13,11 +19,15 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
raw: {
|
raw: {
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
hide: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
style(): any {
|
style(): any {
|
||||||
let url = `url(${this.image.url}?thumbnail)`;
|
let url = `url(${this.image.url})`;
|
||||||
|
|
||||||
if (this.$store.state.device.loadRemoteMedia || this.$store.state.device.lightmode) {
|
if (this.$store.state.device.loadRemoteMedia || this.$store.state.device.lightmode) {
|
||||||
url = null;
|
url = null;
|
||||||
@ -35,13 +45,27 @@ export default Vue.extend({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
.mk-media-image
|
.gqnyydlzavusgskkfvwvjiattxdzsqlf
|
||||||
display block
|
display block
|
||||||
overflow hidden
|
overflow hidden
|
||||||
width 100%
|
width 100%
|
||||||
height 100%
|
height 100%
|
||||||
background-position center
|
background-position center
|
||||||
background-size cover
|
background-size cover
|
||||||
border-radius 4px
|
|
||||||
|
.qjewsnkgzzxlxtzncydssfbgjibiehcy
|
||||||
|
display flex
|
||||||
|
justify-content center
|
||||||
|
align-items center
|
||||||
|
background #111
|
||||||
|
color #fff
|
||||||
|
|
||||||
|
> div
|
||||||
|
display table-cell
|
||||||
|
text-align center
|
||||||
|
font-size 12px
|
||||||
|
|
||||||
|
> b
|
||||||
|
display block
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<a class="mk-media-video"
|
<div class="icozogqfvdetwohsdglrbswgrejoxbdj" v-if="video.isSensitive && hide" @click="hide = false">
|
||||||
|
<div>
|
||||||
|
<b>%fa:exclamation-triangle% %i18n:@sensitive%</b>
|
||||||
|
<span>%i18n:@click-to-show%</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<a class="kkjnbbplepmiyuadieoenjgutgcmtsvu" v-else
|
||||||
:href="video.url"
|
:href="video.url"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
:style="imageStyle"
|
:style="imageStyle"
|
||||||
@ -11,18 +17,27 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
props: ['video'],
|
props: {
|
||||||
|
video: {
|
||||||
|
type: Object,
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
hide: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
}
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
imageStyle(): any {
|
imageStyle(): any {
|
||||||
return {
|
return {
|
||||||
'background-image': `url(${this.video.url}?thumbnail&size=512)`
|
'background-image': `url(${this.video.url})`
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
},})
|
},})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
.mk-media-video
|
.kkjnbbplepmiyuadieoenjgutgcmtsvu
|
||||||
display flex
|
display flex
|
||||||
justify-content center
|
justify-content center
|
||||||
align-items center
|
align-items center
|
||||||
@ -33,4 +48,20 @@ export default Vue.extend({
|
|||||||
background-size cover
|
background-size cover
|
||||||
width 100%
|
width 100%
|
||||||
height 100%
|
height 100%
|
||||||
|
|
||||||
|
.icozogqfvdetwohsdglrbswgrejoxbdj
|
||||||
|
display flex
|
||||||
|
justify-content center
|
||||||
|
align-items center
|
||||||
|
background #111
|
||||||
|
color #fff
|
||||||
|
|
||||||
|
> div
|
||||||
|
display table-cell
|
||||||
|
text-align center
|
||||||
|
font-size 12px
|
||||||
|
|
||||||
|
> b
|
||||||
|
display block
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="mk-note-card">
|
<div class="mk-note-card">
|
||||||
<a :href="note | notePage">
|
<a :href="note | notePage">
|
||||||
<header>
|
<header>
|
||||||
<img :src="`${note.user.avatarUrl}?thumbnail&size=64`" alt="avatar"/><h3>{{ note.user | userName }}</h3>
|
<img :src="note.user.avatarUrl" alt="avatar"/><h3>{{ note.user | userName }}</h3>
|
||||||
</header>
|
</header>
|
||||||
<div>
|
<div>
|
||||||
{{ text }}
|
{{ text }}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="mk-post-form">
|
<div class="mk-post-form">
|
||||||
|
<div class="form">
|
||||||
<header>
|
<header>
|
||||||
<button class="cancel" @click="cancel">%fa:times%</button>
|
<button class="cancel" @click="cancel">%fa:times%</button>
|
||||||
<div>
|
<div>
|
||||||
@ -16,11 +17,11 @@
|
|||||||
<a @click="addVisibleUser">+%i18n:@add-visible-user%</a>
|
<a @click="addVisibleUser">+%i18n:@add-visible-user%</a>
|
||||||
</div>
|
</div>
|
||||||
<input v-show="useCw" v-model="cw" placeholder="%i18n:@cw-placeholder%">
|
<input v-show="useCw" v-model="cw" placeholder="%i18n:@cw-placeholder%">
|
||||||
<textarea v-model="text" ref="text" :disabled="posting" :placeholder="placeholder"></textarea>
|
<textarea v-model="text" ref="text" :disabled="posting" :placeholder="placeholder" v-autocomplete="'text'"></textarea>
|
||||||
<div class="attaches" v-show="files.length != 0">
|
<div class="attaches" v-show="files.length != 0">
|
||||||
<x-draggable class="files" :list="files" :options="{ animation: 150 }">
|
<x-draggable class="files" :list="files" :options="{ animation: 150 }">
|
||||||
<div class="file" v-for="file in files" :key="file.id">
|
<div class="file" v-for="file in files" :key="file.id">
|
||||||
<div class="img" :style="`background-image: url(${file.url}?thumbnail&size=128)`" @click="detachMedia(file)"></div>
|
<div class="img" :style="`background-image: url(${file.url})`" @click="detachMedia(file)"></div>
|
||||||
</div>
|
</div>
|
||||||
</x-draggable>
|
</x-draggable>
|
||||||
</div>
|
</div>
|
||||||
@ -38,10 +39,15 @@
|
|||||||
<input ref="file" class="file" type="file" accept="image/*" multiple="multiple" @change="onChangeFile"/>
|
<input ref="file" class="file" type="file" accept="image/*" multiple="multiple" @change="onChangeFile"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="hashtags" v-if="recentHashtags.length > 0">
|
||||||
|
<a v-for="tag in recentHashtags.slice(0, 5)" @click="addTag(tag)">#{{ tag }}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
import insertTextAtCursor from 'insert-text-at-cursor';
|
||||||
import * as XDraggable from 'vuedraggable';
|
import * as XDraggable from 'vuedraggable';
|
||||||
import MkVisibilityChooser from '../../../common/views/components/visibility-chooser.vue';
|
import MkVisibilityChooser from '../../../common/views/components/visibility-chooser.vue';
|
||||||
import getKao from '../../../common/scripts/get-kao';
|
import getKao from '../../../common/scripts/get-kao';
|
||||||
@ -85,7 +91,8 @@ export default Vue.extend({
|
|||||||
visibility: 'public',
|
visibility: 'public',
|
||||||
visibleUsers: [],
|
visibleUsers: [],
|
||||||
useCw: false,
|
useCw: false,
|
||||||
cw: null
|
cw: null,
|
||||||
|
recentHashtags: JSON.parse(localStorage.getItem('hashtags') || '[]')
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -125,7 +132,9 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
canPost(): boolean {
|
canPost(): boolean {
|
||||||
return !this.posting && (this.text.length != 0 || this.files.length != 0 || this.poll || this.renote);
|
return !this.posting &&
|
||||||
|
(1 <= this.text.length || 1 <= this.files.length || this.poll || this.renote) &&
|
||||||
|
(this.text.trim().length <= 1000);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -161,6 +170,10 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
addTag(tag: string) {
|
||||||
|
insertTextAtCursor(this.$refs.text, ` #${tag} `);
|
||||||
|
},
|
||||||
|
|
||||||
focus() {
|
focus() {
|
||||||
(this.$refs.text as any).focus();
|
(this.$refs.text as any).focus();
|
||||||
},
|
},
|
||||||
@ -281,6 +294,12 @@ export default Vue.extend({
|
|||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
this.posting = false;
|
this.posting = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (this.text && this.text != '') {
|
||||||
|
const hashtags = parse(this.text).filter(x => x.type == 'hashtag').map(x => x.hashtag);
|
||||||
|
const history = JSON.parse(localStorage.getItem('hashtags') || '[]') as string[];
|
||||||
|
localStorage.setItem('hashtags', JSON.stringify(hashtags.concat(history).reduce((a, c) => a.includes(c) ? a : [...a, c], [])));
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
cancel() {
|
cancel() {
|
||||||
@ -302,18 +321,22 @@ root(isDark)
|
|||||||
max-width 500px
|
max-width 500px
|
||||||
width calc(100% - 16px)
|
width calc(100% - 16px)
|
||||||
margin 8px auto
|
margin 8px auto
|
||||||
background isDark ? #282C37 : #fff
|
|
||||||
border-radius 8px
|
|
||||||
box-shadow 0 0 2px rgba(#000, 0.1)
|
|
||||||
|
|
||||||
@media (min-width 500px)
|
@media (min-width 500px)
|
||||||
margin 16px auto
|
margin 16px auto
|
||||||
width calc(100% - 32px)
|
width calc(100% - 32px)
|
||||||
|
|
||||||
|
> .form
|
||||||
box-shadow 0 8px 32px rgba(#000, 0.1)
|
box-shadow 0 8px 32px rgba(#000, 0.1)
|
||||||
|
|
||||||
@media (min-width 600px)
|
@media (min-width 600px)
|
||||||
margin 32px auto
|
margin 32px auto
|
||||||
|
|
||||||
|
> .form
|
||||||
|
background isDark ? #282C37 : #fff
|
||||||
|
border-radius 8px
|
||||||
|
box-shadow 0 0 2px rgba(#000, 0.1)
|
||||||
|
|
||||||
> header
|
> header
|
||||||
z-index 1000
|
z-index 1000
|
||||||
height 50px
|
height 50px
|
||||||
@ -443,6 +466,12 @@ root(isDark)
|
|||||||
border-radius 0
|
border-radius 0
|
||||||
box-shadow none
|
box-shadow none
|
||||||
|
|
||||||
|
> .hashtags
|
||||||
|
margin 8px
|
||||||
|
|
||||||
|
> *
|
||||||
|
margin-right 8px
|
||||||
|
|
||||||
.mk-post-form[data-darkmode]
|
.mk-post-form[data-darkmode]
|
||||||
root(true)
|
root(true)
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<transition name="nav">
|
<transition name="nav">
|
||||||
<div class="body" v-if="isOpen">
|
<div class="body" v-if="isOpen">
|
||||||
<router-link class="me" v-if="$store.getters.isSignedIn" :to="`/@${$store.state.i.username}`">
|
<router-link class="me" v-if="$store.getters.isSignedIn" :to="`/@${$store.state.i.username}`">
|
||||||
<img class="avatar" :src="`${$store.state.i.avatarUrl}?thumbnail&size=128`" alt="avatar"/>
|
<img class="avatar" :src="$store.state.i.avatarUrl" alt="avatar"/>
|
||||||
<p class="name">{{ $store.state.i | userName }}</p>
|
<p class="name">{{ $store.state.i | userName }}</p>
|
||||||
</router-link>
|
</router-link>
|
||||||
<div class="links">
|
<div class="links">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="mk-user-card">
|
<div class="mk-user-card">
|
||||||
<header :style="user.bannerUrl ? `background-image: url(${user.bannerUrl}?thumbnail&size=1024)` : ''">
|
<header :style="user.bannerUrl ? `background-image: url(${user.bannerUrl})` : ''">
|
||||||
<mk-avatar class="avatar" :user="user"/>
|
<mk-avatar class="avatar" :user="user"/>
|
||||||
</header>
|
</header>
|
||||||
<a class="name" :href="user | userPage" target="_blank">{{ user | userName }}</a>
|
<a class="name" :href="user | userPage" target="_blank">{{ user | userName }}</a>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<mk-ui>
|
<mk-ui>
|
||||||
<template slot="header" v-if="!fetching">
|
<template slot="header" v-if="!fetching">
|
||||||
<img :src="`${user.avatarUrl}?thumbnail&size=64`" alt="">
|
<img :src="user.avatarUrl" alt="">
|
||||||
{{ '%i18n:@followers-of%'.replace('{}', name) }}
|
{{ '%i18n:@followers-of%'.replace('{}', name) }}
|
||||||
</template>
|
</template>
|
||||||
<mk-users-list
|
<mk-users-list
|
||||||
|