-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathWiki.ts
More file actions
26 lines (19 loc) · 760 Bytes
/
Wiki.ts
File metadata and controls
26 lines (19 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { Content, ContentModel } from 'mobx-github';
import { DocumentModel, WikiNodeModel } from 'mobx-lark';
import { DataObject } from 'mobx-restful';
import { lark } from '../pages/api/Lark/core';
import './Base';
import { LarkWikiDomain, LarkWikiId } from './configuration';
export interface XContent extends Content {
meta?: DataObject;
children?: XContent[];
}
export const policyContentStore = new ContentModel('fpsig', 'open-source-policy');
export class MyWikiNodeModel extends WikiNodeModel {
client = lark.client;
}
export const wikiStore = new MyWikiNodeModel(LarkWikiDomain, LarkWikiId);
export class MyDocumentModel extends DocumentModel {
client = lark.client;
}
export const documentStore = new MyDocumentModel(LarkWikiDomain);