From 1c4aef92e8d0d35a07ce9968433cab2fd6274e97 Mon Sep 17 00:00:00 2001 From: RailTH Date: Fri, 17 May 2024 14:52:16 +1100 Subject: [PATCH] Code commenting & making code better The same --- SusMarketBackend/migrations/0001_initial.py | 4 +- reactapp/build/asset-manifest.json | 6 +- reactapp/build/index.html | 2 +- reactapp/build/static/js/main.142d0adb.js | 3 - reactapp/build/static/js/main.142d0adb.js.map | 1 - reactapp/build/static/js/main.29450137.js | 3 + ...CENSE.txt => main.29450137.js.LICENSE.txt} | 0 reactapp/build/static/js/main.29450137.js.map | 1 + reactapp/src/App.tsx | 40 +++++-- reactapp/src/components/CatalogMenu.tsx | 46 ++++---- reactapp/src/components/Header.tsx | 19 +--- reactapp/src/components/LoginMenu.tsx | 6 +- reactapp/src/components/PopupMap.tsx | 10 +- reactapp/src/components/ProfilePurchases.tsx | 5 +- reactapp/src/components/Review.tsx | 83 +++++++------- reactapp/src/components/ReviewForm.tsx | 104 ++++++++++++------ reactapp/src/pages/HomePage.tsx | 19 ++-- reactapp/src/pages/InfoPage.tsx | 13 ++- reactapp/src/pages/PaymentPage.tsx | 56 ++++++---- reactapp/src/pages/ProductPage.tsx | 11 +- reactapp/src/pages/ProfilePage.tsx | 2 +- 21 files changed, 248 insertions(+), 186 deletions(-) delete mode 100644 reactapp/build/static/js/main.142d0adb.js delete mode 100644 reactapp/build/static/js/main.142d0adb.js.map create mode 100644 reactapp/build/static/js/main.29450137.js rename reactapp/build/static/js/{main.142d0adb.js.LICENSE.txt => main.29450137.js.LICENSE.txt} (100%) create mode 100644 reactapp/build/static/js/main.29450137.js.map diff --git a/SusMarketBackend/migrations/0001_initial.py b/SusMarketBackend/migrations/0001_initial.py index ad03474..cf62953 100644 --- a/SusMarketBackend/migrations/0001_initial.py +++ b/SusMarketBackend/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.1 on 2024-05-14 07:21 +# Generated by Django 4.1 on 2024-05-16 07:15 import django.core.validators from django.db import migrations, models @@ -61,7 +61,7 @@ class Migration(migrations.Migration): ('id', models.AutoField(db_index=True, primary_key=True, serialize=False, unique=True, verbose_name='ID Отзыва')), ('commentary', models.TextField(max_length=300, verbose_name='Комментарий отзыва')), ('rate', models.PositiveIntegerField(validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(5)], verbose_name='Оценка')), - ('icons', models.TextField(null=True, verbose_name='Изображение отзыва в BASE64')), + ('icons', models.TextField(blank=True, null=True, verbose_name='Изображение отзыва в BASE64')), ('date', models.DateTimeField(auto_now=True, verbose_name='Дата создания отзыва')), ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='SusMarketBackend.product')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='SusMarketBackend.user')), diff --git a/reactapp/build/asset-manifest.json b/reactapp/build/asset-manifest.json index fcecae8..458335c 100644 --- a/reactapp/build/asset-manifest.json +++ b/reactapp/build/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/static/css/main.f8545ce2.css", - "main.js": "/static/js/main.142d0adb.js", + "main.js": "/static/js/main.29450137.js", "static/media/scam-image.png": "/static/media/scam-image.c6c14289dc251ba2d2b1.png", "static/media/info-page__railth-avatar.png": "/static/media/info-page__railth-avatar.cbf11c43b5ef243b38c0.png", "static/media/add.webp": "/static/media/add.cd69f1e2a8c91109db0f.webp", @@ -14,10 +14,10 @@ "static/media/rating__filled-star-icon.svg": "/static/media/rating__filled-star-icon.dc7d908d4d943b7f3b56.svg", "index.html": "/index.html", "main.f8545ce2.css.map": "/static/css/main.f8545ce2.css.map", - "main.142d0adb.js.map": "/static/js/main.142d0adb.js.map" + "main.29450137.js.map": "/static/js/main.29450137.js.map" }, "entrypoints": [ "static/css/main.f8545ce2.css", - "static/js/main.142d0adb.js" + "static/js/main.29450137.js" ] } \ No newline at end of file diff --git a/reactapp/build/index.html b/reactapp/build/index.html index 5c5f854..53dc67e 100644 --- a/reactapp/build/index.html +++ b/reactapp/build/index.html @@ -1 +1 @@ -SusMarket
\ No newline at end of file +SusMarket
\ No newline at end of file diff --git a/reactapp/build/static/js/main.142d0adb.js b/reactapp/build/static/js/main.142d0adb.js deleted file mode 100644 index 77e8d09..0000000 --- a/reactapp/build/static/js/main.142d0adb.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see main.142d0adb.js.LICENSE.txt */ -(()=>{"use strict";var e={463:(e,t,n)=>{var r=n(791),a=n(296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n