Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
oxisto committed Oct 31, 2023
1 parent 2a9db4d commit a082e7e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 157 deletions.
116 changes: 0 additions & 116 deletions package-lock.json

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

7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"format": "prettier --plugin-search-dir . --write ."
},
"devDependencies": {
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"@rgossiaux/svelte-headlessui": "^2.0.0",
"@steeze-ui/heroicons": "^2.2.3",
"@steeze-ui/svelte-icon": "^1.4.1",
Expand All @@ -28,10 +27,6 @@
"chart.js": "^4.3.0",
"cytoscape": "^3.26.0",
"cytoscape-cola": "^2.5.1",
"cytoscape-cose-bilkent": "^4.1.0",
"cytoscape-dagre": "^2.5.0",
"cytoscape-euler": "^1.2.2",
"cytoscape-spread": "^3.0.0",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte": "^2.26.0",
Expand All @@ -50,4 +45,4 @@
"vite": "^4.5.0"
},
"type": "module"
}
}
4 changes: 2 additions & 2 deletions src/lib/components/DiscoveryGraph.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
ServerStack,
Share
} from '@steeze-ui/heroicons';
import { Icon, type IconSource } from '@steeze-ui/svelte-icon';
import cytoscape, { Stylesheet, type EdgeDefinition, type NodeDefinition } from 'cytoscape';
import type { IconSource } from '@steeze-ui/svelte-icon';
import cytoscape, { type EdgeDefinition, type NodeDefinition, type Stylesheet } from 'cytoscape';
import cola from 'cytoscape-cola';
import { createEventDispatcher, onMount, setContext } from 'svelte';
Expand Down
33 changes: 0 additions & 33 deletions src/lib/components/NodeDetail.svelte
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
<script lang="ts">
import type { AssessmentResult, Metric } from '$lib/api/assessment';
import type { Resource } from '$lib/api/discovery';
import type { IconDefinition } from '@fortawesome/fontawesome-common-types';
import {
faDatabase,
faGenderless,
faMicrochip,
faNetworkWired,
faObjectGroup,
faServer,
faWarehouse
} from '@fortawesome/free-solid-svg-icons';
import AssessmentIcon from './AssessmentIcon.svelte';
export let selected: Resource;
Expand All @@ -22,29 +12,6 @@
let rr = id.split('/');
return rr[rr.length - 1];
}
function icon(type: string): IconDefinition {
switch (type) {
case 'Networking':
return faNetworkWired;
case 'NetworkService':
return faServer;
case 'Compute':
return faMicrochip;
case 'Storage':
return faDatabase;
case 'StorageService':
return faWarehouse;
case 'ObjectStorageService':
return faWarehouse;
case 'ObjectStorage':
return faDatabase;
case 'ResourceGroup':
return faObjectGroup;
default:
return faGenderless;
}
}
</script>

<div class="flex flex-col bg-white shadow-xl">
Expand Down

0 comments on commit a082e7e

Please sign in to comment.