From 65830853c51647ed31990b8de22b526263a81acc Mon Sep 17 00:00:00 2001 From: fsdavid <daviti1@mail.com> Date: Thu, 5 May 2022 14:27:37 +0200 Subject: [PATCH] remove connectivity dependence --- .storybook/preview-head.html | 1 + .storybook/preview.js | 3 --- package.json | 1 - src/index.html | 3 ++- src/main-common.ts | 3 --- 5 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.storybook/preview-head.html b/.storybook/preview-head.html index 9a0d33156..ca4966cf9 100644 --- a/.storybook/preview-head.html +++ b/.storybook/preview-head.html @@ -10,3 +10,4 @@ } </style> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous"> +<script type="module" src="https://unpkg.com/hbp-connectivity-component@0.6.1/dist/connectivity-component/connectivity-component.js" defer></script> diff --git a/.storybook/preview.js b/.storybook/preview.js index fe04984a5..957e7cbef 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -1,7 +1,6 @@ import { setCompodocJson } from "@storybook/addon-docs/angular"; import docJson from "../documentation.json"; setCompodocJson(docJson); -import * as ConnectivityComponent from 'hbp-connectivity-component/dist/loader' import 'src/theme.scss' @@ -19,5 +18,3 @@ export const parameters = { current: 'light' } } - -ConnectivityComponent.defineCustomElements(window) diff --git a/package.json b/package.json index 1f40f2096..e770b3c46 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,6 @@ "acorn": "^8.4.1", "export-nehuba": "0.0.12", "file-loader": "^6.2.0", - "hbp-connectivity-component": "^0.6.1", "jszip": "^3.6.0", "postcss": "^8.3.6", "raw-loader": "^4.0.2", diff --git a/src/index.html b/src/index.html index 0928ef9d4..ed31896f6 100644 --- a/src/index.html +++ b/src/index.html @@ -15,7 +15,8 @@ <script src="https://unpkg.com/kg-dataset-previewer@1.2.0/dist/kg-dataset-previewer/kg-dataset-previewer.js" defer></script> <script src="https://unpkg.com/three-surfer@0.0.10/dist/bundle.js" defer></script> <script type="module" src="https://unpkg.com/ng-layer-tune@0.0.5/dist/ng-layer-tune/ng-layer-tune.esm.js"></script> - + <script type="module" src="https://unpkg.com/hbp-connectivity-component@0.6.1/dist/connectivity-component/connectivity-component.js" ></script> + <title>Interactive Atlas Viewer</title> </head> <body> diff --git a/src/main-common.ts b/src/main-common.ts index 3bfc08878..f927f2551 100644 --- a/src/main-common.ts +++ b/src/main-common.ts @@ -28,7 +28,6 @@ import '!!file-loader?name=version.css!src/version.css' import 'zone.js' import { enableProdMode } from '@angular/core'; -import * as ConnectivityComponent from 'hbp-connectivity-component/dist/loader' import { platformBrowserDynamic } from '@angular/platform-browser-dynamic' import { MainModule } from './main.module'; @@ -39,5 +38,3 @@ if (PRODUCTION) { console.log(`Siibra Explorer: ${VERSION}::${GIT_HASH}`) } platformBrowserDynamic().bootstrapModule(MainModule) - -ConnectivityComponent.defineCustomElements(window) \ No newline at end of file -- GitLab