summaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-07-22 00:35:30 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-07-22 00:35:30 +0900
commit59b7b0f83222d00a18140b8abd0c243a083c512a (patch)
treeeb7b0e2b9bfcb0d4816e98c2d8ee4d49a99ff08f /CONTRIBUTING.md
parentenhance(client): add some themes (diff)
downloadsharkey-59b7b0f83222d00a18140b8abd0c243a083c512a.tar.gz
sharkey-59b7b0f83222d00a18140b8abd0c243a083c512a.tar.bz2
sharkey-59b7b0f83222d00a18140b8abd0c243a083c512a.zip
Update CONTRIBUTING.md
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r--CONTRIBUTING.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index e4a5d48cf0..4547138eb4 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -140,6 +140,34 @@ Misskey uses Vue(v3) as its front-end framework.
- **When creating a new component, please use the Composition API (with [setup sugar](https://v3.vuejs.org/api/sfc-script-setup.html) and [ref sugar](https://github.com/vuejs/rfcs/discussions/369)) instead of the Options API.**
- Some of the existing components are implemented in the Options API, but it is an old implementation. Refactors that migrate those components to the Composition API are also welcome.
+## nirax
+niraxは、Misskeyで使用しているオリジナルのフロントエンドルーティングシステムです。
+**vue-routerから影響を多大に受けているので、まずはvue-routerについて学ぶことをお勧めします。**
+
+### ルート定義
+ルート定義は、以下の形式のオブジェクトの配列です。
+
+``` ts
+{
+ name?: string;
+ path: string;
+ component: Component;
+ query?: Record<string, string>;
+ loginRequired?: boolean;
+ hash?: string;
+ globalCacheKey?: string;
+ children?: RouteDef[];
+}
+```
+
+> **Warning**
+> 現状、ルートは定義された順に評価されます。
+> たとえば、`/foo/:id`ルート定義の次に`/foo/bar`ルート定義がされていた場合、後者がマッチすることはありません。
+
+### 複数のルーター
+vue-routerとの最大の違いは、niraxは複数のルーターが存在することを許可している点です。
+これにより、アプリ内ウィンドウでブラウザとは個別にルーティングすることなどが可能になります。
+
## Notes
### How to resolve conflictions occurred at yarn.lock?