Compare commits

..

No commits in common. "master" and "master" have entirely different histories.

1408 changed files with 1144 additions and 19706 deletions

Binary file not shown.

1
.gitignore vendored
View File

@ -2,4 +2,3 @@ node_modules/
.env
.idea
coverage/
server/log/

View File

@ -1,6 +1,6 @@
FROM node:20
RUN mkdir -p /usr/src/app/server/log/
RUN mkdir -p /usr/src/app/server/
WORKDIR /usr/src/app/
COPY ./server /usr/src/app/server

View File

@ -3,4 +3,4 @@
docker stop ms-mongo
docker volume remove ms_volume
docker volume create ms_volume
docker run --rm -v ms_volume:/data/db --name ms-mongo -p 27017:27017 -d mongo:8.0.3
docker run --rm -v ms_volume:/data/db --name ms-mongo -p 27017:27017 -d mongo:4.4.13

View File

@ -1,23 +1,19 @@
version: "3"
volumes:
ms_volume8:
ms_logs:
ms_volume:
services:
mongoDb:
image: mongo:8.0.3
image: mongo:4.4.13
volumes:
- ms_volume8:/data/db
- ms_volume:/data/db
restart: always
# ports:
# - 27017:27017
multy-stubs:
# build: .
image: bro.js/ms/bh:$TAG
build: .
restart: always
volumes:
- ms_logs:/usr/src/app/server/log
ports:
- 8044:8044
environment:

2310
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "multi-stub",
"version": "1.2.1",
"version": "1.0.1",
"description": "",
"main": "index.js",
"scripts": {
@ -23,38 +23,33 @@
"license": "MIT",
"homepage": "https://bitbucket.org/online-mentor/multi-stub#readme",
"dependencies": {
"ai": "^4.1.13",
"axios": "^1.7.7",
"bcrypt": "^5.1.0",
"body-parser": "^1.19.0",
"cookie-parser": "^1.4.5",
"cors": "^2.8.5",
"cross-env": "^7.0.3",
"crypto-js": "^4.2.0",
"dotenv": "^16.4.7",
"express": "5.0.1",
"express-jwt": "^8.5.1",
"express-session": "^1.18.1",
"jsdom": "^25.0.1",
"jsonwebtoken": "^9.0.2",
"mongodb": "^6.12.0",
"mongoose": "^8.9.2",
"mongoose-sequence": "^6.0.1",
"morgan": "^1.10.0",
"multer": "^1.4.5-lts.1",
"crypto-js": "^4.1.1",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"express-jwt": "^8.4.1",
"express-session": "^1.17.3",
"jsdom": "^22.1.0",
"jsonwebtoken": "^8.5.1",
"mongodb": "^3.6.8",
"mongoose": "^8.7.1",
"pbkdf2-password": "^1.2.1",
"rotating-file-stream": "^3.2.5",
"socket.io": "^4.8.1",
"uuid": "^11.0.3"
"socket.io": "^4.7.1",
"uuid": "^9.0.0"
},
"devDependencies": {
"@eslint/js": "^9.17.0",
"@types/node": "22.10.2",
"eslint": "^9.17.0",
"globals": "^15.14.0",
"@eslint/js": "^9.12.0",
"@types/node": "18.17.1",
"eslint": "^9.12.0",
"globals": "^15.11.0",
"jest": "^29.7.0",
"mockingoose": "^2.16.2",
"nodemon": "3.1.9",
"nodemon": "3.0.1",
"supertest": "^7.0.0"
}
}

2
server/data/const.js Normal file
View File

@ -0,0 +1,2 @@
exports.TODO_LIST_MODEL_NAME = 'TODO_LIST'
exports.TODO_ITEM_MODEL_NAME = 'TODO_ITEM'

View File

