Compare commits
213 Commits
2023.12.0-
...
reversi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8dc2f1f49d | ||
|
|
353098f576 | ||
|
|
4c43ee4b53 | ||
|
|
037a1daa79 | ||
|
|
43401210c3 | ||
|
|
1259fabd7f | ||
|
|
58f4d5d790 | ||
|
|
c1019a006b | ||
|
|
7ca93893ca | ||
|
|
fbad40bb9b | ||
|
|
7794e7ae2f | ||
|
|
a78013d0e5 | ||
|
|
768d0bdc00 | ||
|
|
36450d7fac | ||
|
|
4e1fb618b8 | ||
|
|
1a25401452 | ||
|
|
67a41c09ae | ||
|
|
fc7cd636a3 | ||
|
|
8ef70283fa | ||
|
|
22bb79b3fd | ||
|
|
38e7054f06 | ||
|
|
1e237a7df5 | ||
|
|
1dcf25c24f | ||
|
|
9a40b366a3 | ||
|
|
d6c8e520f8 | ||
|
|
1b5ad63672 | ||
|
|
945d6a2b09 | ||
|
|
0283142d0e | ||
|
|
bcb4560f0d | ||
|
|
5bcdd6e849 | ||
|
|
8db800ed98 | ||
|
|
acab9ccb81 | ||
|
|
bc5aebe956 | ||
|
|
c971edd2dd | ||
|
|
8b0fdfcd69 | ||
|
|
3d83c1aaba | ||
|
|
d92aaf81c4 | ||
|
|
0ea8e0c25c | ||
|
|
ec4e57bb67 | ||
|
|
12142a221a | ||
|
|
79a9defa0c | ||
|
|
fc4c868269 | ||
|
|
27dc0d3530 | ||
|
|
57017f2747 | ||
|
|
bc8a741e14 | ||
|
|
4846ab077b | ||
|
|
920888ed2a | ||
|
|
c26c01c7a0 | ||
|
|
d792f4f348 | ||
|
|
79370aaee2 | ||
|
|
18a5e377f4 | ||
|
|
19fe32bd7e | ||
|
|
d246f6c360 | ||
|
|
5503ad9d1a | ||
|
|
7b0f5b50fc | ||
|
|
6177fcb2f5 | ||
|
|
c33f56e3ed | ||
|
|
b13410df02 | ||
|
|
87ffc672dd | ||
|
|
5672ead957 | ||
|
|
0aefebf02a | ||
|
|
271407312e | ||
|
|
c2a9a7b69e | ||
|
|
b920435068 | ||
|
|
1aeede97f5 | ||
|
|
a5ea7c976b | ||
|
|
d2063df78d | ||
|
|
be57ff4985 | ||
|
|
cf54c2ba47 | ||
|
|
762fa6a8d8 | ||
|
|
36fd7d17cf | ||
|
|
5c786cace8 | ||
|
|
c1c363bf08 | ||
|
|
4bd9f664d7 | ||
|
|
3d9e42efca | ||
|
|
138a248a6c | ||
|
|
6bae440f39 | ||
|
|
f5b864df7b | ||
|
|
7e52ea4818 | ||
|
|
358dc6289b | ||
|
|
1063d39de8 | ||
|
|
14aedc17ae | ||
|
|
0d7f9308cc | ||
|
|
34088ecd27 | ||
|
|
0f9e3bccef | ||
|
|
64de87438e | ||
|
|
5dcd8c827b | ||
|
|
35ec41fc1e | ||
|
|
618e2ba1d2 | ||
|
|
04f9147db6 | ||
|
|
0ed2a220f4 | ||
|
|
e9c3fe1228 | ||
|
|
0c2118e963 | ||
|
|
145d28a8e4 | ||
|
|
6a02dfdd3b | ||
|
|
831131864f | ||
|
|
1bd7693416 | ||
|
|
5251cd3aad | ||
|
|
0e536bdd86 | ||
|
|
fd519f5def | ||
|
|
0d830d720a | ||
|
|
0d49e94982 | ||
|
|
e6022c0d51 | ||
|
|
5e71418d5c | ||
|
|
c6a4caa8be | ||
|
|
1d1780081e | ||
|
|
622a09f8ed | ||
|
|
00e195f50b | ||
|
|
8bf6d31334 | ||
|
|
2a9db983fc | ||
|
|
4ea030d669 | ||
|
|
f2dee7b25e | ||
|
|
a0976772b3 | ||
|
|
0815a5235d | ||
|
|
9eae82de1d | ||
|
|
746367004e | ||
|
|
072f67d6e7 | ||
|
|
b55a6a80e1 | ||
|
|
24645e3d3d | ||
|
|
d415fd29a3 | ||
|
|
7768385be2 | ||
|
|
2177792a3c | ||
|
|
9e20065496 | ||
|
|
2cd32b2248 | ||
|
|
fa9c4a19b9 | ||
|
|
ea41cc6ec0 | ||
|
|
9716ea0324 | ||
|
|
02978d0247 | ||
|
|
6598d320d6 | ||
|
|
f8d5a46dbf | ||
|
|
da154c8209 | ||
|
|
b46f431a2e | ||
|
|
30c3f6a222 | ||
|
|
30311aca18 | ||
|
|
a9127e3ecd | ||
|
|
58469c0a69 | ||
|
|
9c5559a570 | ||
|
|
3187c6b28d | ||
|
|
09aba4cf16 | ||
|
|
5498ec57d0 | ||
|
|
4893cce43c | ||
|
|
a40ededf6b | ||
|
|
379079ee42 | ||
|
|
1d5a0d0777 | ||
|
|
2a33981811 | ||
|
|
c0466d1585 | ||
|
|
30594dde18 | ||
|
|
7948018e6a | ||
|
|
8fb8d7c10c | ||
|
|
7ca0af9e7e | ||
|
|
ac2bace764 | ||
|
|
d97924890d | ||
|
|
6b4f57781a | ||
|
|
c525394989 | ||
|
|
8753f9ef06 | ||
|
|
35fd0a7fc2 | ||
|
|
f8261a1957 | ||
|
|
47558a6648 | ||
|
|
2a5c9e6002 | ||
|
|
9d5fc4ca17 | ||
|
|
a598baaf01 | ||
|
|
e0040f5da3 | ||
|
|
cc659721fb | ||
|
|
6439c7b64b | ||
|
|
8904e0a12b | ||
|
|
9410bc046b | ||
|
|
ad346b6f36 | ||
|
|
c96bc36fed | ||
|
|
d87fecda7f | ||
|
|
6855079811 | ||
|
|
9022b05fea | ||
|
|
75034d9240 | ||
|
|
a9b42765f9 | ||
|
|
eb23798c9f | ||
|
|
4f247a0784 | ||
|
|
95547da5a5 | ||
|
|
b0799089cd | ||
|
|
8ed7c7486c | ||
|
|
fd040c50b1 | ||
|
|
237fe242ad | ||
|
|
0009aa332b | ||
|
|
bf45c23098 | ||
|
|
7167bb397e | ||
|
|
0393d8f53c | ||
|
|
cae40e68e4 | ||
|
|
36701f8a7c | ||
|
|
6fce36374d | ||
|
|
316ffcea54 | ||
|
|
471c8ec050 | ||
|
|
2f425aa03f | ||
|
|
e852f4b60d | ||
|
|
f43599552f | ||
|
|
8caf2b0a4a | ||
|
|
59b47b8623 | ||
|
|
30cf5c3ab0 | ||
|
|
1716c6562c | ||
|
|
6e4894c165 | ||
|
|
98734af9a7 | ||
|
|
2c7d07bca6 | ||
|
|
5b5a537f56 | ||
|
|
b3c4f7eddc | ||
|
|
6254954957 | ||
|
|
9c04749359 | ||
|
|
6b7a810b8e | ||
|
|
5eb944ecde | ||
|
|
3d4af18327 | ||
|
|
179cb1d813 | ||
|
|
6d4aa316ac | ||
|
|
d68214bd46 | ||
|
|
52b94dbc4a | ||
|
|
433d46e57f | ||
|
|
79ca93cefb | ||
|
|
07d4632cd7 |
@@ -2,3 +2,4 @@
|
|||||||
POSTGRES_PASSWORD=example-misskey-pass
|
POSTGRES_PASSWORD=example-misskey-pass
|
||||||
POSTGRES_USER=example-misskey-user
|
POSTGRES_USER=example-misskey-user
|
||||||
POSTGRES_DB=misskey
|
POSTGRES_DB=misskey
|
||||||
|
DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}"
|
||||||
|
|||||||
6
.github/ISSUE_TEMPLATE/01_bug-report.yml
vendored
6
.github/ISSUE_TEMPLATE/01_bug-report.yml
vendored
@@ -89,3 +89,9 @@ body:
|
|||||||
render: markdown
|
render: markdown
|
||||||
validations:
|
validations:
|
||||||
required: false
|
required: false
|
||||||
|
|
||||||
|
- type: checkboxes
|
||||||
|
attributes:
|
||||||
|
label: Do you want to address this bug yourself?
|
||||||
|
options:
|
||||||
|
- label: Yes, I will patch the bug myself and send a pull request
|
||||||
|
|||||||
@@ -15,3 +15,8 @@ body:
|
|||||||
description: Describe the specific problem or need you think this feature will solve, and who it will help.
|
description: Describe the specific problem or need you think this feature will solve, and who it will help.
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
- type: checkboxes
|
||||||
|
attributes:
|
||||||
|
label: Do you want to implement this feature yourself?
|
||||||
|
options:
|
||||||
|
- label: Yes, I will implement this by myself and send a pull request
|
||||||
|
|||||||
30
.github/dependabot.yml
vendored
30
.github/dependabot.yml
vendored
@@ -17,16 +17,32 @@ updates:
|
|||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: daily
|
interval: daily
|
||||||
# PNPM has an issue with dependabot. See:
|
open-pull-requests-limit: 10
|
||||||
# https://github.com/dependabot/dependabot-core/issues/7258
|
# List dependencies required to be updated together, sharing the same version numbers.
|
||||||
# https://github.com/pnpm/pnpm/issues/6530
|
# Those who simply have the common owner (e.g. @fastify) don't need to be listed.
|
||||||
# TODO: Restore this when the issue is solved
|
|
||||||
open-pull-requests-limit: 0
|
|
||||||
groups:
|
groups:
|
||||||
swc:
|
aws-sdk:
|
||||||
patterns:
|
patterns:
|
||||||
- "@swc/*"
|
- "@aws-sdk/*"
|
||||||
|
bull-board:
|
||||||
|
patterns:
|
||||||
|
- "@bull-board/*"
|
||||||
|
nestjs:
|
||||||
|
patterns:
|
||||||
|
- "@nestjs/*"
|
||||||
|
slacc:
|
||||||
|
patterns:
|
||||||
|
- "slacc-*"
|
||||||
storybook:
|
storybook:
|
||||||
patterns:
|
patterns:
|
||||||
- "storybook*"
|
- "storybook*"
|
||||||
- "@storybook/*"
|
- "@storybook/*"
|
||||||
|
swc-core:
|
||||||
|
patterns:
|
||||||
|
- "@swc/core*"
|
||||||
|
typescript-eslint:
|
||||||
|
patterns:
|
||||||
|
- "@typescript-eslint/*"
|
||||||
|
tensorflow:
|
||||||
|
patterns:
|
||||||
|
- "@tensorflow/*"
|
||||||
|
|||||||
8
.github/workflows/api-misskey-js.yml
vendored
8
.github/workflows/api-misskey-js.yml
vendored
@@ -1,6 +1,12 @@
|
|||||||
name: API report (misskey.js)
|
name: API report (misskey.js)
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- packages/misskey-js/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- packages/misskey-js/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
report:
|
report:
|
||||||
|
|||||||
43
.github/workflows/changelog-check.yml
vendored
Normal file
43
.github/workflows/changelog-check.yml
vendored
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
name: Check the description in CHANGELOG.md
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- develop
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-changelog:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout head
|
||||||
|
uses: actions/checkout@v4.1.1
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4.0.1
|
||||||
|
with:
|
||||||
|
node-version-file: '.node-version'
|
||||||
|
|
||||||
|
- name: Checkout base
|
||||||
|
run: |
|
||||||
|
mkdir _base
|
||||||
|
cp -r .git _base/.git
|
||||||
|
cd _base
|
||||||
|
git fetch --depth 1 origin ${{ github.base_ref }}
|
||||||
|
git checkout origin/${{ github.base_ref }} CHANGELOG.md
|
||||||
|
|
||||||
|
- name: Copy to Checker directory for CHANGELOG-base.md
|
||||||
|
run: cp _base/CHANGELOG.md scripts/changelog-checker/CHANGELOG-base.md
|
||||||
|
- name: Copy to Checker directory for CHANGELOG-head.md
|
||||||
|
run: cp CHANGELOG.md scripts/changelog-checker/CHANGELOG-head.md
|
||||||
|
- name: diff
|
||||||
|
continue-on-error: true
|
||||||
|
run: diff -u CHANGELOG-base.md CHANGELOG-head.md
|
||||||
|
working-directory: scripts/changelog-checker
|
||||||
|
|
||||||
|
- name: Setup Checker
|
||||||
|
run: npm install
|
||||||
|
working-directory: scripts/changelog-checker
|
||||||
|
- name: Run Checker
|
||||||
|
run: npm run run
|
||||||
|
working-directory: scripts/changelog-checker
|
||||||
127
.github/workflows/check-misskey-js-autogen.yml
vendored
Normal file
127
.github/workflows/check-misskey-js-autogen.yml
vendored
Normal file
@@ -0,0 +1,127 @@
|
|||||||
|
name: Check Misskey JS autogen
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- develop
|
||||||
|
paths:
|
||||||
|
- packages/backend/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-misskey-js-autogen:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
env:
|
||||||
|
api_json_names: "api-base.json api-head.json"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- name: setup pnpm
|
||||||
|
uses: pnpm/action-setup@v2
|
||||||
|
with:
|
||||||
|
version: 8
|
||||||
|
|
||||||
|
- name: setup node
|
||||||
|
id: setup-node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version-file: '.node-version'
|
||||||
|
cache: pnpm
|
||||||
|
|
||||||
|
- name: install dependencies
|
||||||
|
run: pnpm i --frozen-lockfile
|
||||||
|
|
||||||
|
- name: wait get-api-diff
|
||||||
|
uses: lewagon/wait-on-check-action@v1.3.3
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
check-regexp: get-from-misskey .+
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
wait-interval: 30
|
||||||
|
|
||||||
|
- name: Download artifact
|
||||||
|
uses: actions/github-script@v7
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const fs = require('fs');
|
||||||
|
|
||||||
|
const workflows = await github.rest.actions.listWorkflowRunsForRepo({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
head_sha: `${{ github.event.pull_request.head.sha }}`
|
||||||
|
}).then(x => x.data.workflow_runs);
|
||||||
|
|
||||||
|
console.log(workflows.map(x => ({name: x.name, title: x.display_title})));
|
||||||
|
|
||||||
|
const run_id = workflows.find(x => x.name.includes("Get api.json from Misskey")).id;
|
||||||
|
|
||||||
|
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
run_id: run_id,
|
||||||
|
});
|
||||||
|
|
||||||
|
let matchArtifacts = allArtifacts.data.artifacts.filter((artifact) => {
|
||||||
|
return artifact.name.startsWith("api-artifact-") || artifact.name == "api-artifact"
|
||||||
|
});
|
||||||
|
|
||||||
|
await Promise.all(matchArtifacts.map(async (artifact) => {
|
||||||
|
let download = await github.rest.actions.downloadArtifact({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
artifact_id: artifact.id,
|
||||||
|
archive_format: 'zip',
|
||||||
|
});
|
||||||
|
await fs.promises.writeFile(`${process.env.GITHUB_WORKSPACE}/${artifact.name}.zip`, Buffer.from(download.data));
|
||||||
|
}));
|
||||||
|
|
||||||
|
- name: unzip artifacts
|
||||||
|
run: |-
|
||||||
|
find . -mindepth 1 -maxdepth 1 -type f -name '*.zip' -exec unzip {} -d . ';'
|
||||||
|
ls -la
|
||||||
|
|
||||||
|
- name: build autogen
|
||||||
|
run: |-
|
||||||
|
for name in $(echo $api_json_names)
|
||||||
|
do
|
||||||
|
checksum=$(mktemp)
|
||||||
|
mv $name packages/misskey-js/generator/api.json
|
||||||
|
|
||||||
|
cd packages/misskey-js/generator
|
||||||
|
pnpm run generate
|
||||||
|
find built -type f -exec sh -c 'echo $(sed -E "s/^\s+\*\s+generatedAt:.+$//" {} | sha256sum | cut -d" " -f 1) {}' \; > $checksum
|
||||||
|
cd ../../..
|
||||||
|
cp $checksum ${name}_checksum
|
||||||
|
done
|
||||||
|
|
||||||
|
- name: check update for type definitions
|
||||||
|
run: diff $(echo -n ${api_json_names} | awk -v RS=" " '{ printf "%s_checksum ", $0 }')
|
||||||
|
|
||||||
|
- name: send message
|
||||||
|
if: failure()
|
||||||
|
uses: thollander/actions-comment-pull-request@v2
|
||||||
|
with:
|
||||||
|
comment_tag: check-misskey-js-autogen
|
||||||
|
message: |-
|
||||||
|
Thank you for sending us a great Pull Request! 👍
|
||||||
|
Please regenerate misskey-js type definitions! 🙏
|
||||||
|
|
||||||
|
example:
|
||||||
|
```sh
|
||||||
|
pnpm run build-misskey-js-with-types
|
||||||
|
```
|
||||||
|
|
||||||
|
- name: send message
|
||||||
|
if: success()
|
||||||
|
uses: thollander/actions-comment-pull-request@v2
|
||||||
|
with:
|
||||||
|
comment_tag: check-misskey-js-autogen
|
||||||
|
mode: delete
|
||||||
|
message: "Thank you!"
|
||||||
4
.github/workflows/get-api-diff.yml
vendored
4
.github/workflows/get-api-diff.yml
vendored
@@ -56,7 +56,7 @@ jobs:
|
|||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: api-artifact
|
name: api-artifact-${{ matrix.api-json-name }}
|
||||||
path: ${{ matrix.api-json-name }}
|
path: ${{ matrix.api-json-name }}
|
||||||
|
|
||||||
save-pr-number:
|
save-pr-number:
|
||||||
@@ -69,5 +69,5 @@ jobs:
|
|||||||
echo "$PR_NUMBER" > ./pr_number
|
echo "$PR_NUMBER" > ./pr_number
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: api-artifact
|
name: api-artifact-pr-number
|
||||||
path: pr_number
|
path: pr_number
|
||||||
|
|||||||
14
.github/workflows/lint.yml
vendored
14
.github/workflows/lint.yml
vendored
@@ -5,7 +5,19 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- develop
|
- develop
|
||||||
|
paths:
|
||||||
|
- packages/backend/**
|
||||||
|
- packages/frontend/**
|
||||||
|
- packages/sw/**
|
||||||
|
- packages/misskey-js/**
|
||||||
|
- packages/shared/.eslintrc.js
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- packages/backend/**
|
||||||
|
- packages/frontend/**
|
||||||
|
- packages/sw/**
|
||||||
|
- packages/misskey-js/**
|
||||||
|
- packages/shared/.eslintrc.js
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pnpm_install:
|
pnpm_install:
|
||||||
@@ -78,4 +90,6 @@ jobs:
|
|||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
- run: corepack enable
|
- run: corepack enable
|
||||||
- run: pnpm i --frozen-lockfile
|
- run: pnpm i --frozen-lockfile
|
||||||
|
- run: pnpm --filter misskey-js run build
|
||||||
|
if: ${{ matrix.workspace == 'backend' }}
|
||||||
- run: pnpm --filter ${{ matrix.workspace }} run typecheck
|
- run: pnpm --filter ${{ matrix.workspace }} run typecheck
|
||||||
|
|||||||
36
.github/workflows/report-api-diff.yml
vendored
36
.github/workflows/report-api-diff.yml
vendored
@@ -19,24 +19,28 @@ jobs:
|
|||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
|
const fs = require('fs');
|
||||||
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
|
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
run_id: context.payload.workflow_run.id,
|
run_id: context.payload.workflow_run.id,
|
||||||
});
|
});
|
||||||
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
|
let matchArtifacts = allArtifacts.data.artifacts.filter((artifact) => {
|
||||||
return artifact.name == "api-artifact"
|
return artifact.name.startsWith("api-artifact-") || artifact.name == "api-artifact"
|
||||||
})[0];
|
|
||||||
let download = await github.rest.actions.downloadArtifact({
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
artifact_id: matchArtifact.id,
|
|
||||||
archive_format: 'zip',
|
|
||||||
});
|
});
|
||||||
let fs = require('fs');
|
await Promise.all(matchArtifacts.map(async (artifact) => {
|
||||||
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/api-artifact.zip`, Buffer.from(download.data));
|
let download = await github.rest.actions.downloadArtifact({
|
||||||
- name: Extract artifact
|
owner: context.repo.owner,
|
||||||
run: unzip api-artifact.zip -d artifacts
|
repo: context.repo.repo,
|
||||||
|
artifact_id: artifact.id,
|
||||||
|
archive_format: 'zip',
|
||||||
|
});
|
||||||
|
await fs.promises.writeFile(`${process.env.GITHUB_WORKSPACE}/${artifact.name}.zip`, Buffer.from(download.data));
|
||||||
|
}));
|
||||||
|
- name: Extract all artifacts
|
||||||
|
run: |
|
||||||
|
find . -mindepth 1 -maxdepth 1 -type f -name '*.zip' -exec unzip {} -d artifacts ';'
|
||||||
|
ls -la
|
||||||
- name: Load PR Number
|
- name: Load PR Number
|
||||||
id: load-pr-num
|
id: load-pr-num
|
||||||
run: echo "pr-number=$(cat artifacts/pr_number)" >> "$GITHUB_OUTPUT"
|
run: echo "pr-number=$(cat artifacts/pr_number)" >> "$GITHUB_OUTPUT"
|
||||||
@@ -83,3 +87,11 @@ jobs:
|
|||||||
pr_number: ${{ steps.load-pr-num.outputs.pr-number }}
|
pr_number: ${{ steps.load-pr-num.outputs.pr-number }}
|
||||||
comment_tag: show_diff
|
comment_tag: show_diff
|
||||||
filePath: ./output.md
|
filePath: ./output.md
|
||||||
|
- name: Tell error to PR
|
||||||
|
uses: thollander/actions-comment-pull-request@v2
|
||||||
|
if: failure() && steps.load-pr-num.outputs.pr-number
|
||||||
|
with:
|
||||||
|
pr_number: ${{ steps.load-pr-num.outputs.pr-number }}
|
||||||
|
comment_tag: show_diff_error
|
||||||
|
message: |
|
||||||
|
api.jsonの差分作成中にエラーが発生しました。詳細は[Workflowのログ](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})を確認してください。
|
||||||
|
|||||||
64
.github/workflows/test-backend.yml
vendored
64
.github/workflows/test-backend.yml
vendored
@@ -5,10 +5,18 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- develop
|
- develop
|
||||||
|
paths:
|
||||||
|
- packages/backend/**
|
||||||
|
# for permissions
|
||||||
|
- packages/misskey-js/**
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- packages/backend/**
|
||||||
|
# for permissions
|
||||||
|
- packages/misskey-js/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
jest:
|
unit:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
@@ -51,9 +59,59 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
- name: Test
|
- name: Test
|
||||||
run: pnpm jest-and-coverage
|
run: pnpm --filter backend test-and-coverage
|
||||||
- name: Upload Coverage
|
- name: Upload to Codecov
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
files: ./packages/backend/coverage/coverage-final.json
|
files: ./packages/backend/coverage/coverage-final.json
|
||||||
|
|
||||||
|
e2e:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [20.10.0]
|
||||||
|
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres:15
|
||||||
|
ports:
|
||||||
|
- 54312:5432
|
||||||
|
env:
|
||||||
|
POSTGRES_DB: test-misskey
|
||||||
|
POSTGRES_HOST_AUTH_METHOD: trust
|
||||||
|
redis:
|
||||||
|
image: redis:7
|
||||||
|
ports:
|
||||||
|
- 56312:6379
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4.1.1
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- name: Install pnpm
|
||||||
|
uses: pnpm/action-setup@v2
|
||||||
|
with:
|
||||||
|
version: 8
|
||||||
|
run_install: false
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v4.0.1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
cache: 'pnpm'
|
||||||
|
- run: corepack enable
|
||||||
|
- run: pnpm i --frozen-lockfile
|
||||||
|
- name: Check pnpm-lock.yaml
|
||||||
|
run: git diff --exit-code pnpm-lock.yaml
|
||||||
|
- name: Copy Configure
|
||||||
|
run: cp .github/misskey/test.yml .config
|
||||||
|
- name: Build
|
||||||
|
run: pnpm build
|
||||||
|
- name: Test
|
||||||
|
run: pnpm --filter backend test-and-coverage:e2e
|
||||||
|
- name: Upload to Codecov
|
||||||
|
uses: codecov/codecov-action@v3
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
files: ./packages/backend/coverage/coverage-final.json
|
||||||
|
|||||||
13
.github/workflows/test-frontend.yml
vendored
13
.github/workflows/test-frontend.yml
vendored
@@ -5,7 +5,20 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- develop
|
- develop
|
||||||
|
paths:
|
||||||
|
- packages/frontend/**
|
||||||
|
# for permissions
|
||||||
|
- packages/misskey-js/**
|
||||||
|
# for e2e
|
||||||
|
- packages/backend/**
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- packages/frontend/**
|
||||||
|
# for permissions
|
||||||
|
- packages/misskey-js/**
|
||||||
|
# for e2e
|
||||||
|
- packages/backend/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
vitest:
|
vitest:
|
||||||
|
|||||||
4
.github/workflows/test-misskey-js.yml
vendored
4
.github/workflows/test-misskey-js.yml
vendored
@@ -6,8 +6,12 @@ name: Test (misskey.js)
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ develop ]
|
branches: [ develop ]
|
||||||
|
paths:
|
||||||
|
- packages/misskey-js/**
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ develop ]
|
branches: [ develop ]
|
||||||
|
paths:
|
||||||
|
- packages/misskey-js/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
|||||||
47
.github/workflows/validate-api-json.yml
vendored
Normal file
47
.github/workflows/validate-api-json.yml
vendored
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
name: Test (backend)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- develop
|
||||||
|
paths:
|
||||||
|
- packages/backend/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- packages/backend/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
validate-api-json:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [20.10.0]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4.1.1
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- name: Install pnpm
|
||||||
|
uses: pnpm/action-setup@v2
|
||||||
|
with:
|
||||||
|
version: 8
|
||||||
|
run_install: false
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v4.0.1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
cache: 'pnpm'
|
||||||
|
- name: Install Redocly CLI
|
||||||
|
run: npm i -g @redocly/cli
|
||||||
|
- run: corepack enable
|
||||||
|
- run: pnpm i --frozen-lockfile
|
||||||
|
- name: Check pnpm-lock.yaml
|
||||||
|
run: git diff --exit-code pnpm-lock.yaml
|
||||||
|
- name: Copy Configure
|
||||||
|
run: cp .config/example.yml .config/default.yml
|
||||||
|
- name: Build and generate
|
||||||
|
run: pnpm build && pnpm --filter backend generate-api-json
|
||||||
|
- name: Validation
|
||||||
|
run: npx @redocly/cli lint --extends=minimal ./packages/backend/built/api.json
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -41,6 +41,7 @@ docker-compose.yml
|
|||||||
# misskey
|
# misskey
|
||||||
/build
|
/build
|
||||||
built
|
built
|
||||||
|
built-test
|
||||||
/data
|
/data
|
||||||
/.cache-loader
|
/.cache-loader
|
||||||
/db
|
/db
|
||||||
|
|||||||
106
CHANGELOG.md
106
CHANGELOG.md
@@ -5,32 +5,106 @@
|
|||||||
-
|
-
|
||||||
|
|
||||||
### Client
|
### Client
|
||||||
- Fix: ページ一覧ページの表示がモバイル環境において崩れているのを修正
|
-
|
||||||
- Fix: MFMでルビの中のテキストがnyaizeされない問題を修正
|
|
||||||
|
|
||||||
### Server
|
### Server
|
||||||
-
|
-
|
||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
## 2023.x.x (unreleased)
|
## 202x.x.x (Unreleased)
|
||||||
|
|
||||||
|
### General
|
||||||
|
- Feat: [mCaptcha](https://github.com/mCaptcha/mCaptcha)のサポートを追加
|
||||||
|
- Fix: リストライムラインの「リノートを表示」が正しく機能しない問題を修正
|
||||||
|
|
||||||
|
### Client
|
||||||
|
- Feat: 新しいゲームを追加
|
||||||
|
- Feat: 音声・映像プレイヤーを追加
|
||||||
|
- Feat: 絵文字の詳細ダイアログを追加
|
||||||
|
- Feat: 枠線をつけるMFM`$[border.width=1,style=solid,color=fff,radius=0 ...]`を追加
|
||||||
|
- デフォルトで枠線からはみ出る部分が隠されるようにしました。初期と同じ挙動にするには`$[border.noclip`が必要です
|
||||||
|
- Feat: スワイプでタブを切り替えられるように
|
||||||
|
- Enhance: MFM等のコードブロックに全文コピー用のボタンを追加
|
||||||
|
- Enhance: ハッシュタグ入力時に、本文の末尾の行に何も書かれていない場合は新たにスペースを追加しないように
|
||||||
|
- Enhance: チャンネルノートのピン留めをノートのメニューからできるように
|
||||||
|
- Enhance: 管理者の場合はAPI tokenの発行画面で管理機能に関する権限を付与できるように
|
||||||
|
- Enhance: AiScriptを0.17.0に更新 [CHANGELOG](https://github.com/aiscript-dev/aiscript/blob/bb89d132b633a622d3cb0eff0d0cc7e476c0cfdd/CHANGELOG.md)
|
||||||
|
- 配列の範囲外・非整数のインデックスへの代入が完全禁止になるので注意
|
||||||
|
- Enhance: 絵文字ピッカー・オートコンプリートで、完全一致した絵文字を優先的に表示するように
|
||||||
|
- Enhance: Playの説明欄にMFMを使えるように
|
||||||
|
- Enhance: チャンネルノートの場合は詳細ページからその前後のノートを見れるように
|
||||||
|
- Fix: ネイティブモードの絵文字がモノクロにならないように
|
||||||
|
- Fix: v2023.12.0で追加された「モデレーターがユーザーのアイコンもしくはバナー画像を未設定状態にできる機能」が管理画面上で正しく表示されていない問題を修正
|
||||||
|
- Fix: AiScriptの`readline`関数が不正な値を返すことがある問題のv2023.12.0時点での修正がPlay以外に適用されていないのを修正
|
||||||
|
- Fix: v2023.12.1で追加された`$[clickable ...]`および`onClickEv`が正しく機能していないのを修正
|
||||||
|
- Enhance: ページ遷移時にPlayerを閉じるように
|
||||||
|
|
||||||
|
### Server
|
||||||
|
- Enhance: 連合先のレートリミットに引っかかった際にリトライするようになりました
|
||||||
|
- Enhance: ActivityPub Deliver queueでBodyを事前処理するように (#12916)
|
||||||
|
- Enhance: クリップをエクスポートできるように
|
||||||
|
- Enhance: `/files`のファイルに対してHTTP Rangeリクエストを行えるように
|
||||||
|
- Enhance: `api.json`のOpenAPI Specificationを3.1.0に更新
|
||||||
|
- Fix: `drive/files/update`でファイル名のバリデーションが機能していない問題を修正
|
||||||
|
- Fix: `notes/create`で、`text`が空白文字のみで構成されているか`null`であって、かつ`text`だけであるリクエストに対するレスポンスが400になるように変更
|
||||||
|
- Fix: `notes/create`で、`text`が空白文字のみで構成されていてかつリノート、ファイルまたは投票を含んでいるリクエストに対するレスポンスの`text`が`""`から`null`になるように変更
|
||||||
|
- Fix: ipv4とipv6の両方が利用可能な環境でallowedPrivateNetworksが設定されていた場合プライベートipの検証ができていなかった問題を修正
|
||||||
|
- Fix: properly handle cc followers
|
||||||
|
|
||||||
|
## 2023.12.2
|
||||||
|
|
||||||
|
### General
|
||||||
|
- v2023.12.1でDockerを利用してサーバーを起動できない問題を修正
|
||||||
|
|
||||||
|
### Client
|
||||||
|
- Enhance: 検索画面においてEnterキー押下で検索できるように
|
||||||
|
|
||||||
|
## 2023.12.1
|
||||||
|
|
||||||
### Note
|
### Note
|
||||||
- Node.js 20.10.0が最小要件になりました
|
- アクセストークンの権限が再整理されたため、一部のAPIが古いAPIトークンでは動作しなくなりました。\
|
||||||
|
権限不足になる場合には権限を再設定して再生成してください。
|
||||||
|
|
||||||
|
### General
|
||||||
|
- Enhance: ローカリゼーションの更新
|
||||||
|
- Fix: 自分のdirect noteがuser list timelineに追加されない
|
||||||
|
|
||||||
|
### Client
|
||||||
|
- Feat: AiScript専用のMFM構文`$[clickable.ev=EVENTNAME ...]`を追加。`Mk:C:mfm`のオプション`onClickEv`に関数を渡すと、クリック時に`EVENTNAME`を引数にして呼び出す
|
||||||
|
- Enhance: MFM入力補助ボタンを投稿フォームに表示できるように #12787
|
||||||
|
- Fix: 一部のモデログ(logYellowでの表示対象)について、表示の色が変わらない問題を修正
|
||||||
|
- Fix: `fg`/`bg`MFMに長い単語を指定すると、オーバーフローされずはみ出る問題を修正
|
||||||
|
|
||||||
|
### Server
|
||||||
|
- Enhance: センシティブワードの設定がハッシュタグトレンドにも適用されるようになりました
|
||||||
|
- Enhance: `oauth/token`エンドポイントのCORS対応
|
||||||
|
- Fix: 1702718871541-ffVisibility.jsのdownが壊れている
|
||||||
|
- Fix:「非センシティブのみ(リモートはいいねのみ)」を設定していても、センシティブに設定されたカスタム絵文字をリアクションできる問題を修正
|
||||||
|
- Fix: ロールアサイン時の通知で,ロールアイコンが縮小されずに表示される問題を修正
|
||||||
|
- Fix: サードパーティアプリケーションがWebsocket APIに無条件にアクセスできる問題を修正
|
||||||
|
- Fix: サードパーティアプリケーションがユーザーの許可なしに非公開の情報を見ることができる問題を修正
|
||||||
|
|
||||||
|
## 2023.12.0
|
||||||
|
|
||||||
|
### Note
|
||||||
|
- 依存関係の更新に伴い、Node.js 20.10.0が最小要件になりました
|
||||||
|
- 絵文字の追加辞書を既にインストールしている場合は、お手数ですが再インストールのほどお願いします
|
||||||
- 絵文字ピッカーにピン留め表示する絵文字設定が「リアクション用」と「絵文字入力用」に分かれました。以前の設定は「リアクション用」として使用されます。
|
- 絵文字ピッカーにピン留め表示する絵文字設定が「リアクション用」と「絵文字入力用」に分かれました。以前の設定は「リアクション用」として使用されます。
|
||||||
|
|
||||||
**影響:**
|
**影響:**
|
||||||
それにより、投稿フォームから表示される絵文字ピッカーのピン留め絵文字がリセットされたように感じるかもしれません(新設された投稿用のピン留め絵文字が使われるため)。
|
それにより、投稿フォームから表示される絵文字ピッカーのピン留め絵文字がリセットされたように感じるかもしれません(新設された"ピン留め(全般)"の設定が使われるため)。
|
||||||
投稿用のピン留め絵文字をアップデート前の状態にするには、以下の手順で操作します。
|
投稿用のピン留め絵文字をアップデート前の状態にするには、以下の手順で操作します。
|
||||||
|
|
||||||
1. 「設定」メニューに移動し、「絵文字ピッカー」タブを選択します。
|
1. 「設定」メニューに移動し、「絵文字ピッカー」タブを選択します。
|
||||||
2. 「ピン留 (全般)」のタブを選択します。
|
2. 「ピン留 (全般)」のタブを選択します。
|
||||||
3. 「リアクション設定からコピーする」ボタンを押すことで、アップデート前の状態に戻すことができます。
|
3. 「リアクション設定から上書きする」ボタンを押すことで、アップデート前の状態に戻すことができます。
|
||||||
|
|
||||||
### General
|
### General
|
||||||
- Feat: メールアドレスの認証にverifymail.ioを使えるように (cherry-pick from https://github.com/TeamNijimiss/misskey/commit/971ba07a44550f68d2ba31c62066db2d43a0caed)
|
- Feat: メールアドレスの認証にverifymail.ioを使えるように (cherry-pick from https://github.com/TeamNijimiss/misskey/commit/971ba07a44550f68d2ba31c62066db2d43a0caed)
|
||||||
- Feat: モデレーターがユーザーのアイコンもしくはバナー画像を未設定状態にできる機能を追加 (cherry-pick from https://github.com/TeamNijimiss/misskey/commit/e0eb5a752f6e5616d6312bb7c9790302f9dbff83)
|
- Feat: モデレーターがユーザーのアイコンもしくはバナー画像を未設定状態にできる機能を追加 (cherry-pick from https://github.com/TeamNijimiss/misskey/commit/e0eb5a752f6e5616d6312bb7c9790302f9dbff83)
|
||||||
- Feat: TL上からノートが見えなくなるワードミュートであるハードミュートを追加
|
- Feat: TL上からノートが見えなくなるワードミュートであるハードミュートを追加
|
||||||
|
- Enhance: 指定したドメインのメールアドレスの登録を弾くことができるように
|
||||||
- Enhance: 公開ロールにアサインされたときに通知が作成されるように
|
- Enhance: 公開ロールにアサインされたときに通知が作成されるように
|
||||||
- Enhance: アイコンデコレーションを複数設定できるように
|
- Enhance: アイコンデコレーションを複数設定できるように
|
||||||
- Enhance: アイコンデコレーションの位置を微調整できるように
|
- Enhance: アイコンデコレーションの位置を微調整できるように
|
||||||
@@ -62,12 +136,17 @@
|
|||||||
- Enhance: ユーザー名、プロフィール、お知らせ、ページの編集画面でMFMや絵文字のオートコンプリートが使用できるように
|
- Enhance: ユーザー名、プロフィール、お知らせ、ページの編集画面でMFMや絵文字のオートコンプリートが使用できるように
|
||||||
- Enhance: プロフィール、お知らせの編集画面でMFMのプレビューを表示できるように
|
- Enhance: プロフィール、お知らせの編集画面でMFMのプレビューを表示できるように
|
||||||
- Enhance: 絵文字の詳細ページに記載される情報を追加
|
- Enhance: 絵文字の詳細ページに記載される情報を追加
|
||||||
|
- Enhance: リアクションの表示幅制限を設定可能に
|
||||||
- Enhance: Unicode 15.0のサポート
|
- Enhance: Unicode 15.0のサポート
|
||||||
- Enhance: コードブロックのハイライト機能を利用するには言語を明示的に指定させるように
|
- Enhance: コードブロックのハイライト機能を利用するには言語を明示的に指定させるように
|
||||||
- MFMでコードブロックを利用する際に意図しないハイライトが起こらないようになりました
|
- MFMでコードブロックを利用する際に意図しないハイライトが起こらないようになりました
|
||||||
- 逆に、MFMでコードハイライトを利用したい際は言語を明示的に指定する必要があります
|
- 逆に、MFMでコードハイライトを利用したい際は言語を明示的に指定する必要があります
|
||||||
(例: ` ```js ` → Javascript, ` ```ais ` → AiScript)
|
(例: ` ```js ` → Javascript, ` ```ais ` → AiScript)
|
||||||
- Enhance: 絵文字などのオートコンプリートでShift+Tabを押すと前の候補を選択できるように
|
- Enhance: 絵文字などのオートコンプリートでShift+Tabを押すと前の候補を選択できるように
|
||||||
|
- Enhance: チャンネルに新規の投稿がある場合にバッジを表示させる
|
||||||
|
- Enhance: サウンド設定に「サウンドを出力しない」と「Misskeyがアクティブな時のみサウンドを出力する」を追加
|
||||||
|
- Enhance: 設定したタグをトレンドに表示させないようにする項目を管理画面で設定できるように
|
||||||
|
- Enhance: 絵文字ピッカーのカテゴリに「/」を入れることでフォルダ分け表示できるように
|
||||||
- Fix: 「設定のバックアップ」で一部の項目がバックアップに含まれていなかった問題を修正
|
- Fix: 「設定のバックアップ」で一部の項目がバックアップに含まれていなかった問題を修正
|
||||||
- Fix: ウィジェットのジョブキューにて音声の発音方法変更に追従できていなかったのを修正 #12367
|
- Fix: ウィジェットのジョブキューにて音声の発音方法変更に追従できていなかったのを修正 #12367
|
||||||
- Fix: コードエディタが正しく表示されない問題を修正
|
- Fix: コードエディタが正しく表示されない問題を修正
|
||||||
@@ -83,10 +162,17 @@
|
|||||||
- Fix: 投票のみ/画像のみの引用RNが、通知欄でただのRNとして判定されるバグを修正
|
- Fix: 投票のみ/画像のみの引用RNが、通知欄でただのRNとして判定されるバグを修正
|
||||||
- Fix: CWをつけて引用RNしても、普通のRNとして扱われてしまうバグを修正しました。
|
- Fix: CWをつけて引用RNしても、普通のRNとして扱われてしまうバグを修正しました。
|
||||||
- Fix: 「画像が1枚のみのメディアリストの高さ」を「デフォルト」以外に設定していると、CWの中などに添付された画像が見られないバグを修正
|
- Fix: 「画像が1枚のみのメディアリストの高さ」を「デフォルト」以外に設定していると、CWの中などに添付された画像が見られないバグを修正
|
||||||
|
- Fix: DeepL TranslationのPro accountトグルスイッチが表示されていなかったのを修正
|
||||||
|
- Fix: twitterの埋め込みカード内リンクからリンク先を開けない問題を修正
|
||||||
|
- Fix: WebKitブラウザー上でも「デバイスの画面を常にオンにする」機能が効くように
|
||||||
|
- Fix: ページ一覧ページの表示がモバイル環境において崩れているのを修正
|
||||||
|
- Fix: MFMでルビの中のテキストがnyaizeされない問題を修正
|
||||||
|
|
||||||
### Server
|
### Server
|
||||||
- Enhance: MFM `$[ruby ]` が他ソフトウェアと連合されるように
|
- Enhance: MFM `$[ruby ]` が他ソフトウェアと連合されるように
|
||||||
- Enhance: Meilisearchを有効にした検索で、ユーザーのミュートやブロックを考慮するように
|
- Enhance: Meilisearchを有効にした検索で、ユーザーのミュートやブロックを考慮するように
|
||||||
|
- Enhance: カスタム絵文字のインポート時の動作を改善
|
||||||
|
- Enhance: json-schema(OpenAPIの戻り値として使用されるスキーマ定義)を出来る限り最新化 #12311
|
||||||
- Fix: 時間経過により無効化されたアンテナを再有効化したとき、サーバ再起動までその状況が反映されないのを修正 #12303
|
- Fix: 時間経過により無効化されたアンテナを再有効化したとき、サーバ再起動までその状況が反映されないのを修正 #12303
|
||||||
- Fix: ロールタイムラインが保存されない問題を修正
|
- Fix: ロールタイムラインが保存されない問題を修正
|
||||||
- Fix: api.jsonの生成ロジックを改善 #12402
|
- Fix: api.jsonの生成ロジックを改善 #12402
|
||||||
@@ -103,7 +189,6 @@
|
|||||||
- Fix: モデレーションログがモデレーターは閲覧できないように修正
|
- Fix: モデレーションログがモデレーターは閲覧できないように修正
|
||||||
- Fix: ハッシュタグのトレンド除外設定が即時に効果を持つように修正
|
- Fix: ハッシュタグのトレンド除外設定が即時に効果を持つように修正
|
||||||
- Fix: HTTP Digestヘッダのアルゴリズム部分に大文字の"SHA-256"しか使えない
|
- Fix: HTTP Digestヘッダのアルゴリズム部分に大文字の"SHA-256"しか使えない
|
||||||
- Fix: 管理者用APIのアクセス権限が適切に設定されていない問題を修正
|
|
||||||
|
|
||||||
## 2023.11.1
|
## 2023.11.1
|
||||||
|
|
||||||
@@ -114,7 +199,6 @@
|
|||||||
- Feat: 管理者がコントロールパネルからメールアドレスの照会を行えるようになりました
|
- Feat: 管理者がコントロールパネルからメールアドレスの照会を行えるようになりました
|
||||||
- Enhance: ローカリゼーションの更新
|
- Enhance: ローカリゼーションの更新
|
||||||
- Enhance: 依存関係の更新
|
- Enhance: 依存関係の更新
|
||||||
- Enhance: json-schema(OpenAPIの戻り値として使用されるスキーマ定義)を出来る限り最新化 #12311
|
|
||||||
|
|
||||||
### Client
|
### Client
|
||||||
- Enhance: MFMでルビを振れるように
|
- Enhance: MFMでルビを振れるように
|
||||||
@@ -123,7 +207,6 @@
|
|||||||
- 例: `$[unixtime 1701356400]`
|
- 例: `$[unixtime 1701356400]`
|
||||||
- Enhance: プラグインでエラーが発生した場合のハンドリングを強化
|
- Enhance: プラグインでエラーが発生した場合のハンドリングを強化
|
||||||
- Enhance: 細かなUIのブラッシュアップ
|
- Enhance: 細かなUIのブラッシュアップ
|
||||||
- Enhance: サウンド設定に「サウンドを出力しない」と「Misskeyがアクティブな時のみサウンドを出力する」を追加
|
|
||||||
- Fix: 効果音が再生されるとデバイスで再生している動画や音声が停止する問題を修正 #12339
|
- Fix: 効果音が再生されるとデバイスで再生している動画や音声が停止する問題を修正 #12339
|
||||||
- Fix: デッキに表示されたチャンネルの表示先チャンネルを切り替えた際、即座に反映されない問題を修正 #12236
|
- Fix: デッキに表示されたチャンネルの表示先チャンネルを切り替えた際、即座に反映されない問題を修正 #12236
|
||||||
- Fix: プラグインでノートの表示を書き換えられない問題を修正
|
- Fix: プラグインでノートの表示を書き換えられない問題を修正
|
||||||
@@ -151,7 +234,7 @@
|
|||||||
### General
|
### General
|
||||||
- Feat: アイコンデコレーション機能
|
- Feat: アイコンデコレーション機能
|
||||||
- サーバーで用意された画像をアイコンに重ねることができます
|
- サーバーで用意された画像をアイコンに重ねることができます
|
||||||
- 画像のテンプレートはこちらです: https://misskey-hub.net/avatar-decoration-template.png
|
- 画像のテンプレートはこちらです: https://misskey-hub.net/brand-assets/
|
||||||
- 最大でも黄色いエリア内にデコレーションを収めることを推奨します。
|
- 最大でも黄色いエリア内にデコレーションを収めることを推奨します。
|
||||||
- 画像は512x512pxを推奨します。
|
- 画像は512x512pxを推奨します。
|
||||||
- Feat: チャンネル設定にリノート/引用リノートの可否を設定できる項目を追加
|
- Feat: チャンネル設定にリノート/引用リノートの可否を設定できる項目を追加
|
||||||
@@ -168,7 +251,7 @@
|
|||||||
### Client
|
### Client
|
||||||
- Feat: プラグイン・テーマを外部サイトから直接インストールできるようになりました
|
- Feat: プラグイン・テーマを外部サイトから直接インストールできるようになりました
|
||||||
- 外部サイトでの実装が必要です。詳細は Misskey Hub をご覧ください
|
- 外部サイトでの実装が必要です。詳細は Misskey Hub をご覧ください
|
||||||
https://misskey-hub.net/docs/advanced/publish-on-your-website.html
|
https://misskey-hub.net/docs/for-developers/publish-on-your-website/
|
||||||
- Feat: 通知をグルーピングして表示するオプション(オプトアウト)
|
- Feat: 通知をグルーピングして表示するオプション(オプトアウト)
|
||||||
- Feat: Misskeyの基本的なチュートリアルを実装
|
- Feat: Misskeyの基本的なチュートリアルを実装
|
||||||
- Feat: スワイプしてタイムラインを再読込できるように
|
- Feat: スワイプしてタイムラインを再読込できるように
|
||||||
@@ -233,7 +316,6 @@
|
|||||||
### Client
|
### Client
|
||||||
- Enhance: TLの返信表示オプションを記憶するように
|
- Enhance: TLの返信表示オプションを記憶するように
|
||||||
- Enhance: 投稿されてから時間が経過しているノートであることを視覚的に分かりやすく
|
- Enhance: 投稿されてから時間が経過しているノートであることを視覚的に分かりやすく
|
||||||
- Feat: 絵文字ピッカーのカテゴリに「/」を入れることでフォルダ分け表示できるように
|
|
||||||
|
|
||||||
### Server
|
### Server
|
||||||
- Enhance: タイムライン取得時のパフォーマンスを向上
|
- Enhance: タイムライン取得時のパフォーマンスを向上
|
||||||
|
|||||||
2
COPYING
2
COPYING
@@ -1,5 +1,5 @@
|
|||||||
Unless otherwise stated this repository is
|
Unless otherwise stated this repository is
|
||||||
Copyright © 2014-2023 syuilo and contributers
|
Copyright © 2014-2024 syuilo and contributors
|
||||||
|
|
||||||
And is distributed under The GNU Affero General Public License Version 3, you should have received a copy of the license file as LICENSE.
|
And is distributed under The GNU Affero General Public License Version 3, you should have received a copy of the license file as LICENSE.
|
||||||
|
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ WORKDIR /misskey
|
|||||||
COPY --link ["pnpm-lock.yaml", "pnpm-workspace.yaml", "package.json", "./"]
|
COPY --link ["pnpm-lock.yaml", "pnpm-workspace.yaml", "package.json", "./"]
|
||||||
COPY --link ["scripts", "./scripts"]
|
COPY --link ["scripts", "./scripts"]
|
||||||
COPY --link ["packages/backend/package.json", "./packages/backend/"]
|
COPY --link ["packages/backend/package.json", "./packages/backend/"]
|
||||||
|
COPY --link ["packages/misskey-js/package.json", "./packages/misskey-js/"]
|
||||||
|
|
||||||
RUN --mount=type=cache,target=/root/.local/share/pnpm/store,sharing=locked \
|
RUN --mount=type=cache,target=/root/.local/share/pnpm/store,sharing=locked \
|
||||||
pnpm i --frozen-lockfile --aggregate-output
|
pnpm i --frozen-lockfile --aggregate-output
|
||||||
@@ -77,7 +78,9 @@ WORKDIR /misskey
|
|||||||
|
|
||||||
COPY --chown=misskey:misskey --from=target-builder /misskey/node_modules ./node_modules
|
COPY --chown=misskey:misskey --from=target-builder /misskey/node_modules ./node_modules
|
||||||
COPY --chown=misskey:misskey --from=target-builder /misskey/packages/backend/node_modules ./packages/backend/node_modules
|
COPY --chown=misskey:misskey --from=target-builder /misskey/packages/backend/node_modules ./packages/backend/node_modules
|
||||||
|
COPY --chown=misskey:misskey --from=target-builder /misskey/packages/misskey-js/node_modules ./packages/misskey-js/node_modules
|
||||||
COPY --chown=misskey:misskey --from=native-builder /misskey/built ./built
|
COPY --chown=misskey:misskey --from=native-builder /misskey/built ./built
|
||||||
|
COPY --chown=misskey:misskey --from=native-builder /misskey/packages/misskey-js/built ./packages/misskey-js/built
|
||||||
COPY --chown=misskey:misskey --from=native-builder /misskey/packages/backend/built ./packages/backend/built
|
COPY --chown=misskey:misskey --from=native-builder /misskey/packages/backend/built ./packages/backend/built
|
||||||
COPY --chown=misskey:misskey --from=native-builder /misskey/fluent-emojis /misskey/fluent-emojis
|
COPY --chown=misskey:misskey --from=native-builder /misskey/fluent-emojis /misskey/fluent-emojis
|
||||||
COPY --chown=misskey:misskey . ./
|
COPY --chown=misskey:misskey . ./
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<a href="https://misskey-hub.net/instances.html">
|
<a href="https://misskey-hub.net/servers/">
|
||||||
<img src="https://custom-icon-badges.herokuapp.com/badge/find_an-instance-acea31?logoColor=acea31&style=for-the-badge&logo=misskey&labelColor=363B40" alt="find an instance"/></a>
|
<img src="https://custom-icon-badges.herokuapp.com/badge/find_an-instance-acea31?logoColor=acea31&style=for-the-badge&logo=misskey&labelColor=363B40" alt="find an instance"/></a>
|
||||||
|
|
||||||
<a href="https://misskey-hub.net/docs/install.html">
|
<a href="https://misskey-hub.net/docs/for-admin/install/guides/">
|
||||||
<img src="https://custom-icon-badges.herokuapp.com/badge/create_an-instance-FBD53C?logoColor=FBD53C&style=for-the-badge&logo=server&labelColor=363B40" alt="create an instance"/></a>
|
<img src="https://custom-icon-badges.herokuapp.com/badge/create_an-instance-FBD53C?logoColor=FBD53C&style=for-the-badge&logo=server&labelColor=363B40" alt="create an instance"/></a>
|
||||||
|
|
||||||
<a href="./CONTRIBUTING.md">
|
<a href="./CONTRIBUTING.md">
|
||||||
@@ -51,7 +51,7 @@ With Misskey's built in drive, you get cloud storage right in your social media,
|
|||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
Misskey Documentation can be found at [Misskey Hub](https://misskey-hub.net/), some of the links and graphics above also lead to specific portions of it.
|
Misskey Documentation can be found at [Misskey Hub](https://misskey-hub.net/docs/), some of the links and graphics above also lead to specific portions of it.
|
||||||
|
|
||||||
## Sponsors
|
## Sponsors
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ Also, the later tasks are more indefinite and are subject to change as developme
|
|||||||
This is the phase we are at now. We need to make a high-maintenance environment that can withstand future development.
|
This is the phase we are at now. We need to make a high-maintenance environment that can withstand future development.
|
||||||
|
|
||||||
- ~~Make the number of type errors zero (backend)~~ → Done ✔️
|
- ~~Make the number of type errors zero (backend)~~ → Done ✔️
|
||||||
|
- Make the number of type errors zero (frontend)
|
||||||
- Improve CI
|
- Improve CI
|
||||||
- ~~Fix tests~~ → Done ✔️
|
- ~~Fix tests~~ → Done ✔️
|
||||||
- Fix random test failures - https://github.com/misskey-dev/misskey/issues/7985 and https://github.com/misskey-dev/misskey/issues/7986
|
- Fix random test failures - https://github.com/misskey-dev/misskey/issues/7985 and https://github.com/misskey-dev/misskey/issues/7986
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
# Reporting Security Issues
|
# Reporting Security Issues
|
||||||
|
|
||||||
If you discover a security issue in Misskey, please report it by sending an
|
If you discover a security issue in Misskey, please report it by **[this form](https://github.com/misskey-dev/misskey/security/advisories/new)**.
|
||||||
email to [syuilotan@yahoo.co.jp](mailto:syuilotan@yahoo.co.jp).
|
|
||||||
|
|
||||||
This will allow us to assess the risk, and make a fix available before we add a
|
This will allow us to assess the risk, and make a fix available before we add a
|
||||||
bug report to the GitHub repository.
|
bug report to the GitHub repository.
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ services:
|
|||||||
links:
|
links:
|
||||||
- db
|
- db
|
||||||
- redis
|
- redis
|
||||||
|
# - mcaptcha
|
||||||
# - meilisearch
|
# - meilisearch
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
@@ -48,6 +49,36 @@ services:
|
|||||||
interval: 5s
|
interval: 5s
|
||||||
retries: 20
|
retries: 20
|
||||||
|
|
||||||
|
# mcaptcha:
|
||||||
|
# restart: always
|
||||||
|
# image: mcaptcha/mcaptcha:latest
|
||||||
|
# networks:
|
||||||
|
# internal_network:
|
||||||
|
# external_network:
|
||||||
|
# aliases:
|
||||||
|
# - localhost
|
||||||
|
# ports:
|
||||||
|
# - 7493:7493
|
||||||
|
# env_file:
|
||||||
|
# - .config/docker.env
|
||||||
|
# environment:
|
||||||
|
# PORT: 7493
|
||||||
|
# MCAPTCHA_redis_URL: "redis://mcaptcha_redis/"
|
||||||
|
# depends_on:
|
||||||
|
# db:
|
||||||
|
# condition: service_healthy
|
||||||
|
# mcaptcha_redis:
|
||||||
|
# condition: service_healthy
|
||||||
|
#
|
||||||
|
# mcaptcha_redis:
|
||||||
|
# image: mcaptcha/cache:latest
|
||||||
|
# networks:
|
||||||
|
# - internal_network
|
||||||
|
# healthcheck:
|
||||||
|
# test: "redis-cli ping"
|
||||||
|
# interval: 5s
|
||||||
|
# retries: 20
|
||||||
|
|
||||||
# meilisearch:
|
# meilisearch:
|
||||||
# restart: always
|
# restart: always
|
||||||
# image: getmeili/meilisearch:v1.3.4
|
# image: getmeili/meilisearch:v1.3.4
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
_lang_: "বাংলা"
|
_lang_: "বাংলা"
|
||||||
headlineMisskey: "নোট ব্যাবহার করে সংযুক্ত নেটওয়ার্ক"
|
headlineMisskey: "নোট ব্যাবহার করে সংযুক্ত নেটওয়ার্ক"
|
||||||
introMisskey: "স্বাগতম! মিসকি একটি ওপেন সোর্স, ডিসেন্ট্রালাইজড মাইক্রোব্লগিং পরিষেবা। \n\"নোট\" তৈরির মাধ্যমে যা ঘটছে তা সবার সাথে শেয়ার করুন 📡\n\"রিঅ্যাকশন\" গুলির মাধ্যমে যেকোনো নোট সম্পর্কে আপনার অনুভূতি ব্যাক্ত করতে পারেন 👍\nএকটি নতুন দুনিয়া ঘুরে দেখুন 🚀\n"
|
introMisskey: "স্বাগতম! মিসকি একটি ওপেন সোর্স, ডিসেন্ট্রালাইজড মাইক্রোব্লগিং পরিষেবা। \n\"নোট\" তৈরির মাধ্যমে যা ঘটছে তা সবার সাথে শেয়ার করুন 📡\n\"রিঅ্যাকশন\" গুলির মাধ্যমে যেকোনো নোট সম্পর্কে আপনার অনুভূতি ব্যাক্ত করতে পারেন 👍\nএকটি নতুন দুনিয়া ঘুরে দেখুন 🚀\n"
|
||||||
|
poweredByMisskeyDescription: "{name} হল ওপেন সোর্স প্ল্যাটফর্ম <b>Misskey</b>-এর সার্ভারগুলির একটি৷"
|
||||||
monthAndDay: "{day}/{month}"
|
monthAndDay: "{day}/{month}"
|
||||||
search: "খুঁজুন"
|
search: "খুঁজুন"
|
||||||
notifications: "বিজ্ঞপ্তি"
|
notifications: "বিজ্ঞপ্তি"
|
||||||
@@ -12,12 +13,14 @@ fetchingAsApObject: "ফেডিভার্স থেকে খবর আন
|
|||||||
ok: "ঠিক"
|
ok: "ঠিক"
|
||||||
gotIt: "বুঝেছি"
|
gotIt: "বুঝেছি"
|
||||||
cancel: "বাতিল"
|
cancel: "বাতিল"
|
||||||
|
noThankYou: "না, ধন্যবাদ"
|
||||||
enterUsername: "ইউজারনেম লিখুন"
|
enterUsername: "ইউজারনেম লিখুন"
|
||||||
renotedBy: "{user} রিনোট করেছেন"
|
renotedBy: "{user} রিনোট করেছেন"
|
||||||
noNotes: "কোন নোট নেই"
|
noNotes: "কোন নোট নেই"
|
||||||
noNotifications: "কোনো বিজ্ঞপ্তি নেই"
|
noNotifications: "কোনো বিজ্ঞপ্তি নেই"
|
||||||
instance: "ইন্সট্যান্স"
|
instance: "ইন্সট্যান্স"
|
||||||
settings: "সেটিংস"
|
settings: "সেটিংস"
|
||||||
|
notificationSettings: "বিজ্ঞপ্তির সেটিংস"
|
||||||
basicSettings: "সাধারণ সেটিংস"
|
basicSettings: "সাধারণ সেটিংস"
|
||||||
otherSettings: "অন্যান্য সেটিংস"
|
otherSettings: "অন্যান্য সেটিংস"
|
||||||
openInWindow: "নতুন উইন্ডোতে খুলা"
|
openInWindow: "নতুন উইন্ডোতে খুলা"
|
||||||
@@ -42,12 +45,20 @@ pin: "পিন করা"
|
|||||||
unpin: "পিন সরান"
|
unpin: "পিন সরান"
|
||||||
copyContent: "বিষয়বস্তু কপি করুন"
|
copyContent: "বিষয়বস্তু কপি করুন"
|
||||||
copyLink: "লিঙ্ক কপি করুন"
|
copyLink: "লিঙ্ক কপি করুন"
|
||||||
|
copyLinkRenote: "রিনোট লিঙ্ক কপি করুন"
|
||||||
delete: "মুছুন"
|
delete: "মুছুন"
|
||||||
deleteAndEdit: "মুছুন এবং সম্পাদনা করুন"
|
deleteAndEdit: "মুছুন এবং সম্পাদনা করুন"
|
||||||
deleteAndEditConfirm: "আপনি কি এই নোটটি মুছে এটি সম্পাদনা করার বিষয়ে নিশ্চিত? আপনি এটির সমস্ত রিঅ্যাকশন, রিনোট এবং জবাব হারাবেন।"
|
deleteAndEditConfirm: "আপনি কি এই নোটটি মুছে এটি সম্পাদনা করার বিষয়ে নিশ্চিত? আপনি এটির সমস্ত রিঅ্যাকশন, রিনোট এবং জবাব হারাবেন।"
|
||||||
addToList: "লিস্ট এ যোগ করুন"
|
addToList: "লিস্ট এ যোগ করুন"
|
||||||
|
addToAntenna: "অ্যান্টেনা এ যোগ করুন"
|
||||||
sendMessage: "একটি বার্তা পাঠান"
|
sendMessage: "একটি বার্তা পাঠান"
|
||||||
|
copyRSS: "RSS কপি করুন"
|
||||||
copyUsername: "ব্যবহারকারীর নাম কপি করুন"
|
copyUsername: "ব্যবহারকারীর নাম কপি করুন"
|
||||||
|
copyUserId: "ব্যবহারকারীর ID কপি করুন"
|
||||||
|
copyNoteId: "নোটের ID কপি করুন"
|
||||||
|
copyFileId: "ফাইল ID কপি করুন"
|
||||||
|
copyFolderId: "ফোল্ডার ID কপি করুন"
|
||||||
|
copyProfileUrl: "প্রোফাইল URL কপি করুন"
|
||||||
searchUser: "ব্যবহারকারী খুঁজুন..."
|
searchUser: "ব্যবহারকারী খুঁজুন..."
|
||||||
reply: "জবাব"
|
reply: "জবাব"
|
||||||
loadMore: "আরও দেখুন"
|
loadMore: "আরও দেখুন"
|
||||||
@@ -100,6 +111,8 @@ renoted: "রিনোট করা হয়েছে"
|
|||||||
cantRenote: "এই নোটটি রিনোট করা যাবে না।"
|
cantRenote: "এই নোটটি রিনোট করা যাবে না।"
|
||||||
cantReRenote: "রিনোটকে রিনোট করা যাবে না।"
|
cantReRenote: "রিনোটকে রিনোট করা যাবে না।"
|
||||||
quote: "উদ্ধৃতি"
|
quote: "উদ্ধৃতি"
|
||||||
|
inChannelRenote: "চ্যানেলে রিনোট"
|
||||||
|
inChannelQuote: "চ্যানেলে উদ্ধৃতি"
|
||||||
pinnedNote: "পিন করা নোট"
|
pinnedNote: "পিন করা নোট"
|
||||||
pinned: "পিন করা"
|
pinned: "পিন করা"
|
||||||
you: "আপনি"
|
you: "আপনি"
|
||||||
@@ -108,6 +121,10 @@ sensitive: "সংবেদনশীল বিষয়বস্তু"
|
|||||||
add: "যুক্ত করুন"
|
add: "যুক্ত করুন"
|
||||||
reaction: "প্রতিক্রিয়া"
|
reaction: "প্রতিক্রিয়া"
|
||||||
reactions: "প্রতিক্রিয়া"
|
reactions: "প্রতিক্রিয়া"
|
||||||
|
emojiPicker: "ইমোজি পিকার"
|
||||||
|
pinnedEmojisForReactionSettingDescription: "রিঅ্যাকশন দেয়ার সময় আপনি ইমোজিটিকে পিন করা এবং প্রদর্শিত হওয়ার জন্য সেট করতে পারেন।"
|
||||||
|
pinnedEmojisSettingDescription: "ইমোজি ইনপুট দেয়ার সময় আপনি ইমোজিটিকে পিন করা এবং প্রদর্শিত হওয়ার জন্য সেট করতে পারেন।"
|
||||||
|
emojiPickerDisplay: "পিকার ডিসপ্লে"
|
||||||
reactionSettingDescription2: "পুনরায় সাজাতে টেনে আনুন, মুছতে ক্লিক করুন, যোগ করতে + টিপুন।"
|
reactionSettingDescription2: "পুনরায় সাজাতে টেনে আনুন, মুছতে ক্লিক করুন, যোগ করতে + টিপুন।"
|
||||||
rememberNoteVisibility: "নোটের দৃশ্যমান্যতার সেটিংস মনে রাখুন"
|
rememberNoteVisibility: "নোটের দৃশ্যমান্যতার সেটিংস মনে রাখুন"
|
||||||
attachCancel: "অ্যাটাচমেন্ট সরান "
|
attachCancel: "অ্যাটাচমেন্ট সরান "
|
||||||
@@ -1034,6 +1051,7 @@ _2fa:
|
|||||||
step3: "অ্যাপে প্রদর্শিত টোকেনটি লিখুন এবং আপনার কাজ শেষ।"
|
step3: "অ্যাপে প্রদর্শিত টোকেনটি লিখুন এবং আপনার কাজ শেষ।"
|
||||||
step4: "আপনাকে এখন থেকে লগ ইন করার সময়, এইভাবে টোকেন লিখতে হবে।"
|
step4: "আপনাকে এখন থেকে লগ ইন করার সময়, এইভাবে টোকেন লিখতে হবে।"
|
||||||
securityKeyInfo: "আপনি একটি হার্ডওয়্যার সিকিউরিটি কী ব্যবহার করে লগ ইন করতে পারেন যা FIDO2 বা ডিভাইসের ফিঙ্গারপ্রিন্ট সেন্সর বা পিন সমর্থন করে৷"
|
securityKeyInfo: "আপনি একটি হার্ডওয়্যার সিকিউরিটি কী ব্যবহার করে লগ ইন করতে পারেন যা FIDO2 বা ডিভাইসের ফিঙ্গারপ্রিন্ট সেন্সর বা পিন সমর্থন করে৷"
|
||||||
|
renewTOTPCancel: "না, ধন্যবাদ"
|
||||||
_permissions:
|
_permissions:
|
||||||
"read:account": "অ্যাকাউন্টের তথ্য দেখুন"
|
"read:account": "অ্যাকাউন্টের তথ্য দেখুন"
|
||||||
"write:account": "অ্যাকাউন্টের তথ্য সম্পাদন করুন"
|
"write:account": "অ্যাকাউন্টের তথ্য সম্পাদন করুন"
|
||||||
|
|||||||
@@ -121,6 +121,12 @@ sensitive: "NSFW"
|
|||||||
add: "Afegir"
|
add: "Afegir"
|
||||||
reaction: "Reaccions"
|
reaction: "Reaccions"
|
||||||
reactions: "Reaccions"
|
reactions: "Reaccions"
|
||||||
|
emojiPicker: "Selecció d'emojis"
|
||||||
|
pinnedEmojisForReactionSettingDescription: "Selecciona l'emoji amb el qual reaccionar"
|
||||||
|
pinnedEmojisSettingDescription: "Selecciona l'emoji amb el qual reaccionar"
|
||||||
|
emojiPickerDisplay: "Visualitza el selector d'emojis"
|
||||||
|
overwriteFromPinnedEmojisForReaction: "Reemplaça els emojis de la reacció"
|
||||||
|
overwriteFromPinnedEmojis: "Sobreescriu des dels emojis fixats"
|
||||||
reactionSettingDescription2: "Arrossega per reordenar, fes clic per suprimir, prem \"+\" per afegir."
|
reactionSettingDescription2: "Arrossega per reordenar, fes clic per suprimir, prem \"+\" per afegir."
|
||||||
rememberNoteVisibility: "Recorda la configuració de visibilitat de les notes"
|
rememberNoteVisibility: "Recorda la configuració de visibilitat de les notes"
|
||||||
attachCancel: "Eliminar el fitxer adjunt"
|
attachCancel: "Eliminar el fitxer adjunt"
|
||||||
@@ -213,6 +219,9 @@ clearQueueConfirmText: "Les notes no lliurades que quedin a la cua no es federar
|
|||||||
clearCachedFiles: "Esborra la memòria cau"
|
clearCachedFiles: "Esborra la memòria cau"
|
||||||
clearCachedFilesConfirm: "Segur que voleu eliminar tots els fitxers de la memòria cau?"
|
clearCachedFilesConfirm: "Segur que voleu eliminar tots els fitxers de la memòria cau?"
|
||||||
blockedInstances: "Instàncies bloquejades"
|
blockedInstances: "Instàncies bloquejades"
|
||||||
|
blockedInstancesDescription: "Llista els enllaços d'amfitrió de les instàncies que vols bloquejar separades per un salt de pàgina. Les instàncies llistades no podran comunicar-se amb aquesta instància."
|
||||||
|
silencedInstances: "Instàncies silenciades"
|
||||||
|
silencedInstancesDescription: "Llista els enllaços d'amfitrió de les instàncies que vols silenciar. Tots els comptes de les instàncies llistades s'establiran com silenciades i només podran fer sol·licitacions de seguiment, i no podran mencionar als comptes locals si no els segueixen. Això no afectarà les instàncies bloquejades."
|
||||||
muteAndBlock: "Silencia i bloca"
|
muteAndBlock: "Silencia i bloca"
|
||||||
mutedUsers: "Usuaris silenciats"
|
mutedUsers: "Usuaris silenciats"
|
||||||
blockedUsers: "Usuaris bloquejats"
|
blockedUsers: "Usuaris bloquejats"
|
||||||
@@ -227,9 +236,12 @@ preview: "Vista prèvia"
|
|||||||
default: "Per defecte"
|
default: "Per defecte"
|
||||||
defaultValueIs: "Per defecte: {value}"
|
defaultValueIs: "Per defecte: {value}"
|
||||||
noCustomEmojis: "Cap emoji personalitzat"
|
noCustomEmojis: "Cap emoji personalitzat"
|
||||||
|
noJobs: "No hi ha feines"
|
||||||
federating: "Federant"
|
federating: "Federant"
|
||||||
blocked: "Bloquejat"
|
blocked: "Bloquejat"
|
||||||
suspended: "Suspés"
|
suspended: "Suspés"
|
||||||
|
all: "tot"
|
||||||
|
subscribing: "Subscrit a"
|
||||||
publishing: "S'està publicant"
|
publishing: "S'està publicant"
|
||||||
notResponding: "Sense resposta"
|
notResponding: "Sense resposta"
|
||||||
instanceFollowing: "Seguits del servidor"
|
instanceFollowing: "Seguits del servidor"
|
||||||
@@ -254,11 +266,31 @@ removed: "Eliminat"
|
|||||||
removeAreYouSure: "Segur que voleu retirar «{x}»?"
|
removeAreYouSure: "Segur que voleu retirar «{x}»?"
|
||||||
deleteAreYouSure: "Segur que voleu retirar «{x}»?"
|
deleteAreYouSure: "Segur que voleu retirar «{x}»?"
|
||||||
resetAreYouSure: "Segur que voleu restablir-ho?"
|
resetAreYouSure: "Segur que voleu restablir-ho?"
|
||||||
|
areYouSure: "Està segur?"
|
||||||
saved: "S'ha desat"
|
saved: "S'ha desat"
|
||||||
messaging: "Xat"
|
messaging: "Xat"
|
||||||
upload: "Puja"
|
upload: "Puja"
|
||||||
|
keepOriginalUploading: "Guarda la imatge original"
|
||||||
|
keepOriginalUploadingDescription: "Guarda la imatge pujada com hi és. Si està apagat, una versió per a la visualització a la xarxa serà generada quan sigui pujada."
|
||||||
|
fromDrive: "Des de la unitat"
|
||||||
|
fromUrl: "Des d'un enllaç"
|
||||||
|
uploadFromUrl: "Carrega des d'un enllaç"
|
||||||
|
uploadFromUrlDescription: "Enllaç del fitxer que vols carregar"
|
||||||
|
uploadFromUrlRequested: "Càrrega sol·licitada"
|
||||||
|
uploadFromUrlMayTakeTime: "La càrrega des de l'enllaç pot prendre un temps"
|
||||||
|
explore: "Explora"
|
||||||
|
messageRead: "Vist"
|
||||||
|
noMoreHistory: "No hi resta més per veure"
|
||||||
|
startMessaging: "Començar a xatejar"
|
||||||
|
nUsersRead: "Vist per {n}"
|
||||||
|
agreeTo: "Accepto que {0}"
|
||||||
|
agree: "Hi estic d'acord"
|
||||||
|
agreeBelow: "Hi estic d'acord amb el següent"
|
||||||
|
basicNotesBeforeCreateAccount: "Notes importants"
|
||||||
|
termsOfService: "Condicions d'ús"
|
||||||
start: "Comença"
|
start: "Comença"
|
||||||
home: "Inici"
|
home: "Inici"
|
||||||
|
remoteUserCaution: "Ja que aquest usuari resideix a una instància remota, la informació mostrada es podria trobar incompleta."
|
||||||
activity: "Activitat"
|
activity: "Activitat"
|
||||||
images: "Imatges"
|
images: "Imatges"
|
||||||
image: "Imatges"
|
image: "Imatges"
|
||||||
@@ -274,16 +306,34 @@ dark: "Fosc"
|
|||||||
lightThemes: "Temes clars"
|
lightThemes: "Temes clars"
|
||||||
darkThemes: "Temes foscos"
|
darkThemes: "Temes foscos"
|
||||||
syncDeviceDarkMode: "Sincronitza el mode fosc amb la configuració del dispositiu"
|
syncDeviceDarkMode: "Sincronitza el mode fosc amb la configuració del dispositiu"
|
||||||
|
drive: "Unitat"
|
||||||
|
fileName: "Nom del Fitxer"
|
||||||
|
selectFile: "Selecciona fitxers"
|
||||||
|
selectFiles: "Selecciona fitxers"
|
||||||
|
selectFolder: "Selecció de carpeta"
|
||||||
|
selectFolders: "Selecció de carpeta"
|
||||||
renameFile: "Canvia el nom del fitxer"
|
renameFile: "Canvia el nom del fitxer"
|
||||||
folderName: "Nom de la carpeta"
|
folderName: "Nom de la carpeta"
|
||||||
createFolder: "Crea una carpeta"
|
createFolder: "Crea una carpeta"
|
||||||
renameFolder: "Canvia el nom de la carpeta"
|
renameFolder: "Canvia el nom de la carpeta"
|
||||||
deleteFolder: "Elimina la carpeta"
|
deleteFolder: "Elimina la carpeta"
|
||||||
|
folder: "Carpeta "
|
||||||
addFile: "Afegeix un fitxer"
|
addFile: "Afegeix un fitxer"
|
||||||
|
emptyDrive: "La teva unitat és buida"
|
||||||
emptyFolder: "La carpeta està buida"
|
emptyFolder: "La carpeta està buida"
|
||||||
unableToDelete: "No es pot eliminar"
|
unableToDelete: "No es pot eliminar"
|
||||||
|
inputNewFileName: "Introduïu el nom de fitxer nou"
|
||||||
|
inputNewDescription: "Inserta una nova llegenda"
|
||||||
|
inputNewFolderName: "Introduïu el nom de la carpeta nova"
|
||||||
|
circularReferenceFolder: "La carpeta destinatària és una subcarpeta de la carpeta a la qual la desitges moure"
|
||||||
|
hasChildFilesOrFolders: "No és possible esborrar aquesta carpeta ja que no és buida"
|
||||||
copyUrl: "Copia l'URL"
|
copyUrl: "Copia l'URL"
|
||||||
rename: "Canvia el nom"
|
rename: "Canvia el nom"
|
||||||
|
avatar: "Icona"
|
||||||
|
banner: "Bàner"
|
||||||
|
displayOfSensitiveMedia: "Visualització de contingut sensible"
|
||||||
|
whenServerDisconnected: "Quan es perdi la connexió al servidor"
|
||||||
|
disconnectedFromServer: "Desconnectat pel servidor"
|
||||||
reload: "Actualitza"
|
reload: "Actualitza"
|
||||||
doNothing: "Ignora"
|
doNothing: "Ignora"
|
||||||
accept: "Accepta"
|
accept: "Accepta"
|
||||||
@@ -353,33 +403,132 @@ notFound: "No s'ha trobat"
|
|||||||
markAsReadAllUnreadNotes: "Marca-ho tot com a llegit"
|
markAsReadAllUnreadNotes: "Marca-ho tot com a llegit"
|
||||||
help: "Ajuda"
|
help: "Ajuda"
|
||||||
invites: "Convida"
|
invites: "Convida"
|
||||||
|
title: "Títol"
|
||||||
|
text: "Text"
|
||||||
|
enable: "Habilita"
|
||||||
next: "Següent"
|
next: "Següent"
|
||||||
|
retype: "Torneu a introduir-la"
|
||||||
noteOf: "Publicació de: {user}"
|
noteOf: "Publicació de: {user}"
|
||||||
|
quoteAttached: "Frase adjunta"
|
||||||
|
quoteQuestion: "Vols annexar-la com a cita?"
|
||||||
|
noMessagesYet: "Encara no hi ha missatges"
|
||||||
|
newMessageExists: "Has rebut un nou missatge"
|
||||||
|
onlyOneFileCanBeAttached: "Només pots adjuntar un fitxer a un missatge"
|
||||||
|
signinRequired: "Si us plau, Registra't o inicia la sessió abans de continuar"
|
||||||
invitations: "Convida"
|
invitations: "Convida"
|
||||||
|
invitationCode: "Codi d'invitació"
|
||||||
|
checking: "Comprovació en curs..."
|
||||||
|
available: "Disponible"
|
||||||
|
unavailable: "No és disponible"
|
||||||
|
usernameInvalidFormat: "Pots fer servir lletres (majúscules i minúscules), números i barres baixes (\"_\")"
|
||||||
|
tooShort: "Massa curt"
|
||||||
|
tooLong: "Massa llarg"
|
||||||
|
weakPassword: "Contrasenya insegura"
|
||||||
|
normalPassword: "Bona contrasenya"
|
||||||
|
strongPassword: "Contrasenya segura"
|
||||||
|
passwordMatched: "Correcte!"
|
||||||
|
passwordNotMatched: "No coincideix"
|
||||||
|
signinWith: "Inicia sessió amb amb {x}"
|
||||||
|
signinFailed: "Autenticació sense èxit. Intenta-ho un altre cop utilitzant la contrasenya i el nom correctes."
|
||||||
|
or: "O"
|
||||||
|
language: "Idioma"
|
||||||
|
uiLanguage: "Idioma de l'interfície"
|
||||||
|
aboutX: "Respecte a {x}"
|
||||||
|
emojiStyle: "Estil d'emoji"
|
||||||
|
native: "Nadiu"
|
||||||
|
disableDrawer: "No mostrar els menús en calaixos"
|
||||||
|
showNoteActionsOnlyHover: "Només mostra accions de la nota en passar amb el cursor"
|
||||||
|
noHistory: "No hi ha un registre previ"
|
||||||
|
signinHistory: "Historial d'autenticacions"
|
||||||
|
enableAdvancedMfm: "Habilitar l'MFM avançat"
|
||||||
|
enableAnimatedMfm: "Habilitar l'MFM amb moviment"
|
||||||
|
doing: "Processant..."
|
||||||
|
category: "Categoria"
|
||||||
tags: "Etiquetes"
|
tags: "Etiquetes"
|
||||||
docSource: "Font del document"
|
docSource: "Font del document"
|
||||||
createAccount: "Crea un compte"
|
createAccount: "Crea un compte"
|
||||||
existingAccount: "Compte existent"
|
existingAccount: "Compte existent"
|
||||||
regenerate: "Regenera"
|
regenerate: "Regenera"
|
||||||
fontSize: "Mida del text"
|
fontSize: "Mida del text"
|
||||||
|
mediaListWithOneImageAppearance: "Altura de la llista de fitxers amb una única imatge"
|
||||||
|
limitTo: "Limita a {x}"
|
||||||
noFollowRequests: "No tens sol·licituds de seguiment"
|
noFollowRequests: "No tens sol·licituds de seguiment"
|
||||||
|
openImageInNewTab: "Obre imatges a una nova pestanya"
|
||||||
dashboard: "Panell de control"
|
dashboard: "Panell de control"
|
||||||
local: "Local"
|
local: "Local"
|
||||||
remote: "Remot"
|
remote: "Remot"
|
||||||
total: "Total"
|
total: "Total"
|
||||||
|
weekOverWeekChanges: "Canvis l'última setmana"
|
||||||
|
dayOverDayChanges: "Canvis ahir"
|
||||||
appearance: "Aparença"
|
appearance: "Aparença"
|
||||||
clientSettings: "Configuració del client"
|
clientSettings: "Configuració del client"
|
||||||
accountSettings: "Configuració del compte"
|
accountSettings: "Configuració del compte"
|
||||||
|
promotion: "Promocionat"
|
||||||
|
promote: "Promoure"
|
||||||
|
numberOfDays: "Nombre de dies"
|
||||||
hideThisNote: "Amaga la publicació"
|
hideThisNote: "Amaga la publicació"
|
||||||
showFeaturedNotesInTimeline: "Mostra publicacions destacades en la línia de temps"
|
showFeaturedNotesInTimeline: "Mostra publicacions destacades en la línia de temps"
|
||||||
|
objectStorage: "Emmagatzematge d'objectes\n"
|
||||||
|
useObjectStorage: "Utilitzar l'emmagatzematge d'objectes"
|
||||||
|
objectStorageBaseUrl: "Base d'enllaç"
|
||||||
|
objectStorageBaseUrlDesc: "Prefix d'enllaç utilitzat per a fer referencia als fitxers. Especifica l'enllaç del teu CDN o Proxy si n'estàs utilitzant qualsevol, en cas contrari, especifica l'enllaç al que es pot accedir públicament segons la guia de servei que vosté utilitza.\nPer l'ús d'S3 utilitza 'https://<bucket>.s3.amazonaws.com' I per a GCS o serveis equivalents utilitza 'https://storage.googleapis.com/<bucket>'."
|
||||||
newNoteRecived: "Hi ha publicacions noves"
|
newNoteRecived: "Hi ha publicacions noves"
|
||||||
installedDate: "Data d'instal·lació"
|
installedDate: "Data d'instal·lació"
|
||||||
state: "Estat"
|
state: "Estat"
|
||||||
sort: "Ordena"
|
sort: "Ordena"
|
||||||
ascendingOrder: "Ascendent"
|
ascendingOrder: "Ascendent"
|
||||||
descendingOrder: "Descendent"
|
descendingOrder: "Descendent"
|
||||||
|
removeAllFollowing: "Deixar de seguir tots els usuaris seguits"
|
||||||
|
removeAllFollowingDescription: "El fet d'executar això, et farà deixar de seguir a tots els usuaris de {host}. Si us plau, executa això si l'amfitrió, per exemple, ja no existeix."
|
||||||
|
userSuspended: "Aquest usuari ha sigut suspès"
|
||||||
|
userSilenced: "Aquest usuari està sent silenciat"
|
||||||
|
yourAccountSuspendedTitle: "Aquest compte és suspès"
|
||||||
|
yourAccountSuspendedDescription: "Aquest compte ha sigut suspès a causa de la violació de les condicions d'ús o similars. Contacta l'administrador si en vol saber més. Si us plau, no en faci un altre compte."
|
||||||
|
tokenRevoked: "Codi de seguretat no vàlid"
|
||||||
|
tokenRevokedDescription: "La petició més recent ha estat denegada perquè contenia un codi de seguretat no vàlid. Actualitza la pàgina i torna-ho a provar."
|
||||||
|
accountDeleted: "Compte eliminat amb èxit"
|
||||||
|
accountDeletedDescription: "Aquest compte ha sigut eliminat"
|
||||||
|
menu: "Menú"
|
||||||
|
divider: "Divisor"
|
||||||
|
addItem: "Afegir element"
|
||||||
|
rearrange: "Torna a ordenar"
|
||||||
|
relays: "Relés"
|
||||||
|
addRelay: "Afegeix relés"
|
||||||
|
inboxUrl: "Enllaç de la safata d'entrada"
|
||||||
|
addedRelays: "Relés afegits"
|
||||||
|
serviceworkerInfo: "És obligatòria l'activació per a obtenir notificacions push"
|
||||||
deletedNote: "Publicacions eliminades"
|
deletedNote: "Publicacions eliminades"
|
||||||
invisibleNote: "Publicacions amagades"
|
invisibleNote: "Publicacions amagades"
|
||||||
|
enableInfiniteScroll: "Carrega més automàticament\n"
|
||||||
|
visibility: "Visibilitat"
|
||||||
|
poll: "Enquesta"
|
||||||
|
useCw: "Amaga el contingut"
|
||||||
|
enablePlayer: "Obre el reproductor de vídeo"
|
||||||
|
disablePlayer: "Tanca el reproductor de vídeo"
|
||||||
|
expandTweet: "Expandir post"
|
||||||
|
themeEditor: "Editor de temes"
|
||||||
|
description: "Descripció"
|
||||||
|
describeFile: "Afegir subtitulació"
|
||||||
|
enterFileDescription: "Afegeix un títol"
|
||||||
|
author: "Autor"
|
||||||
|
leaveConfirm: "Hi ha canvis sense guardar. Els vols descartar?"
|
||||||
|
manage: "Administració"
|
||||||
|
plugins: "Extensions"
|
||||||
|
preferencesBackups: "Configuracions de les Còpies de seguretat"
|
||||||
|
deck: "Escriptori"
|
||||||
|
undeck: "Tanca l'escriptori"
|
||||||
|
useBlurEffectForModal: "Utilitzar l'efecte de difuminació a modals"
|
||||||
|
useFullReactionPicker: "Utilitza el cercador de reaccions d'escala sencera"
|
||||||
|
width: "Amplada"
|
||||||
|
height: "Alçària"
|
||||||
|
large: "Gran"
|
||||||
|
medium: "Mitjà"
|
||||||
|
small: "Petit"
|
||||||
|
generateAccessToken: "Genera codi d'accés"
|
||||||
|
permission: "Permisos"
|
||||||
|
enableAll: "Habilita tot"
|
||||||
|
disableAll: "Deshabilita tot"
|
||||||
|
tokenRequested: "Donar accés al compte"
|
||||||
smtpHost: "Amfitrió"
|
smtpHost: "Amfitrió"
|
||||||
smtpUser: "Nom d'usuari"
|
smtpUser: "Nom d'usuari"
|
||||||
smtpPass: "Contrasenya"
|
smtpPass: "Contrasenya"
|
||||||
@@ -389,12 +538,17 @@ clearCache: "Esborra la memòria cau"
|
|||||||
showingPastTimeline: "Estàs veient una línia de temps antiga"
|
showingPastTimeline: "Estàs veient una línia de temps antiga"
|
||||||
info: "Informació"
|
info: "Informació"
|
||||||
user: "Usuaris"
|
user: "Usuaris"
|
||||||
|
administration: "Administració"
|
||||||
|
middle: "Mitjà"
|
||||||
global: "Global"
|
global: "Global"
|
||||||
searchByGoogle: "Cercar"
|
searchByGoogle: "Cercar"
|
||||||
file: "Fitxers"
|
file: "Fitxers"
|
||||||
|
icon: "Icona"
|
||||||
replies: "Respondre"
|
replies: "Respondre"
|
||||||
renotes: "Impulsa"
|
renotes: "Impulsa"
|
||||||
_role:
|
_role:
|
||||||
|
_priority:
|
||||||
|
middle: "Mitjà"
|
||||||
_options:
|
_options:
|
||||||
antennaMax: "Nombre màxim d'antenes"
|
antennaMax: "Nombre màxim d'antenes"
|
||||||
_email:
|
_email:
|
||||||
@@ -403,9 +557,11 @@ _email:
|
|||||||
_instanceMute:
|
_instanceMute:
|
||||||
instanceMuteDescription: "Silencia tots els impulsos dels servidors seleccionats, també els usuaris que responen a altres d'un servidor silenciat."
|
instanceMuteDescription: "Silencia tots els impulsos dels servidors seleccionats, també els usuaris que responen a altres d'un servidor silenciat."
|
||||||
_theme:
|
_theme:
|
||||||
|
description: "Descripció"
|
||||||
keys:
|
keys:
|
||||||
mention: "Menció"
|
mention: "Menció"
|
||||||
renote: "Renotar"
|
renote: "Renotar"
|
||||||
|
divider: "Divisor"
|
||||||
_sfx:
|
_sfx:
|
||||||
note: "Notes"
|
note: "Notes"
|
||||||
notification: "Notificacions"
|
notification: "Notificacions"
|
||||||
@@ -447,6 +603,8 @@ _timelines:
|
|||||||
local: "Local"
|
local: "Local"
|
||||||
social: "Social"
|
social: "Social"
|
||||||
global: "Global"
|
global: "Global"
|
||||||
|
_play:
|
||||||
|
summary: "Descripció"
|
||||||
_pages:
|
_pages:
|
||||||
contents: "Contingut"
|
contents: "Contingut"
|
||||||
blocks:
|
blocks:
|
||||||
|
|||||||
@@ -121,6 +121,8 @@ sensitive: "Sensitive"
|
|||||||
add: "Add"
|
add: "Add"
|
||||||
reaction: "Reactions"
|
reaction: "Reactions"
|
||||||
reactions: "Reactions"
|
reactions: "Reactions"
|
||||||
|
emojiPicker: "Emoji picker"
|
||||||
|
emojiPickerDisplay: "Emoji picker display"
|
||||||
reactionSettingDescription2: "Drag to reorder, click to delete, press \"+\" to add."
|
reactionSettingDescription2: "Drag to reorder, click to delete, press \"+\" to add."
|
||||||
rememberNoteVisibility: "Remember note visibility settings"
|
rememberNoteVisibility: "Remember note visibility settings"
|
||||||
attachCancel: "Remove attachment"
|
attachCancel: "Remove attachment"
|
||||||
@@ -260,6 +262,7 @@ removed: "Successfully deleted"
|
|||||||
removeAreYouSure: "Are you sure that you want to remove \"{x}\"?"
|
removeAreYouSure: "Are you sure that you want to remove \"{x}\"?"
|
||||||
deleteAreYouSure: "Are you sure that you want to delete \"{x}\"?"
|
deleteAreYouSure: "Are you sure that you want to delete \"{x}\"?"
|
||||||
resetAreYouSure: "Really reset?"
|
resetAreYouSure: "Really reset?"
|
||||||
|
areYouSure: "Are you sure?"
|
||||||
saved: "Saved"
|
saved: "Saved"
|
||||||
messaging: "Chat"
|
messaging: "Chat"
|
||||||
upload: "Upload"
|
upload: "Upload"
|
||||||
@@ -543,7 +546,7 @@ showInPage: "Show in page"
|
|||||||
popout: "Pop-out"
|
popout: "Pop-out"
|
||||||
volume: "Volume"
|
volume: "Volume"
|
||||||
masterVolume: "Master volume"
|
masterVolume: "Master volume"
|
||||||
notUseSound: "No sounds output."
|
notUseSound: "Disable sound"
|
||||||
useSoundOnlyWhenActive: "Output sounds only if Misskey is active."
|
useSoundOnlyWhenActive: "Output sounds only if Misskey is active."
|
||||||
details: "Details"
|
details: "Details"
|
||||||
chooseEmoji: "Select an emoji"
|
chooseEmoji: "Select an emoji"
|
||||||
@@ -874,6 +877,8 @@ makeReactionsPublicDescription: "This will make the list of all your past reacti
|
|||||||
classic: "Classic"
|
classic: "Classic"
|
||||||
muteThread: "Mute thread"
|
muteThread: "Mute thread"
|
||||||
unmuteThread: "Unmute thread"
|
unmuteThread: "Unmute thread"
|
||||||
|
followingVisibility: "Visibility of follows"
|
||||||
|
followersVisibility: "Visibility of followers"
|
||||||
continueThread: "View thread continuation"
|
continueThread: "View thread continuation"
|
||||||
deleteAccountConfirm: "This will irreversibly delete your account. Proceed?"
|
deleteAccountConfirm: "This will irreversibly delete your account. Proceed?"
|
||||||
incorrectPassword: "Incorrect password."
|
incorrectPassword: "Incorrect password."
|
||||||
@@ -1167,6 +1172,7 @@ cwNotationRequired: "If \"Hide content\" is enabled, a description must be provi
|
|||||||
doReaction: "Add reaction"
|
doReaction: "Add reaction"
|
||||||
code: "Code"
|
code: "Code"
|
||||||
reloadRequiredToApplySettings: "Reloading is required to apply the settings."
|
reloadRequiredToApplySettings: "Reloading is required to apply the settings."
|
||||||
|
decorate: "Decorate"
|
||||||
_announcement:
|
_announcement:
|
||||||
forExistingUsers: "Existing users only"
|
forExistingUsers: "Existing users only"
|
||||||
forExistingUsersDescription: "This announcement will only be shown to users existing at the point of publishment if enabled. If disabled, those newly signing up after it has been posted will also see it."
|
forExistingUsersDescription: "This announcement will only be shown to users existing at the point of publishment if enabled. If disabled, those newly signing up after it has been posted will also see it."
|
||||||
@@ -1256,7 +1262,7 @@ _initialTutorial:
|
|||||||
sensitiveSucceeded: "When attaching files, please set sensitivities in accordance with the server guidelines."
|
sensitiveSucceeded: "When attaching files, please set sensitivities in accordance with the server guidelines."
|
||||||
doItToContinue: "Mark the attachment file as sensitive to proceed."
|
doItToContinue: "Mark the attachment file as sensitive to proceed."
|
||||||
_done:
|
_done:
|
||||||
title: "The tutorial is complete! 🎉"
|
title: "You've completed the tutorial! 🎉"
|
||||||
description: "The functions introduced here are just a small part. For a more detailed understanding of using Misskey, please refer to {link}."
|
description: "The functions introduced here are just a small part. For a more detailed understanding of using Misskey, please refer to {link}."
|
||||||
_timelineDescription:
|
_timelineDescription:
|
||||||
home: "In the Home timeline, you can see notes from accounts you follow."
|
home: "In the Home timeline, you can see notes from accounts you follow."
|
||||||
@@ -1971,6 +1977,7 @@ _widgets:
|
|||||||
_userList:
|
_userList:
|
||||||
chooseList: "Select a list"
|
chooseList: "Select a list"
|
||||||
clicker: "Clicker"
|
clicker: "Clicker"
|
||||||
|
birthdayFollowings: "Users who celebrate their birthday today"
|
||||||
_cw:
|
_cw:
|
||||||
hide: "Hide"
|
hide: "Hide"
|
||||||
show: "Show content"
|
show: "Show content"
|
||||||
@@ -2154,6 +2161,7 @@ _notification:
|
|||||||
pollEnded: "Poll results have become available"
|
pollEnded: "Poll results have become available"
|
||||||
newNote: "New note"
|
newNote: "New note"
|
||||||
unreadAntennaNote: "Antenna {name}"
|
unreadAntennaNote: "Antenna {name}"
|
||||||
|
roleAssigned: "Role given"
|
||||||
emptyPushNotificationMessage: "Push notifications have been updated"
|
emptyPushNotificationMessage: "Push notifications have been updated"
|
||||||
achievementEarned: "Achievement unlocked"
|
achievementEarned: "Achievement unlocked"
|
||||||
testNotification: "Test notification"
|
testNotification: "Test notification"
|
||||||
@@ -2175,6 +2183,7 @@ _notification:
|
|||||||
pollEnded: "Polls ending"
|
pollEnded: "Polls ending"
|
||||||
receiveFollowRequest: "Received follow requests"
|
receiveFollowRequest: "Received follow requests"
|
||||||
followRequestAccepted: "Accepted follow requests"
|
followRequestAccepted: "Accepted follow requests"
|
||||||
|
roleAssigned: "Role given"
|
||||||
achievementEarned: "Achievement unlocked"
|
achievementEarned: "Achievement unlocked"
|
||||||
app: "Notifications from linked apps"
|
app: "Notifications from linked apps"
|
||||||
_actions:
|
_actions:
|
||||||
@@ -2326,6 +2335,8 @@ _dataSaver:
|
|||||||
_avatar:
|
_avatar:
|
||||||
title: "Avatar image"
|
title: "Avatar image"
|
||||||
description: "Stop avatar image animation. Animated images can be larger in file size than normal images, potentially leading to further reductions in data traffic."
|
description: "Stop avatar image animation. Animated images can be larger in file size than normal images, potentially leading to further reductions in data traffic."
|
||||||
|
_urlPreview:
|
||||||
|
title: "URL preview thumbnails"
|
||||||
_code:
|
_code:
|
||||||
title: "Code highlighting"
|
title: "Code highlighting"
|
||||||
description: "If code highlighting notations are used in MFM, etc., they will not load until tapped. Syntax highlighting requires downloading the highlight definition files for each programming language. Therefore, disabling the automatic loading of these files is expected to reduce the amount of communication data."
|
description: "If code highlighting notations are used in MFM, etc., they will not load until tapped. Syntax highlighting requires downloading the highlight definition files for each programming language. Therefore, disabling the automatic loading of these files is expected to reduce the amount of communication data."
|
||||||
|
|||||||
@@ -121,6 +121,12 @@ sensitive: "Marcado como sensible"
|
|||||||
add: "Agregar"
|
add: "Agregar"
|
||||||
reaction: "Reacción"
|
reaction: "Reacción"
|
||||||
reactions: "Reacción"
|
reactions: "Reacción"
|
||||||
|
emojiPicker: "Selector de emojis"
|
||||||
|
pinnedEmojisForReactionSettingDescription: "Puedes seleccionar reacciones para fijarlos en el selector"
|
||||||
|
pinnedEmojisSettingDescription: "Puedes seleccionar emojis para fijarlos en el selector"
|
||||||
|
emojiPickerDisplay: "Mostrar el selector de emojis"
|
||||||
|
overwriteFromPinnedEmojisForReaction: "Sobreescribir las reacciones fijadas"
|
||||||
|
overwriteFromPinnedEmojis: "Sobreescribir los emojis fijados"
|
||||||
reactionSettingDescription2: "Arrastre para reordenar, click para borrar, apriete la tecla + para añadir."
|
reactionSettingDescription2: "Arrastre para reordenar, click para borrar, apriete la tecla + para añadir."
|
||||||
rememberNoteVisibility: "Recordar visibilidad"
|
rememberNoteVisibility: "Recordar visibilidad"
|
||||||
attachCancel: "Quitar adjunto"
|
attachCancel: "Quitar adjunto"
|
||||||
@@ -260,6 +266,7 @@ removed: "Borrado"
|
|||||||
removeAreYouSure: "¿Desea borrar \"{x}\"?"
|
removeAreYouSure: "¿Desea borrar \"{x}\"?"
|
||||||
deleteAreYouSure: "¿Desea borrar \"{x}\"?"
|
deleteAreYouSure: "¿Desea borrar \"{x}\"?"
|
||||||
resetAreYouSure: "¿Desea reestablecer?"
|
resetAreYouSure: "¿Desea reestablecer?"
|
||||||
|
areYouSure: "¿Estás conforme?"
|
||||||
saved: "Guardado"
|
saved: "Guardado"
|
||||||
messaging: "Chat"
|
messaging: "Chat"
|
||||||
upload: "Subir"
|
upload: "Subir"
|
||||||
@@ -640,6 +647,7 @@ smtpSecure: "Usar SSL/TLS implícito en la conexión SMTP"
|
|||||||
smtpSecureInfo: "Apagar cuando se use STARTTLS"
|
smtpSecureInfo: "Apagar cuando se use STARTTLS"
|
||||||
testEmail: "Prueba de envío"
|
testEmail: "Prueba de envío"
|
||||||
wordMute: "Silenciar palabras"
|
wordMute: "Silenciar palabras"
|
||||||
|
hardWordMute: "Filtro de palabra fuerte"
|
||||||
regexpError: "Error de la expresión regular"
|
regexpError: "Error de la expresión regular"
|
||||||
regexpErrorDescription: "Ocurrió un error en la expresión regular en la linea {line} de las palabras muteadas {tab}"
|
regexpErrorDescription: "Ocurrió un error en la expresión regular en la linea {line} de las palabras muteadas {tab}"
|
||||||
instanceMute: "Instancias silenciadas"
|
instanceMute: "Instancias silenciadas"
|
||||||
@@ -873,6 +881,8 @@ makeReactionsPublicDescription: "Todas las reacciones que hayas hecho serán pú
|
|||||||
classic: "Clásico"
|
classic: "Clásico"
|
||||||
muteThread: "Silenciar hilo"
|
muteThread: "Silenciar hilo"
|
||||||
unmuteThread: "Mostrar hilo"
|
unmuteThread: "Mostrar hilo"
|
||||||
|
followingVisibility: "Visibilidad de seguidos"
|
||||||
|
followersVisibility: "Visibilidad de seguidores"
|
||||||
continueThread: "Ver la continuación del hilo"
|
continueThread: "Ver la continuación del hilo"
|
||||||
deleteAccountConfirm: "La cuenta será borrada. ¿Está seguro?"
|
deleteAccountConfirm: "La cuenta será borrada. ¿Está seguro?"
|
||||||
incorrectPassword: "La contraseña es incorrecta"
|
incorrectPassword: "La contraseña es incorrecta"
|
||||||
@@ -1024,6 +1034,7 @@ sensitiveWords: "Palabras sensibles"
|
|||||||
sensitiveWordsDescription: "La visibilidad de todas las notas que contienen cualquiera de las palabras configuradas serán puestas en \"Inicio\" automáticamente. Puedes enumerás varias separándolas con saltos de línea"
|
sensitiveWordsDescription: "La visibilidad de todas las notas que contienen cualquiera de las palabras configuradas serán puestas en \"Inicio\" automáticamente. Puedes enumerás varias separándolas con saltos de línea"
|
||||||
sensitiveWordsDescription2: "Si se usan espacios se crearán expresiones AND y las palabras subsecuentes con barras inclinadas se convertirán en expresiones regulares."
|
sensitiveWordsDescription2: "Si se usan espacios se crearán expresiones AND y las palabras subsecuentes con barras inclinadas se convertirán en expresiones regulares."
|
||||||
hiddenTags: "Hashtags ocultos"
|
hiddenTags: "Hashtags ocultos"
|
||||||
|
hiddenTagsDescription: "Selecciona las etiquetas que no se mostrarán en tendencias. Una etiqueta por línea."
|
||||||
notesSearchNotAvailable: "No se puede buscar una nota"
|
notesSearchNotAvailable: "No se puede buscar una nota"
|
||||||
license: "Licencia"
|
license: "Licencia"
|
||||||
unfavoriteConfirm: "¿Desea quitar de favoritos?"
|
unfavoriteConfirm: "¿Desea quitar de favoritos?"
|
||||||
@@ -1152,6 +1163,7 @@ tosAndPrivacyPolicy: "Condiciones de Uso y Política de Privacidad"
|
|||||||
avatarDecorations: "Decoraciones de avatar"
|
avatarDecorations: "Decoraciones de avatar"
|
||||||
attach: "Acoplar"
|
attach: "Acoplar"
|
||||||
detach: "Quitar"
|
detach: "Quitar"
|
||||||
|
detachAll: "Quitar todo"
|
||||||
angle: "Ángulo"
|
angle: "Ángulo"
|
||||||
flip: "Echar de un capirotazo"
|
flip: "Echar de un capirotazo"
|
||||||
showAvatarDecorations: "Mostrar decoraciones de avatar"
|
showAvatarDecorations: "Mostrar decoraciones de avatar"
|
||||||
@@ -1165,6 +1177,10 @@ cwNotationRequired: "Si se ha activado \"ocultar contenido\", es necesario propo
|
|||||||
doReaction: "Añadir reacción"
|
doReaction: "Añadir reacción"
|
||||||
code: "Código"
|
code: "Código"
|
||||||
reloadRequiredToApplySettings: "Es necesario recargar para que se aplique la configuración."
|
reloadRequiredToApplySettings: "Es necesario recargar para que se aplique la configuración."
|
||||||
|
remainingN: "Faltan: {n}"
|
||||||
|
overwriteContentConfirm: "¿Quieres sustituir todo el contenido actual?"
|
||||||
|
seasonalScreenEffect: "Efectos de pantalla asociados a estaciones"
|
||||||
|
decorate: "Decorar"
|
||||||
_announcement:
|
_announcement:
|
||||||
forExistingUsers: "Solo para usuarios registrados"
|
forExistingUsers: "Solo para usuarios registrados"
|
||||||
forExistingUsersDescription: "Este anuncio solo se mostrará a aquellos usuarios registrados en el momento de su publicación. Si se deshabilita esta opción, aquellos usuarios que se registren tras su publicación también lo verán."
|
forExistingUsersDescription: "Este anuncio solo se mostrará a aquellos usuarios registrados en el momento de su publicación. Si se deshabilita esta opción, aquellos usuarios que se registren tras su publicación también lo verán."
|
||||||
@@ -1222,6 +1238,45 @@ _initialTutorial:
|
|||||||
home: "Puedes ver los posts de las cuentas que sigues."
|
home: "Puedes ver los posts de las cuentas que sigues."
|
||||||
local: "Puedes ver los posts de todos los usuarios de este servidor."
|
local: "Puedes ver los posts de todos los usuarios de este servidor."
|
||||||
social: "Se ven los posts de la línea de tiempo de inicio junto con los de la línea de tiempo local."
|
social: "Se ven los posts de la línea de tiempo de inicio junto con los de la línea de tiempo local."
|
||||||
|
global: "Puedes ver notas de todos los servidores conectados."
|
||||||
|
description2: "Puedes cambiar la línea de tiempo en la parte superior de la pantalla cuando quieras."
|
||||||
|
description3: "Además, hay listas de líneas de tiempo y listas de canales. Para más detalle, por favor visita este enlace: {link}"
|
||||||
|
_postNote:
|
||||||
|
title: "Ajustes de publicación de nota"
|
||||||
|
description1: "Cuando publicas una nota en Misskey, hay varias opciones disponibles. El formulario tiene este aspecto."
|
||||||
|
_visibility:
|
||||||
|
description: "Puedes limitar quién puede ver tu nota."
|
||||||
|
public: "Tu nota será visible para todos los usuarios."
|
||||||
|
home: "Publicar solo en la línea de tiempo de Inicio. La nota se verá en tu perfil, la verán tus seguidores y también cuando sea renotada."
|
||||||
|
followers: "Visible solo para seguidores. Sólo tus seguidores podrán ver la nota, y no podrá ser renotada por otras personas."
|
||||||
|
direct: "Visible sólo para usuarios específicos, y el destinatario será notificado. Puede usarse como alternativa a la mensajería directa."
|
||||||
|
doNotSendConfidencialOnDirect1: "¡Ten cuidado cuando vayas a enviar información sensible!"
|
||||||
|
doNotSendConfidencialOnDirect2: "Los administradores del servidor pueden leer lo que escribes. Ten cuidado cuando envíes información sensible en notas directas en servidores no confiables."
|
||||||
|
localOnly: "Publicando con esta opción seleccionada, la nota no se federará hacia otros servidores. Los usuarios de otros servidores no podrán ver estas notas directamente, sin importar los ajustes seleccionados más arriba."
|
||||||
|
_cw:
|
||||||
|
title: "Alerta de contenido (CW)"
|
||||||
|
description: "En lugar de mostrarse el contenido de la nota, se mostrará lo que escribas en el campo \"comentarios\". Pulsando en \"leer más\" desplegará el contenido de la nota."
|
||||||
|
_exampleNote:
|
||||||
|
cw: "¡Esto te hará tener hambre!"
|
||||||
|
note: "Acabo de comerme un donut de chocolate glaseado 🍩😋"
|
||||||
|
useCases: "Esto se usa cuando las normas del servidor lo requieren, o para ocultar spoilers o contenido sensible."
|
||||||
|
_howToMakeAttachmentsSensitive:
|
||||||
|
title: "¿Cómo puedo marcar adjuntos como contenido sensible?"
|
||||||
|
description: "Cuando las normas del servidor lo requieran, o el contenido lo requiera, marca la opción de \"contenido sensible\" para el adjunto."
|
||||||
|
tryThisFile: "¡Prueba a marcar la imagen adjunta como contenido sensible!"
|
||||||
|
_exampleNote:
|
||||||
|
note: "Ups, la he liado al abrir la tapa del natto..."
|
||||||
|
method: "Para marcar un adjunto como sensible, haz clic en la miniatura, abre el menú, y haz clic en \"Marcar como sensible\"."
|
||||||
|
sensitiveSucceeded: "Cuando adjuntes archivos, por favor, ten en cuenta las normas del servidor para marcarlos como contenido sensible."
|
||||||
|
doItToContinue: "Marca el archivo adjunto como sensible para continuar."
|
||||||
|
_done:
|
||||||
|
title: "¡Has completado el tutorial! 🎉"
|
||||||
|
description: "Las funciones que mostramos aquí son sólo una pequeña parte. Para más detalles sobre el funcionamiento de Misskey, pulsa en este enlace: {link}"
|
||||||
|
_timelineDescription:
|
||||||
|
home: "En la línea de tiempo de Inicio puedes ver las notas de las cuentas a las que sigues."
|
||||||
|
local: "En la línea de tiempo Local puedes ver las notas de todos los usuarios del servidor."
|
||||||
|
social: "En la línea de tiempo Social verás las notas de Inicio y Local a la vez."
|
||||||
|
global: "En la línea de tiempo Global verás las notas de todos los servidores conectados."
|
||||||
_serverRules:
|
_serverRules:
|
||||||
description: "Un conjunto de reglas que serán mostradas antes del registro. Configurar un sumario de términos de servicio es recomendado."
|
description: "Un conjunto de reglas que serán mostradas antes del registro. Configurar un sumario de términos de servicio es recomendado."
|
||||||
_serverSettings:
|
_serverSettings:
|
||||||
@@ -1233,6 +1288,9 @@ _serverSettings:
|
|||||||
manifestJsonOverride: "Sobreescribir manifest.json"
|
manifestJsonOverride: "Sobreescribir manifest.json"
|
||||||
shortName: "Nombre corto"
|
shortName: "Nombre corto"
|
||||||
shortNameDescription: "Forma corta del nombre de la instancia que puede mostrarse si el nombre completo es demasiado largo."
|
shortNameDescription: "Forma corta del nombre de la instancia que puede mostrarse si el nombre completo es demasiado largo."
|
||||||
|
fanoutTimelineDescription: "Incrementa el rendimiento de forma significativa cuando se obtienen las líneas de tiempo y reduce la carga en la base de datos. A cambio, el uso de la memoria en Redis incrementará. Considera desactivar esta opción en caso de que tu servidor tenga poca memoria o detectes inestabilidad."
|
||||||
|
fanoutTimelineDbFallback: "Cargar desde la base de datos"
|
||||||
|
fanoutTimelineDbFallbackDescription: "Cuando esta opción está habilitada, la carga de peticiones adicionales de la línea de tiempo se hará desde la base de datos cuando éstas no se encuentren en la caché. Al deshabilitar esta opción se reduce la carga del servidor, pero limita el número de líneas de tiempo que pueden obtenerse."
|
||||||
_accountMigration:
|
_accountMigration:
|
||||||
moveFrom: "Trasladar de otra cuenta a ésta"
|
moveFrom: "Trasladar de otra cuenta a ésta"
|
||||||
moveFromSub: "Crear un alias para otra cuenta."
|
moveFromSub: "Crear un alias para otra cuenta."
|
||||||
@@ -1490,6 +1548,9 @@ _achievements:
|
|||||||
_smashTestNotificationButton:
|
_smashTestNotificationButton:
|
||||||
title: "Sobrecarga de pruebas"
|
title: "Sobrecarga de pruebas"
|
||||||
description: "Envía muchas notificaciones de prueba en un corto espacio de tiempo"
|
description: "Envía muchas notificaciones de prueba en un corto espacio de tiempo"
|
||||||
|
_tutorialCompleted:
|
||||||
|
title: "Diploma del Curso Básico de Misskey"
|
||||||
|
description: "Tutorial completado"
|
||||||
_role:
|
_role:
|
||||||
new: "Crear rol"
|
new: "Crear rol"
|
||||||
edit: "Editar rol"
|
edit: "Editar rol"
|
||||||
@@ -1500,7 +1561,9 @@ _role:
|
|||||||
assignTarget: "Asignar objetivo"
|
assignTarget: "Asignar objetivo"
|
||||||
descriptionOfAssignTarget: "<b>Manual</b> Para cambiar manualmente lo que se incluye en este rol.\n<b>Condicional</b> configura una condición, y los usuarios que cumplan la condición serán incluídos automáticamente."
|
descriptionOfAssignTarget: "<b>Manual</b> Para cambiar manualmente lo que se incluye en este rol.\n<b>Condicional</b> configura una condición, y los usuarios que cumplan la condición serán incluídos automáticamente."
|
||||||
manual: "manual"
|
manual: "manual"
|
||||||
|
manualRoles: "Roles manuales"
|
||||||
conditional: "condicional"
|
conditional: "condicional"
|
||||||
|
conditionalRoles: "Roles condicionales"
|
||||||
condition: "condición"
|
condition: "condición"
|
||||||
isConditionalRole: "Esto es un rol condicional"
|
isConditionalRole: "Esto es un rol condicional"
|
||||||
isPublic: "Publicar rol"
|
isPublic: "Publicar rol"
|
||||||
@@ -1549,6 +1612,7 @@ _role:
|
|||||||
canHideAds: "Puede ocultar anuncios"
|
canHideAds: "Puede ocultar anuncios"
|
||||||
canSearchNotes: "Uso de la búsqueda de notas"
|
canSearchNotes: "Uso de la búsqueda de notas"
|
||||||
canUseTranslator: "Uso de traductor"
|
canUseTranslator: "Uso de traductor"
|
||||||
|
avatarDecorationLimit: "Número máximo de decoraciones de avatar"
|
||||||
_condition:
|
_condition:
|
||||||
isLocal: "Usuario local"
|
isLocal: "Usuario local"
|
||||||
isRemote: "Usuario remoto"
|
isRemote: "Usuario remoto"
|
||||||
@@ -1577,6 +1641,7 @@ _emailUnavailable:
|
|||||||
disposable: "No es un correo reutilizable"
|
disposable: "No es un correo reutilizable"
|
||||||
mx: "Servidor de correo inválido"
|
mx: "Servidor de correo inválido"
|
||||||
smtp: "Servidor de correo no disponible"
|
smtp: "Servidor de correo no disponible"
|
||||||
|
banned: "Email no disponible"
|
||||||
_ffVisibility:
|
_ffVisibility:
|
||||||
public: "Publicar"
|
public: "Publicar"
|
||||||
followers: "Visible solo para seguidores"
|
followers: "Visible solo para seguidores"
|
||||||
@@ -1653,6 +1718,7 @@ _aboutMisskey:
|
|||||||
donate: "Donar a Misskey"
|
donate: "Donar a Misskey"
|
||||||
morePatrons: "Muchas más personas nos apoyan. Muchas gracias🥰"
|
morePatrons: "Muchas más personas nos apoyan. Muchas gracias🥰"
|
||||||
patrons: "Patrocinadores"
|
patrons: "Patrocinadores"
|
||||||
|
projectMembers: "Miembros del proyecto"
|
||||||
_displayOfSensitiveMedia:
|
_displayOfSensitiveMedia:
|
||||||
respect: "Esconder medios marcados como sensibles"
|
respect: "Esconder medios marcados como sensibles"
|
||||||
ignore: "Mostrar medios marcados como sensibles"
|
ignore: "Mostrar medios marcados como sensibles"
|
||||||
@@ -1677,6 +1743,7 @@ _channel:
|
|||||||
notesCount: "{n} notas"
|
notesCount: "{n} notas"
|
||||||
nameAndDescription: "Nombre y descripción"
|
nameAndDescription: "Nombre y descripción"
|
||||||
nameOnly: "Sólo nombre"
|
nameOnly: "Sólo nombre"
|
||||||
|
allowRenoteToExternal: "Permitir renotas y menciones fuera del canal"
|
||||||
_menuDisplay:
|
_menuDisplay:
|
||||||
sideFull: "Horizontal"
|
sideFull: "Horizontal"
|
||||||
sideIcon: "Horizontal (ícono)"
|
sideIcon: "Horizontal (ícono)"
|
||||||
@@ -1768,6 +1835,14 @@ _sfx:
|
|||||||
notification: "Notificaciones"
|
notification: "Notificaciones"
|
||||||
antenna: "Antena receptora"
|
antenna: "Antena receptora"
|
||||||
channel: "Notificaciones del canal"
|
channel: "Notificaciones del canal"
|
||||||
|
reaction: "Al seleccionar una reacción"
|
||||||
|
_soundSettings:
|
||||||
|
driveFile: "Usar un archivo de audio en Drive"
|
||||||
|
driveFileWarn: "Selecciona un archivo de audio en Drive."
|
||||||
|
driveFileTypeWarn: "Este archivo es incompatible"
|
||||||
|
driveFileTypeWarnDescription: "Selecciona un archivo de audio"
|
||||||
|
driveFileDurationWarn: "La duración del audio es demasiado larga."
|
||||||
|
driveFileDurationWarnDescription: "Usar un audio de larga duración puede llegar a molestar mientras usas Misskey. ¿Quieres continuar?"
|
||||||
_ago:
|
_ago:
|
||||||
future: "Futuro"
|
future: "Futuro"
|
||||||
justNow: "Justo ahora"
|
justNow: "Justo ahora"
|
||||||
@@ -1780,6 +1855,12 @@ _ago:
|
|||||||
yearsAgo: "Hace {n} años"
|
yearsAgo: "Hace {n} años"
|
||||||
invalid: "No hay nada que ver aqui"
|
invalid: "No hay nada que ver aqui"
|
||||||
_timeIn:
|
_timeIn:
|
||||||
|
seconds: "En {n} segundos"
|
||||||
|
minutes: "En {n}m"
|
||||||
|
hours: "En {n}h"
|
||||||
|
days: "En {n}d"
|
||||||
|
weeks: "En {n}sem."
|
||||||
|
months: "En {n}M"
|
||||||
years: "En {n} años"
|
years: "En {n} años"
|
||||||
_time:
|
_time:
|
||||||
second: "Segundos"
|
second: "Segundos"
|
||||||
@@ -1906,6 +1987,7 @@ _widgets:
|
|||||||
_userList:
|
_userList:
|
||||||
chooseList: "Seleccione una lista"
|
chooseList: "Seleccione una lista"
|
||||||
clicker: "Cliqueador"
|
clicker: "Cliqueador"
|
||||||
|
birthdayFollowings: "Hoy cumplen años"
|
||||||
_cw:
|
_cw:
|
||||||
hide: "Ocultar"
|
hide: "Ocultar"
|
||||||
show: "Ver más"
|
show: "Ver más"
|
||||||
@@ -1968,6 +2050,7 @@ _profile:
|
|||||||
changeAvatar: "Cambiar avatar"
|
changeAvatar: "Cambiar avatar"
|
||||||
changeBanner: "Cambiar banner"
|
changeBanner: "Cambiar banner"
|
||||||
verifiedLinkDescription: "Introduciendo una URL que contiene un enlace a tu perfil, se puede mostrar un icono de verificación de propiedad al lado del campo."
|
verifiedLinkDescription: "Introduciendo una URL que contiene un enlace a tu perfil, se puede mostrar un icono de verificación de propiedad al lado del campo."
|
||||||
|
avatarDecorationMax: "Puedes añadir un máximo de {max} decoraciones de avatar."
|
||||||
_exportOrImport:
|
_exportOrImport:
|
||||||
allNotes: "Todas las notas"
|
allNotes: "Todas las notas"
|
||||||
favoritedNotes: "Notas favoritas"
|
favoritedNotes: "Notas favoritas"
|
||||||
@@ -2089,6 +2172,7 @@ _notification:
|
|||||||
pollEnded: "Estan disponibles los resultados de la encuesta"
|
pollEnded: "Estan disponibles los resultados de la encuesta"
|
||||||
newNote: "Nueva nota"
|
newNote: "Nueva nota"
|
||||||
unreadAntennaNote: "Antena {name}"
|
unreadAntennaNote: "Antena {name}"
|
||||||
|
roleAssigned: "Rol asignado"
|
||||||
emptyPushNotificationMessage: "Se han actualizado las notificaciones push"
|
emptyPushNotificationMessage: "Se han actualizado las notificaciones push"
|
||||||
achievementEarned: "Logro desbloqueado"
|
achievementEarned: "Logro desbloqueado"
|
||||||
testNotification: "Notificación de prueba"
|
testNotification: "Notificación de prueba"
|
||||||
@@ -2110,6 +2194,7 @@ _notification:
|
|||||||
pollEnded: "La encuesta terminó"
|
pollEnded: "La encuesta terminó"
|
||||||
receiveFollowRequest: "Recibió una solicitud de seguimiento"
|
receiveFollowRequest: "Recibió una solicitud de seguimiento"
|
||||||
followRequestAccepted: "El seguimiento fue aceptado"
|
followRequestAccepted: "El seguimiento fue aceptado"
|
||||||
|
roleAssigned: "Rol asignado"
|
||||||
achievementEarned: "Logro desbloqueado"
|
achievementEarned: "Logro desbloqueado"
|
||||||
app: "Notificaciones desde aplicaciones"
|
app: "Notificaciones desde aplicaciones"
|
||||||
_actions:
|
_actions:
|
||||||
@@ -2255,3 +2340,16 @@ _externalResourceInstaller:
|
|||||||
_themeInstallFailed:
|
_themeInstallFailed:
|
||||||
title: "Instalación de tema fallida"
|
title: "Instalación de tema fallida"
|
||||||
description: "Ha ocurrido un problema al instalar el tema. Por favor, inténtalo de nuevo. Se pueden ver más detalles del error en la consola de Javascript."
|
description: "Ha ocurrido un problema al instalar el tema. Por favor, inténtalo de nuevo. Se pueden ver más detalles del error en la consola de Javascript."
|
||||||
|
_dataSaver:
|
||||||
|
_media:
|
||||||
|
title: "Cargando Multimedia"
|
||||||
|
description: "Desactiva la carga automática de imágenes y vídeos. Tendrás que tocar en las imágenes y vídeos ocultos para cargarlos."
|
||||||
|
_avatar:
|
||||||
|
title: "Avatares animados"
|
||||||
|
description: "Desactiva la animación de los avatares. Las imágenes animadas pueden llegar a ser de mayor tamaño que las normales, por lo que al desactivarlas puedes reducir el consumo de datos."
|
||||||
|
_urlPreview:
|
||||||
|
title: "Vista previa de URLs"
|
||||||
|
description: "Desactiva la carga de vistas previas de las URLs."
|
||||||
|
_code:
|
||||||
|
title: "Resaltar código"
|
||||||
|
description: "Si se usa resaltado de código en MFM, etc., no se cargará hasta pulsar en ello. El resaltado de sintaxis requiere la descarga de archivos de definición para cada lenguaje de programación. Debido a esto, al deshabilitar la carga automática de estos archivos reducirás el consumo de datos."
|
||||||
|
|||||||
@@ -162,6 +162,7 @@ addEmoji: "Ajouter un émoji"
|
|||||||
settingGuide: "Configuration proposée"
|
settingGuide: "Configuration proposée"
|
||||||
cacheRemoteFiles: "Mise en cache des fichiers distants"
|
cacheRemoteFiles: "Mise en cache des fichiers distants"
|
||||||
cacheRemoteFilesDescription: "Lorsque cette option est désactivée, les fichiers distants sont chargés directement depuis l’instance distante. La désactiver diminuera certes l’utilisation de l’espace de stockage local mais augmentera le trafic réseau puisque les miniatures ne seront plus générées."
|
cacheRemoteFilesDescription: "Lorsque cette option est désactivée, les fichiers distants sont chargés directement depuis l’instance distante. La désactiver diminuera certes l’utilisation de l’espace de stockage local mais augmentera le trafic réseau puisque les miniatures ne seront plus générées."
|
||||||
|
youCanCleanRemoteFilesCache: "Vous pouvez supprimer tous les caches en cliquant le bouton 🗑️ dans la gestion des fichiers."
|
||||||
cacheRemoteSensitiveFiles: "Mettre en cache les fichiers distants sensibles"
|
cacheRemoteSensitiveFiles: "Mettre en cache les fichiers distants sensibles"
|
||||||
cacheRemoteSensitiveFilesDescription: "Si vous désactivez ce paramètre, les fichiers sensibles distants ne seront pas mis en cache et un lien direct sera utilisé à la place"
|
cacheRemoteSensitiveFilesDescription: "Si vous désactivez ce paramètre, les fichiers sensibles distants ne seront pas mis en cache et un lien direct sera utilisé à la place"
|
||||||
flagAsBot: "Ce compte est un robot"
|
flagAsBot: "Ce compte est un robot"
|
||||||
@@ -726,6 +727,7 @@ lockedAccountInfo: "À moins que vous ne définissiez la visibilité de votre no
|
|||||||
alwaysMarkSensitive: "Marquer les médias comme contenu sensible par défaut"
|
alwaysMarkSensitive: "Marquer les médias comme contenu sensible par défaut"
|
||||||
loadRawImages: "Affichage complet des images jointes au lieu des vignettes"
|
loadRawImages: "Affichage complet des images jointes au lieu des vignettes"
|
||||||
disableShowingAnimatedImages: "Désactiver l'animation des images"
|
disableShowingAnimatedImages: "Désactiver l'animation des images"
|
||||||
|
highlightSensitiveMedia: "Mettre en évidence les médias sensibles"
|
||||||
verificationEmailSent: "Un e-mail de vérification a été envoyé. Veuillez accéder au lien pour compléter la vérification."
|
verificationEmailSent: "Un e-mail de vérification a été envoyé. Veuillez accéder au lien pour compléter la vérification."
|
||||||
notSet: "Non défini"
|
notSet: "Non défini"
|
||||||
emailVerified: "Votre adresse e-mail a été vérifiée."
|
emailVerified: "Votre adresse e-mail a été vérifiée."
|
||||||
@@ -979,6 +981,7 @@ show: "Affichage"
|
|||||||
neverShow: "Ne plus afficher"
|
neverShow: "Ne plus afficher"
|
||||||
remindMeLater: "Peut-être plus tard"
|
remindMeLater: "Peut-être plus tard"
|
||||||
didYouLikeMisskey: "Avez-vous aimé Misskey ?"
|
didYouLikeMisskey: "Avez-vous aimé Misskey ?"
|
||||||
|
pleaseDonate: "Misskey est le logiciel libre utilisé par {host}. Merci de faire un don pour que nous puissions continuer à le développer !"
|
||||||
roles: "Rôles"
|
roles: "Rôles"
|
||||||
role: "Rôles"
|
role: "Rôles"
|
||||||
noRole: "Aucun rôle"
|
noRole: "Aucun rôle"
|
||||||
@@ -991,8 +994,10 @@ manageCustomEmojis: "Gestion des émojis personnalisés"
|
|||||||
manageAvatarDecorations: "Gérer les décorations d'avatar"
|
manageAvatarDecorations: "Gérer les décorations d'avatar"
|
||||||
youCannotCreateAnymore: "Vous avez atteint la limite de création."
|
youCannotCreateAnymore: "Vous avez atteint la limite de création."
|
||||||
cannotPerformTemporary: "Temporairement indisponible"
|
cannotPerformTemporary: "Temporairement indisponible"
|
||||||
|
cannotPerformTemporaryDescription: "Temporairement indisponible puisque le nombre d'opérations dépasse la limite. Veuillez patienter un peu, puis réessayer."
|
||||||
invalidParamError: "Paramètres invalides"
|
invalidParamError: "Paramètres invalides"
|
||||||
permissionDeniedError: "Opération refusée"
|
permissionDeniedError: "Opération refusée"
|
||||||
|
permissionDeniedErrorDescription: "Ce compte n'a pas la permission d'effectuer cette opération."
|
||||||
preset: "Préréglage"
|
preset: "Préréglage"
|
||||||
selectFromPresets: "Sélectionner à partir des préréglages"
|
selectFromPresets: "Sélectionner à partir des préréglages"
|
||||||
achievements: "Accomplissements"
|
achievements: "Accomplissements"
|
||||||
@@ -1021,6 +1026,7 @@ likeOnlyForRemote: "Toutes (mentions j'aime seulement pour les instances distant
|
|||||||
nonSensitiveOnly: "Non sensibles seulement"
|
nonSensitiveOnly: "Non sensibles seulement"
|
||||||
nonSensitiveOnlyForLocalLikeOnlyForRemote: "Non sensibles seulement (mentions j'aime seulement pour les instances distantes)"
|
nonSensitiveOnlyForLocalLikeOnlyForRemote: "Non sensibles seulement (mentions j'aime seulement pour les instances distantes)"
|
||||||
rolesAssignedToMe: "Rôles attribués à moi"
|
rolesAssignedToMe: "Rôles attribués à moi"
|
||||||
|
resetPasswordConfirm: "Souhaitez-vous réinitialiser votre mot de passe ?"
|
||||||
sensitiveWords: "Mots sensibles"
|
sensitiveWords: "Mots sensibles"
|
||||||
hiddenTags: "Hashtags cachés"
|
hiddenTags: "Hashtags cachés"
|
||||||
hiddenTagsDescription: "Les hashtags définis ne s'afficheront pas dans les tendances. Vous pouvez définir plusieurs hashtags en faisant un saut de ligne."
|
hiddenTagsDescription: "Les hashtags définis ne s'afficheront pas dans les tendances. Vous pouvez définir plusieurs hashtags en faisant un saut de ligne."
|
||||||
@@ -1082,6 +1088,7 @@ installed: "Installé"
|
|||||||
branding: "Image de marque"
|
branding: "Image de marque"
|
||||||
expirationDate: "Date d’expiration"
|
expirationDate: "Date d’expiration"
|
||||||
waitingForMailAuth: "En attente de la vérification de l'adresse courriel"
|
waitingForMailAuth: "En attente de la vérification de l'adresse courriel"
|
||||||
|
inviteCodeCreator: "Créateur·rice de ce code d'invitation"
|
||||||
usedAt: "Utilisé le"
|
usedAt: "Utilisé le"
|
||||||
unused: "Non-utilisé"
|
unused: "Non-utilisé"
|
||||||
used: "Utilisé"
|
used: "Utilisé"
|
||||||
@@ -1765,6 +1772,7 @@ _visibility:
|
|||||||
followersDescription: "Publier à vos abonné·e·s uniquement"
|
followersDescription: "Publier à vos abonné·e·s uniquement"
|
||||||
specified: "Direct"
|
specified: "Direct"
|
||||||
specifiedDescription: "Publier uniquement aux utilisateur·rice·s mentionné·e·s"
|
specifiedDescription: "Publier uniquement aux utilisateur·rice·s mentionné·e·s"
|
||||||
|
disableFederation: "Défédérer"
|
||||||
_postForm:
|
_postForm:
|
||||||
replyPlaceholder: "Répondre à cette note ..."
|
replyPlaceholder: "Répondre à cette note ..."
|
||||||
quotePlaceholder: "Citez cette note ..."
|
quotePlaceholder: "Citez cette note ..."
|
||||||
@@ -1899,6 +1907,7 @@ _notification:
|
|||||||
yourFollowRequestAccepted: "Votre demande d’abonnement a été accepté"
|
yourFollowRequestAccepted: "Votre demande d’abonnement a été accepté"
|
||||||
pollEnded: "Les résultats du sondage sont disponibles"
|
pollEnded: "Les résultats du sondage sont disponibles"
|
||||||
unreadAntennaNote: "Antenne {name}"
|
unreadAntennaNote: "Antenne {name}"
|
||||||
|
roleAssigned: "Rôle attribué"
|
||||||
emptyPushNotificationMessage: "Les notifications push ont été mises à jour"
|
emptyPushNotificationMessage: "Les notifications push ont été mises à jour"
|
||||||
achievementEarned: "Accomplissement"
|
achievementEarned: "Accomplissement"
|
||||||
testNotification: "Tester la notification"
|
testNotification: "Tester la notification"
|
||||||
@@ -1916,6 +1925,7 @@ _notification:
|
|||||||
pollEnded: "Sondages se cloturant"
|
pollEnded: "Sondages se cloturant"
|
||||||
receiveFollowRequest: "Demande d'abonnement reçue"
|
receiveFollowRequest: "Demande d'abonnement reçue"
|
||||||
followRequestAccepted: "Demande d'abonnement acceptée"
|
followRequestAccepted: "Demande d'abonnement acceptée"
|
||||||
|
roleAssigned: "Rôle reçu"
|
||||||
achievementEarned: "Accomplissement"
|
achievementEarned: "Accomplissement"
|
||||||
app: "Notifications provenant des apps"
|
app: "Notifications provenant des apps"
|
||||||
_actions:
|
_actions:
|
||||||
|
|||||||
@@ -6,54 +6,171 @@ import ts from 'typescript';
|
|||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url);
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
const __dirname = dirname(__filename);
|
const __dirname = dirname(__filename);
|
||||||
|
const parameterRegExp = /\{(\w+)\}/g;
|
||||||
|
|
||||||
|
function createMemberType(item) {
|
||||||
|
if (typeof item !== 'string') {
|
||||||
|
return ts.factory.createTypeLiteralNode(createMembers(item));
|
||||||
|
}
|
||||||
|
const parameters = Array.from(
|
||||||
|
item.matchAll(parameterRegExp),
|
||||||
|
([, parameter]) => parameter,
|
||||||
|
);
|
||||||
|
if (!parameters.length) {
|
||||||
|
return ts.factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword);
|
||||||
|
}
|
||||||
|
return ts.factory.createTypeReferenceNode(
|
||||||
|
ts.factory.createIdentifier('ParameterizedString'),
|
||||||
|
[
|
||||||
|
ts.factory.createUnionTypeNode(
|
||||||
|
parameters.map((parameter) =>
|
||||||
|
ts.factory.createLiteralTypeNode(
|
||||||
|
ts.factory.createStringLiteral(parameter),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
function createMembers(record) {
|
function createMembers(record) {
|
||||||
return Object.entries(record)
|
return Object.entries(record).map(([k, v]) =>
|
||||||
.map(([k, v]) => ts.factory.createPropertySignature(
|
ts.factory.createPropertySignature(
|
||||||
undefined,
|
undefined,
|
||||||
ts.factory.createStringLiteral(k),
|
ts.factory.createStringLiteral(k),
|
||||||
undefined,
|
undefined,
|
||||||
typeof v === 'string'
|
createMemberType(v),
|
||||||
? ts.factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword)
|
),
|
||||||
: ts.factory.createTypeLiteralNode(createMembers(v)),
|
);
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function generateDTS() {
|
export default function generateDTS() {
|
||||||
const locale = yaml.load(fs.readFileSync(`${__dirname}/ja-JP.yml`, 'utf-8'));
|
const locale = yaml.load(fs.readFileSync(`${__dirname}/ja-JP.yml`, 'utf-8'));
|
||||||
const members = createMembers(locale);
|
const members = createMembers(locale);
|
||||||
const elements = [
|
const elements = [
|
||||||
|
ts.factory.createVariableStatement(
|
||||||
|
[ts.factory.createToken(ts.SyntaxKind.DeclareKeyword)],
|
||||||
|
ts.factory.createVariableDeclarationList(
|
||||||
|
[
|
||||||
|
ts.factory.createVariableDeclaration(
|
||||||
|
ts.factory.createIdentifier('kParameters'),
|
||||||
|
undefined,
|
||||||
|
ts.factory.createTypeOperatorNode(
|
||||||
|
ts.SyntaxKind.UniqueKeyword,
|
||||||
|
ts.factory.createKeywordTypeNode(ts.SyntaxKind.SymbolKeyword),
|
||||||
|
),
|
||||||
|
undefined,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
ts.NodeFlags.Const,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
ts.factory.createInterfaceDeclaration(
|
||||||
|
[ts.factory.createToken(ts.SyntaxKind.ExportKeyword)],
|
||||||
|
ts.factory.createIdentifier('ParameterizedString'),
|
||||||
|
[
|
||||||
|
ts.factory.createTypeParameterDeclaration(
|
||||||
|
undefined,
|
||||||
|
ts.factory.createIdentifier('T'),
|
||||||
|
ts.factory.createTypeReferenceNode(
|
||||||
|
ts.factory.createIdentifier('string'),
|
||||||
|
undefined,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
undefined,
|
||||||
|
[
|
||||||
|
ts.factory.createPropertySignature(
|
||||||
|
undefined,
|
||||||
|
ts.factory.createComputedPropertyName(
|
||||||
|
ts.factory.createIdentifier('kParameters'),
|
||||||
|
),
|
||||||
|
undefined,
|
||||||
|
ts.factory.createTypeReferenceNode(
|
||||||
|
ts.factory.createIdentifier('T'),
|
||||||
|
undefined,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
ts.factory.createInterfaceDeclaration(
|
||||||
|
[ts.factory.createToken(ts.SyntaxKind.ExportKeyword)],
|
||||||
|
ts.factory.createIdentifier('ILocale'),
|
||||||
|
undefined,
|
||||||
|
undefined,
|
||||||
|
[
|
||||||
|
ts.factory.createIndexSignature(
|
||||||
|
undefined,
|
||||||
|
[
|
||||||
|
ts.factory.createParameterDeclaration(
|
||||||
|
undefined,
|
||||||
|
undefined,
|
||||||
|
ts.factory.createIdentifier('_'),
|
||||||
|
undefined,
|
||||||
|
ts.factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword),
|
||||||
|
undefined,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
ts.factory.createUnionTypeNode([
|
||||||
|
ts.factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword),
|
||||||
|
ts.factory.createTypeReferenceNode(
|
||||||
|
ts.factory.createIdentifier('ParameterizedString'),
|
||||||
|
[ts.factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword)],
|
||||||
|
),
|
||||||
|
ts.factory.createTypeReferenceNode(
|
||||||
|
ts.factory.createIdentifier('ILocale'),
|
||||||
|
undefined,
|
||||||
|
),
|
||||||
|
]),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
ts.factory.createInterfaceDeclaration(
|
ts.factory.createInterfaceDeclaration(
|
||||||
[ts.factory.createToken(ts.SyntaxKind.ExportKeyword)],
|
[ts.factory.createToken(ts.SyntaxKind.ExportKeyword)],
|
||||||
ts.factory.createIdentifier('Locale'),
|
ts.factory.createIdentifier('Locale'),
|
||||||
undefined,
|
undefined,
|
||||||
undefined,
|
[
|
||||||
|
ts.factory.createHeritageClause(ts.SyntaxKind.ExtendsKeyword, [
|
||||||
|
ts.factory.createExpressionWithTypeArguments(
|
||||||
|
ts.factory.createIdentifier('ILocale'),
|
||||||
|
undefined,
|
||||||
|
),
|
||||||
|
]),
|
||||||
|
],
|
||||||
members,
|
members,
|
||||||
),
|
),
|
||||||
ts.factory.createVariableStatement(
|
ts.factory.createVariableStatement(
|
||||||
[ts.factory.createToken(ts.SyntaxKind.DeclareKeyword)],
|
[ts.factory.createToken(ts.SyntaxKind.DeclareKeyword)],
|
||||||
ts.factory.createVariableDeclarationList(
|
ts.factory.createVariableDeclarationList(
|
||||||
[ts.factory.createVariableDeclaration(
|
[
|
||||||
ts.factory.createIdentifier('locales'),
|
ts.factory.createVariableDeclaration(
|
||||||
undefined,
|
ts.factory.createIdentifier('locales'),
|
||||||
ts.factory.createTypeLiteralNode([ts.factory.createIndexSignature(
|
|
||||||
undefined,
|
undefined,
|
||||||
[ts.factory.createParameterDeclaration(
|
ts.factory.createTypeLiteralNode([
|
||||||
undefined,
|
ts.factory.createIndexSignature(
|
||||||
undefined,
|
undefined,
|
||||||
ts.factory.createIdentifier('lang'),
|
[
|
||||||
undefined,
|
ts.factory.createParameterDeclaration(
|
||||||
ts.factory.createKeywordTypeNode(ts.SyntaxKind.StringKeyword),
|
undefined,
|
||||||
undefined,
|
undefined,
|
||||||
)],
|
ts.factory.createIdentifier('lang'),
|
||||||
ts.factory.createTypeReferenceNode(
|
undefined,
|
||||||
ts.factory.createIdentifier('Locale'),
|
ts.factory.createKeywordTypeNode(
|
||||||
undefined,
|
ts.SyntaxKind.StringKeyword,
|
||||||
),
|
),
|
||||||
)]),
|
undefined,
|
||||||
undefined,
|
),
|
||||||
)],
|
],
|
||||||
ts.NodeFlags.Const | ts.NodeFlags.Ambient | ts.NodeFlags.ContextFlags,
|
ts.factory.createTypeReferenceNode(
|
||||||
|
ts.factory.createIdentifier('Locale'),
|
||||||
|
undefined,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]),
|
||||||
|
undefined,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
ts.NodeFlags.Const,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
ts.factory.createFunctionDeclaration(
|
ts.factory.createFunctionDeclaration(
|
||||||
@@ -70,16 +187,28 @@ export default function generateDTS() {
|
|||||||
),
|
),
|
||||||
ts.factory.createExportDefault(ts.factory.createIdentifier('locales')),
|
ts.factory.createExportDefault(ts.factory.createIdentifier('locales')),
|
||||||
];
|
];
|
||||||
const printed = ts.createPrinter({
|
const printed = ts
|
||||||
newLine: ts.NewLineKind.LineFeed,
|
.createPrinter({
|
||||||
}).printList(
|
newLine: ts.NewLineKind.LineFeed,
|
||||||
ts.ListFormat.MultiLine,
|
})
|
||||||
ts.factory.createNodeArray(elements),
|
.printList(
|
||||||
ts.createSourceFile('index.d.ts', '', ts.ScriptTarget.ESNext, true, ts.ScriptKind.TS),
|
ts.ListFormat.MultiLine,
|
||||||
);
|
ts.factory.createNodeArray(elements),
|
||||||
|
ts.createSourceFile(
|
||||||
|
'index.d.ts',
|
||||||
|
'',
|
||||||
|
ts.ScriptTarget.ESNext,
|
||||||
|
true,
|
||||||
|
ts.ScriptKind.TS,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
fs.writeFileSync(`${__dirname}/index.d.ts`, `/* eslint-disable */
|
fs.writeFileSync(
|
||||||
|
`${__dirname}/index.d.ts`,
|
||||||
|
`/* eslint-disable */
|
||||||
// This file is generated by locales/generateDTS.js
|
// This file is generated by locales/generateDTS.js
|
||||||
// Do not edit this file directly.
|
// Do not edit this file directly.
|
||||||
${printed}`, 'utf-8');
|
${printed}`,
|
||||||
|
'utf-8',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -121,6 +121,10 @@ sensitive: "Konten sensitif"
|
|||||||
add: "Tambahkan"
|
add: "Tambahkan"
|
||||||
reaction: "Reaksi"
|
reaction: "Reaksi"
|
||||||
reactions: "Reaksi"
|
reactions: "Reaksi"
|
||||||
|
emojiPicker: "Emoji Picker"
|
||||||
|
pinnedEmojisForReactionSettingDescription: "Atur sematan emoji pada reaksi"
|
||||||
|
pinnedEmojisSettingDescription: "Atur sematan emoji pada masukan emoji"
|
||||||
|
emojiPickerDisplay: "Tampilan Emoji Picker"
|
||||||
reactionSettingDescription2: "Geser untuk memindah urutan emoji, klik untuk menghapus, tekan \"+\" untuk menambahkan"
|
reactionSettingDescription2: "Geser untuk memindah urutan emoji, klik untuk menghapus, tekan \"+\" untuk menambahkan"
|
||||||
rememberNoteVisibility: "Ingat pengaturan visibilitas catatan"
|
rememberNoteVisibility: "Ingat pengaturan visibilitas catatan"
|
||||||
attachCancel: "Hapus lampiran"
|
attachCancel: "Hapus lampiran"
|
||||||
@@ -641,6 +645,7 @@ smtpSecure: "Gunakan SSL/TLS implisit untuk koneksi SMTP"
|
|||||||
smtpSecureInfo: "Matikan ini ketika menggunakan STARTTLS"
|
smtpSecureInfo: "Matikan ini ketika menggunakan STARTTLS"
|
||||||
testEmail: "Tes pengiriman surel"
|
testEmail: "Tes pengiriman surel"
|
||||||
wordMute: "Bisukan kata"
|
wordMute: "Bisukan kata"
|
||||||
|
hardWordMute: "Pembisuan kata keras"
|
||||||
regexpError: "Kesalahan ekspresi reguler"
|
regexpError: "Kesalahan ekspresi reguler"
|
||||||
regexpErrorDescription: "Galat terjadi pada baris {line} ekspresi reguler dari {tab} kata yang dibisukan:"
|
regexpErrorDescription: "Galat terjadi pada baris {line} ekspresi reguler dari {tab} kata yang dibisukan:"
|
||||||
instanceMute: "Bisukan instansi"
|
instanceMute: "Bisukan instansi"
|
||||||
@@ -1154,6 +1159,7 @@ tosAndPrivacyPolicy: "Syarat dan Ketentuan serta Kebijakan Privasi"
|
|||||||
avatarDecorations: "Dekorasi avatar"
|
avatarDecorations: "Dekorasi avatar"
|
||||||
attach: "Lampirkan"
|
attach: "Lampirkan"
|
||||||
detach: "Hapus"
|
detach: "Hapus"
|
||||||
|
detachAll: "Lepas Semua"
|
||||||
angle: "Sudut"
|
angle: "Sudut"
|
||||||
flip: "Balik"
|
flip: "Balik"
|
||||||
showAvatarDecorations: "Tampilkan dekorasi avatar"
|
showAvatarDecorations: "Tampilkan dekorasi avatar"
|
||||||
@@ -1168,6 +1174,7 @@ doReaction: "Tambahkan reaksi"
|
|||||||
code: "Kode"
|
code: "Kode"
|
||||||
reloadRequiredToApplySettings: "Muat ulang diperlukan untuk menerapkan pengaturan."
|
reloadRequiredToApplySettings: "Muat ulang diperlukan untuk menerapkan pengaturan."
|
||||||
remainingN: "Sisa : {n}"
|
remainingN: "Sisa : {n}"
|
||||||
|
decorate: "Dekor"
|
||||||
_announcement:
|
_announcement:
|
||||||
forExistingUsers: "Hanya pengguna yang telah ada"
|
forExistingUsers: "Hanya pengguna yang telah ada"
|
||||||
forExistingUsersDescription: "Pengumuman ini akan dimunculkan ke pengguna yang sudah ada dari titik waktu publikasi jika dinyalakan. Apabila dimatikan, mereka yang baru mendaftar setelah publikasi ini akan juga melihatnya."
|
forExistingUsersDescription: "Pengumuman ini akan dimunculkan ke pengguna yang sudah ada dari titik waktu publikasi jika dinyalakan. Apabila dimatikan, mereka yang baru mendaftar setelah publikasi ini akan juga melihatnya."
|
||||||
@@ -1215,6 +1222,7 @@ _initialTutorial:
|
|||||||
followers: "Perlihatkan ke pengikut saja. Hanya pengikut yang dapat melihat postinganmu dan tidak dapat direnote oleh siapapun."
|
followers: "Perlihatkan ke pengikut saja. Hanya pengikut yang dapat melihat postinganmu dan tidak dapat direnote oleh siapapun."
|
||||||
direct: "Hanya perlihatkan ke pengguna spesifik dan penerima akan diberi tahu. Dapat juga digunakan sebagai alternatif dari pesan langsung."
|
direct: "Hanya perlihatkan ke pengguna spesifik dan penerima akan diberi tahu. Dapat juga digunakan sebagai alternatif dari pesan langsung."
|
||||||
_cw:
|
_cw:
|
||||||
|
title: "Peringatan Konten (CW)"
|
||||||
_exampleNote:
|
_exampleNote:
|
||||||
cw: "Peringatan: Bikin Lapar!"
|
cw: "Peringatan: Bikin Lapar!"
|
||||||
note: "Baru aja makan donat berlapis coklat 🍩😋"
|
note: "Baru aja makan donat berlapis coklat 🍩😋"
|
||||||
|
|||||||
352
locales/index.d.ts
vendored
352
locales/index.d.ts
vendored
@@ -1,12 +1,19 @@
|
|||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
// This file is generated by locales/generateDTS.js
|
// This file is generated by locales/generateDTS.js
|
||||||
// Do not edit this file directly.
|
// Do not edit this file directly.
|
||||||
export interface Locale {
|
declare const kParameters: unique symbol;
|
||||||
|
export interface ParameterizedString<T extends string> {
|
||||||
|
[kParameters]: T;
|
||||||
|
}
|
||||||
|
export interface ILocale {
|
||||||
|
[_: string]: string | ParameterizedString<string> | ILocale;
|
||||||
|
}
|
||||||
|
export interface Locale extends ILocale {
|
||||||
"_lang_": string;
|
"_lang_": string;
|
||||||
"headlineMisskey": string;
|
"headlineMisskey": string;
|
||||||
"introMisskey": string;
|
"introMisskey": string;
|
||||||
"poweredByMisskeyDescription": string;
|
"poweredByMisskeyDescription": ParameterizedString<"name">;
|
||||||
"monthAndDay": string;
|
"monthAndDay": ParameterizedString<"month" | "day">;
|
||||||
"search": string;
|
"search": string;
|
||||||
"notifications": string;
|
"notifications": string;
|
||||||
"username": string;
|
"username": string;
|
||||||
@@ -18,7 +25,7 @@ export interface Locale {
|
|||||||
"cancel": string;
|
"cancel": string;
|
||||||
"noThankYou": string;
|
"noThankYou": string;
|
||||||
"enterUsername": string;
|
"enterUsername": string;
|
||||||
"renotedBy": string;
|
"renotedBy": ParameterizedString<"user">;
|
||||||
"noNotes": string;
|
"noNotes": string;
|
||||||
"noNotifications": string;
|
"noNotifications": string;
|
||||||
"instance": string;
|
"instance": string;
|
||||||
@@ -78,8 +85,8 @@ export interface Locale {
|
|||||||
"export": string;
|
"export": string;
|
||||||
"files": string;
|
"files": string;
|
||||||
"download": string;
|
"download": string;
|
||||||
"driveFileDeleteConfirm": string;
|
"driveFileDeleteConfirm": ParameterizedString<"name">;
|
||||||
"unfollowConfirm": string;
|
"unfollowConfirm": ParameterizedString<"name">;
|
||||||
"exportRequested": string;
|
"exportRequested": string;
|
||||||
"importRequested": string;
|
"importRequested": string;
|
||||||
"lists": string;
|
"lists": string;
|
||||||
@@ -183,9 +190,9 @@ export interface Locale {
|
|||||||
"wallpaper": string;
|
"wallpaper": string;
|
||||||
"setWallpaper": string;
|
"setWallpaper": string;
|
||||||
"removeWallpaper": string;
|
"removeWallpaper": string;
|
||||||
"searchWith": string;
|
"searchWith": ParameterizedString<"q">;
|
||||||
"youHaveNoLists": string;
|
"youHaveNoLists": string;
|
||||||
"followConfirm": string;
|
"followConfirm": ParameterizedString<"name">;
|
||||||
"proxyAccount": string;
|
"proxyAccount": string;
|
||||||
"proxyAccountDescription": string;
|
"proxyAccountDescription": string;
|
||||||
"host": string;
|
"host": string;
|
||||||
@@ -208,7 +215,7 @@ export interface Locale {
|
|||||||
"software": string;
|
"software": string;
|
||||||
"version": string;
|
"version": string;
|
||||||
"metadata": string;
|
"metadata": string;
|
||||||
"withNFiles": string;
|
"withNFiles": ParameterizedString<"n">;
|
||||||
"monitor": string;
|
"monitor": string;
|
||||||
"jobQueue": string;
|
"jobQueue": string;
|
||||||
"cpuAndMemory": string;
|
"cpuAndMemory": string;
|
||||||
@@ -237,7 +244,7 @@ export interface Locale {
|
|||||||
"processing": string;
|
"processing": string;
|
||||||
"preview": string;
|
"preview": string;
|
||||||
"default": string;
|
"default": string;
|
||||||
"defaultValueIs": string;
|
"defaultValueIs": ParameterizedString<"value">;
|
||||||
"noCustomEmojis": string;
|
"noCustomEmojis": string;
|
||||||
"noJobs": string;
|
"noJobs": string;
|
||||||
"federating": string;
|
"federating": string;
|
||||||
@@ -266,8 +273,8 @@ export interface Locale {
|
|||||||
"imageUrl": string;
|
"imageUrl": string;
|
||||||
"remove": string;
|
"remove": string;
|
||||||
"removed": string;
|
"removed": string;
|
||||||
"removeAreYouSure": string;
|
"removeAreYouSure": ParameterizedString<"x">;
|
||||||
"deleteAreYouSure": string;
|
"deleteAreYouSure": ParameterizedString<"x">;
|
||||||
"resetAreYouSure": string;
|
"resetAreYouSure": string;
|
||||||
"areYouSure": string;
|
"areYouSure": string;
|
||||||
"saved": string;
|
"saved": string;
|
||||||
@@ -285,8 +292,8 @@ export interface Locale {
|
|||||||
"messageRead": string;
|
"messageRead": string;
|
||||||
"noMoreHistory": string;
|
"noMoreHistory": string;
|
||||||
"startMessaging": string;
|
"startMessaging": string;
|
||||||
"nUsersRead": string;
|
"nUsersRead": ParameterizedString<"n">;
|
||||||
"agreeTo": string;
|
"agreeTo": ParameterizedString<"0">;
|
||||||
"agree": string;
|
"agree": string;
|
||||||
"agreeBelow": string;
|
"agreeBelow": string;
|
||||||
"basicNotesBeforeCreateAccount": string;
|
"basicNotesBeforeCreateAccount": string;
|
||||||
@@ -298,7 +305,7 @@ export interface Locale {
|
|||||||
"images": string;
|
"images": string;
|
||||||
"image": string;
|
"image": string;
|
||||||
"birthday": string;
|
"birthday": string;
|
||||||
"yearsOld": string;
|
"yearsOld": ParameterizedString<"age">;
|
||||||
"registeredDate": string;
|
"registeredDate": string;
|
||||||
"location": string;
|
"location": string;
|
||||||
"theme": string;
|
"theme": string;
|
||||||
@@ -353,9 +360,9 @@ export interface Locale {
|
|||||||
"thisYear": string;
|
"thisYear": string;
|
||||||
"thisMonth": string;
|
"thisMonth": string;
|
||||||
"today": string;
|
"today": string;
|
||||||
"dayX": string;
|
"dayX": ParameterizedString<"day">;
|
||||||
"monthX": string;
|
"monthX": ParameterizedString<"month">;
|
||||||
"yearX": string;
|
"yearX": ParameterizedString<"year">;
|
||||||
"pages": string;
|
"pages": string;
|
||||||
"integration": string;
|
"integration": string;
|
||||||
"connectService": string;
|
"connectService": string;
|
||||||
@@ -382,6 +389,11 @@ export interface Locale {
|
|||||||
"enableHcaptcha": string;
|
"enableHcaptcha": string;
|
||||||
"hcaptchaSiteKey": string;
|
"hcaptchaSiteKey": string;
|
||||||
"hcaptchaSecretKey": string;
|
"hcaptchaSecretKey": string;
|
||||||
|
"mcaptcha": string;
|
||||||
|
"enableMcaptcha": string;
|
||||||
|
"mcaptchaSiteKey": string;
|
||||||
|
"mcaptchaSecretKey": string;
|
||||||
|
"mcaptchaInstanceUrl": string;
|
||||||
"recaptcha": string;
|
"recaptcha": string;
|
||||||
"enableRecaptcha": string;
|
"enableRecaptcha": string;
|
||||||
"recaptchaSiteKey": string;
|
"recaptchaSiteKey": string;
|
||||||
@@ -415,7 +427,7 @@ export interface Locale {
|
|||||||
"recentlyUpdatedUsers": string;
|
"recentlyUpdatedUsers": string;
|
||||||
"recentlyRegisteredUsers": string;
|
"recentlyRegisteredUsers": string;
|
||||||
"recentlyDiscoveredUsers": string;
|
"recentlyDiscoveredUsers": string;
|
||||||
"exploreUsersCount": string;
|
"exploreUsersCount": ParameterizedString<"count">;
|
||||||
"exploreFediverse": string;
|
"exploreFediverse": string;
|
||||||
"popularTags": string;
|
"popularTags": string;
|
||||||
"userList": string;
|
"userList": string;
|
||||||
@@ -432,16 +444,16 @@ export interface Locale {
|
|||||||
"moderationNote": string;
|
"moderationNote": string;
|
||||||
"addModerationNote": string;
|
"addModerationNote": string;
|
||||||
"moderationLogs": string;
|
"moderationLogs": string;
|
||||||
"nUsersMentioned": string;
|
"nUsersMentioned": ParameterizedString<"n">;
|
||||||
"securityKeyAndPasskey": string;
|
"securityKeyAndPasskey": string;
|
||||||
"securityKey": string;
|
"securityKey": string;
|
||||||
"lastUsed": string;
|
"lastUsed": string;
|
||||||
"lastUsedAt": string;
|
"lastUsedAt": ParameterizedString<"t">;
|
||||||
"unregister": string;
|
"unregister": string;
|
||||||
"passwordLessLogin": string;
|
"passwordLessLogin": string;
|
||||||
"passwordLessLoginDescription": string;
|
"passwordLessLoginDescription": string;
|
||||||
"resetPassword": string;
|
"resetPassword": string;
|
||||||
"newPasswordIs": string;
|
"newPasswordIs": ParameterizedString<"password">;
|
||||||
"reduceUiAnimation": string;
|
"reduceUiAnimation": string;
|
||||||
"share": string;
|
"share": string;
|
||||||
"notFound": string;
|
"notFound": string;
|
||||||
@@ -461,7 +473,7 @@ export interface Locale {
|
|||||||
"enable": string;
|
"enable": string;
|
||||||
"next": string;
|
"next": string;
|
||||||
"retype": string;
|
"retype": string;
|
||||||
"noteOf": string;
|
"noteOf": ParameterizedString<"user">;
|
||||||
"quoteAttached": string;
|
"quoteAttached": string;
|
||||||
"quoteQuestion": string;
|
"quoteQuestion": string;
|
||||||
"noMessagesYet": string;
|
"noMessagesYet": string;
|
||||||
@@ -481,12 +493,12 @@ export interface Locale {
|
|||||||
"strongPassword": string;
|
"strongPassword": string;
|
||||||
"passwordMatched": string;
|
"passwordMatched": string;
|
||||||
"passwordNotMatched": string;
|
"passwordNotMatched": string;
|
||||||
"signinWith": string;
|
"signinWith": ParameterizedString<"x">;
|
||||||
"signinFailed": string;
|
"signinFailed": string;
|
||||||
"or": string;
|
"or": string;
|
||||||
"language": string;
|
"language": string;
|
||||||
"uiLanguage": string;
|
"uiLanguage": string;
|
||||||
"aboutX": string;
|
"aboutX": ParameterizedString<"x">;
|
||||||
"emojiStyle": string;
|
"emojiStyle": string;
|
||||||
"native": string;
|
"native": string;
|
||||||
"disableDrawer": string;
|
"disableDrawer": string;
|
||||||
@@ -504,7 +516,7 @@ export interface Locale {
|
|||||||
"regenerate": string;
|
"regenerate": string;
|
||||||
"fontSize": string;
|
"fontSize": string;
|
||||||
"mediaListWithOneImageAppearance": string;
|
"mediaListWithOneImageAppearance": string;
|
||||||
"limitTo": string;
|
"limitTo": ParameterizedString<"x">;
|
||||||
"noFollowRequests": string;
|
"noFollowRequests": string;
|
||||||
"openImageInNewTab": string;
|
"openImageInNewTab": string;
|
||||||
"dashboard": string;
|
"dashboard": string;
|
||||||
@@ -582,7 +594,7 @@ export interface Locale {
|
|||||||
"deleteAllFiles": string;
|
"deleteAllFiles": string;
|
||||||
"deleteAllFilesConfirm": string;
|
"deleteAllFilesConfirm": string;
|
||||||
"removeAllFollowing": string;
|
"removeAllFollowing": string;
|
||||||
"removeAllFollowingDescription": string;
|
"removeAllFollowingDescription": ParameterizedString<"host">;
|
||||||
"userSuspended": string;
|
"userSuspended": string;
|
||||||
"userSilenced": string;
|
"userSilenced": string;
|
||||||
"yourAccountSuspendedTitle": string;
|
"yourAccountSuspendedTitle": string;
|
||||||
@@ -629,6 +641,7 @@ export interface Locale {
|
|||||||
"small": string;
|
"small": string;
|
||||||
"generateAccessToken": string;
|
"generateAccessToken": string;
|
||||||
"permission": string;
|
"permission": string;
|
||||||
|
"adminPermission": string;
|
||||||
"enableAll": string;
|
"enableAll": string;
|
||||||
"disableAll": string;
|
"disableAll": string;
|
||||||
"tokenRequested": string;
|
"tokenRequested": string;
|
||||||
@@ -652,9 +665,9 @@ export interface Locale {
|
|||||||
"wordMute": string;
|
"wordMute": string;
|
||||||
"hardWordMute": string;
|
"hardWordMute": string;
|
||||||
"regexpError": string;
|
"regexpError": string;
|
||||||
"regexpErrorDescription": string;
|
"regexpErrorDescription": ParameterizedString<"tab" | "line">;
|
||||||
"instanceMute": string;
|
"instanceMute": string;
|
||||||
"userSaysSomething": string;
|
"userSaysSomething": ParameterizedString<"name">;
|
||||||
"makeActive": string;
|
"makeActive": string;
|
||||||
"display": string;
|
"display": string;
|
||||||
"copy": string;
|
"copy": string;
|
||||||
@@ -672,6 +685,7 @@ export interface Locale {
|
|||||||
"other": string;
|
"other": string;
|
||||||
"regenerateLoginToken": string;
|
"regenerateLoginToken": string;
|
||||||
"regenerateLoginTokenDescription": string;
|
"regenerateLoginTokenDescription": string;
|
||||||
|
"theKeywordWhenSearchingForCustomEmoji": string;
|
||||||
"setMultipleBySeparatingWithSpace": string;
|
"setMultipleBySeparatingWithSpace": string;
|
||||||
"fileIdOrUrl": string;
|
"fileIdOrUrl": string;
|
||||||
"behavior": string;
|
"behavior": string;
|
||||||
@@ -679,7 +693,7 @@ export interface Locale {
|
|||||||
"abuseReports": string;
|
"abuseReports": string;
|
||||||
"reportAbuse": string;
|
"reportAbuse": string;
|
||||||
"reportAbuseRenote": string;
|
"reportAbuseRenote": string;
|
||||||
"reportAbuseOf": string;
|
"reportAbuseOf": ParameterizedString<"name">;
|
||||||
"fillAbuseReportDescription": string;
|
"fillAbuseReportDescription": string;
|
||||||
"abuseReported": string;
|
"abuseReported": string;
|
||||||
"reporter": string;
|
"reporter": string;
|
||||||
@@ -694,7 +708,7 @@ export interface Locale {
|
|||||||
"defaultNavigationBehaviour": string;
|
"defaultNavigationBehaviour": string;
|
||||||
"editTheseSettingsMayBreakAccount": string;
|
"editTheseSettingsMayBreakAccount": string;
|
||||||
"instanceTicker": string;
|
"instanceTicker": string;
|
||||||
"waitingFor": string;
|
"waitingFor": ParameterizedString<"x">;
|
||||||
"random": string;
|
"random": string;
|
||||||
"system": string;
|
"system": string;
|
||||||
"switchUi": string;
|
"switchUi": string;
|
||||||
@@ -704,10 +718,10 @@ export interface Locale {
|
|||||||
"optional": string;
|
"optional": string;
|
||||||
"createNewClip": string;
|
"createNewClip": string;
|
||||||
"unclip": string;
|
"unclip": string;
|
||||||
"confirmToUnclipAlreadyClippedNote": string;
|
"confirmToUnclipAlreadyClippedNote": ParameterizedString<"name">;
|
||||||
"public": string;
|
"public": string;
|
||||||
"private": string;
|
"private": string;
|
||||||
"i18nInfo": string;
|
"i18nInfo": ParameterizedString<"link">;
|
||||||
"manageAccessTokens": string;
|
"manageAccessTokens": string;
|
||||||
"accountInfo": string;
|
"accountInfo": string;
|
||||||
"notesCount": string;
|
"notesCount": string;
|
||||||
@@ -757,9 +771,9 @@ export interface Locale {
|
|||||||
"needReloadToApply": string;
|
"needReloadToApply": string;
|
||||||
"showTitlebar": string;
|
"showTitlebar": string;
|
||||||
"clearCache": string;
|
"clearCache": string;
|
||||||
"onlineUsersCount": string;
|
"onlineUsersCount": ParameterizedString<"n">;
|
||||||
"nUsers": string;
|
"nUsers": ParameterizedString<"n">;
|
||||||
"nNotes": string;
|
"nNotes": ParameterizedString<"n">;
|
||||||
"sendErrorReports": string;
|
"sendErrorReports": string;
|
||||||
"sendErrorReportsDescription": string;
|
"sendErrorReportsDescription": string;
|
||||||
"myTheme": string;
|
"myTheme": string;
|
||||||
@@ -791,7 +805,7 @@ export interface Locale {
|
|||||||
"publish": string;
|
"publish": string;
|
||||||
"inChannelSearch": string;
|
"inChannelSearch": string;
|
||||||
"useReactionPickerForContextMenu": string;
|
"useReactionPickerForContextMenu": string;
|
||||||
"typingUsers": string;
|
"typingUsers": ParameterizedString<"users">;
|
||||||
"jumpToSpecifiedDate": string;
|
"jumpToSpecifiedDate": string;
|
||||||
"showingPastTimeline": string;
|
"showingPastTimeline": string;
|
||||||
"clear": string;
|
"clear": string;
|
||||||
@@ -858,7 +872,7 @@ export interface Locale {
|
|||||||
"misskeyUpdated": string;
|
"misskeyUpdated": string;
|
||||||
"whatIsNew": string;
|
"whatIsNew": string;
|
||||||
"translate": string;
|
"translate": string;
|
||||||
"translatedFrom": string;
|
"translatedFrom": ParameterizedString<"x">;
|
||||||
"accountDeletionInProgress": string;
|
"accountDeletionInProgress": string;
|
||||||
"usernameInfo": string;
|
"usernameInfo": string;
|
||||||
"aiChanMode": string;
|
"aiChanMode": string;
|
||||||
@@ -889,11 +903,11 @@ export interface Locale {
|
|||||||
"continueThread": string;
|
"continueThread": string;
|
||||||
"deleteAccountConfirm": string;
|
"deleteAccountConfirm": string;
|
||||||
"incorrectPassword": string;
|
"incorrectPassword": string;
|
||||||
"voteConfirm": string;
|
"voteConfirm": ParameterizedString<"choice">;
|
||||||
"hide": string;
|
"hide": string;
|
||||||
"useDrawerReactionPickerForMobile": string;
|
"useDrawerReactionPickerForMobile": string;
|
||||||
"welcomeBackWithName": string;
|
"welcomeBackWithName": ParameterizedString<"name">;
|
||||||
"clickToFinishEmailVerification": string;
|
"clickToFinishEmailVerification": ParameterizedString<"ok">;
|
||||||
"overridedDeviceKind": string;
|
"overridedDeviceKind": string;
|
||||||
"smartphone": string;
|
"smartphone": string;
|
||||||
"tablet": string;
|
"tablet": string;
|
||||||
@@ -921,8 +935,8 @@ export interface Locale {
|
|||||||
"cropYes": string;
|
"cropYes": string;
|
||||||
"cropNo": string;
|
"cropNo": string;
|
||||||
"file": string;
|
"file": string;
|
||||||
"recentNHours": string;
|
"recentNHours": ParameterizedString<"n">;
|
||||||
"recentNDays": string;
|
"recentNDays": ParameterizedString<"n">;
|
||||||
"noEmailServerWarning": string;
|
"noEmailServerWarning": string;
|
||||||
"thereIsUnresolvedAbuseReportWarning": string;
|
"thereIsUnresolvedAbuseReportWarning": string;
|
||||||
"recommended": string;
|
"recommended": string;
|
||||||
@@ -931,7 +945,7 @@ export interface Locale {
|
|||||||
"driveCapOverrideCaption": string;
|
"driveCapOverrideCaption": string;
|
||||||
"requireAdminForView": string;
|
"requireAdminForView": string;
|
||||||
"isSystemAccount": string;
|
"isSystemAccount": string;
|
||||||
"typeToConfirm": string;
|
"typeToConfirm": ParameterizedString<"x">;
|
||||||
"deleteAccount": string;
|
"deleteAccount": string;
|
||||||
"document": string;
|
"document": string;
|
||||||
"numberOfPageCache": string;
|
"numberOfPageCache": string;
|
||||||
@@ -985,7 +999,7 @@ export interface Locale {
|
|||||||
"neverShow": string;
|
"neverShow": string;
|
||||||
"remindMeLater": string;
|
"remindMeLater": string;
|
||||||
"didYouLikeMisskey": string;
|
"didYouLikeMisskey": string;
|
||||||
"pleaseDonate": string;
|
"pleaseDonate": ParameterizedString<"host">;
|
||||||
"roles": string;
|
"roles": string;
|
||||||
"role": string;
|
"role": string;
|
||||||
"noRole": string;
|
"noRole": string;
|
||||||
@@ -1054,6 +1068,8 @@ export interface Locale {
|
|||||||
"noteIdOrUrl": string;
|
"noteIdOrUrl": string;
|
||||||
"video": string;
|
"video": string;
|
||||||
"videos": string;
|
"videos": string;
|
||||||
|
"audio": string;
|
||||||
|
"audioFiles": string;
|
||||||
"dataSaver": string;
|
"dataSaver": string;
|
||||||
"accountMigration": string;
|
"accountMigration": string;
|
||||||
"accountMoved": string;
|
"accountMoved": string;
|
||||||
@@ -1081,7 +1097,7 @@ export interface Locale {
|
|||||||
"preservedUsernamesDescription": string;
|
"preservedUsernamesDescription": string;
|
||||||
"createNoteFromTheFile": string;
|
"createNoteFromTheFile": string;
|
||||||
"archive": string;
|
"archive": string;
|
||||||
"channelArchiveConfirmTitle": string;
|
"channelArchiveConfirmTitle": ParameterizedString<"name">;
|
||||||
"channelArchiveConfirmDescription": string;
|
"channelArchiveConfirmDescription": string;
|
||||||
"thisChannelArchived": string;
|
"thisChannelArchived": string;
|
||||||
"displayOfNote": string;
|
"displayOfNote": string;
|
||||||
@@ -1111,8 +1127,8 @@ export interface Locale {
|
|||||||
"createCount": string;
|
"createCount": string;
|
||||||
"inviteCodeCreated": string;
|
"inviteCodeCreated": string;
|
||||||
"inviteLimitExceeded": string;
|
"inviteLimitExceeded": string;
|
||||||
"createLimitRemaining": string;
|
"createLimitRemaining": ParameterizedString<"limit">;
|
||||||
"inviteLimitResetCycle": string;
|
"inviteLimitResetCycle": ParameterizedString<"time" | "limit">;
|
||||||
"expirationDate": string;
|
"expirationDate": string;
|
||||||
"noExpirationDate": string;
|
"noExpirationDate": string;
|
||||||
"inviteCodeUsedAt": string;
|
"inviteCodeUsedAt": string;
|
||||||
@@ -1125,7 +1141,7 @@ export interface Locale {
|
|||||||
"expired": string;
|
"expired": string;
|
||||||
"doYouAgree": string;
|
"doYouAgree": string;
|
||||||
"beSureToReadThisAsItIsImportant": string;
|
"beSureToReadThisAsItIsImportant": string;
|
||||||
"iHaveReadXCarefullyAndAgree": string;
|
"iHaveReadXCarefullyAndAgree": ParameterizedString<"x">;
|
||||||
"dialog": string;
|
"dialog": string;
|
||||||
"icon": string;
|
"icon": string;
|
||||||
"forYou": string;
|
"forYou": string;
|
||||||
@@ -1180,10 +1196,30 @@ export interface Locale {
|
|||||||
"doReaction": string;
|
"doReaction": string;
|
||||||
"code": string;
|
"code": string;
|
||||||
"reloadRequiredToApplySettings": string;
|
"reloadRequiredToApplySettings": string;
|
||||||
"remainingN": string;
|
"remainingN": ParameterizedString<"n">;
|
||||||
"overwriteContentConfirm": string;
|
"overwriteContentConfirm": string;
|
||||||
"seasonalScreenEffect": string;
|
"seasonalScreenEffect": string;
|
||||||
"decorate": string;
|
"decorate": string;
|
||||||
|
"addMfmFunction": string;
|
||||||
|
"enableQuickAddMfmFunction": string;
|
||||||
|
"bubbleGame": string;
|
||||||
|
"sfx": string;
|
||||||
|
"soundWillBePlayed": string;
|
||||||
|
"showReplay": string;
|
||||||
|
"replay": string;
|
||||||
|
"replaying": string;
|
||||||
|
"ranking": string;
|
||||||
|
"lastNDays": ParameterizedString<"n">;
|
||||||
|
"backToTitle": string;
|
||||||
|
"enableHorizontalSwipe": string;
|
||||||
|
"_bubbleGame": {
|
||||||
|
"howToPlay": string;
|
||||||
|
"_howToPlay": {
|
||||||
|
"section1": string;
|
||||||
|
"section2": string;
|
||||||
|
"section3": string;
|
||||||
|
};
|
||||||
|
};
|
||||||
"_announcement": {
|
"_announcement": {
|
||||||
"forExistingUsers": string;
|
"forExistingUsers": string;
|
||||||
"forExistingUsersDescription": string;
|
"forExistingUsersDescription": string;
|
||||||
@@ -1192,7 +1228,7 @@ export interface Locale {
|
|||||||
"end": string;
|
"end": string;
|
||||||
"tooManyActiveAnnouncementDescription": string;
|
"tooManyActiveAnnouncementDescription": string;
|
||||||
"readConfirmTitle": string;
|
"readConfirmTitle": string;
|
||||||
"readConfirmText": string;
|
"readConfirmText": ParameterizedString<"title">;
|
||||||
"shouldNotBeUsedToPresentPermanentInfo": string;
|
"shouldNotBeUsedToPresentPermanentInfo": string;
|
||||||
"dialogAnnouncementUxWarn": string;
|
"dialogAnnouncementUxWarn": string;
|
||||||
"silence": string;
|
"silence": string;
|
||||||
@@ -1207,10 +1243,10 @@ export interface Locale {
|
|||||||
"theseSettingsCanEditLater": string;
|
"theseSettingsCanEditLater": string;
|
||||||
"youCanEditMoreSettingsInSettingsPageLater": string;
|
"youCanEditMoreSettingsInSettingsPageLater": string;
|
||||||
"followUsers": string;
|
"followUsers": string;
|
||||||
"pushNotificationDescription": string;
|
"pushNotificationDescription": ParameterizedString<"name">;
|
||||||
"initialAccountSettingCompleted": string;
|
"initialAccountSettingCompleted": string;
|
||||||
"haveFun": string;
|
"haveFun": ParameterizedString<"name">;
|
||||||
"youCanContinueTutorial": string;
|
"youCanContinueTutorial": ParameterizedString<"name">;
|
||||||
"startTutorial": string;
|
"startTutorial": string;
|
||||||
"skipAreYouSure": string;
|
"skipAreYouSure": string;
|
||||||
"laterAreYouSure": string;
|
"laterAreYouSure": string;
|
||||||
@@ -1248,7 +1284,7 @@ export interface Locale {
|
|||||||
"social": string;
|
"social": string;
|
||||||
"global": string;
|
"global": string;
|
||||||
"description2": string;
|
"description2": string;
|
||||||
"description3": string;
|
"description3": ParameterizedString<"link">;
|
||||||
};
|
};
|
||||||
"_postNote": {
|
"_postNote": {
|
||||||
"title": string;
|
"title": string;
|
||||||
@@ -1286,7 +1322,7 @@ export interface Locale {
|
|||||||
};
|
};
|
||||||
"_done": {
|
"_done": {
|
||||||
"title": string;
|
"title": string;
|
||||||
"description": string;
|
"description": ParameterizedString<"link">;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"_timelineDescription": {
|
"_timelineDescription": {
|
||||||
@@ -1300,10 +1336,10 @@ export interface Locale {
|
|||||||
};
|
};
|
||||||
"_serverSettings": {
|
"_serverSettings": {
|
||||||
"iconUrl": string;
|
"iconUrl": string;
|
||||||
"appIconDescription": string;
|
"appIconDescription": ParameterizedString<"host">;
|
||||||
"appIconUsageExample": string;
|
"appIconUsageExample": string;
|
||||||
"appIconStyleRecommendation": string;
|
"appIconStyleRecommendation": string;
|
||||||
"appIconResolutionMustBe": string;
|
"appIconResolutionMustBe": ParameterizedString<"resolution">;
|
||||||
"manifestJsonOverride": string;
|
"manifestJsonOverride": string;
|
||||||
"shortName": string;
|
"shortName": string;
|
||||||
"shortNameDescription": string;
|
"shortNameDescription": string;
|
||||||
@@ -1314,7 +1350,7 @@ export interface Locale {
|
|||||||
"_accountMigration": {
|
"_accountMigration": {
|
||||||
"moveFrom": string;
|
"moveFrom": string;
|
||||||
"moveFromSub": string;
|
"moveFromSub": string;
|
||||||
"moveFromLabel": string;
|
"moveFromLabel": ParameterizedString<"n">;
|
||||||
"moveFromDescription": string;
|
"moveFromDescription": string;
|
||||||
"moveTo": string;
|
"moveTo": string;
|
||||||
"moveToLabel": string;
|
"moveToLabel": string;
|
||||||
@@ -1322,7 +1358,7 @@ export interface Locale {
|
|||||||
"moveAccountDescription": string;
|
"moveAccountDescription": string;
|
||||||
"moveAccountHowTo": string;
|
"moveAccountHowTo": string;
|
||||||
"startMigration": string;
|
"startMigration": string;
|
||||||
"migrationConfirm": string;
|
"migrationConfirm": ParameterizedString<"account">;
|
||||||
"movedAndCannotBeUndone": string;
|
"movedAndCannotBeUndone": string;
|
||||||
"postMigrationNote": string;
|
"postMigrationNote": string;
|
||||||
"movedTo": string;
|
"movedTo": string;
|
||||||
@@ -1648,6 +1684,15 @@ export interface Locale {
|
|||||||
"title": string;
|
"title": string;
|
||||||
"description": string;
|
"description": string;
|
||||||
};
|
};
|
||||||
|
"_bubbleGameExplodingHead": {
|
||||||
|
"title": string;
|
||||||
|
"description": string;
|
||||||
|
};
|
||||||
|
"_bubbleGameDoubleExplodingHead": {
|
||||||
|
"title": string;
|
||||||
|
"description": string;
|
||||||
|
"flavor": string;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"_role": {
|
"_role": {
|
||||||
@@ -1745,6 +1790,7 @@ export interface Locale {
|
|||||||
"disposable": string;
|
"disposable": string;
|
||||||
"mx": string;
|
"mx": string;
|
||||||
"smtp": string;
|
"smtp": string;
|
||||||
|
"banned": string;
|
||||||
};
|
};
|
||||||
"_ffVisibility": {
|
"_ffVisibility": {
|
||||||
"public": string;
|
"public": string;
|
||||||
@@ -1754,7 +1800,7 @@ export interface Locale {
|
|||||||
"_signup": {
|
"_signup": {
|
||||||
"almostThere": string;
|
"almostThere": string;
|
||||||
"emailAddressInfo": string;
|
"emailAddressInfo": string;
|
||||||
"emailSent": string;
|
"emailSent": ParameterizedString<"email">;
|
||||||
};
|
};
|
||||||
"_accountDelete": {
|
"_accountDelete": {
|
||||||
"accountDelete": string;
|
"accountDelete": string;
|
||||||
@@ -1807,14 +1853,14 @@ export interface Locale {
|
|||||||
"save": string;
|
"save": string;
|
||||||
"inputName": string;
|
"inputName": string;
|
||||||
"cannotSave": string;
|
"cannotSave": string;
|
||||||
"nameAlreadyExists": string;
|
"nameAlreadyExists": ParameterizedString<"name">;
|
||||||
"applyConfirm": string;
|
"applyConfirm": ParameterizedString<"name">;
|
||||||
"saveConfirm": string;
|
"saveConfirm": ParameterizedString<"name">;
|
||||||
"deleteConfirm": string;
|
"deleteConfirm": ParameterizedString<"name">;
|
||||||
"renameConfirm": string;
|
"renameConfirm": ParameterizedString<"old" | "new">;
|
||||||
"noBackups": string;
|
"noBackups": string;
|
||||||
"createdAt": string;
|
"createdAt": ParameterizedString<"date" | "time">;
|
||||||
"updatedAt": string;
|
"updatedAt": ParameterizedString<"date" | "time">;
|
||||||
"cannotLoad": string;
|
"cannotLoad": string;
|
||||||
"invalidFile": string;
|
"invalidFile": string;
|
||||||
};
|
};
|
||||||
@@ -1859,8 +1905,8 @@ export interface Locale {
|
|||||||
"featured": string;
|
"featured": string;
|
||||||
"owned": string;
|
"owned": string;
|
||||||
"following": string;
|
"following": string;
|
||||||
"usersCount": string;
|
"usersCount": ParameterizedString<"n">;
|
||||||
"notesCount": string;
|
"notesCount": ParameterizedString<"n">;
|
||||||
"nameAndDescription": string;
|
"nameAndDescription": string;
|
||||||
"nameOnly": string;
|
"nameOnly": string;
|
||||||
"allowRenoteToExternal": string;
|
"allowRenoteToExternal": string;
|
||||||
@@ -1888,7 +1934,7 @@ export interface Locale {
|
|||||||
"manage": string;
|
"manage": string;
|
||||||
"code": string;
|
"code": string;
|
||||||
"description": string;
|
"description": string;
|
||||||
"installed": string;
|
"installed": ParameterizedString<"name">;
|
||||||
"installedThemes": string;
|
"installedThemes": string;
|
||||||
"builtinThemes": string;
|
"builtinThemes": string;
|
||||||
"alreadyInstalled": string;
|
"alreadyInstalled": string;
|
||||||
@@ -1911,7 +1957,7 @@ export interface Locale {
|
|||||||
"lighten": string;
|
"lighten": string;
|
||||||
"inputConstantName": string;
|
"inputConstantName": string;
|
||||||
"importInfo": string;
|
"importInfo": string;
|
||||||
"deleteConstantConfirm": string;
|
"deleteConstantConfirm": ParameterizedString<"const">;
|
||||||
"keys": {
|
"keys": {
|
||||||
"accent": string;
|
"accent": string;
|
||||||
"bg": string;
|
"bg": string;
|
||||||
@@ -1974,23 +2020,23 @@ export interface Locale {
|
|||||||
"_ago": {
|
"_ago": {
|
||||||
"future": string;
|
"future": string;
|
||||||
"justNow": string;
|
"justNow": string;
|
||||||
"secondsAgo": string;
|
"secondsAgo": ParameterizedString<"n">;
|
||||||
"minutesAgo": string;
|
"minutesAgo": ParameterizedString<"n">;
|
||||||
"hoursAgo": string;
|
"hoursAgo": ParameterizedString<"n">;
|
||||||
"daysAgo": string;
|
"daysAgo": ParameterizedString<"n">;
|
||||||
"weeksAgo": string;
|
"weeksAgo": ParameterizedString<"n">;
|
||||||
"monthsAgo": string;
|
"monthsAgo": ParameterizedString<"n">;
|
||||||
"yearsAgo": string;
|
"yearsAgo": ParameterizedString<"n">;
|
||||||
"invalid": string;
|
"invalid": string;
|
||||||
};
|
};
|
||||||
"_timeIn": {
|
"_timeIn": {
|
||||||
"seconds": string;
|
"seconds": ParameterizedString<"n">;
|
||||||
"minutes": string;
|
"minutes": ParameterizedString<"n">;
|
||||||
"hours": string;
|
"hours": ParameterizedString<"n">;
|
||||||
"days": string;
|
"days": ParameterizedString<"n">;
|
||||||
"weeks": string;
|
"weeks": ParameterizedString<"n">;
|
||||||
"months": string;
|
"months": ParameterizedString<"n">;
|
||||||
"years": string;
|
"years": ParameterizedString<"n">;
|
||||||
};
|
};
|
||||||
"_time": {
|
"_time": {
|
||||||
"second": string;
|
"second": string;
|
||||||
@@ -2001,7 +2047,7 @@ export interface Locale {
|
|||||||
"_2fa": {
|
"_2fa": {
|
||||||
"alreadyRegistered": string;
|
"alreadyRegistered": string;
|
||||||
"registerTOTP": string;
|
"registerTOTP": string;
|
||||||
"step1": string;
|
"step1": ParameterizedString<"a" | "b">;
|
||||||
"step2": string;
|
"step2": string;
|
||||||
"step2Click": string;
|
"step2Click": string;
|
||||||
"step2Uri": string;
|
"step2Uri": string;
|
||||||
@@ -2016,7 +2062,7 @@ export interface Locale {
|
|||||||
"securityKeyName": string;
|
"securityKeyName": string;
|
||||||
"tapSecurityKey": string;
|
"tapSecurityKey": string;
|
||||||
"removeKey": string;
|
"removeKey": string;
|
||||||
"removeKeyConfirm": string;
|
"removeKeyConfirm": ParameterizedString<"name">;
|
||||||
"whyTOTPOnlyRenew": string;
|
"whyTOTPOnlyRenew": string;
|
||||||
"renewTOTP": string;
|
"renewTOTP": string;
|
||||||
"renewTOTPConfirm": string;
|
"renewTOTPConfirm": string;
|
||||||
@@ -2065,12 +2111,61 @@ export interface Locale {
|
|||||||
"write:flash": string;
|
"write:flash": string;
|
||||||
"read:flash-likes": string;
|
"read:flash-likes": string;
|
||||||
"write:flash-likes": string;
|
"write:flash-likes": string;
|
||||||
|
"read:admin:abuse-user-reports": string;
|
||||||
|
"write:admin:delete-account": string;
|
||||||
|
"write:admin:delete-all-files-of-a-user": string;
|
||||||
|
"read:admin:index-stats": string;
|
||||||
|
"read:admin:table-stats": string;
|
||||||
|
"read:admin:user-ips": string;
|
||||||
|
"read:admin:meta": string;
|
||||||
|
"write:admin:reset-password": string;
|
||||||
|
"write:admin:resolve-abuse-user-report": string;
|
||||||
|
"write:admin:send-email": string;
|
||||||
|
"read:admin:server-info": string;
|
||||||
|
"read:admin:show-moderation-log": string;
|
||||||
|
"read:admin:show-user": string;
|
||||||
|
"read:admin:show-users": string;
|
||||||
|
"write:admin:suspend-user": string;
|
||||||
|
"write:admin:unset-user-avatar": string;
|
||||||
|
"write:admin:unset-user-banner": string;
|
||||||
|
"write:admin:unsuspend-user": string;
|
||||||
|
"write:admin:meta": string;
|
||||||
|
"write:admin:user-note": string;
|
||||||
|
"write:admin:roles": string;
|
||||||
|
"read:admin:roles": string;
|
||||||
|
"write:admin:relays": string;
|
||||||
|
"read:admin:relays": string;
|
||||||
|
"write:admin:invite-codes": string;
|
||||||
|
"read:admin:invite-codes": string;
|
||||||
|
"write:admin:announcements": string;
|
||||||
|
"read:admin:announcements": string;
|
||||||
|
"write:admin:avatar-decorations": string;
|
||||||
|
"read:admin:avatar-decorations": string;
|
||||||
|
"write:admin:federation": string;
|
||||||
|
"write:admin:account": string;
|
||||||
|
"read:admin:account": string;
|
||||||
|
"write:admin:emoji": string;
|
||||||
|
"read:admin:emoji": string;
|
||||||
|
"write:admin:queue": string;
|
||||||
|
"read:admin:queue": string;
|
||||||
|
"write:admin:promo": string;
|
||||||
|
"write:admin:drive": string;
|
||||||
|
"read:admin:drive": string;
|
||||||
|
"read:admin:stream": string;
|
||||||
|
"write:admin:ad": string;
|
||||||
|
"read:admin:ad": string;
|
||||||
|
"write:invite-codes": string;
|
||||||
|
"read:invite-codes": string;
|
||||||
|
"write:clip-favorite": string;
|
||||||
|
"read:clip-favorite": string;
|
||||||
|
"read:federation": string;
|
||||||
|
"write:report-abuse": string;
|
||||||
};
|
};
|
||||||
"_auth": {
|
"_auth": {
|
||||||
"shareAccessTitle": string;
|
"shareAccessTitle": string;
|
||||||
"shareAccess": string;
|
"shareAccess": ParameterizedString<"name">;
|
||||||
"shareAccessAsk": string;
|
"shareAccessAsk": string;
|
||||||
"permission": string;
|
"permission": ParameterizedString<"name">;
|
||||||
"permissionAsk": string;
|
"permissionAsk": string;
|
||||||
"pleaseGoBack": string;
|
"pleaseGoBack": string;
|
||||||
"callback": string;
|
"callback": string;
|
||||||
@@ -2129,12 +2224,12 @@ export interface Locale {
|
|||||||
"_cw": {
|
"_cw": {
|
||||||
"hide": string;
|
"hide": string;
|
||||||
"show": string;
|
"show": string;
|
||||||
"chars": string;
|
"chars": ParameterizedString<"count">;
|
||||||
"files": string;
|
"files": ParameterizedString<"count">;
|
||||||
};
|
};
|
||||||
"_poll": {
|
"_poll": {
|
||||||
"noOnlyOneChoice": string;
|
"noOnlyOneChoice": string;
|
||||||
"choiceN": string;
|
"choiceN": ParameterizedString<"n">;
|
||||||
"noMore": string;
|
"noMore": string;
|
||||||
"canMultipleVote": string;
|
"canMultipleVote": string;
|
||||||
"expiration": string;
|
"expiration": string;
|
||||||
@@ -2144,16 +2239,16 @@ export interface Locale {
|
|||||||
"deadlineDate": string;
|
"deadlineDate": string;
|
||||||
"deadlineTime": string;
|
"deadlineTime": string;
|
||||||
"duration": string;
|
"duration": string;
|
||||||
"votesCount": string;
|
"votesCount": ParameterizedString<"n">;
|
||||||
"totalVotes": string;
|
"totalVotes": ParameterizedString<"n">;
|
||||||
"vote": string;
|
"vote": string;
|
||||||
"showResult": string;
|
"showResult": string;
|
||||||
"voted": string;
|
"voted": string;
|
||||||
"closed": string;
|
"closed": string;
|
||||||
"remainingDays": string;
|
"remainingDays": ParameterizedString<"d" | "h">;
|
||||||
"remainingHours": string;
|
"remainingHours": ParameterizedString<"h" | "m">;
|
||||||
"remainingMinutes": string;
|
"remainingMinutes": ParameterizedString<"m" | "s">;
|
||||||
"remainingSeconds": string;
|
"remainingSeconds": ParameterizedString<"s">;
|
||||||
};
|
};
|
||||||
"_visibility": {
|
"_visibility": {
|
||||||
"public": string;
|
"public": string;
|
||||||
@@ -2193,11 +2288,12 @@ export interface Locale {
|
|||||||
"changeAvatar": string;
|
"changeAvatar": string;
|
||||||
"changeBanner": string;
|
"changeBanner": string;
|
||||||
"verifiedLinkDescription": string;
|
"verifiedLinkDescription": string;
|
||||||
"avatarDecorationMax": string;
|
"avatarDecorationMax": ParameterizedString<"max">;
|
||||||
};
|
};
|
||||||
"_exportOrImport": {
|
"_exportOrImport": {
|
||||||
"allNotes": string;
|
"allNotes": string;
|
||||||
"favoritedNotes": string;
|
"favoritedNotes": string;
|
||||||
|
"clips": string;
|
||||||
"followingList": string;
|
"followingList": string;
|
||||||
"muteList": string;
|
"muteList": string;
|
||||||
"blockingList": string;
|
"blockingList": string;
|
||||||
@@ -2315,16 +2411,16 @@ export interface Locale {
|
|||||||
};
|
};
|
||||||
"_notification": {
|
"_notification": {
|
||||||
"fileUploaded": string;
|
"fileUploaded": string;
|
||||||
"youGotMention": string;
|
"youGotMention": ParameterizedString<"name">;
|
||||||
"youGotReply": string;
|
"youGotReply": ParameterizedString<"name">;
|
||||||
"youGotQuote": string;
|
"youGotQuote": ParameterizedString<"name">;
|
||||||
"youRenoted": string;
|
"youRenoted": ParameterizedString<"name">;
|
||||||
"youWereFollowed": string;
|
"youWereFollowed": string;
|
||||||
"youReceivedFollowRequest": string;
|
"youReceivedFollowRequest": string;
|
||||||
"yourFollowRequestAccepted": string;
|
"yourFollowRequestAccepted": string;
|
||||||
"pollEnded": string;
|
"pollEnded": string;
|
||||||
"newNote": string;
|
"newNote": string;
|
||||||
"unreadAntennaNote": string;
|
"unreadAntennaNote": ParameterizedString<"name">;
|
||||||
"roleAssigned": string;
|
"roleAssigned": string;
|
||||||
"emptyPushNotificationMessage": string;
|
"emptyPushNotificationMessage": string;
|
||||||
"achievementEarned": string;
|
"achievementEarned": string;
|
||||||
@@ -2332,9 +2428,9 @@ export interface Locale {
|
|||||||
"checkNotificationBehavior": string;
|
"checkNotificationBehavior": string;
|
||||||
"sendTestNotification": string;
|
"sendTestNotification": string;
|
||||||
"notificationWillBeDisplayedLikeThis": string;
|
"notificationWillBeDisplayedLikeThis": string;
|
||||||
"reactedBySomeUsers": string;
|
"reactedBySomeUsers": ParameterizedString<"n">;
|
||||||
"renotedBySomeUsers": string;
|
"renotedBySomeUsers": ParameterizedString<"n">;
|
||||||
"followedBySomeUsers": string;
|
"followedBySomeUsers": ParameterizedString<"n">;
|
||||||
"_types": {
|
"_types": {
|
||||||
"all": string;
|
"all": string;
|
||||||
"note": string;
|
"note": string;
|
||||||
@@ -2347,6 +2443,7 @@ export interface Locale {
|
|||||||
"pollEnded": string;
|
"pollEnded": string;
|
||||||
"receiveFollowRequest": string;
|
"receiveFollowRequest": string;
|
||||||
"followRequestAccepted": string;
|
"followRequestAccepted": string;
|
||||||
|
"roleAssigned": string;
|
||||||
"achievementEarned": string;
|
"achievementEarned": string;
|
||||||
"app": string;
|
"app": string;
|
||||||
};
|
};
|
||||||
@@ -2390,8 +2487,8 @@ export interface Locale {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
"_dialog": {
|
"_dialog": {
|
||||||
"charactersExceeded": string;
|
"charactersExceeded": ParameterizedString<"current" | "max">;
|
||||||
"charactersBelow": string;
|
"charactersBelow": ParameterizedString<"current" | "min">;
|
||||||
};
|
};
|
||||||
"_disabledTimeline": {
|
"_disabledTimeline": {
|
||||||
"title": string;
|
"title": string;
|
||||||
@@ -2536,6 +2633,41 @@ export interface Locale {
|
|||||||
"description": string;
|
"description": string;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
"_reversi": {
|
||||||
|
"reversi": string;
|
||||||
|
"gameSettings": string;
|
||||||
|
"chooseBoard": string;
|
||||||
|
"blackOrWhite": string;
|
||||||
|
"blackIs": ParameterizedString<"name">;
|
||||||
|
"rules": string;
|
||||||
|
"thisGameIsStartedSoon": string;
|
||||||
|
"waitingForOther": string;
|
||||||
|
"waitingForMe": string;
|
||||||
|
"waitingBoth": string;
|
||||||
|
"ready": string;
|
||||||
|
"cancelReady": string;
|
||||||
|
"opponentTurn": string;
|
||||||
|
"myTurn": string;
|
||||||
|
"turnOf": ParameterizedString<"name">;
|
||||||
|
"pastTurnOf": ParameterizedString<"name">;
|
||||||
|
"surrender": string;
|
||||||
|
"surrendered": string;
|
||||||
|
"drawn": string;
|
||||||
|
"won": ParameterizedString<"name">;
|
||||||
|
"black": string;
|
||||||
|
"white": string;
|
||||||
|
"total": string;
|
||||||
|
"turnCount": ParameterizedString<"count">;
|
||||||
|
"myGames": string;
|
||||||
|
"allGames": string;
|
||||||
|
"ended": string;
|
||||||
|
"playing": string;
|
||||||
|
"isLlotheo": string;
|
||||||
|
"loopedMap": string;
|
||||||
|
"canPutEverywhere": string;
|
||||||
|
"freeMatch": string;
|
||||||
|
"lookingForPlayer": string;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
declare const locales: {
|
declare const locales: {
|
||||||
[lang: string]: Locale;
|
[lang: string]: Locale;
|
||||||
|
|||||||
@@ -379,6 +379,11 @@ hcaptcha: "hCaptcha"
|
|||||||
enableHcaptcha: "hCaptchaを有効にする"
|
enableHcaptcha: "hCaptchaを有効にする"
|
||||||
hcaptchaSiteKey: "サイトキー"
|
hcaptchaSiteKey: "サイトキー"
|
||||||
hcaptchaSecretKey: "シークレットキー"
|
hcaptchaSecretKey: "シークレットキー"
|
||||||
|
mcaptcha: "mCaptcha"
|
||||||
|
enableMcaptcha: "mCaptchaを有効にする"
|
||||||
|
mcaptchaSiteKey: "サイトキー"
|
||||||
|
mcaptchaSecretKey: "シークレットキー"
|
||||||
|
mcaptchaInstanceUrl: "mCaptchaのインスタンスのURL"
|
||||||
recaptcha: "reCAPTCHA"
|
recaptcha: "reCAPTCHA"
|
||||||
enableRecaptcha: "reCAPTCHAを有効にする"
|
enableRecaptcha: "reCAPTCHAを有効にする"
|
||||||
recaptchaSiteKey: "サイトキー"
|
recaptchaSiteKey: "サイトキー"
|
||||||
@@ -626,6 +631,7 @@ medium: "中"
|
|||||||
small: "小"
|
small: "小"
|
||||||
generateAccessToken: "アクセストークンの発行"
|
generateAccessToken: "アクセストークンの発行"
|
||||||
permission: "権限"
|
permission: "権限"
|
||||||
|
adminPermission: "管理者権限"
|
||||||
enableAll: "全て有効にする"
|
enableAll: "全て有効にする"
|
||||||
disableAll: "全て無効にする"
|
disableAll: "全て無効にする"
|
||||||
tokenRequested: "アカウントへのアクセス許可"
|
tokenRequested: "アカウントへのアクセス許可"
|
||||||
@@ -669,6 +675,7 @@ useGlobalSettingDesc: "オンにすると、アカウントの通知設定が使
|
|||||||
other: "その他"
|
other: "その他"
|
||||||
regenerateLoginToken: "ログイントークンを再生成"
|
regenerateLoginToken: "ログイントークンを再生成"
|
||||||
regenerateLoginTokenDescription: "ログインに使用される内部トークンを再生成します。通常この操作を行う必要はありません。再生成すると、全てのデバイスでログアウトされます。"
|
regenerateLoginTokenDescription: "ログインに使用される内部トークンを再生成します。通常この操作を行う必要はありません。再生成すると、全てのデバイスでログアウトされます。"
|
||||||
|
theKeywordWhenSearchingForCustomEmoji: "カスタム絵文字を検索する時のキーワードになります。"
|
||||||
setMultipleBySeparatingWithSpace: "スペースで区切って複数設定できます。"
|
setMultipleBySeparatingWithSpace: "スペースで区切って複数設定できます。"
|
||||||
fileIdOrUrl: "ファイルIDまたはURL"
|
fileIdOrUrl: "ファイルIDまたはURL"
|
||||||
behavior: "動作"
|
behavior: "動作"
|
||||||
@@ -1051,6 +1058,8 @@ limitWidthOfReaction: "リアクションの最大横幅を制限し、縮小し
|
|||||||
noteIdOrUrl: "ノートIDまたはURL"
|
noteIdOrUrl: "ノートIDまたはURL"
|
||||||
video: "動画"
|
video: "動画"
|
||||||
videos: "動画"
|
videos: "動画"
|
||||||
|
audio: "音声"
|
||||||
|
audioFiles: "音声"
|
||||||
dataSaver: "データセーバー"
|
dataSaver: "データセーバー"
|
||||||
accountMigration: "アカウントの移行"
|
accountMigration: "アカウントの移行"
|
||||||
accountMoved: "このユーザーは新しいアカウントに移行しました:"
|
accountMoved: "このユーザーは新しいアカウントに移行しました:"
|
||||||
@@ -1181,6 +1190,25 @@ remainingN: "残り: {n}"
|
|||||||
overwriteContentConfirm: "現在の内容に上書きされますがよろしいですか?"
|
overwriteContentConfirm: "現在の内容に上書きされますがよろしいですか?"
|
||||||
seasonalScreenEffect: "季節に応じた画面の演出"
|
seasonalScreenEffect: "季節に応じた画面の演出"
|
||||||
decorate: "デコる"
|
decorate: "デコる"
|
||||||
|
addMfmFunction: "装飾を追加"
|
||||||
|
enableQuickAddMfmFunction: "高度なMFMのピッカーを表示する"
|
||||||
|
bubbleGame: "バブルゲーム"
|
||||||
|
sfx: "効果音"
|
||||||
|
soundWillBePlayed: "サウンドが再生されます"
|
||||||
|
showReplay: "リプレイを見る"
|
||||||
|
replay: "リプレイ"
|
||||||
|
replaying: "リプレイ中"
|
||||||
|
ranking: "ランキング"
|
||||||
|
lastNDays: "直近{n}日"
|
||||||
|
backToTitle: "タイトルへ"
|
||||||
|
enableHorizontalSwipe: "スワイプしてタブを切り替える"
|
||||||
|
|
||||||
|
_bubbleGame:
|
||||||
|
howToPlay: "遊び方"
|
||||||
|
_howToPlay:
|
||||||
|
section1: "位置を調整してハコにモノを落とします。"
|
||||||
|
section2: "同じ種類のモノがくっつくと別のモノに変化して、スコアが得られます。"
|
||||||
|
section3: "モノがハコからあふれるとゲームオーバーです。ハコからあふれないようにしつつモノを融合させてハイスコアを目指そう!"
|
||||||
|
|
||||||
_announcement:
|
_announcement:
|
||||||
forExistingUsers: "既存ユーザーのみ"
|
forExistingUsers: "既存ユーザーのみ"
|
||||||
@@ -1559,6 +1587,13 @@ _achievements:
|
|||||||
_tutorialCompleted:
|
_tutorialCompleted:
|
||||||
title: "Misskey初心者講座 修了証"
|
title: "Misskey初心者講座 修了証"
|
||||||
description: "チュートリアルを完了した"
|
description: "チュートリアルを完了した"
|
||||||
|
_bubbleGameExplodingHead:
|
||||||
|
title: "🤯"
|
||||||
|
description: "バブルゲームで最も大きいモノを出した"
|
||||||
|
_bubbleGameDoubleExplodingHead:
|
||||||
|
title: "ダブル🤯"
|
||||||
|
description: "バブルゲームで最も大きいモノを2つ同時に出した"
|
||||||
|
flavor: "これくらいの おべんとばこに 🤯 🤯 ちょっとつめて"
|
||||||
|
|
||||||
_role:
|
_role:
|
||||||
new: "ロールの作成"
|
new: "ロールの作成"
|
||||||
@@ -1652,6 +1687,7 @@ _emailUnavailable:
|
|||||||
disposable: "恒久的に使用可能なアドレスではありません"
|
disposable: "恒久的に使用可能なアドレスではありません"
|
||||||
mx: "正しいメールサーバーではありません"
|
mx: "正しいメールサーバーではありません"
|
||||||
smtp: "メールサーバーが応答しません"
|
smtp: "メールサーバーが応答しません"
|
||||||
|
banned: "このメールアドレスでは登録できません"
|
||||||
|
|
||||||
_ffVisibility:
|
_ffVisibility:
|
||||||
public: "公開"
|
public: "公開"
|
||||||
@@ -1970,6 +2006,55 @@ _permissions:
|
|||||||
"write:flash": "Playを操作する"
|
"write:flash": "Playを操作する"
|
||||||
"read:flash-likes": "Playのいいねを見る"
|
"read:flash-likes": "Playのいいねを見る"
|
||||||
"write:flash-likes": "Playのいいねを操作する"
|
"write:flash-likes": "Playのいいねを操作する"
|
||||||
|
"read:admin:abuse-user-reports": "ユーザーからの通報を見る"
|
||||||
|
"write:admin:delete-account": "ユーザーアカウントを削除する"
|
||||||
|
"write:admin:delete-all-files-of-a-user": "ユーザーのすべてのファイルを削除する"
|
||||||
|
"read:admin:index-stats": "データベースインデックスに関する情報を見る"
|
||||||
|
"read:admin:table-stats": "データベーステーブルに関する情報を見る"
|
||||||
|
"read:admin:user-ips": "ユーザーのIPアドレスを見る"
|
||||||
|
"read:admin:meta": "インスタンスのメタデータを見る"
|
||||||
|
"write:admin:reset-password": "ユーザーのパスワードをリセットする"
|
||||||
|
"write:admin:resolve-abuse-user-report": "ユーザーからの通報を解決する"
|
||||||
|
"write:admin:send-email": "メールを送る"
|
||||||
|
"read:admin:server-info": "サーバーの情報を見る"
|
||||||
|
"read:admin:show-moderation-log": "モデレーションログを見る"
|
||||||
|
"read:admin:show-user": "ユーザーのプライベートな情報を見る"
|
||||||
|
"read:admin:show-users": "ユーザーのプライベートな情報を見る"
|
||||||
|
"write:admin:suspend-user": "ユーザーを凍結する"
|
||||||
|
"write:admin:unset-user-avatar": "ユーザーのアバターを削除する"
|
||||||
|
"write:admin:unset-user-banner": "ユーザーのバーナーを削除する"
|
||||||
|
"write:admin:unsuspend-user": "ユーザーの凍結を解除する"
|
||||||
|
"write:admin:meta": "インスタンスのメタデータを操作する"
|
||||||
|
"write:admin:user-note": "モデレーションノートを操作する"
|
||||||
|
"write:admin:roles": "ロールを操作する"
|
||||||
|
"read:admin:roles": "ロールを見る"
|
||||||
|
"write:admin:relays": "リレーを操作する"
|
||||||
|
"read:admin:relays": "リレーを見る"
|
||||||
|
"write:admin:invite-codes": "招待コードを操作する"
|
||||||
|
"read:admin:invite-codes": "招待コードを見る"
|
||||||
|
"write:admin:announcements": "お知らせを操作する"
|
||||||
|
"read:admin:announcements": "お知らせを見る"
|
||||||
|
"write:admin:avatar-decorations": "アバターデコレーションを操作する"
|
||||||
|
"read:admin:avatar-decorations": "アバターデコレーションを見る"
|
||||||
|
"write:admin:federation": "連合に関する情報を操作する"
|
||||||
|
"write:admin:account": "ユーザーアカウントを操作する"
|
||||||
|
"read:admin:account": "ユーザーに関する情報を見る"
|
||||||
|
"write:admin:emoji": "絵文字を操作する"
|
||||||
|
"read:admin:emoji": "絵文字を見る"
|
||||||
|
"write:admin:queue": "ジョブキューを操作する"
|
||||||
|
"read:admin:queue": "ジョブキューに関する情報を見る"
|
||||||
|
"write:admin:promo": "プロモーションノートを操作する"
|
||||||
|
"write:admin:drive": "ユーザーのドライブを操作する"
|
||||||
|
"read:admin:drive": "ユーザーのドライブの関する情報を見る"
|
||||||
|
"read:admin:stream": "管理者用のWebsocket APIを使う"
|
||||||
|
"write:admin:ad": "広告を操作する"
|
||||||
|
"read:admin:ad": "広告を見る"
|
||||||
|
"write:invite-codes": "招待コードを作成する"
|
||||||
|
"read:invite-codes": "招待コードを取得する"
|
||||||
|
"write:clip-favorite": "クリップのいいねを操作する"
|
||||||
|
"read:clip-favorite": "クリップのいいねを見る"
|
||||||
|
"read:federation": "連合に関する情報を取得する"
|
||||||
|
"write:report-abuse": "違反を報告する"
|
||||||
|
|
||||||
_auth:
|
_auth:
|
||||||
shareAccessTitle: "アプリへのアクセス許可"
|
shareAccessTitle: "アプリへのアクセス許可"
|
||||||
@@ -2101,6 +2186,7 @@ _profile:
|
|||||||
_exportOrImport:
|
_exportOrImport:
|
||||||
allNotes: "全てのノート"
|
allNotes: "全てのノート"
|
||||||
favoritedNotes: "お気に入りにしたノート"
|
favoritedNotes: "お気に入りにしたノート"
|
||||||
|
clips: "クリップ"
|
||||||
followingList: "フォロー"
|
followingList: "フォロー"
|
||||||
muteList: "ミュート"
|
muteList: "ミュート"
|
||||||
blockingList: "ブロック"
|
blockingList: "ブロック"
|
||||||
@@ -2250,6 +2336,7 @@ _notification:
|
|||||||
pollEnded: "アンケートが終了"
|
pollEnded: "アンケートが終了"
|
||||||
receiveFollowRequest: "フォロー申請を受け取った"
|
receiveFollowRequest: "フォロー申請を受け取った"
|
||||||
followRequestAccepted: "フォローが受理された"
|
followRequestAccepted: "フォローが受理された"
|
||||||
|
roleAssigned: "ロールが付与された"
|
||||||
achievementEarned: "実績の獲得"
|
achievementEarned: "実績の獲得"
|
||||||
app: "連携アプリからの通知"
|
app: "連携アプリからの通知"
|
||||||
|
|
||||||
@@ -2419,3 +2506,38 @@ _dataSaver:
|
|||||||
_code:
|
_code:
|
||||||
title: "コードハイライト"
|
title: "コードハイライト"
|
||||||
description: "MFMなどでコードハイライト記法が使われている場合、タップするまで読み込まれなくなります。コードハイライトではハイライトする言語ごとにその定義ファイルを読み込む必要がありますが、それらが自動で読み込まれなくなるため、通信量の削減が見込めます。"
|
description: "MFMなどでコードハイライト記法が使われている場合、タップするまで読み込まれなくなります。コードハイライトではハイライトする言語ごとにその定義ファイルを読み込む必要がありますが、それらが自動で読み込まれなくなるため、通信量の削減が見込めます。"
|
||||||
|
|
||||||
|
_reversi:
|
||||||
|
reversi: "リバーシ"
|
||||||
|
gameSettings: "対局の設定"
|
||||||
|
chooseBoard: "ボードを選択"
|
||||||
|
blackOrWhite: "先行/後攻"
|
||||||
|
blackIs: "{name}が黒(先行)"
|
||||||
|
rules: "ルール"
|
||||||
|
thisGameIsStartedSoon: "対局はまもなく開始されます"
|
||||||
|
waitingForOther: "相手の準備が完了するのを待っています"
|
||||||
|
waitingForMe: "あなたの準備が完了するのを待っています"
|
||||||
|
waitingBoth: "準備してください"
|
||||||
|
ready: "準備完了"
|
||||||
|
cancelReady: "準備を再開"
|
||||||
|
opponentTurn: "相手のターンです"
|
||||||
|
myTurn: "あなたのターンです"
|
||||||
|
turnOf: "{name}のターンです"
|
||||||
|
pastTurnOf: "{name}のターン"
|
||||||
|
surrender: "投了"
|
||||||
|
surrendered: "投了により"
|
||||||
|
drawn: "引き分け"
|
||||||
|
won: "{name}の勝ち"
|
||||||
|
black: "黒"
|
||||||
|
white: "白"
|
||||||
|
total: "合計"
|
||||||
|
turnCount: "{count}ターン目"
|
||||||
|
myGames: "自分の対局"
|
||||||
|
allGames: "みんなの対局"
|
||||||
|
ended: "終了"
|
||||||
|
playing: "対局中"
|
||||||
|
isLlotheo: "石の少ない方が勝ち(ロセオ)"
|
||||||
|
loopedMap: "ループマップ"
|
||||||
|
canPutEverywhere: "どこでも置けるモード"
|
||||||
|
freeMatch: "フリーマッチ"
|
||||||
|
lookingForPlayer: "対戦相手を探しています"
|
||||||
|
|||||||
@@ -260,6 +260,7 @@ removed: "뭉캣십니다"
|
|||||||
removeAreYouSure: "‘{x}’(얼)럴 뭉캡니꺼?"
|
removeAreYouSure: "‘{x}’(얼)럴 뭉캡니꺼?"
|
||||||
deleteAreYouSure: "‘{x}’(얼)럴 뭉캡니꺼?"
|
deleteAreYouSure: "‘{x}’(얼)럴 뭉캡니꺼?"
|
||||||
resetAreYouSure: "아시로 데돌립니꺼?"
|
resetAreYouSure: "아시로 데돌립니꺼?"
|
||||||
|
areYouSure: "갠찮십니꺼?"
|
||||||
saved: "저장햇십니다"
|
saved: "저장햇십니다"
|
||||||
messaging: "대화"
|
messaging: "대화"
|
||||||
upload: "올리기"
|
upload: "올리기"
|
||||||
@@ -298,7 +299,7 @@ light: "볽엄"
|
|||||||
dark: "어덥엄"
|
dark: "어덥엄"
|
||||||
lightThemes: "볽언 테마"
|
lightThemes: "볽언 테마"
|
||||||
darkThemes: "어덥언 테마"
|
darkThemes: "어덥언 테마"
|
||||||
syncDeviceDarkMode: "드라이브으 어덥엄 모드하고 같구로 마추기"
|
syncDeviceDarkMode: "디바이스 쪽 어덥엄 모드하고 같구로 마추기"
|
||||||
drive: "드라이브"
|
drive: "드라이브"
|
||||||
fileName: "파일 이럼"
|
fileName: "파일 이럼"
|
||||||
selectFile: "파일 개리기"
|
selectFile: "파일 개리기"
|
||||||
@@ -425,20 +426,151 @@ moderationLogs: "중재 일지"
|
|||||||
nUsersMentioned: "{n}멩이 이바구하고 잇어예"
|
nUsersMentioned: "{n}멩이 이바구하고 잇어예"
|
||||||
securityKeyAndPasskey: "보안키·패스키"
|
securityKeyAndPasskey: "보안키·패스키"
|
||||||
securityKey: "보안키"
|
securityKey: "보안키"
|
||||||
|
lastUsed: "마지막 쓰임"
|
||||||
|
lastUsedAt: "마지막 쓰임: {t}"
|
||||||
unregister: "맨걸기 무루기"
|
unregister: "맨걸기 무루기"
|
||||||
|
passwordLessLogin: "비밀번호 없시 로그인"
|
||||||
|
passwordLessLoginDescription: "비밀번호 말고 보안키나 패스키 같은 것만 써 가 로그인합니다."
|
||||||
|
resetPassword: "비밀번호 재설정"
|
||||||
|
newPasswordIs: "새 비밀번호는 \"{password}\" 입니다"
|
||||||
|
reduceUiAnimation: "화면 움직임 효과들을 수ᇚ후기"
|
||||||
share: "노누기"
|
share: "노누기"
|
||||||
notFound: "몬 찾앗십니다"
|
notFound: "몬 찾앗십니다"
|
||||||
|
notFoundDescription: "고런 주소로 들어가는 하멘은 없십니다."
|
||||||
|
uploadFolder: "기본 업로드 위치"
|
||||||
|
markAsReadAllNotifications: "모든 알림 이럿다고 표시"
|
||||||
|
markAsReadAllUnreadNotes: "모든 글 이럿다고 표시"
|
||||||
|
markAsReadAllTalkMessages: "모든 대화 이럿다고 표시"
|
||||||
help: "도움말"
|
help: "도움말"
|
||||||
|
inputMessageHere: "여따가 메시지를 입력해주이소"
|
||||||
|
close: "닫기"
|
||||||
invites: "초대하기"
|
invites: "초대하기"
|
||||||
|
members: "멤버"
|
||||||
|
transfer: "양도"
|
||||||
|
title: "제목"
|
||||||
|
text: "글"
|
||||||
|
enable: "키기"
|
||||||
|
next: "다음"
|
||||||
retype: "다시 서기"
|
retype: "다시 서기"
|
||||||
noteOf: "{user}님으 노트"
|
noteOf: "{user}님으 노트"
|
||||||
|
quoteAttached: "따옴"
|
||||||
|
quoteQuestion: "따와가 작성하겠십니까?"
|
||||||
|
noMessagesYet: "아직 대화가 없십니다"
|
||||||
|
newMessageExists: "새 메시지가 있십니다"
|
||||||
|
onlyOneFileCanBeAttached: "메시지엔 파일 하나까제밖에 몬 넣십니다"
|
||||||
invitations: "초대하기"
|
invitations: "초대하기"
|
||||||
|
invitationCode: "초대장"
|
||||||
checking: "학인하고 잇십니다"
|
checking: "학인하고 잇십니다"
|
||||||
passwordMatched: "맞십니다"
|
passwordMatched: "맞십니다"
|
||||||
passwordNotMatched: "안 맞십니다"
|
passwordNotMatched: "안 맞십니다"
|
||||||
|
signinFailed: "로그인 몬 했십니다. 고 이름이랑 비밀번호 제대로 썼는가 확인해 주이소."
|
||||||
|
or: "아니면"
|
||||||
language: "언어"
|
language: "언어"
|
||||||
|
uiLanguage: "UI 표시 언어"
|
||||||
|
aboutX: "{x}에 대해서"
|
||||||
|
emojiStyle: "이모지 모양"
|
||||||
|
native: "기본"
|
||||||
|
disableDrawer: "드로어 메뉴 쓰지 않기"
|
||||||
|
showNoteActionsOnlyHover: "마우스 올맀을 때만 노트 액션 버턴 보이기"
|
||||||
|
noHistory: "기록이 없십니다"
|
||||||
|
signinHistory: "로그인 기록"
|
||||||
|
enableAdvancedMfm: "복잡한 MFM 키기"
|
||||||
|
enableAnimatedMfm: "정신사나운 MFM 키기"
|
||||||
|
doing: "잠만예"
|
||||||
|
category: "카테고리"
|
||||||
|
tags: "태그"
|
||||||
|
docSource: "요 문서의 원본"
|
||||||
|
createAccount: "게정 맨걸기"
|
||||||
|
existingAccount: "원래 게정"
|
||||||
|
regenerate: "엎고 다시 맨걸기"
|
||||||
|
fontSize: "글자 크기"
|
||||||
|
mediaListWithOneImageAppearance: "사진 하나짜리 미디어 목록의 높이"
|
||||||
|
limitTo: "{x}로 제한"
|
||||||
|
noFollowRequests: "지둘리는 팔로우 요청이 없십니다"
|
||||||
|
openImageInNewTab: "새 탭서 사진 열기"
|
||||||
|
dashboard: "대시보드"
|
||||||
|
local: "로컬"
|
||||||
remote: "웬겍"
|
remote: "웬겍"
|
||||||
|
total: "합계"
|
||||||
|
weekOverWeekChanges: "저번주보다"
|
||||||
|
dayOverDayChanges: "어제보다"
|
||||||
|
appearance: "모냥"
|
||||||
|
clientSettings: "클라이언트 설정"
|
||||||
|
accountSettings: "게정 설정"
|
||||||
|
promotion: "선전"
|
||||||
|
promote: "선전하기"
|
||||||
|
numberOfDays: "며칠동안"
|
||||||
|
hideThisNote: "요 노트를 수ᇚ후기"
|
||||||
|
showFeaturedNotesInTimeline: "타임라인에다 추천 노트 보이기"
|
||||||
|
objectStorage: "오브젝트 스토리지"
|
||||||
|
useObjectStorage: "오브젝트 스토리지 키기"
|
||||||
|
objectStorageBaseUrl: "Base URL"
|
||||||
|
objectStorageBaseUrlDesc: "오브젝트 (미디어) 참조 링크 만들 때 쓰는 URL임다. CDN 내지 프락시를 쓴다 카멘은 그 URL을 갖다 늫고, 아이면 써먹을 서비스네 가이드를 봐봐가 공개적으로 접근할 수 있는 주소를 여 넣어 주이소. 그니께, 내가 AWS S3을 쓴다 카면은 'https://<bucket>.s3.amazonaws.com', GCS를 쓴다 카면 'https://storage.googleapis.com/<bucket>' 처럼 쓰믄 되입니더."
|
||||||
|
objectStorageBucket: "Bucket"
|
||||||
|
objectStorageBucketDesc: "써먹을 서비스의 바께쓰 이름을 여 써 주이소."
|
||||||
|
objectStoragePrefix: "Prefix"
|
||||||
|
objectStoragePrefixDesc: "요 Prefix 디렉토리 안에다가 파일이 들어감다."
|
||||||
|
objectStorageEndpoint: "Endpoint"
|
||||||
|
objectStorageEndpointDesc: "AWS S3을 쓸라멘 요는 비워두고, 아이멘은 그 서비스 가이드에 맞게 endpoint를 넣어 주이소. '<host>' 내지 '<host>:<port>'처럼 넣십니다."
|
||||||
|
objectStorageRegion: "Region"
|
||||||
|
objectStorageRegionDesc: "'xx-east-1' 같은 region 이름을 옇어 주이소. 써먹을 서비스에 region 개념 같은 게 읎다! 카면은 대신에 'us-east-1'을 옇어 놓으이소. AWS 설정 파일이나 환경 변수를 갖다 끌어다 쓸 거면은 요는 비워 두이소."
|
||||||
|
objectStorageUseSSL: "SSL 쓰기"
|
||||||
|
objectStorageUseSSLDesc: "API 호출할 때 HTTPS 안 쓸거면은 꺼 두이소"
|
||||||
|
objectStorageUseProxy: "연결에 프락시 사용"
|
||||||
|
objectStorageUseProxyDesc: "오브젝트 스토리지 API 호출에 프락시 안 쓸 거면 꺼 두이소"
|
||||||
|
objectStorageSetPublicRead: "업로드할 때 'public-read' 설정하기"
|
||||||
|
s3ForcePathStyleDesc: "s3ForcePathStyle을 키면, 바께쓰 이름을 URL의 호스트명 말고 경로의 일부로써 취급합니다. 셀프 호스트 Minio 같은 걸 굴릴라믄 켜놔야 될 수도 있십니다."
|
||||||
|
serverLogs: "서버 로그"
|
||||||
|
deleteAll: "말캉 뭉캐기"
|
||||||
|
showFixedPostForm: "타임라인 우에 글 작성 칸 박기"
|
||||||
|
showFixedPostFormInChannel: "채널 타임라인 우에 글 작성 칸 박기"
|
||||||
|
withRepliesByDefaultForNewlyFollowed: "팔로우 할 때 기본적으로 답걸도 타임라인에 나오게 하기"
|
||||||
|
newNoteRecived: "새 노트 있어예"
|
||||||
|
sounds: "소리"
|
||||||
|
sound: "소리"
|
||||||
|
listen: "듣기"
|
||||||
|
none: "없음"
|
||||||
|
showInPage: "바닥서 보기"
|
||||||
|
popout: "새 창 열기"
|
||||||
|
volume: "음량"
|
||||||
|
masterVolume: "대빵 음량"
|
||||||
|
notUseSound: "음소거하기"
|
||||||
|
useSoundOnlyWhenActive: "Misskey가 활성화되어 있을 때만 소리 내기"
|
||||||
|
details: "좀 더"
|
||||||
|
chooseEmoji: "이모지 선택"
|
||||||
|
unableToProcess: "작업 다 몬 했십니다"
|
||||||
|
recentUsed: "최근 쓴 놈"
|
||||||
|
install: "설치"
|
||||||
|
uninstall: "삭제"
|
||||||
|
installedApps: "설치된 애플리케이션"
|
||||||
|
nothing: "뭣도 없어예"
|
||||||
|
installedDate: "설치한 날"
|
||||||
|
lastUsedDate: "마지막 사용"
|
||||||
|
state: "상태"
|
||||||
|
sort: "정렬하기"
|
||||||
|
ascendingOrder: "작은 순"
|
||||||
|
descendingOrder: "큰 순"
|
||||||
|
scratchpad: "스크래치 패드"
|
||||||
|
scratchpadDescription: "스크래치 패드는 AiScript를 끼적거리는 창입니더. Misskey랑 갖다 이리저리 상호작용하는 코드를 서가 굴리멘은 그 결과도 바로 확인할 수 있십니다."
|
||||||
|
output: "출력"
|
||||||
script: "스크립트"
|
script: "스크립트"
|
||||||
|
disablePagesScript: "온갖 바닥서 AiScript를 쓰지 않음"
|
||||||
|
updateRemoteUser: "원겍 사용자 근황 알아오기"
|
||||||
|
unsetUserAvatar: "아바타 치우기"
|
||||||
|
unsetUserAvatarConfirm: "아바타 갖다 치울까예?"
|
||||||
|
unsetUserBanner: "배너 치우기"
|
||||||
|
unsetUserBannerConfirm: "배너 갖다 치울까예?"
|
||||||
|
deleteAllFiles: "파일 말캉 뭉캐기"
|
||||||
|
deleteAllFilesConfirm: "파일을 싸그리 다 뭉캐삐릴까예?"
|
||||||
|
removeAllFollowing: "팔로잉 말캉 무루기"
|
||||||
|
removeAllFollowingDescription: "{host} 서버랑 걸어놓은 모든 팔로잉을 무룹니다. 고 서버가 아예 없어지삐맀든가, 그런 경우에 하이소."
|
||||||
|
userSuspended: "요 게정은... 얼어 있십니다."
|
||||||
|
userSilenced: "요 게정은... 수ᇚ혀 있십니다."
|
||||||
|
relays: "릴레이"
|
||||||
|
addRelay: "릴레이 옇기"
|
||||||
|
addedRelays: "옇은 릴레이"
|
||||||
|
enableInfiniteScroll: "알아서 더 보기"
|
||||||
|
author: "맨던 사람"
|
||||||
manage: "간리"
|
manage: "간리"
|
||||||
emailServer: "전자우펜 서버"
|
emailServer: "전자우펜 서버"
|
||||||
email: "전자우펜"
|
email: "전자우펜"
|
||||||
@@ -447,6 +579,8 @@ smtpHost: "호스트 이럼"
|
|||||||
smtpPort: "포트"
|
smtpPort: "포트"
|
||||||
smtpUser: "사용자 이럼"
|
smtpUser: "사용자 이럼"
|
||||||
smtpPass: "비밀번호"
|
smtpPass: "비밀번호"
|
||||||
|
display: "보기"
|
||||||
|
create: "맨걸기"
|
||||||
abuseReports: "신고하기"
|
abuseReports: "신고하기"
|
||||||
reportAbuse: "신고하기"
|
reportAbuse: "신고하기"
|
||||||
reportAbuseRenote: "리노트 신고하기"
|
reportAbuseRenote: "리노트 신고하기"
|
||||||
@@ -458,6 +592,7 @@ forwardReport: "웬겍 서버에 신고 보내기"
|
|||||||
random: "무작이"
|
random: "무작이"
|
||||||
system: "시스템"
|
system: "시스템"
|
||||||
clip: "클립 맨걸기"
|
clip: "클립 맨걸기"
|
||||||
|
createNew: "새로 맨걸기"
|
||||||
notesCount: "노트 수"
|
notesCount: "노트 수"
|
||||||
renotesCount: "리노트한 수"
|
renotesCount: "리노트한 수"
|
||||||
renotedCount: "리노트덴 수"
|
renotedCount: "리노트덴 수"
|
||||||
@@ -483,6 +618,7 @@ tools: "도구"
|
|||||||
like: "좋네예!"
|
like: "좋네예!"
|
||||||
unlike: "좋네예 무루기"
|
unlike: "좋네예 무루기"
|
||||||
numberOfLikes: "좋네예 수"
|
numberOfLikes: "좋네예 수"
|
||||||
|
show: "보기"
|
||||||
roles: "옉할"
|
roles: "옉할"
|
||||||
role: "옉할"
|
role: "옉할"
|
||||||
noRole: "옉할이 없십니다"
|
noRole: "옉할이 없십니다"
|
||||||
@@ -512,6 +648,8 @@ _gallery:
|
|||||||
_email:
|
_email:
|
||||||
_follow:
|
_follow:
|
||||||
title: "새 팔로워가 잇십니다"
|
title: "새 팔로워가 잇십니다"
|
||||||
|
_serverDisconnectedBehavior:
|
||||||
|
reload: "알아서 새로곤침"
|
||||||
_channel:
|
_channel:
|
||||||
removeBanner: "배너 뭉캐기"
|
removeBanner: "배너 뭉캐기"
|
||||||
_theme:
|
_theme:
|
||||||
@@ -581,4 +719,5 @@ _moderationLogTypes:
|
|||||||
suspend: "얼우기"
|
suspend: "얼우기"
|
||||||
deleteNote: "노트 뭉캐기"
|
deleteNote: "노트 뭉캐기"
|
||||||
deleteUserAnnouncement: "사용자 공지 걸 뭉캐기"
|
deleteUserAnnouncement: "사용자 공지 걸 뭉캐기"
|
||||||
|
resetPassword: "비밀번호 재설정"
|
||||||
resolveAbuseReport: "신고 해겔하기"
|
resolveAbuseReport: "신고 해겔하기"
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ quote: "인용"
|
|||||||
inChannelRenote: "채널 내 리노트"
|
inChannelRenote: "채널 내 리노트"
|
||||||
inChannelQuote: "채널 내 인용"
|
inChannelQuote: "채널 내 인용"
|
||||||
pinnedNote: "고정된 노트"
|
pinnedNote: "고정된 노트"
|
||||||
pinned: "프로필에 고정"
|
pinned: "고정하기"
|
||||||
you: "나"
|
you: "나"
|
||||||
clickToShow: "클릭하여 보기"
|
clickToShow: "클릭하여 보기"
|
||||||
sensitive: "열람 주의"
|
sensitive: "열람 주의"
|
||||||
@@ -425,9 +425,9 @@ setupOf2fa: "2단계 인증 설정"
|
|||||||
totp: "인증 앱"
|
totp: "인증 앱"
|
||||||
totpDescription: "인증 앱을 사용하여 일회성 비밀번호 입력"
|
totpDescription: "인증 앱을 사용하여 일회성 비밀번호 입력"
|
||||||
moderator: "모더레이터"
|
moderator: "모더레이터"
|
||||||
moderation: "모더레이션"
|
moderation: "조정"
|
||||||
moderationNote: "모더레이션 노트"
|
moderationNote: "조정 기록"
|
||||||
addModerationNote: "모더레이션 노트 추가하기"
|
addModerationNote: "조정 기록 추가하기"
|
||||||
moderationLogs: "모더레이션 로그"
|
moderationLogs: "모더레이션 로그"
|
||||||
nUsersMentioned: "{n}명이 언급함"
|
nUsersMentioned: "{n}명이 언급함"
|
||||||
securityKeyAndPasskey: "보안 키 또는 패스 키"
|
securityKeyAndPasskey: "보안 키 또는 패스 키"
|
||||||
@@ -513,7 +513,7 @@ dayOverDayChanges: "어제보다"
|
|||||||
appearance: "모양"
|
appearance: "모양"
|
||||||
clientSettings: "클라이언트 설정"
|
clientSettings: "클라이언트 설정"
|
||||||
accountSettings: "계정 설정"
|
accountSettings: "계정 설정"
|
||||||
promotion: "프로모션"
|
promotion: "홍보"
|
||||||
promote: "프로모션하기"
|
promote: "프로모션하기"
|
||||||
numberOfDays: "며칠동안"
|
numberOfDays: "며칠동안"
|
||||||
hideThisNote: "이 노트를 숨기기"
|
hideThisNote: "이 노트를 숨기기"
|
||||||
@@ -863,8 +863,8 @@ devMode: "개발자 모드"
|
|||||||
keepCw: "CW 유지하기"
|
keepCw: "CW 유지하기"
|
||||||
pubSub: "Pub/Sub 계정"
|
pubSub: "Pub/Sub 계정"
|
||||||
lastCommunication: "마지막 통신"
|
lastCommunication: "마지막 통신"
|
||||||
resolved: "해결됨"
|
resolved: "처리함"
|
||||||
unresolved: "해결되지 않음"
|
unresolved: "처리되지 않음"
|
||||||
breakFollow: "팔로워 해제"
|
breakFollow: "팔로워 해제"
|
||||||
breakFollowConfirm: "팔로우를 해제하시겠습니까?"
|
breakFollowConfirm: "팔로우를 해제하시겠습니까?"
|
||||||
itsOn: "켜져 있습니다"
|
itsOn: "켜져 있습니다"
|
||||||
@@ -1179,8 +1179,10 @@ code: "문자열"
|
|||||||
reloadRequiredToApplySettings: "설정을 적용하려면 새로고침을 해야 합니다."
|
reloadRequiredToApplySettings: "설정을 적용하려면 새로고침을 해야 합니다."
|
||||||
remainingN: "나머지: {n}"
|
remainingN: "나머지: {n}"
|
||||||
overwriteContentConfirm: "현재 내용을 덮어쓰기 합니다. 계속 진행하시겠습니까?"
|
overwriteContentConfirm: "현재 내용을 덮어쓰기 합니다. 계속 진행하시겠습니까?"
|
||||||
seasonalScreenEffect: "철에 맞는 화면으로 꾸미기"
|
seasonalScreenEffect: "계절에 따른 효과 보이기"
|
||||||
decorate: "장식하기"
|
decorate: "장식하기"
|
||||||
|
addMfmFunction: "장식 추가하기"
|
||||||
|
enableQuickAddMfmFunction: "상급자용 MFM 선택기 표시하기"
|
||||||
_announcement:
|
_announcement:
|
||||||
forExistingUsers: "기존 유저에게만 알림"
|
forExistingUsers: "기존 유저에게만 알림"
|
||||||
forExistingUsersDescription: "활성화하면 이 공지사항을 게시한 시점에서 이미 가입한 유저에게만 표시합니다. 비활성화하면 게시 후에 가입한 유저에게도 표시합니다."
|
forExistingUsersDescription: "활성화하면 이 공지사항을 게시한 시점에서 이미 가입한 유저에게만 표시합니다. 비활성화하면 게시 후에 가입한 유저에게도 표시합니다."
|
||||||
@@ -1557,7 +1559,7 @@ _role:
|
|||||||
name: "역할 이름"
|
name: "역할 이름"
|
||||||
description: "역할 설명"
|
description: "역할 설명"
|
||||||
permission: "역할 권한"
|
permission: "역할 권한"
|
||||||
descriptionOfPermission: "<b>모더레이터</b>는 기본적인 중재와 관련된 작업을 수행할 수 있습니다.\n<b>관리자</b>는 서버의 모든 설정을 변경할 수 있습니다."
|
descriptionOfPermission: "<b>조정자</b>는 기본적인 조정 작업을 진행할 수 있습니다.\n<b>관리자</b>는 서버의 모든 설정을 변경할 수 있습니다."
|
||||||
assignTarget: "할당 대상"
|
assignTarget: "할당 대상"
|
||||||
descriptionOfAssignTarget: "<b>수동</b>을 선택하면 누가 이 역할에 포함되는지를 수동으로 관리할 수 있습니다.\n<b>조건부</b>를 선택하면 조건을 설정해 일치하는 사용자를 자동으로 포함되게 할 수 있습니다."
|
descriptionOfAssignTarget: "<b>수동</b>을 선택하면 누가 이 역할에 포함되는지를 수동으로 관리할 수 있습니다.\n<b>조건부</b>를 선택하면 조건을 설정해 일치하는 사용자를 자동으로 포함되게 할 수 있습니다."
|
||||||
manual: "수동"
|
manual: "수동"
|
||||||
@@ -1628,7 +1630,7 @@ _role:
|
|||||||
or: "다음을 하나라도 만족"
|
or: "다음을 하나라도 만족"
|
||||||
not: "다음을 만족하지 않음"
|
not: "다음을 만족하지 않음"
|
||||||
_sensitiveMediaDetection:
|
_sensitiveMediaDetection:
|
||||||
description: "기계학습을 통해 자동으로 민감한 미디어를 탐지하여, 모더레이션에 참고할 수 있도록 합니다. 서버의 부하를 약간 증가시킵니다."
|
description: "기계 학습으로 민감한 미디어를 알아서 찾아내어 조정에 참고하도록 합니다. 서버가 부하를 다소 받습니다."
|
||||||
sensitivity: "탐지 민감도"
|
sensitivity: "탐지 민감도"
|
||||||
sensitivityDescription: "민감도가 낮을수록 안전한 미디어가 잘못 탐지될 확률이 줄어들며, 높을수록 민감한 미디어가 탐지되지 않을 확률이 줄어듭니다."
|
sensitivityDescription: "민감도가 낮을수록 안전한 미디어가 잘못 탐지될 확률이 줄어들며, 높을수록 민감한 미디어가 탐지되지 않을 확률이 줄어듭니다."
|
||||||
setSensitiveFlagAutomatically: "자동으로 NSFW로 설정하기"
|
setSensitiveFlagAutomatically: "자동으로 NSFW로 설정하기"
|
||||||
@@ -1641,6 +1643,7 @@ _emailUnavailable:
|
|||||||
disposable: "임시 이메일 주소는 사용할 수 없습니다"
|
disposable: "임시 이메일 주소는 사용할 수 없습니다"
|
||||||
mx: "메일 서버가 올바르지 않습니다"
|
mx: "메일 서버가 올바르지 않습니다"
|
||||||
smtp: "메일 서버가 응답하지 않습니다"
|
smtp: "메일 서버가 응답하지 않습니다"
|
||||||
|
banned: "이 메일 주소는 사용할 수 없습니다"
|
||||||
_ffVisibility:
|
_ffVisibility:
|
||||||
public: "공개"
|
public: "공개"
|
||||||
followers: "팔로워에게만 공개"
|
followers: "팔로워에게만 공개"
|
||||||
@@ -1932,6 +1935,55 @@ _permissions:
|
|||||||
"write:flash": "Play를 조작합니다"
|
"write:flash": "Play를 조작합니다"
|
||||||
"read:flash-likes": "Play의 좋아요를 봅니다"
|
"read:flash-likes": "Play의 좋아요를 봅니다"
|
||||||
"write:flash-likes": "Play의 좋아요를 조작합니다"
|
"write:flash-likes": "Play의 좋아요를 조작합니다"
|
||||||
|
"read:admin:abuse-user-reports": "사용자 신고 보기"
|
||||||
|
"write:admin:delete-account": "사용자 계정 삭제하기"
|
||||||
|
"write:admin:delete-all-files-of-a-user": "모든 사용자 파일 삭제하기"
|
||||||
|
"read:admin:index-stats": "데이터베이스 색인 정보 보기"
|
||||||
|
"read:admin:table-stats": "데이터베이스 테이블 정보 보기"
|
||||||
|
"read:admin:user-ips": "사용자 IP 주소 보기"
|
||||||
|
"read:admin:meta": "인스턴스 메타데이터 보기"
|
||||||
|
"write:admin:reset-password": "사용자 비밀번호 재설정하기"
|
||||||
|
"write:admin:resolve-abuse-user-report": "사용자 신고 처리하기"
|
||||||
|
"write:admin:send-email": "이메일 보내기"
|
||||||
|
"read:admin:server-info": "서버 정보 보기"
|
||||||
|
"read:admin:show-moderation-log": "조정 기록 보기"
|
||||||
|
"read:admin:show-user": "사용자 개인정보 보기"
|
||||||
|
"read:admin:show-users": "사용자 개인정보 보기"
|
||||||
|
"write:admin:suspend-user": "사용자 정지하기"
|
||||||
|
"write:admin:unset-user-avatar": "사용자 아바타 삭제하기"
|
||||||
|
"write:admin:unset-user-banner": "사용자 배너 삭제하기"
|
||||||
|
"write:admin:unsuspend-user": "사용자 정지 해제하기"
|
||||||
|
"write:admin:meta": "인스턴스 메타데이터 수정하기"
|
||||||
|
"write:admin:user-note": "조정 기록 수정하기"
|
||||||
|
"write:admin:roles": "역할 수정하기"
|
||||||
|
"read:admin:roles": "역할 보기"
|
||||||
|
"write:admin:relays": "릴레이 수정하기"
|
||||||
|
"read:admin:relays": "릴레이 보기"
|
||||||
|
"write:admin:invite-codes": "초대 코드 수정하기"
|
||||||
|
"read:admin:invite-codes": "초대 코드 보기"
|
||||||
|
"write:admin:announcements": "공지사항 수정하기"
|
||||||
|
"read:admin:announcements": "공지사항 보기"
|
||||||
|
"write:admin:avatar-decorations": "아바타 꾸미기 수정하기"
|
||||||
|
"read:admin:avatar-decorations": "아바타 꾸미기 보기"
|
||||||
|
"write:admin:federation": "연합 정보 수정하기"
|
||||||
|
"write:admin:account": "사용자 계정 수정하기"
|
||||||
|
"read:admin:account": "사용자 정보 보기"
|
||||||
|
"write:admin:emoji": "이모지 수정하기"
|
||||||
|
"read:admin:emoji": "이모지 보기"
|
||||||
|
"write:admin:queue": "작업 대기열 수정하기"
|
||||||
|
"read:admin:queue": "작업 대기열 정보 보기"
|
||||||
|
"write:admin:promo": "홍보 기록 수정하기"
|
||||||
|
"write:admin:drive": "사용자 드라이브 수정하기"
|
||||||
|
"read:admin:drive": "사용자 드라이브 정보 보기"
|
||||||
|
"read:admin:stream": "관리자용 Websocket API 사용하기"
|
||||||
|
"write:admin:ad": "광고 수정하기"
|
||||||
|
"read:admin:ad": "광고 보기"
|
||||||
|
"write:invite-codes": "초대 코드 만들기"
|
||||||
|
"read:invite-codes": "초대 코드 불러오기"
|
||||||
|
"write:clip-favorite": "클립의 좋아요 수정하기"
|
||||||
|
"read:clip-favorite": "클립의 좋아요 보기"
|
||||||
|
"read:federation": "연합 정보 불러오기"
|
||||||
|
"write:report-abuse": "위반 내용 신고하기"
|
||||||
_auth:
|
_auth:
|
||||||
shareAccessTitle: "어플리케이션의 접근 허가"
|
shareAccessTitle: "어플리케이션의 접근 허가"
|
||||||
shareAccess: "\"{name}\" 이 계정에 접근하는 것을 허용하시겠습니까?"
|
shareAccess: "\"{name}\" 이 계정에 접근하는 것을 허용하시겠습니까?"
|
||||||
@@ -2171,6 +2223,7 @@ _notification:
|
|||||||
pollEnded: "투표 결과가 발표되었습니다"
|
pollEnded: "투표 결과가 발표되었습니다"
|
||||||
newNote: "새 게시물"
|
newNote: "새 게시물"
|
||||||
unreadAntennaNote: "안테나 {name}"
|
unreadAntennaNote: "안테나 {name}"
|
||||||
|
roleAssigned: "역할이 부여 되었습니다."
|
||||||
emptyPushNotificationMessage: "푸시 알림이 갱신되었습니다"
|
emptyPushNotificationMessage: "푸시 알림이 갱신되었습니다"
|
||||||
achievementEarned: "도전 과제를 달성했습니다"
|
achievementEarned: "도전 과제를 달성했습니다"
|
||||||
testNotification: "알림 테스트"
|
testNotification: "알림 테스트"
|
||||||
@@ -2192,6 +2245,7 @@ _notification:
|
|||||||
pollEnded: "투표가 종료됨"
|
pollEnded: "투표가 종료됨"
|
||||||
receiveFollowRequest: "팔로우 요청을 받았을 때"
|
receiveFollowRequest: "팔로우 요청을 받았을 때"
|
||||||
followRequestAccepted: "팔로우 요청이 승인되었을 때"
|
followRequestAccepted: "팔로우 요청이 승인되었을 때"
|
||||||
|
roleAssigned: "역할이 부여 됨"
|
||||||
achievementEarned: "도전 과제 획득"
|
achievementEarned: "도전 과제 획득"
|
||||||
app: "연동된 앱을 통한 알림"
|
app: "연동된 앱을 통한 알림"
|
||||||
_actions:
|
_actions:
|
||||||
@@ -2264,21 +2318,21 @@ _moderationLogTypes:
|
|||||||
updateCustomEmoji: "커스텀 이모지 수정"
|
updateCustomEmoji: "커스텀 이모지 수정"
|
||||||
deleteCustomEmoji: "커스텀 이모지 삭제"
|
deleteCustomEmoji: "커스텀 이모지 삭제"
|
||||||
updateServerSettings: "서버 설정 갱신"
|
updateServerSettings: "서버 설정 갱신"
|
||||||
updateUserNote: "모더레이션 노트 갱신"
|
updateUserNote: "조정 기록 갱신"
|
||||||
deleteDriveFile: "파일 삭제"
|
deleteDriveFile: "파일 삭제"
|
||||||
deleteNote: "노트 삭제"
|
deleteNote: "노트 삭제"
|
||||||
createGlobalAnnouncement: "전역 공지사항 생성"
|
createGlobalAnnouncement: "모든 공지사항 만들기"
|
||||||
createUserAnnouncement: "유저 공지사항 생성"
|
createUserAnnouncement: "사용자 공지사항 만들기"
|
||||||
updateGlobalAnnouncement: "전역 공지사항 수정"
|
updateGlobalAnnouncement: "모든 공지사항 수정"
|
||||||
updateUserAnnouncement: "유저 공지사항 수정"
|
updateUserAnnouncement: "사용자 공지사항 수정"
|
||||||
deleteGlobalAnnouncement: "전역 공지사항 삭제"
|
deleteGlobalAnnouncement: "모든 공지사항 삭제"
|
||||||
deleteUserAnnouncement: "유저 공지사항 삭제"
|
deleteUserAnnouncement: "사용자 공지사항 삭제"
|
||||||
resetPassword: "비밀번호 재설정"
|
resetPassword: "비밀번호 재설정"
|
||||||
suspendRemoteInstance: "리모트 서버를 정지"
|
suspendRemoteInstance: "리모트 서버를 정지"
|
||||||
unsuspendRemoteInstance: "리모트 서버의 정지를 해제"
|
unsuspendRemoteInstance: "리모트 서버의 정지를 해제"
|
||||||
markSensitiveDriveFile: "파일에 열람주의를 설정"
|
markSensitiveDriveFile: "파일에 열람주의를 설정"
|
||||||
unmarkSensitiveDriveFile: "파일에 열람주의를 해제"
|
unmarkSensitiveDriveFile: "파일에 열람주의를 해제"
|
||||||
resolveAbuseReport: "신고 해결"
|
resolveAbuseReport: "신고 처리"
|
||||||
createInvitation: "초대 코드 생성"
|
createInvitation: "초대 코드 생성"
|
||||||
createAd: "광고 생성"
|
createAd: "광고 생성"
|
||||||
deleteAd: "광고 삭제"
|
deleteAd: "광고 삭제"
|
||||||
|
|||||||
@@ -120,6 +120,12 @@ sensitive: "Содержимое не для всех"
|
|||||||
add: "Добавить"
|
add: "Добавить"
|
||||||
reaction: "Реакции"
|
reaction: "Реакции"
|
||||||
reactions: "Реакции"
|
reactions: "Реакции"
|
||||||
|
emojiPicker: "Палитра эмодзи"
|
||||||
|
pinnedEmojisForReactionSettingDescription: "Здесь можно закрепить эмодзи для реакций"
|
||||||
|
pinnedEmojisSettingDescription: "Здесь можно закрепить эмодзи в общей палитре"
|
||||||
|
emojiPickerDisplay: "Внешний вид палитры"
|
||||||
|
overwriteFromPinnedEmojisForReaction: "Заменить на эмодзи из списка реакций"
|
||||||
|
overwriteFromPinnedEmojis: "Заменить на эмодзи из общего списка закреплённых"
|
||||||
reactionSettingDescription2: "Расставляйте перетаскиванием, удаляйте нажатием, добавляйте кнопкой «+»."
|
reactionSettingDescription2: "Расставляйте перетаскиванием, удаляйте нажатием, добавляйте кнопкой «+»."
|
||||||
rememberNoteVisibility: "Запоминать видимость заметок"
|
rememberNoteVisibility: "Запоминать видимость заметок"
|
||||||
attachCancel: "Удалить вложение"
|
attachCancel: "Удалить вложение"
|
||||||
@@ -1053,6 +1059,8 @@ options: "Настройки ролей"
|
|||||||
specifyUser: "Указанный пользователь"
|
specifyUser: "Указанный пользователь"
|
||||||
failedToPreviewUrl: "Предварительный просмотр недоступен"
|
failedToPreviewUrl: "Предварительный просмотр недоступен"
|
||||||
update: "Обновить"
|
update: "Обновить"
|
||||||
|
rolesThatCanBeUsedThisEmojiAsReaction: "Роли тех, кому можно использовать эти эмодзи как реакцию"
|
||||||
|
rolesThatCanBeUsedThisEmojiAsReactionEmptyDescription: "Если здесь ничего не указать, в качестве реакции эту эмодзи сможет использовать каждый."
|
||||||
later: "Позже"
|
later: "Позже"
|
||||||
goToMisskey: "К Misskey"
|
goToMisskey: "К Misskey"
|
||||||
additionalEmojiDictionary: "Дополнительные словари эмодзи"
|
additionalEmojiDictionary: "Дополнительные словари эмодзи"
|
||||||
|
|||||||
@@ -632,11 +632,11 @@ tokenRequested: "允許存取帳戶"
|
|||||||
pluginTokenRequestedDescription: "此外掛將擁有在此設定的權限。"
|
pluginTokenRequestedDescription: "此外掛將擁有在此設定的權限。"
|
||||||
notificationType: "通知形式"
|
notificationType: "通知形式"
|
||||||
edit: "編輯"
|
edit: "編輯"
|
||||||
emailServer: "電郵伺服器"
|
emailServer: "電子郵件伺服器"
|
||||||
enableEmail: "啟用發送電郵功能"
|
enableEmail: "啟用發送電子郵件功能"
|
||||||
emailConfigInfo: "用於確認電郵地址及密碼重置"
|
emailConfigInfo: "用於確認電子郵件地址及密碼重置"
|
||||||
email: "電子郵件"
|
email: "電子郵件"
|
||||||
emailAddress: "電郵地址"
|
emailAddress: "電子郵件位址"
|
||||||
smtpConfig: "SMTP 伺服器設定"
|
smtpConfig: "SMTP 伺服器設定"
|
||||||
smtpHost: "主機"
|
smtpHost: "主機"
|
||||||
smtpPort: "埠"
|
smtpPort: "埠"
|
||||||
@@ -731,7 +731,7 @@ disableShowingAnimatedImages: "不播放動態圖檔"
|
|||||||
highlightSensitiveMedia: "強調敏感標記"
|
highlightSensitiveMedia: "強調敏感標記"
|
||||||
verificationEmailSent: "已發送驗證電子郵件。請點擊進入電子郵件中的鏈接完成驗證。"
|
verificationEmailSent: "已發送驗證電子郵件。請點擊進入電子郵件中的鏈接完成驗證。"
|
||||||
notSet: "未設定"
|
notSet: "未設定"
|
||||||
emailVerified: "已成功驗證您的電郵"
|
emailVerified: "已成功驗證您的電子郵件地址"
|
||||||
noteFavoritesCount: "我的最愛貼文的數目"
|
noteFavoritesCount: "我的最愛貼文的數目"
|
||||||
pageLikesCount: "頁面被按讚次數"
|
pageLikesCount: "頁面被按讚次數"
|
||||||
pageLikedCount: "頁面被按讚次數"
|
pageLikedCount: "頁面被按讚次數"
|
||||||
@@ -783,7 +783,7 @@ capacity: "容量"
|
|||||||
inUse: "已使用"
|
inUse: "已使用"
|
||||||
editCode: "編輯代碼"
|
editCode: "編輯代碼"
|
||||||
apply: "套用"
|
apply: "套用"
|
||||||
receiveAnnouncementFromInstance: "接收由本實例發出的電郵通知"
|
receiveAnnouncementFromInstance: "接收來自伺服器的通知"
|
||||||
emailNotification: "郵件通知"
|
emailNotification: "郵件通知"
|
||||||
publish: "發布"
|
publish: "發布"
|
||||||
inChannelSearch: "頻道内搜尋"
|
inChannelSearch: "頻道内搜尋"
|
||||||
@@ -955,7 +955,7 @@ cannotUploadBecauseExceedsFileSizeLimit: "由於超過了檔案大小的限制
|
|||||||
beta: "測試版"
|
beta: "測試版"
|
||||||
enableAutoSensitive: "自動 NSFW 判定"
|
enableAutoSensitive: "自動 NSFW 判定"
|
||||||
enableAutoSensitiveDescription: "如果可用,它將使用機器學習技術判斷檔案是否需要標記為敏感。即使關閉此功能,也可能會依實例規則而自動啟用。"
|
enableAutoSensitiveDescription: "如果可用,它將使用機器學習技術判斷檔案是否需要標記為敏感。即使關閉此功能,也可能會依實例規則而自動啟用。"
|
||||||
activeEmailValidationDescription: "積極驗證使用者的電郵地址,以判斷它是否可以通訊。關閉此選項代表只會檢查地址是否符合格式。"
|
activeEmailValidationDescription: "主動地驗證使用者的電子郵件地址,以確定是否是一次性地址以及是否可以真正與其進行通訊。關閉時,僅檢查格式是否正確。"
|
||||||
navbar: "導覽列"
|
navbar: "導覽列"
|
||||||
shuffle: "隨機"
|
shuffle: "隨機"
|
||||||
account: "帳戶"
|
account: "帳戶"
|
||||||
@@ -1181,6 +1181,8 @@ remainingN: "剩餘:{n}"
|
|||||||
overwriteContentConfirm: "確定要覆蓋目前的內容嗎?"
|
overwriteContentConfirm: "確定要覆蓋目前的內容嗎?"
|
||||||
seasonalScreenEffect: "隨季節變換畫面的呈現"
|
seasonalScreenEffect: "隨季節變換畫面的呈現"
|
||||||
decorate: "設置頭像裝飾"
|
decorate: "設置頭像裝飾"
|
||||||
|
addMfmFunction: "插入MFM功能語法"
|
||||||
|
enableQuickAddMfmFunction: "顯示高級MFM選擇器"
|
||||||
_announcement:
|
_announcement:
|
||||||
forExistingUsers: "僅限既有的使用者"
|
forExistingUsers: "僅限既有的使用者"
|
||||||
forExistingUsersDescription: "啟用代表僅向現存使用者顯示;停用代表張貼後註冊的新使用者也會看到。"
|
forExistingUsersDescription: "啟用代表僅向現存使用者顯示;停用代表張貼後註冊的新使用者也會看到。"
|
||||||
@@ -1641,6 +1643,7 @@ _emailUnavailable:
|
|||||||
disposable: "不是永久可用的地址"
|
disposable: "不是永久可用的地址"
|
||||||
mx: "郵件伺服器不正確"
|
mx: "郵件伺服器不正確"
|
||||||
smtp: "郵件伺服器沒有應答"
|
smtp: "郵件伺服器沒有應答"
|
||||||
|
banned: "無法使用此電子郵件地址註冊"
|
||||||
_ffVisibility:
|
_ffVisibility:
|
||||||
public: "公開"
|
public: "公開"
|
||||||
followers: "只有關注您的使用者能看到"
|
followers: "只有關注您的使用者能看到"
|
||||||
@@ -2171,6 +2174,7 @@ _notification:
|
|||||||
pollEnded: "問卷調查已產生結果"
|
pollEnded: "問卷調查已產生結果"
|
||||||
newNote: "新的貼文"
|
newNote: "新的貼文"
|
||||||
unreadAntennaNote: "天線 {name}"
|
unreadAntennaNote: "天線 {name}"
|
||||||
|
roleAssigned: "已授予角色"
|
||||||
emptyPushNotificationMessage: "推送通知已更新"
|
emptyPushNotificationMessage: "推送通知已更新"
|
||||||
achievementEarned: "獲得成就"
|
achievementEarned: "獲得成就"
|
||||||
testNotification: "通知測試"
|
testNotification: "通知測試"
|
||||||
@@ -2192,6 +2196,7 @@ _notification:
|
|||||||
pollEnded: "問卷調查結束"
|
pollEnded: "問卷調查結束"
|
||||||
receiveFollowRequest: "已收到追隨請求"
|
receiveFollowRequest: "已收到追隨請求"
|
||||||
followRequestAccepted: "追隨請求已接受"
|
followRequestAccepted: "追隨請求已接受"
|
||||||
|
roleAssigned: "已授予角色"
|
||||||
achievementEarned: "獲得成就"
|
achievementEarned: "獲得成就"
|
||||||
app: "應用程式通知"
|
app: "應用程式通知"
|
||||||
_actions:
|
_actions:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "misskey",
|
"name": "misskey",
|
||||||
"version": "2023.12.0-beta.6",
|
"version": "2023.12.2",
|
||||||
"codename": "nasubi",
|
"codename": "nasubi",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
"build-assets": "node ./scripts/build-assets.mjs",
|
"build-assets": "node ./scripts/build-assets.mjs",
|
||||||
"build": "pnpm build-pre && pnpm -r build && pnpm build-assets",
|
"build": "pnpm build-pre && pnpm -r build && pnpm build-assets",
|
||||||
"build-storybook": "pnpm --filter frontend build-storybook",
|
"build-storybook": "pnpm --filter frontend build-storybook",
|
||||||
"build-misskey-js-with-types": "pnpm --filter backend build && pnpm --filter backend generate-api-json && ncp packages/backend/built/api.json packages/misskey-js/generator/api.json && pnpm --filter misskey-js update-autogen-code && pnpm --filter misskey-js build",
|
"build-misskey-js-with-types": "pnpm --filter backend build && pnpm --filter backend generate-api-json && ncp packages/backend/built/api.json packages/misskey-js/generator/api.json && pnpm --filter misskey-js update-autogen-code && pnpm --filter misskey-js build && pnpm --filter misskey-js api",
|
||||||
"start": "pnpm check:connect && cd packages/backend && node ./built/boot/entry.js",
|
"start": "pnpm check:connect && cd packages/backend && node ./built/boot/entry.js",
|
||||||
"start:test": "cd packages/backend && cross-env NODE_ENV=test node ./built/boot/entry.js",
|
"start:test": "cd packages/backend && cross-env NODE_ENV=test node ./built/boot/entry.js",
|
||||||
"init": "pnpm migrate",
|
"init": "pnpm migrate",
|
||||||
|
|||||||
@@ -160,7 +160,6 @@ module.exports = {
|
|||||||
testMatch: [
|
testMatch: [
|
||||||
"<rootDir>/test/unit/**/*.ts",
|
"<rootDir>/test/unit/**/*.ts",
|
||||||
"<rootDir>/src/**/*.test.ts",
|
"<rootDir>/src/**/*.test.ts",
|
||||||
"<rootDir>/test/e2e/**/*.ts",
|
|
||||||
],
|
],
|
||||||
|
|
||||||
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
|
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
|
||||||
|
|||||||
15
packages/backend/jest.config.e2e.cjs
Normal file
15
packages/backend/jest.config.e2e.cjs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
/*
|
||||||
|
* For a detailed explanation regarding each configuration property and type check, visit:
|
||||||
|
* https://jestjs.io/docs/en/configuration.html
|
||||||
|
*/
|
||||||
|
|
||||||
|
const base = require('./jest.config.cjs')
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
...base,
|
||||||
|
globalSetup: "<rootDir>/built-test/entry.js",
|
||||||
|
setupFilesAfterEnv: ["<rootDir>/test/jest.setup.ts"],
|
||||||
|
testMatch: [
|
||||||
|
"<rootDir>/test/e2e/**/*.ts",
|
||||||
|
],
|
||||||
|
};
|
||||||
14
packages/backend/jest.config.unit.cjs
Normal file
14
packages/backend/jest.config.unit.cjs
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
/*
|
||||||
|
* For a detailed explanation regarding each configuration property and type check, visit:
|
||||||
|
* https://jestjs.io/docs/en/configuration.html
|
||||||
|
*/
|
||||||
|
|
||||||
|
const base = require('./jest.config.cjs')
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
...base,
|
||||||
|
testMatch: [
|
||||||
|
"<rootDir>/test/unit/**/*.ts",
|
||||||
|
"<rootDir>/src/**/*.test.ts",
|
||||||
|
],
|
||||||
|
};
|
||||||
@@ -24,9 +24,11 @@ export class ffVisibility1702718871541 {
|
|||||||
async down(queryRunner) {
|
async down(queryRunner) {
|
||||||
await queryRunner.query(`CREATE TYPE "public"."user_profile_ffvisibility_enum" AS ENUM('public', 'followers', 'private')`);
|
await queryRunner.query(`CREATE TYPE "public"."user_profile_ffvisibility_enum" AS ENUM('public', 'followers', 'private')`);
|
||||||
await queryRunner.query(`ALTER TABLE "user_profile" ADD "ffVisibility" "public"."user_profile_ffvisibility_enum" NOT NULL DEFAULT 'public'`);
|
await queryRunner.query(`ALTER TABLE "user_profile" ADD "ffVisibility" "public"."user_profile_ffvisibility_enum" NOT NULL DEFAULT 'public'`);
|
||||||
|
|
||||||
await queryRunner.query(`CREATE CAST ("public"."user_profile_followingvisibility_enum" AS "public"."user_profile_ffvisibility_enum") WITH INOUT AS ASSIGNMENT`);
|
await queryRunner.query(`CREATE CAST ("public"."user_profile_followingvisibility_enum" AS "public"."user_profile_ffvisibility_enum") WITH INOUT AS ASSIGNMENT`);
|
||||||
await queryRunner.query(`UPDATE "user_profile" SET ffVisibility = "user_profile"."followingVisibility"`);
|
await queryRunner.query(`UPDATE "user_profile" SET "ffVisibility" = "followingVisibility"`);
|
||||||
await queryRunner.query(`DROP CAST ("public"."user_profile_followingvisibility_enum" AS "public"."user_profile_ffvisibility_enum")`);
|
await queryRunner.query(`DROP CAST ("public"."user_profile_followingvisibility_enum" AS "public"."user_profile_ffvisibility_enum")`);
|
||||||
|
|
||||||
await queryRunner.query(`ALTER TABLE "user_profile" DROP COLUMN "followersVisibility"`);
|
await queryRunner.query(`ALTER TABLE "user_profile" DROP COLUMN "followersVisibility"`);
|
||||||
await queryRunner.query(`ALTER TABLE "user_profile" DROP COLUMN "followingVisibility"`);
|
await queryRunner.query(`ALTER TABLE "user_profile" DROP COLUMN "followingVisibility"`);
|
||||||
await queryRunner.query(`DROP TYPE "public"."user_profile_followersVisibility_enum"`);
|
await queryRunner.query(`DROP TYPE "public"."user_profile_followersVisibility_enum"`);
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
export class bannedEmailDomains1703209889304 {
|
||||||
|
constructor() {
|
||||||
|
this.name = 'bannedEmailDomains1703209889304';
|
||||||
|
}
|
||||||
|
|
||||||
|
async up(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" ADD "bannedEmailDomains" character varying(1024) array NOT NULL DEFAULT '{}'`);
|
||||||
|
}
|
||||||
|
|
||||||
|
async down(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "bannedEmailDomains"`);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
export class SupportTrueMailApi1703658526000 {
|
||||||
|
name = 'SupportTrueMailApi1703658526000'
|
||||||
|
|
||||||
|
async up(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" ADD "truemailInstance" character varying(1024)`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" ADD "truemailAuthKey" character varying(1024)`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" ADD "enableTruemailApi" boolean NOT NULL DEFAULT false`);
|
||||||
|
}
|
||||||
|
|
||||||
|
async down(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "enableTruemailApi"`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "truemailInstance"`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "truemailAuthKey"`);
|
||||||
|
}
|
||||||
|
}
|
||||||
22
packages/backend/migration/1704373210054-support-mcaptcha.js
Normal file
22
packages/backend/migration/1704373210054-support-mcaptcha.js
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
export class SupportMcaptcha1704373210054 {
|
||||||
|
name = 'SupportMcaptcha1704373210054'
|
||||||
|
|
||||||
|
async up(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" ADD "enableMcaptcha" boolean NOT NULL DEFAULT false`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" ADD "mcaptchaSitekey" character varying(1024)`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" ADD "mcaptchaSecretKey" character varying(1024)`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" ADD "mcaptchaInstanceUrl" character varying(1024)`);
|
||||||
|
}
|
||||||
|
|
||||||
|
async down(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "mcaptchaInstanceUrl"`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "mcaptchaSecretKey"`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "mcaptchaSitekey"`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "enableMcaptcha"`);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
export class BubbleGameRecord1704959805077 {
|
||||||
|
name = 'BubbleGameRecord1704959805077'
|
||||||
|
|
||||||
|
async up(queryRunner) {
|
||||||
|
await queryRunner.query(`CREATE TABLE "bubble_game_record" ("id" character varying(32) NOT NULL, "userId" character varying(32) NOT NULL, "seededAt" TIMESTAMP WITH TIME ZONE NOT NULL, "seed" character varying(1024) NOT NULL, "gameVersion" integer NOT NULL, "gameMode" character varying(128) NOT NULL, "score" integer NOT NULL, "logs" jsonb NOT NULL DEFAULT '[]', "isVerified" boolean NOT NULL DEFAULT false, CONSTRAINT "PK_a75395fe404b392e2893b50d7ea" PRIMARY KEY ("id"))`);
|
||||||
|
await queryRunner.query(`CREATE INDEX "IDX_75276757070d21fdfaf4c05290" ON "bubble_game_record" ("userId") `);
|
||||||
|
await queryRunner.query(`CREATE INDEX "IDX_4ae7053179014915d1432d3f40" ON "bubble_game_record" ("seededAt") `);
|
||||||
|
await queryRunner.query(`CREATE INDEX "IDX_26d4ee490b5a487142d35466ee" ON "bubble_game_record" ("score") `);
|
||||||
|
await queryRunner.query(`ALTER TABLE "bubble_game_record" ADD CONSTRAINT "FK_75276757070d21fdfaf4c052909" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE NO ACTION`);
|
||||||
|
}
|
||||||
|
|
||||||
|
async down(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "bubble_game_record" DROP CONSTRAINT "FK_75276757070d21fdfaf4c052909"`);
|
||||||
|
await queryRunner.query(`DROP INDEX "public"."IDX_26d4ee490b5a487142d35466ee"`);
|
||||||
|
await queryRunner.query(`DROP INDEX "public"."IDX_4ae7053179014915d1432d3f40"`);
|
||||||
|
await queryRunner.query(`DROP INDEX "public"."IDX_75276757070d21fdfaf4c05290"`);
|
||||||
|
await queryRunner.query(`DROP TABLE "bubble_game_record"`);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
export class OptimizeNoteIndexForArrayColumns1705222772858 {
|
||||||
|
name = 'OptimizeNoteIndexForArrayColumns1705222772858'
|
||||||
|
|
||||||
|
async up(queryRunner) {
|
||||||
|
await queryRunner.query(`DROP INDEX "public"."IDX_796a8c03959361f97dc2be1d5c"`);
|
||||||
|
await queryRunner.query(`DROP INDEX "public"."IDX_54ebcb6d27222913b908d56fd8"`);
|
||||||
|
await queryRunner.query(`DROP INDEX "public"."IDX_88937d94d7443d9a99a76fa5c0"`);
|
||||||
|
await queryRunner.query(`DROP INDEX "public"."IDX_51c063b6a133a9cb87145450f5"`);
|
||||||
|
await queryRunner.query(`CREATE INDEX "IDX_NOTE_FILE_IDS" ON "note" using gin ("fileIds")`)
|
||||||
|
}
|
||||||
|
|
||||||
|
async down(queryRunner) {
|
||||||
|
await queryRunner.query(`DROP INDEX "IDX_NOTE_FILE_IDS"`)
|
||||||
|
await queryRunner.query(`CREATE INDEX "IDX_51c063b6a133a9cb87145450f5" ON "note" ("fileIds") `);
|
||||||
|
await queryRunner.query(`CREATE INDEX "IDX_88937d94d7443d9a99a76fa5c0" ON "note" ("tags") `);
|
||||||
|
await queryRunner.query(`CREATE INDEX "IDX_54ebcb6d27222913b908d56fd8" ON "note" ("mentions") `);
|
||||||
|
await queryRunner.query(`CREATE INDEX "IDX_796a8c03959361f97dc2be1d5c" ON "note" ("visibleUserIds") `);
|
||||||
|
}
|
||||||
|
}
|
||||||
22
packages/backend/migration/1705475608437-reversi.js
Normal file
22
packages/backend/migration/1705475608437-reversi.js
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
export class Reversi1705475608437 {
|
||||||
|
name = 'Reversi1705475608437'
|
||||||
|
|
||||||
|
async up(queryRunner) {
|
||||||
|
await queryRunner.query(`DROP INDEX "public"."IDX_b46ec40746efceac604142be1c"`);
|
||||||
|
await queryRunner.query(`DROP INDEX "public"."IDX_b604d92d6c7aec38627f6eaf16"`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "reversi_game" DROP COLUMN "createdAt"`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "reversi_matching" DROP COLUMN "createdAt"`);
|
||||||
|
}
|
||||||
|
|
||||||
|
async down(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "reversi_matching" ADD "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "reversi_game" ADD "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL`);
|
||||||
|
await queryRunner.query(`CREATE INDEX "IDX_b604d92d6c7aec38627f6eaf16" ON "reversi_matching" ("createdAt") `);
|
||||||
|
await queryRunner.query(`CREATE INDEX "IDX_b46ec40746efceac604142be1c" ON "reversi_game" ("createdAt") `);
|
||||||
|
}
|
||||||
|
}
|
||||||
18
packages/backend/migration/1705654039457-reversi-2.js
Normal file
18
packages/backend/migration/1705654039457-reversi-2.js
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
export class Reversi21705654039457 {
|
||||||
|
name = 'Reversi21705654039457'
|
||||||
|
|
||||||
|
async up(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "reversi_game" RENAME COLUMN "user1Accepted" TO "user1Ready"`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "reversi_game" RENAME COLUMN "user2Accepted" TO "user2Ready"`);
|
||||||
|
}
|
||||||
|
|
||||||
|
async down(queryRunner) {
|
||||||
|
await queryRunner.query(`ALTER TABLE "reversi_game" RENAME COLUMN "user1Ready" TO "user1Accepted"`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "reversi_game" RENAME COLUMN "user2Ready" TO "user2Accepted"`);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
"revert": "pnpm typeorm migration:revert -d ormconfig.js",
|
"revert": "pnpm typeorm migration:revert -d ormconfig.js",
|
||||||
"check:connect": "node ./check_connect.js",
|
"check:connect": "node ./check_connect.js",
|
||||||
"build": "swc src -d built -D",
|
"build": "swc src -d built -D",
|
||||||
|
"build:test": "swc test-server -d built-test -D --config-file test-server/.swcrc",
|
||||||
"watch:swc": "swc src -d built -D -w",
|
"watch:swc": "swc src -d built -D -w",
|
||||||
"build:tsc": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
|
"build:tsc": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
|
||||||
"watch": "node watch.mjs",
|
"watch": "node watch.mjs",
|
||||||
@@ -21,11 +22,15 @@
|
|||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
"eslint": "eslint --quiet \"src/**/*.ts\"",
|
"eslint": "eslint --quiet \"src/**/*.ts\"",
|
||||||
"lint": "pnpm typecheck && pnpm eslint",
|
"lint": "pnpm typecheck && pnpm eslint",
|
||||||
"jest": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --forceExit",
|
"jest": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --forceExit --config jest.config.unit.cjs",
|
||||||
"jest-and-coverage": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --coverage --forceExit",
|
"jest:e2e": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --forceExit --config jest.config.e2e.cjs",
|
||||||
|
"jest-and-coverage": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --coverage --forceExit --config jest.config.unit.cjs",
|
||||||
|
"jest-and-coverage:e2e": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --coverage --forceExit --config jest.config.e2e.cjs",
|
||||||
"jest-clear": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --clearCache",
|
"jest-clear": "cross-env NODE_ENV=test node --experimental-vm-modules --experimental-import-meta-resolve node_modules/jest/bin/jest.js --clearCache",
|
||||||
"test": "pnpm jest",
|
"test": "pnpm jest",
|
||||||
|
"test:e2e": "pnpm build && pnpm build:test && pnpm jest:e2e",
|
||||||
"test-and-coverage": "pnpm jest-and-coverage",
|
"test-and-coverage": "pnpm jest-and-coverage",
|
||||||
|
"test-and-coverage:e2e": "pnpm build && pnpm build:test && pnpm jest-and-coverage:e2e",
|
||||||
"generate-api-json": "node ./generate_api_json.js"
|
"generate-api-json": "node ./generate_api_json.js"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
@@ -68,12 +73,14 @@
|
|||||||
"@discordapp/twemoji": "15.0.2",
|
"@discordapp/twemoji": "15.0.2",
|
||||||
"@fastify/accepts": "4.3.0",
|
"@fastify/accepts": "4.3.0",
|
||||||
"@fastify/cookie": "9.2.0",
|
"@fastify/cookie": "9.2.0",
|
||||||
"@fastify/cors": "8.4.2",
|
"@fastify/cors": "8.5.0",
|
||||||
"@fastify/express": "2.3.0",
|
"@fastify/express": "2.3.0",
|
||||||
"@fastify/http-proxy": "9.3.0",
|
"@fastify/http-proxy": "9.3.0",
|
||||||
"@fastify/multipart": "8.0.0",
|
"@fastify/multipart": "8.0.0",
|
||||||
"@fastify/static": "6.12.0",
|
"@fastify/static": "6.12.0",
|
||||||
"@fastify/view": "8.2.0",
|
"@fastify/view": "8.2.0",
|
||||||
|
"@misskey-dev/sharp-read-bmp": "^1.1.1",
|
||||||
|
"@misskey-dev/summaly": "^5.0.3",
|
||||||
"@nestjs/common": "10.2.10",
|
"@nestjs/common": "10.2.10",
|
||||||
"@nestjs/core": "10.2.10",
|
"@nestjs/core": "10.2.10",
|
||||||
"@nestjs/testing": "10.2.10",
|
"@nestjs/testing": "10.2.10",
|
||||||
@@ -100,6 +107,7 @@
|
|||||||
"cli-highlight": "2.1.11",
|
"cli-highlight": "2.1.11",
|
||||||
"color-convert": "2.0.1",
|
"color-convert": "2.0.1",
|
||||||
"content-disposition": "0.5.4",
|
"content-disposition": "0.5.4",
|
||||||
|
"crc-32": "^1.2.2",
|
||||||
"date-fns": "2.30.0",
|
"date-fns": "2.30.0",
|
||||||
"deep-email-validator": "0.1.21",
|
"deep-email-validator": "0.1.21",
|
||||||
"fastify": "4.24.3",
|
"fastify": "4.24.3",
|
||||||
@@ -126,6 +134,7 @@
|
|||||||
"microformats-parser": "2.0.2",
|
"microformats-parser": "2.0.2",
|
||||||
"mime-types": "2.1.35",
|
"mime-types": "2.1.35",
|
||||||
"misskey-js": "workspace:*",
|
"misskey-js": "workspace:*",
|
||||||
|
"misskey-reversi": "workspace:*",
|
||||||
"ms": "3.0.0-canary.1",
|
"ms": "3.0.0-canary.1",
|
||||||
"nanoid": "5.0.4",
|
"nanoid": "5.0.4",
|
||||||
"nested-property": "4.0.0",
|
"nested-property": "4.0.0",
|
||||||
@@ -157,11 +166,9 @@
|
|||||||
"sanitize-html": "2.11.0",
|
"sanitize-html": "2.11.0",
|
||||||
"secure-json-parse": "2.7.0",
|
"secure-json-parse": "2.7.0",
|
||||||
"sharp": "0.32.6",
|
"sharp": "0.32.6",
|
||||||
"sharp-read-bmp": "github:misskey-dev/sharp-read-bmp",
|
|
||||||
"slacc": "0.0.10",
|
"slacc": "0.0.10",
|
||||||
"strict-event-emitter-types": "2.0.0",
|
"strict-event-emitter-types": "2.0.0",
|
||||||
"stringz": "2.1.0",
|
"stringz": "2.1.0",
|
||||||
"summaly": "github:misskey-dev/summaly",
|
|
||||||
"systeminformation": "5.21.20",
|
"systeminformation": "5.21.20",
|
||||||
"tinycolor2": "1.6.0",
|
"tinycolor2": "1.6.0",
|
||||||
"tmp": "0.2.1",
|
"tmp": "0.2.1",
|
||||||
@@ -177,6 +184,8 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@jest/globals": "29.7.0",
|
"@jest/globals": "29.7.0",
|
||||||
|
"@misskey-dev/eslint-plugin": "^1.0.0",
|
||||||
|
"@nestjs/platform-express": "^10.3.0",
|
||||||
"@simplewebauthn/typescript-types": "8.3.4",
|
"@simplewebauthn/typescript-types": "8.3.4",
|
||||||
"@swc/jest": "0.2.29",
|
"@swc/jest": "0.2.29",
|
||||||
"@types/accepts": "1.3.7",
|
"@types/accepts": "1.3.7",
|
||||||
@@ -225,9 +234,11 @@
|
|||||||
"eslint": "8.56.0",
|
"eslint": "8.56.0",
|
||||||
"eslint-plugin-import": "2.29.1",
|
"eslint-plugin-import": "2.29.1",
|
||||||
"execa": "8.0.1",
|
"execa": "8.0.1",
|
||||||
|
"fkill": "^9.0.0",
|
||||||
"jest": "29.7.0",
|
"jest": "29.7.0",
|
||||||
"jest-mock": "29.7.0",
|
"jest-mock": "29.7.0",
|
||||||
"nodemon": "3.0.2",
|
"nodemon": "3.0.2",
|
||||||
|
"pid-port": "^1.0.0",
|
||||||
"simple-oauth2": "5.0.0"
|
"simple-oauth2": "5.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { setTimeout } from 'node:timers/promises';
|
|
||||||
import { Global, Inject, Module } from '@nestjs/common';
|
import { Global, Inject, Module } from '@nestjs/common';
|
||||||
import * as Redis from 'ioredis';
|
import * as Redis from 'ioredis';
|
||||||
import { DataSource } from 'typeorm';
|
import { DataSource } from 'typeorm';
|
||||||
@@ -12,6 +11,7 @@ import { DI } from './di-symbols.js';
|
|||||||
import { Config, loadConfig } from './config.js';
|
import { Config, loadConfig } from './config.js';
|
||||||
import { createPostgresDataSource } from './postgres.js';
|
import { createPostgresDataSource } from './postgres.js';
|
||||||
import { RepositoryModule } from './models/RepositoryModule.js';
|
import { RepositoryModule } from './models/RepositoryModule.js';
|
||||||
|
import { allSettled } from './misc/promise-tracker.js';
|
||||||
import type { Provider, OnApplicationShutdown } from '@nestjs/common';
|
import type { Provider, OnApplicationShutdown } from '@nestjs/common';
|
||||||
|
|
||||||
const $config: Provider = {
|
const $config: Provider = {
|
||||||
@@ -33,7 +33,7 @@ const $meilisearch: Provider = {
|
|||||||
useFactory: (config: Config) => {
|
useFactory: (config: Config) => {
|
||||||
if (config.meilisearch) {
|
if (config.meilisearch) {
|
||||||
return new MeiliSearch({
|
return new MeiliSearch({
|
||||||
host: `${config.meilisearch.ssl ? 'https' : 'http' }://${config.meilisearch.host}:${config.meilisearch.port}`,
|
host: `${config.meilisearch.ssl ? 'https' : 'http'}://${config.meilisearch.host}:${config.meilisearch.port}`,
|
||||||
apiKey: config.meilisearch.apiKey,
|
apiKey: config.meilisearch.apiKey,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@@ -91,17 +91,12 @@ export class GlobalModule implements OnApplicationShutdown {
|
|||||||
@Inject(DI.redisForPub) private redisForPub: Redis.Redis,
|
@Inject(DI.redisForPub) private redisForPub: Redis.Redis,
|
||||||
@Inject(DI.redisForSub) private redisForSub: Redis.Redis,
|
@Inject(DI.redisForSub) private redisForSub: Redis.Redis,
|
||||||
@Inject(DI.redisForTimelines) private redisForTimelines: Redis.Redis,
|
@Inject(DI.redisForTimelines) private redisForTimelines: Redis.Redis,
|
||||||
) {}
|
) { }
|
||||||
|
|
||||||
public async dispose(): Promise<void> {
|
public async dispose(): Promise<void> {
|
||||||
if (process.env.NODE_ENV === 'test') {
|
// Wait for all potential DB queries
|
||||||
// XXX:
|
await allSettled();
|
||||||
// Shutting down the existing connections causes errors on Jest as
|
// And then disconnect from DB
|
||||||
// Misskey has asynchronous postgres/redis connections that are not
|
|
||||||
// awaited.
|
|
||||||
// Let's wait for some random time for them to finish.
|
|
||||||
await setTimeout(5000);
|
|
||||||
}
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
this.db.destroy(),
|
this.db.destroy(),
|
||||||
this.redisClient.disconnect(),
|
this.redisClient.disconnect(),
|
||||||
|
|||||||
@@ -87,6 +87,8 @@ export const ACHIEVEMENT_TYPES = [
|
|||||||
'brainDiver',
|
'brainDiver',
|
||||||
'smashTestNotificationButton',
|
'smashTestNotificationButton',
|
||||||
'tutorialCompleted',
|
'tutorialCompleted',
|
||||||
|
'bubbleGameExplodingHead',
|
||||||
|
'bubbleGameDoubleExplodingHead',
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
|||||||
@@ -73,6 +73,37 @@ export class CaptchaService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://codeberg.org/Gusted/mCaptcha/src/branch/main/mcaptcha.go
|
||||||
|
@bindThis
|
||||||
|
public async verifyMcaptcha(secret: string, siteKey: string, instanceHost: string, response: string | null | undefined): Promise<void> {
|
||||||
|
if (response == null) {
|
||||||
|
throw new Error('mcaptcha-failed: no response provided');
|
||||||
|
}
|
||||||
|
|
||||||
|
const endpointUrl = new URL('/api/v1/pow/siteverify', instanceHost);
|
||||||
|
const result = await this.httpRequestService.send(endpointUrl.toString(), {
|
||||||
|
method: 'POST',
|
||||||
|
body: JSON.stringify({
|
||||||
|
key: siteKey,
|
||||||
|
secret: secret,
|
||||||
|
token: response,
|
||||||
|
}),
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
if (result.status !== 200) {
|
||||||
|
throw new Error('mcaptcha-failed: mcaptcha didn\'t return 200 OK');
|
||||||
|
}
|
||||||
|
|
||||||
|
const resp = (await result.json()) as { valid: boolean };
|
||||||
|
|
||||||
|
if (!resp.valid) {
|
||||||
|
throw new Error('mcaptcha-request-failed');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public async verifyTurnstile(secret: string, response: string | null | undefined): Promise<void> {
|
public async verifyTurnstile(secret: string, response: string | null | undefined): Promise<void> {
|
||||||
if (response == null) {
|
if (response == null) {
|
||||||
|
|||||||
@@ -66,6 +66,8 @@ import { FeaturedService } from './FeaturedService.js';
|
|||||||
import { FanoutTimelineService } from './FanoutTimelineService.js';
|
import { FanoutTimelineService } from './FanoutTimelineService.js';
|
||||||
import { ChannelFollowingService } from './ChannelFollowingService.js';
|
import { ChannelFollowingService } from './ChannelFollowingService.js';
|
||||||
import { RegistryApiService } from './RegistryApiService.js';
|
import { RegistryApiService } from './RegistryApiService.js';
|
||||||
|
import { ReversiService } from './ReversiService.js';
|
||||||
|
|
||||||
import { ChartLoggerService } from './chart/ChartLoggerService.js';
|
import { ChartLoggerService } from './chart/ChartLoggerService.js';
|
||||||
import FederationChart from './chart/charts/federation.js';
|
import FederationChart from './chart/charts/federation.js';
|
||||||
import NotesChart from './chart/charts/notes.js';
|
import NotesChart from './chart/charts/notes.js';
|
||||||
@@ -80,6 +82,7 @@ import PerUserFollowingChart from './chart/charts/per-user-following.js';
|
|||||||
import PerUserDriveChart from './chart/charts/per-user-drive.js';
|
import PerUserDriveChart from './chart/charts/per-user-drive.js';
|
||||||
import ApRequestChart from './chart/charts/ap-request.js';
|
import ApRequestChart from './chart/charts/ap-request.js';
|
||||||
import { ChartManagementService } from './chart/ChartManagementService.js';
|
import { ChartManagementService } from './chart/ChartManagementService.js';
|
||||||
|
|
||||||
import { AbuseUserReportEntityService } from './entities/AbuseUserReportEntityService.js';
|
import { AbuseUserReportEntityService } from './entities/AbuseUserReportEntityService.js';
|
||||||
import { AntennaEntityService } from './entities/AntennaEntityService.js';
|
import { AntennaEntityService } from './entities/AntennaEntityService.js';
|
||||||
import { AppEntityService } from './entities/AppEntityService.js';
|
import { AppEntityService } from './entities/AppEntityService.js';
|
||||||
@@ -112,6 +115,8 @@ import { UserListEntityService } from './entities/UserListEntityService.js';
|
|||||||
import { FlashEntityService } from './entities/FlashEntityService.js';
|
import { FlashEntityService } from './entities/FlashEntityService.js';
|
||||||
import { FlashLikeEntityService } from './entities/FlashLikeEntityService.js';
|
import { FlashLikeEntityService } from './entities/FlashLikeEntityService.js';
|
||||||
import { RoleEntityService } from './entities/RoleEntityService.js';
|
import { RoleEntityService } from './entities/RoleEntityService.js';
|
||||||
|
import { ReversiGameEntityService } from './entities/ReversiGameEntityService.js';
|
||||||
|
|
||||||
import { ApAudienceService } from './activitypub/ApAudienceService.js';
|
import { ApAudienceService } from './activitypub/ApAudienceService.js';
|
||||||
import { ApDbResolverService } from './activitypub/ApDbResolverService.js';
|
import { ApDbResolverService } from './activitypub/ApDbResolverService.js';
|
||||||
import { ApDeliverManagerService } from './activitypub/ApDeliverManagerService.js';
|
import { ApDeliverManagerService } from './activitypub/ApDeliverManagerService.js';
|
||||||
@@ -199,6 +204,7 @@ const $FanoutTimelineService: Provider = { provide: 'FanoutTimelineService', use
|
|||||||
const $FanoutTimelineEndpointService: Provider = { provide: 'FanoutTimelineEndpointService', useExisting: FanoutTimelineEndpointService };
|
const $FanoutTimelineEndpointService: Provider = { provide: 'FanoutTimelineEndpointService', useExisting: FanoutTimelineEndpointService };
|
||||||
const $ChannelFollowingService: Provider = { provide: 'ChannelFollowingService', useExisting: ChannelFollowingService };
|
const $ChannelFollowingService: Provider = { provide: 'ChannelFollowingService', useExisting: ChannelFollowingService };
|
||||||
const $RegistryApiService: Provider = { provide: 'RegistryApiService', useExisting: RegistryApiService };
|
const $RegistryApiService: Provider = { provide: 'RegistryApiService', useExisting: RegistryApiService };
|
||||||
|
const $ReversiService: Provider = { provide: 'ReversiService', useExisting: ReversiService };
|
||||||
|
|
||||||
const $ChartLoggerService: Provider = { provide: 'ChartLoggerService', useExisting: ChartLoggerService };
|
const $ChartLoggerService: Provider = { provide: 'ChartLoggerService', useExisting: ChartLoggerService };
|
||||||
const $FederationChart: Provider = { provide: 'FederationChart', useExisting: FederationChart };
|
const $FederationChart: Provider = { provide: 'FederationChart', useExisting: FederationChart };
|
||||||
@@ -247,6 +253,7 @@ const $UserListEntityService: Provider = { provide: 'UserListEntityService', use
|
|||||||
const $FlashEntityService: Provider = { provide: 'FlashEntityService', useExisting: FlashEntityService };
|
const $FlashEntityService: Provider = { provide: 'FlashEntityService', useExisting: FlashEntityService };
|
||||||
const $FlashLikeEntityService: Provider = { provide: 'FlashLikeEntityService', useExisting: FlashLikeEntityService };
|
const $FlashLikeEntityService: Provider = { provide: 'FlashLikeEntityService', useExisting: FlashLikeEntityService };
|
||||||
const $RoleEntityService: Provider = { provide: 'RoleEntityService', useExisting: RoleEntityService };
|
const $RoleEntityService: Provider = { provide: 'RoleEntityService', useExisting: RoleEntityService };
|
||||||
|
const $ReversiGameEntityService: Provider = { provide: 'ReversiGameEntityService', useExisting: ReversiGameEntityService };
|
||||||
|
|
||||||
const $ApAudienceService: Provider = { provide: 'ApAudienceService', useExisting: ApAudienceService };
|
const $ApAudienceService: Provider = { provide: 'ApAudienceService', useExisting: ApAudienceService };
|
||||||
const $ApDbResolverService: Provider = { provide: 'ApDbResolverService', useExisting: ApDbResolverService };
|
const $ApDbResolverService: Provider = { provide: 'ApDbResolverService', useExisting: ApDbResolverService };
|
||||||
@@ -336,6 +343,8 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
|
|||||||
FanoutTimelineEndpointService,
|
FanoutTimelineEndpointService,
|
||||||
ChannelFollowingService,
|
ChannelFollowingService,
|
||||||
RegistryApiService,
|
RegistryApiService,
|
||||||
|
ReversiService,
|
||||||
|
|
||||||
ChartLoggerService,
|
ChartLoggerService,
|
||||||
FederationChart,
|
FederationChart,
|
||||||
NotesChart,
|
NotesChart,
|
||||||
@@ -350,6 +359,7 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
|
|||||||
PerUserDriveChart,
|
PerUserDriveChart,
|
||||||
ApRequestChart,
|
ApRequestChart,
|
||||||
ChartManagementService,
|
ChartManagementService,
|
||||||
|
|
||||||
AbuseUserReportEntityService,
|
AbuseUserReportEntityService,
|
||||||
AntennaEntityService,
|
AntennaEntityService,
|
||||||
AppEntityService,
|
AppEntityService,
|
||||||
@@ -382,6 +392,8 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
|
|||||||
FlashEntityService,
|
FlashEntityService,
|
||||||
FlashLikeEntityService,
|
FlashLikeEntityService,
|
||||||
RoleEntityService,
|
RoleEntityService,
|
||||||
|
ReversiGameEntityService,
|
||||||
|
|
||||||
ApAudienceService,
|
ApAudienceService,
|
||||||
ApDbResolverService,
|
ApDbResolverService,
|
||||||
ApDeliverManagerService,
|
ApDeliverManagerService,
|
||||||
@@ -466,6 +478,8 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
|
|||||||
$FanoutTimelineEndpointService,
|
$FanoutTimelineEndpointService,
|
||||||
$ChannelFollowingService,
|
$ChannelFollowingService,
|
||||||
$RegistryApiService,
|
$RegistryApiService,
|
||||||
|
$ReversiService,
|
||||||
|
|
||||||
$ChartLoggerService,
|
$ChartLoggerService,
|
||||||
$FederationChart,
|
$FederationChart,
|
||||||
$NotesChart,
|
$NotesChart,
|
||||||
@@ -480,6 +494,7 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
|
|||||||
$PerUserDriveChart,
|
$PerUserDriveChart,
|
||||||
$ApRequestChart,
|
$ApRequestChart,
|
||||||
$ChartManagementService,
|
$ChartManagementService,
|
||||||
|
|
||||||
$AbuseUserReportEntityService,
|
$AbuseUserReportEntityService,
|
||||||
$AntennaEntityService,
|
$AntennaEntityService,
|
||||||
$AppEntityService,
|
$AppEntityService,
|
||||||
@@ -512,6 +527,8 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
|
|||||||
$FlashEntityService,
|
$FlashEntityService,
|
||||||
$FlashLikeEntityService,
|
$FlashLikeEntityService,
|
||||||
$RoleEntityService,
|
$RoleEntityService,
|
||||||
|
$ReversiGameEntityService,
|
||||||
|
|
||||||
$ApAudienceService,
|
$ApAudienceService,
|
||||||
$ApDbResolverService,
|
$ApDbResolverService,
|
||||||
$ApDeliverManagerService,
|
$ApDeliverManagerService,
|
||||||
@@ -597,6 +614,8 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
|
|||||||
FanoutTimelineEndpointService,
|
FanoutTimelineEndpointService,
|
||||||
ChannelFollowingService,
|
ChannelFollowingService,
|
||||||
RegistryApiService,
|
RegistryApiService,
|
||||||
|
ReversiService,
|
||||||
|
|
||||||
FederationChart,
|
FederationChart,
|
||||||
NotesChart,
|
NotesChart,
|
||||||
UsersChart,
|
UsersChart,
|
||||||
@@ -610,6 +629,7 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
|
|||||||
PerUserDriveChart,
|
PerUserDriveChart,
|
||||||
ApRequestChart,
|
ApRequestChart,
|
||||||
ChartManagementService,
|
ChartManagementService,
|
||||||
|
|
||||||
AbuseUserReportEntityService,
|
AbuseUserReportEntityService,
|
||||||
AntennaEntityService,
|
AntennaEntityService,
|
||||||
AppEntityService,
|
AppEntityService,
|
||||||
@@ -642,6 +662,8 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
|
|||||||
FlashEntityService,
|
FlashEntityService,
|
||||||
FlashLikeEntityService,
|
FlashLikeEntityService,
|
||||||
RoleEntityService,
|
RoleEntityService,
|
||||||
|
ReversiGameEntityService,
|
||||||
|
|
||||||
ApAudienceService,
|
ApAudienceService,
|
||||||
ApDbResolverService,
|
ApDbResolverService,
|
||||||
ApDeliverManagerService,
|
ApDeliverManagerService,
|
||||||
@@ -726,6 +748,8 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
|
|||||||
$FanoutTimelineEndpointService,
|
$FanoutTimelineEndpointService,
|
||||||
$ChannelFollowingService,
|
$ChannelFollowingService,
|
||||||
$RegistryApiService,
|
$RegistryApiService,
|
||||||
|
$ReversiService,
|
||||||
|
|
||||||
$FederationChart,
|
$FederationChart,
|
||||||
$NotesChart,
|
$NotesChart,
|
||||||
$UsersChart,
|
$UsersChart,
|
||||||
@@ -739,6 +763,7 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
|
|||||||
$PerUserDriveChart,
|
$PerUserDriveChart,
|
||||||
$ApRequestChart,
|
$ApRequestChart,
|
||||||
$ChartManagementService,
|
$ChartManagementService,
|
||||||
|
|
||||||
$AbuseUserReportEntityService,
|
$AbuseUserReportEntityService,
|
||||||
$AntennaEntityService,
|
$AntennaEntityService,
|
||||||
$AppEntityService,
|
$AppEntityService,
|
||||||
@@ -771,6 +796,8 @@ const $ApQuestionService: Provider = { provide: 'ApQuestionService', useExisting
|
|||||||
$FlashEntityService,
|
$FlashEntityService,
|
||||||
$FlashLikeEntityService,
|
$FlashLikeEntityService,
|
||||||
$RoleEntityService,
|
$RoleEntityService,
|
||||||
|
$ReversiGameEntityService,
|
||||||
|
|
||||||
$ApAudienceService,
|
$ApAudienceService,
|
||||||
$ApDbResolverService,
|
$ApDbResolverService,
|
||||||
$ApDeliverManagerService,
|
$ApDeliverManagerService,
|
||||||
|
|||||||
@@ -145,7 +145,8 @@ export class DownloadService {
|
|||||||
const parsedIp = ipaddr.parse(ip);
|
const parsedIp = ipaddr.parse(ip);
|
||||||
|
|
||||||
for (const net of this.config.allowedPrivateNetworks ?? []) {
|
for (const net of this.config.allowedPrivateNetworks ?? []) {
|
||||||
if (parsedIp.match(ipaddr.parseCIDR(net))) {
|
const cidr = ipaddr.parseCIDR(net);
|
||||||
|
if (cidr[0].kind() === parsedIp.kind() && parsedIp.match(ipaddr.parseCIDR(net))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { randomUUID } from 'node:crypto';
|
|||||||
import * as fs from 'node:fs';
|
import * as fs from 'node:fs';
|
||||||
import { Inject, Injectable } from '@nestjs/common';
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
import sharp from 'sharp';
|
import sharp from 'sharp';
|
||||||
import { sharpBmp } from 'sharp-read-bmp';
|
import { sharpBmp } from '@misskey-dev/sharp-read-bmp';
|
||||||
import { IsNull } from 'typeorm';
|
import { IsNull } from 'typeorm';
|
||||||
import { DeleteObjectCommandInput, PutObjectCommandInput, NoSuchKey } from '@aws-sdk/client-s3';
|
import { DeleteObjectCommandInput, PutObjectCommandInput, NoSuchKey } from '@aws-sdk/client-s3';
|
||||||
import { DI } from '@/di-symbols.js';
|
import { DI } from '@/di-symbols.js';
|
||||||
@@ -655,7 +655,7 @@ export class DriveService {
|
|||||||
public async updateFile(file: MiDriveFile, values: Partial<MiDriveFile>, updater: MiUser) {
|
public async updateFile(file: MiDriveFile, values: Partial<MiDriveFile>, updater: MiUser) {
|
||||||
const alwaysMarkNsfw = (await this.roleService.getUserPolicies(file.userId)).alwaysMarkNsfw;
|
const alwaysMarkNsfw = (await this.roleService.getUserPolicies(file.userId)).alwaysMarkNsfw;
|
||||||
|
|
||||||
if (values.name && !this.driveFileEntityService.validateFileName(file.name)) {
|
if (values.name != null && !this.driveFileEntityService.validateFileName(values.name)) {
|
||||||
throw new DriveService.InvalidFileNameError();
|
throw new DriveService.InvalidFileNameError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import { URLSearchParams } from 'node:url';
|
|||||||
import * as nodemailer from 'nodemailer';
|
import * as nodemailer from 'nodemailer';
|
||||||
import { Inject, Injectable } from '@nestjs/common';
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
import { validate as validateEmail } from 'deep-email-validator';
|
import { validate as validateEmail } from 'deep-email-validator';
|
||||||
import { SubOutputFormat } from 'deep-email-validator/dist/output/output.js';
|
|
||||||
import { MetaService } from '@/core/MetaService.js';
|
import { MetaService } from '@/core/MetaService.js';
|
||||||
|
import { UtilityService } from '@/core/UtilityService.js';
|
||||||
import { DI } from '@/di-symbols.js';
|
import { DI } from '@/di-symbols.js';
|
||||||
import type { Config } from '@/config.js';
|
import type { Config } from '@/config.js';
|
||||||
import type Logger from '@/logger.js';
|
import type Logger from '@/logger.js';
|
||||||
@@ -30,6 +30,7 @@ export class EmailService {
|
|||||||
|
|
||||||
private metaService: MetaService,
|
private metaService: MetaService,
|
||||||
private loggerService: LoggerService,
|
private loggerService: LoggerService,
|
||||||
|
private utilityService: UtilityService,
|
||||||
private httpRequestService: HttpRequestService,
|
private httpRequestService: HttpRequestService,
|
||||||
) {
|
) {
|
||||||
this.logger = this.loggerService.getLogger('email');
|
this.logger = this.loggerService.getLogger('email');
|
||||||
@@ -155,7 +156,7 @@ export class EmailService {
|
|||||||
@bindThis
|
@bindThis
|
||||||
public async validateEmailForAccount(emailAddress: string): Promise<{
|
public async validateEmailForAccount(emailAddress: string): Promise<{
|
||||||
available: boolean;
|
available: boolean;
|
||||||
reason: null | 'used' | 'format' | 'disposable' | 'mx' | 'smtp';
|
reason: null | 'used' | 'format' | 'disposable' | 'mx' | 'smtp' | 'banned' | 'network' | 'blacklist';
|
||||||
}> {
|
}> {
|
||||||
const meta = await this.metaService.fetch();
|
const meta = await this.metaService.fetch();
|
||||||
|
|
||||||
@@ -164,36 +165,46 @@ export class EmailService {
|
|||||||
email: emailAddress,
|
email: emailAddress,
|
||||||
});
|
});
|
||||||
|
|
||||||
const verifymailApi = meta.enableVerifymailApi && meta.verifymailAuthKey != null;
|
let validated: {
|
||||||
let validated;
|
valid: boolean,
|
||||||
|
reason?: string | null,
|
||||||
|
};
|
||||||
|
|
||||||
if (meta.enableActiveEmailValidation && meta.verifymailAuthKey) {
|
if (meta.enableActiveEmailValidation) {
|
||||||
if (verifymailApi) {
|
if (meta.enableVerifymailApi && meta.verifymailAuthKey != null) {
|
||||||
validated = await this.verifyMail(emailAddress, meta.verifymailAuthKey);
|
validated = await this.verifyMail(emailAddress, meta.verifymailAuthKey);
|
||||||
|
} else if (meta.enableTruemailApi && meta.truemailInstance && meta.truemailAuthKey != null) {
|
||||||
|
validated = await this.trueMail(meta.truemailInstance, emailAddress, meta.truemailAuthKey);
|
||||||
} else {
|
} else {
|
||||||
validated = meta.enableActiveEmailValidation ? await validateEmail({
|
validated = await validateEmail({
|
||||||
email: emailAddress,
|
email: emailAddress,
|
||||||
validateRegex: true,
|
validateRegex: true,
|
||||||
validateMx: true,
|
validateMx: true,
|
||||||
validateTypo: false, // TLDを見ているみたいだけどclubとか弾かれるので
|
validateTypo: false, // TLDを見ているみたいだけどclubとか弾かれるので
|
||||||
validateDisposable: true, // 捨てアドかどうかチェック
|
validateDisposable: true, // 捨てアドかどうかチェック
|
||||||
validateSMTP: false, // 日本だと25ポートが殆どのプロバイダーで塞がれていてタイムアウトになるので
|
validateSMTP: false, // 日本だと25ポートが殆どのプロバイダーで塞がれていてタイムアウトになるので
|
||||||
}) : { valid: true, reason: null };
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
validated = { valid: true, reason: null };
|
validated = { valid: true, reason: null };
|
||||||
}
|
}
|
||||||
|
|
||||||
const available = exist === 0 && validated.valid;
|
const emailDomain: string = emailAddress.split('@')[1];
|
||||||
|
const isBanned = this.utilityService.isBlockedHost(meta.bannedEmailDomains, emailDomain);
|
||||||
|
|
||||||
|
const available = exist === 0 && validated.valid && !isBanned;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
available,
|
available,
|
||||||
reason: available ? null :
|
reason: available ? null :
|
||||||
exist !== 0 ? 'used' :
|
exist !== 0 ? 'used' :
|
||||||
|
isBanned ? 'banned' :
|
||||||
validated.reason === 'regex' ? 'format' :
|
validated.reason === 'regex' ? 'format' :
|
||||||
validated.reason === 'disposable' ? 'disposable' :
|
validated.reason === 'disposable' ? 'disposable' :
|
||||||
validated.reason === 'mx' ? 'mx' :
|
validated.reason === 'mx' ? 'mx' :
|
||||||
validated.reason === 'smtp' ? 'smtp' :
|
validated.reason === 'smtp' ? 'smtp' :
|
||||||
|
validated.reason === 'network' ? 'network' :
|
||||||
|
validated.reason === 'blacklist' ? 'blacklist' :
|
||||||
null,
|
null,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -258,4 +269,67 @@ export class EmailService {
|
|||||||
reason: null,
|
reason: null,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private async trueMail<T>(truemailInstance: string, emailAddress: string, truemailAuthKey: string): Promise<{
|
||||||
|
valid: boolean;
|
||||||
|
reason: 'used' | 'format' | 'blacklist' | 'mx' | 'smtp' | 'network' | T | null;
|
||||||
|
}> {
|
||||||
|
const endpoint = truemailInstance + '?email=' + emailAddress;
|
||||||
|
try {
|
||||||
|
const res = await this.httpRequestService.send(endpoint, {
|
||||||
|
method: 'POST',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
Accept: 'application/json',
|
||||||
|
Authorization: truemailAuthKey
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
const json = (await res.json()) as {
|
||||||
|
email: string;
|
||||||
|
success: boolean;
|
||||||
|
errors?: {
|
||||||
|
list_match?: string;
|
||||||
|
regex?: string;
|
||||||
|
mx?: string;
|
||||||
|
smtp?: string;
|
||||||
|
} | null;
|
||||||
|
};
|
||||||
|
|
||||||
|
if (json.email === undefined || (json.email !== undefined && json.errors?.regex)) {
|
||||||
|
return {
|
||||||
|
valid: false,
|
||||||
|
reason: 'format',
|
||||||
|
};
|
||||||
|
}
|
||||||
|
if (json.errors?.smtp) {
|
||||||
|
return {
|
||||||
|
valid: false,
|
||||||
|
reason: 'smtp',
|
||||||
|
};
|
||||||
|
}
|
||||||
|
if (json.errors?.mx) {
|
||||||
|
return {
|
||||||
|
valid: false,
|
||||||
|
reason: 'mx',
|
||||||
|
};
|
||||||
|
}
|
||||||
|
if (!json.success) {
|
||||||
|
return {
|
||||||
|
valid: false,
|
||||||
|
reason: json.errors?.list_match as T || 'blacklist',
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
valid: true,
|
||||||
|
reason: null,
|
||||||
|
};
|
||||||
|
} catch (error) {
|
||||||
|
return {
|
||||||
|
valid: false,
|
||||||
|
reason: 'network',
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import type { MiSignin } from '@/models/Signin.js';
|
|||||||
import type { MiPage } from '@/models/Page.js';
|
import type { MiPage } from '@/models/Page.js';
|
||||||
import type { MiWebhook } from '@/models/Webhook.js';
|
import type { MiWebhook } from '@/models/Webhook.js';
|
||||||
import type { MiMeta } from '@/models/Meta.js';
|
import type { MiMeta } from '@/models/Meta.js';
|
||||||
import { MiAvatarDecoration, MiRole, MiRoleAssignment } from '@/models/_.js';
|
import { MiAvatarDecoration, MiReversiGame, MiRole, MiRoleAssignment } from '@/models/_.js';
|
||||||
import type { Packed } from '@/misc/json-schema.js';
|
import type { Packed } from '@/misc/json-schema.js';
|
||||||
import { DI } from '@/di-symbols.js';
|
import { DI } from '@/di-symbols.js';
|
||||||
import type { Config } from '@/config.js';
|
import type { Config } from '@/config.js';
|
||||||
@@ -159,6 +159,43 @@ export interface AdminEventTypes {
|
|||||||
comment: string;
|
comment: string;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ReversiEventTypes {
|
||||||
|
matched: {
|
||||||
|
game: Packed<'ReversiGameDetailed'>;
|
||||||
|
};
|
||||||
|
invited: {
|
||||||
|
user: Packed<'User'>;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ReversiGameEventTypes {
|
||||||
|
changeReadyStates: {
|
||||||
|
user1: boolean;
|
||||||
|
user2: boolean;
|
||||||
|
};
|
||||||
|
updateSettings: {
|
||||||
|
userId: MiUser['id'];
|
||||||
|
key: string;
|
||||||
|
value: any;
|
||||||
|
};
|
||||||
|
putStone: {
|
||||||
|
at: number;
|
||||||
|
color: boolean;
|
||||||
|
pos: number;
|
||||||
|
next: boolean;
|
||||||
|
};
|
||||||
|
syncState: {
|
||||||
|
crc32: string;
|
||||||
|
};
|
||||||
|
started: {
|
||||||
|
game: Packed<'ReversiGameDetailed'>;
|
||||||
|
};
|
||||||
|
ended: {
|
||||||
|
winnerId: MiUser['id'] | null;
|
||||||
|
game: Packed<'ReversiGameDetailed'>;
|
||||||
|
};
|
||||||
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
// 辞書(interface or type)から{ type, body }ユニオンを定義
|
// 辞書(interface or type)から{ type, body }ユニオンを定義
|
||||||
@@ -249,6 +286,14 @@ export type GlobalEvents = {
|
|||||||
name: 'notesStream';
|
name: 'notesStream';
|
||||||
payload: Serialized<Packed<'Note'>>;
|
payload: Serialized<Packed<'Note'>>;
|
||||||
};
|
};
|
||||||
|
reversi: {
|
||||||
|
name: `reversiStream:${MiUser['id']}`;
|
||||||
|
payload: EventUnionFromDictionary<SerializedAll<ReversiEventTypes>>;
|
||||||
|
};
|
||||||
|
reversiGame: {
|
||||||
|
name: `reversiGameStream:${MiReversiGame['id']}`;
|
||||||
|
payload: EventUnionFromDictionary<SerializedAll<ReversiGameEventTypes>>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
// API event definitions
|
// API event definitions
|
||||||
@@ -338,4 +383,14 @@ export class GlobalEventService {
|
|||||||
public publishAdminStream<K extends keyof AdminEventTypes>(userId: MiUser['id'], type: K, value?: AdminEventTypes[K]): void {
|
public publishAdminStream<K extends keyof AdminEventTypes>(userId: MiUser['id'], type: K, value?: AdminEventTypes[K]): void {
|
||||||
this.publish(`adminStream:${userId}`, type, typeof value === 'undefined' ? null : value);
|
this.publish(`adminStream:${userId}`, type, typeof value === 'undefined' ? null : value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public publishReversiStream<K extends keyof ReversiEventTypes>(userId: MiUser['id'], type: K, value?: ReversiEventTypes[K]): void {
|
||||||
|
this.publish(`reversiStream:${userId}`, type, typeof value === 'undefined' ? null : value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public publishReversiGameStream<K extends keyof ReversiGameEventTypes>(gameId: MiReversiGame['id'], type: K, value?: ReversiGameEventTypes[K]): void {
|
||||||
|
this.publish(`reversiGameStream:${gameId}`, type, typeof value === 'undefined' ? null : value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import { UserEntityService } from '@/core/entities/UserEntityService.js';
|
|||||||
import { bindThis } from '@/decorators.js';
|
import { bindThis } from '@/decorators.js';
|
||||||
import { FeaturedService } from '@/core/FeaturedService.js';
|
import { FeaturedService } from '@/core/FeaturedService.js';
|
||||||
import { MetaService } from '@/core/MetaService.js';
|
import { MetaService } from '@/core/MetaService.js';
|
||||||
|
import { UtilityService } from '@/core/UtilityService.js';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class HashtagService {
|
export class HashtagService {
|
||||||
@@ -29,6 +30,7 @@ export class HashtagService {
|
|||||||
private featuredService: FeaturedService,
|
private featuredService: FeaturedService,
|
||||||
private idService: IdService,
|
private idService: IdService,
|
||||||
private metaService: MetaService,
|
private metaService: MetaService,
|
||||||
|
private utilityService: UtilityService,
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -161,6 +163,7 @@ export class HashtagService {
|
|||||||
const instance = await this.metaService.fetch();
|
const instance = await this.metaService.fetch();
|
||||||
const hiddenTags = instance.hiddenTags.map(t => normalizeForSearch(t));
|
const hiddenTags = instance.hiddenTags.map(t => normalizeForSearch(t));
|
||||||
if (hiddenTags.includes(hashtag)) return;
|
if (hiddenTags.includes(hashtag)) return;
|
||||||
|
if (this.utilityService.isSensitiveWordIncluded(hashtag, instance.sensitiveWords)) return;
|
||||||
|
|
||||||
// YYYYMMDDHHmm (10分間隔)
|
// YYYYMMDDHHmm (10分間隔)
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ import { FanoutTimelineService } from '@/core/FanoutTimelineService.js';
|
|||||||
import { UtilityService } from '@/core/UtilityService.js';
|
import { UtilityService } from '@/core/UtilityService.js';
|
||||||
import { UserBlockingService } from '@/core/UserBlockingService.js';
|
import { UserBlockingService } from '@/core/UserBlockingService.js';
|
||||||
import { isReply } from '@/misc/is-reply.js';
|
import { isReply } from '@/misc/is-reply.js';
|
||||||
|
import { trackPromise } from '@/misc/promise-tracker.js';
|
||||||
|
|
||||||
type NotificationType = 'reply' | 'renote' | 'quote' | 'mention';
|
type NotificationType = 'reply' | 'renote' | 'quote' | 'mention';
|
||||||
|
|
||||||
@@ -253,7 +254,7 @@ export class NoteCreateService implements OnApplicationShutdown {
|
|||||||
|
|
||||||
if (data.visibility === 'public' && data.channel == null) {
|
if (data.visibility === 'public' && data.channel == null) {
|
||||||
const sensitiveWords = meta.sensitiveWords;
|
const sensitiveWords = meta.sensitiveWords;
|
||||||
if (this.isSensitive(data, sensitiveWords)) {
|
if (this.utilityService.isSensitiveWordIncluded(data.cw ?? data.text ?? '', sensitiveWords)) {
|
||||||
data.visibility = 'home';
|
data.visibility = 'home';
|
||||||
} else if ((await this.roleService.getUserPolicies(user.id)).canPublicNote === false) {
|
} else if ((await this.roleService.getUserPolicies(user.id)).canPublicNote === false) {
|
||||||
data.visibility = 'home';
|
data.visibility = 'home';
|
||||||
@@ -293,7 +294,7 @@ export class NoteCreateService implements OnApplicationShutdown {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check blocking
|
// Check blocking
|
||||||
if (data.renote && this.isQuote(data)) {
|
if (data.renote && !this.isQuote(data)) {
|
||||||
if (data.renote.userHost === null) {
|
if (data.renote.userHost === null) {
|
||||||
if (data.renote.userId !== user.id) {
|
if (data.renote.userId !== user.id) {
|
||||||
const blocked = await this.userBlockingService.checkBlocked(data.renote.userId, user.id);
|
const blocked = await this.userBlockingService.checkBlocked(data.renote.userId, user.id);
|
||||||
@@ -324,6 +325,9 @@ export class NoteCreateService implements OnApplicationShutdown {
|
|||||||
data.text = data.text.slice(0, DB_MAX_NOTE_TEXT_LENGTH);
|
data.text = data.text.slice(0, DB_MAX_NOTE_TEXT_LENGTH);
|
||||||
}
|
}
|
||||||
data.text = data.text.trim();
|
data.text = data.text.trim();
|
||||||
|
if (data.text === '') {
|
||||||
|
data.text = null;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
data.text = null;
|
data.text = null;
|
||||||
}
|
}
|
||||||
@@ -676,7 +680,7 @@ export class NoteCreateService implements OnApplicationShutdown {
|
|||||||
this.relayService.deliverToRelays(user, noteActivity);
|
this.relayService.deliverToRelays(user, noteActivity);
|
||||||
}
|
}
|
||||||
|
|
||||||
dm.execute();
|
trackPromise(dm.execute());
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
@@ -705,33 +709,9 @@ export class NoteCreateService implements OnApplicationShutdown {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
private isSensitive(note: Option, sensitiveWord: string[]): boolean {
|
private isQuote(note: Option): note is Option & { renote: MiNote } {
|
||||||
if (sensitiveWord.length > 0) {
|
// sync with misc/is-quote.ts
|
||||||
const text = note.cw ?? note.text ?? '';
|
return !!note.renote && (!!note.text || !!note.cw || (!!note.files && !!note.files.length) || !!note.poll);
|
||||||
if (text === '') return false;
|
|
||||||
const matched = sensitiveWord.some(filter => {
|
|
||||||
// represents RegExp
|
|
||||||
const regexp = filter.match(/^\/(.+)\/(.*)$/);
|
|
||||||
// This should never happen due to input sanitisation.
|
|
||||||
if (!regexp) {
|
|
||||||
const words = filter.split(' ');
|
|
||||||
return words.every(keyword => text.includes(keyword));
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
return new RE2(regexp[1], regexp[2]).test(text);
|
|
||||||
} catch (err) {
|
|
||||||
// This should never happen due to input sanitisation.
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
if (matched) return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@bindThis
|
|
||||||
private isQuote(note: Option): boolean {
|
|
||||||
return !!note.text || !!note.cw || !!note.files || !!note.poll;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
@@ -799,7 +779,7 @@ export class NoteCreateService implements OnApplicationShutdown {
|
|||||||
private async renderNoteOrRenoteActivity(data: Option, note: MiNote) {
|
private async renderNoteOrRenoteActivity(data: Option, note: MiNote) {
|
||||||
if (data.localOnly) return null;
|
if (data.localOnly) return null;
|
||||||
|
|
||||||
const content = data.renote && this.isQuote(data)
|
const content = data.renote && !this.isQuote(data)
|
||||||
? this.apRendererService.renderAnnounce(data.renote.uri ? data.renote.uri : `${this.config.url}/notes/${data.renote.id}`, note)
|
? this.apRendererService.renderAnnounce(data.renote.uri ? data.renote.uri : `${this.config.url}/notes/${data.renote.id}`, note)
|
||||||
: this.apRendererService.renderCreate(await this.apRendererService.renderNote(note, false), note);
|
: this.apRendererService.renderCreate(await this.apRendererService.renderNote(note, false), note);
|
||||||
|
|
||||||
@@ -911,6 +891,7 @@ export class NoteCreateService implements OnApplicationShutdown {
|
|||||||
// ダイレクトのとき、そのリストが対象外のユーザーの場合
|
// ダイレクトのとき、そのリストが対象外のユーザーの場合
|
||||||
if (
|
if (
|
||||||
note.visibility === 'specified' &&
|
note.visibility === 'specified' &&
|
||||||
|
note.userId !== userListMembership.userListUserId &&
|
||||||
!note.visibleUserIds.some(v => v === userListMembership.userListUserId)
|
!note.visibleUserIds.some(v => v === userListMembership.userListUserId)
|
||||||
) continue;
|
) continue;
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import { IdService } from '@/core/IdService.js';
|
|||||||
import { GlobalEventService } from '@/core/GlobalEventService.js';
|
import { GlobalEventService } from '@/core/GlobalEventService.js';
|
||||||
import type { NoteUnreadsRepository, MutingsRepository, NoteThreadMutingsRepository } from '@/models/_.js';
|
import type { NoteUnreadsRepository, MutingsRepository, NoteThreadMutingsRepository } from '@/models/_.js';
|
||||||
import { bindThis } from '@/decorators.js';
|
import { bindThis } from '@/decorators.js';
|
||||||
|
import { trackPromise } from '@/misc/promise-tracker.js';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class NoteReadService implements OnApplicationShutdown {
|
export class NoteReadService implements OnApplicationShutdown {
|
||||||
@@ -107,7 +108,7 @@ export class NoteReadService implements OnApplicationShutdown {
|
|||||||
|
|
||||||
// TODO: ↓まとめてクエリしたい
|
// TODO: ↓まとめてクエリしたい
|
||||||
|
|
||||||
this.noteUnreadsRepository.countBy({
|
trackPromise(this.noteUnreadsRepository.countBy({
|
||||||
userId: userId,
|
userId: userId,
|
||||||
isMentioned: true,
|
isMentioned: true,
|
||||||
}).then(mentionsCount => {
|
}).then(mentionsCount => {
|
||||||
@@ -115,9 +116,9 @@ export class NoteReadService implements OnApplicationShutdown {
|
|||||||
// 全て既読になったイベントを発行
|
// 全て既読になったイベントを発行
|
||||||
this.globalEventService.publishMainStream(userId, 'readAllUnreadMentions');
|
this.globalEventService.publishMainStream(userId, 'readAllUnreadMentions');
|
||||||
}
|
}
|
||||||
});
|
}));
|
||||||
|
|
||||||
this.noteUnreadsRepository.countBy({
|
trackPromise(this.noteUnreadsRepository.countBy({
|
||||||
userId: userId,
|
userId: userId,
|
||||||
isSpecified: true,
|
isSpecified: true,
|
||||||
}).then(specifiedCount => {
|
}).then(specifiedCount => {
|
||||||
@@ -125,7 +126,7 @@ export class NoteReadService implements OnApplicationShutdown {
|
|||||||
// 全て既読になったイベントを発行
|
// 全て既読になったイベントを発行
|
||||||
this.globalEventService.publishMainStream(userId, 'readAllUnreadSpecifiedNotes');
|
this.globalEventService.publishMainStream(userId, 'readAllUnreadSpecifiedNotes');
|
||||||
}
|
}
|
||||||
});
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import { CacheService } from '@/core/CacheService.js';
|
|||||||
import type { Config } from '@/config.js';
|
import type { Config } from '@/config.js';
|
||||||
import { UserListService } from '@/core/UserListService.js';
|
import { UserListService } from '@/core/UserListService.js';
|
||||||
import type { FilterUnionByProperty } from '@/types.js';
|
import type { FilterUnionByProperty } from '@/types.js';
|
||||||
|
import { trackPromise } from '@/misc/promise-tracker.js';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class NotificationService implements OnApplicationShutdown {
|
export class NotificationService implements OnApplicationShutdown {
|
||||||
@@ -74,7 +75,18 @@ export class NotificationService implements OnApplicationShutdown {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public async createNotification<T extends MiNotification['type']>(
|
public createNotification<T extends MiNotification['type']>(
|
||||||
|
notifieeId: MiUser['id'],
|
||||||
|
type: T,
|
||||||
|
data: Omit<FilterUnionByProperty<MiNotification, 'type', T>, 'type' | 'id' | 'createdAt' | 'notifierId'>,
|
||||||
|
notifierId?: MiUser['id'] | null,
|
||||||
|
) {
|
||||||
|
trackPromise(
|
||||||
|
this.#createNotificationInternal(notifieeId, type, data, notifierId),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
async #createNotificationInternal<T extends MiNotification['type']>(
|
||||||
notifieeId: MiUser['id'],
|
notifieeId: MiUser['id'],
|
||||||
type: T,
|
type: T,
|
||||||
data: Omit<FilterUnionByProperty<MiNotification, 'type', T>, 'type' | 'id' | 'createdAt' | 'notifierId'>,
|
data: Omit<FilterUnionByProperty<MiNotification, 'type', T>, 'type' | 'id' | 'createdAt' | 'notifierId'>,
|
||||||
|
|||||||
@@ -212,8 +212,8 @@ export class QueryService {
|
|||||||
// または 自分自身
|
// または 自分自身
|
||||||
.orWhere('note.userId = :meId')
|
.orWhere('note.userId = :meId')
|
||||||
// または 自分宛て
|
// または 自分宛て
|
||||||
.orWhere(':meId = ANY(note.visibleUserIds)')
|
.orWhere(':meIdAsList <@ note.visibleUserIds')
|
||||||
.orWhere(':meId = ANY(note.mentions)')
|
.orWhere(':meIdAsList <@ note.mentions')
|
||||||
.orWhere(new Brackets(qb => {
|
.orWhere(new Brackets(qb => {
|
||||||
qb
|
qb
|
||||||
// または フォロワー宛ての投稿であり、
|
// または フォロワー宛ての投稿であり、
|
||||||
@@ -228,7 +228,7 @@ export class QueryService {
|
|||||||
}));
|
}));
|
||||||
}));
|
}));
|
||||||
|
|
||||||
q.setParameters({ meId: me.id });
|
q.setParameters({ meId: me.id, meIdAsList: [me.id] });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,12 +3,12 @@
|
|||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { setTimeout } from 'node:timers/promises';
|
|
||||||
import { Inject, Module, OnApplicationShutdown } from '@nestjs/common';
|
import { Inject, Module, OnApplicationShutdown } from '@nestjs/common';
|
||||||
import * as Bull from 'bullmq';
|
import * as Bull from 'bullmq';
|
||||||
import { DI } from '@/di-symbols.js';
|
import { DI } from '@/di-symbols.js';
|
||||||
import type { Config } from '@/config.js';
|
import type { Config } from '@/config.js';
|
||||||
import { QUEUE, baseQueueOptions } from '@/queue/const.js';
|
import { QUEUE, baseQueueOptions } from '@/queue/const.js';
|
||||||
|
import { allSettled } from '@/misc/promise-tracker.js';
|
||||||
import type { Provider } from '@nestjs/common';
|
import type { Provider } from '@nestjs/common';
|
||||||
import type { DeliverJobData, InboxJobData, EndedPollNotificationJobData, WebhookDeliverJobData, RelationshipJobData } from '../queue/types.js';
|
import type { DeliverJobData, InboxJobData, EndedPollNotificationJobData, WebhookDeliverJobData, RelationshipJobData } from '../queue/types.js';
|
||||||
|
|
||||||
@@ -106,14 +106,9 @@ export class QueueModule implements OnApplicationShutdown {
|
|||||||
) {}
|
) {}
|
||||||
|
|
||||||
public async dispose(): Promise<void> {
|
public async dispose(): Promise<void> {
|
||||||
if (process.env.NODE_ENV === 'test') {
|
// Wait for all potential queue jobs
|
||||||
// XXX:
|
await allSettled();
|
||||||
// Shutting down the existing connections causes errors on Jest as
|
// And then close all queues
|
||||||
// Misskey has asynchronous postgres/redis connections that are not
|
|
||||||
// awaited.
|
|
||||||
// Let's wait for some random time for them to finish.
|
|
||||||
await setTimeout(5000);
|
|
||||||
}
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
this.systemQueue.close(),
|
this.systemQueue.close(),
|
||||||
this.endedPollNotificationQueue.close(),
|
this.endedPollNotificationQueue.close(),
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import type { DbQueue, DeliverQueue, EndedPollNotificationQueue, InboxQueue, Obj
|
|||||||
import type { DbJobData, DeliverJobData, RelationshipJobData, ThinUser } from '../queue/types.js';
|
import type { DbJobData, DeliverJobData, RelationshipJobData, ThinUser } from '../queue/types.js';
|
||||||
import type httpSignature from '@peertube/http-signature';
|
import type httpSignature from '@peertube/http-signature';
|
||||||
import type * as Bull from 'bullmq';
|
import type * as Bull from 'bullmq';
|
||||||
|
import { ApRequestCreator } from '@/core/activitypub/ApRequestService.js';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class QueueService {
|
export class QueueService {
|
||||||
@@ -74,11 +75,15 @@ export class QueueService {
|
|||||||
if (content == null) return null;
|
if (content == null) return null;
|
||||||
if (to == null) return null;
|
if (to == null) return null;
|
||||||
|
|
||||||
|
const contentBody = JSON.stringify(content);
|
||||||
|
const digest = ApRequestCreator.createDigest(contentBody);
|
||||||
|
|
||||||
const data: DeliverJobData = {
|
const data: DeliverJobData = {
|
||||||
user: {
|
user: {
|
||||||
id: user.id,
|
id: user.id,
|
||||||
},
|
},
|
||||||
content,
|
content: contentBody,
|
||||||
|
digest,
|
||||||
to,
|
to,
|
||||||
isSharedInbox,
|
isSharedInbox,
|
||||||
};
|
};
|
||||||
@@ -103,6 +108,8 @@ export class QueueService {
|
|||||||
@bindThis
|
@bindThis
|
||||||
public async deliverMany(user: ThinUser, content: IActivity | null, inboxes: Map<string, boolean>) {
|
public async deliverMany(user: ThinUser, content: IActivity | null, inboxes: Map<string, boolean>) {
|
||||||
if (content == null) return null;
|
if (content == null) return null;
|
||||||
|
const contentBody = JSON.stringify(content);
|
||||||
|
const digest = ApRequestCreator.createDigest(contentBody);
|
||||||
|
|
||||||
const opts = {
|
const opts = {
|
||||||
attempts: this.config.deliverJobMaxAttempts ?? 12,
|
attempts: this.config.deliverJobMaxAttempts ?? 12,
|
||||||
@@ -117,7 +124,8 @@ export class QueueService {
|
|||||||
name: d[0],
|
name: d[0],
|
||||||
data: {
|
data: {
|
||||||
user,
|
user,
|
||||||
content,
|
content: contentBody,
|
||||||
|
digest,
|
||||||
to: d[0],
|
to: d[0],
|
||||||
isSharedInbox: d[1],
|
isSharedInbox: d[1],
|
||||||
} as DeliverJobData,
|
} as DeliverJobData,
|
||||||
@@ -174,6 +182,16 @@ export class QueueService {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public createExportClipsJob(user: ThinUser) {
|
||||||
|
return this.dbQueue.add('exportClips', {
|
||||||
|
user: { id: user.id },
|
||||||
|
}, {
|
||||||
|
removeOnComplete: true,
|
||||||
|
removeOnFail: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public createExportFavoritesJob(user: ThinUser) {
|
public createExportFavoritesJob(user: ThinUser) {
|
||||||
return this.dbQueue.add('exportFavorites', {
|
return this.dbQueue.add('exportFavorites', {
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ import { UserBlockingService } from '@/core/UserBlockingService.js';
|
|||||||
import { CustomEmojiService } from '@/core/CustomEmojiService.js';
|
import { CustomEmojiService } from '@/core/CustomEmojiService.js';
|
||||||
import { RoleService } from '@/core/RoleService.js';
|
import { RoleService } from '@/core/RoleService.js';
|
||||||
import { FeaturedService } from '@/core/FeaturedService.js';
|
import { FeaturedService } from '@/core/FeaturedService.js';
|
||||||
|
import { trackPromise } from '@/misc/promise-tracker.js';
|
||||||
|
|
||||||
const FALLBACK = '❤';
|
const FALLBACK = '❤';
|
||||||
const PER_NOTE_REACTION_USER_PAIR_CACHE_MAX = 16;
|
const PER_NOTE_REACTION_USER_PAIR_CACHE_MAX = 16;
|
||||||
@@ -138,7 +139,7 @@ export class ReactionService {
|
|||||||
reaction = reacterHost ? `:${name}@${reacterHost}:` : `:${name}:`;
|
reaction = reacterHost ? `:${name}@${reacterHost}:` : `:${name}:`;
|
||||||
|
|
||||||
// センシティブ
|
// センシティブ
|
||||||
if ((note.reactionAcceptance === 'nonSensitiveOnly') && emoji.isSensitive) {
|
if ((note.reactionAcceptance === 'nonSensitiveOnly' || note.reactionAcceptance === 'nonSensitiveOnlyForLocalLikeOnlyForRemote') && emoji.isSensitive) {
|
||||||
reaction = FALLBACK;
|
reaction = FALLBACK;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -268,7 +269,7 @@ export class ReactionService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dm.execute();
|
trackPromise(dm.execute());
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
}
|
}
|
||||||
@@ -316,7 +317,7 @@ export class ReactionService {
|
|||||||
dm.addDirectRecipe(reactee as MiRemoteUser);
|
dm.addDirectRecipe(reactee as MiRemoteUser);
|
||||||
}
|
}
|
||||||
dm.addFollowersRecipe();
|
dm.addFollowersRecipe();
|
||||||
dm.execute();
|
trackPromise(dm.execute());
|
||||||
}
|
}
|
||||||
//#endregion
|
//#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
411
packages/backend/src/core/ReversiService.ts
Normal file
411
packages/backend/src/core/ReversiService.ts
Normal file
@@ -0,0 +1,411 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
|
import * as Redis from 'ioredis';
|
||||||
|
import CRC32 from 'crc-32';
|
||||||
|
import { ModuleRef } from '@nestjs/core';
|
||||||
|
import * as Reversi from 'misskey-reversi';
|
||||||
|
import { IsNull } from 'typeorm';
|
||||||
|
import type {
|
||||||
|
MiReversiGame,
|
||||||
|
ReversiGamesRepository,
|
||||||
|
UsersRepository,
|
||||||
|
} from '@/models/_.js';
|
||||||
|
import type { MiUser } from '@/models/User.js';
|
||||||
|
import { DI } from '@/di-symbols.js';
|
||||||
|
import { bindThis } from '@/decorators.js';
|
||||||
|
import { MetaService } from '@/core/MetaService.js';
|
||||||
|
import { CacheService } from '@/core/CacheService.js';
|
||||||
|
import { UserEntityService } from '@/core/entities/UserEntityService.js';
|
||||||
|
import type { GlobalEvents } from '@/core/GlobalEventService.js';
|
||||||
|
import { GlobalEventService } from '@/core/GlobalEventService.js';
|
||||||
|
import { IdService } from '@/core/IdService.js';
|
||||||
|
import type { Packed } from '@/misc/json-schema.js';
|
||||||
|
import { NotificationService } from '@/core/NotificationService.js';
|
||||||
|
import { ReversiGameEntityService } from './entities/ReversiGameEntityService.js';
|
||||||
|
import type { OnApplicationShutdown, OnModuleInit } from '@nestjs/common';
|
||||||
|
|
||||||
|
const MATCHING_TIMEOUT_MS = 1000 * 15; // 15sec
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class ReversiService implements OnApplicationShutdown, OnModuleInit {
|
||||||
|
private notificationService: NotificationService;
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
private moduleRef: ModuleRef,
|
||||||
|
|
||||||
|
@Inject(DI.redis)
|
||||||
|
private redisClient: Redis.Redis,
|
||||||
|
|
||||||
|
@Inject(DI.reversiGamesRepository)
|
||||||
|
private reversiGamesRepository: ReversiGamesRepository,
|
||||||
|
|
||||||
|
private cacheService: CacheService,
|
||||||
|
private userEntityService: UserEntityService,
|
||||||
|
private globalEventService: GlobalEventService,
|
||||||
|
private reversiGameEntityService: ReversiGameEntityService,
|
||||||
|
private idService: IdService,
|
||||||
|
) {
|
||||||
|
}
|
||||||
|
|
||||||
|
async onModuleInit() {
|
||||||
|
this.notificationService = this.moduleRef.get(NotificationService.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public async matchSpecificUser(me: MiUser, targetUser: MiUser): Promise<MiReversiGame | null> {
|
||||||
|
if (targetUser.id === me.id) {
|
||||||
|
throw new Error('You cannot match yourself.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const invitations = await this.redisClient.zrange(
|
||||||
|
`reversi:matchSpecific:${me.id}`,
|
||||||
|
Date.now() - MATCHING_TIMEOUT_MS,
|
||||||
|
'+inf',
|
||||||
|
'BYSCORE');
|
||||||
|
|
||||||
|
if (invitations.includes(targetUser.id)) {
|
||||||
|
await this.redisClient.zrem(`reversi:matchSpecific:${me.id}`, targetUser.id);
|
||||||
|
|
||||||
|
const game = await this.reversiGamesRepository.insert({
|
||||||
|
id: this.idService.gen(),
|
||||||
|
user1Id: targetUser.id,
|
||||||
|
user2Id: me.id,
|
||||||
|
user1Ready: false,
|
||||||
|
user2Ready: false,
|
||||||
|
isStarted: false,
|
||||||
|
isEnded: false,
|
||||||
|
logs: [],
|
||||||
|
map: Reversi.maps.eighteight.data,
|
||||||
|
bw: 'random',
|
||||||
|
isLlotheo: false,
|
||||||
|
}).then(x => this.reversiGamesRepository.findOneByOrFail(x.identifiers[0]));
|
||||||
|
|
||||||
|
const packed = await this.reversiGameEntityService.packDetail(game, { id: targetUser.id });
|
||||||
|
this.globalEventService.publishReversiStream(targetUser.id, 'matched', { game: packed });
|
||||||
|
|
||||||
|
return game;
|
||||||
|
} else {
|
||||||
|
this.redisClient.zadd(`reversi:matchSpecific:${targetUser.id}`, Date.now(), me.id);
|
||||||
|
|
||||||
|
this.globalEventService.publishReversiStream(targetUser.id, 'invited', {
|
||||||
|
user: await this.userEntityService.pack(me, targetUser),
|
||||||
|
});
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public async matchAnyUser(me: MiUser): Promise<MiReversiGame | null> {
|
||||||
|
//#region まず自分宛ての招待を探す
|
||||||
|
const invitations = await this.redisClient.zrange(
|
||||||
|
`reversi:matchSpecific:${me.id}`,
|
||||||
|
Date.now() - MATCHING_TIMEOUT_MS,
|
||||||
|
'+inf',
|
||||||
|
'BYSCORE');
|
||||||
|
|
||||||
|
if (invitations.length > 0) {
|
||||||
|
const invitorId = invitations[Math.floor(Math.random() * invitations.length)];
|
||||||
|
await this.redisClient.zrem(`reversi:matchSpecific:${me.id}`, invitorId);
|
||||||
|
|
||||||
|
const game = await this.reversiGamesRepository.insert({
|
||||||
|
id: this.idService.gen(),
|
||||||
|
user1Id: invitorId,
|
||||||
|
user2Id: me.id,
|
||||||
|
user1Ready: false,
|
||||||
|
user2Ready: false,
|
||||||
|
isStarted: false,
|
||||||
|
isEnded: false,
|
||||||
|
logs: [],
|
||||||
|
map: Reversi.maps.eighteight.data,
|
||||||
|
bw: 'random',
|
||||||
|
isLlotheo: false,
|
||||||
|
}).then(x => this.reversiGamesRepository.findOneByOrFail(x.identifiers[0]));
|
||||||
|
|
||||||
|
const packed = await this.reversiGameEntityService.packDetail(game, { id: invitorId });
|
||||||
|
this.globalEventService.publishReversiStream(invitorId, 'matched', { game: packed });
|
||||||
|
|
||||||
|
return game;
|
||||||
|
}
|
||||||
|
//#endregion
|
||||||
|
|
||||||
|
const matchings = await this.redisClient.zrange(
|
||||||
|
'reversi:matchAny',
|
||||||
|
Date.now() - MATCHING_TIMEOUT_MS,
|
||||||
|
'+inf',
|
||||||
|
'BYSCORE');
|
||||||
|
|
||||||
|
const userIds = matchings.filter(id => id !== me.id);
|
||||||
|
|
||||||
|
if (userIds.length > 0) {
|
||||||
|
// pick random
|
||||||
|
const matchedUserId = userIds[Math.floor(Math.random() * userIds.length)];
|
||||||
|
|
||||||
|
await this.redisClient.zrem('reversi:matchAny', me.id, matchedUserId);
|
||||||
|
|
||||||
|
const game = await this.reversiGamesRepository.insert({
|
||||||
|
id: this.idService.gen(),
|
||||||
|
user1Id: matchedUserId,
|
||||||
|
user2Id: me.id,
|
||||||
|
user1Ready: false,
|
||||||
|
user2Ready: false,
|
||||||
|
isStarted: false,
|
||||||
|
isEnded: false,
|
||||||
|
logs: [],
|
||||||
|
map: Reversi.maps.eighteight.data,
|
||||||
|
bw: 'random',
|
||||||
|
isLlotheo: false,
|
||||||
|
}).then(x => this.reversiGamesRepository.findOneByOrFail(x.identifiers[0]));
|
||||||
|
|
||||||
|
const packed = await this.reversiGameEntityService.packDetail(game, { id: matchedUserId });
|
||||||
|
this.globalEventService.publishReversiStream(matchedUserId, 'matched', { game: packed });
|
||||||
|
|
||||||
|
return game;
|
||||||
|
} else {
|
||||||
|
await this.redisClient.zadd('reversi:matchAny', Date.now(), me.id);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public async matchSpecificUserCancel(user: MiUser, targetUserId: MiUser['id']) {
|
||||||
|
await this.redisClient.zrem(`reversi:matchSpecific:${targetUserId}`, user.id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public async matchAnyUserCancel(user: MiUser) {
|
||||||
|
await this.redisClient.zrem('reversi:matchAny', user.id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public async gameReady(game: MiReversiGame, user: MiUser, ready: boolean) {
|
||||||
|
if (game.isStarted) return;
|
||||||
|
|
||||||
|
let isBothReady = false;
|
||||||
|
|
||||||
|
if (game.user1Id === user.id) {
|
||||||
|
await this.reversiGamesRepository.update(game.id, {
|
||||||
|
user1Ready: ready,
|
||||||
|
});
|
||||||
|
|
||||||
|
this.globalEventService.publishReversiGameStream(game.id, 'changeReadyStates', {
|
||||||
|
user1: ready,
|
||||||
|
user2: game.user2Ready,
|
||||||
|
});
|
||||||
|
|
||||||
|
if (ready && game.user2Ready) isBothReady = true;
|
||||||
|
} else if (game.user2Id === user.id) {
|
||||||
|
await this.reversiGamesRepository.update(game.id, {
|
||||||
|
user2Ready: ready,
|
||||||
|
});
|
||||||
|
|
||||||
|
this.globalEventService.publishReversiGameStream(game.id, 'changeReadyStates', {
|
||||||
|
user1: game.user1Ready,
|
||||||
|
user2: ready,
|
||||||
|
});
|
||||||
|
|
||||||
|
if (ready && game.user1Ready) isBothReady = true;
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isBothReady) {
|
||||||
|
// 3秒後、両者readyならゲーム開始
|
||||||
|
setTimeout(async () => {
|
||||||
|
const freshGame = await this.reversiGamesRepository.findOneBy({ id: game.id });
|
||||||
|
if (freshGame == null || freshGame.isStarted || freshGame.isEnded) return;
|
||||||
|
if (!freshGame.user1Ready || !freshGame.user2Ready) return;
|
||||||
|
|
||||||
|
let bw: number;
|
||||||
|
if (freshGame.bw === 'random') {
|
||||||
|
bw = Math.random() > 0.5 ? 1 : 2;
|
||||||
|
} else {
|
||||||
|
bw = parseInt(freshGame.bw, 10);
|
||||||
|
}
|
||||||
|
|
||||||
|
function getRandomMap() {
|
||||||
|
const mapCount = Object.entries(Reversi.maps).length;
|
||||||
|
const rnd = Math.floor(Math.random() * mapCount);
|
||||||
|
return Object.values(Reversi.maps)[rnd].data;
|
||||||
|
}
|
||||||
|
|
||||||
|
const map = freshGame.map != null ? freshGame.map : getRandomMap();
|
||||||
|
|
||||||
|
await this.reversiGamesRepository.update(game.id, {
|
||||||
|
startedAt: new Date(),
|
||||||
|
isStarted: true,
|
||||||
|
black: bw,
|
||||||
|
map: map,
|
||||||
|
});
|
||||||
|
|
||||||
|
//#region 盤面に最初から石がないなどして始まった瞬間に勝敗が決定する場合があるのでその処理
|
||||||
|
const o = new Reversi.Game(map, {
|
||||||
|
isLlotheo: freshGame.isLlotheo,
|
||||||
|
canPutEverywhere: freshGame.canPutEverywhere,
|
||||||
|
loopedBoard: freshGame.loopedBoard,
|
||||||
|
});
|
||||||
|
|
||||||
|
if (o.isEnded) {
|
||||||
|
let winner;
|
||||||
|
if (o.winner === true) {
|
||||||
|
winner = freshGame.black === 1 ? freshGame.user1Id : freshGame.user2Id;
|
||||||
|
} else if (o.winner === false) {
|
||||||
|
winner = freshGame.black === 1 ? freshGame.user2Id : freshGame.user1Id;
|
||||||
|
} else {
|
||||||
|
winner = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
await this.reversiGamesRepository.update(game.id, {
|
||||||
|
isEnded: true,
|
||||||
|
winnerId: winner,
|
||||||
|
});
|
||||||
|
|
||||||
|
this.globalEventService.publishReversiGameStream(game.id, 'ended', {
|
||||||
|
winnerId: winner,
|
||||||
|
game: await this.reversiGameEntityService.packDetail(game.id, user),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//#endregion
|
||||||
|
|
||||||
|
this.globalEventService.publishReversiGameStream(game.id, 'started', {
|
||||||
|
game: await this.reversiGameEntityService.packDetail(game.id, user),
|
||||||
|
});
|
||||||
|
}, 3000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public async getInvitations(user: MiUser): Promise<MiUser['id'][]> {
|
||||||
|
const invitations = await this.redisClient.zrange(
|
||||||
|
`reversi:matchSpecific:${user.id}`,
|
||||||
|
Date.now() - MATCHING_TIMEOUT_MS,
|
||||||
|
'+inf',
|
||||||
|
'BYSCORE');
|
||||||
|
return invitations;
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public async updateSettings(game: MiReversiGame, user: MiUser, key: string, value: any) {
|
||||||
|
if (game.isStarted) return;
|
||||||
|
if ((game.user1Id !== user.id) && (game.user2Id !== user.id)) return;
|
||||||
|
if ((game.user1Id === user.id) && game.user1Ready) return;
|
||||||
|
if ((game.user2Id === user.id) && game.user2Ready) return;
|
||||||
|
|
||||||
|
if (!['map', 'bw', 'isLlotheo', 'canPutEverywhere', 'loopedBoard'].includes(key)) return;
|
||||||
|
|
||||||
|
await this.reversiGamesRepository.update(game.id, {
|
||||||
|
[key]: value,
|
||||||
|
});
|
||||||
|
|
||||||
|
this.globalEventService.publishReversiGameStream(game.id, 'updateSettings', {
|
||||||
|
userId: user.id,
|
||||||
|
key: key,
|
||||||
|
value: value,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public async putStoneToGame(game: MiReversiGame, user: MiUser, pos: number) {
|
||||||
|
if (!game.isStarted) return;
|
||||||
|
if (game.isEnded) return;
|
||||||
|
if ((game.user1Id !== user.id) && (game.user2Id !== user.id)) return;
|
||||||
|
|
||||||
|
const myColor =
|
||||||
|
((game.user1Id === user.id) && game.black === 1) || ((game.user2Id === user.id) && game.black === 2)
|
||||||
|
? true
|
||||||
|
: false;
|
||||||
|
|
||||||
|
const o = new Reversi.Game(game.map, {
|
||||||
|
isLlotheo: game.isLlotheo,
|
||||||
|
canPutEverywhere: game.canPutEverywhere,
|
||||||
|
loopedBoard: game.loopedBoard,
|
||||||
|
});
|
||||||
|
|
||||||
|
// 盤面の状態を再生
|
||||||
|
for (const log of game.logs) {
|
||||||
|
o.put(log.color, log.pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (o.turn !== myColor) return;
|
||||||
|
|
||||||
|
if (!o.canPut(myColor, pos)) return;
|
||||||
|
o.put(myColor, pos);
|
||||||
|
|
||||||
|
let winner;
|
||||||
|
if (o.isEnded) {
|
||||||
|
if (o.winner === true) {
|
||||||
|
winner = game.black === 1 ? game.user1Id : game.user2Id;
|
||||||
|
} else if (o.winner === false) {
|
||||||
|
winner = game.black === 1 ? game.user2Id : game.user1Id;
|
||||||
|
} else {
|
||||||
|
winner = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const log = {
|
||||||
|
at: Date.now(),
|
||||||
|
color: myColor,
|
||||||
|
pos,
|
||||||
|
};
|
||||||
|
|
||||||
|
const crc32 = CRC32.str(game.logs.map(x => x.pos.toString()).join('') + pos.toString()).toString();
|
||||||
|
|
||||||
|
game.logs.push(log);
|
||||||
|
|
||||||
|
await this.reversiGamesRepository.update(game.id, {
|
||||||
|
crc32,
|
||||||
|
isEnded: o.isEnded,
|
||||||
|
winnerId: winner,
|
||||||
|
logs: game.logs,
|
||||||
|
});
|
||||||
|
|
||||||
|
this.globalEventService.publishReversiGameStream(game.id, 'putStone', {
|
||||||
|
...log,
|
||||||
|
next: o.turn,
|
||||||
|
});
|
||||||
|
|
||||||
|
if (o.isEnded) {
|
||||||
|
this.globalEventService.publishReversiGameStream(game.id, 'ended', {
|
||||||
|
winnerId: winner,
|
||||||
|
game: await this.reversiGameEntityService.packDetail(game.id, user),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public async surrender(game: MiReversiGame, user: MiUser) {
|
||||||
|
if (game.isEnded) return;
|
||||||
|
if ((game.user1Id !== user.id) && (game.user2Id !== user.id)) return;
|
||||||
|
|
||||||
|
const winnerId = game.user1Id === user.id ? game.user2Id : game.user1Id;
|
||||||
|
|
||||||
|
await this.reversiGamesRepository.update(game.id, {
|
||||||
|
surrendered: user.id,
|
||||||
|
isEnded: true,
|
||||||
|
winnerId: winnerId,
|
||||||
|
});
|
||||||
|
|
||||||
|
this.globalEventService.publishReversiGameStream(game.id, 'ended', {
|
||||||
|
winnerId: winnerId,
|
||||||
|
game: await this.reversiGameEntityService.packDetail(game.id, user),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public async get(id: MiReversiGame['id']) {
|
||||||
|
return this.reversiGamesRepository.findOneBy({ id });
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public dispose(): void {
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public onApplicationShutdown(signal?: string | undefined): void {
|
||||||
|
this.dispose();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3,8 +3,9 @@
|
|||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Inject, Injectable, OnApplicationShutdown } from '@nestjs/common';
|
import { Inject, Injectable, OnApplicationShutdown, OnModuleInit } from '@nestjs/common';
|
||||||
import * as Redis from 'ioredis';
|
import * as Redis from 'ioredis';
|
||||||
|
import { ModuleRef } from '@nestjs/core';
|
||||||
import type { UserListMembershipsRepository } from '@/models/_.js';
|
import type { UserListMembershipsRepository } from '@/models/_.js';
|
||||||
import type { MiUser } from '@/models/User.js';
|
import type { MiUser } from '@/models/User.js';
|
||||||
import type { MiUserList } from '@/models/UserList.js';
|
import type { MiUserList } from '@/models/UserList.js';
|
||||||
@@ -21,12 +22,15 @@ import { RedisKVCache } from '@/misc/cache.js';
|
|||||||
import { RoleService } from '@/core/RoleService.js';
|
import { RoleService } from '@/core/RoleService.js';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class UserListService implements OnApplicationShutdown {
|
export class UserListService implements OnApplicationShutdown, OnModuleInit {
|
||||||
public static TooManyUsersError = class extends Error {};
|
public static TooManyUsersError = class extends Error {};
|
||||||
|
|
||||||
public membersCache: RedisKVCache<Set<string>>;
|
public membersCache: RedisKVCache<Set<string>>;
|
||||||
|
private roleService: RoleService;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
private moduleRef: ModuleRef,
|
||||||
|
|
||||||
@Inject(DI.redis)
|
@Inject(DI.redis)
|
||||||
private redisClient: Redis.Redis,
|
private redisClient: Redis.Redis,
|
||||||
|
|
||||||
@@ -38,7 +42,6 @@ export class UserListService implements OnApplicationShutdown {
|
|||||||
|
|
||||||
private userEntityService: UserEntityService,
|
private userEntityService: UserEntityService,
|
||||||
private idService: IdService,
|
private idService: IdService,
|
||||||
private roleService: RoleService,
|
|
||||||
private globalEventService: GlobalEventService,
|
private globalEventService: GlobalEventService,
|
||||||
private proxyAccountService: ProxyAccountService,
|
private proxyAccountService: ProxyAccountService,
|
||||||
private queueService: QueueService,
|
private queueService: QueueService,
|
||||||
@@ -54,6 +57,10 @@ export class UserListService implements OnApplicationShutdown {
|
|||||||
this.redisForSub.on('message', this.onMessage);
|
this.redisForSub.on('message', this.onMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async onModuleInit() {
|
||||||
|
this.roleService = this.moduleRef.get(RoleService.name);
|
||||||
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
private async onMessage(_: string, data: string): Promise<void> {
|
private async onMessage(_: string, data: string): Promise<void> {
|
||||||
const obj = JSON.parse(data);
|
const obj = JSON.parse(data);
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
import { URL } from 'node:url';
|
import { URL } from 'node:url';
|
||||||
import { toASCII } from 'punycode';
|
import { toASCII } from 'punycode';
|
||||||
import { Inject, Injectable } from '@nestjs/common';
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
|
import RE2 from 're2';
|
||||||
import { DI } from '@/di-symbols.js';
|
import { DI } from '@/di-symbols.js';
|
||||||
import type { Config } from '@/config.js';
|
import type { Config } from '@/config.js';
|
||||||
import { bindThis } from '@/decorators.js';
|
import { bindThis } from '@/decorators.js';
|
||||||
@@ -41,6 +42,33 @@ export class UtilityService {
|
|||||||
return silencedHosts.some(x => `.${host.toLowerCase()}`.endsWith(`.${x}`));
|
return silencedHosts.some(x => `.${host.toLowerCase()}`.endsWith(`.${x}`));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public isSensitiveWordIncluded(text: string, sensitiveWords: string[]): boolean {
|
||||||
|
if (sensitiveWords.length === 0) return false;
|
||||||
|
if (text === '') return false;
|
||||||
|
|
||||||
|
const regexpregexp = /^\/(.+)\/(.*)$/;
|
||||||
|
|
||||||
|
const matched = sensitiveWords.some(filter => {
|
||||||
|
// represents RegExp
|
||||||
|
const regexp = filter.match(regexpregexp);
|
||||||
|
// This should never happen due to input sanitisation.
|
||||||
|
if (!regexp) {
|
||||||
|
const words = filter.split(' ');
|
||||||
|
return words.every(keyword => text.includes(keyword));
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
// TODO: RE2インスタンスをキャッシュ
|
||||||
|
return new RE2(regexp[1], regexp[2]).test(text);
|
||||||
|
} catch (err) {
|
||||||
|
// This should never happen due to input sanitisation.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
return matched;
|
||||||
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public extractDbHost(uri: string): string {
|
public extractDbHost(uri: string): string {
|
||||||
const url = new URL(uri);
|
const url = new URL(uri);
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ export class ApAudienceService {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (toGroups.followers.length > 0) {
|
if (toGroups.followers.length > 0 || ccGroups.followers.length > 0) {
|
||||||
return {
|
return {
|
||||||
visibility: 'followers',
|
visibility: 'followers',
|
||||||
mentionedUsers,
|
mentionedUsers,
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ class DeliverManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// deliver
|
// deliver
|
||||||
this.queueService.deliverMany(this.actor, this.activity, inboxes);
|
await this.queueService.deliverMany(this.actor, this.activity, inboxes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -97,6 +97,8 @@ export class ApInboxService {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err instanceof Error || typeof err === 'string') {
|
if (err instanceof Error || typeof err === 'string') {
|
||||||
this.logger.error(err);
|
this.logger.error(err);
|
||||||
|
} else {
|
||||||
|
throw err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -256,7 +258,7 @@ export class ApInboxService {
|
|||||||
|
|
||||||
const targetUri = getApId(activity.object);
|
const targetUri = getApId(activity.object);
|
||||||
|
|
||||||
this.announceNote(actor, activity, targetUri);
|
await this.announceNote(actor, activity, targetUri);
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
@@ -288,7 +290,7 @@ export class ApInboxService {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
// 対象が4xxならスキップ
|
// 対象が4xxならスキップ
|
||||||
if (err instanceof StatusError) {
|
if (err instanceof StatusError) {
|
||||||
if (err.isClientError) {
|
if (!err.isRetryable) {
|
||||||
this.logger.warn(`Ignored announce target ${targetUri} - ${err.statusCode}`);
|
this.logger.warn(`Ignored announce target ${targetUri} - ${err.statusCode}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -373,7 +375,7 @@ export class ApInboxService {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (isPost(object)) {
|
if (isPost(object)) {
|
||||||
this.createNote(resolver, actor, object, false, activity);
|
await this.createNote(resolver, actor, object, false, activity);
|
||||||
} else {
|
} else {
|
||||||
this.logger.warn(`Unknown type: ${getApType(object)}`);
|
this.logger.warn(`Unknown type: ${getApType(object)}`);
|
||||||
}
|
}
|
||||||
@@ -404,7 +406,7 @@ export class ApInboxService {
|
|||||||
await this.apNoteService.createNote(note, resolver, silent);
|
await this.apNoteService.createNote(note, resolver, silent);
|
||||||
return 'ok';
|
return 'ok';
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err instanceof StatusError && err.isClientError) {
|
if (err instanceof StatusError && !err.isRetryable) {
|
||||||
return `skip ${err.statusCode}`;
|
return `skip ${err.statusCode}`;
|
||||||
} else {
|
} else {
|
||||||
throw err;
|
throw err;
|
||||||
|
|||||||
@@ -34,9 +34,9 @@ type PrivateKey = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export class ApRequestCreator {
|
export class ApRequestCreator {
|
||||||
static createSignedPost(args: { key: PrivateKey, url: string, body: string, additionalHeaders: Record<string, string> }): Signed {
|
static createSignedPost(args: { key: PrivateKey, url: string, body: string, digest?: string, additionalHeaders: Record<string, string> }): Signed {
|
||||||
const u = new URL(args.url);
|
const u = new URL(args.url);
|
||||||
const digestHeader = `SHA-256=${crypto.createHash('sha256').update(args.body).digest('base64')}`;
|
const digestHeader = args.digest ?? this.createDigest(args.body);
|
||||||
|
|
||||||
const request: Request = {
|
const request: Request = {
|
||||||
url: u.href,
|
url: u.href,
|
||||||
@@ -59,6 +59,10 @@ export class ApRequestCreator {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static createDigest(body: string) {
|
||||||
|
return `SHA-256=${crypto.createHash('sha256').update(body).digest('base64')}`;
|
||||||
|
}
|
||||||
|
|
||||||
static createSignedGet(args: { key: PrivateKey, url: string, additionalHeaders: Record<string, string> }): Signed {
|
static createSignedGet(args: { key: PrivateKey, url: string, additionalHeaders: Record<string, string> }): Signed {
|
||||||
const u = new URL(args.url);
|
const u = new URL(args.url);
|
||||||
|
|
||||||
@@ -145,8 +149,8 @@ export class ApRequestService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public async signedPost(user: { id: MiUser['id'] }, url: string, object: unknown): Promise<void> {
|
public async signedPost(user: { id: MiUser['id'] }, url: string, object: unknown, digest?: string): Promise<void> {
|
||||||
const body = JSON.stringify(object);
|
const body = typeof object === 'string' ? object : JSON.stringify(object);
|
||||||
|
|
||||||
const keypair = await this.userKeypairService.getUserKeypair(user.id);
|
const keypair = await this.userKeypairService.getUserKeypair(user.id);
|
||||||
|
|
||||||
@@ -157,6 +161,7 @@ export class ApRequestService {
|
|||||||
},
|
},
|
||||||
url,
|
url,
|
||||||
body,
|
body,
|
||||||
|
digest,
|
||||||
additionalHeaders: {
|
additionalHeaders: {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ export class ApNoteService {
|
|||||||
return { status: 'ok', res };
|
return { status: 'ok', res };
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return {
|
return {
|
||||||
status: (e instanceof StatusError && e.isClientError) ? 'permerror' : 'temperror',
|
status: (e instanceof StatusError && !e.isRetryable) ? 'permerror' : 'temperror',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -351,6 +351,7 @@ export class NoteEntityService implements OnModuleInit {
|
|||||||
color: channel.color,
|
color: channel.color,
|
||||||
isSensitive: channel.isSensitive,
|
isSensitive: channel.isSensitive,
|
||||||
allowRenoteToExternal: channel.allowRenoteToExternal,
|
allowRenoteToExternal: channel.allowRenoteToExternal,
|
||||||
|
userId: channel.userId,
|
||||||
} : undefined,
|
} : undefined,
|
||||||
mentions: note.mentions.length > 0 ? note.mentions : undefined,
|
mentions: note.mentions.length > 0 ? note.mentions : undefined,
|
||||||
uri: note.uri ?? undefined,
|
uri: note.uri ?? undefined,
|
||||||
|
|||||||
115
packages/backend/src/core/entities/ReversiGameEntityService.ts
Normal file
115
packages/backend/src/core/entities/ReversiGameEntityService.ts
Normal file
@@ -0,0 +1,115 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
|
import { DI } from '@/di-symbols.js';
|
||||||
|
import type { ReversiGamesRepository } from '@/models/_.js';
|
||||||
|
import { awaitAll } from '@/misc/prelude/await-all.js';
|
||||||
|
import type { Packed } from '@/misc/json-schema.js';
|
||||||
|
import type { } from '@/models/Blocking.js';
|
||||||
|
import type { MiUser } from '@/models/User.js';
|
||||||
|
import type { MiReversiGame } from '@/models/ReversiGame.js';
|
||||||
|
import { bindThis } from '@/decorators.js';
|
||||||
|
import { IdService } from '@/core/IdService.js';
|
||||||
|
import { UserEntityService } from './UserEntityService.js';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class ReversiGameEntityService {
|
||||||
|
constructor(
|
||||||
|
@Inject(DI.reversiGamesRepository)
|
||||||
|
private reversiGamesRepository: ReversiGamesRepository,
|
||||||
|
|
||||||
|
private userEntityService: UserEntityService,
|
||||||
|
private idService: IdService,
|
||||||
|
) {
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public async packDetail(
|
||||||
|
src: MiReversiGame['id'] | MiReversiGame,
|
||||||
|
me?: { id: MiUser['id'] } | null | undefined,
|
||||||
|
): Promise<Packed<'ReversiGameDetailed'>> {
|
||||||
|
const game = typeof src === 'object' ? src : await this.reversiGamesRepository.findOneByOrFail({ id: src });
|
||||||
|
|
||||||
|
return await awaitAll({
|
||||||
|
id: game.id,
|
||||||
|
createdAt: this.idService.parse(game.id).date.toISOString(),
|
||||||
|
startedAt: game.startedAt && game.startedAt.toISOString(),
|
||||||
|
isStarted: game.isStarted,
|
||||||
|
isEnded: game.isEnded,
|
||||||
|
form1: game.form1,
|
||||||
|
form2: game.form2,
|
||||||
|
user1Ready: game.user1Ready,
|
||||||
|
user2Ready: game.user2Ready,
|
||||||
|
user1Id: game.user1Id,
|
||||||
|
user2Id: game.user2Id,
|
||||||
|
user1: this.userEntityService.pack(game.user1Id, me),
|
||||||
|
user2: this.userEntityService.pack(game.user2Id, me),
|
||||||
|
winnerId: game.winnerId,
|
||||||
|
winner: game.winnerId ? this.userEntityService.pack(game.winnerId, me) : null,
|
||||||
|
surrendered: game.surrendered,
|
||||||
|
black: game.black,
|
||||||
|
bw: game.bw,
|
||||||
|
isLlotheo: game.isLlotheo,
|
||||||
|
canPutEverywhere: game.canPutEverywhere,
|
||||||
|
loopedBoard: game.loopedBoard,
|
||||||
|
logs: game.logs.map(log => ({
|
||||||
|
at: log.at,
|
||||||
|
color: log.color,
|
||||||
|
pos: log.pos,
|
||||||
|
})),
|
||||||
|
map: game.map,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public packDetailMany(
|
||||||
|
xs: MiReversiGame[],
|
||||||
|
me?: { id: MiUser['id'] } | null | undefined,
|
||||||
|
) {
|
||||||
|
return Promise.all(xs.map(x => this.packDetail(x, me)));
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public async packLite(
|
||||||
|
src: MiReversiGame['id'] | MiReversiGame,
|
||||||
|
me?: { id: MiUser['id'] } | null | undefined,
|
||||||
|
): Promise<Packed<'ReversiGameLite'>> {
|
||||||
|
const game = typeof src === 'object' ? src : await this.reversiGamesRepository.findOneByOrFail({ id: src });
|
||||||
|
|
||||||
|
return await awaitAll({
|
||||||
|
id: game.id,
|
||||||
|
createdAt: this.idService.parse(game.id).date.toISOString(),
|
||||||
|
startedAt: game.startedAt && game.startedAt.toISOString(),
|
||||||
|
isStarted: game.isStarted,
|
||||||
|
isEnded: game.isEnded,
|
||||||
|
form1: game.form1,
|
||||||
|
form2: game.form2,
|
||||||
|
user1Ready: game.user1Ready,
|
||||||
|
user2Ready: game.user2Ready,
|
||||||
|
user1Id: game.user1Id,
|
||||||
|
user2Id: game.user2Id,
|
||||||
|
user1: this.userEntityService.pack(game.user1Id, me),
|
||||||
|
user2: this.userEntityService.pack(game.user2Id, me),
|
||||||
|
winnerId: game.winnerId,
|
||||||
|
winner: game.winnerId ? this.userEntityService.pack(game.winnerId, me) : null,
|
||||||
|
surrendered: game.surrendered,
|
||||||
|
black: game.black,
|
||||||
|
bw: game.bw,
|
||||||
|
isLlotheo: game.isLlotheo,
|
||||||
|
canPutEverywhere: game.canPutEverywhere,
|
||||||
|
loopedBoard: game.loopedBoard,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public packLiteMany(
|
||||||
|
xs: MiReversiGame[],
|
||||||
|
me?: { id: MiUser['id'] } | null | undefined,
|
||||||
|
) {
|
||||||
|
return Promise.all(xs.map(x => this.packLite(x, me)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ export class ServerStatsService implements OnApplicationShutdown {
|
|||||||
const log = [] as any[];
|
const log = [] as any[];
|
||||||
|
|
||||||
ev.on('requestServerStatsLog', x => {
|
ev.on('requestServerStatsLog', x => {
|
||||||
ev.emit(`serverStatsLog:${x.id}`, log.slice(0, x.length ?? 50));
|
ev.emit(`serverStatsLog:${x.id}`, log.slice(0, x.length));
|
||||||
});
|
});
|
||||||
|
|
||||||
const tick = async () => {
|
const tick = async () => {
|
||||||
|
|||||||
@@ -78,5 +78,7 @@ export const DI = {
|
|||||||
flashsRepository: Symbol('flashsRepository'),
|
flashsRepository: Symbol('flashsRepository'),
|
||||||
flashLikesRepository: Symbol('flashLikesRepository'),
|
flashLikesRepository: Symbol('flashLikesRepository'),
|
||||||
userMemosRepository: Symbol('userMemosRepository'),
|
userMemosRepository: Symbol('userMemosRepository'),
|
||||||
|
bubbleGameRecordsRepository: Symbol('bubbleGameRecordsRepository'),
|
||||||
|
reversiGamesRepository: Symbol('reversiGamesRepository'),
|
||||||
//#endregion
|
//#endregion
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -71,8 +71,11 @@ export default class Logger {
|
|||||||
let log = `${l} ${worker}\t[${contexts.join(' ')}]\t${m}`;
|
let log = `${l} ${worker}\t[${contexts.join(' ')}]\t${m}`;
|
||||||
if (envOption.withLogTime) log = chalk.gray(time) + ' ' + log;
|
if (envOption.withLogTime) log = chalk.gray(time) + ' ' + log;
|
||||||
|
|
||||||
console.log(important ? chalk.bold(log) : log);
|
const args: unknown[] = [important ? chalk.bold(log) : log];
|
||||||
if (level === 'error' && data) console.log(data);
|
if (data != null) {
|
||||||
|
args.push(data);
|
||||||
|
}
|
||||||
|
console.log(...args);
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
/*
|
|
||||||
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
|
||||||
*/
|
|
||||||
|
|
||||||
export const kinds = [
|
|
||||||
'read:account',
|
|
||||||
'write:account',
|
|
||||||
'read:blocks',
|
|
||||||
'write:blocks',
|
|
||||||
'read:drive',
|
|
||||||
'write:drive',
|
|
||||||
'read:favorites',
|
|
||||||
'write:favorites',
|
|
||||||
'read:following',
|
|
||||||
'write:following',
|
|
||||||
'read:messaging',
|
|
||||||
'write:messaging',
|
|
||||||
'read:mutes',
|
|
||||||
'write:mutes',
|
|
||||||
'write:notes',
|
|
||||||
'read:notifications',
|
|
||||||
'write:notifications',
|
|
||||||
'read:reactions',
|
|
||||||
'write:reactions',
|
|
||||||
'write:votes',
|
|
||||||
'read:pages',
|
|
||||||
'write:pages',
|
|
||||||
'write:page-likes',
|
|
||||||
'read:page-likes',
|
|
||||||
'read:user-groups',
|
|
||||||
'write:user-groups',
|
|
||||||
'read:channels',
|
|
||||||
'write:channels',
|
|
||||||
'read:gallery',
|
|
||||||
'write:gallery',
|
|
||||||
'read:gallery-likes',
|
|
||||||
'write:gallery-likes',
|
|
||||||
];
|
|
||||||
// IF YOU ADD KINDS(PERMISSIONS), YOU MUST ADD TRANSLATIONS (under _permissions).
|
|
||||||
@@ -7,5 +7,6 @@ import type { MiNote } from '@/models/Note.js';
|
|||||||
|
|
||||||
// eslint-disable-next-line import/no-default-export
|
// eslint-disable-next-line import/no-default-export
|
||||||
export default function(note: MiNote): boolean {
|
export default function(note: MiNote): boolean {
|
||||||
|
// sync with NoteCreateService.isQuote
|
||||||
return note.renoteId != null && (note.text != null || note.hasPoll || (note.fileIds != null && note.fileIds.length > 0));
|
return note.renoteId != null && (note.text != null || note.hasPoll || (note.fileIds != null && note.fileIds.length > 0));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,6 +38,8 @@ import { packedFlashSchema } from '@/models/json-schema/flash.js';
|
|||||||
import { packedAnnouncementSchema } from '@/models/json-schema/announcement.js';
|
import { packedAnnouncementSchema } from '@/models/json-schema/announcement.js';
|
||||||
import { packedSigninSchema } from '@/models/json-schema/signin.js';
|
import { packedSigninSchema } from '@/models/json-schema/signin.js';
|
||||||
import { packedRoleLiteSchema, packedRoleSchema } from '@/models/json-schema/role.js';
|
import { packedRoleLiteSchema, packedRoleSchema } from '@/models/json-schema/role.js';
|
||||||
|
import { packedAdSchema } from '@/models/json-schema/ad.js';
|
||||||
|
import { packedReversiGameLiteSchema, packedReversiGameDetailedSchema } from '@/models/json-schema/reversi-game.js';
|
||||||
|
|
||||||
export const refs = {
|
export const refs = {
|
||||||
UserLite: packedUserLiteSchema,
|
UserLite: packedUserLiteSchema,
|
||||||
@@ -49,6 +51,7 @@ export const refs = {
|
|||||||
User: packedUserSchema,
|
User: packedUserSchema,
|
||||||
|
|
||||||
UserList: packedUserListSchema,
|
UserList: packedUserListSchema,
|
||||||
|
Ad: packedAdSchema,
|
||||||
Announcement: packedAnnouncementSchema,
|
Announcement: packedAnnouncementSchema,
|
||||||
App: packedAppSchema,
|
App: packedAppSchema,
|
||||||
Note: packedNoteSchema,
|
Note: packedNoteSchema,
|
||||||
@@ -76,6 +79,8 @@ export const refs = {
|
|||||||
Signin: packedSigninSchema,
|
Signin: packedSigninSchema,
|
||||||
RoleLite: packedRoleLiteSchema,
|
RoleLite: packedRoleLiteSchema,
|
||||||
Role: packedRoleSchema,
|
Role: packedRoleSchema,
|
||||||
|
ReversiGameLite: packedReversiGameLiteSchema,
|
||||||
|
ReversiGameDetailed: packedReversiGameDetailedSchema,
|
||||||
};
|
};
|
||||||
|
|
||||||
export type Packed<x extends keyof typeof refs> = SchemaType<typeof refs[x]>;
|
export type Packed<x extends keyof typeof refs> = SchemaType<typeof refs[x]>;
|
||||||
|
|||||||
23
packages/backend/src/misc/promise-tracker.ts
Normal file
23
packages/backend/src/misc/promise-tracker.ts
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
const promiseRefs: Set<WeakRef<Promise<unknown>>> = new Set();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This tracks promises that other modules decided not to wait for,
|
||||||
|
* and makes sure they are all settled before fully closing down the server.
|
||||||
|
*/
|
||||||
|
export function trackPromise(promise: Promise<unknown>) {
|
||||||
|
if (process.env.NODE_ENV !== 'test') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const ref = new WeakRef(promise);
|
||||||
|
promiseRefs.add(ref);
|
||||||
|
promise.finally(() => promiseRefs.delete(ref));
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function allSettled(): Promise<void> {
|
||||||
|
await Promise.allSettled([...promiseRefs].map(r => r.deref()));
|
||||||
|
}
|
||||||
@@ -7,6 +7,7 @@ export class StatusError extends Error {
|
|||||||
public statusCode: number;
|
public statusCode: number;
|
||||||
public statusMessage?: string;
|
public statusMessage?: string;
|
||||||
public isClientError: boolean;
|
public isClientError: boolean;
|
||||||
|
public isRetryable: boolean;
|
||||||
|
|
||||||
constructor(message: string, statusCode: number, statusMessage?: string) {
|
constructor(message: string, statusCode: number, statusMessage?: string) {
|
||||||
super(message);
|
super(message);
|
||||||
@@ -14,5 +15,6 @@ export class StatusError extends Error {
|
|||||||
this.statusCode = statusCode;
|
this.statusCode = statusCode;
|
||||||
this.statusMessage = statusMessage;
|
this.statusMessage = statusMessage;
|
||||||
this.isClientError = typeof this.statusCode === 'number' && this.statusCode >= 400 && this.statusCode < 500;
|
this.isClientError = typeof this.statusCode === 'number' && this.statusCode >= 400 && this.statusCode < 500;
|
||||||
|
this.isRetryable = !this.isClientError || this.statusCode === 429;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
57
packages/backend/src/models/BubbleGameRecord.ts
Normal file
57
packages/backend/src/models/BubbleGameRecord.ts
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typeorm';
|
||||||
|
import { id } from './util/id.js';
|
||||||
|
import { MiUser } from './User.js';
|
||||||
|
|
||||||
|
@Entity('bubble_game_record')
|
||||||
|
export class MiBubbleGameRecord {
|
||||||
|
@PrimaryColumn(id())
|
||||||
|
public id: string;
|
||||||
|
|
||||||
|
@Index()
|
||||||
|
@Column({
|
||||||
|
...id(),
|
||||||
|
})
|
||||||
|
public userId: MiUser['id'];
|
||||||
|
|
||||||
|
@ManyToOne(type => MiUser, {
|
||||||
|
onDelete: 'CASCADE',
|
||||||
|
})
|
||||||
|
@JoinColumn()
|
||||||
|
public user: MiUser | null;
|
||||||
|
|
||||||
|
@Index()
|
||||||
|
@Column('timestamp with time zone')
|
||||||
|
public seededAt: Date;
|
||||||
|
|
||||||
|
@Column('varchar', {
|
||||||
|
length: 1024,
|
||||||
|
})
|
||||||
|
public seed: string;
|
||||||
|
|
||||||
|
@Column('integer')
|
||||||
|
public gameVersion: number;
|
||||||
|
|
||||||
|
@Column('varchar', {
|
||||||
|
length: 128,
|
||||||
|
})
|
||||||
|
public gameMode: string;
|
||||||
|
|
||||||
|
@Index()
|
||||||
|
@Column('integer')
|
||||||
|
public score: number;
|
||||||
|
|
||||||
|
@Column('jsonb', {
|
||||||
|
default: [],
|
||||||
|
})
|
||||||
|
public logs: any[];
|
||||||
|
|
||||||
|
@Column('boolean', {
|
||||||
|
default: false,
|
||||||
|
})
|
||||||
|
public isVerified: boolean;
|
||||||
|
}
|
||||||
@@ -191,6 +191,29 @@ export class MiMeta {
|
|||||||
})
|
})
|
||||||
public hcaptchaSecretKey: string | null;
|
public hcaptchaSecretKey: string | null;
|
||||||
|
|
||||||
|
@Column('boolean', {
|
||||||
|
default: false,
|
||||||
|
})
|
||||||
|
public enableMcaptcha: boolean;
|
||||||
|
|
||||||
|
@Column('varchar', {
|
||||||
|
length: 1024,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
public mcaptchaSitekey: string | null;
|
||||||
|
|
||||||
|
@Column('varchar', {
|
||||||
|
length: 1024,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
public mcaptchaSecretKey: string | null;
|
||||||
|
|
||||||
|
@Column('varchar', {
|
||||||
|
length: 1024,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
public mcaptchaInstanceUrl: string | null;
|
||||||
|
|
||||||
@Column('boolean', {
|
@Column('boolean', {
|
||||||
default: false,
|
default: false,
|
||||||
})
|
})
|
||||||
@@ -457,6 +480,23 @@ export class MiMeta {
|
|||||||
})
|
})
|
||||||
public verifymailAuthKey: string | null;
|
public verifymailAuthKey: string | null;
|
||||||
|
|
||||||
|
@Column('boolean', {
|
||||||
|
default: false,
|
||||||
|
})
|
||||||
|
public enableTruemailApi: boolean;
|
||||||
|
|
||||||
|
@Column('varchar', {
|
||||||
|
length: 1024,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
public truemailInstance: string | null;
|
||||||
|
|
||||||
|
@Column('varchar', {
|
||||||
|
length: 1024,
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
public truemailAuthKey: string | null;
|
||||||
|
|
||||||
@Column('boolean', {
|
@Column('boolean', {
|
||||||
default: true,
|
default: true,
|
||||||
})
|
})
|
||||||
@@ -495,6 +535,13 @@ export class MiMeta {
|
|||||||
})
|
})
|
||||||
public manifestJsonOverride: string;
|
public manifestJsonOverride: string;
|
||||||
|
|
||||||
|
@Column('varchar', {
|
||||||
|
length: 1024,
|
||||||
|
array: true,
|
||||||
|
default: '{}',
|
||||||
|
})
|
||||||
|
public bannedEmailDomains: string[];
|
||||||
|
|
||||||
@Column('varchar', {
|
@Column('varchar', {
|
||||||
length: 1024, array: true, default: '{ "admin", "administrator", "root", "system", "maintainer", "host", "mod", "moderator", "owner", "superuser", "staff", "auth", "i", "me", "everyone", "all", "mention", "mentions", "example", "user", "users", "account", "accounts", "official", "help", "helps", "support", "supports", "info", "information", "informations", "announce", "announces", "announcement", "announcements", "notice", "notification", "notifications", "dev", "developer", "developers", "tech", "misskey" }',
|
length: 1024, array: true, default: '{ "admin", "administrator", "root", "system", "maintainer", "host", "mod", "moderator", "owner", "superuser", "staff", "auth", "i", "me", "everyone", "all", "mention", "mentions", "example", "user", "users", "account", "accounts", "official", "help", "helps", "support", "supports", "info", "information", "informations", "announce", "announces", "announcement", "announcements", "notice", "notification", "notifications", "dev", "developer", "developers", "tech", "misskey" }',
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -11,9 +11,6 @@ import { MiChannel } from './Channel.js';
|
|||||||
import type { MiDriveFile } from './DriveFile.js';
|
import type { MiDriveFile } from './DriveFile.js';
|
||||||
|
|
||||||
@Entity('note')
|
@Entity('note')
|
||||||
@Index('IDX_NOTE_TAGS', { synchronize: false })
|
|
||||||
@Index('IDX_NOTE_MENTIONS', { synchronize: false })
|
|
||||||
@Index('IDX_NOTE_VISIBLE_USER_IDS', { synchronize: false })
|
|
||||||
export class MiNote {
|
export class MiNote {
|
||||||
@PrimaryColumn(id())
|
@PrimaryColumn(id())
|
||||||
public id: string;
|
public id: string;
|
||||||
@@ -133,7 +130,7 @@ export class MiNote {
|
|||||||
})
|
})
|
||||||
public url: string | null;
|
public url: string | null;
|
||||||
|
|
||||||
@Index()
|
@Index('IDX_NOTE_FILE_IDS', { synchronize: false })
|
||||||
@Column({
|
@Column({
|
||||||
...id(),
|
...id(),
|
||||||
array: true, default: '{}',
|
array: true, default: '{}',
|
||||||
@@ -145,14 +142,14 @@ export class MiNote {
|
|||||||
})
|
})
|
||||||
public attachedFileTypes: string[];
|
public attachedFileTypes: string[];
|
||||||
|
|
||||||
@Index()
|
@Index('IDX_NOTE_VISIBLE_USER_IDS', { synchronize: false })
|
||||||
@Column({
|
@Column({
|
||||||
...id(),
|
...id(),
|
||||||
array: true, default: '{}',
|
array: true, default: '{}',
|
||||||
})
|
})
|
||||||
public visibleUserIds: MiUser['id'][];
|
public visibleUserIds: MiUser['id'][];
|
||||||
|
|
||||||
@Index()
|
@Index('IDX_NOTE_MENTIONS', { synchronize: false })
|
||||||
@Column({
|
@Column({
|
||||||
...id(),
|
...id(),
|
||||||
array: true, default: '{}',
|
array: true, default: '{}',
|
||||||
@@ -174,7 +171,7 @@ export class MiNote {
|
|||||||
})
|
})
|
||||||
public emojis: string[];
|
public emojis: string[];
|
||||||
|
|
||||||
@Index()
|
@Index('IDX_NOTE_TAGS', { synchronize: false })
|
||||||
@Column('varchar', {
|
@Column('varchar', {
|
||||||
length: 128, array: true, default: '{}',
|
length: 128, array: true, default: '{}',
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
import { Module } from '@nestjs/common';
|
import { Module } from '@nestjs/common';
|
||||||
import { DI } from '@/di-symbols.js';
|
import { DI } from '@/di-symbols.js';
|
||||||
import { MiAbuseUserReport, MiAccessToken, MiAd, MiAnnouncement, MiAnnouncementRead, MiAntenna, MiApp, MiAuthSession, MiAvatarDecoration, MiBlocking, MiChannel, MiChannelFavorite, MiChannelFollowing, MiClip, MiClipFavorite, MiClipNote, MiDriveFile, MiDriveFolder, MiEmoji, MiFlash, MiFlashLike, MiFollowRequest, MiFollowing, MiGalleryLike, MiGalleryPost, MiHashtag, MiInstance, MiMeta, MiModerationLog, MiMuting, MiNote, MiNoteFavorite, MiNoteReaction, MiNoteThreadMuting, MiNoteUnread, MiPage, MiPageLike, MiPasswordResetRequest, MiPoll, MiPollVote, MiPromoNote, MiPromoRead, MiRegistrationTicket, MiRegistryItem, MiRelay, MiRenoteMuting, MiRetentionAggregation, MiRole, MiRoleAssignment, MiSignin, MiSwSubscription, MiUsedUsername, MiUser, MiUserIp, MiUserKeypair, MiUserList, MiUserListFavorite, MiUserListMembership, MiUserMemo, MiUserNotePining, MiUserPending, MiUserProfile, MiUserPublickey, MiUserSecurityKey, MiWebhook } from './_.js';
|
import { MiAbuseUserReport, MiAccessToken, MiAd, MiAnnouncement, MiAnnouncementRead, MiAntenna, MiApp, MiAuthSession, MiAvatarDecoration, MiBlocking, MiChannel, MiChannelFavorite, MiChannelFollowing, MiClip, MiClipFavorite, MiClipNote, MiDriveFile, MiDriveFolder, MiEmoji, MiFlash, MiFlashLike, MiFollowRequest, MiFollowing, MiGalleryLike, MiGalleryPost, MiHashtag, MiInstance, MiMeta, MiModerationLog, MiMuting, MiNote, MiNoteFavorite, MiNoteReaction, MiNoteThreadMuting, MiNoteUnread, MiPage, MiPageLike, MiPasswordResetRequest, MiPoll, MiPollVote, MiPromoNote, MiPromoRead, MiRegistrationTicket, MiRegistryItem, MiRelay, MiRenoteMuting, MiRetentionAggregation, MiRole, MiRoleAssignment, MiSignin, MiSwSubscription, MiUsedUsername, MiUser, MiUserIp, MiUserKeypair, MiUserList, MiUserListFavorite, MiUserListMembership, MiUserMemo, MiUserNotePining, MiUserPending, MiUserProfile, MiUserPublickey, MiUserSecurityKey, MiWebhook, MiBubbleGameRecord, MiReversiGame } from './_.js';
|
||||||
import type { DataSource } from 'typeorm';
|
import type { DataSource } from 'typeorm';
|
||||||
import type { Provider } from '@nestjs/common';
|
import type { Provider } from '@nestjs/common';
|
||||||
|
|
||||||
@@ -399,6 +399,18 @@ const $userMemosRepository: Provider = {
|
|||||||
inject: [DI.db],
|
inject: [DI.db],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const $bubbleGameRecordsRepository: Provider = {
|
||||||
|
provide: DI.bubbleGameRecordsRepository,
|
||||||
|
useFactory: (db: DataSource) => db.getRepository(MiBubbleGameRecord),
|
||||||
|
inject: [DI.db],
|
||||||
|
};
|
||||||
|
|
||||||
|
const $reversiGamesRepository: Provider = {
|
||||||
|
provide: DI.reversiGamesRepository,
|
||||||
|
useFactory: (db: DataSource) => db.getRepository(MiReversiGame),
|
||||||
|
inject: [DI.db],
|
||||||
|
};
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
],
|
],
|
||||||
@@ -468,6 +480,8 @@ const $userMemosRepository: Provider = {
|
|||||||
$flashsRepository,
|
$flashsRepository,
|
||||||
$flashLikesRepository,
|
$flashLikesRepository,
|
||||||
$userMemosRepository,
|
$userMemosRepository,
|
||||||
|
$bubbleGameRecordsRepository,
|
||||||
|
$reversiGamesRepository,
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
$usersRepository,
|
$usersRepository,
|
||||||
@@ -535,6 +549,8 @@ const $userMemosRepository: Provider = {
|
|||||||
$flashsRepository,
|
$flashsRepository,
|
||||||
$flashLikesRepository,
|
$flashLikesRepository,
|
||||||
$userMemosRepository,
|
$userMemosRepository,
|
||||||
|
$bubbleGameRecordsRepository,
|
||||||
|
$reversiGamesRepository,
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class RepositoryModule {}
|
export class RepositoryModule {}
|
||||||
|
|||||||
127
packages/backend/src/models/ReversiGame.ts
Normal file
127
packages/backend/src/models/ReversiGame.ts
Normal file
@@ -0,0 +1,127 @@
|
|||||||
|
import { PrimaryColumn, Entity, Index, JoinColumn, Column, ManyToOne } from 'typeorm';
|
||||||
|
import { id } from './util/id.js';
|
||||||
|
import { MiUser } from './User.js';
|
||||||
|
|
||||||
|
@Entity('reversi_game')
|
||||||
|
export class MiReversiGame {
|
||||||
|
@PrimaryColumn(id())
|
||||||
|
public id: string;
|
||||||
|
|
||||||
|
@Column('timestamp with time zone', {
|
||||||
|
nullable: true,
|
||||||
|
comment: 'The started date of the ReversiGame.',
|
||||||
|
})
|
||||||
|
public startedAt: Date | null;
|
||||||
|
|
||||||
|
@Column(id())
|
||||||
|
public user1Id: MiUser['id'];
|
||||||
|
|
||||||
|
@ManyToOne(type => MiUser, {
|
||||||
|
onDelete: 'CASCADE',
|
||||||
|
})
|
||||||
|
@JoinColumn()
|
||||||
|
public user1: MiUser | null;
|
||||||
|
|
||||||
|
@Column(id())
|
||||||
|
public user2Id: MiUser['id'];
|
||||||
|
|
||||||
|
@ManyToOne(type => MiUser, {
|
||||||
|
onDelete: 'CASCADE',
|
||||||
|
})
|
||||||
|
@JoinColumn()
|
||||||
|
public user2: MiUser | null;
|
||||||
|
|
||||||
|
@Column('boolean', {
|
||||||
|
default: false,
|
||||||
|
})
|
||||||
|
public user1Ready: boolean;
|
||||||
|
|
||||||
|
@Column('boolean', {
|
||||||
|
default: false,
|
||||||
|
})
|
||||||
|
public user2Ready: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* どちらのプレイヤーが先行(黒)か
|
||||||
|
* 1 ... user1
|
||||||
|
* 2 ... user2
|
||||||
|
*/
|
||||||
|
@Column('integer', {
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
public black: number | null;
|
||||||
|
|
||||||
|
@Column('boolean', {
|
||||||
|
default: false,
|
||||||
|
})
|
||||||
|
public isStarted: boolean;
|
||||||
|
|
||||||
|
@Column('boolean', {
|
||||||
|
default: false,
|
||||||
|
})
|
||||||
|
public isEnded: boolean;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
...id(),
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
public winnerId: MiUser['id'] | null;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
...id(),
|
||||||
|
nullable: true,
|
||||||
|
})
|
||||||
|
public surrendered: MiUser['id'] | null;
|
||||||
|
|
||||||
|
@Column('jsonb', {
|
||||||
|
default: [],
|
||||||
|
})
|
||||||
|
public logs: {
|
||||||
|
at: number;
|
||||||
|
color: boolean;
|
||||||
|
pos: number;
|
||||||
|
}[];
|
||||||
|
|
||||||
|
@Column('varchar', {
|
||||||
|
array: true, length: 64,
|
||||||
|
})
|
||||||
|
public map: string[];
|
||||||
|
|
||||||
|
@Column('varchar', {
|
||||||
|
length: 32,
|
||||||
|
})
|
||||||
|
public bw: string;
|
||||||
|
|
||||||
|
@Column('boolean', {
|
||||||
|
default: false,
|
||||||
|
})
|
||||||
|
public isLlotheo: boolean;
|
||||||
|
|
||||||
|
@Column('boolean', {
|
||||||
|
default: false,
|
||||||
|
})
|
||||||
|
public canPutEverywhere: boolean;
|
||||||
|
|
||||||
|
@Column('boolean', {
|
||||||
|
default: false,
|
||||||
|
})
|
||||||
|
public loopedBoard: boolean;
|
||||||
|
|
||||||
|
@Column('jsonb', {
|
||||||
|
nullable: true, default: null,
|
||||||
|
})
|
||||||
|
public form1: any | null;
|
||||||
|
|
||||||
|
@Column('jsonb', {
|
||||||
|
nullable: true, default: null,
|
||||||
|
})
|
||||||
|
public form2: any | null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ログのposを文字列としてすべて連結したもののCRC32値
|
||||||
|
*/
|
||||||
|
@Column('varchar', {
|
||||||
|
length: 32, nullable: true,
|
||||||
|
})
|
||||||
|
public crc32: string | null;
|
||||||
|
}
|
||||||
@@ -68,6 +68,9 @@ import { MiRoleAssignment } from '@/models/RoleAssignment.js';
|
|||||||
import { MiFlash } from '@/models/Flash.js';
|
import { MiFlash } from '@/models/Flash.js';
|
||||||
import { MiFlashLike } from '@/models/FlashLike.js';
|
import { MiFlashLike } from '@/models/FlashLike.js';
|
||||||
import { MiUserListFavorite } from '@/models/UserListFavorite.js';
|
import { MiUserListFavorite } from '@/models/UserListFavorite.js';
|
||||||
|
import { MiBubbleGameRecord } from '@/models/BubbleGameRecord.js';
|
||||||
|
import { MiReversiGame } from '@/models/ReversiGame.js';
|
||||||
|
|
||||||
import type { Repository } from 'typeorm';
|
import type { Repository } from 'typeorm';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
@@ -136,6 +139,8 @@ export {
|
|||||||
MiFlash,
|
MiFlash,
|
||||||
MiFlashLike,
|
MiFlashLike,
|
||||||
MiUserMemo,
|
MiUserMemo,
|
||||||
|
MiBubbleGameRecord,
|
||||||
|
MiReversiGame,
|
||||||
};
|
};
|
||||||
|
|
||||||
export type AbuseUserReportsRepository = Repository<MiAbuseUserReport>;
|
export type AbuseUserReportsRepository = Repository<MiAbuseUserReport>;
|
||||||
@@ -203,3 +208,5 @@ export type RoleAssignmentsRepository = Repository<MiRoleAssignment>;
|
|||||||
export type FlashsRepository = Repository<MiFlash>;
|
export type FlashsRepository = Repository<MiFlash>;
|
||||||
export type FlashLikesRepository = Repository<MiFlashLike>;
|
export type FlashLikesRepository = Repository<MiFlashLike>;
|
||||||
export type UserMemoRepository = Repository<MiUserMemo>;
|
export type UserMemoRepository = Repository<MiUserMemo>;
|
||||||
|
export type BubbleGameRecordsRepository = Repository<MiBubbleGameRecord>;
|
||||||
|
export type ReversiGamesRepository = Repository<MiReversiGame>;
|
||||||
|
|||||||
64
packages/backend/src/models/json-schema/ad.ts
Normal file
64
packages/backend/src/models/json-schema/ad.ts
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
export const packedAdSchema = {
|
||||||
|
type: 'object',
|
||||||
|
properties: {
|
||||||
|
id: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false,
|
||||||
|
nullable: false,
|
||||||
|
format: 'id',
|
||||||
|
example: 'xxxxxxxxxx',
|
||||||
|
},
|
||||||
|
expiresAt: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false,
|
||||||
|
nullable: false,
|
||||||
|
format: 'date-time',
|
||||||
|
},
|
||||||
|
startsAt: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false,
|
||||||
|
nullable: false,
|
||||||
|
format: 'date-time',
|
||||||
|
},
|
||||||
|
place: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false,
|
||||||
|
nullable: false,
|
||||||
|
},
|
||||||
|
priority: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false,
|
||||||
|
nullable: false,
|
||||||
|
},
|
||||||
|
ratio: {
|
||||||
|
type: 'number',
|
||||||
|
optional: false,
|
||||||
|
nullable: false,
|
||||||
|
},
|
||||||
|
url: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false,
|
||||||
|
nullable: false,
|
||||||
|
},
|
||||||
|
imageUrl: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false,
|
||||||
|
nullable: false,
|
||||||
|
},
|
||||||
|
memo: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false,
|
||||||
|
nullable: false,
|
||||||
|
},
|
||||||
|
dayOfWeek: {
|
||||||
|
type: 'integer',
|
||||||
|
optional: false,
|
||||||
|
nullable: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
} as const;
|
||||||
@@ -148,6 +148,10 @@ export const packedNoteSchema = {
|
|||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
},
|
},
|
||||||
|
userId: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
localOnly: {
|
localOnly: {
|
||||||
|
|||||||
234
packages/backend/src/models/json-schema/reversi-game.ts
Normal file
234
packages/backend/src/models/json-schema/reversi-game.ts
Normal file
@@ -0,0 +1,234 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
export const packedReversiGameLiteSchema = {
|
||||||
|
type: 'object',
|
||||||
|
properties: {
|
||||||
|
id: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
format: 'id',
|
||||||
|
},
|
||||||
|
createdAt: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
format: 'date-time',
|
||||||
|
},
|
||||||
|
startedAt: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: true,
|
||||||
|
format: 'date-time',
|
||||||
|
},
|
||||||
|
isStarted: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
isEnded: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
form1: {
|
||||||
|
type: 'any',
|
||||||
|
optional: false, nullable: true,
|
||||||
|
},
|
||||||
|
form2: {
|
||||||
|
type: 'any',
|
||||||
|
optional: false, nullable: true,
|
||||||
|
},
|
||||||
|
user1Ready: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
user2Ready: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
user1Id: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
format: 'id',
|
||||||
|
},
|
||||||
|
user2Id: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
format: 'id',
|
||||||
|
},
|
||||||
|
user1: {
|
||||||
|
type: 'object',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
ref: 'User',
|
||||||
|
},
|
||||||
|
user2: {
|
||||||
|
type: 'object',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
ref: 'User',
|
||||||
|
},
|
||||||
|
winnerId: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: true,
|
||||||
|
format: 'id',
|
||||||
|
},
|
||||||
|
winner: {
|
||||||
|
type: 'object',
|
||||||
|
optional: false, nullable: true,
|
||||||
|
ref: 'User',
|
||||||
|
},
|
||||||
|
surrendered: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: true,
|
||||||
|
format: 'id',
|
||||||
|
},
|
||||||
|
black: {
|
||||||
|
type: 'number',
|
||||||
|
optional: false, nullable: true,
|
||||||
|
},
|
||||||
|
bw: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
isLlotheo: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
canPutEverywhere: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
loopedBoard: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
export const packedReversiGameDetailedSchema = {
|
||||||
|
type: 'object',
|
||||||
|
properties: {
|
||||||
|
id: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
format: 'id',
|
||||||
|
},
|
||||||
|
createdAt: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
format: 'date-time',
|
||||||
|
},
|
||||||
|
startedAt: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: true,
|
||||||
|
format: 'date-time',
|
||||||
|
},
|
||||||
|
isStarted: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
isEnded: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
form1: {
|
||||||
|
type: 'any',
|
||||||
|
optional: false, nullable: true,
|
||||||
|
},
|
||||||
|
form2: {
|
||||||
|
type: 'any',
|
||||||
|
optional: false, nullable: true,
|
||||||
|
},
|
||||||
|
user1Ready: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
user2Ready: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
user1Id: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
format: 'id',
|
||||||
|
},
|
||||||
|
user2Id: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
format: 'id',
|
||||||
|
},
|
||||||
|
user1: {
|
||||||
|
type: 'object',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
ref: 'User',
|
||||||
|
},
|
||||||
|
user2: {
|
||||||
|
type: 'object',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
ref: 'User',
|
||||||
|
},
|
||||||
|
winnerId: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: true,
|
||||||
|
format: 'id',
|
||||||
|
},
|
||||||
|
winner: {
|
||||||
|
type: 'object',
|
||||||
|
optional: false, nullable: true,
|
||||||
|
ref: 'User',
|
||||||
|
},
|
||||||
|
surrendered: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: true,
|
||||||
|
format: 'id',
|
||||||
|
},
|
||||||
|
black: {
|
||||||
|
type: 'number',
|
||||||
|
optional: false, nullable: true,
|
||||||
|
},
|
||||||
|
bw: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
isLlotheo: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
canPutEverywhere: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
loopedBoard: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
logs: {
|
||||||
|
type: 'array',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
items: {
|
||||||
|
type: 'object',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
properties: {
|
||||||
|
at: {
|
||||||
|
type: 'number',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
color: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
pos: {
|
||||||
|
type: 'number',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
map: {
|
||||||
|
type: 'array',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
items: {
|
||||||
|
type: 'string',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
} as const;
|
||||||
@@ -76,6 +76,8 @@ import { MiRoleAssignment } from '@/models/RoleAssignment.js';
|
|||||||
import { MiFlash } from '@/models/Flash.js';
|
import { MiFlash } from '@/models/Flash.js';
|
||||||
import { MiFlashLike } from '@/models/FlashLike.js';
|
import { MiFlashLike } from '@/models/FlashLike.js';
|
||||||
import { MiUserMemo } from '@/models/UserMemo.js';
|
import { MiUserMemo } from '@/models/UserMemo.js';
|
||||||
|
import { MiBubbleGameRecord } from '@/models/BubbleGameRecord.js';
|
||||||
|
import { MiReversiGame } from '@/models/ReversiGame.js';
|
||||||
|
|
||||||
import { Config } from '@/config.js';
|
import { Config } from '@/config.js';
|
||||||
import MisskeyLogger from '@/logger.js';
|
import MisskeyLogger from '@/logger.js';
|
||||||
@@ -190,6 +192,8 @@ export const entities = [
|
|||||||
MiFlash,
|
MiFlash,
|
||||||
MiFlashLike,
|
MiFlashLike,
|
||||||
MiUserMemo,
|
MiUserMemo,
|
||||||
|
MiBubbleGameRecord,
|
||||||
|
MiReversiGame,
|
||||||
...charts,
|
...charts,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ import { ExportCustomEmojisProcessorService } from './processors/ExportCustomEmo
|
|||||||
import { ExportFollowingProcessorService } from './processors/ExportFollowingProcessorService.js';
|
import { ExportFollowingProcessorService } from './processors/ExportFollowingProcessorService.js';
|
||||||
import { ExportMutingProcessorService } from './processors/ExportMutingProcessorService.js';
|
import { ExportMutingProcessorService } from './processors/ExportMutingProcessorService.js';
|
||||||
import { ExportNotesProcessorService } from './processors/ExportNotesProcessorService.js';
|
import { ExportNotesProcessorService } from './processors/ExportNotesProcessorService.js';
|
||||||
|
import { ExportClipsProcessorService } from './processors/ExportClipsProcessorService.js';
|
||||||
import { ExportUserListsProcessorService } from './processors/ExportUserListsProcessorService.js';
|
import { ExportUserListsProcessorService } from './processors/ExportUserListsProcessorService.js';
|
||||||
import { ExportAntennasProcessorService } from './processors/ExportAntennasProcessorService.js';
|
import { ExportAntennasProcessorService } from './processors/ExportAntennasProcessorService.js';
|
||||||
import { ImportBlockingProcessorService } from './processors/ImportBlockingProcessorService.js';
|
import { ImportBlockingProcessorService } from './processors/ImportBlockingProcessorService.js';
|
||||||
@@ -53,6 +54,7 @@ import { RelationshipProcessorService } from './processors/RelationshipProcessor
|
|||||||
DeleteDriveFilesProcessorService,
|
DeleteDriveFilesProcessorService,
|
||||||
ExportCustomEmojisProcessorService,
|
ExportCustomEmojisProcessorService,
|
||||||
ExportNotesProcessorService,
|
ExportNotesProcessorService,
|
||||||
|
ExportClipsProcessorService,
|
||||||
ExportFavoritesProcessorService,
|
ExportFavoritesProcessorService,
|
||||||
ExportFollowingProcessorService,
|
ExportFollowingProcessorService,
|
||||||
ExportMutingProcessorService,
|
ExportMutingProcessorService,
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import { InboxProcessorService } from './processors/InboxProcessorService.js';
|
|||||||
import { DeleteDriveFilesProcessorService } from './processors/DeleteDriveFilesProcessorService.js';
|
import { DeleteDriveFilesProcessorService } from './processors/DeleteDriveFilesProcessorService.js';
|
||||||
import { ExportCustomEmojisProcessorService } from './processors/ExportCustomEmojisProcessorService.js';
|
import { ExportCustomEmojisProcessorService } from './processors/ExportCustomEmojisProcessorService.js';
|
||||||
import { ExportNotesProcessorService } from './processors/ExportNotesProcessorService.js';
|
import { ExportNotesProcessorService } from './processors/ExportNotesProcessorService.js';
|
||||||
|
import { ExportClipsProcessorService } from './processors/ExportClipsProcessorService.js';
|
||||||
import { ExportFollowingProcessorService } from './processors/ExportFollowingProcessorService.js';
|
import { ExportFollowingProcessorService } from './processors/ExportFollowingProcessorService.js';
|
||||||
import { ExportMutingProcessorService } from './processors/ExportMutingProcessorService.js';
|
import { ExportMutingProcessorService } from './processors/ExportMutingProcessorService.js';
|
||||||
import { ExportBlockingProcessorService } from './processors/ExportBlockingProcessorService.js';
|
import { ExportBlockingProcessorService } from './processors/ExportBlockingProcessorService.js';
|
||||||
@@ -91,6 +92,7 @@ export class QueueProcessorService implements OnApplicationShutdown {
|
|||||||
private deleteDriveFilesProcessorService: DeleteDriveFilesProcessorService,
|
private deleteDriveFilesProcessorService: DeleteDriveFilesProcessorService,
|
||||||
private exportCustomEmojisProcessorService: ExportCustomEmojisProcessorService,
|
private exportCustomEmojisProcessorService: ExportCustomEmojisProcessorService,
|
||||||
private exportNotesProcessorService: ExportNotesProcessorService,
|
private exportNotesProcessorService: ExportNotesProcessorService,
|
||||||
|
private exportClipsProcessorService: ExportClipsProcessorService,
|
||||||
private exportFavoritesProcessorService: ExportFavoritesProcessorService,
|
private exportFavoritesProcessorService: ExportFavoritesProcessorService,
|
||||||
private exportFollowingProcessorService: ExportFollowingProcessorService,
|
private exportFollowingProcessorService: ExportFollowingProcessorService,
|
||||||
private exportMutingProcessorService: ExportMutingProcessorService,
|
private exportMutingProcessorService: ExportMutingProcessorService,
|
||||||
@@ -164,6 +166,7 @@ export class QueueProcessorService implements OnApplicationShutdown {
|
|||||||
case 'deleteDriveFiles': return this.deleteDriveFilesProcessorService.process(job);
|
case 'deleteDriveFiles': return this.deleteDriveFilesProcessorService.process(job);
|
||||||
case 'exportCustomEmojis': return this.exportCustomEmojisProcessorService.process(job);
|
case 'exportCustomEmojis': return this.exportCustomEmojisProcessorService.process(job);
|
||||||
case 'exportNotes': return this.exportNotesProcessorService.process(job);
|
case 'exportNotes': return this.exportNotesProcessorService.process(job);
|
||||||
|
case 'exportClips': return this.exportClipsProcessorService.process(job);
|
||||||
case 'exportFavorites': return this.exportFavoritesProcessorService.process(job);
|
case 'exportFavorites': return this.exportFavoritesProcessorService.process(job);
|
||||||
case 'exportFollowing': return this.exportFollowingProcessorService.process(job);
|
case 'exportFollowing': return this.exportFollowingProcessorService.process(job);
|
||||||
case 'exportMuting': return this.exportMutingProcessorService.process(job);
|
case 'exportMuting': return this.exportMutingProcessorService.process(job);
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ export class DeliverProcessorService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await this.apRequestService.signedPost(job.data.user, job.data.to, job.data.content);
|
await this.apRequestService.signedPost(job.data.user, job.data.to, job.data.content, job.data.digest);
|
||||||
|
|
||||||
// Update stats
|
// Update stats
|
||||||
this.federatedInstanceService.fetch(host).then(i => {
|
this.federatedInstanceService.fetch(host).then(i => {
|
||||||
@@ -111,7 +111,7 @@ export class DeliverProcessorService {
|
|||||||
|
|
||||||
if (res instanceof StatusError) {
|
if (res instanceof StatusError) {
|
||||||
// 4xx
|
// 4xx
|
||||||
if (res.isClientError) {
|
if (!res.isRetryable) {
|
||||||
// 相手が閉鎖していることを明示しているため、配送停止する
|
// 相手が閉鎖していることを明示しているため、配送停止する
|
||||||
if (job.data.isSharedInbox && res.statusCode === 410) {
|
if (job.data.isSharedInbox && res.statusCode === 410) {
|
||||||
this.federatedInstanceService.fetch(host).then(i => {
|
this.federatedInstanceService.fetch(host).then(i => {
|
||||||
|
|||||||
@@ -0,0 +1,206 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
||||||
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
|
import * as fs from 'node:fs';
|
||||||
|
import { Writable } from 'node:stream';
|
||||||
|
import { Inject, Injectable, StreamableFile } from '@nestjs/common';
|
||||||
|
import { MoreThan } from 'typeorm';
|
||||||
|
import { format as dateFormat } from 'date-fns';
|
||||||
|
import { DI } from '@/di-symbols.js';
|
||||||
|
import type { ClipNotesRepository, ClipsRepository, MiClip, MiClipNote, MiUser, NotesRepository, PollsRepository, UsersRepository } from '@/models/_.js';
|
||||||
|
import type Logger from '@/logger.js';
|
||||||
|
import { DriveService } from '@/core/DriveService.js';
|
||||||
|
import { createTemp } from '@/misc/create-temp.js';
|
||||||
|
import type { MiPoll } from '@/models/Poll.js';
|
||||||
|
import type { MiNote } from '@/models/Note.js';
|
||||||
|
import { bindThis } from '@/decorators.js';
|
||||||
|
import { DriveFileEntityService } from '@/core/entities/DriveFileEntityService.js';
|
||||||
|
import { Packed } from '@/misc/json-schema.js';
|
||||||
|
import { IdService } from '@/core/IdService.js';
|
||||||
|
import { QueueLoggerService } from '../QueueLoggerService.js';
|
||||||
|
import type * as Bull from 'bullmq';
|
||||||
|
import type { DbJobDataWithUser } from '../types.js';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class ExportClipsProcessorService {
|
||||||
|
private logger: Logger;
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
@Inject(DI.usersRepository)
|
||||||
|
private usersRepository: UsersRepository,
|
||||||
|
|
||||||
|
@Inject(DI.pollsRepository)
|
||||||
|
private pollsRepository: PollsRepository,
|
||||||
|
|
||||||
|
@Inject(DI.clipsRepository)
|
||||||
|
private clipsRepository: ClipsRepository,
|
||||||
|
|
||||||
|
@Inject(DI.clipNotesRepository)
|
||||||
|
private clipNotesRepository: ClipNotesRepository,
|
||||||
|
|
||||||
|
private driveService: DriveService,
|
||||||
|
private queueLoggerService: QueueLoggerService,
|
||||||
|
private idService: IdService,
|
||||||
|
) {
|
||||||
|
this.logger = this.queueLoggerService.logger.createSubLogger('export-clips');
|
||||||
|
}
|
||||||
|
|
||||||
|
@bindThis
|
||||||
|
public async process(job: Bull.Job<DbJobDataWithUser>): Promise<void> {
|
||||||
|
this.logger.info(`Exporting clips of ${job.data.user.id} ...`);
|
||||||
|
|
||||||
|
const user = await this.usersRepository.findOneBy({ id: job.data.user.id });
|
||||||
|
if (user == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create temp file
|
||||||
|
const [path, cleanup] = await createTemp();
|
||||||
|
|
||||||
|
this.logger.info(`Temp file is ${path}`);
|
||||||
|
|
||||||
|
try {
|
||||||
|
const stream = Writable.toWeb(fs.createWriteStream(path, { flags: 'a' }));
|
||||||
|
const writer = stream.getWriter();
|
||||||
|
writer.closed.catch(this.logger.error);
|
||||||
|
|
||||||
|
await writer.write('[');
|
||||||
|
|
||||||
|
await this.processClips(writer, user, job);
|
||||||
|
|
||||||
|
await writer.write(']');
|
||||||
|
await writer.close();
|
||||||
|
|
||||||
|
this.logger.succ(`Exported to: ${path}`);
|
||||||
|
|
||||||
|
const fileName = 'clips-' + dateFormat(new Date(), 'yyyy-MM-dd-HH-mm-ss') + '.json';
|
||||||
|
const driveFile = await this.driveService.addFile({ user, path, name: fileName, force: true, ext: 'json' });
|
||||||
|
|
||||||
|
this.logger.succ(`Exported to: ${driveFile.id}`);
|
||||||
|
} finally {
|
||||||
|
cleanup();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async processClips(writer: WritableStreamDefaultWriter, user: MiUser, job: Bull.Job<DbJobDataWithUser>) {
|
||||||
|
let exportedClipsCount = 0;
|
||||||
|
let cursor: MiClip['id'] | null = null;
|
||||||
|
|
||||||
|
while (true) {
|
||||||
|
const clips = await this.clipsRepository.find({
|
||||||
|
where: {
|
||||||
|
userId: user.id,
|
||||||
|
...(cursor ? { id: MoreThan(cursor) } : {}),
|
||||||
|
},
|
||||||
|
take: 100,
|
||||||
|
order: {
|
||||||
|
id: 1,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
if (clips.length === 0) {
|
||||||
|
job.updateProgress(100);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
cursor = clips.at(-1)?.id ?? null;
|
||||||
|
|
||||||
|
for (const clip of clips) {
|
||||||
|
// Stringify but remove the last `]}`
|
||||||
|
const content = JSON.stringify(this.serializeClip(clip)).slice(0, -2);
|
||||||
|
const isFirst = exportedClipsCount === 0;
|
||||||
|
await writer.write(isFirst ? content : ',\n' + content);
|
||||||
|
|
||||||
|
await this.processClipNotes(writer, clip.id);
|
||||||
|
|
||||||
|
await writer.write(']}');
|
||||||
|
exportedClipsCount++;
|
||||||
|
}
|
||||||
|
|
||||||
|
const total = await this.clipsRepository.countBy({
|
||||||
|
userId: user.id,
|
||||||
|
});
|
||||||
|
|
||||||
|
job.updateProgress(exportedClipsCount / total);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async processClipNotes(writer: WritableStreamDefaultWriter, clipId: string): Promise<void> {
|
||||||
|
let exportedClipNotesCount = 0;
|
||||||
|
let cursor: MiClipNote['id'] | null = null;
|
||||||
|
|
||||||
|
while (true) {
|
||||||
|
const clipNotes = await this.clipNotesRepository.find({
|
||||||
|
where: {
|
||||||
|
clipId,
|
||||||
|
...(cursor ? { id: MoreThan(cursor) } : {}),
|
||||||
|
},
|
||||||
|
take: 100,
|
||||||
|
order: {
|
||||||
|
id: 1,
|
||||||
|
},
|
||||||
|
relations: ['note', 'note.user'],
|
||||||
|
}) as (MiClipNote & { note: MiNote & { user: MiUser } })[];
|
||||||
|
|
||||||
|
if (clipNotes.length === 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
cursor = clipNotes.at(-1)?.id ?? null;
|
||||||
|
|
||||||
|
for (const clipNote of clipNotes) {
|
||||||
|
let poll: MiPoll | undefined;
|
||||||
|
if (clipNote.note.hasPoll) {
|
||||||
|
poll = await this.pollsRepository.findOneByOrFail({ noteId: clipNote.note.id });
|
||||||
|
}
|
||||||
|
const content = JSON.stringify(this.serializeClipNote(clipNote, poll));
|
||||||
|
const isFirst = exportedClipNotesCount === 0;
|
||||||
|
await writer.write(isFirst ? content : ',\n' + content);
|
||||||
|
|
||||||
|
exportedClipNotesCount++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private serializeClip(clip: MiClip): Record<string, unknown> {
|
||||||
|
return {
|
||||||
|
id: clip.id,
|
||||||
|
name: clip.name,
|
||||||
|
description: clip.description,
|
||||||
|
lastClippedAt: clip.lastClippedAt?.toISOString(),
|
||||||
|
clipNotes: [],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
private serializeClipNote(clip: MiClipNote & { note: MiNote & { user: MiUser } }, poll: MiPoll | undefined): Record<string, unknown> {
|
||||||
|
return {
|
||||||
|
id: clip.id,
|
||||||
|
createdAt: this.idService.parse(clip.id).date.toISOString(),
|
||||||
|
note: {
|
||||||
|
id: clip.note.id,
|
||||||
|
text: clip.note.text,
|
||||||
|
createdAt: this.idService.parse(clip.note.id).date.toISOString(),
|
||||||
|
fileIds: clip.note.fileIds,
|
||||||
|
replyId: clip.note.replyId,
|
||||||
|
renoteId: clip.note.renoteId,
|
||||||
|
poll: poll,
|
||||||
|
cw: clip.note.cw,
|
||||||
|
visibility: clip.note.visibility,
|
||||||
|
visibleUserIds: clip.note.visibleUserIds,
|
||||||
|
localOnly: clip.note.localOnly,
|
||||||
|
reactionAcceptance: clip.note.reactionAcceptance,
|
||||||
|
uri: clip.note.uri,
|
||||||
|
url: clip.note.url,
|
||||||
|
user: {
|
||||||
|
id: clip.note.user.id,
|
||||||
|
name: clip.note.user.name,
|
||||||
|
username: clip.note.user.username,
|
||||||
|
host: clip.note.user.host,
|
||||||
|
uri: clip.note.user.uri,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -85,7 +85,7 @@ export class InboxProcessorService {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
// 対象が4xxならスキップ
|
// 対象が4xxならスキップ
|
||||||
if (err instanceof StatusError) {
|
if (err instanceof StatusError) {
|
||||||
if (err.isClientError) {
|
if (!err.isRetryable) {
|
||||||
throw new Bull.UnrecoverableError(`skip: Ignored deleted actors on both ends ${activity.actor} - ${err.statusCode}`);
|
throw new Bull.UnrecoverableError(`skip: Ignored deleted actors on both ends ${activity.actor} - ${err.statusCode}`);
|
||||||
}
|
}
|
||||||
throw new Error(`Error in actor ${activity.actor} - ${err.statusCode}`);
|
throw new Error(`Error in actor ${activity.actor} - ${err.statusCode}`);
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export class WebhookDeliverProcessorService {
|
|||||||
|
|
||||||
if (res instanceof StatusError) {
|
if (res instanceof StatusError) {
|
||||||
// 4xx
|
// 4xx
|
||||||
if (res.isClientError) {
|
if (!res.isRetryable) {
|
||||||
throw new Bull.UnrecoverableError(`${res.statusCode} ${res.statusMessage}`);
|
throw new Bull.UnrecoverableError(`${res.statusCode} ${res.statusMessage}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,9 @@ export type DeliverJobData = {
|
|||||||
/** Actor */
|
/** Actor */
|
||||||
user: ThinUser;
|
user: ThinUser;
|
||||||
/** Activity */
|
/** Activity */
|
||||||
content: unknown;
|
content: string;
|
||||||
|
/** Digest header */
|
||||||
|
digest: string;
|
||||||
/** inbox URL to deliver */
|
/** inbox URL to deliver */
|
||||||
to: string;
|
to: string;
|
||||||
/** whether it is sharedInbox */
|
/** whether it is sharedInbox */
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user