@jupytergis/jupytergis-qgis 0.1.4 → 0.1.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.
Files changed (2) hide show
  1. package/lib/plugins.js +12 -8
  2. package/package.json +4 -4
package/lib/plugins.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { ICollaborativeDrive } from '@jupyter/docprovider';
2
- import { JupyterGISDoc, IJGISExternalCommandRegistryToken } from '@jupytergis/schema';
3
- import { Dialog, ICommandPalette, InputDialog, IThemeManager, showDialog, showErrorMessage } from '@jupyterlab/apputils';
2
+ import { IJGISExternalCommandRegistryToken, JupyterGISDoc } from '@jupytergis/schema';
3
+ import { Dialog, ICommandPalette, IThemeManager, InputDialog, showDialog, showErrorMessage } from '@jupyterlab/apputils';
4
4
  import { IEditorServices } from '@jupyterlab/codeeditor';
5
- import { PathExt } from '@jupyterlab/coreutils';
6
5
  import { ConsolePanel, IConsoleTracker } from '@jupyterlab/console';
6
+ import { PathExt } from '@jupyterlab/coreutils';
7
7
  import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
8
8
  import { Widget } from '@lumino/widgets';
9
+ import { logoMiniIcon, requestAPI } from '@jupytergis/base';
9
10
  import { JupyterGISWidgetFactory } from '@jupytergis/jupytergis-core';
10
11
  import { IJupyterGISDocTracker } from '@jupytergis/schema';
11
- import { requestAPI } from '@jupytergis/base';
12
12
  import { QGSModelFactory, QGZModelFactory } from './modelfactory';
13
13
  /**
14
14
  * The command IDs used by the qgis plugin.
@@ -42,7 +42,8 @@ const activate = async (app, tracker, themeManager, drive, externalCommandRegist
42
42
  contentFactory,
43
43
  rendermime,
44
44
  mimeTypeService: editorServices.mimeTypeService,
45
- consoleTracker
45
+ consoleTracker,
46
+ drive
46
47
  });
47
48
  const QGZWidgetFactory = new JupyterGISWidgetFactory({
48
49
  name: 'JupyterGIS QGZ Factory',
@@ -57,7 +58,8 @@ const activate = async (app, tracker, themeManager, drive, externalCommandRegist
57
58
  contentFactory,
58
59
  rendermime,
59
60
  mimeTypeService: editorServices.mimeTypeService,
60
- consoleTracker
61
+ consoleTracker,
62
+ drive
61
63
  });
62
64
  // Registering the widget factory
63
65
  app.docRegistry.addWidgetFactory(QGSWidgetFactory);
@@ -72,7 +74,8 @@ const activate = async (app, tracker, themeManager, drive, externalCommandRegist
72
74
  mimeTypes: ['application/octet-stream'],
73
75
  extensions: ['.qgs', '.QGS'],
74
76
  fileFormat: 'base64',
75
- contentType: 'QGS'
77
+ contentType: 'QGS',
78
+ icon: logoMiniIcon
76
79
  });
77
80
  app.docRegistry.addFileType({
78
81
  name: 'QGZ',
@@ -80,7 +83,8 @@ const activate = async (app, tracker, themeManager, drive, externalCommandRegist
80
83
  mimeTypes: ['application/octet-stream'],
81
84
  extensions: ['.qgz', '.QGZ'],
82
85
  fileFormat: 'base64',
83
- contentType: 'QGZ'
86
+ contentType: 'QGZ',
87
+ icon: logoMiniIcon
84
88
  });
85
89
  const QGISSharedModelFactory = () => {
86
90
  return new JupyterGISDoc();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupytergis/jupytergis-qgis",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "JupyterGIS QGIS extension.",
5
5
  "keywords": [
6
6
  "jupyter",
@@ -54,9 +54,9 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@jupyter/docprovider": "^2.0.0",
57
- "@jupytergis/base": "^0.1.4",
58
- "@jupytergis/jupytergis-core": "^0.1.4",
59
- "@jupytergis/schema": "^0.1.4",
57
+ "@jupytergis/base": "^0.1.6",
58
+ "@jupytergis/jupytergis-core": "^0.1.6",
59
+ "@jupytergis/schema": "^0.1.6",
60
60
  "@jupyterlab/application": "^4.0.0",
61
61
  "@jupyterlab/apputils": "^4.0.0",
62
62
  "@jupyterlab/coreutils": "^6.0.0",