Skip to content

Commit

Permalink
fix: update project link imports
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Jul 16, 2024
1 parent cf1fd37 commit b65d715
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 28 deletions.
18 changes: 17 additions & 1 deletion components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,33 @@ declare module 'vue' {
BatchSearchTable: typeof import('./src/components/BatchSearchTable.vue')['default']
BBadge: typeof import('bootstrap-vue-next')['BBadge']
BButton: typeof import('bootstrap-vue-next')['BButton']
BButtonGroup: typeof import('bootstrap-vue-next')['BButtonGroup']
BCloseButton: typeof import('bootstrap-vue-next')['BCloseButton']
BCol: typeof import('bootstrap-vue-next')['BCol']
BCollapse: typeof import('bootstrap-vue-next')['BCollapse']
BDropdown: typeof import('bootstrap-vue-next')['BDropdown']
BDropdownDivider: typeof import('bootstrap-vue-next')['BDropdownDivider']
BDropdownHeader: typeof import('bootstrap-vue-next')['BDropdownHeader']
BDropdownItem: typeof import('bootstrap-vue-next')['BDropdownItem']
BDropdownItemButton: typeof import('bootstrap-vue-next')['BDropdownItemButton']
BForm: typeof import('bootstrap-vue-next')['BForm']
BFormCheckbox: typeof import('bootstrap-vue-next')['BFormCheckbox']
BFormCheckboxGroup: typeof import('bootstrap-vue-next')['BFormCheckboxGroup']
BFormFile: typeof import('bootstrap-vue-next')['BFormFile']
BFormGroup: typeof import('bootstrap-vue-next')['BFormGroup']
BFormInput: typeof import('bootstrap-vue-next')['BFormInput']
BFormRadio: typeof import('bootstrap-vue-next')['BFormRadio']
BFormSelect: typeof import('bootstrap-vue-next')['BFormSelect']
BFormTextarea: typeof import('bootstrap-vue-next')['BFormTextarea']
BLink: typeof import('bootstrap-vue-next')['BLink']
BModal: typeof import('bootstrap-vue-next')['BModal']
BOverlay: typeof import('bootstrap-vue-next')['BOverlay']
BPopover: typeof import('bootstrap-vue-next')['BPopover']
BRow: typeof import('bootstrap-vue-next')['BRow']
BTab: typeof import('bootstrap-vue-next')['BTab']
BTable: typeof import('bootstrap-vue-next')['BTable']
BTabs: typeof import('bootstrap-vue-next')['BTabs']
BTooltip: typeof import('bootstrap-vue-next')['BTooltip']
ColumnChartPicker: typeof import('./src/components/ColumnChartPicker.vue')['default']
ColumnFilter: typeof import('./src/components/ColumnFilter.vue')['default']
ColumnFilterBadge: typeof import('./src/components/ColumnFilterBadge.vue')['default']
Expand Down Expand Up @@ -151,9 +164,11 @@ declare module 'vue' {
PageSettingsTitle: typeof import('./src/components/PageSettings/PageSettingsTitle.vue')['default']
Pagination: typeof import('./src/components/Pagination.vue')['default']
Plugins: typeof import('./src/components/Plugins.vue')['default']
ProjectButton: typeof import('./src/components/Project/ProjectButton.vue')['default']
ProjectCards: typeof import('./src/components/ProjectCards.vue')['default']
ProjectForm: typeof import('./src/components/ProjectForm.vue')['default']
ProjectLink: typeof import('./src/components/ProjectLink.vue')['default']
ProjectLabel: typeof import('./src/components/Project/ProjectLabel.vue')['default']
ProjectLink: typeof import('./src/components/Project/ProjectLink.vue')['default']
ProjectSelector: typeof import('./src/components/ProjectSelector.vue')['default']
ProjectThumbnail: typeof import('./src/components/ProjectThumbnail.vue')['default']
QuickItemNav: typeof import('./src/components/QuickItemNav.vue')['default']
Expand Down Expand Up @@ -221,6 +236,7 @@ declare module 'vue' {
}
export interface ComponentCustomProperties {
vBModal: typeof import('bootstrap-vue-next')['vBModal']
vBToggle: typeof import('bootstrap-vue-next')['vBToggle']
vBTooltip: typeof import('bootstrap-vue-next')['vBTooltip']
}
}
2 changes: 1 addition & 1 deletion src/components/BatchSearchResultsDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ import BatchSearchActions from '@/components/BatchSearchActions'
import BatchSearchStatus from '@/components/BatchSearchStatus'
import ContentTypeBadge from '@/components/ContentTypeBadge'
import UserDisplay from '@/components/UserDisplay'
import ProjectLink from '@/components/ProjectLink'
import ProjectLink from '@/components/Project/ProjectLink'
import humanSize from '@/utils/humanSize'
import humanNumber from '@/utils/humanNumber'
import { humanLongDate } from '@/utils/humanDate'
Expand Down
2 changes: 1 addition & 1 deletion src/components/BatchSearchTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ import { computed } from 'vue'
import ColumnFilterDropdown from '@/components/ColumnFilterDropdown'
import BatchSearchFilterDate from '@/components/BatchSearchFilterDate'
import ProjectLink from '@/components/ProjectLink'
import ProjectLink from '@/components/Project/ProjectLink'
import BatchSearchStatus from '@/components/BatchSearchStatus'
import UserDisplay from '@/components/UserDisplay'
import settings from '@/utils/settings'
Expand Down
4 changes: 1 addition & 3 deletions src/components/Document/DocumentCard/DocumentCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ const showTitle = computed(() => {
<router-link v-if="showTitle" class="document-card__properties__title" :to="to" :target="target">
{{ document.title }}
</router-link>
<document-card-properties :document="document" :properties="properties">
<slot />
</document-card-properties>
<document-card-properties :document="document" :properties="properties" />
</div>
<div class="document-card__actions"></div>
</div>
Expand Down
16 changes: 7 additions & 9 deletions src/components/Document/DocumentCard/DocumentCardProperties.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,12 @@ const availableProperties = computed(() => {

<template>
<div class="document-card-properties">
<slot>
<component
:is="entryComponents[property]"
v-for="property in availableProperties"
:key="property"
:document="document"
:property="property"
/>
</slot>
<component
:is="entryComponents[property]"
v-for="property in availableProperties"
:key="property"
:document="document"
:property="property"
/>
</div>
</template>
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup>
import DocumentCardPropertiesEntry from '@/components/Document/DocumentCard/DocumentCardPropertiesEntry'
import ProjectButton from '@/components/Project/ProjectButton'
defineProps({
document: {
Expand All @@ -13,6 +14,6 @@ defineProps({

<template>
<document-card-properties-entry :document="document" :property="property" icon="circles-three-plus" hide-icon>
{{ document.project }}
<project-button :project="document.project" disabled />
</document-card-properties-entry>
</template>
2 changes: 1 addition & 1 deletion src/components/Document/DocumentNavbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
import { mapState } from 'vuex'
import DocumentActions from '@/components/DocumentActions'
import ProjectLink from '@/components/ProjectLink'
import ProjectLink from '@/components/Project/ProjectLink'
import UserDisplay from '@/components/UserDisplay'
import utils from '@/mixins/utils'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Document/DocumentTab/DocumentTabDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ import { filter, get, map, startCase, uniq } from 'lodash'
import { mapState } from 'vuex'
import DocumentTagsForm from '@/components/DocumentTagsForm'
import ProjectLink from '@/components/ProjectLink'
import ProjectLink from '@/components/Project/ProjectLink'
import { getDocumentTypeLabel, getExtractionLevelTranslationKey } from '@/utils/utils'
/**
Expand Down
4 changes: 0 additions & 4 deletions src/components/ProjectThumbnail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@ export default {
}
&:not(.project-thumbnail--checked).project-thumbnail--colorized {
&:before {
@include gradient-directional(rgba(#000, 0.15), rgba(#fff, 0.15));
}
.project-thumbnail__caption {
font-family: $font-family-monospace;
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion src/components/SearchResultsGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
import { mapState } from 'vuex'
import DocumentActions from '@/components/Document/DocumentActions'
import DocumentSlicedName from '@/components/Document/DocumentSlicedName'
import DocumentSlicedName from '@/components/DocumentSlicedName'
import DocumentThumbnail from '@/components/Document/DocumentThumbnail'
import SearchResultsHeader from '@/components/Document/SearchResultsHeader'
import settings from '@/utils/settings'
Expand Down
4 changes: 2 additions & 2 deletions src/components/SearchResultsListLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
import { startCase } from 'lodash'
import { mapState } from 'vuex'
import DocumentSlicedName from '@/components/Document/DocumentSlicedName'
import DocumentSlicedName from '@/components/DocumentSlicedName'
import DocumentThumbnail from '@/components/Document/DocumentThumbnail'
import ProjectLink from '@/components/Document/ProjectLink'
import ProjectLink from '@/components/Project/ProjectLink'
import ner from '@/mixins/ner'
/**
Expand Down
4 changes: 2 additions & 2 deletions src/components/Widget/WidgetRecommendedBy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ import InfiniteLoading from 'v3-infinite-loading'
import { fromNow, humanLongDate } from '@/utils/humanDate'
import EsDocList from '@/api/resources/EsDocList'
import DocumentThumbnail from '@/components/Document/DocumentThumbnail'
import DocumentSlicedName from '@/components/Document/DocumentSlicedName'
import UserDisplay from '@/components/Document/UserDisplay'
import DocumentSlicedName from '@/components/DocumentSlicedName'
import UserDisplay from '@/components/UserDisplay'
/**
* Widget to display a list of facets on the insights page.
Expand Down
2 changes: 1 addition & 1 deletion src/pages/UserHistoryDocumentList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ import Document from '@/api/resources/Document'
import DocumentThumbnail from '@/components/Document/DocumentThumbnail'
import DocumentActions from '@/components/Document/DocumentActions'
import ColumnFilterDropdown from '@/components/Document/ColumnFilterDropdown'
import ProjectLink from '@/components/Document/ProjectLink'
import ProjectLink from '@/components/Project/ProjectLink'
import utils from '@/mixins/utils'
import { humanTime } from '@/utils/humanTime'
import { humanDate } from '@/utils/humanDate'
Expand Down

0 comments on commit b65d715

Please sign in to comment.