mirror of
https://github.com/inventree/InvenTree.git
synced 2026-04-01 00:51:06 +00:00
[UI] Library fix (#11530)
* Ensure "lib" is built as part of CI * Fix useMonitorBackgroundTask hook
This commit is contained in:
2
.github/workflows/qc_checks.yaml
vendored
2
.github/workflows/qc_checks.yaml
vendored
@@ -759,7 +759,7 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: cd src/frontend && yarn install
|
run: cd src/frontend && yarn install
|
||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
run: cd src/frontend && yarn run compile && yarn run build
|
run: cd src/frontend && yarn run compile && yarn run lib && yarn run build
|
||||||
- name: Write version file - SHA
|
- name: Write version file - SHA
|
||||||
run: cd src/backend/InvenTree/web/static/web/.vite && echo "$GITHUB_SHA" > sha.txt
|
run: cd src/backend/InvenTree/web/static/web/.vite && echo "$GITHUB_SHA" > sha.txt
|
||||||
- name: Zip frontend
|
- name: Zip frontend
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
import { ApiEndpoints } from '@lib/enums/ApiEndpoints';
|
|
||||||
import { apiUrl } from '@lib/functions/Api';
|
|
||||||
import { useDocumentVisibility } from '@mantine/hooks';
|
import { useDocumentVisibility } from '@mantine/hooks';
|
||||||
import { notifications, showNotification } from '@mantine/notifications';
|
import { notifications, showNotification } from '@mantine/notifications';
|
||||||
import {
|
import {
|
||||||
@@ -10,7 +8,8 @@ import {
|
|||||||
import { type QueryClient, useQuery } from '@tanstack/react-query';
|
import { type QueryClient, useQuery } from '@tanstack/react-query';
|
||||||
import type { AxiosInstance } from 'axios';
|
import type { AxiosInstance } from 'axios';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { queryClient } from '../../src/App';
|
import { ApiEndpoints } from '../enums/ApiEndpoints';
|
||||||
|
import { apiUrl } from '../functions/Api';
|
||||||
|
|
||||||
export type MonitorBackgroundTaskProps = {
|
export type MonitorBackgroundTaskProps = {
|
||||||
api: AxiosInstance;
|
api: AxiosInstance;
|
||||||
@@ -114,6 +113,6 @@ export default function useMonitorBackgroundTask(
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
queryClient
|
props.queryClient
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user