Skip to content

Commit

Permalink
Chore: Update to 10.2.1 (#3224)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElinorW authored Jul 3, 2024
1 parent 072f4e6 commit 6e4266c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 43 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graph-explorer-v2",
"version": "10.2.0",
"version": "10.2.1",
"private": true,
"dependencies": {
"@augloop/types-core": "file:packages/types-core-2.16.189.tgz",
Expand Down
37 changes: 0 additions & 37 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,43 +160,6 @@ function loadResources() {
}
loadResources();

/**
* Set's up Monaco Editor's Workers.
*/
enum Workers {
Json = 'json',
Editor = 'editor',
Typescript='ts',
Css='css',
Html='html'
}

window.MonacoEnvironment = {
getWorkerUrl(moduleId: any, label: string) {
switch (label) {
case 'json':
return getWorkerFor(Workers.Json);
case 'css':
return getWorkerFor(Workers.Css);
case 'html':
return getWorkerFor(Workers.Html);
case 'typescript':
return getWorkerFor(Workers.Typescript);
default:
return getWorkerFor(Workers.Editor);
}
}
};

function getWorkerFor(worker: string): string {
// tslint:disable-next-line:max-line-length
const WORKER_PATH =
'https://graphstagingblobstorage.blob.core.windows.net/staging/vendor/bower_components/explorer-v2/build';

return `data:text/javascript;charset=utf-8,${encodeURIComponent(`
importScripts('${WORKER_PATH}/${worker}.worker.js');`)}`;
}

variantService.initialize();
const telemetryProvider: ITelemetry = telemetry;
telemetryProvider.initialize();
Expand Down
3 changes: 0 additions & 3 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { Environment } from 'monaco-editor/esm/vs/editor/editor.api';

export {};
declare global {
interface Window {
ClientId: string | undefined
MonacoEnvironment: Environment;
}
}

Expand Down

0 comments on commit 6e4266c

Please sign in to comment.