From b656f9302e3c728301f4d6055cca91b1505f58ae Mon Sep 17 00:00:00 2001 From: vasya Date: Sun, 22 Mar 2026 18:57:39 +0300 Subject: [PATCH 1/5] =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B2=D0=B0=D0=B9=D0=B4?= =?UTF-8?q?=D0=B5=D1=80=20=D0=B4=D0=BB=D1=8F=20=D0=B2=D1=81=D0=B5=D1=85=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD=D0=B8=D0=B9=20?= =?UTF-8?q?=D0=BC=D0=BE=D0=B4=D1=83=D0=BB=D1=8C=D0=BD=D0=BE=D0=B9=20=D1=81?= =?UTF-8?q?=D1=82=D1=80=D1=83=D0=BA=D1=82=D1=83=D1=80=D1=8B.=20=D0=92=20?= =?UTF-8?q?=D0=BD=D0=B5=D0=B3=D0=BE=20=D1=83=D0=B6=D0=B5=20=D0=B2=D0=BA?= =?UTF-8?q?=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D1=8B=20=D0=BE=D0=B1=D1=89=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=B4=D0=BB=D1=8F=20=D0=B2=D1=81=D0=B5=D1=85=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD=D0=B8=D0=B9=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD=D1=82=D1=8B:=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B5=D0=BB=D0=BE=D0=B0=D0=B4=D0=B5=D1=80,=20?= =?UTF-8?q?=D0=B2=D1=81=D0=BF=D0=BB=D1=8B=D0=B2=D0=B0=D1=8E=D1=89=D0=B5=20?= =?UTF-8?q?=D0=BE=D0=BA=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/providers/AppProvider.tsx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 resources/js/providers/AppProvider.tsx diff --git a/resources/js/providers/AppProvider.tsx b/resources/js/providers/AppProvider.tsx new file mode 100644 index 0000000..5b7aae7 --- /dev/null +++ b/resources/js/providers/AppProvider.tsx @@ -0,0 +1,21 @@ +import React, { ReactNode } from "react"; +import { UIKitThemeProvider } from '@SharePoint/rencredit_uikit'; +import { PopupProvider } from "../contexts/PopupContext.tsx"; +import { PreloaderProvider } from "../contexts/PreloaderContext.tsx"; + +interface AppProviderProps{ + children: ReactNode; +} + +export function AppProvider({children}: AppProviderProps){ + + return ( + + + + {children} + + + + ) +} -- 2.52.0 From 423f274c730c076dfe77388a3bb66c11f8ddce8f Mon Sep 17 00:00:00 2001 From: vasya Date: Sat, 11 Apr 2026 22:21:32 +0300 Subject: [PATCH 2/5] =?UTF-8?q?=D0=B2=D1=8B=D0=B2=D0=B5=D0=B4=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BB=D0=BE=D0=B3=D0=B8=D0=BA=D0=B8=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=B4=D0=B0=D1=87=D0=B8=20csrf=20=D1=82?= =?UTF-8?q?=D0=BE=D0=BA=D0=B5=D0=BD=D0=B0=20=D1=81=20=D1=84=D1=80=D0=BE?= =?UTF-8?q?=D0=BD=D1=82=D0=B0=20=D0=B2=20=D0=BE=D1=82=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D1=8C=D0=BD=D1=8B=D0=B9=20=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82?= =?UTF-8?q?.=20=D0=AF=20=D0=BD=D0=B5=20=D0=BF=D0=BE=D0=BC=D0=BD=D1=8E=20?= =?UTF-8?q?=D1=82=D0=BE=D1=87=D0=BD=D0=BE=20=D0=B8=D1=81=D0=BF=D0=BE=D0=BB?= =?UTF-8?q?=D1=8C=D0=B7=D1=83=D0=B5=D1=82=D1=81=D1=8F=20=D0=BB=D0=B8=20?= =?UTF-8?q?=D0=BE=D0=BD=20=D0=B3=D0=B4=D0=B5-=D1=82=D0=BE=20=D0=BD=D0=B0?= =?UTF-8?q?=20=D1=82=D0=B5=D0=BA=D1=83=D1=89=D0=B5=D0=BC=20=D1=8D=D1=82?= =?UTF-8?q?=D0=B0=D0=BF=D0=B5,=20=D0=BD=D0=B0=D0=B4=D0=BE=20=D1=81=D0=BC?= =?UTF-8?q?=D0=BE=D1=82=D1=80=D0=B5=D1=82=D1=8C.=20=D0=92=D0=BE=D0=B7?= =?UTF-8?q?=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE,=20=D0=BD=D0=B0=20=D1=81=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=BE=D0=BD=D0=B5=20blade=20=D1=88=D0=B0=D0=B1?= =?UTF-8?q?=D0=BB=D0=BE=D0=BD=D0=B0=20=D0=B8=D0=BB=D0=B8=20=D0=B0=20=D1=81?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D0=BE=D0=BD=D0=B5=20tsx=20=D1=81=D0=BA=D1=80?= =?UTF-8?q?=D0=B8=D0=BF=D1=82=D0=BE=D0=B2=20=D0=B2=20=D0=BC=D0=B5=D1=81?= =?UTF-8?q?=D1=82=D0=B5=20=D0=B3=D0=B4=D0=B5=20=D1=84=D0=BE=D1=80=D0=BC?= =?UTF-8?q?=D1=8B=20=D0=BE=D1=82=D1=80=D0=B8=D1=81=D0=BE=D0=B2=D1=8B=D0=B2?= =?UTF-8?q?=D0=B0=D1=8E=D1=82=D1=81=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/services/getCsrfService.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 resources/js/services/getCsrfService.ts diff --git a/resources/js/services/getCsrfService.ts b/resources/js/services/getCsrfService.ts new file mode 100644 index 0000000..12e160d --- /dev/null +++ b/resources/js/services/getCsrfService.ts @@ -0,0 +1,20 @@ +/** + * Сервис для полуения csrt токена для размещения в формах + * @date 24.07.2025 + * @author dgavrilov + */ + +export const getCsrfToken = ():string => { + const METATAG:HTMLElement|null = document.querySelector('meta[name="csrf-token"]'); + + if (!METATAG) { + return ''; + } + + const CSRFTOKEN:string|null = METATAG.getAttribute('content'); + if (!CSRFTOKEN) { + return ''; + } + + return CSRFTOKEN; +} -- 2.52.0 From 22ec3a338035f33fd6f5cd015293877f1b1de3e7 Mon Sep 17 00:00:00 2001 From: vasya Date: Sat, 11 Apr 2026 22:25:02 +0300 Subject: [PATCH 3/5] =?UTF-8?q?=D0=BE=D0=B1=D1=89=D0=B8=D0=B9=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=B2=D1=81=D0=B5=D1=85=20=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=86=20react=20=D0=BA=D0=BE=D0=BC=D0=BF?= =?UTF-8?q?=D0=BE=D0=BD=D0=B5=D0=BD=D1=82,=20=D0=BD=D0=BE=20=D0=BA=D0=B0?= =?UTF-8?q?=D0=BA=20=D0=B1=D1=83=D0=B4=D1=82=D0=BE=20=D0=B2=20=D0=BD=D0=B5?= =?UTF-8?q?=D0=BC=20=D1=80=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B0=20=D1=82=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE=20=D0=BB?= =?UTF-8?q?=D0=BE=D0=B3=D0=B8=D0=BA=D0=B0=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE?= =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D1=82=D0=B0=20=D1=85=D0=B5=D0=B4=D0=B5=D1=80?= =?UTF-8?q?=D0=B0=3F=20=D0=A5=D0=BE=D1=82=D1=8F,=20=D1=8D=D1=82=D0=BE?= =?UTF-8?q?=D1=82=20=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82=20=D1=83=D0=BF?= =?UTF-8?q?=D0=BE=D0=BC=D0=B8=D0=BD=D0=B0=D0=B5=D1=82=D1=81=D1=8F=20=D0=B2?= =?UTF-8?q?=20=D1=83=D0=BD=D0=B8=D0=B2=D0=B5=D1=80=D1=81=D0=B0=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D0=BE=D0=BC=20blade=20=D1=88=D0=B0=D0=B1=D0=BB=D0=BE?= =?UTF-8?q?=D0=BD=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/main_script.tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 resources/js/main_script.tsx diff --git a/resources/js/main_script.tsx b/resources/js/main_script.tsx new file mode 100644 index 0000000..5c654b6 --- /dev/null +++ b/resources/js/main_script.tsx @@ -0,0 +1,15 @@ +import React from "react"; +import { createRoot } from 'react-dom/client'; +import { UIKitThemeProvider } from '@SharePoint/rencredit_uikit'; +import Header from "./components/header/Header.tsx"; + +const headerBlock:HTMLElement = document.getElementById('page__header-block')!; +const headerRoot = createRoot(headerBlock); + +console.log('da') + +headerRoot.render( + +
+ +); -- 2.52.0 From 90ec913abc992571765362c7995664711aced757 Mon Sep 17 00:00:00 2001 From: vasya Date: Sat, 11 Apr 2026 22:27:25 +0300 Subject: [PATCH 4/5] =?UTF-8?q?css=20=D1=81=20=D0=BE=D0=B1=D1=89=D0=B8?= =?UTF-8?q?=D0=BC=D0=B8=20=D0=B4=D0=BB=D1=8F=20=D0=B2=D1=81=D0=B5=D1=85=20?= =?UTF-8?q?=D1=81=D1=82=D0=B8=D0=BB=D0=B5=D0=B9=20=D0=BF=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D0=BD=D1=8B=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/css/variables.css | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 resources/css/variables.css diff --git a/resources/css/variables.css b/resources/css/variables.css new file mode 100644 index 0000000..28a4675 --- /dev/null +++ b/resources/css/variables.css @@ -0,0 +1,7 @@ +:root{ + --color_graphite_main: #323e48; + --color_emerald_main: #77cb10; + --color_emerald_light: #95fa77; + --color_ruby_main: #ff0078; + --color_purple_main: #7864eb; +} \ No newline at end of file -- 2.52.0 From 43101cf65cf193403fde1f6854c9a9a5912a24bf Mon Sep 17 00:00:00 2001 From: vasya Date: Sat, 11 Apr 2026 22:28:04 +0300 Subject: [PATCH 5/5] =?UTF-8?q?=D0=BE=D0=B1=D1=89=D0=B8=D0=B5=20css=20?= =?UTF-8?q?=D1=81=D1=82=D0=B8=D0=BB=D0=B8=20(=D0=B2=D0=BD=D0=B5=20=D0=BC?= =?UTF-8?q?=D0=BE=D0=B4=D1=83=D0=BB=D0=B5=D0=B9).=20=D0=9A=D0=B0=D0=BA=20?= =?UTF-8?q?=D0=B1=D1=83=D0=B4=D1=82=D0=BE,=20=D0=BD=D0=B0=D0=B4=D0=BE=20?= =?UTF-8?q?=D0=BE=D0=B1=D1=8A=D0=B5=D0=B4=D0=B8=D0=BD=D0=B8=D1=82=D1=8C=20?= =?UTF-8?q?=D0=B2=20=D0=BE=D0=B1=D1=89=D0=B8=D0=B9=20=D1=84=D0=B0=D0=B9?= =?UTF-8?q?=D0=BB,=20=D0=BC=D0=BE=D0=B9=20=D0=BA=D0=BE=D1=81=D1=8F=D0=BA,?= =?UTF-8?q?=20=D1=87=D1=82=D0=BE=20=D1=8F=20=D0=B8=D1=85=20=D0=B8=D0=B7?= =?UTF-8?q?=D0=BD=D0=B0=D1=87=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE=20=D0=B7=D0=B0?= =?UTF-8?q?=D1=87=D0=B5=D0=BC-=D1=82=D0=BE=20=D1=80=D0=B0=D0=B7=D0=B4?= =?UTF-8?q?=D0=B5=D0=BB=D0=B8=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/css/general.css | 43 +++++++++++++++++++++++++++++++++++ resources/css/main_styles.css | 27 ++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 resources/css/general.css create mode 100644 resources/css/main_styles.css diff --git a/resources/css/general.css b/resources/css/general.css new file mode 100644 index 0000000..0dee457 --- /dev/null +++ b/resources/css/general.css @@ -0,0 +1,43 @@ +/* ГАВРИЛОВ. ВЫЯСНИТЬ, ГДЕ ИСПОЛЬЗУЮТСЯ */ + +#root{ + padding: 10px; +} + +.form-container{ + + &.form-container--small-size{ + width: 30%; + } + &.form-container--medium-size{ + width: 50%; + } + + &.form-container--left-pos{ + margin-left: 10px; + } + &.form-container--mid-pos{ + margin: 25px auto; + } +} + +.form__field-block{ + margin: 15px 0; +} + +.btn-block{ + margin: 15px 0; + padding: 15px 0; + display: flex; + justify-content: flex-start; + gap: 10px; +} + + +/* OVERWRITE */ +.renButton{ + + &.renButton--tertiary{ + background: #dfdfdf; + } +} diff --git a/resources/css/main_styles.css b/resources/css/main_styles.css new file mode 100644 index 0000000..a2aa702 --- /dev/null +++ b/resources/css/main_styles.css @@ -0,0 +1,27 @@ +#page__content-block{ + padding: 10px; +} + +#page__header-block{ + position: sticky; + top: 0; + z-index: 99; + box-shadow: 0px 2px 9px 3px #8f8d8d; + + & .header-block__header-container{ + display: flex; + justify-content: space-between; + padding: 10px; + background: var(--color_graphite_main); + + & .header-container__block{ + display: flex; + gap: 10px; + align-items: center; + + & .header-container__block__app-name{ + color: white; + } + } + } +} \ No newline at end of file -- 2.52.0