mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-12 20:26:10 +01:00
Compare commits
3
Commits
d8f9a2633d
...
v1.29.6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eed9d23646 | ||
|
|
2101dba7c6 | ||
|
|
1b398a5f66 |
No files matched your search
@@ -804,7 +804,7 @@
|
|||||||
},
|
},
|
||||||
"guess": {
|
"guess": {
|
||||||
"name": "Угадать",
|
"name": "Угадать",
|
||||||
"button": "What could it be?",
|
"button": "Что это за танк?",
|
||||||
"description": "Мини-игра «Силуэт»",
|
"description": "Мини-игра «Силуэт»",
|
||||||
"seo_description": "Играйте угадывая силуэт танка из World of Tanks Blitz",
|
"seo_description": "Играйте угадывая силуэт танка из World of Tanks Blitz",
|
||||||
"search": {
|
"search": {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { argv } from "process";
|
|||||||
const projectDir = "../..";
|
const projectDir = "../..";
|
||||||
const srcRoot = `${projectDir}/packages/bot`;
|
const srcRoot = `${projectDir}/packages/bot`;
|
||||||
const distRoot = `${projectDir}/dist/bot`;
|
const distRoot = `${projectDir}/dist/bot`;
|
||||||
const modulesRoot = `${projectDir}/packages/bot/node_modules`;
|
const modulesRoot = "../../node_modules";
|
||||||
const workers = await readdir(`${srcRoot}/src/workers`);
|
const workers = await readdir(`${srcRoot}/src/workers`);
|
||||||
const dev = argv.includes("--dev");
|
const dev = argv.includes("--dev");
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import {
|
|||||||
TankSearch,
|
TankSearch,
|
||||||
type TankSearchProps,
|
type TankSearchProps,
|
||||||
} from "../../../components/TankSearch";
|
} from "../../../components/TankSearch";
|
||||||
|
import { awaitableModelDefinitions } from "../../../core/awaitables/modelDefinitions";
|
||||||
import { curateMixer } from "../../../core/blitzkit/curateMixer";
|
import { curateMixer } from "../../../core/blitzkit/curateMixer";
|
||||||
import {
|
import {
|
||||||
LocaleProvider,
|
LocaleProvider,
|
||||||
@@ -24,8 +25,13 @@ import {
|
|||||||
type LocaleAcceptorProps,
|
type LocaleAcceptorProps,
|
||||||
} from "../../../hooks/useLocale";
|
} from "../../../hooks/useLocale";
|
||||||
import { Mixer } from "../../../stores/mixer";
|
import { Mixer } from "../../../stores/mixer";
|
||||||
|
import { Tankopedia } from "../../../stores/tankopedia";
|
||||||
import type { MaybeSkeletonComponentProps } from "../../../types/maybeSkeletonComponentProps";
|
import type { MaybeSkeletonComponentProps } from "../../../types/maybeSkeletonComponentProps";
|
||||||
|
|
||||||
|
const modelDefinition = await awaitableModelDefinitions.then(
|
||||||
|
({ models }) => models[1]
|
||||||
|
);
|
||||||
|
|
||||||
export function Page({
|
export function Page({
|
||||||
locale,
|
locale,
|
||||||
skeleton,
|
skeleton,
|
||||||
@@ -33,6 +39,7 @@ export function Page({
|
|||||||
const initial = useRef(curateMixer());
|
const initial = useRef(curateMixer());
|
||||||
|
|
||||||
Mixer.useInitialization(initial.current);
|
Mixer.useInitialization(initial.current);
|
||||||
|
Tankopedia.useInitialization(modelDefinition);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PageWrapper color="gray" p="0" maxWidth="unset">
|
<PageWrapper color="gray" p="0" maxWidth="unset">
|
||||||
|
|||||||
Reference in new issue
Block a user