🔧 Updated ThreeTwo types
This commit is contained in:
@@ -56,7 +56,7 @@
|
|||||||
"react-window-dynamic-list": "^2.3.5",
|
"react-window-dynamic-list": "^2.3.5",
|
||||||
"sharp": "^0.28.1",
|
"sharp": "^0.28.1",
|
||||||
"socket.io-client": "^4.1.2",
|
"socket.io-client": "^4.1.2",
|
||||||
"threetwo-ui-typings": "^1.0.2",
|
"threetwo-ui-typings": "^1.0.3",
|
||||||
"voca": "^1.4.0",
|
"voca": "^1.4.0",
|
||||||
"websocket": "^1.0.34",
|
"websocket": "^1.0.34",
|
||||||
"ws": "^7.5.3",
|
"ws": "^7.5.3",
|
||||||
|
|||||||
@@ -64,10 +64,7 @@ export const Search = ({}: ISearchProps): ReactElement => {
|
|||||||
extensions: ["cbz", "cbr"],
|
extensions: ["cbz", "cbr"],
|
||||||
},
|
},
|
||||||
hub_urls: [
|
hub_urls: [
|
||||||
"nmdcs://piter.feardc.net:411",
|
"adcs://novosibirsk.dc-dev.club:7111/?kp=SHA256/4XFHJFFBFEI2RS75FPRPPXPZMMKPXR764ABVVCC2QGJPQ34SDZGA",
|
||||||
"dchub://dc.fly-server.ru",
|
|
||||||
"dchub://dc.elitedc.ru",
|
|
||||||
"dchub://dc.kcahdep.online",
|
|
||||||
],
|
],
|
||||||
priority: 1,
|
priority: 1,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
PriorityEnum,
|
PriorityEnum,
|
||||||
SearchResponse,
|
SearchResponse,
|
||||||
} from "threetwo-ui-typings";
|
} from "threetwo-ui-typings";
|
||||||
import SearchConstants from "../../constants/search.service";
|
import SearchConstants from "../../constants/search.constants";
|
||||||
|
|
||||||
interface SearchData {
|
interface SearchData {
|
||||||
query: Pick<SearchQuery, "pattern"> & Partial<Omit<SearchQuery, "pattern">>;
|
query: Pick<SearchQuery, "pattern"> & Partial<Omit<SearchQuery, "pattern">>;
|
||||||
@@ -22,11 +22,11 @@ export const search = async (data: SearchData) => {
|
|||||||
await sleep(10000);
|
await sleep(10000);
|
||||||
const instance: SearchInstance = await SocketService.post("search");
|
const instance: SearchInstance = await SocketService.post("search");
|
||||||
await SocketService.post<SearchResponse>(
|
await SocketService.post<SearchResponse>(
|
||||||
`search/${instance.id}/hub_search`,
|
`${SearchConstants.INSTANCES_URL}/${instance.id}/hub_search`,
|
||||||
data,
|
data,
|
||||||
);
|
);
|
||||||
await sleep(10000);
|
await sleep(10000);
|
||||||
const results = await SocketService.get(`search/${instance.id}/results/0/5`);
|
const results = await SocketService.get(`search/${instance.id}/results/0/20`);
|
||||||
console.log("results", results);
|
console.log("results", results);
|
||||||
SocketService.disconnect();
|
SocketService.disconnect();
|
||||||
return results;
|
return results;
|
||||||
|
|||||||
@@ -13162,10 +13162,10 @@ text-table@^0.2.0, text-table@~0.2.0:
|
|||||||
resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
|
resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
|
||||||
integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=
|
integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=
|
||||||
|
|
||||||
threetwo-ui-typings@^1.0.2:
|
threetwo-ui-typings@^1.0.3:
|
||||||
version "1.0.2"
|
version "1.0.3"
|
||||||
resolved "https://registry.yarnpkg.com/threetwo-ui-typings/-/threetwo-ui-typings-1.0.2.tgz#63cf3739c340d8595cb36baa8669d4d836aa2290"
|
resolved "https://registry.yarnpkg.com/threetwo-ui-typings/-/threetwo-ui-typings-1.0.3.tgz#05628dfe6b90cd0d4ebefdf5d15369c87b5a1347"
|
||||||
integrity sha512-sK5cb/fApFKseQNgcnGmAnPNxDDXT+dQ/Blei1N4q0mduO3kZfJTnlMYaXjO4FDXLP+jkiwsv0bf7PXm0DgF7g==
|
integrity sha512-whyTLLMsgDIR6jkrJrz58qiMG8mYXF5V8akBI0okCmsE2djsnVPaihvXcL8bZWH4/HktqC86iJs9F9oYaG/4Ig==
|
||||||
dependencies:
|
dependencies:
|
||||||
typescript "^4.3.2"
|
typescript "^4.3.2"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user