ssb-chess-mithril 2.0.4 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -36,6 +36,7 @@ module.exports = (attachToElement, dataAccess, opts = {}) => {
36
36
 
37
37
  // h4cky0 strikes again? mebbe there's a better way? ;x
38
38
  function cssFilesToStyleTag(dom) {
39
+
39
40
  const rootDir = `${__dirname}/`;
40
41
 
41
42
  const styles = m('div', {}, cssFiles.map(file => m('link', { rel: 'stylesheet', href: rootDir + file })));
@@ -69,6 +70,8 @@ module.exports = (attachToElement, dataAccess, opts = {}) => {
69
70
 
70
71
  const defaultView = initialView || '/my_games';
71
72
 
73
+ m.route.prefix('?');
74
+
72
75
  m.route(mainBody, defaultView, {
73
76
  '/my_games': MiniboardListComponent(mainCtrl, gamesInProgressObs, mainCtrl.getMyIdent()),
74
77
  '/games_my_move': MiniboardListComponent(mainCtrl, gamesMyMoveObs, mainCtrl.getMyIdent()),
@@ -106,6 +109,7 @@ module.exports = (attachToElement, dataAccess, opts = {}) => {
106
109
  },
107
110
  },
108
111
  });
112
+
109
113
  }
110
114
 
111
115
  dataAccess.whoAmI((err, ident) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ssb-chess-mithril",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "description": "An ssb-chess client",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,11 +25,7 @@
25
25
  "pull-scroll": "^1.0.9",
26
26
  "pull-stream": "^3.6.14",
27
27
  "ramda": "^0.25.0",
28
- "ssb-chess": "4.0.1",
28
+ "ssb-chess": "4.0.3",
29
29
  "ssb-embedded-chat": "2.0.1"
30
- },
31
- "devDependencies": {
32
- "electron-builder": "^22.10.5",
33
- "electron": "^13.0.1"
34
30
  }
35
31
  }
@@ -2,6 +2,8 @@ const m = require('mithril');
2
2
  const SettingsDialog = require('../settings/settings-dialog');
3
3
 
4
4
  module.exports = (mainCtrl, settings) => {
5
+ m.route.prefix('?');
6
+
5
7
  const gamesInProgress = {
6
8
  name: 'Games',
7
9
  link: '/my_games',