@redneckz/wildless-cms-uni-blocks 0.14.19 → 0.14.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/bundle.umd.js +2 -2
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Depository/useDepository.js +1 -1
- package/dist/components/Depository/useDepository.js.map +1 -1
- package/lib/components/Depository/useDepository.js +1 -1
- package/lib/components/Depository/useDepository.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +1 -1
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Depository/useDepository.js +1 -1
- package/mobile/dist/components/Depository/useDepository.js.map +1 -1
- package/mobile/lib/components/Depository/useDepository.js +1 -1
- package/mobile/lib/components/Depository/useDepository.js.map +1 -1
- package/mobile/src/components/Depository/useDepository.ts +1 -1
- package/package.json +1 -1
- package/src/components/Depository/useDepository.ts +1 -1
|
@@ -4,7 +4,7 @@ const useAsyncData_1 = require("@redneckz/uni-jsx/lib/hooks/useAsyncData");
|
|
|
4
4
|
const fetchJSON_1 = require("../../utils/fetchJSON");
|
|
5
5
|
const formatDate_1 = require("../../utils/formatDate");
|
|
6
6
|
const useDepository = ({ size, page, query, startDate, endDate }) => {
|
|
7
|
-
const { data } = (0, useAsyncData_1.useAsyncData)(`/api/v1/depository?page=${page}&size=${size}
|
|
7
|
+
const { data } = (0, useAsyncData_1.useAsyncData)(`/api/v1/depository?page=${page}&size=${size}&query=${query}×tampStart=${startDate ? (0, formatDate_1.formatDate)(startDate, true) : ''}×tampEnd=${endDate ? (0, formatDate_1.formatDate)(endDate, true) : ''}`, fetchJSON_1.fetchJSONUnsafe);
|
|
8
8
|
return { items: data?.content, totalPages: data?.totalPages };
|
|
9
9
|
};
|
|
10
10
|
exports.useDepository = useDepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDepository.js","sourceRoot":"","sources":["../../../src/components/Depository/useDepository.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AACxE,qDAAwD;AACxD,uDAAoD;AAoB7C,MAAM,aAAa,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAuB,EAAE,EAAE;IAC9F,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAC3B,2BAA2B,IAAI,SAAS,IAAI,
|
|
1
|
+
{"version":3,"file":"useDepository.js","sourceRoot":"","sources":["../../../src/components/Depository/useDepository.ts"],"names":[],"mappings":";;AAAA,2EAAwE;AACxE,qDAAwD;AACxD,uDAAoD;AAoB7C,MAAM,aAAa,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAuB,EAAE,EAAE;IAC9F,MAAM,EAAE,IAAI,EAAE,GAAG,IAAA,2BAAY,EAC3B,2BAA2B,IAAI,SAAS,IAAI,UAAU,KAAK,mBACzD,SAAS,CAAC,CAAC,CAAC,IAAA,uBAAU,EAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAC5C,iBAAiB,OAAO,CAAC,CAAC,CAAC,IAAA,uBAAU,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,EAC3D,2BAAe,CAChB,CAAC;IAEF,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;AAChE,CAAC,CAAC;AATW,QAAA,aAAa,iBASxB"}
|
|
@@ -2,7 +2,7 @@ import { useAsyncData } from '@redneckz/uni-jsx/lib/hooks/useAsyncData';
|
|
|
2
2
|
import { fetchJSONUnsafe } from '../../utils/fetchJSON.js';
|
|
3
3
|
import { formatDate } from '../../utils/formatDate.js';
|
|
4
4
|
export const useDepository = ({ size, page, query, startDate, endDate }) => {
|
|
5
|
-
const { data } = useAsyncData(`/api/v1/depository?page=${page}&size=${size}
|
|
5
|
+
const { data } = useAsyncData(`/api/v1/depository?page=${page}&size=${size}&query=${query}×tampStart=${startDate ? formatDate(startDate, true) : ''}×tampEnd=${endDate ? formatDate(endDate, true) : ''}`, fetchJSONUnsafe);
|
|
6
6
|
return { items: data?.content, totalPages: data?.totalPages };
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=useDepository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDepository.js","sourceRoot":"","sources":["../../../src/components/Depository/useDepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAoBpD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAuB,EAAE,EAAE;IAC9F,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,CAC3B,2BAA2B,IAAI,SAAS,IAAI,
|
|
1
|
+
{"version":3,"file":"useDepository.js","sourceRoot":"","sources":["../../../src/components/Depository/useDepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAoBpD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAuB,EAAE,EAAE;IAC9F,MAAM,EAAE,IAAI,EAAE,GAAG,YAAY,CAC3B,2BAA2B,IAAI,SAAS,IAAI,UAAU,KAAK,mBACzD,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAC5C,iBAAiB,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,EAC3D,eAAe,CAChB,CAAC;IAEF,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;AAChE,CAAC,CAAC"}
|
|
@@ -22,7 +22,7 @@ interface UseDepositoryParams extends DepositoryFiltrationState {
|
|
|
22
22
|
|
|
23
23
|
export const useDepository = ({ size, page, query, startDate, endDate }: UseDepositoryParams) => {
|
|
24
24
|
const { data } = useAsyncData<DepositoryData>(
|
|
25
|
-
`/api/v1/depository?page=${page}&size=${size}
|
|
25
|
+
`/api/v1/depository?page=${page}&size=${size}&query=${query}×tampStart=${
|
|
26
26
|
startDate ? formatDate(startDate, true) : ''
|
|
27
27
|
}×tampEnd=${endDate ? formatDate(endDate, true) : ''}`,
|
|
28
28
|
fetchJSONUnsafe,
|
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@ interface UseDepositoryParams extends DepositoryFiltrationState {
|
|
|
22
22
|
|
|
23
23
|
export const useDepository = ({ size, page, query, startDate, endDate }: UseDepositoryParams) => {
|
|
24
24
|
const { data } = useAsyncData<DepositoryData>(
|
|
25
|
-
`/api/v1/depository?page=${page}&size=${size}
|
|
25
|
+
`/api/v1/depository?page=${page}&size=${size}&query=${query}×tampStart=${
|
|
26
26
|
startDate ? formatDate(startDate, true) : ''
|
|
27
27
|
}×tampEnd=${endDate ? formatDate(endDate, true) : ''}`,
|
|
28
28
|
fetchJSONUnsafe,
|