@ -1,8 +1,11 @@
const { Schema, model } = require('mongoose')
const { TODO_ITEM_MODEL_NAME } = require('../../const')
const schema = new Schema({
name: {type: String, required: true},
phone: {type: String, required: true,unique: true,},
title: String,
done: { type: Boolean, default: false },
closed: Date,
created: {
type: Date, default: () => new Date().toISOString(),
},
@ -11,13 +14,10 @@ const schema = new Schema({
schema.set('toJSON', {
virtuals: true,
versionKey: false,
transform(_doc, ret) {
delete ret._id;
}
})
schema.virtual('id').get(function () {
return this._id.toHexString()
})
exports.MasterModel = model('dry-wash-master', schema)
exports.ItemModel = model(TODO_ITEM_MODEL_NAME, schema)

View File

@ -1,22 +1,18 @@
const { Schema, model } = require('mongoose')
const { TODO_LIST_MODEL_NAME, TODO_ITEM_MODEL_NAME, TODO_AUTH_USER_MODEL_NAME } = require('../../const')
const { TODO_LIST_MODEL_NAME, TODO_ITEM_MODEL_NAME } = require('../../const')
const schema = new Schema({
title: String,
created: {
type: Date, default: () => new Date().toISOString(),
},
createdBy: { type: Schema.Types.ObjectId, ref: TODO_AUTH_USER_MODEL_NAME },
items: [{ type: Schema.Types.ObjectId, ref: TODO_ITEM_MODEL_NAME }],
})
schema.set('toJSON', {
virtuals: true,
versionKey: false,
transform: function (doc, ret) {
delete ret._id
}
})
schema.virtual('id').get(function () {

View File

@ -6,7 +6,6 @@ module.exports = (err, req, res, next) => {
success: false, error: 'Токен авторизации не найден',
})
}
res.status(400).send({
success: false, error: err.message || 'Что-то пошло не так',
})

View File

@ -1,98 +1,50 @@
const express = require("express")
const bodyParser = require("body-parser")
const cookieParser = require("cookie-parser")
const session = require("express-session")
const morgan = require("morgan")
const path = require("path")
const rfs = require("rotating-file-stream")
const express = require('express')
const bodyParser = require('body-parser')
const cookieParser = require('cookie-parser')
const session = require('express-session')
const app = express()
require("dotenv").config()
const cors = require('cors')
require('dotenv').config()
exports.app = app
const accessLogStream = rfs.createStream("access.log", {
size: "10M",
interval: "1d",
compress: "gzip",
path: path.join(__dirname, "log"),
})
const errorLogStream = rfs.createStream("error.log", {
size: "10M",
interval: "1d",
compress: "gzip",
path: path.join(__dirname, "log"),
})
const config = require("../.serverrc")
const { setIo } = require("./io")
const config = require('../.serverrc')
const { setIo } = require('./io')
app.use(cookieParser())
app.use(
morgan("combined", {
stream: accessLogStream,
skip: function (req, res) {
return res.statusCode >= 400
},
})
)
// log all requests to access.log
app.use(
morgan("combined", {
stream: errorLogStream,
skip: function (req, res) {
console.log('statusCode', res.statusCode, res.statusCode <= 400)
return res.statusCode < 400
},
})
)
app.options('*', cors())
app.use(cors())
const server = setIo(app)
const sess = {
secret: "super-secret-key",
resave: true,
saveUninitialized: true,
cookie: {},
secret: 'super-secret-key',
resave: true,
saveUninitialized: true,
cookie: {
},
}
if (app.get("env") === "production") {
app.set("trust proxy", 1)
sess.cookie.secure = true
if (app.get('env') === 'production') {
app.set('trust proxy', 1)
sess.cookie.secure = true
}
app.use(session(sess))
app.use(
bodyParser.json({
limit: "50mb",
})
)
app.use(
bodyParser.urlencoded({
limit: "50mb",
app.use(bodyParser.json({
limit: '50mb',
}))
app.use(bodyParser.urlencoded({
limit: '50mb',
extended: true,
})
)
app.use(require("./root"))
}))
app.use(require('./root'))
/**
* Добавляйте сюда свои routers.
*/
app.use("/kfu-m-24-1", require("./routers/kfu-m-24-1"))
app.use("/epja-2024-1", require("./routers/epja-2024-1"))
app.use("/v1/todo", require("./routers/todo"))
app.use("/dogsitters-finder", require("./routers/dogsitters-finder"))
app.use("/kazan-explore", require("./routers/kazan-explore"))
app.use("/edateam", require("./routers/edateam-legacy"))
app.use("/dry-wash", require("./routers/dry-wash"))
app.use("/freetracker", require("./routers/freetracker"))
app.use("/dhs-testing", require("./routers/dhs-testing"))
app.use("/gamehub", require("./routers/gamehub"))
app.use("/esc", require("./routers/esc"))
app.use('/connectme', require('./routers/connectme'))
app.use('/epja-2024-1', require('./routers/epja-2024-1'))
app.use('/todo', require('./routers/todo/routes'))
app.use(require("./error"))
app.use(require('./error'))
server.listen(config.port, () =>
console.log(`Listening on http://localhost:${config.port}`)
)
server.listen(config.port, () => console.log(`Listening on http://localhost:${config.port}`))

View File

View File

@ -10,7 +10,6 @@ const folderPath = path.resolve(__dirname, './routers')
const folders = fs.readdirSync(folderPath)
router.get('/', async (req, res) => {
// throw new Error('check error message')
res.send(`
<h1>multy stub is working v${pkg.version}</h1>
<ul>
@ -20,7 +19,8 @@ router.get('/', async (req, res) => {
<h2>models</h2>
<ul>${
(await Promise.all(
(await mongoose.modelNames()).map(async (name) => {
(
await mongoose.modelNames()).map(async (name) => {
const count = await mongoose.model(name).countDocuments()
return `<li>${name} - ${count}</li>`
}

View File

@ -1,8 +0,0 @@
const { Router } = require('express')
const router = Router()
router.get('/cities', (request, response) => {
response.send(require('./json/cities.json'))
})
module.exports = router

View File

@ -1,85 +0,0 @@
{
"data": [
{
"id": 1,
"title": "Моска"
},
{
"id": 2,
"title": "Санкт-петербург"
},
{
"id": 3,
"title": "Новосибирска"
},
{
"id": 4,
"title": "Екатеринбург"
},
{
"id": 5,
"title": "Казань"
},
{
"id": 6,
"title": "Нижний новгород"
},
{
"id": 7,
"title": "Челябинск"
},
{
"id": 8,
"title": "Самара"
},
{
"id": 9,
"title": "Омск"
},
{
"id": 10,
"title": "Ростов-на-дону"
},
{
"id": 11,
"title": "Уфа"
},
{
"id": 12,
"title": "Красноярск"
},
{
"id": 13,
"title": "Пермь"
},
{
"id": 14,
"title": "Воронеж"
},
{
"id": 15,
"title": "Волгоград"
},
{
"id": 16,
"title": "Краснодар"
},
{
"id": 17,
"title": "Тюмень"
},
{
"id": 18,
"title": "Ижевск"
},
{
"id": 19,
"title": "Барнаул"
},
{
"id": 20,
"title": "Владивосток"
}
],
"count": 20
}

View File

@ -1,2 +0,0 @@
exports.DSF_AUTH_USER_MODEL_NAME = 'DSF_AUTH_USER'
exports.DSF_INTERACTION_MODEL_NAME = 'DSF_INTERACTION'

View File

@ -1,228 +0,0 @@
const router = require("express").Router();
router.get("/users", (request, response) => {
response.send(require("./json/users/users.json"));
});
router.post("/auth", (request, response) => {
const { phoneNumber, password } = request.body;
console.log(phoneNumber, password);
if (phoneNumber === "89999999999" || phoneNumber === "89559999999") {
response.send(require("./json/auth/success.json"));
} else {
response.status(401).send(require("./json/auth/error.json"));
}
});
router.post("/auth/2fa", (request, response) => {
const { phoneNumber, code } = request.body;
if (code === "0000" && phoneNumber === "89999999999") {
response.send(require("./json/2fa/dogsitter.success.json"));
} else if (code === "0000" && phoneNumber === "89559999999") {
response.send(require("./json/2fa/owner.success.json"));
} else {
response.status(401).send(require("./json/2fa/error.json"));
}
});
router.post("/register", (request, response) => {
const { firstName, secondName, phoneNumber, password, role } = request.body;
console.log(phoneNumber, password, role);
if (phoneNumber === "89999999999" || phoneNumber === "89559999999") {
response.status(401).send(require("./json/register/error.json"));
} else if (role === "dogsitter") {
response.send(require("./json/register/dogsitter.success.json"));
} else {
response.send(require("./json/register/owner.success.json"));
}
});
router.get("/auth/session", (request, response) => {
const authHeader = request.headers.authorization;
if (!authHeader) {
return response.status(401).json({ error: "Authorization header missing" });
}
// Берём сам токен из заголовка
const token = authHeader.split(" ")[1];
if (!token) {
return response.status(401).json({ error: "Bearer token missing" });
}
const jwt = require("jsonwebtoken");
const secretKey = "secret";
try {
const decoded = jwt.verify(token, secretKey);
if (decoded.role === "dogsitter") {
response.send(require("./json/role/dogsitter.success.json"));
} else {
response.send(require("./json/role/owner.success.json"));
}
} catch (e) {
console.log("token e:", e);
return response.status(403).json({ error: "Invalid token" });
}
});
// Проверка взаимодействия между пользователем и догситтером
router.get("/interactions/check", (req, res) => {
const { owner_id, dogsitter_id } = req.query;
const usersFilePath = path.resolve(__dirname, "./json/users/users.json");
delete require.cache[require.resolve(usersFilePath)];
const usersFile = require(usersFilePath);
const interactions = usersFile.interactions || [];
const exists = interactions.some(
(interaction) =>
interaction.owner_id === Number(owner_id) &&
interaction.dogsitter_id === Number(dogsitter_id)
);
res.json({ exists });
});
// Добавление нового взаимодействия
router.post("/interactions", (req, res) => {
const { owner_id, dogsitter_id, interaction_type } = req.body;
if (!owner_id || !dogsitter_id || !interaction_type) {
return res.status(400).json({ error: "Missing required fields" });
}
const usersFilePath = path.resolve(__dirname, "./json/users/users.json");
delete require.cache[require.resolve(usersFilePath)];
const usersFile = require(usersFilePath);
if (!usersFile.interactions) {
usersFile.interactions = [];
}
// Проверяем, существует ли уже такое взаимодействие
const exists = usersFile.interactions.some(
(interaction) =>
interaction.owner_id === Number(owner_id) &&
interaction.dogsitter_id === Number(dogsitter_id)
);
if (!exists) {
usersFile.interactions.push({
owner_id: Number(owner_id),
dogsitter_id: Number(dogsitter_id),
interaction_type,
});
fs.writeFileSync(
usersFilePath,
JSON.stringify(usersFile, null, 2),
"utf8"
);
console.log(
`Добавлено взаимодействие: owner_id=${owner_id}, dogsitter_id=${dogsitter_id}`
);
}
res.json({ success: true });
});
router.get("/dogsitter-viewing", (req, res) => {
const { id } = req.query;
console.log(`Получен запрос для dogsitter с ID: ${id}`);
const usersFile = require("./json/users/users.json");
const users = usersFile.data; // Извлекаем массив из свойства "data"
const user = users.find((user) => user.id === Number(id));
if (user) {
res.json(user); // Возвращаем найденного пользователя
} else {
res.status(404).json({ error: "User not found" }); // Если пользователь не найден
}
});
const fs = require('fs');
const path = require('path');
router.post('/dogsitter-viewing/rating/:id', (req, res) => {
const { id } = req.params;
const { rating } = req.body;
if (!rating || rating < 1 || rating > 5) {
return res.status(400).json({ error: 'Некорректная оценка' });
}
const usersFilePath = path.resolve(__dirname, "./json/users/users.json");
delete require.cache[require.resolve(usersFilePath)];
const usersFile = require(usersFilePath);
const users = usersFile.data;
const userIndex = users.findIndex(user => user.id === Number(id));
if (userIndex === -1) {
return res.status(404).json({ error: 'Догситтер не найден' });
}
if (!users[userIndex].ratings) {
users[userIndex].ratings = [];
}
users[userIndex].ratings.push(rating);
if (users[userIndex].ratings.length > 100) {
users[userIndex].ratings.shift();
}
const total = users[userIndex].ratings.reduce((sum, r) => sum + r, 0);
users[userIndex].rating = parseFloat((total / users[userIndex].ratings.length).toFixed(2));
fs.writeFileSync(usersFilePath, JSON.stringify({ data: users }, null, 2), 'utf8');
console.log(`Обновлен рейтинг догситтера ${id}: ${users[userIndex].rating}`);
res.json({ rating: users[userIndex].rating, ratings: users[userIndex].ratings });
});
router.patch('/users/:id', (req, res) => {
const { id } = req.params;
const updateData = req.body;
console.log('Полученные данные для обновления:', updateData);
const usersFilePath = path.resolve(__dirname, "./json/users/users.json");
delete require.cache[require.resolve(usersFilePath)];
const usersFile = require(usersFilePath);
const users = usersFile.data;
const userIndex = users.findIndex((user) => user.id === Number(id));
if (userIndex === -1) {
return res.status(404).json({ error: 'User not found' });
}
users[userIndex] = { ...users[userIndex], ...updateData };
fs.writeFileSync(
usersFilePath,
JSON.stringify({ data: users }, null, 2),
'utf8'
);
console.log('Обновлённые данные пользователя:', users[userIndex]);
res.json(users[userIndex]);
});
module.exports = router

View File

@ -1,3 +0,0 @@
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwicm9sZSI6ImRvZ3NpdHRlciIsImlhdCI6MTUxNjIzOTAyMn0.7q66wTNyLZp3TGFYF_JdU-yhlWViJulTxP_PCQzO4OI"
}

View File

@ -1,5 +0,0 @@
{
"status": "error",
"message": "Invalid code",
"statusCode": 401
}

View File

@ -1,3 +0,0 @@
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Mywicm9sZSI6Im93bmVyIiwiaWF0IjoxNTE2MjM5MDIyfQ.sI9839YXveTpEWhdpr5QbCYllt6hHYO7NsrQDcrXZIQ"
}

View File

@ -1,5 +0,0 @@
{
"message": "Неверный логин или пароль",
"error": "Unauthorized",
"statusCode": 401
}

View File

@ -1,5 +0,0 @@
{
"status": "success",
"message": "Первый фактор аутентификации пройден",
"statusCode": 200
}

View File

@ -1,3 +0,0 @@
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NSwicm9sZSI6ImRvZ3NpdHRlciIsImlhdCI6MTUxNjIzOTAyMn0.T9V3-f3rD1deA5a2J-tYNw0cACEpzKHbhMPkc7gh8c0"
}

View File

@ -1,5 +0,0 @@
{
"message": "Такой пользователь уже был зарегистрирован",
"error": "Unauthorized",
"statusCode": 401
}

View File

@ -1,3 +0,0 @@
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Niwicm9sZSI6Im93bmVyIiwiaWF0IjoxNTE2MjM5MDIyfQ.qgOhk9tNcaMRbarRWISTgvGx5Eq_X8fcA5lhdVs2tQI"
}

View File

@ -1,4 +0,0 @@
{
"id": 1,
"role": "dogsitter"
}

View File

@ -1,5 +0,0 @@
{
"message": "Неверный jwt token",
"error": "Forbidden",
"statusCode": 403
}

View File

@ -1,4 +0,0 @@
{
"id": 3,
"role": "owner"
}

View File

@ -1,69 +0,0 @@
{
"data": [
{
"id": 1,
"phone_number": "89999999999",
"first_name": "Вася",
"second_name": "Пупкин",
"role": "dogsitter",
"location": "Россия, республика Татарстан, Казань, Пушкина, 12",
"price": "1500",
"about_me": "Я люблю собак!",
"rating": 5,
"ratings": [
5,
5
],
"tg": "jullllllie"
},
{
"id": 2,
"phone_number": 89272844541,
"first_name": "Ваня",
"second_name": "Пуськин",
"role": "dogsitter",
"location": "Россия, республика Татарстан, Казань, улица Абсалямова, 19",
"price": 2000,
"about_me": "Я не люблю собак. И вообще я котоман.",
"rating": 4,
"ratings": [
4,
4
],
"tg": "vanya006"
},
{
"id": 3,
"phone_number": 89559999999,
"first_name": "Гадий",
"second_name": "Петрович",
"role": "owner"
},
{
"id": 4,
"phone_number": 89872844591,
"first_name": "Галкин",
"second_name": "Максим",
"role": "dogsitter",
"location": "Россия, республика Татарстан, Казань, проспект Ямашева, 83",
"price": 1750,
"about_me": "Миллион алых роз",
"rating": 4.5,
"ratings": [
4,
5
],
"tg": "maks100500"
}
],
"interactions": [
{
"owner_id": 3,
"dogsitter_id": 4
},
{
"owner_id": 1,
"dogsitter_id": 2
}
]
}

View File

@ -1,24 +0,0 @@
const { Schema, model } = require("mongoose");
const { DSF_AUTH_USER_MODEL_NAME, DSF_INTERACTION_MODEL_NAME } = require("../../const");
const interactionSchema = new Schema({
owner_id: {
type: Schema.Types.ObjectId,
ref: DSF_AUTH_USER_MODEL_NAME,
required: true
},
dogsitter_id: {
type: Schema.Types.ObjectId,
ref: DSF_AUTH_USER_MODEL_NAME,
required: true
},
timestamp: {
type: Date,
default: Date.now
}
});
interactionSchema.index({ owner_id: 1, dogsitter_id: 1 });
module.exports.Interaction = model(DSF_INTERACTION_MODEL_NAME, interactionSchema);

View File

@ -1,83 +0,0 @@
const { Schema, model } = require("mongoose");
const { DSF_AUTH_USER_MODEL_NAME } = require("../../const");
const userSchema = new Schema({
phone_number: {
type: String,
required: true,
unique: true,
match: /^\+?\d{10,15}$/
},
first_name: {
type: String,
required: true,
trim: true
},
second_name: {
type: String,
required: true,
trim: true
},
role: {
type: String,
enum: ["dogsitter", "owner"],
required: true
},
location: {
type: String,
required: function() {
return this.role === "dogsitter";
}
},
price: {
type: Number,
min: 0,
required: function() {
return this.role === "dogsitter";
}
},
about_me: {
type: String,
maxlength: 500
},
rating: {
type: Number,
min: 0,
max: 5,
default: 0
},
ratings: {
type: [Number],
default: [],
validate: {
validator: function(arr) {
return arr.every(v => v >= 0 && v <= 5);
},
message: "Рейтинг должен быть в диапазоне от 0 до 5!"
}
},
tg: {
type: String,
match: /^[a-zA-Z0-9_]{5,32}$/
},
created: {
type: Date,
default: Date.now
}
});
userSchema.virtual("id").get(function() {
return this._id.toHexString();
});
userSchema.set("toJSON", {
virtuals: true,
versionKey: false,
transform: function(doc, ret) {
delete ret._id;
delete ret.__v;
}
});
module.exports.User = model(DSF_AUTH_USER_MODEL_NAME, userSchema);

View File

@ -1,149 +0,0 @@
const { Router } = require('express')
const { expressjwt } = require('express-jwt')
const { getAnswer } = require('../../utils/common')
const { User, Interaction } = require('./model')
const { TOKEN_KEY } = require('./const')
const { requiredValidate } = require('./utils')
const router = Router()
// Получение списка пользователей
router.get('/users', async (req, res) => {
const users = await User.find()
.select('-__v -ratings -phone_number')
.lean()
console.log('get users successfull')
res.send(getAnswer(null, users))
})
// Получение конкретного пользователя
router.get('/dogsitter-viewing', async (req, res) => {
const { userId } = req.params
const user = await User.findById(userId)
.select('-__v -ratings')
.lean()
if (!user) {
return res.status(404).send(getAnswer(new Error('Пользователь не найден')))
}
res.send(getAnswer(null, user))
})
router.use(expressjwt({ secret: TOKEN_KEY, algorithms: ['HS256'] }))
// Добавление оценки пользователю
router.post('/dogsitter-viewing/rating', requiredValidate('value'), async (req, res) => {
const { userId } = req.params
const { value } = req.body
const authUserId = req.auth.id
try {
const user = await User.findById(userId)
if (!user) throw new Error('Пользователь не найден')
if (user.role !== 'dogsitter') throw new Error('Нельзя оценивать этого пользователя')
if (user.id === authUserId) throw new Error('Нельзя оценивать самого себя')
user.ratings.push(Number(value))
user.rating = user.ratings.reduce((a, b) => a + b, 0) / user.ratings.length
const updatedUser = await user.save()
res.send(getAnswer(null, {
id: updatedUser.id,
rating: updatedUser.rating.toFixed(1),
totalRatings: updatedUser.ratings.length
}))
} catch (error) {
res.status(400).send(getAnswer(error))
}
})
// Обновление информации пользователя
router.patch('/users', async (req, res) => {
const { userId } = req.params
const updates = req.body
try {
const user = await User.findByIdAndUpdate(userId, updates, { new: true })
.select('-__v -ratings')
if (!user) throw new Error('Пользователь не найден')
res.send(getAnswer(null, user))
} catch (error) {
res.status(400).send(getAnswer(error))
}
})
// Создание объекта взаимодействия
router.post('/interactions',
expressjwt({ secret: TOKEN_KEY, algorithms: ['HS256'] }),
requiredValidate('dogsitter_id'),
async (req, res) => {
try {
const { dogsitter_id } = req.body
const owner_id = req.auth.id // ID из JWT токена
// Проверка существования пользователей
const [owner, dogsitter] = await Promise.all([
User.findById(owner_id),
User.findById(dogsitter_id)
])
if (!owner || owner.role !== 'owner') {
throw new Error('Владелец не найден или имеет неверную роль')
}
if (!dogsitter || dogsitter.role !== 'dogsitter') {
throw new Error('Догситтер не найден или имеет неверную роль')
}
// Создание взаимодействия
const interaction = await Interaction.create({
owner_id,
dogsitter_id
})
res.send(getAnswer(null, {
id: interaction.id,
timestamp: interaction.timestamp
}))
} catch (error) {
res.status(400).send(getAnswer(error))
}
}
)
router.get('/interactions/check', async (req, res) => {
const { owner_id, dogsitter_id } = req.query;
if (!owner_id || !dogsitter_id) {
return res.status(400).send(getAnswer('Missing owner_id or dogsitter_id'));
}
try {
// Поиск взаимодействий по owner_id и dogsitter_id
const interactions = await Interaction.find({ owner_id, dogsitter_id })
.select('-__v') // Выбираем только нужные поля
.lean();
if (interactions.length === 0) {
return res.status(404).send(getAnswer('No interactions found'));
}
res.send(getAnswer(null, interactions));
} catch (error) {
console.error('Error checking interactions:', error);
res.status(500).send(getAnswer('Internal Server Error'));
}
});
module.exports = router

View File

@ -1,111 +0,0 @@
const router = require('express').Router()
const {MasterModel} = require('./model/master')
const mongoose = require("mongoose")
const {OrderModel} = require("./model/order")
router.get("/masters", async (req, res, next) => {
try {
const masters = await MasterModel.find({});
const orders = await OrderModel.find({});
const mastersWithOrders = masters.map((master) => {
const masterOrders = orders.filter((order) => {
return (
order?.master && order.master.toString() === master._id.toString()
);
});
const schedule = masterOrders.map((order) => ({
id: order._id,
startWashTime: order.startWashTime,
endWashTime: order.endWashTime,
}));
return {
id: master._id,
name: master.name,
schedule: schedule,
phone: master.phone,
};
});
res.status(200).send({ success: true, body: mastersWithOrders });
} catch (error) {
next(error);
}
});
router.delete('/masters/:id', async (req, res,next) => {
const { id } = req.params;
if (!mongoose.Types.ObjectId.isValid(id)){
throw new Error('ID is required')
}
try {
const master = await MasterModel.findByIdAndDelete(id, {
new: true,
});
if (!master) {
throw new Error('master not found')
}
res.status(200).send({success: true, body: master})
} catch (error) {
next(error)
}
})
router.post('/masters', async (req, res,next) => {
const {name, phone} = req.body
if (!name || !phone ){
throw new Error('Enter name and phone')
}
try {
const master = await MasterModel.create({name, phone})
res.status(200).send({success: true, body: master})
} catch (error) {
next(error)
}
})
router.patch('/masters/:id', async (req, res, next) => {
const { id } = req.params;
if (!mongoose.Types.ObjectId.isValid(id)) {
throw new Error('ID is required')
}
const { name, phone } = req.body;
if (!name && !phone) {
throw new Error('Enter name and phone')
}
try {
const updateData = {};
if (name) updateData.name = name;
if (phone) updateData.phone = phone;
const master = await MasterModel.findByIdAndUpdate(
id,
updateData,
{ new: true }
);
if (!master) {
throw new Error('master not found')
}
res.status(200).send({ success: true, body: master });
} catch (error) {
next(error);
}
});
module.exports = router

View File

@ -1,21 +0,0 @@
const router = require('express').Router()
const { OrderModel } = require('./model/order')
router.post('/orders', async (req, res, next) => {
const {startDate, endDate} = req.body
if (!startDate || !endDate) {
throw new Error('startDate and endDate are required')
}
const orders = await OrderModel.find({
$or: [
{startWashTime: { $gte: new Date(startDate), $lte: new Date(endDate) }},
{endWashTime: { $gte: new Date(startDate), $lte: new Date(endDate) }},
]
})
res.status(200).send({ success: true, body: orders })
})
module.exports = router

View File

@ -1,12 +0,0 @@
const router = require('express').Router()
const armMasterRouter = require('./arm-master')
const armOrdersRouter = require('./arm-orders')
const orderRouter = require('./order')
router.use('/arm', armMasterRouter)
router.use('/arm', armOrdersRouter)
router.use('/order', orderRouter)
module.exports = router

View File

@ -1,35 +0,0 @@
{
"success": true,
"body": [
{
"id": "masters1",
"name": "Иван Иванов",
"schedule": [ {
"id": "order1",
"startWashTime": "2024-11-24T10:30:00.000Z",
"endWashTime": "2024-11-24T16:30:00.000Z"
},
{
"id": "order2",
"startWashTime": "2024-11-24T11:30:00.000Z",
"endWashTime": "2024-11-24T17:30:00.000Z"
}],
"phone": "+7 900 123 45 67"
},
{
"id": "masters12",
"name": "Иван Иванов",
"schedule": [ {
"id": "order1",
"startWashTime": "2024-11-24T10:30:00.000Z",
"endWashTime": "2024-11-24T16:30:00.000Z"
},
{
"id": "order2",
"startWashTime": "2024-11-24T11:30:00.000Z",
"endWashTime": "2024-11-24T17:30:00.000Z"
}],
"phone": "+7 900 123 45 67"
}
]
}

View File

@ -1,60 +0,0 @@
{
"success": true,
"body": [
{
"phone": "+79876543210",
"carNumber": "А123ВЕ16",
"carBody": 1,
"carColor": "#ffff00",
"startWashTime": "2025-05-12T08:21:00.000Z",
"endWashTime": "2025-05-12T08:22:00.000Z",
"location": "55.792799704829854,49.11034340707925 Республика Татарстан (Татарстан), Казань, улица Чернышевского",
"status": "progress",
"notes": "",
"created": "2025-01-18T17:43:21.488Z",
"updated": "2025-01-18T17:43:21.492Z"
},
{
"phone": "89876543210",
"carNumber": "К456МН23",
"carBody": 2,
"carColor": "#ffffff",
"startWashTime": "2025-01-12T08:21:00Z",
"endWashTime": "2025-01-12T08:22:00Z",
"location": "55.808430668108585,49.198608125449255 Республика Татарстан (Татарстан), Казань, улица Академика Губкина, 50/1",
"status": "pending",
"notes": "заметки заметки заметки заметки заметки заметки заметки заметки заметки заметки заметки заметки заметки заметки заметки",
"created": "2025-01-18T17:46:10.388Z",
"updated": "2025-01-18T17:46:10.395Z",
"id": "678be8e211e62f4a61790cca"
},
{
"phone": "4098765432105",
"carNumber": "О789РС777",
"carBody": 3,
"carColor": "красный",
"startWashTime": "2025-08-12T08:21:00.000Z",
"endWashTime": "2025-08-12T08:22:00.000Z",
"location": "55.78720449830353,49.12111640202319 Республика Татарстан (Татарстан), Казань, улица Пушкина, 5/43",
"status": "cancelled",
"notes": "Заказ отменен по запросу самого клиента",
"created": "2025-01-18T17:47:46.294Z",
"updated": "2025-01-18T17:47:46.295Z",
"id": "678be8e211e62f4a61790ccb"
},
{
"phone": "+79876543210",
"carNumber": "Т123УХ716",
"carBody": 99,
"carColor": "чайная роза",
"startWashTime": "2025-01-11T11:21:00.000Z",
"endWashTime": "2025-01-12T11:22:00.000Z",
"location": "55.77063673480112,49.22182909159608 Республика Татарстан (Татарстан), Казань, Советский район, микрорайон Азино-2",
"status": "progress",
"notes": "Клиент остался доволен, предложить в следующий раз акцию",
"created": "2025-01-18T17:55:05.691Z",
"updated": "2025-01-18T17:55:05.695Z",
"id": "678be8e211e62f4a61790ccc"
}
]
}

View File

@ -1,11 +0,0 @@
const orderStatus = {
CANCELLED: 'cancelled',
PROGRESS: 'progress',
PENDING: 'pending',
WORKING: 'working',
COMPLETE: 'complete',
}
module.exports = {
orderStatus
}

View File

@ -1,27 +0,0 @@
const { Schema, model } = require('mongoose')
const schema = new Schema({
file: String,
orderId: {
type: Schema.Types.ObjectId,
ref: 'dry-wash-order'
},
created: {
type: Date,
default: () => new Date().toISOString(),
},
})
schema.set('toJSON', {
virtuals: true,
versionKey: false,
transform(_doc, ret) {
delete ret._id
}
})
schema.virtual('id').get(function () {
return this._id.toHexString()
})
exports.OrderCarImgModel = model('dry-wash-order-car-image', schema)

View File

@ -1,79 +0,0 @@
const { Schema, model } = require('mongoose')
const { orderStatus } = require('./const')
const { OrderNumberModel } = require('./order.number')
const schema = new Schema({
phone: {
type: String,
required: true
},
carNumber: {
type: String,
required: true
},
carBody: {
type: Number,
required: true
},
carColor: String,
startWashTime: {
type: Date,
required: true
},
endWashTime: {
type: Date,
required: true
},
location: {
type: String,
required: true
},
orderNumber: {
type: String,
unique: true
},
status: {
type: String,
required: true,
enum: Object.values(orderStatus)
},
master: {
type: Schema.Types.ObjectId,
ref: 'dry-wash-master'
},
notes: String,
created: {
type: Date,
default: () => new Date().toISOString(),
},
updated: {
type: Date,
default: () => new Date().toISOString(),
},
})
schema.pre('save', async function (next) {
if (this.isNew) {
const counter = await OrderNumberModel.findOneAndUpdate(
{ _id: 'orderNumber' },
{ $inc: { sequenceValue: 1 } },
{ new: true, upsert: true }
)
this.orderNumber = counter.sequenceValue.toString()
}
next()
})
schema.set('toJSON', {
virtuals: true,
versionKey: false,
transform(_doc, ret) {
delete ret._id
}
})
schema.virtual('id').get(function () {
return this._id.toHexString()
})
exports.OrderModel = model('dry-wash-order', schema)

View File

@ -1,14 +0,0 @@
const { Schema, model } = require('mongoose')
const schema = new Schema({
_id: {
type: String,
required: true,
},
sequenceValue: {
type: Number,
default: 0
}
})
exports.OrderNumberModel = model('dry-wash-order-number', schema)

View File

@ -1,317 +0,0 @@
const mongoose = require("mongoose")
const router = require('express').Router()
const multer = require('multer')
const { MasterModel } = require('./model/master')
const { OrderModel } = require('./model/order')
const { OrderCarImgModel } = require('./model/order.car-img')
const { orderStatus } = require('./model/const')
const isValidPhoneNumber = (value) => /^(\+)?\d{9,15}/.test(value)
const isValidCarNumber = (value) => /^[авекмнорстух][0-9]{3}[авекмнорстух]{2}[0-9]{2,3}$/i.test(value)
const isValidCarBodyType = (value) => typeof value === 'number' && value > 0 && value < 100
const isValidCarColor = (value) => value.length < 50 && /^[#a-z0-9а-я-\s,.()]+$/i.test(value)
const isValidISODate = (value) => /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:.\d{1,3})?Z$/.test(value)
const latitudeRe = /^(-?[1-8]?\d(?:\.\d{1,18})?|90(?:\.0{1,18})?)$/
const longitudeRe = /^(-?(?:1[0-7]|[1-9])?\d(?:\.\d{1,18})?|180(?:\.0{1,18})?)$/
const addressRe = /^[а-я0-9\s,.'-/()]*$/i
const isValidLocation = (value) => {
if (value.length > 200) {
return false
}
const [coordinates, address] = value.split(' ')
const [latitude, longitude] = coordinates.split(',')
return latitudeRe.test(latitude) && longitudeRe.test(longitude) && addressRe.test(address)
}
const isValidOrderStatus = (value) => Object.values(orderStatus).includes(value)
const isValidOrderNotes = (value) => value.length < 500
const allowedMimeTypes = ['image/jpeg', 'image/png']
const sizeLimitInMegaBytes = 5
const VALIDATION_MESSAGES = {
order: {
notFound: 'Order not found'
},
orderId: {
invalid: 'Valid order ID is required',
},
orderStatus: {
invalid: 'Invalid order status'
},
orderNotes: {
invalid: 'Invalid order notes'
},
master: {
notFound: 'Master not found'
},
masterId: {
invalid: 'Invalid master ID',
},
phoneNumber: {
required: 'Phone number is required',
invalid: 'Invalid phone number'
},
carNumber: {
required: 'Car number is required',
invalid: 'Invalid car number'
},
carBody: {
required: 'Car body type is required',
invalid: 'Invalid car body type'
},
carColor: {
invalid: 'Invalid car color'
},
carImg: {
required: 'Car image file is required',
invalid: {
type: `Invalid car image file type. Allowed types: ${allowedMimeTypes}`,
size: `Invalid car image file size. Limit is ${sizeLimitInMegaBytes}MB`
}
},
washingBegin: {
required: 'Begin time of washing is required',
invalid: 'Invalid begin time of washing'
},
washingEnd: {
required: 'End time of washing is required',
invalid: 'Invalid end time of washing'
},
washingLocation: {
required: 'Location of washing is required',
invalid: 'Invalid location of washing'
},
}
router.post('/create', async (req, res, next) => {
const bodyErrors = []
const { customer } = req.body
if (!customer.phone) {
bodyErrors.push(VALIDATION_MESSAGES.phoneNumber.required)
} else if (!isValidPhoneNumber(customer.phone)) {
bodyErrors.push(VALIDATION_MESSAGES.phoneNumber.invalid)
}
const { car } = req.body
if (!car.number) {
bodyErrors.push(VALIDATION_MESSAGES.carNumber.required)
} else if (!isValidCarNumber(car.number)) {
bodyErrors.push(VALIDATION_MESSAGES.carNumber.invalid)
}
if (!car.body) {
bodyErrors.push(VALIDATION_MESSAGES.carBody.required)
} else if (!isValidCarBodyType(car.body)) {
bodyErrors.push(VALIDATION_MESSAGES.carBody.invalid)
}
if (!isValidCarColor(car.color)) {
bodyErrors.push(VALIDATION_MESSAGES.carColor.invalid)
}
const { washing } = req.body
if (!washing.begin) {
bodyErrors.push(VALIDATION_MESSAGES.washingBegin.required)
} else if (!isValidISODate(washing.begin)) {
bodyErrors.push(VALIDATION_MESSAGES.washingBegin.invalid)
}
if (!washing.end) {
bodyErrors.push(VALIDATION_MESSAGES.washingEnd.required)
} else if (!isValidISODate(washing.end)) {
bodyErrors.push(VALIDATION_MESSAGES.washingEnd.invalid)
}
if (!washing.location) {
bodyErrors.push(VALIDATION_MESSAGES.washingLocation.required)
} else if (!isValidLocation(washing.location)) {
bodyErrors.push(VALIDATION_MESSAGES.washingLocation.invalid)
}
if (bodyErrors.length > 0) {
throw new Error(bodyErrors.join(', '))
}
try {
const order = await OrderModel.create({
phone: customer.phone,
carNumber: car.number,
carBody: car.body,
carColor: car.color,
startWashTime: washing.begin,
endWashTime: washing.end,
location: washing.location,
status: orderStatus.PROGRESS,
notes: '',
created: new Date().toISOString(),
})
res.status(200).send({ success: true, body: order })
} catch (error) {
next(error)
}
})
router.get('/:id', async (req, res, next) => {
const { id } = req.params
if (!mongoose.Types.ObjectId.isValid(id)) {
throw new Error(VALIDATION_MESSAGES.orderId.invalid)
}
try {
const order = await OrderModel.findById(id)
if (!order) {
throw new Error(VALIDATION_MESSAGES.order.notFound)
}
res.status(200).send({ success: true, body: order })
} catch (error) {
next(error)
}
})
router.patch('/:id', async (req, res, next) => {
const { id } = req.params
if (!mongoose.Types.ObjectId.isValid(id)) {
throw new Error(VALIDATION_MESSAGES.orderId.invalid)
}
const bodyErrors = []
const { status } = req.body
if (status) {
if (!isValidOrderStatus(status)) {
bodyErrors.push(VALIDATION_MESSAGES.orderStatus.invalid)
}
}
const { master: masterId } = req.body
if (masterId) {
if (!mongoose.Types.ObjectId.isValid(masterId)) {
bodyErrors.push(VALIDATION_MESSAGES.masterId.invalid)
} else {
try {
const master = await MasterModel.findById(masterId)
if (!master) {
bodyErrors.push(VALIDATION_MESSAGES.master.notFound)
}
} catch (error) {
next(error)
}
}
}
const { notes } = req.body
if (notes) {
if (!isValidOrderNotes(notes)) {
bodyErrors.push(VALIDATION_MESSAGES.orderNotes.invalid)
}
}
if (bodyErrors.length > 0) {
throw new Error(bodyErrors.join(', '))
}
try {
const updateData = {}
if (status) {
updateData.status = status
}
if (masterId) {
updateData.master = masterId
}
if (notes) {
updateData.notes = notes
}
updateData.updated = new Date().toISOString()
const order = await OrderModel.findByIdAndUpdate(
id,
updateData,
{ new: true }
)
if (!order) {
throw new Error(VALIDATION_MESSAGES.order.notFound)
}
res.status(200).send({ success: true, body: order })
} catch (error) {
next(error)
}
})
router.delete('/:id', async (req, res, next) => {
const { id } = req.params
if (!mongoose.Types.ObjectId.isValid(id)) {
throw new Error(VALIDATION_MESSAGES.orderId.invalid)
}
try {
const order = await OrderModel.findByIdAndDelete(id, {
new: true,
})
if (!order) {
throw new Error(VALIDATION_MESSAGES.order.notFound)
}
res.status(200).send({ success: true, body: order })
} catch (error) {
next(error)
}
})
const storage = multer.memoryStorage()
const upload = multer({
storage: storage,
limits: { fileSize: sizeLimitInMegaBytes * 1024 * 1024 },
fileFilter: (req, file, cb) => {
if (allowedMimeTypes.includes(file.mimetype)) {
cb(null, true)
} else {
cb(new Error(VALIDATION_MESSAGES.carImg.invalid.type), false)
}
}
})
const convertFileToBase64 = (file) => {
const base64Image = file.buffer.toString('base64')
return base64Image
}
router.post('/:id/upload-car-img', upload.single('file'), async (req, res) => {
const { id: orderId } = req.params
if (!mongoose.Types.ObjectId.isValid(orderId)) {
throw new Error(VALIDATION_MESSAGES.orderId.invalid)
}
const order = await OrderModel.findById(orderId)
if (!order) {
throw new Error(VALIDATION_MESSAGES.order.notFound)
}
if (!req.file) {
throw new Error(VALIDATION_MESSAGES.carImg.required)
}
const orderCarImg = await OrderCarImgModel.create({
file: convertFileToBase64(req.file),
orderId,
created: new Date().toISOString(),
})
res.status(200).send({ success: true, body: orderCarImg })
})
router.use((err, req, res, next) => {
if (err instanceof multer.MulterError) {
switch (err.message) {
case 'File too large':
return res.status(400).json({ success: false, error: VALIDATION_MESSAGES.carImg.invalid.size })
default:
return res.status(400).json({ success: false, error: err.message })
}
}
throw new Error(err.message)
})
module.exports = router

View File

@ -1,107 +0,0 @@
{
"info": {
"_postman_id": "e91fbcf7-3c7b-420d-a49e-4dbb6199c14a",
"name": "dry-wash",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "27705820"
},
"item": [
{
"name": "arm",
"item": [
{
"name": "create master",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"name\":\"Anto234\",\n \"phone\": \"89172420577\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host}}/arm/master",
"host": [
"{{host}}"
],
"path": [
"arm",
"master"
]
}
},
"response": []
},
{
"name": "get masters",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{host}}/arm/master-list",
"host": [
"{{host}}"
],
"path": [
"arm",
"master-list"
]
}
},
"response": []
},
{
"name": "delete master",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{host}}/arm/masters/{{id}}",
"host": [
"{{host}}"
],
"path": [
"arm",
"masters",
"{{id}}"
]
}
},
"response": []
},
{
"name": "update master",
"request": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"name\":\"Anto234\",\n \"phone\": \"89172420577\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host}}/arm/masters/{{id}}",
"host": [
"{{host}}"
],
"path": [
"arm",
"masters",
"{{id}}"
]
}
},
"response": []
}
]
}
]
}

View File

@ -1,15 +0,0 @@
const router = require('express').Router();
router.get('/recipe-data', (request, response) => {
response.send(require('./json/recipe-data/success.json'))
})
router.get('/userpage-data', (req, res)=>{
res.send(require('./json/userpage-data/success.json'))
})
router.get('/homepage-data', (req, res)=>{
res.send(require('./json/homepage-data/success.json'))
})
module.exports = router;

View File

@ -1,112 +0,0 @@
{
"data": [
{
"src": "pancakes_meat",
"alt": "Фотография блинчиков с мясом, сыром и луком",
"href": "?=dish01",
"name": "Блинчики с мясом, сыром и лучком",
"category": [
"Ужины"
]
},
{
"src": "cheesecakes",
"alt": "Фотография сырников из творога",
"href": "?=dish02",
"name": "Сырники из творога",
"category": [
"Завтраки"
]
},
{
"src": "borsch",
"alt": "Фотография борща",
"href": "?=dish03",
"name": "Борщ",
"category": [
"Супы"
]
},
{
"src": "vareniki",
"alt": "Фотография вареников",
"href": "?=dish04",
"name": "Ленивые вареники",
"category": [
"Ужины"
]
},
{
"src": "rice_porridge",
"alt": "Фотография рисовой каши",
"href": "?=dish05",
"name": "Рисовая каша",
"category": [
"Завтраки"
]
},
{
"src": "cutlets",
"alt": "Фотография котлет по-киевски",
"href": "?=dish06",
"name": "Котлеты по-киевски",
"category": [
"Обеды"
]
},
{
"src": "draniki",
"alt": "Фотография драников",
"href": "?=dish07",
"name": "Драники",
"category": [
"Обеды"
]
},
{
"src": "meringue",
"alt": "Фотография безе",
"href": "?=dish08",
"name": "Безе",
"category": [
"Выпечка и десерты"
]
},
{
"src": "goulash",
"alt": "Фотография гуляша",
"href": "?=dish09",
"name": "Гуляш",
"category": [
"Мясо"
]
},
{
"src": "pancakes_cherries",
"alt": "Фотография блинчиков с вишней и творожным сыром",
"href": "?=dish10",
"name": "Блинчики с вишней и творожным сыром",
"category": [
"Завтраки"
]
},
{
"src": "canned_soup",
"alt": "Фотография супа из рыбных консервов",
"href": "?=dish11",
"name": "Суп из рыбных консервов",
"category": [
"Супы"
]
},
{
"src": "salad",
"alt": "Фотография салата",
"href": "?=dish12",
"name": "Салат \"Весенний\"",
"category": [
"Салаты"
]
}
]
}

View File

@ -1,58 +0,0 @@
{
"name":"Блинчики с вишней и творожным сыром",
"stages":
[
"Смешать муку, молоко, яйца, сахар и соль в миске",
"Добавить вишню в тесто и перемешать",
"Вылить тесто на разогретую сковороду и обжарить с двух сторон до золотистого цвета",
"Подавать блинчики, украсив творожным сыром сверху"
],
"table":
[
{ "ingredient": "1",
"weight": "500 гр",
"price1": "500р.",
"price2": "439р.",
"price3": "600р." },
{ "ingredient": "Ингредиент 2",
"weight": "2 шт",
"price1": "120р.",
"price2": "150р.",
"price3": "130р." },
{ "ingredient": "Ингредиент 3",
"weight": "500 гр",
"price1": "12р.",
"price2": "12.99р.",
"price3": "10р." },
{ "ingredient": "Ингредиент 4",
"weight": "500 гр",
"price1": "500р.",
"price2": "439р.",
"price3": "600р." },
{ "ingredient": "Ингредиент 5",
"weight": "500 гр",
"price1": "500р.",
"price2": "439р.",
"price3": "600р." },
{ "ingredient": "Ингредиент 6",
"weight": "500 гр",
"price1": "500р.",
"price2": "439р.",
"price3": "600р." }
],
"tags":
[
{ "name": "#блины", "href": "#01" },
{ "name": "#вишня", "href": "#02" },
{ "name": "#молоко"," href": "#03" }
]
}

View File

@ -1,30 +0,0 @@
{
"data":{
"id":1,
"loginname":"Логин пользователя",
"datesignin":"2024/05/18",
"favoritedishes":
[
{"id":1,
"dishlink":"?=dish1",
"dishname":"Блюдо1"
},
{"id":2,
"dishlink":"?=dish2",
"dishname":"Блюдо2"
},
{"id":3,
"dishlink":"?=dish3",
"dishname":"Блюдо3"
},
{"id":4,
"dishlink":"?=dish4",
"dishname":"Блюдо4"
},
{"id":5,
"dishlink":"?=dish5",
"dishname":"Блюдо5"
}
]
}
}

View File

@ -7,6 +7,4 @@ router.use('/cats', require('./cats/index'))
router.use('/ecliptica', require('./ecliptica/index'))
router.use('/sdk', require('./sdk/index'))
module.exports = router

View File

@ -1,123 +0,0 @@
const router = require('express').Router();
const { v4: uuidv4 } = require('uuid');
const workout1 = {
id: uuidv4(),
title: "Toned upper body",
exercises: [
{ title: "Push ups", repsOrDuration: 12, isTimeBased: false },
{ title: "Plank", repsOrDuration: 4, isTimeBased: true },
{ title: "Bicep curl", repsOrDuration: 12, isTimeBased: false, weight: 5 },
{ title: "Bicep curl", repsOrDuration: 12, isTimeBased: false, weight: 5 },
{ title: "Bicep curl", repsOrDuration: 12, isTimeBased: false, weight: 5 },
{ title: "Bicep curl", repsOrDuration: 12, isTimeBased: false, weight: 5 },
],
tags: ['Weights', 'Arms', 'Abs', 'Chest', 'Back']
};
const workout2 = {
id: uuidv4(),
title: "Tom Platz's legs",
exercises: [
{ title: "Squats", repsOrDuration: 12, isTimeBased: false, weight: 40 },
{ title: "Leg Press", repsOrDuration: 4, isTimeBased: false, weight: 65 },
{ title: "Lunges", repsOrDuration: 2, isTimeBased: true }
],
tags: ['Weights', 'Legs']
};
const workout3 = {
id: uuidv4(),
title: "HIIT",
exercises: [
{ title: "Jumping rope", repsOrDuration: 100, isTimeBased: false },
{ title: "Burpees", repsOrDuration: 3, isTimeBased: true },
{ title: "Jumping Jacks", repsOrDuration: 50, isTimeBased: false }
],
tags: ['Cardio']
}
const savedWorkouts = [workout1, workout3];
const trainingWorkouts = [workout2];
router.post('/workout', (req, res) => {
const newWorkout = { ...req.body, id: uuidv4() };
savedWorkouts.push(newWorkout);
res.status(201).json(newWorkout);
});
router.get('/workouts', (req, res) => {
res.json(savedWorkouts);
});
router.post('/training/workout', (req, res) => {
const newWorkout = { ...req.body, id: uuidv4() };
trainingWorkouts.push(newWorkout);
res.status(201).json(newWorkout);
});
const trainings = [{ id: uuidv4(), calories: 450, date: new Date("Thu Oct 03 2024 10:05:24 GMT+0300 (Moscow Standard Time)"), emoji: "fuzzy", hours: 1, minutes: 30, isWorkoutSaved: true, workout: workout1.id }];
const days = [
new Date("Thu Oct 03 2024 10:05:24 GMT+0300 (Moscow Standard Time)"),
];
router.post('/training', (req, res) => {
const newTraining = { ...req.body, id: uuidv4() };
trainings.push(newTraining);
days.push(newTraining.date);
res.status(201).json(newTraining);
});
router.get('/training', (req, res) => {
const { date } = req.query;
if (!date) {
return res.status(400).json({ message: 'Date query parameter is required' });
}
const formattedDate = new Date(date);
const result = trainings.find(t => new Date(t.date).toDateString() === formattedDate.toDateString());
if (result) {
res.json(result);
} else {
res.status(404).json({ message: 'Training not found for the specified date' });
}
});
router.get('/training/workout', (req, res) => {
const { id } = req.query;
if (!id) {
return res.status(400).json({ message: 'Id query parameter is required' });
}
const result = trainingWorkouts.find(w => w.id === id);
if (result) {
res.json(result);
} else {
res.status(404).json({ message: 'Training with such workout not found' });
}
});
router.get('/workout', (req, res) => {
const { id } = req.query;
if (!id) {
return res.status(400).json({ message: 'Id query parameter is required' });
}
const result = savedWorkouts.find(w => w.id === id);
if (result) {
res.json(result);
} else {
res.status(404).json({ message: 'Workout not found' });
}
});
router.get('/trainings', (req, res) => {
res.json(trainings);
});
router.get('/days', (req, res) => {
res.json(days);
})
module.exports = router;

View File

@ -1,12 +0,0 @@
const router = require("express").Router();
router.get('/game-links', (request, response) => {
response.send(require('./json/game-links/success.json'))
})
router.get('/4u2k-links', (request, response) => {
response.send(require('./json/4u2k-links/success.json'))
})
;
module.exports = router;

View File

@ -1,31 +0,0 @@
{
"data":[
{
"type": "video",
"links": {
"l1": "https://www.youtube.com/embed/DsQMLrPdLf8?si=l9X57nHqaSYlxDFf",
"l2": "https://www.youtube.com/embed/Dk8AAU_UdVk?si=N8NdYMUCfawdsJGE",
"l3": "https://www.youtube.com/embed/HKfDfWrCwEA?si=qPugjiKR8V9eZ-yG",
"l4": "https://www.youtube.com/embed/tD-6xHAHrQ4?si=ZFe41gSK8d5gqahW"
}
},
{
"type": "podcast",
"links": {
"l1": "https://www.youtube.com/embed/RtVs87Nd1MQ?si=i4giUCtbp4Ouqv2W",
"l2": "https://www.youtube.com/embed/DfTU5LA_kw8?si=m7fI5Ie9yIGDFCrU",
"l3": "https://www.youtube.com/embed/Sp-1fX1Q15I?si=xyealVly9IBMW7Xi",
"l4": "https://www.youtube.com/embed/rLYFJYfluRs?si=MjW1beQ-Q9-TAehF"
}
},
{
"type": "entertainment",
"links": {
"l1": "https://www.youtube.com/embed/DiuuglRCchQ?si=8wTVXKbV-mbHuSjW",
"l2": "https://www.youtube.com/embed/zmZcIX5PEyo?si=Hbrv32kl0fqcmtV9",
"l3": "https://www.youtube.com/embed/Te-TZUjmzFQ?si=fNG16eruoFEY2KNq",
"l4": "https://www.youtube.com/embed/si-MQ5qg3zE?si=67mfO6gV80n1ULqo"
}
}
]
}

View File

@ -1,20 +0,0 @@
{
"data":[
{
"title": "ABC",
"description": "Мой брат Колян сбацал про меня байку на англицком и несколько фишек кинул для шухера. Англицкий ты вроде знаешь, впряжешься за меня, а?",
"link": "https://www.oxfordonlineenglish.com/english-level-test/reading"
},
{
"title": "Алё, меня слышно?",
"description": "Мой кент на мобилу текст записал с иностранкой. Понимаешь, о чём тут говорят?",
"link": "https://test-english.com/listening/"
},
{
"title": "Анонимное тестирование",
"description": "Ты язык-то нормально знаешь? Проверься, никто угарать не будет",
"link": "https://www.ego4u.com/en/cram-up/tests"
}
]
}

View File

@ -1,24 +0,0 @@
const Router = require('express').Router
const router = Router()
router.post('/auth/login', (req, res) => {
if (req.body.email === 'qwerty@mail.ru') {
res.status(200).send(require('./json/login/login-success.json'))
} else {
res.status(401).send(require('./json/login/login-error.json'));
}
})
router.post('/auth/register', (req, res) => {
res.status(400).send(require('./json/registration/registration-error.json'))
// res.status(201).send(require('./json/registration/registration-error.json'))
})
router.post('/auth/reset-password', (req, res) => {
res.status(200).send(require('./json/reset-password/reset-password-success.json'))
// res.status(404).send(require('./json/reset-password/reset-password-error.json'))
})
module.exports = router;

View File

@ -1,11 +0,0 @@
{
"success": false,
"body": null,
"errors": [
{
"code": "AUTH_INVALID_CREDENTIALS",
"message": "Неверное имя пользователя или пароль"
}
],
"warnings": []
}

View File

@ -1,8 +0,0 @@
{
"success": true,
"body": {
"token": "AUTH_TOKEN"
},
"errors": [],
"warnings": []
}

View File

@ -1,11 +0,0 @@
{
"success": false,
"body": null,
"errors": [
{
"code": "REGISTRATION_EMAIL_TAKEN",
"message": "Электронная почта уже используется"
}
],
"warnings": []
}

View File

@ -1,9 +0,0 @@
{
"success": true,
"body": {
"userId": "12345",
"token": "AUTH_TOKEN"
},
"errors": [],
"warnings": []
}

View File

@ -1,11 +0,0 @@
{
"success": false,
"body": null,
"errors": [
{
"code": "RESET_PASSWORD_EMAIL_NOT_FOUND",
"message": "Адрес электронной почты не зарегистрирован"
}
],
"warnings": []
}

View File

@ -1,8 +0,0 @@
{
"success": true,
"body": {
"message": "Отправлено электронное письмо для сброса пароля"
},
"errors": [],
"warnings": []
}

View File

@ -1,23 +0,0 @@
const Router = require('express').Router;
const router = Router()
const timer = (_req, _res, next) => {
setTimeout(() => next(), 500)
}
router.use(timer)
router.get(
'/active',
(req, res) =>
res.send(require(`./json/active-order-success.json`))
)
router.get(
'/history',
(req, res) =>
res.send(require(`./json/history-success.json`))
)
module.exports = router

View File

@ -1,6 +0,0 @@
{
"success": false,
"errors": [
"Не получилось получить заказ с id = 123123"
]
}

View File

@ -1,46 +0,0 @@
{
"success": true,
"body": {
"id": "1212",
"createdAt": "2024-11-29 13:24:08",
"updatedAt": "2024-11-29 13:24:10",
"status": "in_progress",
"timeline": [
{
"color": "gray",
"children": "Москва"
},
{
"children": "Владимир, 25.10.2024 18:02"
},
{
"children": "Нижний новгород, 25.10.2024 12:21"
},
{
"children": "Казань, 25.10.2024 03:00"
}
],
"statistics": [
{
"key": "address-from",
"value": "г. Казань, ул Ильи Давыдова, стр. 87а"
},
{
"key": "address-to",
"value": "г. Москва, ул. Тверская, д. 12"
},
{
"key": "delivery",
"value": "26.10.2024 23:08"
},
{
"key": "cost",
"value": "100500₽"
},
{
"key": "customer",
"value": "ООО \"Сидоров\""
}
]
}
}

View File

@ -1,9 +0,0 @@
{
"success": false,
"body": {
"history": []
},
"errors": [
"Что-то пошло не так"
]
}

View File

@ -1,187 +0,0 @@
{
"success": true,
"body": {
"history": [
{
"key": 1,
"number": "12324",
"cost": 15000,
"dateEnd": 1685998800000,
"customer": "ООО \"Иванов\"",
"cityFrom": "Псков",
"cityTo": "Мурманск"
},
{
"key": 2,
"number": "12323",
"cost": 10000,
"dateEnd": 1686085200000,
"customer": "ООО \"Попов\"",
"cityFrom": "Астрахань",
"cityTo": "Ставрополь"
},
{
"key": 3,
"number": "12325",
"cost": 12000,
"dateEnd": 1686171600000,
"customer": "ООО \"Сидоров\"",
"cityFrom": "Москва",
"cityTo": "Казань"
},
{
"key": 4,
"number": "12326",
"cost": 9000,
"dateEnd": 1686258000000,
"customer": "ООО \"Петров\"",
"cityFrom": "Новосибирск",
"cityTo": "Томск"
},
{
"key": 5,
"number": "12327",
"cost": 13000,
"dateEnd": 1686344400000,
"customer": "ООО \"Смирнов\"",
"cityFrom": "Омск",
"cityTo": "Тюмень"
},
{
"key": 6,
"number": "12328",
"cost": 14000,
"dateEnd": 1686430800000,
"customer": "ООО \"Кузнецов\"",
"cityFrom": "Саратов",
"cityTo": "Самара"
},
{
"key": 7,
"number": "12329",
"cost": 11000,
"dateEnd": 1686517200000,
"customer": "ООО \"Васильев\"",
"cityFrom": "Краснодар",
"cityTo": "Сочи"
},
{
"key": 8,
"number": "12330",
"cost": 8000,
"dateEnd": 1686603600000,
"customer": "ООО \"Зайцев\"",
"cityFrom": "Пермь",
"cityTo": "Екатеринбург"
},
{
"key": 9,
"number": "12331",
"cost": 7000,
"dateEnd": 1686690000000,
"customer": "ООО \"Морозов\"",
"cityFrom": "Челябинск",
"cityTo": "Уфа"
},
{
"key": 10,
"number": "12332",
"cost": 16000,
"dateEnd": 1686776400000,
"customer": "ООО \"Павлов\"",
"cityFrom": "Волгоград",
"cityTo": "Ростов-на-Дону"
},
{
"key": 11,
"number": "12333",
"cost": 9000,
"dateEnd": 1686862800000,
"customer": "ООО \"Фролов\"",
"cityFrom": "Калининград",
"cityTo": "Смоленск"
},
{
"key": 12,
"number": "12334",
"cost": 15500,
"dateEnd": 1686949200000,
"customer": "ООО \"Богданов\"",
"cityFrom": "Нижний Новгород",
"cityTo": "Киров"
},
{
"key": 13,
"number": "12335",
"cost": 13500,
"dateEnd": 1687035600000,
"customer": "ООО \"Григорьев\"",
"cityFrom": "Тверь",
"cityTo": "Ярославль"
},
{
"key": 14,
"number": "12336",
"cost": 12500,
"dateEnd": 1687122000000,
"customer": "ООО \"Дмитриев\"",
"cityFrom": "Сургут",
"cityTo": "Ханты-Мансийск"
},
{
"key": 15,
"number": "12337",
"cost": 14500,
"dateEnd": 1687208400000,
"customer": "ООО \"Михайлов\"",
"cityFrom": "Иркутск",
"cityTo": "Братск"
},
{
"key": 16,
"number": "12338",
"cost": 10500,
"dateEnd": 1687294800000,
"customer": "ООО \"Романов\"",
"cityFrom": "Владивосток",
"cityTo": "Хабаровск"
},
{
"key": 17,
"number": "12339",
"cost": 9500,
"dateEnd": 1687381200000,
"customer": "ООО \"Федоров\"",
"cityFrom": "Якутск",
"cityTo": "Магадан"
},
{
"key": 18,
"number": "12340",
"cost": 8500,
"dateEnd": 1687467600000,
"customer": "ООО \"Жуков\"",
"cityFrom": "Симферополь",
"cityTo": "Севастополь"
},
{
"key": 19,
"number": "12341",
"cost": 11500,
"dateEnd": 1687554000000,
"customer": "ООО \"Николаев\"",
"cityFrom": "Барнаул",
"cityTo": "Бийск"
},
{
"key": 20,
"number": "12342",
"cost": 10000,
"dateEnd": 1687640400000,
"customer": "ООО \"Орлов\"",
"cityFrom": "Кемерово",
"cityTo": "Новокузнецк"
}
]
}
}

View File

@ -1,7 +0,0 @@
const router = require('express').Router();
router.use('/performer', require('./dashboard-performer'))
router.use('/auth', require('./auth'))
router.use('/landing', require('./landing'))
module.exports = router;

View File

@ -1,29 +0,0 @@
const Router = require('express').Router;
const router = Router()
const values = {
'blocks': 'success',
'application': 'success'
}
const timer = (_req, _res, next) => {
setTimeout(() => next(), 500)
}
router.use(timer)
router.get(
'/blocks',
(req, res) =>
res.send(require(`./json/blocks-${values['blocks']}.json`))
)
router.post(
'/application',
(req, res) => {
res.send(require(`./json/application-${values['application']}.json`))
}
)
module.exports = router

View File

@ -1,7 +0,0 @@
{
"success": false,
"body": { },
"errors": [
"Что-то пошло не так"
]
}

View File

@ -1,4 +0,0 @@
{
"success": true,
"body": { }
}

View File

@ -1,9 +0,0 @@
{
"success": false,
"body": {
"blocks": []
},
"errors": [
"Что-то пошло не так"
]
}

View File

@ -1,22 +0,0 @@
{
"success": true,
"body": {
"blocks": [
{
"titleKey":"block1.title",
"textKey":"block1.subtitle",
"imageName":"truck1"
},
{
"titleKey":"block2.title",
"textKey":"block2.subtitle",
"imageName":"truck2"
},
{
"titleKey":"block3.title",
"textKey":"block3.subtitle",
"imageName":"truck3"
}
]
}
}

View File

@ -1,257 +0,0 @@
const router = require("express").Router();
router.get("/game-page", (request, response) => {
response.send(require("./json/gamepage/success.json"));
});
router.get("/update-like", (request, response) => {
response.send(require("./json/gamepage/success.json"));
});
router.get("/add-to-cart", (request, response) => {
response.send(require("./json/home-page-data/games-in-cart.json"));
});
router.get("/categories", (request, response) => {
response.send(require("./json/home-page-data/all-games.json"));
});
router.get("/favourites", (request, response) => {
response.send(require("./json/home-page-data/all-games.json"));
});
// router.get("/shopping-cart", (request, response) => {
// response.send(require("./json/shopping-cart/success.json"));
// });
router.get("/shopping-cart", (request, response) => {
response.send(require("./json/home-page-data/games-in-cart.json"));
});
// Добавляем поддержку разных ответов для /home
router.get("/home", (req, res) => {
if (stubs.home === "success") {
res.send(require("./json/home-page-data/success.json"));
} else if (stubs.home === "empty") {
res.send({ data: [] }); // Отправляем пустой массив
} else {
res.status(500).json({ success: false, message: "Server error" });
}
});
router.get("/all-games", (request, response) => {
response.send(require("./json/home-page-data/all-games.json"));
});
const stubs = {
home: "success",
};
// // Маршрут для обновления лайков
// router.post("/update-like", (request, response) => {
// const { username, likes } = request.body;
// // Эмулируем успешное обновление лайков
// console.log(`Лайки для пользователя ${username} обновлены до ${likes}`);
// response.status(200).json({
// success: true,
// message: `Лайки для пользователя ${username} обновлены до ${likes}`,
// });
// });
const fs = require("fs").promises;
const path = require("path");
// Path to JSON file
const commentsFilePath = path.join(__dirname, "./json/gamepage/success.json");
// Read JSON file
async function readComments() {
const data = await fs.readFile(commentsFilePath, "utf-8");
const parsedData = JSON.parse(data);
console.log("Прочитанные данные:", parsedData); // Логируем полученные данные
return parsedData;
}
// Write to JSON file
async function writeComments(data) {
await fs.writeFile(commentsFilePath, JSON.stringify(data, null, 2), "utf-8");
}
// Update likes route
router.post("/update-like", async (req, res) => {
const { username, likes } = req.body;
if (!username || likes === undefined) {
return res.status(400).json({ success: false, message: "Invalid input" });
}
try {
const data = await readComments();
const comment = data.data.comments.find((c) => c.username === username);
if (comment) {
comment.likes = likes;
await writeComments(data); // Сохраняем обновленные данные в файл
// Возвращаем актуализированные данные
res.status(200).json({
success: true,
message: "Likes updated successfully",
data: data.data, // Возвращаем актуализированные данные
});
} else {
res.status(404).json({ success: false, message: "Comment not found" });
}
} catch (error) {
console.error("Error updating likes:", error);
res.status(500).json({ success: false, message: "Server error" });
}
});
// Путь к JSON-файлу с корзиной
const cartFilePath = path.join(
__dirname,
"./json/home-page-data/games-in-cart.json"
);
// Функция для чтения JSON-файла
async function readCart() {
const data = await fs.readFile(cartFilePath, "utf-8");
return JSON.parse(data);
}
// Функция для записи в JSON-файл
async function writeCart(data) {
await fs.writeFile(cartFilePath, JSON.stringify(data, null, 2), "utf-8");
}
// Маршрут для добавления/удаления товара в корзине
router.post("/add-to-cart", async (req, res) => {
const { id, action } = req.body;
// Проверка наличия id и action
if (id === undefined || action === undefined) {
return res
.status(400)
.json({ success: false, message: "Invalid id or action" });
}
try {
const cartData = await readCart();
let ids = cartData.data.ids;
if (action === "add") {
// Если action "add", добавляем товар, если его нет в корзине
if (!ids?.includes(id)) {
ids.push(id);
}
} else if (action === "remove") {
// Если action "remove", удаляем товар, если он есть в корзине
if (ids?.includes(id)) {
ids = ids.filter((item) => item !== id);
}
} else {
// Если action невалиден
return res
.status(400)
.json({ success: false, message: "Invalid action" });
}
// Записываем обновленные данные обратно в файл
cartData.data.ids = ids;
await writeCart(cartData);
res.status(200).json({
success: true,
message: "Cart updated successfully",
data: cartData.data, // Возвращаем обновленные данные
});
} catch (error) {
console.error("Error updating cart:", error);
res.status(500).json({ success: false, message: "Server error" });
}
});
module.exports = router;
const createElement = (key, value, buttonTitle, basePath) => `
<label>
<input name="${key}" type="radio" ${
stubs[key] === value ? "checked" : ""
} onclick="fetch('${basePath}/admin/set/${key}/${value}')"/>
${buttonTitle || value}
</label>
`;
router.get("/admin/home", (request, response) => {
const basePath = request.baseUrl; // Получаем базовый путь маршрутизатора
response.send(`
<div>
<fieldset>
<legend>Настройка данных для /home</legend>
${createElement("home", "success", "Отдать успешный ответ", basePath)}
${createElement("home", "empty", "Отдать пустой массив", basePath)}
${createElement("home", "error", "Отдать ошибку", basePath)}
</fieldset>
</div>
`);
});
router.get("/admin/game-page", (request, response) => {
response.send(`
<div>
<fieldset>
<legend>Настройка данных для /game-page</legend>
${createElement(
"game-page",
"success",
"Отдать успешный ответ"
)}
${createElement("game-page", "empty", "Отдать пустой массив")}
${createElement("game-page", "error", "Отдать ошибку")}
</fieldset>
</div>
`);
});
router.get("/admin/categories", (request, response) => {
response.send(`
<div>
<fieldset>
<legend>Настройка данных для /categories</legend>
${createElement(
"categories",
"success",
"Отдать успешный ответ"
)}
${createElement("categories", "empty", "Отдать пустой массив")}
${createElement("categories", "error", "Отдать ошибку")}
</fieldset>
</div>
`);
});
router.get("/admin/favourites", (request, response) => {
response.send(`
<div>
<fieldset>
<legend>Настройка данных для /favourites</legend>
${createElement(
"favourites",
"success",
"Отдать успешный ответ"
)}
${createElement("favourites", "empty", "Отдать пустой массив")}
${createElement("favourites", "error", "Отдать ошибку")}
</fieldset>
</div>
`);
});
router.get("/admin/set/:key/:value", (request, response) => {
const { key, value } = request.params;
stubs[key] = value;
response.send("Настройки обновлены!");
});

View File

@ -1,35 +0,0 @@
{
"success": true,
"data": {
"comments": [
{
"username": ользователь1",
"text": "Текст комментария 1",
"likes": 13,
"rating": 8,
"date": "2025-03-01T10:00:00Z"
},
{
"username": ользователь2",
"text": "Текст комментария 2",
"likes": 10,
"rating": 7,
"date": "2025-01-01T10:00:00Z"
},
{
"username": ользователь3",
"text": "Текст комментария 3",
"likes": 4,
"rating": 3,
"date": "2025-02-01T10:00:00Z"
},
{
"username": ользователь4",
"text": "Текст комментария 4",
"likes": 18,
"rating": 2,
"date": "2025-12-01T10:00:00Z"
}
]
}
}

View File

@ -1,188 +0,0 @@
{
"success": true,
"data": [
{
"id": 1,
"title": "Elden Ring",
"image": "game17",
"price": 3295,
"old_price": 3599,
"imgPath": "img_top_17",
"description": "Крупномасштабная RPG, действие которой происходит в обширном открытом мире c богатой мифологией и множеством опасных врагов.",
"category": "RPG"
},
{
"id": 2,
"title": "The Witcher 3: Wild Hunt",
"image": "game1",
"price": 990,
"old_price": 1200,
"imgPath": "img_top_1",
"description": "Эпическая RPG с открытым миром, в которой Геральт из Ривии охотится на монстров и раскрывает политические заговоры.",
"category": "RPG"
},
{
"id": 17,
"title": "Red Dead Redemption 2",
"image": "game2",
"price": 980,
"old_price": 3800,
"imgPath": "img_top_2",
"description": "Приключенческая игра с открытым миром на Диком Западе, рассказывающая историю Артура Моргана.",
"category": "Adventures"
},
{
"id": 3,
"title": "Forza Horizon 5",
"image": "game3",
"price": 1900,
"imgPath": "img_top_3",
"description": "Гоночная игра с огромным открытым миром, действие которой происходит в Мексике.",
"category": "Race"
},
{
"id": 4,
"title": "Atomic Heart",
"image": "game4",
"price": 1200,
"old_price": 2500,
"imgPath": "img_top_4",
"description": "Экшен-шутер с элементами RPG, разворачивающийся в альтернативной Советской России.",
"category": "Shooters"
},
{
"id": 5,
"title": "Counter-Strike 2",
"image": "game5",
"price": 479,
"imgPath": "img_top_5",
"description": "Популярный онлайн-шутер с соревновательным геймплеем и тактическими элементами.",
"category": "Shooters"
},
{
"id": 6,
"title": "Grand Theft Auto V",
"image": "game6",
"price": 700,
"imgPath": "img_top_6",
"description": "Игра с открытым миром, где можно погрузиться в криминальный мир Лос-Сантоса.",
"category": "Adventures"
},
{
"id": 7,
"title": "Assassins Creed IV: Black Flag",
"image": "game7",
"price": 1100,
"imgPath": "img_top_7",
"description": "Приключенческая игра о пиратах и морских сражениях в эпоху золотого века пиратства.",
"category": "Adventures"
},
{
"id": 8,
"title": "Spider-Man",
"image": "game8",
"price": 3800,
"imgPath": "img_top_8",
"description": "Игра о супергерое Человеке-пауке с захватывающими битвами и паркуром по Нью-Йорку.",
"category": "Action"
},
{
"id": 9,
"title": "Assassins Creed Mirage",
"image": "game9",
"price": 1600,
"imgPath": "img_top_9",
"description": "Приключенческая игра с упором на скрытность, вдохновленная классическими частями серии.",
"category": "Action"
},
{
"id": 10,
"title": "Assassins Creed Valhalla",
"image": "game10",
"price": 800,
"old_price": 2200,
"imgPath": "img_top_10",
"description": "RPG с открытым миром о викингах, включающая битвы, исследования и строительство поселений.",
"category": "RPG"
},
{
"id": 11,
"title": "ARK: Survival Evolved",
"image": "game11",
"price": 790,
"imgPath": "img_top_11",
"description": "Выживание в открытом мире с динозаврами, строительством и многопользовательскими элементами.",
"category": "Simulators"
},
{
"id": 12,
"title": "FIFA 23",
"image": "game12",
"price": 3900,
"imgPath": "img_top_12",
"description": "Популярный футбольный симулятор с улучшенной графикой и реалистичным геймплеем.",
"category": "Sports"
},
{
"id": 13,
"title": "Dirt 5",
"image": "game13",
"price": 2300,
"imgPath": "img_top_13",
"description": "Аркадная гоночная игра с фокусом на ралли и внедорожных соревнованиях.",
"category": "Race"
},
{
"id": 14,
"title": "Cyberpunk 2077",
"image": "game14",
"price": 3400,
"imgPath": "img_top_14",
"description": "RPG в киберпанк-сеттинге с нелинейным сюжетом и детализированным открытым миром.",
"category": "RPG"
},
{
"id": 15,
"title": "Age of Empires IV",
"image": "game15",
"price": 3200,
"imgPath": "img_top_15",
"description": "Классическая стратегия в реальном времени с историческими кампаниями.",
"category": "Strategies"
},
{
"id": 16,
"title": "Civilization VI",
"image": "game16",
"price": 4200,
"imgPath": "img_top_16",
"description": "Глобальная пошаговая стратегия, в которой игроки строят и развивают цивилизации.",
"category": "Strategies"
}
]
}

View File

@ -1,16 +0,0 @@
{
"success": true,
"data": {
"ids": [
3,
13,
1,
10,
4,
9,
15,
6,
7
]
}
}

View File

@ -1,131 +0,0 @@
{
"success": true,
"data": {
"topSail": [
{
"id": 1,
"image": "game1",
"price": 1500,
"imgPath": "img_top_1"
},
{
"id": 2,
"image": "game2",
"price": 980,
"imgPath": "img_top_2"
},
{
"id": 3,
"image": "game3",
"price": 1900,
"imgPath": "img_top_3"
},
{
"id": 4,
"image": "game4",
"price": 1200,
"imgPath": "img_top_4"
},
{
"id": 5,
"image": "game5",
"price": 479,
"imgPath": "img_top_5"
},
{
"id": 6,
"image": "game6",
"price": 700,
"imgPath": "img_top_6"
},
{
"id": 7,
"image": "game7",
"price": 1100,
"imgPath": "img_top_7"
},
{
"id": 8,
"image": "game8",
"price": 3800,
"imgPath": "img_top_8"
}
],
"categories": [
{
"image": "category1",
"text": "гонки",
"imgPath": "img_categories_1",
"category": "Race"
},
{
"image": "category2",
"text": "глубокий сюжет",
"imgPath": "img_categories_2",
"category": ""
},
{
"image": "category3",
"text": "симуляторы",
"imgPath": "img_categories_3",
"category": "Simulators"
},
{
"image": "category4",
"text": "открытый мир",
"imgPath": "img_categories_4",
"category": "RPG"
},
{
"image": "category5",
"text": "экшен",
"imgPath": "img_categories_5",
"category": "Action"
},
{
"image": "category6",
"text": "стратегии",
"imgPath": "img_categories_6",
"category": "Strategies"
},
{
"image": "category7",
"text": "шутеры",
"imgPath": "img_categories_7",
"category": "Shooters"
},
{
"image": "category8",
"text": "приключения",
"imgPath": "img_categories_8",
"category": "Adventures"
}
],
"news": [
{
"image": "news1",
"text": "Разработчики Delta Force: Hawk Ops представили крупномасштабный режим Havoc Warfare",
"imgPath": "img_news_1",
"link": "https://gamemag.ru/news/185583/delta-force-hawk-ops-gameplay-showcase-havoc-warfare"
},
{
"image": "news2",
"text": "Первый трейлер Assassins Creed Shadows — с темнокожим самураем в феодальной Японии",
"imgPath": "img_news_2",
"link": "https://stopgame.ru/newsdata/62686/pervyy_trailer_assassin_s_creed_shadows_s_temnokozhim_samuraem_v_feodalnoy_yaponii"
},
{
"image": "news3",
"text": "Призрак Цусимы» вышел на ПК — и уже ставит рекорды для Sony",
"imgPath": "img_news_3",
"link": "https://stopgame.ru/newsdata/62706/prizrak_cusimy_vyshel_na_pk_i_uzhe_stavit_rekordy_dlya_sony"
},
{
"image": "news4",
"text": "Авторы Skull and Bones расширяют планы на второй сезон",
"imgPath": "img_news_4",
"link": "https://stopgame.ru/newsdata/62711/avtory_skull_and_bones_rasshiryayut_plany_na_vtoroy_sezon"
}
]
}
}

View File

@ -1,37 +0,0 @@
{
"success":true,
"data":
[
{
"id": 1,
"title": "Mortal Kombat 11",
"image": "mortal",
"alt": "Игра Мортал Комбат 11, картинка",
"releaseDate": "23 апр. 2019",
"description": "MORTAL KOMBAT 11 ULTIMATE ВКЛЮЧАЕТ В СЕБЯ БАЗОВУЮ ИГРУ МК11, КОМВАТ РАСК 1, ДОПОЛНЕНИЕ «ПОСЛЕДСТВИЯ» И НЕДАВНО ДОБАВЛЕННЫЙ НАБОР «КОМБАТ 2».",
"price": 300
},
{
"id": 2,
"title": "EA SPORTS™ FIFA 23",
"image": "fifa",
"alt": "Игра Фифа, картинка",
"releaseDate": "30 сен. 2022",
"description": "В FIFA 23 всемирная игра становится еще лучше с технологией HyperMotion2, мужским и женским FIFA World Cup™, женскими командами, кроссплатформенной игрой и множеством прочих возможностей.",
"price": 300
},
{
"id": 3,
"title": "Ведьмак: Дикая Охота",
"image": "ved",
"alt": "Игра Ведьмак, картинка",
"releaseDate": "18 мая 2015",
"description": "Вы — Геральт из Ривии, наемный убийца чудовищ. Вы путешествуете по миру, в котором бушует война и на каждом шагу подстерегают чудовища. Вам предстоит выполнить заказ и найти Цири — Дитя Предназначения, живое оружие, способное изменить облик этого мира.",
"price": 300
}
]
}

View File

@ -1,3 +0,0 @@
exports.KAZAN_EXPLORE_RESULTS_MODEL_NAME = 'KAZAN_EXPLORE_RESULTS'
exports.TOKEN_KEY = "kazan-explore_top_secret_key_hbfhqf9jq9prg"

View File

@ -1,310 +0,0 @@
const router = require('express').Router();
const { expressjwt } = require('express-jwt')
const axios = require('axios');
const jwt = require('jsonwebtoken')
const { ResultsModel } = require('./model/results')
const { TOKEN_KEY } = require('./const')
// First page
router.get('/getInfoAboutKazan', (request, response) => {
const lang = request.query.lang || 'ru';
try {
const data = require('./json/first/info-about-kazan/success.json');
const translatedData = data[lang] || data['ru'];
response.send(translatedData);
} catch (error) {
response.status(500).send({ message: 'Internal server error' });
}
});
router.get('/getServices', (request, response) => {
const lang = request.query.lang || 'ru';
try {
const data = require(`./json/first/services/${lang}/success.json`);
response.send(data);
} catch (error) {
response.status(404).send({ message: 'Language not found' });
}
})
router.get('/getNews', (request, response) => {
const lang = request.query.lang || 'ru';
try {
const data = require(`./json/first/news/${lang}/success.json`);
response.send(data);
} catch (error) {
response.status(404).send({ message: 'Language not found' });
}
})
// Sport page
router.get('/getFirstText', (request, response) => {
const lang = request.query.lang || 'ru';
try {
const data = require('./json/sport/first-text/success.json');
const translatedData = data[lang] || data['ru'];
response.send(translatedData);
} catch (error) {
response.status(404).send({ message: 'Language not found' });
}
});
router.get('/getSecondText', (request, response) => {
const lang = request.query.lang || 'ru';
try {
const data = require('./json/sport/second-text/success.json');
const translatedData = data[lang] || data['ru'];
response.send(translatedData);
} catch (error) {
response.status(404).send({ message: 'Language not found' });
}
});
router.get('/getSportData', (request, response) => {
const lang = request.query.lang || 'ru';
try {
const data = require(`./json/sport/sport-list/${lang}/success.json`);
response.send(data);
} catch (error) {
response.status(404).send({ message: 'Language not found' });
}
})
router.get('/getSportQuiz', (request, response) => {
const lang = request.query.lang || 'ru';
try {
const data = require(`./json/sport/quiz/${lang}/success.json`);
response.send(data);
} catch (error) {
response.status(404).send({ message: 'Language not found' });
}
})
// Places page
router.get('/getPlacesData', (request, response) => {
const lang = request.query.lang || 'ru';
try {
const data = require(`./json/places/${lang}/success.json`);
response.send(data);
} catch (error) {
response.status(404).send({ message: 'Language not found' });
}
})
// Transport page
router.get('/getInfoAboutTransportPage', (request, response) => {
const lang = request.query.lang || 'ru';
try {
const data = require('./json/transport/info-about-page/success.json');
const translatedData = data[lang] || data['ru'];
response.send(translatedData);
} catch (error) {
response.status(404).send({ message: 'Language not found' });
}
})
router.get('/getBus', (request, response) => {
response.send(require('./json/transport/bus-numbers/success.json'))
})
router.get('/getTral', (request, response) => {
response.send(require('./json/transport/tral-numbers/success.json'))
})
router.get('/getEvents', (request, response) => {
response.send(require('./json/transport/events-calendar/success.json'))
})
router.get('/getTripSchedule', (request, response) => {
const lang = request.query.lang || 'ru';
try {
const data = require(`./json/transport/trip-schedule/${lang}/success.json`);
response.send(data);
} catch (error) {
response.status(404).send({ message: 'Language not found' });
}
})
// History page
router.get('/getHistoryText', (request, response) => {
const lang = request.query.lang || 'ru';
try {
const data = require(`./json/history/text/${lang}/success.json`);
response.send(data);
} catch (error) {
response.status(404).send({ message: 'Language not found' });
}
})
router.get('/getHistoryList', (request, response) => {
const lang = request.query.lang || 'ru';
try {
const data = require(`./json/history/list/${lang}/success.json`);
response.send(data);
} catch (error) {
response.status(404).send({ message: 'Language not found' });
}
})
// Education page
router.get('/getInfoAboutEducation', (request, response) => {
const lang = request.query.lang || 'ru';
try {
const data = require('./json/education/text/success.json');
const translatedData = data[lang] || data['ru'];
response.send(translatedData);
} catch (error) {
response.status(404).send({ message: 'Language not found' });
}
})
router.get('/getEducationList', (request, response) => {
const lang = request.query.lang || 'ru';
try {
const data = require(`./json/education/cards/${lang}/success.json`);
response.send(data);
} catch (error) {
response.status(404).send({ message: 'Language not found' });
}
})
router.get('/getInfoAboutKFU', (request, response) => {
const lang = request.query.lang || 'ru';
try {
const data = require('./json/education/kfu/success.json');
const translatedData = data[lang] || data['ru'];
response.send(translatedData);
} catch (error) {
response.status(404).send({ message: 'Language not found' });
}
})
// Login
router.post('/entrance', (request, response) => {
const { email, password } = request.body.entranceData;
try {
const users = require('./json/users-information/success.json');
const user = users.data.find(user => user.email === email && user.password === password);
if (!user) {
return response.status(401).send('Неверные учетные данные');
}
const responseObject = {
email: user.email,
}
return response.json(responseObject);
} catch (error) {
console.error('Ошибка чтения файла:', error);
response.status(500).send('Внутренняя ошибка сервера');
}
})
router.post('/registration', async (request, response) => {
const { email, password, confirmPassword } = request.body.registerData;
try {
if (password !== confirmPassword) {
return response.status(400).send('Пароли не совпадают!');
}
const users = require('./json/users-information/success.json');
const existingUser = users.data.find(user => user.email === email);
if (existingUser) {
return response.status(400).send('Пользователь с такой почтой уже существует!');
}
return response.json({ email: email });
} catch (error) {
console.error('Ошибка регистрации пользователя:', error);
response.status(500).send('Внутренняя ошибка сервера');
}
});
router.post('/signin', async (req, res) => {
const { user } = req.body
if (!user || !user.token) {
return res.status(404).json({error : "No user found"});
}
const valRes = await axios.get('https://antd-table-v2-backend.onrender.com/api/auth/check',
{
headers: {
'authorization': `Bearer ${user.token}`
}
}
)
if (valRes.status !== 200) {
return res.status(401).json({error : "User authorization error"});
}
const accessToken = jwt.sign({
...JSON.parse(JSON.stringify(user._id)),
}, TOKEN_KEY, {
expiresIn: '12h'
})
user.token = accessToken;
res.json(user)
})
router.use(
expressjwt({
secret: TOKEN_KEY,
algorithms: ['HS256'],
getToken: function fromHeaderOrQuerystring(req) {
if (req.headers.authorization && req.headers.authorization.split(" ")[0] === "Bearer")
return req.headers.authorization.split(" ")[1];
else if (req.query && req.query.token)
return req.query.token;
return null;
}
})
)
router.get('/getQuizResults/:userId', async (request, response) => {
const { userId } = request.params;
try {
const results = await ResultsModel.findOne({ userId: userId }).exec();
if (!results)
return response.status(404).send({ message: 'Quiz results not found' });
response.send(results.items);
} catch (error) {
response.status(500).send({ message: 'An error occurred while fetching quiz results' });
}
});
router.post('/addQuizResult', async (request, response) => {
const { userId, quizId, result } = request.body;
if (!userId || !quizId || !result)
return response.status(400).send({ message: 'Invalid input data' });
try {
let userResults = await ResultsModel.findOne({ userId: userId }).exec();
if (!userResults) {
userResults = new ResultsModel({ userId, items: [] });
}
const itemToOverride = userResults.items.find(item => item.quizId === quizId)
if (!itemToOverride) {
userResults.items.push({ quizId, result });
}
else {
itemToOverride.result = result;
}
await userResults.save();
response.status(200).send({ message: 'Quiz result added successfully' });
} catch (error) {
response.status(500).send({ message: 'An error occurred while adding quiz result' });
}
});
module.exports = router;

View File

@ -1,26 +0,0 @@
[
{
"id": "1",
"image": "img1",
"title": "Preschool and School Education",
"text": "Kazan has more than 300 preschool institutions that provide comprehensive development for children from an early age. School education in the city is of a high standard, as evidenced by the results of graduation exams and competitions. Many programs are implemented in Kazan to support talented students, including specialized schools and advanced subject studies."
},
{
"id": "2",
"image": "img2",
"title": "Secondary and Higher Education",
"text": "Kazan is home to prestigious secondary specialized educational institutions that train mid-level specialists for various industries. The city is a major educational hub with over 20 higher educational institutions, including some of Russia's leading universities. Kazan's universities offer a wide range of educational programs that meet modern labor market demands."
},
{
"id": "3",
"image": "img3",
"title": "Science",
"text": "Kazan is one of Russia's leading scientific centers, hosting numerous research institutes and academic institutions. The city organizes major scientific conferences and forums that attract scientists from around the world. Kazan researchers have achieved significant success in various fields, including chemistry, physics, medicine, and information technology."
},
{
"id": "4",
"image": "img4",
"title": "Innovations",
"text": "Kazan is a leader in innovations in Russia. The city is home to major tech companies and startups that develop and implement innovative solutions. Currently, Tatarstan hosts the largest industrial and manufacturing special economic zone in Russia, 'Alabuga,' 4 industrial parks, the 'Himgrad' technopolis, 14 technology parks, and an IT park."
}
]

View File

@ -1,27 +0,0 @@
[
{
"id": "1",
"image": "img1",
"title": "Дошкольное и школьное образование",
"text": "В Казани насчитывается более 300 дошкольных учреждений, обеспечивающих всестороннее развитие детей с раннего возраста. Школьное образование в городе отличается высоким уровнем, о чем свидетельствуют результаты выпускных экзаменов и олимпиад. В Казани реализуется множество программ по поддержке талантливых школьников, включая специализированные школы и углубленное изучение предметов."
},
{
"id": "2",
"image": "img2",
"title": "Среднее и высшее образование",
"text": "В Казани расположены престижные средние специальные учебные заведения, готовящие специалистов среднего звена для различных отраслей. Город является крупным образовательным центром с более чем 20 высшими учебными заведениями, в том числе ведущими университетами России. Казанские вузы предлагают широкий спектр образовательных программ, отвечающих современным требованиям рынка труда."
},
{
"id": "3",
"image": "img3",
"title": "Наука",
"text": "Казань является одним из ведущих научных центров России, где сосредоточены многочисленные научно-исследовательские институты и академические учреждения. В городе проводятся крупные научные конференции и форумы, привлекающие ученых со всего мира. Казанские ученые добились значительных успехов в различных областях, включая химию, физику, медицину и информационные технологии."
},
{
"id": "4",
"image": "img4",
"title": "Инновации",
"text": "Казань является одним из лидеров в сфере инноваций в России. В городе работают крупные технологические компании и стартапы, разрабатывающие и внедряющие инновационные решения. В настоящее время в Татарстане действуют: крупнейшая в России особая экономическая зона промышленно-производственного типа «Алабуга», 4 индустриальных парка, технополис «Химград», 14 технопарков, IT-парк."
}
]

View File

@ -1,26 +0,0 @@
[
{
"id": "1",
"image": "img1",
"title": "Мәктәпкәчә һәм мәктәп белем бирү",
"text": "Казанда 300дән артык мәктәпкәчә белем бирү учреждениесе бар, алар балаларны кечкенәдән үстерү өчен шартлар тудыра. Мәктәп белем бирүе югары дәрәҗәдә булуы белән аерылып тора, бу чыгарылыш имтиханнары һәм олимпиадалар нәтиҗәләреннән күренә. Казанда талантлы укучыларга ярдәм итү буенча махсус программалар гамәлгә ашырыла, шул исәптән профильле мәктәпләр һәм фәннәрне тирәнтен өйрәнү мөмкинлекләре."
},
{
"id": "2",
"image": "img2",
"title": "Урта һәм югары белем бирү",
"text": "Казанда төрле тармаклар өчен урта звено белгечләрен әзерләүче абруйлы урта махсус уку йортлары урнашкан. Шәһәр 20дән артык югары уку йорты булган зур белем бирү үзәге булып тора, шул исәптән Россиянең алдынгы университетлары. Казан университетлары хезмәт базары таләпләренә туры килгән киң белем бирү программалары тәкъдим итә."
},
{
"id": "3",
"image": "img3",
"title": "Фән",
"text": "Казан Россиянең әйдәп баручы фәнни үзәкләренең берсе, монда күпсанлы фәнни-тикшеренү институтлары һәм академик учреждениеләр тупланган. Шәһәрдә бөтен дөньядан галимнәрне җәлеп итүче зур фәнни конференцияләр һәм форумнар үткәрелә. Казан галимнәре химия, физика, медицина һәм мәгълүмати технологияләр кебек төрле өлкәләрдә зур уңышларга иреште."
},
{
"id": "4",
"image": "img4",
"title": "Инновацияләр",
"text": "Казан Россиядә инновацияләр өлкәсе лидеры. Шәһәрдә зур технологик компанияләр һәм стартаплар эшләп килә, алар инновацион карарлар эшли һәм гамәлгә кертә. Татарстанда Россиянең иң зур сәнәгать-җитештерү махсус икътисади зонасы «Алабуга», 4 индустриаль парк, «Химград» технополисы, 14 технопарк һәм IT-парк эшли."
}
]

View File

@ -1,23 +0,0 @@
{
"ru": {
"title": "Kазанский федеральный университет",
"description": [
"Казанский (Приволжский) федеральный университет (полное наименование — федеральное государственное автономное образовательное учреждение высшего образования «Казанский (Приволжский) федеральный университет», тат. Казан (Идел буе) федераль университеты) — высшее учебное заведение в Казани, один из старейших российских университетов (основан в 1804 году) и один из десяти федеральных университетов (с 2010 года).",
"В состав университетского учебно-научного комплекса входят научная библиотека, научно-исследовательские институты химии, математики и механики, 7 музеев, ботанический сад, астрономические обсерватории, центр информационных технологий, издательство, центр и лаборатория оперативной полиграфии, культурно-спортивный комплекс, спортивно-оздоровительный лагерь и другие подразделения."
]
},
"en": {
"title": "Kazan Federal University",
"description": [
"Kazan (Volga Region) Federal University (full name - Federal State Autonomous Educational Institution of Higher Education 'Kazan (Volga Region) Federal University') is a higher educational institution in Kazan, one of the oldest Russian universities (founded in 1804) and one of the ten federal universities (since 2010).",
"The university's educational and research complex includes a scientific library, research institutes of chemistry, mathematics, and mechanics, 7 museums, a botanical garden, astronomical observatories, an information technology center, a publishing house, a center and laboratory for operational printing, a cultural and sports complex, a sports and recreation camp, and other divisions."
]
},
"tt": {
"title": "Казан Федераль Университеты",
"description": [
"Казан (Идел буе) федераль университеты (тулы исеме — Казан (Идел буе) федераль университеты) Казан шәһәрендә урнашкан. Ул 1804 елда нигезләнгән, Россиянең иң борынгы университетларының берсе һәм 2010 елдан бирле ун федераль университетларның берсе булып тора.",
"Университетның уку-укыту һәм фәнни комплексына фәнни китапханә, химия, математика һәм механика буенча фәнни-тикшеренү институтлары, 7 музей, ботаник бакча, астрономия обсерваторияләре, мәгълүмат технологияләре үзәге, нәшрият, оператив полиграфия үзәге һәм лабораториясе, мәдәни-спорт комплексы, спорт-сәламәтләндерү лагере һәм башка бүлекләр керә."
]
}
}

View File

@ -1,11 +0,0 @@
{
"ru": {
"text": "Казань один из крупнейших университетских городов России исторически сформировался как центр знаний и науки. Ежегодно в нашем городе выпускается более 4 тыс. специалистов технического профиля и, что особенно важно, многие из них талантливые разработчики и носители новых идей."
},
"en": {
"text": "Kazan, one of the largest university cities in Russia, has historically emerged as a center of knowledge and science. Every year, our city graduates more than 4 thousand technical specialists and, what is especially important, many of them are talented developers and bearers of new ideas."
},
"tt": {
"text": "Рәсәйнең иң зур университет шәһәрләренең берсе булган Казан тарихта белем һәм фән үзәге булып барлыкка килде. Ел саен безнең шәһәр 4 меңнән артык техник белгечне тәмамлый, һәм иң мөһиме, аларның күбесе сәләтле уйлап табучылар һәм яңа идеялар алып баручылар."
}
}

View File

@ -1,11 +0,0 @@
{
"ru": {
"description": "Казань — древний город с богатой историей, где слились воедино культуры Востока и Запада. Подобно драгоценному камню, сияющему в ожерелье городов России, Казань покоряет своей красотой и многообразием. Её красивая архитектура и гостеприимные жители создают уютную атмосферу, привлекающую туристов со всего мира."
},
"en": {
"description": "Kazan is an ancient city with a rich history, where the cultures of East and West merged together. Like a precious stone shining in the necklace of Russian cities, Kazan captivates with its beauty and diversity. Its beautiful architecture and hospitable residents create a cozy atmosphere that attracts tourists from all over the world."
},
"tt": {
"description": "Казан - борыңгы шәһәр, анда Көнчыгыш һәм Көнбатыш культуралары берләшкән, Рәсәй шәһәрләренең муенсасында балкып торган кыйммәтле таш кебек, Казан үзенең матур архитектурасы һәм кунакчыллыгы белән уңайлы бөтен дөньядан туристларны җәлеп итә торган атмосфера."
}
}

View File

@ -1,32 +0,0 @@
[
{
"id": "1",
"image": "new1",
"title": "Evacuation announced at enterprises in Kazan",
"text": "In Kazan, evacuation has been announced at several enterprises. This was reported by the press service of the head of Tatarstan. 'In some areas of Kazan, the need for evacuation at enterprises has been announced,' the press service of the head of Tatarstan said. The information was provided by TASS. The Telegram channel Shot reports the evacuation of employees of the chemical company Kazanorgsintez."
},
{
"id": "2",
"image": "new2",
"title": "Interaction of children with gadgets discussed in Kazan",
"text": "A conference dedicated to the challenges of parenting in the era of technological progress was held in Kazan. Participants, including psychologists, educators, and parents, discussed methods to combat gadget addiction and ways to use technology for youth development. 'There is nothing wrong with a child using a phone. The main thing is to guide them properly,' shared Alfia Valeeva, a teacher with 16 years of experience."
},
{
"id": "3",
"image": "new3",
"title": "Kazan UNICS lost to CSKA, series score 0-3",
"text": "In the third match of the VTB United League finals, CSKA proved stronger than UNICS on their home court with a score of 80:72. The series score became 3-0 in favor of CSKA. If CSKA wins one more time, they will become champions. Unlike the previous game, the Kazan team started confidently. They won the first quarter 17:13 and led 21:13 at the start of the second. However, CSKA quickly leveled the score and then took the lead."
},
{
"id": "4",
"image": "new4",
"title": "Forecasters warn of thunderstorm and strong winds in Kazan",
"text": "This evening, thunderstorms and strong southwest winds with gusts of 1520 m/s, and in some areas up to 23 m/s, are expected in Tatarstan, including Kazan. This warning was issued by the RT Hydrometeorological Center."
},
{
"id": "5",
"image": "new5",
"title": "Additional trains to run between the capital of Tatarstan and the airport",
"text": "Additional commuter trains will run on the Kazan Airport Kazan route for two days. This is due to concerts being held at the Kazan Expo Exhibition Center. The additional trains will operate without intermediate stops, according to the press service of JSC 'Sodruzhestvo'."
}
]

View File

@ -1,32 +0,0 @@
[
{
"id": "1",
"image": "new1",
"title": "На предприятиях в Казани объявили эвакуацию",
"text": "В Казани на некоторых предприятиях объявлена необходимость эвакуации. Об этом сообщили в пресс-службе главы Татарстана. «В отдельных районах Казани на предприятиях объявлена необходимость эвакуации», — сообщили в пресс-службе главы Татарстана. Информацию передает ТАСС. Telegram-канал Shot пишет об эвакуации сотрудников химической компании «Казаньоргсинтез»."
},
{
"id": "2",
"image": "new2",
"title": "В Казани обсудили взаимодействие детей с гаджетами",
"text": "В Казани состоялась конференция, посвящённая проблемам воспитания в эпоху технического прогресса. Участники встречи, среди которых психологи, педагоги и родители, обсудили методы противодействия гаджетозависимости и возможности использования технологий для развития молодёжи. «Ничего плохого нет в том, что ребёнок сидит в телефоне. Главное — правильно его направить», - поделилась своим опытом Альфия Валеева, педагог с 16-летним стажем."
},
{
"id": "3",
"image": "new3",
"title": "Казанский УНИКС проиграл ЦСКА, счёт в серии 0-3",
"text": "В третьем матче финала Единой лиги ВТБ ЦСКА на своей площадке оказался сильнее УНИКСа — 80:72. Счет в серии стал 30 в пользу ЦСКА. Если армейцы выиграют еще раз, то станут чемпионами. В отличие от предыдущей игры казанцы уверенно начали. Первую четверть они выиграли 17:13, а на старте второй вели 21:13. Однако ЦСКА быстро сравнял счет, а затем вышел вперед. "
},
{
"id": "4",
"image": "new4",
"title": "Синоптики предупредили о грозе и сильном ветре в Казани",
"text": "Сегодня вечером в Татарстане, включая Казань, ожидаются гроза и сильный юго-западный ветер порывами 1520 м/с, местами до 23 м/с. Об этом предупреждает Гидрометцентр РТ."
},
{
"id": "5",
"image": "new5",
"title": "Между столицей РТ и аэропортом запустят дополнительные рейсы",
"text": "На маршруте Казань Аэропорт Казань два дня будут курсировать дополнительные пригородные поезда. Это связано с проведением концертов в МВЦ «Казань Экспо». Дополнительные поезда проследуют без промежуточных остановок, сообщили в пресс-службе АО «Содружество»."
}
]

View File

@ -1,32 +0,0 @@
[
{
"id": "1",
"image": "new1",
"title": "Казанда предприятиеләрдә эвакуация игълан ителгән",
"text": "Казанда кайбер предприятиеләрдә эвакуация таләп ителгән. Бу хакта Татарстан җитәкчесенең матбугат хезмәте хәбәр итте. 'Казанның аерым районнарында предприятиеләрдә эвакуация таләп ителә', — дип белдерде Татарстан җитәкчесенең матбугат хезмәте. Мәгълүматны ТАСС җиткерә. Shot Telegram-каналы 'Казаноргсинтез' химия компаниясе хезмәткәрләренең эвакуациясе турында хәбәр итә."
},
{
"id": "2",
"image": "new2",
"title": "Казанда балаларның гаджетлар белән эшләвен тикшерделәр",
"text": "Казанда техник прогресс чорында тәрбия проблемаларына багышланган конференция узды. Психологлар, педагоглар һәм ата-аналар катнашында үткән чарада гаджетларга бәйлелеккә каршы чаралар һәм яшьләрне үстерү өчен технологияләрне куллану мөмкинлекләре турында фикер алыштылар. 'Баланың телефонда утыруында бернинди начар нәрсә юк. Иң мөһиме — аны дөрес юнәлешкә юнәлтү', — дип үз тәҗрибәсе белән уртаклашты 16 ел стажлы педагог Альфия Вәлиева."
},
{
"id": "3",
"image": "new3",
"title": "Казан УНИКСы ЦСКАга җиңелде, сериядә исәп 0-3",
"text": "VTB Берләшкән лигасының финалындагы өченче матчта ЦСКА үз мәйданында УНИКСтан өстен чыкты — 80:72. Сериядә исәп 30 ЦСКА файдасына. Әгәр армиячеләр тагын бер җиңүгә ирешсәләр, чемпион булалар. Алдагы уен белән чагыштырганда, казанлылар ышанычлырак башладылар. Беренче кварталны алар 17:13 исәбе белән отты, ә икенче квартал башында 21:13 белән алда бардылар. Әмма ЦСКА тиз арада исәпне тигезләде һәм аннары алга чыкты."
},
{
"id": "4",
"image": "new4",
"title": "Синоптиклар Казанда яшен һәм көчле җил турында кисәтә",
"text": "Бүген кич Татарстанда, шул исәптән Казанда, яшен һәм 1520 м/с, кайбер урыннарда 23 м/с тизлектә көньяк-көнбатыш җил көтелә. Бу хакта ТР Гидрометеоүзәге кисәтә."
},
{
"id": "5",
"image": "new5",
"title": "Татарстан башкаласы белән аэропорт арасында өстәмә рейслар оештырыла",
"text": "Казан Аэропорт Казан маршруты буенча ике көн дәвамында өстәмә шәһәр яны поездлары йөриячәк. Бу Казан Экспо күргәзмә үзәгендә концертлар үткәрү белән бәйле. Өстәмә поездлар тукталышларсыз йөриячәк, дип хәбәр итә 'Содружество' АҖнең матбугат хезмәте."
}
]

View File

@ -1,102 +0,0 @@
{
"banks": [
{
"name": "Sberbank of Russia",
"description": "One of the largest and most popular banks in Russia. There are many branches and ATMs in Kazan. Sberbank offers a wide range of services, including loans, deposits, insurance, business services, and online banking."
},
{
"name": "VTB",
"description": "The second largest bank in Russia, with many offices and ATMs in Kazan. VTB offers various financial products for individuals and businesses, including loans, deposits, investment solutions, and cards."
},
{
"name": "Tinkoff Bank",
"description": "Although Tinkoff does not have traditional offices in Kazan, its products and services are available in the city through online banking and remote services. Tinkoff offers favorable terms for credit cards, deposits, and services for small and medium-sized businesses."
},
{
"name": "Alfa-Bank",
"description": "One of the largest private banks in Russia, with offices in Kazan. Alfa-Bank offers standard banking services such as loans, deposits, cards, as well as investment and insurance products."
},
{
"name": "Rosselkhozbank",
"description": "Rosselkhozbank is also present in Kazan, specializing in servicing the agro-industrial complex, but also provides services for individuals and businesses, including loans, deposits, and cards."
},
{
"name": "RBC Bank",
"description": "A Russian bank with several offices and ATMs in Kazan. It offers loans, cards, deposits, and business services."
},
{
"name": "Bank Saint Petersburg",
"description": "A local bank that also provides services in Kazan. It offers a wide range of banking products for individuals and businesses."
}
],
"hospitals": [
{
"name": "Kazan City Clinical Hospital No. 1",
"description": "One of the largest multidisciplinary hospitals in Kazan, offering services in surgery, traumatology, neurology, cardiology, and other medical fields. Modern technologies and highly qualified staff."
},
{
"name": "Republican Clinical Hospital",
"description": "The main medical organization of the Republic of Tatarstan, providing a wide range of services for adults and children, including emergency care, high-tech surgeries, and diagnostics."
},
{
"name": "City Hospital No. 7",
"description": "A hospital specializing in providing medical care in therapeutic, surgical, and resuscitation medicine. The hospital employs experienced specialists and uses modern treatment methods."
},
{
"name": "Kazan Children's Clinical Hospital",
"description": "A specialized medical facility for children, providing services for the treatment of diseases related to pediatrics, surgery, cardiology, and other fields for children of all ages."
},
{
"name": "Kazan Oncology Dispensary",
"description": "A medical institution specializing in the treatment of oncological diseases. It uses the latest methods of cancer diagnosis and treatment, including chemotherapy, radiotherapy, and surgical interventions."
},
{
"name": "City Hospital No. 18",
"description": "A multidisciplinary medical institution offering treatment in various medical fields, including traumatology, neurology, and cardiology. The hospital has a rehabilitation department for patients recovering from serious diseases."
},
{
"name": "Republican Hospital for War Veterans",
"description": "A medical institution providing specialized care for World War II veterans, disabled individuals, and elderly people. It also offers a wide range of services for citizens with chronic diseases."
}
],
"pharmacies": [
{
"name": "Apteka 36.6",
"description": "A pharmacy chain with a wide range of medications, vitamins, cosmetics, and health products. Loyalty programs and online orders for customer convenience."
},
{
"name": "Rigla",
"description": "One of the largest pharmacy chains in Russia. It offers a wide range of medicines, medical products, and cosmetics. It also provides the option to order online."
},
{
"name": "Zdorovaya Semya",
"description": "A pharmacy chain focused on the sale of medicines and health products, including medical equipment. Often runs promotions and discounts on popular items."
},
{
"name": "A5 Pharmacy Chain",
"description": "Pharmacies offering a wide range of products, including medicines, vitamins, cosmetics, and children's products. Convenient delivery and online order services."
},
{
"name": "Samson-Pharma Pharmacy",
"description": "A pharmacy chain offering customers all necessary medicines and health products. Pharmacies offer various discount and bonus programs for regular customers."
},
{
"name": "Tsvetnoy Pharmacy Chain",
"description": "Pharmacies known for their convenient locations and high-quality service. They sell medicines, vitamins, self-care products, and medical equipment."
},
{
"name": "Doctor Stoletev Pharmacy",
"description": "A pharmacy chain focused on selling pharmaceutical products, medical goods, and cosmetics. Convenient service and promotions for customers."
}
],
"airports": [
{
"name": "Kazan International Airport",
"description": "The main airport of the city of Kazan, serving international and domestic flights. The airport is equipped with modern terminals, comfortable waiting areas, shops, and restaurants. It is one of the largest in the Volga region and an important transport hub for Tatarstan."
},
{
"name": "Kazan-2 (when it was operational)",
"description": "Previously used for domestic flights and military needs. It is no longer fully operational as all passenger flights have been redirected to Kazan International Airport. The airport building is closed for commercial air traffic."
}
]
}

View File

@ -1,102 +0,0 @@
{
"banks": [
{
"name": "Сбербанк России",
"description": "Один из крупнейших и самых популярных банков в России. В Казани есть множество отделений и банкоматов. Сбербанк предлагает широкий спектр услуг, включая кредиты, депозиты, страхование, обслуживание бизнеса и онлайн-банкинг."
},
{
"name": "ВТБ",
"description": "Второй по величине банк в России, с большим количеством офисов и банкоматов в Казани. ВТБ предлагает различные финансовые продукты для физических и юридических лиц, включая кредиты, вклады, инвестиционные решения и карты."
},
{
"name": "Тинькофф Банк",
"description": "Несмотря на то что у Тинькофф нет традиционных офисов в Казани, его продукты и услуги доступны в городе через онлайн-банкинг и удаленное обслуживание. Тинькофф предлагает выгодные условия по кредитным картам, вклады, а также услуги для малого и среднего бизнеса."
},
{
"name": "Альфа-Банк",
"description": "Один из крупных частных банков в России, с офисами в Казани. Альфа-Банк предлагает стандартные банковские услуги, такие как кредиты, депозиты, карты, а также инвестиционные и страховые продукты."
},
{
"name": "Россельхозбанк",
"description": "В Казани также присутствует Россельхозбанк, специализирующийся на обслуживании агропромышленного комплекса, но также предоставляет услуги для физических и юридических лиц, включая кредиты, депозиты и карты."
},
{
"name": "РБК Банк",
"description": "Российский банк с рядом офисов и банкоматов в Казани. Предлагает кредиты, карты, депозиты, а также обслуживание для бизнеса."
},
{
"name": "Банк Санкт-Петербург",
"description": "Местный банк, который также предоставляет услуги в Казани. Предлагает широкий выбор банковских продуктов для частных лиц и бизнеса."
}
],
"hospitals": [
{
"name": "Казанская городская клиническая больница №1",
"description": "Одна из крупнейших многопрофильных больниц Казани, предлагающая услуги в области хирургии, травматологии, неврологии, кардиологии и других медицинских направлений. Современные технологии и высококвалифицированный персонал."
},
{
"name": "Республиканская клиническая больница",
"description": "Основная медицинская организация Республики Татарстан, предоставляющая широкий спектр услуг для взрослых и детей, включая экстренную помощь, высокотехнологичные операции и диагностику."
},
{
"name": "Городская больница №7",
"description": "Больница, специализирующаяся на оказании медицинской помощи в области терапевтической, хирургической и реанимационной медицины. В больнице работают опытные специалисты, используемые современные методы лечения."
},
{
"name": "Казанская детская клиническая больница",
"description": "Профильное медицинское учреждение для детей, которое предоставляет услуги по лечению заболеваний, связанных с педиатрией, хирургией, кардиологией и другими направлениями для детей всех возрастов."
},
{
"name": "Казанский онкологический диспансер",
"description": "Медицинское учреждение, специализирующееся на лечении онкологических заболеваний. Использует новейшие методы диагностики и лечения рака, включая химиотерапию, радиотерапию и операционные вмешательства."
},
{
"name": "Городская больница №18",
"description": "Многопрофильное медицинское учреждение, предлагающее лечение в различных областях медицины, включая травматологию, неврологию и кардиологию. В больнице есть отделение для реабилитации пациентов после тяжелых заболеваний."
},
{
"name": "Республиканская больница для ветеранов войн",
"description": "Медицинское учреждение, оказывающее специализированную помощь ветеранам Великой Отечественной войны, инвалидам и пожилым людям. Также предлагает широкий спектр услуг для граждан с хроническими заболеваниями."
}
],
"pharmacies": [
{
"name": "Аптека 36,6",
"description": "Сеть аптек с большим ассортиментом лекарственных средств, витаминов, косметики и товаров для здоровья. Программы лояльности и онлайн-заказы для удобства клиентов."
},
{
"name": "Ригла",
"description": "Одна из крупнейших аптечных сетей в России. Предлагает широкий выбор лекарств, медицинских товаров и косметики. Также предоставляет возможность заказа через интернет."
},
{
"name": "Здоровая семья",
"description": "Аптечная сеть, ориентированная на продажу лекарств и товаров для здоровья, включая медицинскую технику. Часто проводятся акции и скидки на популярные товары."
},
{
"name": "Аптечная сеть 'А5'",
"description": "Аптеки, предлагающие широкий ассортимент товаров, включая лекарства, витамины, косметику и товары для детей. Удобные услуги доставки и онлайн-заказов."
},
{
"name": "Аптека 'Самсон-Фарма'",
"description": "Сеть аптек, предоставляющая клиентам все необходимые лекарства и товары для здоровья. Аптеки предлагают различные программы скидок и бонусов для постоянных клиентов."
},
{
"name": "Аптечная сеть 'Цветной'",
"description": "Аптеки, известные своими удобными местоположениями и качественным обслуживанием. В продаже лекарства, витамины, товары для ухода за собой и медтехника."
},
{
"name": "Аптека 'Доктор Столетов'",
"description": "Сеть аптек, ориентированная на продажу фармацевтической продукции, медицинских товаров и косметики. Удобный сервис и акции для клиентов."
}
],
"airports": [
{
"name": "Международный аэропорт Казань",
"description": "Главный аэропорт города Казани, обслуживающий международные и внутренние рейсы. Аэропорт оснащен современными терминалами, удобными зонами ожидания, магазинами и ресторанами. Он является одним из крупнейших в Поволжье и важным транспортным узлом для Татарстана."
},
{
"name": "Казань-2 (когда был действующим)",
"description": "Ранее используемый аэропорт для внутренних рейсов и военных нужд. В настоящее время не функционирует в полном объеме, поскольку все пассажирские рейсы перенаправлены в Международный аэропорт Казань. Здание аэропорта закрыто для коммерческих авиаперевозок."
}
]
}

View File

@ -1,102 +0,0 @@
{
"banks": [
{
"name": "Россия Сбербанкы",
"description": "Россиядәге иң зур һәм популяр банкларның берсе. Казан шәһәрендә күпсанлы бүлекләр һәм банкоматлар бар. Сбербанк киң спектрлы хезмәтләр тәкъдим итә, шул исәптән кредитлар, депозиты, иминиятләштерү, бизнеска хезмәт күрсәтү һәм онлайн-банкчылык."
},
{
"name": "ВТБ",
"description": "Россиядә икенче зурлыктагы банк, Казан шәһәрендә күп санлы офислар һәм банкоматлар белән. ВТБ физик һәм юридик затлар өчен төрле финанс продуктларын тәкъдим итә, шул исәптән кредитлар, депозитлар, инвестицион чишелешләр һәм карталар."
},
{
"name": "Тинькофф Банк",
"description": "Тинькофф Казан шәһәрендә традицион офисларга ия булмаса да, аның продуктлары һәм хезмәтләре шәһәрдә онлайн-банкчылык һәм ерак хезмәт күрсәтү аша тәкъдим ителә. Тинькофф кредит карталары, депозитлар, шулай ук кечкенә һәм урта бизнес өчен хезмәтләр тәкъдим итә."
},
{
"name": "Альфа-Банк",
"description": "Россиядәге зур шәхси банкларның берсе, Казанда офислары белән. Альфа-Банк стандарт банк хезмәтләрен тәкъдим итә, шул исәптән кредитлар, депозитлар, карталар, шулай ук инвестицион һәм иминият продуктлары."
},
{
"name": "Россельхозбанк",
"description": "Казан шәһәрендә Россельхозбанк та бар, ул агропромышленность өлкәсендә хезмәт күрсәтүгә махсуслашкан, ләкин шулай ук физик һәм юридик затлар өчен хезмәтләр тәкъдим итә, шул исәптән кредитлар, депозитлар һәм карталар."
},
{
"name": "РБК Банк",
"description": "Казан шәһәрендә офислары һәм банкоматлары булган Россия банкы. Кредитлар, карталар, депозитлар һәм бизнеска хезмәт күрсәтү тәкъдим итә."
},
{
"name": "Санкт-Петербург Банкы",
"description": "Казан шәһәрендә дә хезмәт күрсәткән җирле банк. Ул шәхси затлар һәм бизнес өчен киң банк продуктлары сайлау тәкъдим итә."
}
],
"hospitals": [
{
"name": "Казан шәһәр клиник хастаханәсе №1",
"description": "Казанның иң зур күппрофильле хастаханәләренең берсе, хирургия, травматология, неврология, кардиология һәм башка медицина юнәлешләре буенча хезмәтләр тәкъдим итә. Замана технологияләре һәм югары квалификацияле персонал."
},
{
"name": "Республиканың клиник хастаханәсе",
"description": "Татарстан Республикасы өчен төп медицина оешмасы, зур спектрдагы хезмәтләрне тәкъдим итә, шул исәптән ашыгыч ярдәм, югары технологияле операцияләр һәм диагностика."
},
{
"name": "Шәһәр хастаханәсе №7",
"description": "Терапевтик, хирургик һәм реанимация медицинасы өлкәсендә медицина ярдәме күрсәтүгә махсуслашкан хастаханә. Хастаханәдә тәҗрибәле белгечләр эшли, заманча дәвалау ысуллары кулланыла."
},
{
"name": "Казан балалар клиник хастаханәсе",
"description": "Балалар өчен профильле медицина учреждениесе, педиатрия, хирургия, кардиология һәм башка юнәлешләр буенча хезмәтләр тәкъдим итә."
},
{
"name": "Казан онкология диспансеры",
"description": "Онкологик авыруларны дәвалауга махсуслашкан медицина учреждениесе. Рак диагнозын һәм дәвалауны үткәрүдә заманча ысуллар кулланыла, шул исәптән химиотерапия, радиотерапия һәм операцияләр."
},
{
"name": "Шәһәр хастаханәсе №18",
"description": "Күппрофильле медицина учреждениесе, төрле медицина өлкәләрендә дәвалау тәкъдим итә, шул исәптән травматология, неврология һәм кардиология. Хастаханәдә авыр авырулардан соң реабилитация бүлекләре бар."
},
{
"name": "Ветераннар өчен республика хастаханәсе",
"description": "Бөек Ватан сугышы ветераннарына, инвалидларга һәм картларга махсус медицина ярдәме күрсәтүче учреждение. Шулай ук хроник авырулары булган гражданнар өчен хезмәтләр тәкъдим итә."
}
],
"pharmacies": [
{
"name": "Аптека 36,6",
"description": "Дәреслекләр, витаминнар, косметика һәм сәламәтлек товарларының киң ассортименты булган аптека челтәре. Лояльлек программалары һәм онлайн-заказлар клиентлар өчен уңайлы."
},
{
"name": "Ригла",
"description": "Россиядәге иң зур аптекалар челтәрләренең берсе. Дәреслекләр, медицина товарлары һәм косметика тәкъдим итә. Шулай ук интернет аша заказ бирү мөмкинлеге бар."
},
{
"name": "Здоровая семья",
"description": "Дәреслекләр һәм сәламәтлек товарлары, шул исәптән медицина техникасы сатуга юнәлдерелгән аптека челтәре. Популяр товарларга акцияләр һәм ташламалар еш үткәрелә."
},
{
"name": "Аптечная сеть 'А5'",
"description": "Дәреслекләр, витаминнар, косметика һәм балалар товарларының киң ассортименты булган аптека челтәре. Уңайлы җибәрү һәм онлайн-заказлар хезмәтләре."
},
{
"name": "Аптека 'Самсон-Фарма'",
"description": "Дәреслекләр һәм сәламәтлек товарлары тәкъдим итә торган аптека челтәре. Аптекалар даими клиентлар өчен скидкалар һәм бонуслар тәкъдим итә."
},
{
"name": "Аптечная сеть 'Цветной'",
"description": "Уңайлы урнашкан һәм сыйфатлы хезмәт күрсәтү белән танылган аптекалар. Дәреслекләр, витаминнар, үз-үзеңне карау товарлары һәм медицина техникасы сатыла."
},
{
"name": "Аптека 'Доктор Столетов'",
"description": "Фармацевтик продукция, медицина товарлары һәм косметика сату белән шөгыльләнгән аптека челтәре. Уңайлы хезмәт һәм клиентлар өчен акцияләр."
}
],
"airports": [
{
"name": "Казан Халыкара Аэропорты",
"description": "Казанның төп аэропорты, халыкара һәм эчке рейсларны башкаручы. Аэропорт заманча терминаллар, уңайлы көтү зоналары, кибетләр һәм рестораннар белән җиһазландырылган. Ул Поволжье төбәгендә иң зур аэропортларның берсе һәм Татарстан өчен мөһим транспорт узелы."
},
{
"name": "Казан-2 (эшләгән вакытта)",
"description": "Элекке эчке рейслар һәм хәрби кирәклекләр өчен кулланылган аэропорт. Хәзерге вакытта тулы көченә эшләми, чөнки барлык пассажир рейслары Казан Халыкара Аэропортына күчерелгән. Аэропорт бинасы коммерция авиаперевозкалары өчен ябык."
}
]
}

View File

@ -1,43 +0,0 @@
[
{
"head": "History of Kazan",
"title": "The official founding date of Kazan is considered to be 1005",
"content": "The city emerged on the Volga River, at the intersection of trade routes between the East and the West."
},
{
"title": "In 1236, these lands were conquered by the troops of Batu Khan",
"content": "With the incorporation of Volga Bulgaria into the administrative system of the Golden Horde, Kazan's role as a border fortress diminished, and trade routes shifted. The defensive role of the stone fortress declined, while Kazan gained greater independence during this period."
},
{
"title": "In 1438, Kazan was captured by Khan Ulugh Muhammad, forming a new state the Kazan Khanate",
"content": "Torn by internal conflicts, the Golden Horde gradually lost its former power and fragmented into separate states."
},
{
"title": "On October 2, 1552, Kazan was captured by Ivan the Terrible",
"content": "After a seven-week siege by a 150,000-strong army, Kazan was taken by storm. This marked the beginning of a new chapter in Kazan's history, as part of the Tsardom of Russia, later the Russian Empire, and the USSR."
},
{
"title": "In 1708, Kazan became the capital of the vast Kazan Governorate",
"content": "As a result of Peter I's reforms, the Russian Empire was divided into eight governorates. The territory of Kazan Governorate was vast, including the voivodeships of Sviyazhsk, Penza, Simbirsk, Ufa, and Astrakhan. Over time, many of them became separate governorates."
},
{
"title": "In 1774, the city was stormed by the troops led by the fugitive Don Cossack Yemelyan Pugachev",
"content": "The rebel troops entered Kazan. Only the Kremlin remained under the control of government forces. However, after a massive fire broke out in Kazan, Pugachev ordered his troops to leave the city. Three days later, his forces were defeated on the Arsk Field."
},
{
"title": "In 1805, Kazan Imperial University was ceremonially opened",
"content": "It became the third most important university in the empire by significance and founding date. For a long period, it was also the easternmost university in the country."
},
{
"title": "In 1918, Kazan briefly became the epicenter of events on the Eastern Front",
"content": "The city changed hands between the Czech legionnaires, the White Army, and the Red Army. Surviving telegrams from Vladimir Lenin of that time highlight the importance attributed to capturing Kazan."
},
{
"title": "With the collapse of the USSR, the national movement in the republic gained momentum, culminating in the creation of the Republic of Tatarstan in 1990, with Kazan as its capital",
"content": "The newfound autonomy of the Republic of Tatarstan from the center and the associated redistribution of financial flows led to economic growth. Several large-scale programs implemented in the 1990s improved the quality of life for city residents."
},
{
"title": "In 2005, the city grandly celebrated its millennium",
"content": "An important milestone in the city's history was the preparation for the celebration of Kazan's Millennium. Several new facilities were built in the years leading up to this date."
}
]

View File

@ -1,43 +0,0 @@
[
{
"head": "История возникновения Казани",
"title": "Официальной датой основания Казани считается  1005 год",
"content": "Город возник на Волге, на пересечении торговых маршрутов между Востоком и Западом."
},
{
"title": "В 1236 году данные земли завоевали войска хана Батыя",
"content": "С включением Волжской Булгарии административную систему Золотой Орды роль Казани как приграничной крепости была утрачена, изменились и торговые пути. Упала защитная роль каменной крепости, а Казань приобрела в тот период большую самостоятельность."
},
{
"title": "В 1438 году Казань захвачена ханом Улуг-Мухамедом, образуется новое государство - Казанское ханство",
"content": "Раздираемая междоусобицами, Золотая Орда со временем растеряла свое былое могущество, распавшись на ряд отдельных государств."
},
{
"title": "Второго октября 1552 года Казань была захвачена Иваном Грозным",
"content": "После семинедельной осады 150-тысячным войском, Казань была взята штурмом. Начинается новая история города Казани, теперь в Московском царстве, а позднее в Российской империи и СССР."
},
{
"title": "В 1708 году Казань становится столицей огромной Казанской губернии",
"content": "В результате реформ Петра I Российская империя была разделена на 8 губерний. Территория Казанской губернии была огромной и включала воеводства: Свияжское, Пензенское, Симбирское, Уфимское и Астраханское. В дальнейшем многие из них стали отдельными губерниями."
},
{
"title": "В 1774 году город штурмуют войска под предводительством беглого донского казака Емельяна Пугачева",
"content": "Войска повстанцев зашли в Казань. Под контролем правительственных войск остался лишь Кремль. Однако после того, как в Казани случился сильный пожар, Пугачеву пришлось отдать приказ воинам выйти из города. Спустя три дня его войска были разбиты на Арском поле."
},
{
"title": "В 1805 году торжественно открывается Казанский Императорский университет",
"content": "Он стал 3 во всей империи по значению и времени основания. Длительный период ВУЗ также был наиболее восточным в стране"
},
{
"title": "В 1918 году Казань на время стала эпицентром событий на Восточном фронте",
"content": "Город переходит из рук чешских легионеров и белой армии в руки красных и обратно. Сохранившиеся телеграммы Владимира Ленина тех лет показывают какое значение придавалось взятию Казани."
},
{
"title": "С распадом СССР в республике начинается подъем национального движения, закончившийся созданием в 1990 году Республики Татарстан в составе Российской Федерации, столицей которой становится Казань",
"content": "С обретением Республикой Татарстан определенной независимости от центра и связанным с этим перераспределением финансовых потоков связан подъем экономики. В 90-е годы прошлого столетия было реализовано несколько масштабных программ, приведших к повышению качества жизни горожан."
},
{
"title": "В 2005 году в мегаполисе с огромным размахом был отмечен миллениум",
"content": "Важной вехой в жизни города стала подготовка к празднованию Тысячелетия Казани. За несколько лет, предшествовавших этой дате были построены новые объекты."
}
]

View File

@ -1,43 +0,0 @@
[
{
"head": "Казан тарихы",
"title": "Казанның нигез салыну датасы 1005 ел",
"content": "Шәһәр Идел елгасы буенда, Көнчыгыш белән Көнбатышны тоташтыручы сәүдә юллары киселешендә барлыкка килгән."
},
{
"title": "1236 елда бу җирләрне Батый хан гаскәрләре яулап ала",
"content": "Идел Болгарстаны Алтын Урда административ системасына кертелгәч, Казанның чик буе ныгытмасы буларак әһәмияте кими, сәүдә юллары үзгәрә. Шул чорда таш ныгытманың саклау функциясе югала, әмма Казан үзенең мөстәкыйльлеген арттыра."
},
{
"title": "1438 елда Казанны Улуг-Мөхәммәт хан яулап ала, һәм яңа дәүләт Казан ханлыгы барлыкка килә",
"content": "Алтын Урда эчке низаглар аркасында элекке куәтен югалта һәм төрле аерым дәүләтләргә бүленеп бетә."
},
{
"title": "1552 елның 2 октябрендә Казан Иван Грозный тарафыннан яулап алына",
"content": "Җиде атналык камау нәтиҗәсендә 150 меңлек гаскәр Казанны штурм белән ала. Казанның Мәскәү дәүләте, соңрак Россия империясе һәм ССРБ тарихына кергән яңа чоры башлана."
},
{
"title": "1708 елда Казан зур Казан губернасының башкаласына әйләнә",
"content": "Петр I реформалары нәтиҗәсендә Россия империясе 8 губернага бүленә. Казан губернасының территориясе киң була, ул Свияжск, Пенза, Симбирск, Уфа һәм Астрахань воеводалыкларын үз эченә ала. Соңрак алар аерым губерналарга әйләнә."
},
{
"title": "1774 елда шәһәргә Емельян Пугачев җитәкчелегендәге качак Дон казаклары гаскәрләре һөҗүм итә",
"content": "Фетнәчеләр Казанга керә. Хөкүмәт гаскәрләре контролендә Кремль генә кала. Әмма шәһәрдә зур янгын чыкканнан соң, Пугачев үз гаскәрләренә шәһәрдән чыгуны боера. Өч көннән соң, аның гаскәрләре Арча кырында тар-мар ителә."
},
{
"title": "1805 елда Казан Император университеты тантаналы рәвештә ачыла",
"content": "Бу университет империядә әһәмияте һәм оешу вакыты буенча өченче була. Ул озак вакыт дәвамында илдәге иң көнчыгыш университет булып тора."
},
{
"title": "1918 елда Казан Көнчыгыш фронт вакыйгаларының үзәгенә әйләнә",
"content": "Шәһәр Чех легионерлары, аклар һәм кызыллар кулына чиратлашып күчә. Владимир Ленинның шул чордагы телеграммалары Казанны алуның никадәр мөһим булганын күрсәтә."
},
{
"title": "ССРБ таркалгач, 1990 елда Татарстан Республикасы төзелә, аның башкаласы Казан була",
"content": "Татарстан Республикасы үзәккә карата мөстәкыйльлек алуга ирешә. Бу финанс агымнарының яңача бүленүенә китерә, һәм шәһәрдә икътисади үсеш башлана. Узган гасырның 90нчы елларында шәһәр халкының тормыш сыйфатын күтәрүгә юнәлдерелгән берничә зур программа гамәлгә ашырыла."
},
{
"title": "2005 елда Казан меңьеллыгын зур тантана белән билгеләп үтә",
"content": "Казанның Меңьеллыгын бәйрәм итүгә әзерлек шәһәр тарихында мөһим вакыйга булды. Әлеге датадан алда берничә ел эчендә яңа объектлар төзелде."
}
]

View File

@ -1,10 +0,0 @@
{
"first": "Kazan is one of the largest cultural centers in Russia, preserving classical achievements while also promoting the development of modern, avant-garde directions in many areas of culture. The capital of Tatarstan is traditionally called 'multicultural,' implying the mutually enriching coexistence of Russian and Tatar cultures.",
"second": {
"head": "Culture",
"body": [
"The republic is home to peoples with different historical backgrounds and cultural traditions. The combination of at least three types of cultural interactions (Turkic, Slavic-Russian, and Finno-Ugric) defines the uniqueness of these places, as well as the originality of their cultural and historical values.",
"Tatarstan is associated with the fates of many outstanding cultural figures: singer Fyodor Chaliapin, writers Leo Tolstoy, Sergey Aksakov, and Maxim Gorky, Vasily Aksyonov, poets Yevgeny Baratynsky, Gavriil Derzhavin, Marina Tsvetaeva, and Nikita Zabolotsky, artists Ivan Shishkin and Nikolay Feshin. The classic of Tatar poetry Gabdulla Tukay, hero-poet Musa Jalil, composers Farid Yarullin, Salikh Saidashev, Nazib Zhiganov, Sofia Gubaidulina, and many others brought glory to Tatar culture."
]
}
}

View File

@ -1,10 +0,0 @@
{
"first": "Казань является одним из крупнейших культурных центров России, сохраняя классические достижения, а также способствуя развитию современных, авангардных направлений во многих областях культуры. Столицу Татарстана традиционно называют «мультикультурной», подразумевая взаимовыгодное обогащение мирно сосуществующих русской и татарской культур.",
"second": {
"head": "Культура",
"body": [
"В республике проживают народы с разным историческим прошлым и культурными традициями. Сочетание по крайней мере трёх типов культурных взаимовлияний (тюркского, славяно-русского и финно-угорского) определяет уникальность этих мест, своеобразие культурных и исторических ценностей.",
"С Татарстаном связаны судьбы многих выдающихся деятелей культуры: певца Фёдора Шаляпина, писателей Льва Толстого, Сергея Аксакова и Максима Горького, Василия Аксёнова, поэтов Евгения Боратынского, Гавриила Державина, Марины Цветаевой и Никиты Заболоцкого, художников Ивана Шишкина и Николая Фешина. Классик татарской поэзии Габдулла Тукай, поэт-герой Муса Джалиль, композиторы Фарид Яруллин, Салих Сайдашев, Назиб Жиганов, София Губайдулина и многие другие составили славу татарской культуры."
]
}
}

View File

@ -1,10 +0,0 @@
{
"first": "Казан Россиянең иң зур мәдәни үзәкләренең берсе булып тора, классик казанышларны саклап кына калмыйча, мәдәниятнең күп төрле өлкәләрендә заманча, авангард юнәлешләрне үстерүгә дә булышлык итә. Татарстан башкаласын традицион рәвештә «мультикультуралы» дип атыйлар, бу тыныч яшәүче рус һәм татар мәдәниятләренең үзара баетылуын аңлата.",
"second": {
"head": "Мәдәният",
"body": [
"Республикада төрле тарихи үткәне һәм мәдәни традицияләре булган халыклар яши. Өч төп мәдәни үзара йогынты (төрки, славян-рус һәм фин-угор) кушылуы әлеге төбәкләрнең уникальлеген, мәдәни һәм тарихи кыйммәтләрнең үзенчәлеген билгели.",
"Татарстан белән күп күренекле мәдәният эшлеклеләренең язмышлары бәйле: җырчы Фёдор Шаляпин, язучылар Лев Толстой, Сергей Аксаков һәм Максим Горький, Василий Аксёнов, шагыйрьләр Евгений Боратынский, Гавриил Державин, Марина Цветаева һәм Никита Заболоцкий, рәссамнар Иван Шишкин һәм Николай Фешин. Татар шигъриятенең классигы Габдулла Тукай, герой-шагыйрь Муса Җәлил, композиторлар Фәрит Яруллин, Салих Сәйдәшев, Нәҗип Җиһанов, София Гобәйдуллина һәм башка бик күпләр татар мәдәниятенә дан китергән."
]
}
}

View File

@ -1,78 +0,0 @@
[
{
"id": "1",
"type": "Sights",
"image": "kremlin",
"head": "Kremlin",
"text": "The construction of the fortress continued from the 10th to the 16th century. After Kazan was conquered by Ivan the Terrible in 1552, the Tatar Kremlin was destroyed. On its site, Pskov architects built massive white stone walls, leaving only a few fragments of the old structure. In the 18th century, the Kremlin lost its military significance but remained an administrative and cultural center of the Volga region for a long time."
},
{
"id": "2",
"image": "kulsharif",
"head": "Kul Sharif Mosque",
"text": "This is one of Kazan's landmarks. Moreover, Kul Sharif is also the main Juma Mosque of Tatarstan. Its construction began in 1996 to restore an important architectural relic of the Kazan Khanate, destroyed by Ivan the Terrible's troops in 1552. The mosque was named in honor of the last imam of Kazan, Kul Sharif."
},
{
"id": "3",
"image": "suumbike",
"head": "Suyumbike Tower",
"text": "The structure was first mentioned in documents in 1703, but there is no exact information about its construction date or the origin of its name. According to one version, it was a watchtower because its top provides a good view of the surroundings as well as the Kazanka and Volga rivers."
},
{
"id": "4",
"type": "Active leisure",
"image": "cyrc",
"head": "Kazan Circus",
"text": "One of the striking monuments of Soviet modernism. From afar, the circus building resembles a flying saucer. This 'cosmic' shape was achieved after a major reconstruction in 1967. Avant-garde architectural and engineering solutions were used for its construction."
},
{
"id": "5",
"image": "park",
"head": "URAM Extreme Park",
"text": "URAM is the largest extreme park in Russia, consisting of two parts - open and indoor. The outdoor section, which combines professional extreme zones and walking areas, opened in the summer of 2020 and has become one of the most popular public spaces in Kazan, as well as a place where athletes prepared for world-class competitions, such as the Tokyo Olympics."
},
{
"id": "6",
"image": "zoo",
"head": "Zambezi River Zoo",
"text": "The Zambezi River Zoo in Kazan is one of the oldest zoological gardens in Europe. It offers an exciting journey into the world of animals and plants. This unique place allows visitors to enjoy the richness of flora and fauna. It features diverse exhibits, including animals from various continents, from exotic species to local inhabitants."
},
{
"id": "7",
"type": "Theatres and museums",
"head": "Ekiyat Puppet Theater",
"text": "The Ekiyat Puppet Theater in Kazan represents a unique combination of traditional and contemporary art. It is known for its vibrant performances that attract the attention of both children and adults. Located in the city center, it has become an integral part of the region's cultural life.",
"image": "akiyat"
},
{
"id": "8",
"head": "Opera and Ballet Theater",
"text": "The Opera and Ballet Theater in Kazan is the pinnacle of musical and theatrical art in the region. It allows audiences to enjoy high-class opera performances and magnificent ballet shows that leave unforgettable impressions.",
"image": "opera"
},
{
"id": "9",
"head": "K. Tinchurin Theater",
"text": "The Tinchurin Theater embodies the traditions of classical art, offering audiences a wide range of performances, from dramas and comedies to musicals and ballets. The history of the K. Tinchurin Theater spans decades of art and cultural heritage.",
"image": "tinchurina"
},
{
"id": "10",
"type": "Food and drinks",
"head": "Tubetey",
"text": "Tubetey is a cozy establishment in Kazan offering visitors a wide selection of Tatar cuisine dishes in an atmosphere of hospitality and comfort. Here, you can enjoy Tatar dishes such as chak-chak, kebabs, manti, and more.",
"image": "tubetey"
},
{
"id": "11",
"head": "MORE & MORE",
"text": "This restaurant specializes in seafood and fish. The More & More restaurant is a conceptual project by ALBA GROUP with a focus on seafood and wine. By Kazan standards, the place is expensive, but the dishes and ingredients justify the cost.",
"image": "more"
},
{
"id": "12",
"head": "Paloma Cantina",
"text": "Paloma Cantina is a Mexican cafe. It was opened by the founders of the St. Petersburg bar El Copitas, which was included in the global ranking of The Worlds 50 Best Bars. If you feel lonely in Kazan or want bright colors, this is the place to go.",
"image": "paloma"
}
]

View File

@ -1,78 +0,0 @@
[
{
"id": "1",
"type": "Күренекле урыннар",
"image": "kremlin",
"head": "Кремль",
"text": "Крепость төзелеше X гасырдан XVI гасырга кадәр дәвам иткән. 1552 елда Иван Грозный Казанны яулап алгач, татар кремле җимерелгән. Аның урынында псков архитекторлары көчле ак таштан диварлар төзегән, иске корылманың кайбер өлешләрен генә калдырган. XVIII гасырда кремль хәрби әһәмиятен югалткан, ләкин озак вакыт административ һәм мәдәни үзәк булып калган."
},
{
"id": "2",
"image": "kulsharif",
"head": "Кул Шәриф мәчете",
"text": "Бу Казанның символларыннан берсе. Моннан тыш, Кул Шәриф Татарстанның төп Җомга мәчете дә. Аның төзелеше 1996 елда Казан ханлыгының Иван Грозный гаскәрләре тарафыннан җимерелгән әһәмиятле архитектур истәлеген торгызу өчен башланган. Мәчет Казанның соңгы имамы Кул Шәриф хөрмәтенә аталган."
},
{
"id": "3",
"image": "suumbike",
"head": "Сөембикә манарасы",
"text": "Корылма документларда беренче тапкыр 1703 елда искә алына, ләкин төзелеш датасы һәм исеме килеп чыгышы турында төгәл мәгълүмат юк. Бер версия буенча, ул каравыл манарасы булган, чөнки аның өстеннән тирә-юнь, шулай ук Казанка һәм Идел елгалары яхшы күренгән."
},
{
"id": "4",
"type": "Актив ял",
"image": "cyrc",
"head": "Казан циркы",
"text": "Совет модернизмының якты истәлекләреннән берсе. Ерактан цирк бинасы очучы тәлинкәгә охшаган. Мондый 'галәми' форма ул 1967 елдагы масштаблы реконструкциядән соң алган. Аның төзелешендә авангард архитектура һәм инженерлык карарлары кулланылган."
},
{
"id": "5",
"image": "park",
"head": "УРАМ Экстрим-паркы",
"text": "УРАМ — Россиядә иң зур экстрим-парк, ул ике өлештән тора — ачык һәм ябык. Профессиональ экстрим зоналар һәм йөрү урыннарын берләштергән урам өлеше 2020 елның җәендә ачылган һәм Казанның иң популяр җәмәгать урыннарының берсенә әйләнгән, шулай ук дөньякүләм ярышларга, мәсәлән, Токио Олимпиадасына әзерләнү урыны булган."
},
{
"id": "6",
"image": "zoo",
"head": "Замбези елгасы зоопаркы",
"text": "Казан зооботсады — Европадагы иң борынгы зооботсадларның берсе. Хайваннар һәм үсемлекләр дөньясына мавыктыргыч сәяхәт тәкъдим итә. Бу уникаль урын, анда кунаклар флора һәм фаунаның байлыгына соклана ала. Ул төрле континентлардан хайваннарны, экзотик төрләрдән башлап җирле вәкилләргә кадәр тәкъдим итә."
},
{
"id": "7",
"type": "Театрлар һәм музейлар",
"head": "Әкият курчак театры",
"text": "Казандагы Әкият курчак театры традицион һәм заманча сәнгатьнең уникаль кушылмасын тәкъдим итә. Ул балалар һәм олылар игътибарын җәлеп итүче якты тамашалары белән дан казанган. Шәһәр үзәгендә урнашкан, ул төбәкнең мәдәни тормышының аерылгысыз өлешенә әйләнгән.",
"image": "akiyat"
},
{
"id": "8",
"head": "Опера һәм балет театры",
"text": "Казандагы опера һәм балет театры төбәктәге музыкаль һәм театр сәнгатенең иң югары ноктасы булып тора. Ул тамашачыларга югары сыйфатлы опера куюлар һәм онытылмас тәэсирләр калдырган искиткеч балет спектакльләре белән хозурланырга мөмкинлек бирә.",
"image": "opera"
},
{
"id": "9",
"head": "К. Тинчурин театры",
"text": "Тинчурин театры классик сәнгать традицияләрен үз эченә ала, тамашачыларга драмалар һәм комедияләрдән алып мюзикл һәм балетларга кадәр төрле спектакльләр тәкъдим итә. К. Тинчурин театрының тарихы дистә еллык сәнгать һәм мәдәни мирасны үз эченә ала.",
"image": "tinchurina"
},
{
"id": "10",
"type": "Аш-су һәм эчемлекләр",
"head": "Түбәтәй",
"text": "Түбәтәй — Казанда кунакларга татар кухнясы ризыкларын кунакчыллык һәм уңайлык атмосферасында тәкъдим итүче җылы урын. Биредә чәк-чәк, шашлык, манты һәм башка татар ризыклары белән хозурланырга мөмкин.",
"image": "tubetey"
},
{
"id": "11",
"head": "MORE & MORE",
"text": "Бу ресторан диңгез продуктлары һәм балыкка махсуслашкан. More & More рестораны — ALBA GROUP-ның seafood һәм wine юнәлешенә басым ясаган концептуаль проекты. Казан стандартлары буенча урын кыйммәтле, ләкин ризыклар һәм ингредиентлар чыгымны аклый.",
"image": "more"
},
{
"id": "12",
"head": "Палома Кантина",
"text": "Палома Кантина — мексикан кафесы. Ул Санкт-Петербургтагы El Copitas барын ачкан оештыручылар тарафыннан ачылган, ул The Worlds 50 Best Bars исемлегенә кергән. Әгәр дә Казанда сез үзегезне ялгыз хис итсәгез яки якты төсләр теләсәгез, сезгә монда килергә кирәк.",
"image": "paloma"
}
]

View File

@ -1,23 +0,0 @@
{
"ru": {
"title": "Казань - спортивная столица России",
"descriptions": [
"Республики Татарстан, является одним из самых развитых в спортивном плане городов России, а также одним из лидеров по числу побед в различных видах спорта.",
"И это вполне заслужено: в городе проходили Универсиада, Чемпионат мира FINA по водным видам спорта, матчи Кубка конфедераций FIFA, Чемпионата мира по футболу и другое. Все эти события способствовали спортивному обустройству города и развитию инфраструктуры в сфере спорта."
]
},
"en": {
"title": "Kazan - The Sports Capital of Russia",
"descriptions": [
"The Republic of Tatarstan is one of the most developed cities in Russia in terms of sports and also a leader in the number of victories in various sports.",
"And this is well deserved: the city hosted the Universiade, the FINA World Championships in Aquatic Sports, FIFA Confederations Cup matches, the FIFA World Cup, and more. All these events contributed to the city's sports development and the improvement of sports infrastructure."
]
},
"tt": {
"title": "Казан - Россиянең спорт башкаласы",
"descriptions": [
"Татарстан Республикасы спорт ягыннан Россиянең иң үсеш алган шәһәрләреннән берсе, шулай ук төрле спорт төрләрендә җиңүләр саны буенча лидерларның берсе.",
"Бу бушлай түгел: шәһәрдә Универсиада, FINA су спорт төрләре буенча дөнья чемпионаты, FIFA Конфедерацияләр Кубогы уеннары, футбол буенча дөнья чемпионаты һәм башка чаралар узды. Бу вакыйгалар шәһәрнең спорт үсешенә һәм спорт инфраструктурасының камилләшүенә зур өлеш кертте."
]
}
}

Some files were not shown because too many files have changed in this diff Show More