Skip to content

Commit

Permalink
fix: add missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Nov 20, 2024
1 parent cecd8e9 commit 5f90179
Show file tree
Hide file tree
Showing 29 changed files with 59 additions and 9 deletions.
2 changes: 2 additions & 0 deletions src/components/Button/ButtonTogglePin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import { computed } from 'vue'
import { useI18n } from 'vue-i18n'
import ButtonIcon from '@/components/Button/ButtonIcon'
const { t } = useI18n()
const active = defineModel('active', {
Expand Down
2 changes: 2 additions & 0 deletions src/components/Dismissable/DismissableToastBody.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import { computed, useSlots } from 'vue'
import { PhosphorIcon } from '@icij/murmur-next'
import ButtonIcon from '@/components/Button/ButtonIcon'
const VARIANTS = {
default: 'action',
error: 'danger'
Expand Down
2 changes: 2 additions & 0 deletions src/components/Display/DisplayDatetimeFromNow.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script setup>
import DisplayDatetime from './DisplayDatetime'
import { FORMAT_FROM_NOW } from '@/utils/humanDate'
const props = defineProps({
Expand Down
1 change: 1 addition & 0 deletions src/components/Display/DisplayDatetimeLong.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script setup>
import DisplayDatetime from '@/components/Display/DisplayDatetime'
import { FORMAT_LONG } from '@/utils/humanDate'
const props = defineProps({
Expand Down
1 change: 1 addition & 0 deletions src/components/Display/DisplayDatetimeMonth.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script setup>
import DisplayDatetime from '@/components/Display/DisplayDatetime'
import { FORMAT_MONTH } from '@/utils/humanDate'
const props = defineProps({
Expand Down
1 change: 1 addition & 0 deletions src/components/Display/DisplayDatetimeShort.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script setup>
import DisplayDatetime from '@/components/Display/DisplayDatetime'
import { FORMAT_SHORT } from '@/utils/humanDate'
const props = defineProps({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
<script setup>
import { computed } from 'vue'
import DocumentActionsGroupEntryDownload from './DocumentActionsGroupEntryDownload'
import DocumentActionsGroupEntryExpand from './DocumentActionsGroupEntryExpand'
import DocumentActionsGroupEntryShare from './DocumentActionsGroupEntryShare'
import DocumentActionsGroupEntryStar from './DocumentActionsGroupEntryStar'
import { PLACEMENT, placementValidator } from '@/enums/placements'
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script setup>
import ButtonIcon from '@/components/Button/ButtonIcon'
defineProps({
icon: {
type: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import { computed } from 'vue'
import { useI18n } from 'vue-i18n'
import ButtonIcon from '@/components/Button/ButtonIcon'
const active = defineModel('active', { type: Boolean, default: false })
const { t } = useI18n()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script setup>
import { computed } from 'vue'
import ButtonRecommendation from '@/components/Button/ButtonRecommendation'
import ButtonToggleRecommendation from '@/components/Button/ButtonToggleRecommendation'
import DocumentUserActionsCard from '@/components/Document/DocumentUser/DocumentUserActions/DocumentUserActionsCard'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { computed } from 'vue'
import { matchesProperty, negate, property } from 'lodash'
import ButtonTag from '@/components/Button/ButtonTag'
import DocumentUserActionsCard from '@/components/Document/DocumentUser/DocumentUserActions/DocumentUserActionsCard'
import DocumentUserTagsAction from '@/components/Document/DocumentUser/DocumentUserTags/DocumentUserTagsAction'
Expand Down
2 changes: 2 additions & 0 deletions src/components/Filter/FilterModal/FilterModalTitle.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<script setup>
import { PhosphorIcon } from '@icij/murmur-next'
import FiltersPanelSectionFilterTitleSort from '@/components/FiltersPanel/FiltersPanelSectionFilterTitleSort'
const sort = defineModel('sort', { type: Object })
defineProps({
Expand Down
3 changes: 3 additions & 0 deletions src/components/FiltersPanel/FiltersPanel.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<script setup>
import { computed } from 'vue'
import FiltersPanelToggler from '@/components/FiltersPanel/FiltersPanelToggler'
import FiltersPanelSearch from '@/components/FiltersPanel/FiltersPanelSearch'
const { sticky } = defineProps({
noToggler: {
type: Boolean,
Expand Down
1 change: 1 addition & 0 deletions src/components/Form/FormControl/FormControlPath.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { computed, ref, toRef, watch } from 'vue'
import AppModal from '@/components/AppModal/AppModal'
import ButtonIcon from '@/components/Button/ButtonIcon'
import PathTree from '@/components/PathTree/PathTree'
import PathTreeBreadcrumb from '@/components/PathTree/PathTreeBreadcrumb/PathTreeBreadcrumb'
import { useCore } from '@/composables/core'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<script setup>
import FormControlRangeSlider from './FormControlRangeSlider'
import FormControlRangeTicks from './FormControlRangeTicks'
defineProps({
modelValue: {
type: Number,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import { range } from 'd3'
import { computed } from 'vue'
import FormControlRangeTicksEntry from './FormControlRangeTicksEntry'
const props = defineProps({
modelValue: {
type: Number
Expand Down
2 changes: 2 additions & 0 deletions src/components/PageSettings/PageSettingsHide.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<script setup>
import { noop } from 'lodash'
import ButtonIcon from '@/components/Button/ButtonIcon'
defineProps({
hide: {
type: Function,
Expand Down
1 change: 1 addition & 0 deletions src/components/PathTree/PathTreeView/PathTreeViewEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { computed, inject, ref } from 'vue'
import PathTreeViewEntryName from './PathTreeViewEntryName'
import PathTreeViewEntryStats from './PathTreeViewEntryStats'
const collapse = defineModel('collapse', { type: Boolean })
const selected = defineModel('selected', { type: Boolean })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<script setup>
import { computed } from 'vue'
import ProjectThumbnail from '@/components/Project/ProjectThumbnail'
const props = defineProps({
projects: {
type: Array
Expand Down
1 change: 1 addition & 0 deletions src/components/Project/ProjectForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { ref, watch, computed } from 'vue'
import { every, cloneDeep, kebabCase } from 'lodash'
import { useI18n } from 'vue-i18n'
import FormCreation from '@/components/Form/FormCreation'
import FormControlPath from '@/components/Form/FormControl/FormControlPath'
import FormFieldset from '@/components/Form/FormFieldset/FormFieldset'
import { slugger, isUrl } from '@/utils/strings'
Expand Down
2 changes: 2 additions & 0 deletions src/components/Project/ProjectRow/ProjectRow.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<script setup>
import { computed } from 'vue'
import ProjectRowActions from './ProjectRowActions'
import ProjectRowLabel from './ProjectRowLabel'
import ProjectRowLinks from './ProjectRowLinks'
import ProjectRowDescription from './ProjectRowDescription'
import ProjectRowDocumentsCount from './ProjectRowDocumentsCount'
import ProjectRowUpdateDate from './ProjectRowUpdateDate'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Search/SearchBar/SearchBarInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import ButtonIcon from '@/components/Button/ButtonIcon'
*/
export default {
name: 'SearchBarInput',
components: [FormControlSearch, ButtonIcon],
components: { FormControlSearch, ButtonIcon },
props: {
/**
* Placeholder in the search bar.
Expand Down
2 changes: 2 additions & 0 deletions src/components/Task/TaskActions.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script setup>
import ButtonIcon from '@/components/Button/ButtonIcon'
defineProps({
hasPendingTasks: {
type: Boolean
Expand Down
5 changes: 4 additions & 1 deletion src/components/Task/TaskDocuments/TaskDocumentsForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ import { every, castArray } from 'lodash'
import { useI18n } from 'vue-i18n'
import uniqueId from 'lodash/uniqueId'
import FormControlPath from '@/components/Form/FormControl/FormControlPath'
import { useCore } from '@/composables/core'
import ExtractingLanguageFormControl from '@/components/Task/TaskDocuments/ExtractingLanguageFormControl'
import ExtractingFormOcrControl from '@/components/Task/TaskDocuments/ExtractingFormOcrControl'
import FormCreation from '@/components/Form/FormCreation'
import FormControlPath from '@/components/Form/FormControl/FormControlPath'
import FormFieldsetI18n from '@/components/Form/FormFieldset/FormFieldsetI18n'
import SearchBarInputDropdownForProjects from '@/components/Search/SearchBar/SearchBarInputDropdownForProjects'
const props = defineProps({
disabled: {
Expand Down
3 changes: 2 additions & 1 deletion src/components/Task/TaskEntities/TaskEntitiesForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import { filter, orderBy, values } from 'lodash'
import { useI18n } from 'vue-i18n'
import includes from 'lodash/includes'
import { useCore } from '@/composables/core'
import FormCreation from '@/components/Form/FormCreation'
import FormFieldsetI18n from '@/components/Form/FormFieldset/FormFieldsetI18n'
import SearchBarInputDropdownForProjects from '@/components/Search/SearchBar/SearchBarInputDropdownForProjects'
import { useCore } from '@/composables/core'
import { useWait } from '@/composables/wait'
const props = defineProps({
Expand Down
7 changes: 3 additions & 4 deletions src/components/Task/TaskList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,10 @@ import { sortBy } from 'lodash'
import { computed } from 'vue'
import { useStore } from 'vuex'
import { getHumanTaskName } from '@/enums/taskNames'
import DisplayDatetimeLong from '@/components/Display/DisplayDatetimeLong'
import DisplayProgress from '@/components/Display/DisplayProgress'
import DisplayStatus from '@/components/Display/DisplayStatus'
import PageTable from '@/components/PageTable/PageTable'
import PageTableTr from '@/components/PageTable/PageTableTr'
import PageTableTh from '@/components/PageTable/PageTableTh'
import PageTableTdActions from '@/components/PageTable/PageTableTdActions'
defineOptions({ name: 'TaskList' })
defineProps({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default {
},
setup: () => ({ args }),
template: `
<path-view v-bind="args" @update:query="args.query = $event">
<path-tree-view v-bind="args" @update:query="args.query = $event">
<path-tree-view-entry name="Flowera" :documents="9104" :directories="3" :size="2110000000">
<template #name>
<div class="text-truncate">
Expand All @@ -52,7 +52,7 @@ export default {
<path-tree-view-entry name="2018" collapse />
</path-tree-view-entry>
</path-tree-view-entry>
</path-view>
</path-tree-view>
`
})
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script setup>
import { computed } from 'vue'
import ProjectDetails from '@/components/Project/ProjectDetails'
import { useCore } from '@/composables/core'
const props = defineProps({
Expand Down
5 changes: 5 additions & 0 deletions src/views/Task/Task.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import { toRef } from 'vue'
import { useTaskHeader } from './task-header'
import { useTaskPolling } from './task-polling'
import PageContainer from '@/components/PageContainer/PageContainer'
import PageHeader from '@/components/PageHeader/PageHeader'
import TaskActions from '@/components/Task/TaskActions'
import DismissableAlert from '@/components/Dismissable/DismissableAlert'
const props = defineProps({
taskFilter: {
type: Array,
Expand All @@ -21,14 +23,17 @@ const props = defineProps({
default: false
}
})
const taskNames = toRef(props, 'taskFilter')
const {
tasks: pollingTasks,
hasPendingTasks,
hasDoneTasks,
stopPendingTasks,
deleteDoneTasks
} = useTaskPolling(taskNames)
const { toAddRoute, searchQuery, page, perPage, searchPlaceholder, displayedTasks, totalRows, sortBy } = useTaskHeader(
props.pageName,
props.showAdd,
Expand Down

0 comments on commit 5f90179

Please sign in to comment.