Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
321 commits
Select commit Hold shift + click to select a range
584407a
エンドポイントの日本語ドキュメントを追加 (users/, auth/session, announcements) (#113)
sei0o Nov 13, 2022
da24897
Add misskey.icu to instances (#118)
Nov 16, 2022
475844e
Add Apps page (#119)
sei0o Nov 18, 2022
c0940cd
misskey.icu -> kitsune.moe (#120)
Nov 19, 2022
658e7e7
Update English release notes (#117)
hekacode Nov 21, 2022
a272810
First italian translation (#114)
tassoman Nov 24, 2022
bb95893
Ubuntu版Misskeyインストール方法詳説 (#112)
tamaina Nov 24, 2022
04328b8
Update faq.md
syuilo Nov 27, 2022
98adf69
Update timeline.md (#115)
ltlapy Nov 29, 2022
2ee96fe
Update instances.json5 (#126)
fumons Dec 1, 2022
41edcd8
Update releases.md
syuilo Dec 3, 2022
a253a02
Ita lang update 12.119.2 (#130)
tassoman Dec 5, 2022
a859232
Add English Docs for Kubernetes/TrueNAS Install method (#116)
ssmucny Dec 6, 2022
9e7c5ae
Update index.md (#131)
mattyatea Dec 14, 2022
8762341
Create ads.md
syuilo Dec 15, 2022
1f449fa
Update config.ts
syuilo Dec 15, 2022
90c6b5f
Update ubuntu-manual.md
tamaina Dec 17, 2022
a0c2196
English docs translation for features (#132)
ssmucny Dec 22, 2022
21567fc
proxy_force_ranges on; (#133)
tamaina Jan 2, 2023
01e0105
updated copyright for 2023 (#136)
tassoman Jan 3, 2023
b8cbb68
Add endpoint docs for endpoints/notes,clips (#121)
sei0o Jan 7, 2023
85f955c
StandardOutput=syslog => StandardOutput=journal
tamaina Jan 8, 2023
e742792
enable redis-server, postgresql
tamaina Jan 8, 2023
f43f33d
Fix the order of installation commands (#145)
gemmaro Jan 13, 2023
2c95366
Update instances.json5 (#144)
PYU224 Jan 13, 2023
df3b989
Docker Compose V2対応 (#143)
massongit Jan 13, 2023
0d05091
Perf: Improved page loading behavior (#142)
futchitwo Jan 13, 2023
78f7476
Italian laguage, fixes and additions (#135)
tassoman Jan 13, 2023
4d9e7a6
:it: language support for home routing (#134)
tassoman Jan 13, 2023
eba0a01
update donate doc
syuilo Jan 13, 2023
4e2852a
fix location
syuilo Jan 13, 2023
e656709
Dockerでの構築手順簡略化
massongit Jan 15, 2023
d96e9f1
Update releases.md
syuilo Jan 16, 2023
3a6e9a4
update releases
tamaina Jan 16, 2023
6c637f7
use pnpm
tamaina Jan 16, 2023
3e0ce90
@repo@p1.a9z.dev
tamaina Jan 16, 2023
f517d51
Merge pull request #146 from massongit/patch-1
tamaina Jan 16, 2023
33fb706
Update donate.md
syuilo Jan 17, 2023
c9f0af4
Typo fix
YeoSJ116 Jan 18, 2023
713ca5d
Broken link for _light.json5 and _dark.json5
xnuk Jan 18, 2023
7f179a2
Squashed commit of the following:
Jan 20, 2023
fd8ce0e
fix: fix config.ts from how Prettier messed up
Jan 20, 2023
db86c5e
Update releases.md
syuilo Jan 21, 2023
f73ee2a
Update faq.md
syuilo Jan 21, 2023
537f110
Update faq.md
syuilo Jan 21, 2023
8ee99d0
Update releases.md
syuilo Jan 21, 2023
c07ef1d
Update releases.md
syuilo Jan 22, 2023
9b71c59
Update releases.md
syuilo Jan 23, 2023
3ebcf6d
Update releases.md
syuilo Jan 25, 2023
971540e
Update releases.md
syuilo Jan 27, 2023
e601fcf
Update installation with docker
tamaina Jan 28, 2023
30f2bb3
一度使用を始めたインスタンスのドメイン・ホスト名は、決して変更しないでください!
tamaina Jan 28, 2023
8ad2e54
Docker Composeインストールはおすすめにしない
tamaina Jan 28, 2023
216bbaf
Merge pull request #149 from YeoSJ116/patch-1
tamaina Jan 28, 2023
e992431
Merge pull request #150 from xnuk/main
tamaina Jan 28, 2023
dd8ac9d
Merge pull request #151 from JeonDohyeon/feat/l10n/ko
tamaina Jan 28, 2023
8df615e
Fix: grammar on .vuepress/config.ts
Jan 28, 2023
50ed745
Fix: remove duplication on config
Jan 28, 2023
6e0b0a1
add: common.json5 for ko
Jan 28, 2023
a465024
Merge pull request #152 from JeonDohyeon/fix/builderror
tamaina Jan 28, 2023
0d4a046
Update releases.md
syuilo Feb 1, 2023
b073f58
Fix landing page sidebar
tamaina Feb 2, 2023
ca49c7f
ナビゲーションアイテムのデザインとホバー時の挙動を勝手に変更
tamaina Feb 2, 2023
406d525
NavbarDropdown :active
tamaina Feb 2, 2023
415a162
fix?
tamaina Feb 2, 2023
0fb7975
:art:
tamaina Feb 2, 2023
d46be62
--recurse-submodulesオプションをつけた (#154)
folosuru Feb 2, 2023
d1c51a1
append 'Content-Type': 'application/json' to API Console
tamaina Feb 3, 2023
94ee81f
:v:
tamaina Feb 3, 2023
87ead02
add documentation to issue access token with application creation
tamaina Feb 3, 2023
3436a4c
fix
tamaina Feb 3, 2023
ce43320
Update releases.md
syuilo Feb 4, 2023
b3951a9
Update releases.md
syuilo Feb 4, 2023
9f2a8d3
デッキ表示のメインカラムに関する説明追加 (#160)
massongit Feb 5, 2023
edae2e3
Update releases.md
syuilo Feb 5, 2023
1a9676c
メンションとハッシュタグのリンク切れを解消。Added mention.md and hashtag.md
Feb 6, 2023
44544e1
MFMチートシート の場所追加
fu-sen Feb 7, 2023
165a648
カスタム絵文字の参照先変更 (#161)
fu-sen Feb 7, 2023
5112304
利用可能なウィジェット一覧 の記載を追加 (#163)
fu-sen Feb 7, 2023
008aee9
MissRirica の追加 (#164)
fu-sen Feb 7, 2023
3661ea4
Update releases.md
syuilo Feb 8, 2023
6231e3d
pre構文をコードブロックに
folosuru Feb 8, 2023
77647c5
Update releases.md
syuilo Feb 8, 2023
f25dd0c
Contribute Misskey to Earn
tamaina Feb 8, 2023
aff5fc7
fix file name
tamaina Feb 8, 2023
d14afd9
update Contribute Misskey to Earn
tamaina Feb 8, 2023
6ca269f
1万円 → 2万円
tamaina Feb 8, 2023
edce1a9
改行を修正
tamaina Feb 8, 2023
b428be1
Contribute Misskey to Earn: フロントエンドとバックエンドを分離
tamaina Feb 8, 2023
50f9118
Contribute Misskey to Earn: 続フロントエンドとバックエンドを分離
tamaina Feb 8, 2023
495c288
Merge pull request #166 from folosuru/main
tamaina Feb 8, 2023
f076240
Merge pull request #162 from fu-sen/patch-3
tamaina Feb 8, 2023
23dd907
Post, Repost を Post, Boost へとかえた。
Feb 8, 2023
c661c00
Update donate.md
syuilo Feb 9, 2023
dbd7be4
2万円
syuilo Feb 9, 2023
aa3c0eb
Update releases.md
syuilo Feb 9, 2023
1330828
Fixed invalid URL. (#170)
mattyatea Feb 9, 2023
8c8f443
v13 向けにいくつか追加・修正 (#171)
fu-sen Feb 9, 2023
632548c
Translate kubernetes.md into Japanese (#172)
mattyatea Feb 9, 2023
7109d3c
typoを修正しました (#169)
KisaragiEffective Feb 9, 2023
4c7b9f8
Add donate.md for en/ko (#167)
saschanaz Feb 9, 2023
3fe5eb3
日本語と英語の文章の不一致を解消 (#173)
GrapeApple0 Feb 9, 2023
c83de83
Update donate.md
syuilo Feb 9, 2023
e1b21c6
kubernetes.md fix (#174)
mattyatea Feb 9, 2023
db4a3bb
Added instance (#153)
Feb 9, 2023
e161448
Create a2820716883e408cb87773e377ce7c8d.webp
syuilo Feb 9, 2023
613e948
Merge branch 'main' of https://github.com/misskey-dev/misskey-hub
syuilo Feb 9, 2023
d3fdd05
:art:
syuilo Feb 9, 2023
99957d0
Create f7409b5e5a88477a9b9d740c408de125.jpg
syuilo Feb 9, 2023
b814e6e
Update releases.md
syuilo Feb 9, 2023
ccd066f
improve docs
syuilo Feb 10, 2023
4cf7a37
Update notes.md
syuilo Feb 10, 2023
7f2f913
Update notes.md
syuilo Feb 10, 2023
a9b4978
Update releases.md
syuilo Feb 10, 2023
e786eea
Merge branch 'main' of https://github.com/misskey-dev/misskey-hub
syuilo Feb 10, 2023
8cf54cb
Update releases.md
syuilo Feb 11, 2023
8aace4d
Update mfm.md
syuilo Feb 11, 2023
a20e487
Reference to correct config template (Docker) (#175)
5yn74x Feb 11, 2023
8f790cd
Update 2023-02-08-contribute-to-earn.md (#176)
mattyatea Feb 11, 2023
d5c6066
Started french localization from english content
le-jun Feb 11, 2023
e76f158
Started localization of md files in docs folder
le-jun Feb 11, 2023
329810e
dedup thread-mute page link (#178)
thinceller Feb 11, 2023
3008457
Update releases.md
syuilo Feb 12, 2023
371bc11
Translated md files in \docs folder (except for releases) and admin f…
le-jun Feb 12, 2023
38c5c00
Started /api translation
le-jun Feb 12, 2023
26fb8e6
Finished /api translation (except for the app.md which is still in ja…
le-jun Feb 12, 2023
cce11f2
Translated /features folder
le-jun Feb 12, 2023
54822cb
Translaton of tips
le-jun Feb 12, 2023
b7764af
add instance baseurl. (#185)
10mocy Feb 15, 2023
f3b1d55
Merge pull request #168 from KawaneRio/main
tamaina Feb 17, 2023
a42e949
Merge pull request #179 from le-jun/fr_locale
tamaina Feb 17, 2023
e787b34
Delete API endpoint docs for user groups (#188)
sei0o Feb 17, 2023
a1fea68
fix fr custom container
tamaina Feb 17, 2023
2ea25e6
fix fr custom container 2
tamaina Feb 17, 2023
2d46dc4
fix yml
tamaina Feb 17, 2023
53fdd87
テーマのページに関数の説明を追加 (#177)
zemelua Feb 17, 2023
4ccff02
Update donate.md
syuilo Feb 18, 2023
26aa7ad
Create e3affff31ffb4877b1196c7360abc3e5.jpg
syuilo Feb 18, 2023
4d1e995
Update donate.md
syuilo Feb 19, 2023
f06bf56
権限の一覧を追加 (#183)
ryohidaka Feb 20, 2023
8fb90a5
Update glossary.md
syuilo Feb 20, 2023
d60495d
Update faq.md
syuilo Feb 21, 2023
f392d30
Create 8cc0d0a0a6d84c88bca1aedabf6ed5ab.jpg
syuilo Feb 22, 2023
0a41740
Merge branch 'main' of https://github.com/misskey-dev/misskey-hub
syuilo Feb 22, 2023
7bee157
Add libraries.md (#199) (#200)
Feb 22, 2023
94d3c7d
Update releases.md
syuilo Feb 22, 2023
79e6fcc
Update faq.md
syuilo Feb 23, 2023
542e743
Update notes.md
syuilo Feb 23, 2023
66af9b1
Delete SubwayTooter from the app's page (#203)
arrow2nd Feb 23, 2023
aee6944
Update releases.md
syuilo Feb 23, 2023
f8e6d98
Update releases.md
syuilo Feb 26, 2023
dd16711
Update releases.md
syuilo Feb 26, 2023
e6dd988
Update releases.md
syuilo Feb 26, 2023
fe1a027
Update faq.md
syuilo Feb 28, 2023
91b0123
add msk.ilnk.info(instances.json5)
morotesovtannu Feb 28, 2023
b94f8b6
2nd korean translations (#215)
Mar 1, 2023
8c7e7d7
Create 79c6602ffade489e8df2fcf2c2bc5d9d.jpg
syuilo Mar 3, 2023
f659f56
Merge branch 'main' of https://github.com/misskey-dev/misskey-hub
syuilo Mar 3, 2023
5c79fb6
Update releases.md
syuilo Mar 3, 2023
0cbb1b5
インスタンス -> サーバー
syuilo Mar 3, 2023
6e24b28
Update README.md
syuilo Mar 3, 2023
3b0225d
Update releases.md
syuilo Mar 3, 2023
f31eee5
add suponsor
syuilo Mar 3, 2023
d242319
Update releases.md
syuilo Mar 6, 2023
88c397f
Merge pull request #218 from morotesovtannu/main
tamaina Mar 6, 2023
4d3aff5
Create d31d5d13924443a082f3da7966318a0a.jpg
syuilo Mar 7, 2023
d4acb34
Merge branch 'main' of https://github.com/misskey-dev/misskey-hub
syuilo Mar 7, 2023
3f38c0f
Create ceb36b8f66e549bdadb3b90d5da62314.jpg
syuilo Mar 10, 2023
22e4b9c
Update releases.md
syuilo Mar 22, 2023
e0cbb71
Update releases.md
syuilo Mar 22, 2023
b3ed430
Update releases.md
syuilo Mar 22, 2023
e933599
APIConsoleに対し、以下対応を実施 (#227)
samunohito Mar 23, 2023
8bd737c
docs: Added description of deprecated settings (#223)
Mar 23, 2023
b126b29
Adding Traditional Chinese (#201)
pchxyz Mar 23, 2023
06c2ea7
Update releases.md
syuilo Mar 24, 2023
7f49926
Update releases.md
syuilo Apr 8, 2023
5914576
Update releases.md
syuilo Apr 9, 2023
da0d0b0
Update releases.md
syuilo Apr 11, 2023
f109c80
Update releases.md
syuilo Apr 12, 2023
44a3e73
Update donate.md
syuilo Apr 12, 2023
fe3e7d1
Update donate.md
syuilo Apr 12, 2023
b7bd866
Update donate.md
syuilo Apr 12, 2023
f7051c9
Update releases.md
syuilo Apr 13, 2023
312de88
add scale-out.md
syuilo Apr 15, 2023
c39f9cb
Merge branch 'main' of https://github.com/misskey-dev/misskey-hub
syuilo Apr 15, 2023
1a41f8e
Translating to Polish(PL) (#239)
parpok Apr 15, 2023
8d932a7
Preliminary addition of Simplified Chinese v1 (#236)
Never2333 Apr 15, 2023
0d4f109
Update config.ts
syuilo Apr 15, 2023
cd295b4
Update donate.md
syuilo Apr 22, 2023
66d85f6
Create a631cf8b490145cf8dbbe4e7508cfbc2.jpg
syuilo Apr 23, 2023
b15d59f
Merge branch 'main' of https://github.com/misskey-dev/misskey-hub
syuilo Apr 23, 2023
15f5f13
Create 6c3327e626c046f2914fbcd9f7557935.jpg
syuilo May 1, 2023
28a150a
Create 6a652e0534ff4cb1836e7ce4968d76a7.jpg
syuilo May 1, 2023
e89b870
Create be1326bda7d940a482f3758ffd9ffaf6.jpg
syuilo May 3, 2023
a697b3f
Update releases.md
syuilo May 9, 2023
559061e
Update releases.md
syuilo May 9, 2023
226fb6f
Update releases.md
syuilo May 12, 2023
8c64c3f
Update releases.md
syuilo May 12, 2023
995d639
Create masknetwork.png
syuilo May 13, 2023
933e34d
Update manual.md (#247)
ThinaticSystem May 28, 2023
adf119d
Fix a mistake on manual.md (#245)
yuowo39 May 28, 2023
2d8a679
add patron icons
syuilo Jun 1, 2023
c68b49e
Merge branch 'main' of https://github.com/misskey-dev/misskey-hub
syuilo Jun 1, 2023
a59be6d
Update apps.md (#248)
Npepperlinux Jun 1, 2023
3d7a344
Update apps.md (#248)
Npepperlinux Jun 1, 2023
79e749e
Update apps.md (#248)
Npepperlinux Jun 1, 2023
ebe058f
Update apps.md (#248)
Npepperlinux Jun 1, 2023
b8f02ab
Update releases.md
syuilo Jun 5, 2023
d831e88
Update releases.md
syuilo Jun 6, 2023
d944d09
Update releases.md
syuilo Jun 13, 2023
b9b3aea
Update donate.md
syuilo Jul 1, 2023
0f4906b
Update apps.md (#254)
takke Jul 2, 2023
5d5e165
コードブロックの区切りを修正 (#252)
itoooak Jul 2, 2023
02c2ec5
Update bash.md
reta-ygs Jul 3, 2023
dfdacdb
update patron icons
syuilo Jul 6, 2023
74c6508
Merge branch 'main' of https://github.com/misskey-dev/misskey-hub
syuilo Jul 6, 2023
0b098ee
Change Node version to 20.4
tamaina Jul 7, 2023
9264b92
Create skeb.svg
syuilo Jul 8, 2023
cc32be6
Update notes.md
syuilo Jul 8, 2023
4c44e21
Merge pull request #257 from reta-ygs/patch-1
tamaina Jul 9, 2023
11a411b
閲覧注意→sensitive
tamaina Jul 9, 2023
62cb7e6
Merge branch 'main' of https://github.com/misskey-dev/misskey-hub
tamaina Jul 9, 2023
91523eb
Update ubuntu-manual.md
reta-ygs Jul 9, 2023
aa20d41
change cf to gg (#255)
misskeygg Jul 13, 2023
41b4a20
Update Landing.vue
syuilo Jul 13, 2023
4bd4170
Merge branch 'main' of https://github.com/misskey-dev/misskey-hub
syuilo Jul 13, 2023
689cb1e
Create 31b102ab4fc540ed806b0461575d38be.jpg
syuilo Jul 13, 2023
1290ec8
Update Landing.vue
syuilo Jul 13, 2023
57b3051
Update Landing.vue
syuilo Jul 13, 2023
8cb341f
Update korean l10n + aiscript (jp) old info notation refactor (#259)
HotoRas Jul 15, 2023
5ee85ce
update patrons
syuilo Jul 16, 2023
9914d60
Merge branch 'main' of https://github.com/misskey-dev/misskey-hub
syuilo Jul 16, 2023
07bbc27
Update faq.md
syuilo Jul 19, 2023
6cef5c8
Create 3016d37e35f3430b90420176c912d304.jpg
syuilo Jul 20, 2023
a1254c4
Merge branch 'main' of https://github.com/misskey-dev/misskey-hub
syuilo Jul 20, 2023
d5978fd
Update releases.md
syuilo Jul 21, 2023
f6e8289
同一ドメインでデータベースを作り直すべきではない警告の文言を変更
tamaina Jul 24, 2023
7f5e225
Update releases.md
syuilo Jul 27, 2023
113a94f
Update mute-and-block.md (#275)
sally3125 Jul 28, 2023
7b0a6b3
added page: Help translated into italian (#274)
tassoman Jul 28, 2023
0eb50e5
added: registration important notes, translated into italian (#273)
tassoman Jul 28, 2023
ec4902f
Fix typo in Misskey API documentation (#272)
nikodembernat Jul 28, 2023
9ffbda6
add install.md misskey.md simplified chinese translation (#271)
WRXinYue Jul 28, 2023
4ad029d
アプリ一覧にMiriaを追加 (#276)
shiosyakeyakini-info Jul 28, 2023
d91255e
Merge pull request #260 from reta-ygs/patch-2
tamaina Jul 31, 2023
74cec29
Add initial translation for Bahasa Indonesia (#277)
sandycorzeta Jul 31, 2023
1d12816
TootRain をアプリリストに追加 (#262)
b123400 Aug 1, 2023
1fa4fec
remove some server (#279)
morotesovtannu Aug 3, 2023
fc203ab
Fix typo (#269)
arakur Aug 3, 2023
dcacb8d
Update korean changelog & more (#281)
HotoRas Aug 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021-2022 syuilo and other contributors
Copyright (c) 2021 2022 2023 syuilo and other contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4,405 changes: 1,874 additions & 2,531 deletions package-lock.json

Large diffs are not rendered by default.

17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,21 @@
"url": "git+https://github.com/misskey-dev/misskey-hub.git"
},
"devDependencies": {
"@types/three": "^0.133.1",
"@types/three": "^0.143.0",
"@types/tinycolor2": "^1.4.3",
"@vuepress/plugin-register-components": "^2.0.0-beta.34",
"@vuepress/plugin-search": "^2.0.0-beta.34",
"@vuepress/plugin-register-components": "^2.0.0-beta.49",
"@vuepress/plugin-search": "^2.0.0-beta.49",
"execa": "^5.1.1",
"meshline": "^2.0.3",
"three": "^0.134.0",
"meshline": "^2.0.4",
"three": "^0.143.0",
"tinycolor2": "^1.4.2",
"vuepress": "^2.0.0-beta.34"
"vuepress": "^2.0.0-beta.49"
},
"dependencies": {
"@tabler/icons-vue": "^2.1.2",
"deepmerge": "^4.2.2",
"element-plus": "^2.2.14",
"glob": "^7.2.0",
"json5": "^2.2.0"
"json5": "^2.2.1"
}
}
60 changes: 60 additions & 0 deletions src/.vuepress/_gen-api-defs-from-openapi.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
import * as fs from 'fs';
import { App, createPage, Page } from '@vuepress/core';
import glob from 'glob';
import JSON5 from 'json5';
const merge = require('deepmerge')
var getDirName = require('path').dirname;

const combineMerge = (target, source, options) => {
const destination = target.slice()

source.forEach((item, index) => {
if (typeof destination[index] === 'undefined') {
destination[index] = options.cloneUnlessOtherwiseSpecified(item, options)
} else if (options.isMergeableObject(item)) {
destination[index] = merge(target[index], item, options)
} else if (target.indexOf(item) === -1) {
destination.push(item)
}
})
return destination
}

const openApiDefinition = JSON.parse(fs.readFileSync(__dirname + '/api.json', 'utf8'));
const endpointPaths = Object.keys(openApiDefinition.paths);
const endpointTags = Array.from(new Set(Object.values(openApiDefinition.paths).flatMap(x => x.post.tags ?? [])));

function writeFile(path, contents, cb) {
fs.mkdir(getDirName(path), { recursive: true}, function (err) {
fs.writeFileSync(path, contents);
});
}

export async function generateEndpointPages(app: App) {
for (const endpointPath of endpointPaths) {
const name = endpointPath.substring(1);
const def = openApiDefinition.paths[endpointPath]['post'];
const requireCredential = def.security?.length > 0;
const errors = {};
for (const e of Object.keys(def.responses['400']?.content['application/json'].examples)) {
const err = def.responses['400']?.content['application/json'].examples[e].value.error;
if (err.id === '3d81ceae-475f-4600-b2a8-2bc116157532') continue; // INVALID_PARAMは全API共通なため
errors[err.id] = {
id: err.id,
code: err.code,
description: '',
};
}
const data = {
summary: '',
description: '',
tags: def.tags,
requireCredential,
req: def.requestBody.content['application/json']?.schema ?? {},
res: def.responses['200']?.content['application/json'].schema ?? {},
errors,
};

writeFile(__dirname + `/_api_/${name}.json5`, JSON5.stringify(data, null, '\t'), 'utf8');
}
}
1 change: 1 addition & 0 deletions src/.vuepress/api.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/.vuepress/api.locale.en-US.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
104 changes: 104 additions & 0 deletions src/.vuepress/api.locale.ja-JP.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
paths: {
'/ping': {
post: {
summary: '接続確認を行います。',
description: '接続確認を行います。',
responses: {
'200': {
content: {
'application/json': {
schema: {
properties: {
pong: {
description: 'レスポンス時の時刻です。',
},
},
},
},
},
},
},
},
},
'/notes': {
post: {
summary: 'ノート一覧を取得します。',
description: 'ノート一覧を取得します。',
requestBody: {
content: {
'application/json': {
schema: {
properties: {
local: {
description: 'ローカルで作成されたノートのみを取得します。',
},
reply: {
description: '`true` にすると返信だけを、 `false` にすると返信以外を取得します。値を設定しなければ返信であるかそうでないかに関係なくノートを取得します。',
},
renote: {
description: '`true` にするとリノートだけを、 `false` にするとリノート以外を取得します。値を設定しなければリノートであるかそうでないかに関係なくノートを取得します。',
},
withFiles: {
description: '`true` にすると添付ファイルのあるノートだけを、 `false` にすると添付ファイルがないノートだけを取得します。値を設定しなければ添付ファイルの有無にかかわらずノートを取得します。',
},
poll: {
description: '`true` にすると投票を含むノートだけを、 `false` にすると含まないノートだけを取得します。値を設定しなければ投票の有無にかかわらずノートを取得します。',
},
limit: {
description: '取得するノートの最大数を指定します。',
},
},
},
},
},
},
},
},
'/get-online-users-count': {
post: {
summary: 'オンラインになっているユーザ数を取得します。',
description: 'オンラインになっているユーザ数を取得します。',
responses: {
'200': {
content: {
'application/json': {
schema: {
properties: {
count: {
description: '現在オンライン(10分以内に何らかのアクションをとった)であるユーザ数です。',
},
},
},
},
},
},
},
},
},
'/i/pin': {
post: {
summary: 'ノートをピン留めします。',
description: 'ノートをピン留めします。ピン留めされたノートはMisskey Webのプロフィールページに表示されたりします。',
},
},
'/i/unpin': {
post: {
summary: 'ノートをピン留めから解除します。',
description: 'ノートをピン留めから解除します。',
},
},
'/clips/create': {
post: {
summary: 'クリップを作成します。',
description: 'クリップを作成します。',
},
},
'/clips/list': {
post: {
summary: '自分のクリップの一覧を取得します。',
description: '自分のクリップの一覧を取得します。',
},
},
},
}
1 change: 1 addition & 0 deletions src/.vuepress/api.locale.ko-KR.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
8 changes: 8 additions & 0 deletions src/.vuepress/client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineClientConfig } from '@vuepress/client'
import ElementPlus from 'element-plus'

export default defineClientConfig({
enhance({app, router, siteData}) {
app.use(ElementPlus, { })
},
})
120 changes: 107 additions & 13 deletions src/.vuepress/components/MkApiConsole.vue
Original file line number Diff line number Diff line change
@@ -1,24 +1,118 @@
<template>
<div class="mk-api-console">
<input v-model="host">
<el-collapse v-model="expands">
<el-collapse-item title="API Console" name="console">
<el-form :model="form" label-width="120px">
<el-form-item label="Host" prop="host" :rules="[{ required: true }]">
<el-input v-model="host" placeholder="misskey.example.com">
<template #prepend>https://</template>
</el-input>
</el-form-item>
<el-form-item label="Endpoint" prop="endpoint" :rules="[{ required: true }]">
<el-input v-model="endpoint" placeholder="foo/bar">
<template #prepend>https://{{ host }}/api/</template>
</el-input>
</el-form-item>
<el-form-item label="Params">
<el-input v-model="params" type="textarea" :autosize="{ minRows: 8 }">
</el-input>
</el-form-item>
<el-form-item label="Token">
<el-input v-model="token" placeholder="Token or API key">
</el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit">Send</el-button>
</el-form-item>
<el-form-item label="Response">
<el-input v-model="res" readonly type="textarea" autosize>
</el-input>
</el-form-item>
</el-form>
</el-collapse-item>
</el-collapse>
</div>
</template>

<script>
import { } from 'vue';
<script lang="ts" setup>
import { ref, watch } from 'vue';
import JSON5 from 'json5';

export default {
props: {
def: {
type: Object,
required: true,
}
},
const props = defineProps<{
name: string;
def: any;
}>();

setup(props) {
const params = ref();

},
};
const endpointBody = {};
if (props.def.req) {
for (const [k, v] of Object.entries(props.def.req.properties ?? {})) {
endpointBody[k] =
v.type === 'string' ? '' :
v.type === 'integer' ? 0 :
v.type === 'boolean' ? false :
v.type === 'array' ? [] :
v.type === 'object' ? {} :
null;
}
}
params.value = JSON5.stringify(endpointBody, null, 2);

const endpoint = ref(props.name);
const host = ref(localStorage.getItem('host') ?? '');
const token = ref(localStorage.getItem('token') ?? '');
const res = ref(null);
const expands = ref([]);

// for validation
const form = ref({
host,
endpoint,
})

watch(host, () => {
localStorage.setItem('host', host.value)
});

watch(token, () => {
localStorage.setItem('token', token.value)
});

function request() {
const promise = new Promise((resolve, reject) => {
const data = {
...JSON5.parse(params.value),
i: token.value && token.value.trim() !== '' ? token.value : undefined,
};
fetch(`https://${host.value}/api/${endpoint.value}`, {
method: 'POST',
body: JSON.stringify(data),
credentials: 'omit',
cache: 'no-cache',
headers: {
'Content-Type': 'application/json',
},
}).then(async (res) => {
const body = res.status === 204 ? null : await res.json();

if (res.status === 200) {
resolve(body);
} else if (res.status === 204) {
resolve();
} else {
resolve(body.error);
}
}).catch(reject);
});

return promise;
}

async function onSubmit() {
const _res = await request();
res.value = JSON5.stringify(_res, null, '\t');
}
</script>

<style lang="scss" scoped>
Expand Down
45 changes: 45 additions & 0 deletions src/.vuepress/components/MkApiErrors.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<template>
<div class="mk-api-errors">
<el-tabs v-model="activeName">
<el-tab-pane label="固有のエラー" name="a">
<template v-if="Object.keys(errors).length > 0">
<el-collapse v-model="expands">
<el-collapse-item v-for="e in errors" :title="e.code" :name="e.id">
<div>{{ e.description }}</div>
<div class="_mono">ID: {{ e.id }}</div>
</el-collapse-item>
</el-collapse>
</template>
<template v-else>
<el-alert title="なし" type="success" :closable="false" />
</template>
</el-tab-pane>
<el-tab-pane label="共通のエラー" name="b">
<el-collapse v-model="commonExpands">
<el-collapse-item v-for="e in commonErrors" :title="e.code" :name="e.id">
<div>{{ e.description }}</div>
<div class="_mono">ID: {{ e.id }}</div>
</el-collapse-item>
</el-collapse>
</el-tab-pane>
</el-tabs>
</div>
</template>

<script lang="ts" setup>
import { ref, watch } from 'vue';
import JSON5 from 'json5';

const props = defineProps<{
errors: any[];
commonErrors: any[];
}>();

const activeName = ref('a')
const expands = ref([]);
const commonExpands = ref([]);

</script>

<style lang="scss" scoped>
</style>
Loading