Skip to content

Commit

Permalink
Replace external resource card from utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
akhuoa committed Dec 12, 2024
1 parent c21ab00 commit f89e4e7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 117 deletions.
1 change: 0 additions & 1 deletion src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ declare module 'vue' {
ElRow: typeof import('element-plus/es')['ElRow']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElTag: typeof import('element-plus/es')['ElTag']
ExternalResourceCard: typeof import('./components/ExternalResourceCard.vue')['default']
ImageGallery: typeof import('./components/ImageGallery.vue')['default']
SearchFilters: typeof import('./components/SearchFilters.vue')['default']
SearchHistory: typeof import('./components/SearchHistory.vue')['default']
Expand Down
18 changes: 15 additions & 3 deletions src/components/ConnectivityInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div v-if="entry" class="main" v-loading="loading">
<!-- Connectivity Info Title -->
<div class="connectivity-info-title">
<div>
<div class="title-content">
<div class="block" v-if="entry.title">
<div class="title">
{{ capitalise(entry.title) }}
Expand Down Expand Up @@ -234,9 +234,13 @@ import {
ElContainer as Container,
ElIcon as Icon,
} from 'element-plus'
import ExternalResourceCard from './ExternalResourceCard.vue'
import EventBus from './EventBus.js'
import { CopyToClipboard, ConnectivityGraph } from '@abi-software/map-utilities';
import {
CopyToClipboard,
ConnectivityGraph,
ExternalResourceCard,
} from '@abi-software/map-utilities';
import '@abi-software/map-utilities/dist/style.css';
const titleCase = (str) => {
Expand Down Expand Up @@ -617,6 +621,11 @@ export default {
flex-direction: row;
justify-content: space-between;
gap: 1rem;
.title-content {
flex: 1 0 0%;
max-width: 85%;
}
}
.title {
Expand Down Expand Up @@ -922,7 +931,10 @@ export default {
.title-buttons {
display: flex;
flex: 1 0 0%;
max-width: 15%;
flex-direction: row;
justify-content: end;
gap: 0.5rem;
:deep(.copy-clipboard-button) {
Expand Down
113 changes: 0 additions & 113 deletions src/components/ExternalResourceCard.vue

This file was deleted.

0 comments on commit f89e4e7

Please sign in to comment.