Skip to content

Commit 64282a6

Browse files
committed
2 parents 464121e + e10148f commit 64282a6

File tree

10 files changed

+41
-38
lines changed

10 files changed

+41
-38
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@tabler/icons-react": "^3.31.0",
5353
"@tanstack/react-query": "^5.75.4",
5454
"@tanstack/react-query-devtools": "^5.75.4",
55-
"axios": "^1.9.0",
55+
"axios": "^1.11.0",
5656
"buffer": "^6.0.3",
5757
"clsx": "^2.1.1",
5858
"color-hash": "^2.0.2",
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.root {
2-
flex: 1;
3-
display: flex;
4-
flex-direction: column;
5-
align-items: center;
6-
justify-content: center;
2+
flex: 1;
3+
display: flex;
4+
flex-direction: column;
5+
align-items: center;
6+
justify-content: center;
77
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.root {
2-
flex: 1;
3-
display: flex;
4-
flex-direction: column;
5-
align-items: center;
6-
justify-content: center;
2+
flex: 1;
3+
display: flex;
4+
flex-direction: column;
5+
align-items: center;
6+
justify-content: center;
77
}

src/pages/dashboard/utils/subscription-page-builder/model/validators.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ function validateAppConfig(app: any, path: string): string[] {
6363
}
6464

6565
if (typeof app.name !== 'string') errors.push(`${path}.name: должно быть строкой`)
66-
if (typeof app.isFeatured !== 'boolean') errors.push(`${path}.isFeatured: должно быть булевым значением`)
66+
if (typeof app.isFeatured !== 'boolean')
67+
errors.push(`${path}.isFeatured: должно быть булевым значением`)
6768
if (typeof app.urlScheme !== 'string') errors.push(`${path}.urlScheme: должно быть строкой`)
6869

6970
if (app.isNeedBase64Encoding !== undefined && typeof app.isNeedBase64Encoding !== 'boolean') {
@@ -160,9 +161,12 @@ function validateLocalizedText(text: any, path: string): string[] {
160161
if (typeof text.fa !== 'string') errors.push(`${path}.fa: должно быть строкой`)
161162
if (typeof text.ru !== 'string') errors.push(`${path}.ru: должно быть строкой`)
162163

163-
if (typeof text.en === 'string' && text.en === '') errors.push(`${path}.en: не может быть пустым`)
164-
if (typeof text.fa === 'string' && text.fa === '') errors.push(`${path}.fa: не может быть пустым`)
165-
if (typeof text.ru === 'string' && text.ru === '') errors.push(`${path}.ru: не может быть пустым`)
164+
if (typeof text.en === 'string' && text.en === '')
165+
errors.push(`${path}.en: не может быть пустым`)
166+
if (typeof text.fa === 'string' && text.fa === '')
167+
errors.push(`${path}.fa: не может быть пустым`)
168+
if (typeof text.ru === 'string' && text.ru === '')
169+
errors.push(`${path}.ru: не может быть пустым`)
166170

167171
return errors
168172
}

src/pages/errors/4xx-error/not-found.component.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export function NotFoundPageComponent() {
3030
<div className={classes.content}>
3131
<Title className={classes.title}>Здесь ничего нет</Title>
3232
<Text c="dimmed" className={classes.description} size="lg" ta="center">
33-
Страница, которую вы пытаетесь открыть, не существует. Возможно, вы ошиблись в адресе или страница была перемещена.
33+
Страница, которую вы пытаетесь открыть, не существует. Возможно, вы ошиблись
34+
в адресе или страница была перемещена.
3435
</Text>
3536
<Group justify="center">
3637
<Button onClick={handleGoBack} size="md">

src/shared/api/tsq-helpers/create-get-query.hook.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ export function createGetQueryHook<
8080
RouteParamsSchema extends z.ZodType,
8181
ErrorHandler extends (error: unknown) => void = (error: unknown) => void
8282
>({
83-
endpoint,
84-
responseSchema,
85-
requestQuerySchema,
86-
rQueryParams,
87-
queryParams,
88-
routeParams,
89-
errorHandler,
90-
getQueryKey
91-
}: CreateGetQueryHookArgs<ResponseSchema, RequestQuerySchema, RouteParamsSchema> & {
83+
endpoint,
84+
responseSchema,
85+
requestQuerySchema,
86+
rQueryParams,
87+
queryParams,
88+
routeParams,
89+
errorHandler,
90+
getQueryKey
91+
}: CreateGetQueryHookArgs<ResponseSchema, RequestQuerySchema, RouteParamsSchema> & {
9292
getQueryKey: (
9393
params: QueryParams<z.infer<RouteParamsSchema>, z.infer<RequestQuerySchema>>
9494
) => QueryKey
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.root {
2-
background-color: var(--mantine-color-body);
2+
background-color: var(--mantine-color-body);
33
}

src/shared/ui/build-info-modal/build-info-modal.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ interface BuildInfoModalProps {
3939
}
4040

4141
export function BuildInfoModal({
42-
opened,
43-
onClose,
44-
buildInfo,
45-
isNewVersionAvailable
46-
}: BuildInfoModalProps) {
42+
opened,
43+
onClose,
44+
buildInfo,
45+
isNewVersionAvailable
46+
}: BuildInfoModalProps) {
4747
const buildDate = new Date(buildInfo.buildTime).toLocaleString()
4848
const clipboard = useClipboard({ timeout: 1000 })
4949
const theme = useMantineTheme()
@@ -106,7 +106,9 @@ export function BuildInfoModal({
106106
color="teal"
107107
component="a"
108108
fullWidth={false}
109-
href={'https://github.com/localzet/aura-backend/releases/latest'}
109+
href={
110+
'https://github.com/localzet/aura-backend/releases/latest'
111+
}
110112
leftSection={<IconBrandGithub size={16} />}
111113
mt="sm"
112114
radius="md"

src/shared/ui/forms/hosts/base-host-form/interfaces/iprops.interface.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import {
2-
CreateHostCommand,
3-
GetInboundsCommand,
4-
UpdateHostCommand
5-
} from '@localzet/aura-contract'
1+
import { CreateHostCommand, GetInboundsCommand, UpdateHostCommand } from '@localzet/aura-contract'
62
import { UseFormReturnType } from '@mantine/form'
73

84
export interface IProps<T extends CreateHostCommand.Request | UpdateHostCommand.Request> {

0 commit comments

Comments
 (0)