Skip to content

Commit be8b82a

Browse files
add robots.txt and Sitemap.xml
1 parent 5d9050a commit be8b82a

File tree

13 files changed

+50
-827
lines changed

13 files changed

+50
-827
lines changed

.vscode/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
{
22
"cSpell.words": [
3+
"changefreq",
4+
"lastmod",
5+
"Minevskiy",
36
"officedocument",
47
"openxmlformats",
58
"Respresent",
6-
"wordprocessingml"
9+
"urlset",
10+
"wordprocessingml",
11+
"xcopy"
712
]
813
}

client/package-lock.json

Lines changed: 0 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"name": "client",
3+
"author": "Minevskiy Ivan",
34
"private": true,
4-
"version": "0.0.0",
5+
"version": "1.0.0",
56
"type": "module",
7+
"license": "MIT",
68
"scripts": {
79
"dev": "vite",
810
"build": "tsc -b && vite build",
@@ -24,7 +26,6 @@
2426
},
2527
"devDependencies": {
2628
"@eslint/js": "^9.25.0",
27-
"@types/js-cookie": "^3.0.6",
2829
"@types/react": "^19.1.2",
2930
"@types/react-dom": "^19.1.2",
3031
"@vitejs/plugin-react": "^4.4.1",
@@ -33,7 +34,6 @@
3334
"eslint-plugin-react-refresh": "^0.4.19",
3435
"globals": "^16.0.0",
3536
"i": "^0.3.7",
36-
"js-cookie": "^3.0.5",
3737
"npm": "^11.4.2",
3838
"typescript": "~5.8.3",
3939
"typescript-eslint": "^8.30.1",

client/public/Sitemap.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3+
<url>
4+
<loc>https://bullet-generator.ru/</loc>
5+
<lastmod>2025-07-10</lastmod>
6+
<changefreq>monthly</changefreq>
7+
<priority>1.0</priority>
8+
</url>
9+
<url>
10+
<loc>https://bullet-generator.ru/redact</loc>
11+
<lastmod>2025-07-10</lastmod>
12+
<changefreq>monthly</changefreq>
13+
<priority>0.8</priority>
14+
</url>
15+
</urlset>

client/public/robots.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
User-agent: *
2+
3+
Disallow: /various
4+
Disallow: '/result'
5+
Disallow: /not-found'
6+
7+
Sitemap: https://bullet-generator.ru/Sitemap.xml

client/src/App.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ const App:FC = () => {
1717
const l = location.pathname;
1818

1919
if(l === '/') document.title = "Главная страница"
20-
if(l === '/redact') document.title = "Конструктор бюллетеней"
21-
if(l === '/settings') document.title = "Настройки"
20+
if(l === '/redact') document.title = "Общая информация"
21+
if(l === '/various') document.title = "Информация для всех участников"
22+
if(l === '/result') document.title = 'Результат'
2223
},
2324
[location.pathname])
2425

client/src/components/Nav.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const NavComponent: FC = () => {
1313
useEffect(() => {
1414
if(location.pathname === Links.REDACT || location.pathname === Links.VARIOUS || location.pathname === Links.RESULT) {
1515
document.querySelector('#constructor_href')?.classList.add('active')
16+
} else {
17+
document.querySelector('#constructor_href')?.classList.remove('active')
1618
}
1719
}, [location.pathname])
1820

client/src/pages/NotFound.page.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
import { FC } from 'react';
1+
import { FC, useLayoutEffect } from 'react';
22
import { Link } from 'react-router-dom';
33
import { Links } from '@enums/Links.enum';
44

55
import "../sass/not-found.scss";
66

77
const NotFoundPage:FC = () => {
8+
9+
useLayoutEffect(() => {
10+
document.title = 'Страница не найдена'
11+
}, [])
12+
813
return (
914
<div id='not-found'>
1015
<h1 id='code_error'>404</h1>

client/src/pages/Redactor.page.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const RedactorPage: FC = () => {
2525
const dispatch = useAppDispatch();
2626
const navigation = useNavigate();
2727

28-
const ls = localStorage.getItem('isShareWithCommon') || 'false'
28+
const ls = localStorage.getItem('isShareWithCommon') || 'true'
2929

3030
const methods = useForm<GeneralInfo>({ mode: 'onBlur', defaultValues: {
3131
isShareWithCommon: ls
@@ -59,8 +59,6 @@ const RedactorPage: FC = () => {
5959

6060
save(data)
6161

62-
console.log(data.isShareWithCommon)
63-
6462
const date_izn: string = `${data.day} ${data.mouth} ${data.year} года`
6563
const cadastral_number_izn: string = `${data.cadastral_number_1}:${data.cadastral_number_2}:${data.cadastral_number_3}:${data.cadastral_number_y}`
6664
const area_izn: string = `${data.area} кв. м`
@@ -112,7 +110,6 @@ const RedactorPage: FC = () => {
112110
<button className='general_butt' onClick={ResetValues} disabled={isFormEmpty} >Сбросить все поля</button>
113111
<button disabled={!isValid} className='next general_butt' type="submit">Далее</button>
114112
</div>
115-
116113
</form>
117114
</FormProvider>
118115
</>

client/tsconfig.app.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)