Skip to content

Commit

Permalink
move components/CmkError.ts to lib/error.ts
Browse files Browse the repository at this point in the history
CMK-19522

Change-Id: I438be5224aaa9f8aeb7e2635aa04c878ea4d0262
  • Loading branch information
oKenneth committed Dec 16, 2024
1 parent cb71341 commit 855164e
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ conditions defined in the file COPYING, which is part of this source code packag
<script setup lang="ts">
import { defineComponent } from 'vue'
import { useErrorBoundary } from '@/components/useErrorBoundary'
import { CmkError } from '@/components/CmkError'
import { CmkError } from '@/lib/error.ts'
const props = defineProps<{ screenshotMode: boolean }>()

class DemoError<T> extends CmkError<T> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ conditions defined in the file COPYING, which is part of this source code packag
import { ref, computed, type Ref } from 'vue'
import AlertBox from '../AlertBox.vue'
import CmkButton from '../CmkButton.vue'
import { formatError } from '../CmkError'
import { formatError } from '@/lib/error.ts'

const details = ref<boolean>(false)

Expand Down
2 changes: 1 addition & 1 deletion packages/cmk-frontend-vue/src/lib/cmkFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* conditions defined in the file COPYING, which is part of this source code package.
*/

import { CmkError } from '@/components/CmkError'
import { CmkError } from '@/lib/error.ts'
import type { MaybeRestApiError, MaybeRestApiCrashReport } from '@/lib/types'

type FetchParams = Parameters<typeof fetch>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ conditions defined in the file COPYING, which is part of this source code packag
<script setup lang="ts">
import { computed, ref, toValue, type Ref, watch, provide, readonly } from 'vue'
import QuickSetup from './components/quick-setup/QuickSetup.vue'
import { formatError } from '@/components/CmkError'
import { formatError } from '@/lib/error.ts'
import {
saveQuickSetup,
getOverview,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
import axios from 'axios'
import type { AxiosError } from 'axios'
import { CmkError } from '@/components/CmkError'
import { CmkError } from '@/lib/error.ts'
import type { ValidationError, AllStagesValidationError } from './types'

import type { MaybeRestApiError, MaybeRestApiCrashReport } from '@/lib/types'
Expand Down

0 comments on commit 855164e

Please sign in to comment.