diff --git a/package.json b/package.json index d751ed2..9668df3 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "react-window-dynamic-list": "^2.3.5", "sharp": "^0.28.1", "socket.io-client": "^4.1.2", - "threetwo-ui-typings": "^1.0.2", + "threetwo-ui-typings": "^1.0.3", "voca": "^1.4.0", "websocket": "^1.0.34", "ws": "^7.5.3", diff --git a/src/client/components/Search.tsx b/src/client/components/Search.tsx index 26424a3..66b9846 100644 --- a/src/client/components/Search.tsx +++ b/src/client/components/Search.tsx @@ -64,10 +64,7 @@ export const Search = ({}: ISearchProps): ReactElement => { extensions: ["cbz", "cbr"], }, hub_urls: [ - "nmdcs://piter.feardc.net:411", - "dchub://dc.fly-server.ru", - "dchub://dc.elitedc.ru", - "dchub://dc.kcahdep.online", + "adcs://novosibirsk.dc-dev.club:7111/?kp=SHA256/4XFHJFFBFEI2RS75FPRPPXPZMMKPXR764ABVVCC2QGJPQ34SDZGA", ], priority: 1, }) diff --git a/src/client/constants/search.service.ts b/src/client/constants/search.constants.ts similarity index 100% rename from src/client/constants/search.service.ts rename to src/client/constants/search.constants.ts diff --git a/src/client/services/api/SearchApi.ts b/src/client/services/api/SearchApi.ts index e80d36f..1085259 100644 --- a/src/client/services/api/SearchApi.ts +++ b/src/client/services/api/SearchApi.ts @@ -5,7 +5,7 @@ import { PriorityEnum, SearchResponse, } from "threetwo-ui-typings"; -import SearchConstants from "../../constants/search.service"; +import SearchConstants from "../../constants/search.constants"; interface SearchData { query: Pick & Partial>; @@ -22,11 +22,11 @@ export const search = async (data: SearchData) => { await sleep(10000); const instance: SearchInstance = await SocketService.post("search"); await SocketService.post( - `search/${instance.id}/hub_search`, + `${SearchConstants.INSTANCES_URL}/${instance.id}/hub_search`, data, ); 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); SocketService.disconnect(); return results; diff --git a/yarn.lock b/yarn.lock index 03f47a4..a10da25 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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" integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= -threetwo-ui-typings@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/threetwo-ui-typings/-/threetwo-ui-typings-1.0.2.tgz#63cf3739c340d8595cb36baa8669d4d836aa2290" - integrity sha512-sK5cb/fApFKseQNgcnGmAnPNxDDXT+dQ/Blei1N4q0mduO3kZfJTnlMYaXjO4FDXLP+jkiwsv0bf7PXm0DgF7g== +threetwo-ui-typings@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/threetwo-ui-typings/-/threetwo-ui-typings-1.0.3.tgz#05628dfe6b90cd0d4ebefdf5d15369c87b5a1347" + integrity sha512-whyTLLMsgDIR6jkrJrz58qiMG8mYXF5V8akBI0okCmsE2djsnVPaihvXcL8bZWH4/HktqC86iJs9F9oYaG/4Ig== dependencies: typescript "^4.3.2"