Skip to content

Commit

Permalink
Update to owd-client 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hacklover committed Oct 26, 2020
1 parent 26b463b commit 27dc0bd
Show file tree
Hide file tree
Showing 7 changed files with 214 additions and 192 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/.idea
# Editors
.idea
.vscode
7 changes: 0 additions & 7 deletions client/commands.js

This file was deleted.

3 changes: 3 additions & 0 deletions client/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import TodoModule from './module.class'

export default TodoModule
15 changes: 15 additions & 0 deletions client/module.class.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import {Module} from '@owd-client/core'

export default class TodoModule extends Module {
constructor(context) {
super(context)
}

loadCommands({store}) {
return {
'todo': function () {
store.dispatch('core/windows/windowOpen', 'WindowTodo');
}
}
}
}
3 changes: 1 addition & 2 deletions client/module.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "todo",
"version": "1.3.0",
"version": "2.0.0",
"singleton": true,
"autostart": true,
"commands": true,
"windows": [
{
"name": "WindowTodo",
Expand Down
Loading

0 comments on commit 27dc0bd

Please sign in to comment.