|
|
@@ -1,15 +1,21 @@
|
|
|
import { parse } from '../utils/slash-command-parser';
|
|
|
-
|
|
|
+import { RegisterService } from './register';
|
|
|
|
|
|
export class IndexService {
|
|
|
|
|
|
- // constructor(crowi) {
|
|
|
- // this.crowi = crowi;
|
|
|
- // }
|
|
|
receiveBody(parseBody) {
|
|
|
const body = parse(parseBody);
|
|
|
+ const commandType = body.growiCommandArgs;
|
|
|
+ const commandArgs = body.growiCommandType;
|
|
|
+
|
|
|
+ if (commandType === 'register') {
|
|
|
+ this.openModal();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- console.log(body);
|
|
|
+ openModal() {
|
|
|
+ console.log('open');
|
|
|
}
|
|
|
|
|
|
|