├── .gitignore
├── Procfile
├── README.md
├── backend
├── __init__.py
├── __pycache__
│ ├── __init__.cpython-39.pyc
│ ├── settings.cpython-39.pyc
│ ├── urls.cpython-39.pyc
│ └── wsgi.cpython-39.pyc
├── asgi.py
├── settings.py
├── urls.py
└── wsgi.py
├── base
├── __init__.py
├── __pycache__
│ ├── __init__.cpython-39.pyc
│ ├── admin.cpython-39.pyc
│ ├── apps.cpython-39.pyc
│ ├── models.cpython-39.pyc
│ ├── products.cpython-39.pyc
│ ├── serializers.cpython-39.pyc
│ ├── signals.cpython-39.pyc
│ ├── urls.cpython-39.pyc
│ └── views.cpython-39.pyc
├── admin.py
├── apps.py
├── migrations
│ ├── 0001_initial.py
│ ├── 0002_order_orderitem_review_shippingaddress.py
│ ├── 0003_product_image.py
│ ├── 0004_auto_20210820_1717.py
│ ├── 0005_alter_order_createdat.py
│ ├── 0006_alter_product_image.py
│ ├── 0007_review_createdat.py
│ ├── 0008_alter_review_createdat.py
│ ├── 0009_alter_product_image.py
│ ├── 0010_alter_product_image.py
│ ├── __init__.py
│ └── __pycache__
│ │ ├── 0001_initial.cpython-39.pyc
│ │ ├── 0002_order_orderitem_review_shippingaddress.cpython-39.pyc
│ │ ├── 0003_product_image.cpython-39.pyc
│ │ ├── 0004_auto_20210820_1717.cpython-39.pyc
│ │ ├── 0005_alter_order_createdat.cpython-39.pyc
│ │ ├── 0006_alter_product_image.cpython-39.pyc
│ │ ├── 0007_review_createdat.cpython-39.pyc
│ │ ├── 0008_alter_review_createdat.cpython-39.pyc
│ │ ├── 0009_alter_product_image.cpython-39.pyc
│ │ ├── 0010_alter_product_image.cpython-39.pyc
│ │ └── __init__.cpython-39.pyc
├── models.py
├── products.py
├── serializers.py
├── signals.py
├── tests.py
├── urls
│ ├── __pycache__
│ │ ├── order_urls.cpython-39.pyc
│ │ ├── product_urls.cpython-39.pyc
│ │ └── user_urls.cpython-39.pyc
│ ├── order_urls.py
│ ├── product_urls.py
│ └── user_urls.py
└── views
│ ├── __pycache__
│ ├── order_views.cpython-39.pyc
│ ├── product_views.cpython-39.pyc
│ └── user_views.cpython-39.pyc
│ ├── order_views.py
│ ├── product_views.py
│ └── user_views.py
├── db.sqlite3
├── frontend
├── .gitignore
├── README.md
├── build
│ ├── asset-manifest.json
│ ├── favicon.ico
│ ├── images
│ │ ├── airpods.jpg
│ │ ├── alexa.jpg
│ │ ├── camera.jpg
│ │ ├── mouse.jpg
│ │ ├── phone.jpg
│ │ ├── playstation.jpg
│ │ └── sample.jpg
│ ├── index.html
│ ├── logo192.png
│ ├── logo512.png
│ ├── manifest.json
│ ├── robots.txt
│ └── static
│ │ ├── css
│ │ ├── main.9cd215a4.chunk.css
│ │ └── main.9cd215a4.chunk.css.map
│ │ ├── js
│ │ ├── 2.548bc473.chunk.js
│ │ ├── 2.548bc473.chunk.js.LICENSE.txt
│ │ ├── 2.548bc473.chunk.js.map
│ │ ├── 3.3989fcd6.chunk.js
│ │ ├── 3.3989fcd6.chunk.js.map
│ │ ├── main.bf0f7af9.chunk.js
│ │ ├── main.bf0f7af9.chunk.js.map
│ │ ├── runtime-main.b3325d9b.js
│ │ └── runtime-main.b3325d9b.js.map
│ │ └── media
│ │ └── logo.462f53c2.png
├── package-lock.json
├── package.json
├── public
│ ├── favicon.ico
│ ├── images
│ │ ├── airpods.jpg
│ │ ├── alexa.jpg
│ │ ├── camera.jpg
│ │ ├── mouse.jpg
│ │ ├── phone.jpg
│ │ ├── playstation.jpg
│ │ └── sample.jpg
│ ├── index.html
│ ├── logo192.png
│ ├── logo512.png
│ ├── manifest.json
│ └── robots.txt
└── src
│ ├── App.js
│ ├── actions
│ ├── cartActions.js
│ ├── orderActions.js
│ ├── productActions.js
│ └── userActions.js
│ ├── bootstrap.min.css
│ ├── components
│ ├── CheckoutSteps.js
│ ├── Footer.js
│ ├── FormContainer.js
│ ├── Header.js
│ ├── Loader.js
│ ├── Message.js
│ ├── Paginate.js
│ ├── Product.js
│ ├── ProductCarousel.js
│ ├── Rating.js
│ └── SearchBox.js
│ ├── constants
│ ├── cartConstants.js
│ ├── orderConstants.js
│ ├── productConstants.js
│ └── userConstants.js
│ ├── index.css
│ ├── index.js
│ ├── logo.png
│ ├── products.js
│ ├── reducers
│ ├── cartReducers.js
│ ├── orderReducers.js
│ ├── productReducers.js
│ └── userReducers.js
│ ├── reportWebVitals.js
│ ├── screens
│ ├── CartScreen.js
│ ├── HomeScreen.js
│ ├── LoginScreen.js
│ ├── OrderListScreen.js
│ ├── OrderScreen.js
│ ├── PaymentScreen.js
│ ├── PlaceOrderScreen.js
│ ├── ProductEditScreen.js
│ ├── ProductListScreen.js
│ ├── ProductScreen.js
│ ├── ProfileScreen.js
│ ├── RegisterScreen.js
│ ├── ShippingScreen.js
│ ├── UserEditScreen.js
│ └── UserListScreen.js
│ └── store.js
├── manage.py
├── media
└── images
│ ├── demon_bluray.jpg
│ ├── eren_figure.jpg
│ ├── fma.jpg
│ ├── goku_veg_figure.jpg
│ ├── ichigo_shirt.jpg
│ ├── itachi.jpg
│ ├── juju.jpg
│ ├── levi_figure.jpg
│ ├── mat.jpg
│ ├── mikasajacket.jpg
│ ├── naruto_figure.jpg
│ ├── nezu.jpg
│ ├── placeholder.png
│ ├── puzzle.jpg
│ ├── shinobu_figure.jpg
│ ├── stone.jpg
│ └── vegito.jpg
├── requirements.txt
├── runtime.txt
├── ss
├── ss1.png
├── ss2.png
├── ss3.png
├── ss4.png
├── ss5.png
└── ss6.png
├── static
└── images
│ ├── demon_bluray.jpg
│ ├── eren_figure.jpg
│ ├── fma.jpg
│ ├── goku_veg_figure.jpg
│ ├── ichigo_shirt.jpg
│ ├── itachi.jpg
│ ├── juju.jpg
│ ├── levi_figure.jpg
│ ├── mat.jpg
│ ├── mikasajacket.jpg
│ ├── naruto_figure.jpg
│ ├── nezu.jpg
│ ├── puzzle.jpg
│ ├── shinobu_figure.jpg
│ ├── stone.jpg
│ └── vegito.jpg
└── staticfiles
├── admin
├── css
│ ├── autocomplete.css
│ ├── base.css
│ ├── changelists.css
│ ├── dashboard.css
│ ├── fonts.css
│ ├── forms.css
│ ├── login.css
│ ├── nav_sidebar.css
│ ├── responsive.css
│ ├── responsive_rtl.css
│ ├── rtl.css
│ ├── vendor
│ │ └── select2
│ │ │ ├── LICENSE-SELECT2.md
│ │ │ ├── select2.css
│ │ │ └── select2.min.css
│ └── widgets.css
├── fonts
│ ├── LICENSE.txt
│ ├── README.txt
│ ├── Roboto-Bold-webfont.woff
│ ├── Roboto-Light-webfont.woff
│ └── Roboto-Regular-webfont.woff
├── img
│ ├── LICENSE
│ ├── README.txt
│ ├── calendar-icons.svg
│ ├── gis
│ │ ├── move_vertex_off.svg
│ │ └── move_vertex_on.svg
│ ├── icon-addlink.svg
│ ├── icon-alert.svg
│ ├── icon-calendar.svg
│ ├── icon-changelink.svg
│ ├── icon-clock.svg
│ ├── icon-deletelink.svg
│ ├── icon-no.svg
│ ├── icon-unknown-alt.svg
│ ├── icon-unknown.svg
│ ├── icon-viewlink.svg
│ ├── icon-yes.svg
│ ├── inline-delete.svg
│ ├── search.svg
│ ├── selector-icons.svg
│ ├── sorting-icons.svg
│ ├── tooltag-add.svg
│ └── tooltag-arrowright.svg
└── js
│ ├── SelectBox.js
│ ├── SelectFilter2.js
│ ├── actions.js
│ ├── admin
│ ├── DateTimeShortcuts.js
│ └── RelatedObjectLookups.js
│ ├── autocomplete.js
│ ├── calendar.js
│ ├── cancel.js
│ ├── change_form.js
│ ├── collapse.js
│ ├── core.js
│ ├── inlines.js
│ ├── jquery.init.js
│ ├── nav_sidebar.js
│ ├── popup_response.js
│ ├── prepopulate.js
│ ├── prepopulate_init.js
│ ├── urlify.js
│ └── vendor
│ ├── jquery
│ ├── LICENSE.txt
│ ├── jquery.js
│ └── jquery.min.js
│ ├── select2
│ ├── LICENSE.md
│ ├── i18n
│ │ ├── af.js
│ │ ├── ar.js
│ │ ├── az.js
│ │ ├── bg.js
│ │ ├── bn.js
│ │ ├── bs.js
│ │ ├── ca.js
│ │ ├── cs.js
│ │ ├── da.js
│ │ ├── de.js
│ │ ├── dsb.js
│ │ ├── el.js
│ │ ├── en.js
│ │ ├── es.js
│ │ ├── et.js
│ │ ├── eu.js
│ │ ├── fa.js
│ │ ├── fi.js
│ │ ├── fr.js
│ │ ├── gl.js
│ │ ├── he.js
│ │ ├── hi.js
│ │ ├── hr.js
│ │ ├── hsb.js
│ │ ├── hu.js
│ │ ├── hy.js
│ │ ├── id.js
│ │ ├── is.js
│ │ ├── it.js
│ │ ├── ja.js
│ │ ├── ka.js
│ │ ├── km.js
│ │ ├── ko.js
│ │ ├── lt.js
│ │ ├── lv.js
│ │ ├── mk.js
│ │ ├── ms.js
│ │ ├── nb.js
│ │ ├── ne.js
│ │ ├── nl.js
│ │ ├── pl.js
│ │ ├── ps.js
│ │ ├── pt-BR.js
│ │ ├── pt.js
│ │ ├── ro.js
│ │ ├── ru.js
│ │ ├── sk.js
│ │ ├── sl.js
│ │ ├── sq.js
│ │ ├── sr-Cyrl.js
│ │ ├── sr.js
│ │ ├── sv.js
│ │ ├── th.js
│ │ ├── tk.js
│ │ ├── tr.js
│ │ ├── uk.js
│ │ ├── vi.js
│ │ ├── zh-CN.js
│ │ └── zh-TW.js
│ ├── select2.full.js
│ └── select2.full.min.js
│ └── xregexp
│ ├── LICENSE.txt
│ ├── xregexp.js
│ └── xregexp.min.js
├── css
├── main.9cd215a4.chunk.css
└── main.9cd215a4.chunk.css.map
├── js
├── 2.548bc473.chunk.js
├── 2.548bc473.chunk.js.LICENSE.txt
├── 2.548bc473.chunk.js.map
├── 3.3989fcd6.chunk.js
├── 3.3989fcd6.chunk.js.map
├── main.bf0f7af9.chunk.js
├── main.bf0f7af9.chunk.js.map
├── runtime-main.b3325d9b.js
└── runtime-main.b3325d9b.js.map
├── media
└── logo.462f53c2.png
└── rest_framework
├── css
├── bootstrap-theme.min.css
├── bootstrap-tweaks.css
├── bootstrap.min.css
├── default.css
├── font-awesome-4.0.3.css
└── prettify.css
├── docs
├── css
│ ├── base.css
│ ├── highlight.css
│ └── jquery.json-view.min.css
├── img
│ ├── favicon.ico
│ └── grid.png
└── js
│ ├── api.js
│ ├── highlight.pack.js
│ └── jquery.json-view.min.js
├── fonts
├── fontawesome-webfont.eot
├── fontawesome-webfont.svg
├── fontawesome-webfont.ttf
├── fontawesome-webfont.woff
├── glyphicons-halflings-regular.eot
├── glyphicons-halflings-regular.svg
├── glyphicons-halflings-regular.ttf
├── glyphicons-halflings-regular.woff
└── glyphicons-halflings-regular.woff2
├── img
├── glyphicons-halflings-white.png
├── glyphicons-halflings.png
└── grid.png
└── js
├── ajax-form.js
├── bootstrap.min.js
├── coreapi-0.1.1.js
├── csrf.js
├── default.js
├── jquery-3.5.1.min.js
└── prettify-min.js
/.gitignore:
--------------------------------------------------------------------------------
1 | /**/env
--------------------------------------------------------------------------------
/Procfile:
--------------------------------------------------------------------------------
1 | web: gunicorn backend.wsgi --log-file -
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
E-Commerce Website with Django + React & Redux
2 | Otaku House - Anime Merchandise and Cosplay Shop
3 |
4 | ## ✨ [Live Link - Otaku House](https://otakuhouse.herokuapp.com/)
5 |
6 | ### How to Run 🏃♀️
7 |
8 | ```shell
9 | 1 Clone This Repo by `git clone https://github.com/kritebh/ecommerce-django-react.git`
10 | 2 python -m venv env
11 | 3 .\env\Scripts\activate
12 | 4 pip install -r requirements.txt
13 | 5 python manage.py runserver
14 |
15 | ```
16 |
17 | ### 📷 Project Screenshots
18 |
19 | 
20 | 
21 | 
22 | 
23 | 
24 | 
25 |
26 | ### 🚀 Project Features
27 |
28 | A completely customized eCommerce / shopping cart application using Django, REACT and REDUX with the following functionality:
29 |
30 | - Full featured shopping cart
31 | - Product reviews and Ratings
32 | - Top products carousel
33 | - Product pagination
34 | - Product search feature
35 | - User profile with orders
36 | - Admin product management
37 | - Admin user management
38 | - Admin Order details page
39 | - Mark orders as a delivered option
40 | - Checkout process (shipping, payment method, etc)
41 | - PayPal / credit card integration
42 |
--------------------------------------------------------------------------------
/backend/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/backend/__init__.py
--------------------------------------------------------------------------------
/backend/__pycache__/__init__.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/backend/__pycache__/__init__.cpython-39.pyc
--------------------------------------------------------------------------------
/backend/__pycache__/settings.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/backend/__pycache__/settings.cpython-39.pyc
--------------------------------------------------------------------------------
/backend/__pycache__/urls.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/backend/__pycache__/urls.cpython-39.pyc
--------------------------------------------------------------------------------
/backend/__pycache__/wsgi.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/backend/__pycache__/wsgi.cpython-39.pyc
--------------------------------------------------------------------------------
/backend/asgi.py:
--------------------------------------------------------------------------------
1 | """
2 | ASGI config for backend project.
3 |
4 | It exposes the ASGI callable as a module-level variable named ``application``.
5 |
6 | For more information on this file, see
7 | https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
8 | """
9 |
10 | import os
11 |
12 | from django.core.asgi import get_asgi_application
13 |
14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backend.settings')
15 |
16 | application = get_asgi_application()
17 |
--------------------------------------------------------------------------------
/backend/urls.py:
--------------------------------------------------------------------------------
1 | """backend URL Configuration
2 |
3 | The `urlpatterns` list routes URLs to views. For more information please see:
4 | https://docs.djangoproject.com/en/3.2/topics/http/urls/
5 | Examples:
6 | Function views
7 | 1. Add an import: from my_app import views
8 | 2. Add a URL to urlpatterns: path('', views.home, name='home')
9 | Class-based views
10 | 1. Add an import: from other_app.views import Home
11 | 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
12 | Including another URLconf
13 | 1. Import the include() function: from django.urls import include, path
14 | 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
15 | """
16 | from os import stat
17 | from django.contrib import admin
18 | from django.urls import path,include
19 | from django.conf import settings
20 | from django.conf.urls.static import static
21 |
22 | from django.views.generic import TemplateView
23 |
24 | urlpatterns = [
25 | path('admin/', admin.site.urls),
26 | # path('api/',include('base.urls')),
27 | path('',TemplateView.as_view(template_name='index.html')),
28 | path('api/products/',include('base.urls.product_urls')),
29 | path('api/users/',include('base.urls.user_urls')),
30 | path('api/orders/',include('base.urls.order_urls')),
31 |
32 |
33 | ]
34 |
35 | urlpatterns += static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)
36 | urlpatterns += static(settings.STATIC_URL,document_root=settings.STATIC_ROOT)
37 |
38 |
--------------------------------------------------------------------------------
/backend/wsgi.py:
--------------------------------------------------------------------------------
1 | """
2 | WSGI config for backend project.
3 |
4 | It exposes the WSGI callable as a module-level variable named ``application``.
5 |
6 | For more information on this file, see
7 | https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
8 | """
9 |
10 | import os
11 |
12 | from django.core.wsgi import get_wsgi_application
13 |
14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backend.settings')
15 |
16 | application = get_wsgi_application()
17 |
--------------------------------------------------------------------------------
/base/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/__init__.py
--------------------------------------------------------------------------------
/base/__pycache__/__init__.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/__pycache__/__init__.cpython-39.pyc
--------------------------------------------------------------------------------
/base/__pycache__/admin.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/__pycache__/admin.cpython-39.pyc
--------------------------------------------------------------------------------
/base/__pycache__/apps.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/__pycache__/apps.cpython-39.pyc
--------------------------------------------------------------------------------
/base/__pycache__/models.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/__pycache__/models.cpython-39.pyc
--------------------------------------------------------------------------------
/base/__pycache__/products.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/__pycache__/products.cpython-39.pyc
--------------------------------------------------------------------------------
/base/__pycache__/serializers.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/__pycache__/serializers.cpython-39.pyc
--------------------------------------------------------------------------------
/base/__pycache__/signals.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/__pycache__/signals.cpython-39.pyc
--------------------------------------------------------------------------------
/base/__pycache__/urls.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/__pycache__/urls.cpython-39.pyc
--------------------------------------------------------------------------------
/base/__pycache__/views.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/__pycache__/views.cpython-39.pyc
--------------------------------------------------------------------------------
/base/admin.py:
--------------------------------------------------------------------------------
1 | from django.contrib import admin
2 | from .models import *
3 | # Register your models here.
4 | admin.site.register(Product)
5 | admin.site.register(Review)
6 | admin.site.register(OrderItem)
7 | admin.site.register(ShippingAddress)
8 |
9 | @admin.register(Order)
10 | class OrderAdmin(admin.ModelAdmin):
11 | list_display = [
12 | "user","createdAt","totalPrice"
13 | ]
--------------------------------------------------------------------------------
/base/apps.py:
--------------------------------------------------------------------------------
1 | from django.apps import AppConfig
2 |
3 | class BaseConfig(AppConfig):
4 | default_auto_field = 'django.db.models.BigAutoField'
5 | name = 'base'
6 |
7 | def ready(self):
8 | import base.signals
--------------------------------------------------------------------------------
/base/migrations/0001_initial.py:
--------------------------------------------------------------------------------
1 | # Generated by Django 3.2.6 on 2021-08-13 09:43
2 |
3 | from django.conf import settings
4 | from django.db import migrations, models
5 | import django.db.models.deletion
6 |
7 |
8 | class Migration(migrations.Migration):
9 |
10 | initial = True
11 |
12 | dependencies = [
13 | migrations.swappable_dependency(settings.AUTH_USER_MODEL),
14 | ]
15 |
16 | operations = [
17 | migrations.CreateModel(
18 | name='Product',
19 | fields=[
20 | ('name', models.CharField(blank=True, max_length=200, null=True)),
21 | ('brand', models.CharField(blank=True, max_length=200, null=True)),
22 | ('category', models.CharField(blank=True, max_length=200, null=True)),
23 | ('description', models.TextField(blank=True, null=True)),
24 | ('rating', models.DecimalField(blank=True, decimal_places=2, max_digits=7, null=True)),
25 | ('numReviews', models.IntegerField(blank=True, default=0, null=True)),
26 | ('price', models.DecimalField(blank=True, decimal_places=2, max_digits=7, null=True)),
27 | ('countInStock', models.IntegerField(blank=True, default=0, null=True)),
28 | ('createdAt', models.DateTimeField(auto_now_add=True)),
29 | ('_id', models.AutoField(editable=False, primary_key=True, serialize=False)),
30 | ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
31 | ],
32 | ),
33 | ]
34 |
--------------------------------------------------------------------------------
/base/migrations/0003_product_image.py:
--------------------------------------------------------------------------------
1 | # Generated by Django 3.2.6 on 2021-08-13 10:11
2 |
3 | from django.db import migrations, models
4 |
5 |
6 | class Migration(migrations.Migration):
7 |
8 | dependencies = [
9 | ('base', '0002_order_orderitem_review_shippingaddress'),
10 | ]
11 |
12 | operations = [
13 | migrations.AddField(
14 | model_name='product',
15 | name='image',
16 | field=models.ImageField(blank=True, null=True, upload_to=''),
17 | ),
18 | ]
19 |
--------------------------------------------------------------------------------
/base/migrations/0004_auto_20210820_1717.py:
--------------------------------------------------------------------------------
1 | # Generated by Django 3.2.6 on 2021-08-20 11:47
2 |
3 | from django.db import migrations, models
4 |
5 |
6 | class Migration(migrations.Migration):
7 |
8 | dependencies = [
9 | ('base', '0003_product_image'),
10 | ]
11 |
12 | operations = [
13 | migrations.AlterField(
14 | model_name='order',
15 | name='shippingPrice',
16 | field=models.DecimalField(blank=True, decimal_places=2, max_digits=12, null=True),
17 | ),
18 | migrations.AlterField(
19 | model_name='order',
20 | name='taxPrice',
21 | field=models.DecimalField(blank=True, decimal_places=2, max_digits=12, null=True),
22 | ),
23 | migrations.AlterField(
24 | model_name='order',
25 | name='totalPrice',
26 | field=models.DecimalField(blank=True, decimal_places=2, max_digits=12, null=True),
27 | ),
28 | migrations.AlterField(
29 | model_name='orderitem',
30 | name='price',
31 | field=models.DecimalField(blank=True, decimal_places=2, max_digits=12, null=True),
32 | ),
33 | migrations.AlterField(
34 | model_name='product',
35 | name='price',
36 | field=models.DecimalField(blank=True, decimal_places=2, max_digits=12, null=True),
37 | ),
38 | migrations.AlterField(
39 | model_name='product',
40 | name='rating',
41 | field=models.DecimalField(blank=True, decimal_places=2, max_digits=12, null=True),
42 | ),
43 | migrations.AlterField(
44 | model_name='shippingaddress',
45 | name='shippingPrice',
46 | field=models.DecimalField(blank=True, decimal_places=2, max_digits=12, null=True),
47 | ),
48 | ]
49 |
--------------------------------------------------------------------------------
/base/migrations/0005_alter_order_createdat.py:
--------------------------------------------------------------------------------
1 | # Generated by Django 3.2.6 on 2021-08-28 11:42
2 |
3 | from django.db import migrations, models
4 |
5 |
6 | class Migration(migrations.Migration):
7 |
8 | dependencies = [
9 | ('base', '0004_auto_20210820_1717'),
10 | ]
11 |
12 | operations = [
13 | migrations.AlterField(
14 | model_name='order',
15 | name='createdAt',
16 | field=models.DateTimeField(auto_now_add=True, null=True),
17 | ),
18 | ]
19 |
--------------------------------------------------------------------------------
/base/migrations/0006_alter_product_image.py:
--------------------------------------------------------------------------------
1 | # Generated by Django 3.2.6 on 2021-09-05 16:26
2 |
3 | from django.db import migrations, models
4 |
5 |
6 | class Migration(migrations.Migration):
7 |
8 | dependencies = [
9 | ('base', '0005_alter_order_createdat'),
10 | ]
11 |
12 | operations = [
13 | migrations.AlterField(
14 | model_name='product',
15 | name='image',
16 | field=models.ImageField(blank=True, default='/placeholder.png', null=True, upload_to=''),
17 | ),
18 | ]
19 |
--------------------------------------------------------------------------------
/base/migrations/0007_review_createdat.py:
--------------------------------------------------------------------------------
1 | # Generated by Django 3.2.6 on 2021-09-09 08:20
2 |
3 | from django.db import migrations, models
4 |
5 |
6 | class Migration(migrations.Migration):
7 |
8 | dependencies = [
9 | ('base', '0006_alter_product_image'),
10 | ]
11 |
12 | operations = [
13 | migrations.AddField(
14 | model_name='review',
15 | name='createdAt',
16 | field=models.DateTimeField(auto_now_add=True, null=True),
17 | ),
18 | ]
19 |
--------------------------------------------------------------------------------
/base/migrations/0008_alter_review_createdat.py:
--------------------------------------------------------------------------------
1 | # Generated by Django 3.2.6 on 2021-09-09 08:21
2 |
3 | from django.db import migrations, models
4 | import django.utils.timezone
5 |
6 |
7 | class Migration(migrations.Migration):
8 |
9 | dependencies = [
10 | ('base', '0007_review_createdat'),
11 | ]
12 |
13 | operations = [
14 | migrations.AlterField(
15 | model_name='review',
16 | name='createdAt',
17 | field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
18 | preserve_default=False,
19 | ),
20 | ]
21 |
--------------------------------------------------------------------------------
/base/migrations/0009_alter_product_image.py:
--------------------------------------------------------------------------------
1 | # Generated by Django 3.2.6 on 2021-09-12 07:10
2 |
3 | from django.db import migrations, models
4 |
5 |
6 | class Migration(migrations.Migration):
7 |
8 | dependencies = [
9 | ('base', '0008_alter_review_createdat'),
10 | ]
11 |
12 | operations = [
13 | migrations.AlterField(
14 | model_name='product',
15 | name='image',
16 | field=models.ImageField(blank=True, default='/placeholder.png', null=True, upload_to='images/'),
17 | ),
18 | ]
19 |
--------------------------------------------------------------------------------
/base/migrations/0010_alter_product_image.py:
--------------------------------------------------------------------------------
1 | # Generated by Django 3.2.6 on 2021-09-12 07:33
2 |
3 | from django.db import migrations, models
4 |
5 |
6 | class Migration(migrations.Migration):
7 |
8 | dependencies = [
9 | ('base', '0009_alter_product_image'),
10 | ]
11 |
12 | operations = [
13 | migrations.AlterField(
14 | model_name='product',
15 | name='image',
16 | field=models.ImageField(blank=True, default='/images/placeholder.png', null=True, upload_to='images/'),
17 | ),
18 | ]
19 |
--------------------------------------------------------------------------------
/base/migrations/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/migrations/__init__.py
--------------------------------------------------------------------------------
/base/migrations/__pycache__/0001_initial.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/migrations/__pycache__/0001_initial.cpython-39.pyc
--------------------------------------------------------------------------------
/base/migrations/__pycache__/0002_order_orderitem_review_shippingaddress.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/migrations/__pycache__/0002_order_orderitem_review_shippingaddress.cpython-39.pyc
--------------------------------------------------------------------------------
/base/migrations/__pycache__/0003_product_image.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/migrations/__pycache__/0003_product_image.cpython-39.pyc
--------------------------------------------------------------------------------
/base/migrations/__pycache__/0004_auto_20210820_1717.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/migrations/__pycache__/0004_auto_20210820_1717.cpython-39.pyc
--------------------------------------------------------------------------------
/base/migrations/__pycache__/0005_alter_order_createdat.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/migrations/__pycache__/0005_alter_order_createdat.cpython-39.pyc
--------------------------------------------------------------------------------
/base/migrations/__pycache__/0006_alter_product_image.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/migrations/__pycache__/0006_alter_product_image.cpython-39.pyc
--------------------------------------------------------------------------------
/base/migrations/__pycache__/0007_review_createdat.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/migrations/__pycache__/0007_review_createdat.cpython-39.pyc
--------------------------------------------------------------------------------
/base/migrations/__pycache__/0008_alter_review_createdat.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/migrations/__pycache__/0008_alter_review_createdat.cpython-39.pyc
--------------------------------------------------------------------------------
/base/migrations/__pycache__/0009_alter_product_image.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/migrations/__pycache__/0009_alter_product_image.cpython-39.pyc
--------------------------------------------------------------------------------
/base/migrations/__pycache__/0010_alter_product_image.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/migrations/__pycache__/0010_alter_product_image.cpython-39.pyc
--------------------------------------------------------------------------------
/base/migrations/__pycache__/__init__.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/migrations/__pycache__/__init__.cpython-39.pyc
--------------------------------------------------------------------------------
/base/serializers.py:
--------------------------------------------------------------------------------
1 | from django.db.models import fields
2 | from rest_framework import serializers
3 | from rest_framework_simplejwt.tokens import RefreshToken
4 | from django.contrib.auth.models import User
5 | from .models import *
6 |
7 |
8 | class UserSerializer(serializers.ModelSerializer):
9 | name= serializers.SerializerMethodField(read_only=True)
10 | _id = serializers.SerializerMethodField(read_only=True)
11 | isAdmin = serializers.SerializerMethodField(read_only=True)
12 | class Meta:
13 | model = User
14 | fields = ['id','_id','username','email','name','isAdmin']
15 |
16 | def get__id(self,obj):
17 | return obj.id
18 |
19 | def get_isAdmin(self,obj):
20 | return obj.is_staff
21 |
22 | def get_name(self,obj):
23 | name = obj.first_name
24 | if name=="":
25 | name = obj.email
26 | return name
27 |
28 |
29 | class UserSerializerWithToken(UserSerializer):
30 | token= serializers.SerializerMethodField(read_only=True)
31 | class Meta:
32 | model =User
33 | fields = ['id','_id','username','email','name','isAdmin','token']
34 |
35 | def get_token(self,obj):
36 | token = RefreshToken.for_user(obj)
37 | return str(token.access_token)
38 |
39 |
40 | class ReviewSerializer(serializers.ModelSerializer):
41 | class Meta:
42 | model = Review
43 | fields = '__all__'
44 |
45 | class ProductSerializer(serializers.ModelSerializer):
46 | reviews = serializers.SerializerMethodField(read_only= True)
47 | class Meta:
48 | model = Product
49 | fields = '__all__'
50 |
51 | def get_reviews(self,obj):
52 | reviews = obj.review_set.all()
53 | serializer = ReviewSerializer(reviews,many=True)
54 | return serializer.data
55 |
56 | class ShippingAddressSerializer(serializers.ModelSerializer):
57 | class Meta:
58 | model = ShippingAddress
59 | fields = '__all__'
60 |
61 | class OrderItemSerializer(serializers.ModelSerializer):
62 | class Meta:
63 | model = OrderItem
64 | fields = '__all__'
65 |
66 | class OrderSerializer(serializers.ModelSerializer):
67 | orderItems = serializers.SerializerMethodField(read_only=True)
68 | shippingAddress = serializers.SerializerMethodField(read_only=True)
69 | User = serializers.SerializerMethodField(read_only=True)
70 |
71 | class Meta:
72 | model = Order
73 | fields = '__all__'
74 |
75 | def get_orderItems(self,obj):
76 | items = obj.orderitem_set.all()
77 | serializer = OrderItemSerializer(items,many=True)
78 | return serializer.data
79 |
80 | def get_shippingAddress(self,obj):
81 | try:
82 | address = ShippingAddressSerializer(obj.shippingaddress,many=False).data
83 | except:
84 | address = False
85 | return address
86 |
87 | def get_User(self,obj):
88 | items = obj.user
89 | serializer = UserSerializer(items,many=False)
90 | return serializer.data
91 |
92 |
93 |
94 |
95 |
--------------------------------------------------------------------------------
/base/signals.py:
--------------------------------------------------------------------------------
1 | from django.db.models.signals import pre_save
2 | from django.contrib.auth.models import User
3 |
4 |
5 | def updateUser(sender,instance,**kwargs):
6 | user = instance
7 | if user.email != '':
8 | user.username = user.email
9 |
10 |
11 | pre_save.connect(updateUser,sender = User)
12 |
--------------------------------------------------------------------------------
/base/tests.py:
--------------------------------------------------------------------------------
1 | from django.test import TestCase
2 |
3 | # Create your tests here.
4 |
--------------------------------------------------------------------------------
/base/urls/__pycache__/order_urls.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/urls/__pycache__/order_urls.cpython-39.pyc
--------------------------------------------------------------------------------
/base/urls/__pycache__/product_urls.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/urls/__pycache__/product_urls.cpython-39.pyc
--------------------------------------------------------------------------------
/base/urls/__pycache__/user_urls.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/urls/__pycache__/user_urls.cpython-39.pyc
--------------------------------------------------------------------------------
/base/urls/order_urls.py:
--------------------------------------------------------------------------------
1 | from django.urls import path
2 | from base.views import order_views as views
3 |
4 |
5 | urlpatterns = [
6 | path('',views.getOrders,name="allorders"),
7 | path('add/',views.addOrderItems,name="orders-add"),
8 | path('myorders/',views.getMyOrders,name="myorders"),
9 |
10 | path('/deliver/',views.updateOrderToDelivered,name="delivered"),
11 | path('/',views.getOrderById,name="user-order"),
12 | path('/pay/',views.updateOrderToPaid,name="pay"),
13 | ]
14 |
--------------------------------------------------------------------------------
/base/urls/product_urls.py:
--------------------------------------------------------------------------------
1 | from django.urls import path
2 | from base.views import product_views as views
3 |
4 |
5 | urlpatterns = [
6 | path('',views.getProducts,name="products"),
7 |
8 | path('create/',views.createProduct,name="create_product"),
9 | path('upload/',views.uploadImage,name="upload_image"),
10 |
11 | path('/reviews/',views.createProductReview,name="create-review"),
12 | path('top/',views.getTopProducts,name="top-products"),
13 | path('/',views.getProduct,name="product"),
14 |
15 | path('update//',views.updateProduct,name="update_product"),
16 | path('delete//',views.deleteProduct,name="delete_product"),
17 | ]
18 |
--------------------------------------------------------------------------------
/base/urls/user_urls.py:
--------------------------------------------------------------------------------
1 | from django.urls import path
2 | from base.views import user_views as views
3 |
4 |
5 | urlpatterns = [
6 | path('register/',views.registerUser,name='register'),
7 | path('',views.getUsers,name="users"),
8 | path('profile/',views.getUserProfile,name="user_profile"),
9 | path('profile/update/',views.updateUserProfile,name="user_profile_update"),
10 | path('login/', views.MyTokenObtainPairView.as_view(), name='token_obtain_pair'),
11 | path('/',views.getUserById,name="get_user"),
12 | path('update//',views.updateUser,name="updateUser"),
13 | path('delete//',views.deleteUser,name="deleteUser"),
14 | ]
15 |
--------------------------------------------------------------------------------
/base/views/__pycache__/order_views.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/views/__pycache__/order_views.cpython-39.pyc
--------------------------------------------------------------------------------
/base/views/__pycache__/product_views.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/views/__pycache__/product_views.cpython-39.pyc
--------------------------------------------------------------------------------
/base/views/__pycache__/user_views.cpython-39.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/base/views/__pycache__/user_views.cpython-39.pyc
--------------------------------------------------------------------------------
/db.sqlite3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/db.sqlite3
--------------------------------------------------------------------------------
/frontend/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 |
12 | # misc
13 | .DS_Store
14 | .env.local
15 | .env.development.local
16 | .env.test.local
17 | .env.production.local
18 |
19 | npm-debug.log*
20 | yarn-debug.log*
21 | yarn-error.log*
22 |
--------------------------------------------------------------------------------
/frontend/README.md:
--------------------------------------------------------------------------------
1 | Frontend of E-Commerce Website
2 | Designed Using React
3 |
4 | ## TOOLS USED:
5 |
6 | - USED `REACT-BOOTSTRAP` & `REACT-ROUTER-BOOTSTRAP` FOR STYLING
7 | - USED BOOTSWATCH THEME - `LUX`
8 | - USED `FONT AWESOME` ICONS
9 | - USED `REACT PAYPAL BUTTON V2` FOR PAYPAL BUTTONS
10 |
--------------------------------------------------------------------------------
/frontend/build/asset-manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "files": {
3 | "main.css": "/static/css/main.9cd215a4.chunk.css",
4 | "main.js": "/static/js/main.bf0f7af9.chunk.js",
5 | "main.js.map": "/static/js/main.bf0f7af9.chunk.js.map",
6 | "runtime-main.js": "/static/js/runtime-main.b3325d9b.js",
7 | "runtime-main.js.map": "/static/js/runtime-main.b3325d9b.js.map",
8 | "static/js/2.548bc473.chunk.js": "/static/js/2.548bc473.chunk.js",
9 | "static/js/2.548bc473.chunk.js.map": "/static/js/2.548bc473.chunk.js.map",
10 | "static/js/3.3989fcd6.chunk.js": "/static/js/3.3989fcd6.chunk.js",
11 | "static/js/3.3989fcd6.chunk.js.map": "/static/js/3.3989fcd6.chunk.js.map",
12 | "index.html": "/index.html",
13 | "static/css/main.9cd215a4.chunk.css.map": "/static/css/main.9cd215a4.chunk.css.map",
14 | "static/js/2.548bc473.chunk.js.LICENSE.txt": "/static/js/2.548bc473.chunk.js.LICENSE.txt",
15 | "static/media/logo.462f53c2.png": "/static/media/logo.462f53c2.png"
16 | },
17 | "entrypoints": [
18 | "static/js/runtime-main.b3325d9b.js",
19 | "static/js/2.548bc473.chunk.js",
20 | "static/css/main.9cd215a4.chunk.css",
21 | "static/js/main.bf0f7af9.chunk.js"
22 | ]
23 | }
--------------------------------------------------------------------------------
/frontend/build/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/build/favicon.ico
--------------------------------------------------------------------------------
/frontend/build/images/airpods.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/build/images/airpods.jpg
--------------------------------------------------------------------------------
/frontend/build/images/alexa.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/build/images/alexa.jpg
--------------------------------------------------------------------------------
/frontend/build/images/camera.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/build/images/camera.jpg
--------------------------------------------------------------------------------
/frontend/build/images/mouse.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/build/images/mouse.jpg
--------------------------------------------------------------------------------
/frontend/build/images/phone.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/build/images/phone.jpg
--------------------------------------------------------------------------------
/frontend/build/images/playstation.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/build/images/playstation.jpg
--------------------------------------------------------------------------------
/frontend/build/images/sample.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/build/images/sample.jpg
--------------------------------------------------------------------------------
/frontend/build/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/build/logo192.png
--------------------------------------------------------------------------------
/frontend/build/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/build/logo512.png
--------------------------------------------------------------------------------
/frontend/build/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/frontend/build/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/frontend/build/static/js/2.548bc473.chunk.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*
2 | object-assign
3 | (c) Sindre Sorhus
4 | @license MIT
5 | */
6 |
7 | /*!
8 | Copyright (c) 2018 Jed Watson.
9 | Licensed under the MIT License (MIT), see
10 | http://jedwatson.github.io/classnames
11 | */
12 |
13 | /** @license React v0.20.2
14 | * scheduler.production.min.js
15 | *
16 | * Copyright (c) Facebook, Inc. and its affiliates.
17 | *
18 | * This source code is licensed under the MIT license found in the
19 | * LICENSE file in the root directory of this source tree.
20 | */
21 |
22 | /** @license React v16.13.1
23 | * react-is.production.min.js
24 | *
25 | * Copyright (c) Facebook, Inc. and its affiliates.
26 | *
27 | * This source code is licensed under the MIT license found in the
28 | * LICENSE file in the root directory of this source tree.
29 | */
30 |
31 | /** @license React v17.0.2
32 | * react-dom.production.min.js
33 | *
34 | * Copyright (c) Facebook, Inc. and its affiliates.
35 | *
36 | * This source code is licensed under the MIT license found in the
37 | * LICENSE file in the root directory of this source tree.
38 | */
39 |
40 | /** @license React v17.0.2
41 | * react-jsx-runtime.production.min.js
42 | *
43 | * Copyright (c) Facebook, Inc. and its affiliates.
44 | *
45 | * This source code is licensed under the MIT license found in the
46 | * LICENSE file in the root directory of this source tree.
47 | */
48 |
49 | /** @license React v17.0.2
50 | * react.production.min.js
51 | *
52 | * Copyright (c) Facebook, Inc. and its affiliates.
53 | *
54 | * This source code is licensed under the MIT license found in the
55 | * LICENSE file in the root directory of this source tree.
56 | */
57 |
--------------------------------------------------------------------------------
/frontend/build/static/js/runtime-main.b3325d9b.js:
--------------------------------------------------------------------------------
1 | !function(e){function r(r){for(var n,i,a=r[0],c=r[1],f=r[2],s=0,p=[];s0.2%",
39 | "not dead",
40 | "not op_mini all"
41 | ],
42 | "development": [
43 | "last 1 chrome version",
44 | "last 1 firefox version",
45 | "last 1 safari version"
46 | ]
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/frontend/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/public/favicon.ico
--------------------------------------------------------------------------------
/frontend/public/images/airpods.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/public/images/airpods.jpg
--------------------------------------------------------------------------------
/frontend/public/images/alexa.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/public/images/alexa.jpg
--------------------------------------------------------------------------------
/frontend/public/images/camera.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/public/images/camera.jpg
--------------------------------------------------------------------------------
/frontend/public/images/mouse.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/public/images/mouse.jpg
--------------------------------------------------------------------------------
/frontend/public/images/phone.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/public/images/phone.jpg
--------------------------------------------------------------------------------
/frontend/public/images/playstation.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/public/images/playstation.jpg
--------------------------------------------------------------------------------
/frontend/public/images/sample.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/public/images/sample.jpg
--------------------------------------------------------------------------------
/frontend/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
17 |
18 |
25 |
34 | Otaku House - The #1 Anime Merchandise and Cosplay Shop.
35 |
36 |
37 |
38 |
39 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/frontend/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/public/logo192.png
--------------------------------------------------------------------------------
/frontend/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/public/logo512.png
--------------------------------------------------------------------------------
/frontend/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/frontend/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/frontend/src/App.js:
--------------------------------------------------------------------------------
1 | /* REACT BOOTSTRAP */
2 | import { Container } from "react-bootstrap";
3 |
4 | /* COMPONENTS */
5 | import Header from "./components/Header";
6 | import Footer from "./components/Footer";
7 | import HomeScreen from "./screens/HomeScreen";
8 | import ProductScreen from "./screens/ProductScreen";
9 | import CartScreen from "./screens/CartScreen";
10 | import LoginScreen from "./screens/LoginScreen";
11 | import RegisterScreen from "./screens/RegisterScreen";
12 | import ProfileScreen from "./screens/ProfileScreen";
13 | import ShippingScreen from "./screens/ShippingScreen";
14 | import PaymentScreen from "./screens/PaymentScreen";
15 | import PlaceOrderScreen from "./screens/PlaceOrderScreen";
16 | import OrderScreen from "./screens/OrderScreen";
17 | import UserListScreen from "./screens/UserListScreen";
18 | import UserEditScreen from "./screens/UserEditScreen";
19 | import ProductListScreen from "./screens/ProductListScreen";
20 | import ProductEditScreen from "./screens/ProductEditScreen";
21 | import OrderListScreen from "./screens/OrderListScreen";
22 |
23 | /* REACT ROUTER */
24 | import { HashRouter as Router, Route } from "react-router-dom";
25 |
26 | function App() {
27 | return (
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 | );
66 | }
67 |
68 | export default App;
69 |
--------------------------------------------------------------------------------
/frontend/src/actions/cartActions.js:
--------------------------------------------------------------------------------
1 | /* AXIOS */
2 | import axios from "axios";
3 |
4 | /* ACTION TYPES */
5 | import {
6 | CART_ADD_ITEM,
7 | CART_REMOVE_ITEM,
8 | CART_SAVE_SHIPPING_ADDRESS,
9 | CART_SAVE_PAYMENT_METHOD,
10 | } from "../constants/cartConstants";
11 |
12 | /* ACTION CREATOR USED IN CartScreen COMPONENT */
13 |
14 | /* FOR ADDING PRODUCTS TO CART */
15 | export const addToCart = (id, qty) => async (dispatch, getState) => {
16 | // FETCHING PRODUCT DATA
17 | const { data } = await axios.get(`/api/products/${id}`);
18 |
19 | dispatch({
20 | type: CART_ADD_ITEM,
21 | payload: {
22 | product: data._id,
23 | name: data.name,
24 | image: data.image,
25 | price: data.price,
26 | countInStock: data.countInStock,
27 | qty,
28 | },
29 | });
30 |
31 | // SETTING VALUE OF CART ITEMS IN LOCAL STORAGE
32 | localStorage.setItem("cartItems", JSON.stringify(getState().cart.cartItems));
33 | };
34 |
35 | /* FOR REMOVING PRODUCTS FROM CART */
36 | export const removeFromCart = (id) => (dispatch, getState) => {
37 | dispatch({
38 | type: CART_REMOVE_ITEM,
39 | payload: id,
40 | });
41 |
42 | // SETTING VALUE OF CART ITEMS IN LOCAL STORAGE
43 | localStorage.setItem("cartItems", JSON.stringify(getState().cart.cartItems));
44 | };
45 |
46 | /* ACTION CREATOR USED IN ShippingScreen COMPONENT */
47 | export const saveShippingAddress = (data) => (dispatch) => {
48 | dispatch({
49 | type: CART_SAVE_SHIPPING_ADDRESS,
50 | payload: data,
51 | });
52 |
53 | // SETTING VALUE OF ADDRESS IN LOCAL STORAGE
54 | localStorage.setItem("shippingAddress", JSON.stringify(data));
55 | };
56 |
57 | /* ACTION CREATOR USED IN PaymentScreen COMPONENT */
58 | export const savePaymentMethod = (data) => (dispatch) => {
59 | dispatch({
60 | type: CART_SAVE_PAYMENT_METHOD,
61 | payload: data,
62 | });
63 |
64 | // SETTING VALUE OF PAYMENT METHOD IN LOCAL STORAGE
65 | localStorage.setItem("paymentMethod", JSON.stringify(data));
66 | };
67 |
--------------------------------------------------------------------------------
/frontend/src/components/CheckoutSteps.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | /* REACT BOOTSTRAP */
4 | import { Nav } from "react-bootstrap";
5 |
6 | /* REACT ROUTER BOOTSTRAP */
7 | import { LinkContainer } from "react-router-bootstrap";
8 |
9 | function CheckoutSteps({ step1, step2, step3, step4 }) {
10 | return (
11 |
52 | );
53 | }
54 |
55 | export default CheckoutSteps;
56 |
--------------------------------------------------------------------------------
/frontend/src/components/Footer.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | /* REACT-BOOTSTRAP */
4 | import { Container, Row, Col } from "react-bootstrap";
5 |
6 | function Footer() {
7 | return (
8 |
15 | );
16 | }
17 |
18 | export default Footer;
19 |
--------------------------------------------------------------------------------
/frontend/src/components/FormContainer.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | /* REACT BOOTSTRAP */
4 | import { Row, Col, Container } from "react-bootstrap";
5 |
6 | function FormContainer({ children }) {
7 | return (
8 |
9 |
10 |
11 | {children}
12 |
13 |
14 |
15 | );
16 | }
17 |
18 | export default FormContainer;
19 |
--------------------------------------------------------------------------------
/frontend/src/components/Loader.js:
--------------------------------------------------------------------------------
1 | /* REACT BOOTSTRAP */
2 | import Spinner from "react-bootstrap/Spinner";
3 |
4 | export default function Loader() {
5 | return (
6 |
16 | Loading...
17 |
18 | );
19 | }
20 |
--------------------------------------------------------------------------------
/frontend/src/components/Message.js:
--------------------------------------------------------------------------------
1 | /* REACT BOOTSTRAP */
2 | import { Alert } from "react-bootstrap";
3 |
4 | export default function Message({ variant, children }) {
5 | return {children};
6 | }
7 |
--------------------------------------------------------------------------------
/frontend/src/components/Paginate.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | /* REACT BOOTSTRAP */
4 | import { Pagination } from "react-bootstrap";
5 |
6 | /* REACT ROUTER BOOTSTRAP */
7 | import { LinkContainer } from "react-router-bootstrap";
8 |
9 | function Paginate({ page, pages, keyword = "", isAdmin = false }) {
10 | /* isAdmin IS SET TO FALSE BY DEFAULT, ONLY IN ADMIN ProductList PAGE IS WILL BE SET TO TRUE */
11 |
12 | if (keyword) {
13 | keyword = keyword.split("?keyword=")[1].split("&")[0];
14 | }
15 |
16 | /*
17 | console.log("KEYWORD", keyword);
18 | output: ?keyword=iPhone&page=1 => iPhone&page=1 => iPhone
19 | */
20 |
21 | return (
22 | pages > 1 && (
23 |
24 | {[...Array(pages).keys()].map((x) => (
25 |
33 | {x + 1}
34 |
35 | ))}
36 |
37 | )
38 | );
39 | }
40 |
41 | export default Paginate;
42 |
--------------------------------------------------------------------------------
/frontend/src/components/Product.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | /* REACT-BOOTSTRAP */
4 | import { Card } from "react-bootstrap";
5 |
6 | /* REACT ROUTER */
7 | import { Link } from "react-router-dom";
8 |
9 | /* COMPONENTS */
10 | import Rating from "./Rating";
11 |
12 | function Product({ product }) {
13 | return (
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | {product.name}
23 |
24 |
25 |
26 |
27 |
32 |
33 |
34 | ₹{product.price}
35 |
36 |
37 | );
38 | }
39 |
40 | export default Product;
41 |
--------------------------------------------------------------------------------
/frontend/src/components/ProductCarousel.js:
--------------------------------------------------------------------------------
1 | import React, { useEffect } from "react";
2 |
3 | /* REACT BOOTSTRAP */
4 | import { Carousel, Image } from "react-bootstrap";
5 |
6 | /* REACT - REDUX */
7 | import { useDispatch, useSelector } from "react-redux";
8 |
9 | /* REACT ROUTER */
10 | import { Link } from "react-router-dom";
11 |
12 | /* COMPONENTS */
13 | import Loader from "./Loader";
14 | import Message from "./Message";
15 |
16 | /* ACTION TYPES */
17 | import { listTopProducts } from "../actions/productActions";
18 |
19 | function ProductCarousel() {
20 | const dispatch = useDispatch();
21 |
22 | /* PULLING A PART OF STATE FROM THE ACTUAL STATE IN THE REDUX STORE */
23 | const productTopRated = useSelector((state) => state.productTopRated);
24 | const { error, loading, products } = productTopRated;
25 |
26 | useEffect(() => {
27 | dispatch(listTopProducts());
28 | }, [dispatch]);
29 |
30 | return loading ? (
31 |
32 | ) : error ? (
33 | {error}
34 | ) : (
35 |
36 | {products.map((product) => (
37 |
38 |
39 |
40 |
41 |
42 |
43 | {product.name} (₹{product.price})
44 |
45 |
46 |
47 |
48 | ))}
49 |
50 | );
51 | }
52 |
53 | export default ProductCarousel;
54 |
--------------------------------------------------------------------------------
/frontend/src/components/Rating.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | function Rating({ value, text, color }) {
4 | return (
5 |
6 |
7 | = 1
11 | ? "fas fa-star"
12 | : value >= 0.5
13 | ? "fas fa-star-half-alt"
14 | : "far fa-star"
15 | }
16 | >
17 |
18 |
19 |
20 | = 2
24 | ? "fas fa-star"
25 | : value >= 1.5
26 | ? "fas fa-star-half-alt"
27 | : "far fa-star"
28 | }
29 | >
30 |
31 |
32 |
33 | = 3
37 | ? "fas fa-star"
38 | : value >= 2.5
39 | ? "fas fa-star-half-alt"
40 | : "far fa-star"
41 | }
42 | >
43 |
44 |
45 |
46 | = 4
50 | ? "fas fa-star"
51 | : value >= 3.5
52 | ? "fas fa-star-half-alt"
53 | : "far fa-star"
54 | }
55 | >
56 |
57 |
58 |
59 | = 5
63 | ? "fas fa-star"
64 | : value >= 4.5
65 | ? "fas fa-star-half-alt"
66 | : "far fa-star"
67 | }
68 | >
69 |
70 |
71 | {text ? text : ""}
72 |
73 | );
74 | }
75 |
76 | export default Rating;
77 |
--------------------------------------------------------------------------------
/frontend/src/components/SearchBox.js:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 |
3 | /* REACT BOOTSTRAP */
4 | import { Button, Form } from "react-bootstrap";
5 |
6 | /* REACT ROUTER DOM */
7 | import { useHistory } from "react-router-dom";
8 |
9 | function SearchBox() {
10 | /* STATE */
11 | const [keyword, setKeyword] = useState("");
12 |
13 | let history =
14 | useHistory(); /* CAN'T DIRECTLY USE HISTORY AS IT'S NOT AN ACTUAL PAGE SO CAN'T DESTRUCTURE PROPS */
15 |
16 | /* HANDLER */
17 | const submitHandler = (e) => {
18 | e.preventDefault();
19 |
20 | // WHEN USER HITS SUBMIT, REDIRECT TO HOME PAGE TO SEE PRODUCTS AND APPEND ?keyword=...IN URL
21 | if (keyword) {
22 | history.push(`/?keyword=${keyword}&page=1`);
23 | } else {
24 | // IF WE HIT SUBMIT WITHOUT KEYWORD, WE DON'T WANT THE USER TO GET REDIRECTED IN THAT CASE RATHER STAY ON WHATEVER PAGE HE WAS
25 | history.push(history.push(history.location.pathname));
26 | }
27 | };
28 |
29 | return (
30 | setKeyword(e.target.value)}
35 | className="mr-sm-2 ml-sm-5"
36 | >
37 |
38 |
41 |
42 | );
43 | }
44 |
45 | export default SearchBox;
46 |
--------------------------------------------------------------------------------
/frontend/src/constants/cartConstants.js:
--------------------------------------------------------------------------------
1 | /* ACTION TYPES USED IN CartScreen COMPONENT */
2 |
3 | // ADD ITEMS TO CART
4 | export const CART_ADD_ITEM = "CART_ADD_ITEM";
5 |
6 | // REMOVE ITEMS FROM CART
7 | export const CART_REMOVE_ITEM = "CART_REMOVE_ITEM";
8 |
9 | /* ACTION TYPES USED IN ShippingScreen COMPONENT */
10 |
11 | // SAVE SHIPPING ADDRESS
12 | export const CART_SAVE_SHIPPING_ADDRESS = "CART_SAVE_SHIPPING_ADDRESS";
13 |
14 | // SAVE SHIPPING ADDRESS
15 | export const CART_SAVE_PAYMENT_METHOD = "CART_SAVE_PAYMENT_METHOD";
16 |
17 | // DELETE CART INFO IN LOCAL STORAGE AFTER ORDER PLACED
18 | export const CART_CLEAR_ITEMS = "CART_CLEAR_ITEMS";
19 |
--------------------------------------------------------------------------------
/frontend/src/constants/orderConstants.js:
--------------------------------------------------------------------------------
1 | /* ACTION TYPES */
2 |
3 | // PLACE ORDER
4 | export const ORDER_CREATE_REQUEST = "ORDER_CREATE_REQUEST";
5 | export const ORDER_CREATE_SUCCESS = "ORDER_CREATE_SUCCESS";
6 | export const ORDER_CREATE_FAIL = "ORDER_CREATE_FAIL";
7 |
8 | // RESET STATE
9 | export const ORDER_CREATE_RESET = "ORDER_CREATE_RESET";
10 |
11 | // ORDER DETAILS
12 | export const ORDER_DETAILS_REQUEST = "ORDER_DETAILS_REQUEST";
13 | export const ORDER_DETAILS_SUCCESS = "ORDER_DETAILS_SUCCESS";
14 | export const ORDER_DETAILS_FAIL = "ORDER_DETAILS_FAIL";
15 |
16 | // PAYMENT
17 | export const ORDER_PAY_REQUEST = "ORDER_PAY_REQUEST";
18 | export const ORDER_PAY_SUCCESS = "ORDER_PAY_SUCCESS";
19 | export const ORDER_PAY_FAIL = "ORDER_PAY_FAIL";
20 | export const ORDER_PAY_RESET = "ORDER_PAY_RESET";
21 |
22 | // LIST OF ORDERS OF A USER
23 | export const ORDER_LIST_MY_REQUEST = "ORDER_LIST_MY_REQUEST";
24 | export const ORDER_LIST_MY_SUCCESS = "ORDER_LIST_MY_SUCCESS";
25 | export const ORDER_LIST_MY_FAIL = "ORDER_LIST_MY_FAIL";
26 | export const ORDER_LIST_MY_RESET = "ORDER_LIST_MY_RESET";
27 |
28 | // LIST OF ALL ORDERS OF ALL USERS
29 | export const ORDER_LIST_REQUEST = "ORDER_LIST_REQUEST";
30 | export const ORDER_LIST_SUCCESS = "ORDER_LIST_SUCCESS";
31 | export const ORDER_LIST_FAIL = "ORDER_LIST_FAIL";
32 |
33 | // DELIVERY STATUS OF ORDERS
34 | export const ORDER_DELIVER_REQUEST = "ORDER_DELIVER_REQUEST";
35 | export const ORDER_DELIVER_SUCCESS = "ORDER_DELIVER_SUCCESS";
36 | export const ORDER_DELIVER_FAIL = "ORDER_DELIVER_FAIL";
37 | export const ORDER_DELIVER_RESET = "ORDER_DELIVER_RESET";
38 |
--------------------------------------------------------------------------------
/frontend/src/constants/productConstants.js:
--------------------------------------------------------------------------------
1 | /* CONSTANTS USED IN HomeScreen COMPONENT */
2 | export const PRODUCT_LIST_REQUEST = "PRODUCT_LIST_REQUEST";
3 |
4 | export const PRODUCT_LIST_SUCCESS = "PRODUCT_LIST_SUCCESS";
5 |
6 | export const PRODUCT_LIST_FAIL = "PRODUCT_LIST_FAIL";
7 |
8 | /* CONSTANTS USED IN ProductScreen COMPONENT */
9 | export const PRODUCT_DETAILS_REQUEST = "PRODUCT_DETAILS_REQUEST";
10 |
11 | export const PRODUCT_DETAILS_SUCCESS = "PRODUCT_DETAILS_SUCCESS";
12 |
13 | export const PRODUCT_DETAILS_FAIL = "PRODUCT_DETAILS_FAIL";
14 |
15 | /* CONSTANTS USED IN ProductListScreen COMPONENT */
16 | export const PRODUCT_DELETE_REQUEST = "PRODUCT_DELETE_REQUEST";
17 |
18 | export const PRODUCT_DELETE_SUCCESS = "PRODUCT_DELETE_SUCCESS";
19 |
20 | export const PRODUCT_DELETE_FAIL = "PRODUCT_DELETE_FAIL";
21 |
22 | /* CONSTANTS USED IN ProductListScreen COMPONENT */
23 | export const PRODUCT_CREATE_REQUEST = "PRODUCT_CREATE_REQUEST";
24 |
25 | export const PRODUCT_CREATE_SUCCESS = "PRODUCT_CREATE_SUCCESS";
26 |
27 | export const PRODUCT_CREATE_FAIL = "PRODUCT_CREATE_FAIL";
28 |
29 | export const PRODUCT_CREATE_RESET = "PRODUCT_CREATE_RESET";
30 |
31 | /* CONSTANTS USED IN ProductEditScreen COMPONENT */
32 | export const PRODUCT_UPDATE_REQUEST = "PRODUCT_UPDATE_REQUEST";
33 |
34 | export const PRODUCT_UPDATE_SUCCESS = "PRODUCT_UPDATE_SUCCESS";
35 |
36 | export const PRODUCT_UPDATE_FAIL = "PRODUCT_UPDATE_FAIL";
37 |
38 | export const PRODUCT_UPDATE_RESET = "PRODUCT_UPDATE_RESET";
39 |
40 | /* CONSTANTS USED IN ProductScreen COMPONENT */
41 | export const PRODUCT_CREATE_REVIEW_REQUEST = "PRODUCT_CREATE_REVIEW_REQUEST";
42 |
43 | export const PRODUCT_CREATE_REVIEW_SUCCESS = "PRODUCT_CREATE_REVIEW_SUCCESS";
44 |
45 | export const PRODUCT_CREATE_REVIEW_FAIL = "PRODUCT_CREATE_REVIEW_FAIL";
46 |
47 | export const PRODUCT_CREATE_REVIEW_RESET = "PRODUCT_CREATE_REVIEW_RESET";
48 |
49 | /* CONSTANTS USED IN ProductCarousel COMPONENT */
50 | export const PRODUCT_TOP_REQUEST = "PRODUCT_TOP_REQUEST";
51 |
52 | export const PRODUCT_TOP_SUCCESS = "PRODUCT_TOP_SUCCESS";
53 |
54 | export const PRODUCT_TOP_FAIL = "PRODUCT_TOP_FAIL";
55 |
--------------------------------------------------------------------------------
/frontend/src/constants/userConstants.js:
--------------------------------------------------------------------------------
1 | /* ACTION TYPES */
2 |
3 | // LOGIN
4 | export const USER_LOGIN_REQUEST = "USER_LOGIN_REQUEST";
5 | export const USER_LOGIN_SUCCESS = "USER_LOGIN_SUCCESS";
6 | export const USER_LOGIN_FAIL = "USER_LOGIN_FAIL";
7 |
8 | // LOGOUT
9 | export const USER_LOGOUT = "USER_LOGOUT";
10 |
11 | // REGISTER
12 | export const USER_REGISTER_REQUEST = "USER_REGISTER_REQUEST";
13 | export const USER_REGISTER_SUCCESS = "USER_REGISTER_SUCCESS";
14 | export const USER_REGISTER_FAIL = "USER_REGISTER_FAIL";
15 |
16 | // USER DETAILS
17 | export const USER_DETAILS_REQUEST = "USER_DETAILS_REQUEST";
18 | export const USER_DETAILS_SUCCESS = "USER_DETAILS_SUCCESS";
19 | export const USER_DETAILS_FAIL = "USER_DETAILS_FAIL";
20 | export const USER_DETAILS_RESET = "USER_DETAILS_RESET";
21 |
22 | // UPDATE USER DETAILS
23 | export const USER_UPDATE_PROFILE_REQUEST = "USER_UPDATE_PROFILE_REQUEST";
24 | export const USER_UPDATE_PROFILE_SUCCESS = "USER_UPDATE_PROFILE_SUCCESS";
25 | export const USER_UPDATE_PROFILE_FAIL = "USER_UPDATE_PROFILE_FAIL";
26 | export const USER_UPDATE_PROFILE_RESET = "USER_UPDATE_PROFILE_RESET";
27 |
28 | // USER LIST
29 | export const USER_LIST_REQUEST = "USER_LIST_REQUEST";
30 | export const USER_LIST_SUCCESS = "USER_LIST_SUCCESS";
31 | export const USER_LIST_FAIL = "USER_LIST_FAIL";
32 | export const USER_LIST_RESET = "USER_LIST_RESET";
33 |
34 | // USER DELETE
35 | export const USER_DELETE_REQUEST = "USER_DELETE_REQUEST";
36 | export const USER_DELETE_SUCCESS = "USER_DELETE_SUCCESS";
37 | export const USER_DELETE_FAIL = "USER_DELETE_FAIL";
38 |
39 | // USER EDIT
40 | export const USER_UPDATE_REQUEST = "USER_UPDATE_REQUEST";
41 | export const USER_UPDATE_SUCCESS = "USER_UPDATE_SUCCESS";
42 | export const USER_UPDATE_FAIL = "USER_UPDATE_FAIL";
43 | export const USER_UPDATE_RESET = "USER_UPDATE_RESET";
44 |
--------------------------------------------------------------------------------
/frontend/src/index.css:
--------------------------------------------------------------------------------
1 | /* App.js */
2 | main {
3 | min-height: 80vh;
4 | }
5 |
6 | /* Product.js */
7 | h3 {
8 | padding: 1rem 0;
9 | }
10 |
11 | /* Rating.js */
12 | .rating span {
13 | margin: 0.1rem;
14 | }
15 |
16 | /* CartScreen.js */
17 | h1 {
18 | font-size: 1.8rem;
19 | padding: 1rem 0;
20 | }
21 |
22 | h2 {
23 | font-size: 1.4rem;
24 | padding: 0.5rem 0;
25 | }
26 |
27 | /* HomeScreen.js (Carousel) */
28 | .carousel-item-next,
29 | .carousel-item-prev,
30 | .carousel-item.active {
31 | display: flex;
32 | }
33 |
34 | .carousel-caption {
35 | position: absolute;
36 | top: 0;
37 | color: white;
38 | }
39 |
40 | .carousel-caption h4 {
41 | color: #fff;
42 | }
43 |
44 | .carousel img {
45 | display: block;
46 | height: 300px;
47 | padding: 30px;
48 | margin: 40px;
49 | margin-top: 50px;
50 | border-radius: 50%;
51 | margin-left: auto;
52 | margin-right: auto;
53 | }
54 |
55 | .carousel a {
56 | margin: 0 auto;
57 | }
58 |
59 | @media (max-width: 900px) {
60 | .carousel-caption h2 {
61 | font-size: 2.5vw;
62 | color: white;
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/frontend/src/index.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import ReactDOM from "react-dom";
3 |
4 | /* REDUX */
5 | import { Provider } from "react-redux";
6 | import store from "./store";
7 |
8 | /* COMPONENTS */
9 | import App from "./App";
10 | import reportWebVitals from "./reportWebVitals";
11 |
12 | /* STYLING */
13 | import "./index.css";
14 | import "./bootstrap.min.css";
15 |
16 | ReactDOM.render(
17 |
18 |
19 | ,
20 | document.getElementById("root")
21 | );
22 |
23 | // If you want to start measuring performance in your app, pass a function
24 | // to log results (for example: reportWebVitals(console.log))
25 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
26 | reportWebVitals();
27 |
--------------------------------------------------------------------------------
/frontend/src/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/frontend/src/logo.png
--------------------------------------------------------------------------------
/frontend/src/products.js:
--------------------------------------------------------------------------------
1 | const products = [
2 | {
3 | _id: "1",
4 | name: "Airpods Wireless Bluetooth Headphones",
5 | image: "/images/airpods.jpg",
6 | description:
7 | "Bluetooth technology lets you connect it with compatible devices wirelessly High-quality AAC audio offers immersive listening experience Built-in microphone allows you to take calls while working",
8 | brand: "Apple",
9 | category: "Electronics",
10 | price: 89.99,
11 | countInStock: 0,
12 | rating: 4.5,
13 | numReviews: 12,
14 | },
15 | {
16 | _id: "2",
17 | name: "iPhone 11 Pro 256GB Memory",
18 | image: "/images/phone.jpg",
19 | description:
20 | "Introducing the iPhone 11 Pro. A transformative triple-camera system that adds tons of capability without complexity. An unprecedented leap in battery life",
21 | brand: "Apple",
22 | category: "Electronics",
23 | price: 599.99,
24 | countInStock: 7,
25 | rating: 4.0,
26 | numReviews: 8,
27 | },
28 | {
29 | _id: "3",
30 | name: "Cannon EOS 80D DSLR Camera",
31 | image: "/images/camera.jpg",
32 | description:
33 | "Characterized by versatile imaging specs, the Canon EOS 80D further clarifies itself using a pair of robust focusing systems and an intuitive design",
34 | brand: "Cannon",
35 | category: "Electronics",
36 | price: 929.99,
37 | countInStock: 5,
38 | rating: 3,
39 | numReviews: 12,
40 | },
41 | {
42 | _id: "4",
43 | name: "Sony Playstation 4 Pro White Version",
44 | image: "/images/playstation.jpg",
45 | description:
46 | "The ultimate home entertainment center starts with PlayStation. Whether you are into gaming, HD movies, television, music",
47 | brand: "Sony",
48 | category: "Electronics",
49 | price: 399.99,
50 | countInStock: 11,
51 | rating: 5,
52 | numReviews: 12,
53 | },
54 | {
55 | _id: "5",
56 | name: "Logitech G-Series Gaming Mouse",
57 | image: "/images/mouse.jpg",
58 | description:
59 | "Get a better handle on your games with this Logitech LIGHTSYNC gaming mouse. The six programmable buttons allow customization for a smooth playing experience",
60 | brand: "Logitech",
61 | category: "Electronics",
62 | price: 49.99,
63 | countInStock: 7,
64 | rating: 3.5,
65 | numReviews: 10,
66 | },
67 | {
68 | _id: "6",
69 | name: "Amazon Echo Dot 3rd Generation",
70 | image: "/images/alexa.jpg",
71 | description:
72 | "Meet Echo Dot - Our most popular smart speaker with a fabric design. It is our most compact smart speaker that fits perfectly into small space",
73 | brand: "Amazon",
74 | category: "Electronics",
75 | price: 29.99,
76 | countInStock: 0,
77 | rating: 4,
78 | numReviews: 12,
79 | },
80 | ];
81 |
82 | export default products;
83 |
--------------------------------------------------------------------------------
/frontend/src/reducers/cartReducers.js:
--------------------------------------------------------------------------------
1 | /* ACTION TYPES */
2 | import {
3 | CART_ADD_ITEM,
4 | CART_REMOVE_ITEM,
5 | CART_SAVE_SHIPPING_ADDRESS,
6 | CART_SAVE_PAYMENT_METHOD,
7 | CART_CLEAR_ITEMS,
8 | } from "../constants/cartConstants";
9 |
10 | /* REDUCER USED IN CartScreen & ShippingScreen COMPONENT */
11 | export const cartReducer = (
12 | state = {
13 | cartItems: [],
14 | shippingAddress: {},
15 | },
16 | action
17 | ) => {
18 | switch (action.type) {
19 | // IF ITEM DOESN'T EXIST IN CART WE ADD IT, IF IT ALREADY EXISTS THEN WE UPDATE IT'S QUANTITY
20 |
21 | /* CartScreen COMPONENT */
22 |
23 | case CART_ADD_ITEM: {
24 | const item = action.payload;
25 | const existItem = state.cartItems.find((x) => x.product === item.product);
26 |
27 | if (existItem) {
28 | return {
29 | ...state,
30 | cartItems: state.cartItems.map((x) =>
31 | x.product === existItem.product ? item : x
32 | ),
33 | };
34 | } else {
35 | return {
36 | ...state,
37 | cartItems: [...state.cartItems, item],
38 | };
39 | }
40 | }
41 |
42 | case CART_REMOVE_ITEM: {
43 | return {
44 | ...state,
45 | cartItems: state.cartItems.filter((x) => x.product !== action.payload),
46 | };
47 | }
48 |
49 | /* ShippingScreen COMPONENT */
50 |
51 | case CART_SAVE_SHIPPING_ADDRESS:
52 | return {
53 | ...state,
54 | shippingAddress: action.payload,
55 | };
56 |
57 | /* PaymentScreen COMPONENT */
58 |
59 | case CART_SAVE_PAYMENT_METHOD:
60 | return {
61 | ...state,
62 | paymentMethod: action.payload,
63 | };
64 |
65 | /* PlaceOrderScreen COMPONENT */
66 | case CART_CLEAR_ITEMS:
67 | return {
68 | ...state,
69 | cartItems: [],
70 | };
71 |
72 | default:
73 | return state;
74 | }
75 | };
76 |
--------------------------------------------------------------------------------
/frontend/src/reportWebVitals.js:
--------------------------------------------------------------------------------
1 | const reportWebVitals = onPerfEntry => {
2 | if (onPerfEntry && onPerfEntry instanceof Function) {
3 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4 | getCLS(onPerfEntry);
5 | getFID(onPerfEntry);
6 | getFCP(onPerfEntry);
7 | getLCP(onPerfEntry);
8 | getTTFB(onPerfEntry);
9 | });
10 | }
11 | };
12 |
13 | export default reportWebVitals;
14 |
--------------------------------------------------------------------------------
/frontend/src/screens/HomeScreen.js:
--------------------------------------------------------------------------------
1 | import React, { useEffect } from "react";
2 |
3 | /* REACT-BOOTSTRAP */
4 | import { Row, Col } from "react-bootstrap";
5 |
6 | /* COMPONENTS */
7 | import Product from "../components/Product";
8 | import Loader from "../components/Loader";
9 | import Message from "../components/Message";
10 | import Paginate from "../components/Paginate";
11 | import ProductCarousel from "../components/ProductCarousel";
12 |
13 | /* REACT - REDUX */
14 | import { useDispatch, useSelector } from "react-redux";
15 |
16 | /* ACTION CREATORS */
17 | import { listProducts } from "../actions/productActions";
18 |
19 | function HomeScreen({ history }) {
20 | const dispatch = useDispatch();
21 |
22 | /* PULLING A PART OF STATE FROM THE ACTUAL STATE IN THE REDUX STORE */
23 | const productList = useSelector((state) => state.productList);
24 | const { products, page, pages, loading, error } = productList;
25 |
26 | /* FIRING OFF THE ACTION CREATORS USING DISPATCH */
27 |
28 | let keyword =
29 | history.location
30 | .search; /* IF USER SEARCHES FOR ANYTHING THEN THIS KEYWORD CHANGES AND USE EFFECT GETS TRIGGERED */
31 |
32 | useEffect(() => {
33 | dispatch(listProducts(keyword));
34 | }, [dispatch, keyword]);
35 |
36 | return (
37 |
38 | {!keyword &&
}
39 |
40 |
Latest Products
41 |
42 | {loading ? (
43 |
44 | ) : error ? (
45 |
{error}
46 | ) : (
47 |
48 |
49 | {products.map((product) => {
50 | return (
51 |
52 |
53 |
54 | );
55 | })}
56 |
57 |
58 |
59 |
60 | )}
61 |
62 | );
63 | }
64 |
65 | export default HomeScreen;
66 |
--------------------------------------------------------------------------------
/frontend/src/screens/LoginScreen.js:
--------------------------------------------------------------------------------
1 | import React, { useState, useEffect } from "react";
2 |
3 | /* REACT ROUTER */
4 | import { Link } from "react-router-dom";
5 |
6 | /* REACT BOOTSTRAP */
7 | import { Row, Col, Button, Form } from "react-bootstrap";
8 |
9 | /* COMPONENTS */
10 | import Message from "../components/Message";
11 | import Loader from "../components/Loader";
12 | import FormContainer from "../components/FormContainer";
13 |
14 | /* REACT - REDUX */
15 | import { useDispatch, useSelector } from "react-redux";
16 |
17 | /* ACTION CREATORS */
18 | import { login } from "../actions/userActions";
19 |
20 | function LoginScreen({ location, history }) {
21 | /* STATE */
22 | const [email, setEmail] = useState("");
23 | const [password, setpassword] = useState("");
24 |
25 | const dispatch = useDispatch();
26 |
27 | /* SETTING UP REDIRECT */
28 | const redirect = location.search ? location.search.split("=")[1] : "/";
29 |
30 | /* PULLING A PART OF STATE FROM THE ACTUAL STATE IN THE REDUX STORE */
31 | const userLogin = useSelector((state) => state.userLogin);
32 |
33 | const { userInfo, loading, error } = userLogin;
34 |
35 | /* REDIRECTING AN ALREADY LOGGED IN USER, AS WE DON'T WANT THEM TO SEE THE LOGIN PAGE */
36 | useEffect(() => {
37 | if (userInfo) {
38 | history.push(redirect);
39 | }
40 | }, [history, userInfo, redirect]);
41 |
42 | /* HANDLERS */
43 |
44 | const submitHandler = (e) => {
45 | e.preventDefault();
46 |
47 | /* FIRING OFF THE ACTION CREATORS USING DISPATCH FOR LOGIN */
48 | dispatch(login(email, password));
49 | };
50 |
51 | return (
52 |
53 | Sign In
54 |
55 | {error && {error}}
56 | {loading && }
57 |
58 |
60 | Email Address
61 | setEmail(e.target.value)}
66 | />
67 |
68 |
69 |
70 | Password
71 | setpassword(e.target.value)}
76 | />
77 |
78 |
79 |
82 |
83 |
84 |
85 |
86 | New Customer ?{" "}
87 |
88 | Register
89 |
90 |
91 |
92 |
93 | );
94 | }
95 |
96 | export default LoginScreen;
97 |
--------------------------------------------------------------------------------
/frontend/src/screens/PaymentScreen.js:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 |
3 | /* REACT BOOTSTRAP */
4 | import { Button, Form, Col } from "react-bootstrap";
5 |
6 | /* COMPONENTS */
7 | import FormContainer from "../components/FormContainer";
8 | import CheckoutSteps from "../components/CheckoutSteps";
9 |
10 | /* REACT - REDUX */
11 | import { useDispatch, useSelector } from "react-redux";
12 |
13 | /* ACTION CREATORS */
14 | import { savePaymentMethod } from "../actions/cartActions";
15 |
16 | function PaymentScreen({ history }) {
17 | // PULLING OUT SHIPPING ADDRESS FROM CART
18 | const cart = useSelector((state) => state.cart);
19 |
20 | const { shippingAddress } = cart;
21 |
22 | // STATE
23 | const [paymentMethod, setPaymentMethod] = useState("PayPal");
24 |
25 | /* IF NO SHIPPING ADDRESS THEN REDIRECT TO ShippingAddress SCREEN */
26 | if (!shippingAddress.address) {
27 | history.push("./shipping");
28 | }
29 |
30 | // HANDLERS
31 |
32 | const dispatch = useDispatch();
33 |
34 | const submitHandler = (e) => {
35 | e.preventDefault();
36 |
37 | dispatch(savePaymentMethod(paymentMethod));
38 |
39 | // AFTER CHOSING THE PAYMENT METHOD REDIRECT USER TO PlaceOrder SCREEN
40 | history.push("/placeorder");
41 | };
42 |
43 | return (
44 |
45 |
46 |
47 |
49 | Select Method
50 |
51 | setPaymentMethod(e.target.value)}
58 | >
59 |
60 |
61 |
62 |
65 |
66 |
67 | );
68 | }
69 |
70 | export default PaymentScreen;
71 |
72 |
--------------------------------------------------------------------------------
/frontend/src/store.js:
--------------------------------------------------------------------------------
1 | /* REDUX */
2 | import { createStore, combineReducers, applyMiddleware } from "redux";
3 |
4 | import thunk from "redux-thunk";
5 |
6 | import { composeWithDevTools } from "redux-devtools-extension";
7 |
8 | /* IMPORTING REDUCERS */
9 | import {
10 | productListReducer,
11 | productDetailsReducer,
12 | productDeleteReducer,
13 | productCreateReducer,
14 | productUpdateReducer,
15 | productReviewCreateReducer,
16 | productTopRatedReducer,
17 | } from "./reducers/productReducers";
18 |
19 | import { cartReducer } from "./reducers/cartReducers";
20 |
21 | import {
22 | userLoginReducer,
23 | userRegisterReducer,
24 | userDetailsReducer,
25 | userUpdateProfileReducer,
26 | userListReducer,
27 | userDeleteReducer,
28 | userUpdateReducer,
29 | } from "./reducers/userReducers";
30 |
31 | import {
32 | orderCreateReducer,
33 | orderDetailsReducer,
34 | orderPayReducer,
35 | orderListMyReducer,
36 | orderListReducer,
37 | orderDeliverReducer,
38 | } from "./reducers/orderReducers";
39 |
40 | /* COMBINED REDUCER */
41 | const reducer = combineReducers({
42 | cart: cartReducer,
43 |
44 | productList: productListReducer,
45 | productDetails: productDetailsReducer,
46 | productDelete: productDeleteReducer,
47 | productCreate: productCreateReducer,
48 | productUpdate: productUpdateReducer,
49 | productReviewCreate: productReviewCreateReducer,
50 | productTopRated: productTopRatedReducer,
51 |
52 | userLogin: userLoginReducer,
53 | userRegister: userRegisterReducer,
54 | userDetails: userDetailsReducer,
55 | userUpdateProfle: userUpdateProfileReducer,
56 | userList: userListReducer,
57 | userDelete: userDeleteReducer,
58 | userUpdate: userUpdateReducer,
59 |
60 | orderCreate: orderCreateReducer,
61 | orderDetails: orderDetailsReducer,
62 | orderPay: orderPayReducer,
63 | orderListMy: orderListMyReducer,
64 | orderList: orderListReducer,
65 | orderDeliver: orderDeliverReducer,
66 | });
67 |
68 | /* PULLING DATA OUT OF LOCAL STORAGE AND LOAD IT INTO INITIAL STATE */
69 | const cartItemsFromStorage = localStorage.getItem("cartItems")
70 | ? JSON.parse(localStorage.getItem("cartItems"))
71 | : [];
72 |
73 | const userInfoFromStorage = localStorage.getItem("userInfo")
74 | ? JSON.parse(localStorage.getItem("userInfo"))
75 | : null;
76 |
77 | const shippingAddressFromStorage = localStorage.getItem("shippingAddress")
78 | ? JSON.parse(localStorage.getItem("shippingAddress"))
79 | : {};
80 |
81 | /* INITIAL STATE */
82 | const initialState = {
83 | cart: {
84 | cartItems: cartItemsFromStorage,
85 | shippingAddress: shippingAddressFromStorage,
86 | },
87 | userLogin: {
88 | userInfo: userInfoFromStorage,
89 | },
90 | };
91 |
92 | const middleware = [thunk];
93 |
94 | /* REDUX STORE */
95 | const store = createStore(
96 | reducer,
97 | initialState,
98 | composeWithDevTools(applyMiddleware(...middleware))
99 | );
100 |
101 | export default store;
102 |
--------------------------------------------------------------------------------
/manage.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 | """Django's command-line utility for administrative tasks."""
3 | import os
4 | import sys
5 |
6 |
7 | def main():
8 | """Run administrative tasks."""
9 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backend.settings')
10 | try:
11 | from django.core.management import execute_from_command_line
12 | except ImportError as exc:
13 | raise ImportError(
14 | "Couldn't import Django. Are you sure it's installed and "
15 | "available on your PYTHONPATH environment variable? Did you "
16 | "forget to activate a virtual environment?"
17 | ) from exc
18 | execute_from_command_line(sys.argv)
19 |
20 |
21 | if __name__ == '__main__':
22 | main()
23 |
--------------------------------------------------------------------------------
/media/images/demon_bluray.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/media/images/demon_bluray.jpg
--------------------------------------------------------------------------------
/media/images/eren_figure.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/media/images/eren_figure.jpg
--------------------------------------------------------------------------------
/media/images/fma.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/media/images/fma.jpg
--------------------------------------------------------------------------------
/media/images/goku_veg_figure.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/media/images/goku_veg_figure.jpg
--------------------------------------------------------------------------------
/media/images/ichigo_shirt.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/media/images/ichigo_shirt.jpg
--------------------------------------------------------------------------------
/media/images/itachi.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/media/images/itachi.jpg
--------------------------------------------------------------------------------
/media/images/juju.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/media/images/juju.jpg
--------------------------------------------------------------------------------
/media/images/levi_figure.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/media/images/levi_figure.jpg
--------------------------------------------------------------------------------
/media/images/mat.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/media/images/mat.jpg
--------------------------------------------------------------------------------
/media/images/mikasajacket.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/media/images/mikasajacket.jpg
--------------------------------------------------------------------------------
/media/images/naruto_figure.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/media/images/naruto_figure.jpg
--------------------------------------------------------------------------------
/media/images/nezu.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/media/images/nezu.jpg
--------------------------------------------------------------------------------
/media/images/placeholder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/media/images/placeholder.png
--------------------------------------------------------------------------------
/media/images/puzzle.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/media/images/puzzle.jpg
--------------------------------------------------------------------------------
/media/images/shinobu_figure.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/media/images/shinobu_figure.jpg
--------------------------------------------------------------------------------
/media/images/stone.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/media/images/stone.jpg
--------------------------------------------------------------------------------
/media/images/vegito.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/media/images/vegito.jpg
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/requirements.txt
--------------------------------------------------------------------------------
/runtime.txt:
--------------------------------------------------------------------------------
1 | python-3.9.5
--------------------------------------------------------------------------------
/ss/ss1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/ss/ss1.png
--------------------------------------------------------------------------------
/ss/ss2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/ss/ss2.png
--------------------------------------------------------------------------------
/ss/ss3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/ss/ss3.png
--------------------------------------------------------------------------------
/ss/ss4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/ss/ss4.png
--------------------------------------------------------------------------------
/ss/ss5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/ss/ss5.png
--------------------------------------------------------------------------------
/ss/ss6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/ss/ss6.png
--------------------------------------------------------------------------------
/static/images/demon_bluray.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/static/images/demon_bluray.jpg
--------------------------------------------------------------------------------
/static/images/eren_figure.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/static/images/eren_figure.jpg
--------------------------------------------------------------------------------
/static/images/fma.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/static/images/fma.jpg
--------------------------------------------------------------------------------
/static/images/goku_veg_figure.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/static/images/goku_veg_figure.jpg
--------------------------------------------------------------------------------
/static/images/ichigo_shirt.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/static/images/ichigo_shirt.jpg
--------------------------------------------------------------------------------
/static/images/itachi.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/static/images/itachi.jpg
--------------------------------------------------------------------------------
/static/images/juju.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/static/images/juju.jpg
--------------------------------------------------------------------------------
/static/images/levi_figure.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/static/images/levi_figure.jpg
--------------------------------------------------------------------------------
/static/images/mat.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/static/images/mat.jpg
--------------------------------------------------------------------------------
/static/images/mikasajacket.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/static/images/mikasajacket.jpg
--------------------------------------------------------------------------------
/static/images/naruto_figure.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/static/images/naruto_figure.jpg
--------------------------------------------------------------------------------
/static/images/nezu.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/static/images/nezu.jpg
--------------------------------------------------------------------------------
/static/images/puzzle.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/static/images/puzzle.jpg
--------------------------------------------------------------------------------
/static/images/shinobu_figure.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/static/images/shinobu_figure.jpg
--------------------------------------------------------------------------------
/static/images/stone.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/static/images/stone.jpg
--------------------------------------------------------------------------------
/static/images/vegito.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/static/images/vegito.jpg
--------------------------------------------------------------------------------
/staticfiles/admin/css/dashboard.css:
--------------------------------------------------------------------------------
1 | /* DASHBOARD */
2 |
3 | .dashboard .module table th {
4 | width: 100%;
5 | }
6 |
7 | .dashboard .module table td {
8 | white-space: nowrap;
9 | }
10 |
11 | .dashboard .module table td a {
12 | display: block;
13 | padding-right: .6em;
14 | }
15 |
16 | /* RECENT ACTIONS MODULE */
17 |
18 | .module ul.actionlist {
19 | margin-left: 0;
20 | }
21 |
22 | ul.actionlist li {
23 | list-style-type: none;
24 | overflow: hidden;
25 | text-overflow: ellipsis;
26 | }
27 |
--------------------------------------------------------------------------------
/staticfiles/admin/css/fonts.css:
--------------------------------------------------------------------------------
1 | @font-face {
2 | font-family: 'Roboto';
3 | src: url('../fonts/Roboto-Bold-webfont.woff');
4 | font-weight: 700;
5 | font-style: normal;
6 | }
7 |
8 | @font-face {
9 | font-family: 'Roboto';
10 | src: url('../fonts/Roboto-Regular-webfont.woff');
11 | font-weight: 400;
12 | font-style: normal;
13 | }
14 |
15 | @font-face {
16 | font-family: 'Roboto';
17 | src: url('../fonts/Roboto-Light-webfont.woff');
18 | font-weight: 300;
19 | font-style: normal;
20 | }
21 |
--------------------------------------------------------------------------------
/staticfiles/admin/css/login.css:
--------------------------------------------------------------------------------
1 | /* LOGIN FORM */
2 |
3 | .login {
4 | background: var(--darkened-bg);
5 | height: auto;
6 | }
7 |
8 | .login #header {
9 | height: auto;
10 | padding: 15px 16px;
11 | justify-content: center;
12 | }
13 |
14 | .login #header h1 {
15 | font-size: 18px;
16 | }
17 |
18 | .login #header h1 a {
19 | color: var(--header-link-color);
20 | }
21 |
22 | .login #content {
23 | padding: 20px 20px 0;
24 | }
25 |
26 | .login #container {
27 | background: var(--body-bg);
28 | border: 1px solid var(--hairline-color);
29 | border-radius: 4px;
30 | overflow: hidden;
31 | width: 28em;
32 | min-width: 300px;
33 | margin: 100px auto;
34 | height: auto;
35 | }
36 |
37 | .login .form-row {
38 | padding: 4px 0;
39 | }
40 |
41 | .login .form-row label {
42 | display: block;
43 | line-height: 2em;
44 | }
45 |
46 | .login .form-row #id_username, .login .form-row #id_password {
47 | padding: 8px;
48 | width: 100%;
49 | box-sizing: border-box;
50 | }
51 |
52 | .login .submit-row {
53 | padding: 1em 0 0 0;
54 | margin: 0;
55 | text-align: center;
56 | }
57 |
58 | .login .password-reset-link {
59 | text-align: center;
60 | }
61 |
--------------------------------------------------------------------------------
/staticfiles/admin/css/nav_sidebar.css:
--------------------------------------------------------------------------------
1 | .sticky {
2 | position: sticky;
3 | top: 0;
4 | max-height: 100vh;
5 | }
6 |
7 | .toggle-nav-sidebar {
8 | z-index: 20;
9 | left: 0;
10 | display: flex;
11 | align-items: center;
12 | justify-content: center;
13 | flex: 0 0 23px;
14 | width: 23px;
15 | border: 0;
16 | border-right: 1px solid var(--hairline-color);
17 | background-color: var(--body-bg);
18 | cursor: pointer;
19 | font-size: 20px;
20 | color: var(--link-fg);
21 | padding: 0;
22 | }
23 |
24 | [dir="rtl"] .toggle-nav-sidebar {
25 | border-left: 1px solid var(--hairline-color);
26 | border-right: 0;
27 | }
28 |
29 | .toggle-nav-sidebar:hover,
30 | .toggle-nav-sidebar:focus {
31 | background-color: var(--darkened-bg);
32 | }
33 |
34 | #nav-sidebar {
35 | z-index: 15;
36 | flex: 0 0 275px;
37 | left: -276px;
38 | margin-left: -276px;
39 | border-top: 1px solid transparent;
40 | border-right: 1px solid var(--hairline-color);
41 | background-color: var(--body-bg);
42 | overflow: auto;
43 | }
44 |
45 | [dir="rtl"] #nav-sidebar {
46 | border-left: 1px solid var(--hairline-color);
47 | border-right: 0;
48 | left: 0;
49 | margin-left: 0;
50 | right: -276px;
51 | margin-right: -276px;
52 | }
53 |
54 | .toggle-nav-sidebar::before {
55 | content: '\00BB';
56 | }
57 |
58 | .main.shifted .toggle-nav-sidebar::before {
59 | content: '\00AB';
60 | }
61 |
62 | .main.shifted > #nav-sidebar {
63 | left: 24px;
64 | margin-left: 0;
65 | }
66 |
67 | [dir="rtl"] .main.shifted > #nav-sidebar {
68 | left: 0;
69 | right: 24px;
70 | margin-right: 0;
71 | }
72 |
73 | #nav-sidebar .module th {
74 | width: 100%;
75 | overflow-wrap: anywhere;
76 | }
77 |
78 | #nav-sidebar .module th,
79 | #nav-sidebar .module caption {
80 | padding-left: 16px;
81 | }
82 |
83 | #nav-sidebar .module td {
84 | white-space: nowrap;
85 | }
86 |
87 | [dir="rtl"] #nav-sidebar .module th,
88 | [dir="rtl"] #nav-sidebar .module caption {
89 | padding-left: 8px;
90 | padding-right: 16px;
91 | }
92 |
93 | #nav-sidebar .current-app .section:link,
94 | #nav-sidebar .current-app .section:visited {
95 | color: var(--header-color);
96 | font-weight: bold;
97 | }
98 |
99 | #nav-sidebar .current-model {
100 | background: var(--selected-row);
101 | }
102 |
103 | .main > #nav-sidebar + .content {
104 | max-width: calc(100% - 23px);
105 | }
106 |
107 | .main.shifted > #nav-sidebar + .content {
108 | max-width: calc(100% - 299px);
109 | }
110 |
111 | @media (max-width: 767px) {
112 | #nav-sidebar, #toggle-nav-sidebar {
113 | display: none;
114 | }
115 |
116 | .main > #nav-sidebar + .content,
117 | .main.shifted > #nav-sidebar + .content {
118 | max-width: 100%;
119 | }
120 | }
121 |
--------------------------------------------------------------------------------
/staticfiles/admin/css/responsive_rtl.css:
--------------------------------------------------------------------------------
1 | /* TABLETS */
2 |
3 | @media (max-width: 1024px) {
4 | [dir="rtl"] .colMS {
5 | margin-right: 0;
6 | }
7 |
8 | [dir="rtl"] #user-tools {
9 | text-align: right;
10 | }
11 |
12 | [dir="rtl"] #changelist .actions label {
13 | padding-left: 10px;
14 | padding-right: 0;
15 | }
16 |
17 | [dir="rtl"] #changelist .actions select {
18 | margin-left: 0;
19 | margin-right: 15px;
20 | }
21 |
22 | [dir="rtl"] .change-list .filtered .results,
23 | [dir="rtl"] .change-list .filtered .paginator,
24 | [dir="rtl"] .filtered #toolbar,
25 | [dir="rtl"] .filtered div.xfull,
26 | [dir="rtl"] .filtered .actions,
27 | [dir="rtl"] #changelist-filter {
28 | margin-left: 0;
29 | }
30 |
31 | [dir="rtl"] .inline-group ul.tools a.add,
32 | [dir="rtl"] .inline-group div.add-row a,
33 | [dir="rtl"] .inline-group .tabular tr.add-row td a {
34 | padding: 8px 26px 8px 10px;
35 | background-position: calc(100% - 8px) 9px;
36 | }
37 |
38 | [dir="rtl"] .related-widget-wrapper-link + .selector {
39 | margin-right: 0;
40 | margin-left: 15px;
41 | }
42 |
43 | [dir="rtl"] .selector .selector-filter label {
44 | margin-right: 0;
45 | margin-left: 8px;
46 | }
47 |
48 | [dir="rtl"] .object-tools li {
49 | float: right;
50 | }
51 |
52 | [dir="rtl"] .object-tools li + li {
53 | margin-left: 0;
54 | margin-right: 15px;
55 | }
56 |
57 | [dir="rtl"] .dashboard .module table td a {
58 | padding-left: 0;
59 | padding-right: 16px;
60 | }
61 | }
62 |
63 | /* MOBILE */
64 |
65 | @media (max-width: 767px) {
66 | [dir="rtl"] .aligned .related-lookup,
67 | [dir="rtl"] .aligned .datetimeshortcuts {
68 | margin-left: 0;
69 | margin-right: 15px;
70 | }
71 |
72 | [dir="rtl"] .aligned ul {
73 | margin-right: 0;
74 | }
75 |
76 | [dir="rtl"] #changelist-filter {
77 | margin-left: 0;
78 | margin-right: 0;
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/staticfiles/admin/css/vendor/select2/LICENSE-SELECT2.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2012-2017 Kevin Brown, Igor Vaynberg, and Select2 contributors
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/staticfiles/admin/fonts/README.txt:
--------------------------------------------------------------------------------
1 | Roboto webfont source: https://www.google.com/fonts/specimen/Roboto
2 | WOFF files extracted using https://github.com/majodev/google-webfonts-helper
3 | Weights used in this project: Light (300), Regular (400), Bold (700)
4 |
--------------------------------------------------------------------------------
/staticfiles/admin/fonts/Roboto-Bold-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/staticfiles/admin/fonts/Roboto-Bold-webfont.woff
--------------------------------------------------------------------------------
/staticfiles/admin/fonts/Roboto-Light-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/staticfiles/admin/fonts/Roboto-Light-webfont.woff
--------------------------------------------------------------------------------
/staticfiles/admin/fonts/Roboto-Regular-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/staticfiles/admin/fonts/Roboto-Regular-webfont.woff
--------------------------------------------------------------------------------
/staticfiles/admin/img/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2014 Code Charm Ltd
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/README.txt:
--------------------------------------------------------------------------------
1 | All icons are taken from Font Awesome (http://fontawesome.io/) project.
2 | The Font Awesome font is licensed under the SIL OFL 1.1:
3 | - https://scripts.sil.org/OFL
4 |
5 | SVG icons source: https://github.com/encharm/Font-Awesome-SVG-PNG
6 | Font-Awesome-SVG-PNG is licensed under the MIT license (see file license
7 | in current folder).
8 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/calendar-icons.svg:
--------------------------------------------------------------------------------
1 |
15 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/gis/move_vertex_off.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/gis/move_vertex_on.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/icon-addlink.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/icon-alert.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/icon-calendar.svg:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/icon-changelink.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/icon-clock.svg:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/icon-deletelink.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/icon-no.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/icon-unknown-alt.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/icon-unknown.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/icon-viewlink.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/icon-yes.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/inline-delete.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/search.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/sorting-icons.svg:
--------------------------------------------------------------------------------
1 |
20 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/tooltag-add.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/staticfiles/admin/img/tooltag-arrowright.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/staticfiles/admin/js/autocomplete.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | {
3 | const $ = django.jQuery;
4 | const init = function($element, options) {
5 | const settings = $.extend({
6 | ajax: {
7 | data: function(params) {
8 | return {
9 | term: params.term,
10 | page: params.page,
11 | app_label: $element.data('app-label'),
12 | model_name: $element.data('model-name'),
13 | field_name: $element.data('field-name')
14 | };
15 | }
16 | }
17 | }, options);
18 | $element.select2(settings);
19 | };
20 |
21 | $.fn.djangoAdminSelect2 = function(options) {
22 | const settings = $.extend({}, options);
23 | $.each(this, function(i, element) {
24 | const $element = $(element);
25 | init($element, settings);
26 | });
27 | return this;
28 | };
29 |
30 | $(function() {
31 | // Initialize all autocomplete widgets except the one in the template
32 | // form used when a new formset is added.
33 | $('.admin-autocomplete').not('[name*=__prefix__]').djangoAdminSelect2();
34 | });
35 |
36 | $(document).on('formset:added', (function() {
37 | return function(event, $newFormset) {
38 | return $newFormset.find('.admin-autocomplete').djangoAdminSelect2();
39 | };
40 | })(this));
41 | }
42 |
--------------------------------------------------------------------------------
/staticfiles/admin/js/cancel.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | {
3 | // Call function fn when the DOM is loaded and ready. If it is already
4 | // loaded, call the function now.
5 | // http://youmightnotneedjquery.com/#ready
6 | function ready(fn) {
7 | if (document.readyState !== 'loading') {
8 | fn();
9 | } else {
10 | document.addEventListener('DOMContentLoaded', fn);
11 | }
12 | }
13 |
14 | ready(function() {
15 | function handleClick(event) {
16 | event.preventDefault();
17 | const params = new URLSearchParams(window.location.search);
18 | if (params.has('_popup')) {
19 | window.close(); // Close the popup.
20 | } else {
21 | window.history.back(); // Otherwise, go back.
22 | }
23 | }
24 |
25 | document.querySelectorAll('.cancel-link').forEach(function(el) {
26 | el.addEventListener('click', handleClick);
27 | });
28 | });
29 | }
30 |
--------------------------------------------------------------------------------
/staticfiles/admin/js/change_form.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | {
3 | const inputTags = ['BUTTON', 'INPUT', 'SELECT', 'TEXTAREA'];
4 | const modelName = document.getElementById('django-admin-form-add-constants').dataset.modelName;
5 | if (modelName) {
6 | const form = document.getElementById(modelName + '_form');
7 | for (const element of form.elements) {
8 | // HTMLElement.offsetParent returns null when the element is not
9 | // rendered.
10 | if (inputTags.includes(element.tagName) && !element.disabled && element.offsetParent) {
11 | element.focus();
12 | break;
13 | }
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/staticfiles/admin/js/collapse.js:
--------------------------------------------------------------------------------
1 | /*global gettext*/
2 | 'use strict';
3 | {
4 | window.addEventListener('load', function() {
5 | // Add anchor tag for Show/Hide link
6 | const fieldsets = document.querySelectorAll('fieldset.collapse');
7 | for (const [i, elem] of fieldsets.entries()) {
8 | // Don't hide if fields in this fieldset have errors
9 | if (elem.querySelectorAll('div.errors, ul.errorlist').length === 0) {
10 | elem.classList.add('collapsed');
11 | const h2 = elem.querySelector('h2');
12 | const link = document.createElement('a');
13 | link.id = 'fieldsetcollapser' + i;
14 | link.className = 'collapse-toggle';
15 | link.href = '#';
16 | link.textContent = gettext('Show');
17 | h2.appendChild(document.createTextNode(' ('));
18 | h2.appendChild(link);
19 | h2.appendChild(document.createTextNode(')'));
20 | }
21 | }
22 | // Add toggle to hide/show anchor tag
23 | const toggleFunc = function(ev) {
24 | if (ev.target.matches('.collapse-toggle')) {
25 | ev.preventDefault();
26 | ev.stopPropagation();
27 | const fieldset = ev.target.closest('fieldset');
28 | if (fieldset.classList.contains('collapsed')) {
29 | // Show
30 | ev.target.textContent = gettext('Hide');
31 | fieldset.classList.remove('collapsed');
32 | } else {
33 | // Hide
34 | ev.target.textContent = gettext('Show');
35 | fieldset.classList.add('collapsed');
36 | }
37 | }
38 | };
39 | document.querySelectorAll('fieldset.module').forEach(function(el) {
40 | el.addEventListener('click', toggleFunc);
41 | });
42 | });
43 | }
44 |
--------------------------------------------------------------------------------
/staticfiles/admin/js/jquery.init.js:
--------------------------------------------------------------------------------
1 | /*global jQuery:false*/
2 | 'use strict';
3 | /* Puts the included jQuery into our own namespace using noConflict and passing
4 | * it 'true'. This ensures that the included jQuery doesn't pollute the global
5 | * namespace (i.e. this preserves pre-existing values for both window.$ and
6 | * window.jQuery).
7 | */
8 | window.django = {jQuery: jQuery.noConflict(true)};
9 |
--------------------------------------------------------------------------------
/staticfiles/admin/js/nav_sidebar.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | {
3 | const toggleNavSidebar = document.getElementById('toggle-nav-sidebar');
4 | if (toggleNavSidebar !== null) {
5 | const navLinks = document.querySelectorAll('#nav-sidebar a');
6 | function disableNavLinkTabbing() {
7 | for (const navLink of navLinks) {
8 | navLink.tabIndex = -1;
9 | }
10 | }
11 | function enableNavLinkTabbing() {
12 | for (const navLink of navLinks) {
13 | navLink.tabIndex = 0;
14 | }
15 | }
16 |
17 | const main = document.getElementById('main');
18 | let navSidebarIsOpen = localStorage.getItem('django.admin.navSidebarIsOpen');
19 | if (navSidebarIsOpen === null) {
20 | navSidebarIsOpen = 'true';
21 | }
22 | if (navSidebarIsOpen === 'false') {
23 | disableNavLinkTabbing();
24 | }
25 | main.classList.toggle('shifted', navSidebarIsOpen === 'true');
26 |
27 | toggleNavSidebar.addEventListener('click', function() {
28 | if (navSidebarIsOpen === 'true') {
29 | navSidebarIsOpen = 'false';
30 | disableNavLinkTabbing();
31 | } else {
32 | navSidebarIsOpen = 'true';
33 | enableNavLinkTabbing();
34 | }
35 | localStorage.setItem('django.admin.navSidebarIsOpen', navSidebarIsOpen);
36 | main.classList.toggle('shifted');
37 | });
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/staticfiles/admin/js/popup_response.js:
--------------------------------------------------------------------------------
1 | /*global opener */
2 | 'use strict';
3 | {
4 | const initData = JSON.parse(document.getElementById('django-admin-popup-response-constants').dataset.popupResponse);
5 | switch(initData.action) {
6 | case 'change':
7 | opener.dismissChangeRelatedObjectPopup(window, initData.value, initData.obj, initData.new_value);
8 | break;
9 | case 'delete':
10 | opener.dismissDeleteRelatedObjectPopup(window, initData.value);
11 | break;
12 | default:
13 | opener.dismissAddRelatedObjectPopup(window, initData.value, initData.obj);
14 | break;
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/staticfiles/admin/js/prepopulate.js:
--------------------------------------------------------------------------------
1 | /*global URLify*/
2 | 'use strict';
3 | {
4 | const $ = django.jQuery;
5 | $.fn.prepopulate = function(dependencies, maxLength, allowUnicode) {
6 | /*
7 | Depends on urlify.js
8 | Populates a selected field with the values of the dependent fields,
9 | URLifies and shortens the string.
10 | dependencies - array of dependent fields ids
11 | maxLength - maximum length of the URLify'd string
12 | allowUnicode - Unicode support of the URLify'd string
13 | */
14 | return this.each(function() {
15 | const prepopulatedField = $(this);
16 |
17 | const populate = function() {
18 | // Bail if the field's value has been changed by the user
19 | if (prepopulatedField.data('_changed')) {
20 | return;
21 | }
22 |
23 | const values = [];
24 | $.each(dependencies, function(i, field) {
25 | field = $(field);
26 | if (field.val().length > 0) {
27 | values.push(field.val());
28 | }
29 | });
30 | prepopulatedField.val(URLify(values.join(' '), maxLength, allowUnicode));
31 | };
32 |
33 | prepopulatedField.data('_changed', false);
34 | prepopulatedField.on('change', function() {
35 | prepopulatedField.data('_changed', true);
36 | });
37 |
38 | if (!prepopulatedField.val()) {
39 | $(dependencies.join(',')).on('keyup change focus', populate);
40 | }
41 | });
42 | };
43 | }
44 |
--------------------------------------------------------------------------------
/staticfiles/admin/js/prepopulate_init.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | {
3 | const $ = django.jQuery;
4 | const fields = $('#django-admin-prepopulated-fields-constants').data('prepopulatedFields');
5 | $.each(fields, function(index, field) {
6 | $('.empty-form .form-row .field-' + field.name + ', .empty-form.form-row .field-' + field.name).addClass('prepopulated_field');
7 | $(field.id).data('dependency_list', field.dependency_list).prepopulate(
8 | field.dependency_ids, field.maxLength, field.allowUnicode
9 | );
10 | });
11 | }
12 |
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/jquery/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright JS Foundation and other contributors, https://js.foundation/
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2012-2017 Kevin Brown, Igor Vaynberg, and Select2 contributors
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/af.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/af",[],function(){return{errorLoading:function(){return"Die resultate kon nie gelaai word nie."},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Verwyders asseblief "+n+" character";return 1!=n&&(r+="s"),r},inputTooShort:function(e){return"Voer asseblief "+(e.minimum-e.input.length)+" of meer karakters"},loadingMore:function(){return"Meer resultate word gelaai…"},maximumSelected:function(e){var n="Kies asseblief net "+e.maximum+" item";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"Geen resultate gevind"},searching:function(){return"Besig…"},removeAllItems:function(){return"Verwyder alle items"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/ar.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ar",[],function(){return{errorLoading:function(){return"لا يمكن تحميل النتائج"},inputTooLong:function(n){return"الرجاء حذف "+(n.input.length-n.maximum)+" عناصر"},inputTooShort:function(n){return"الرجاء إضافة "+(n.minimum-n.input.length)+" عناصر"},loadingMore:function(){return"جاري تحميل نتائج إضافية..."},maximumSelected:function(n){return"تستطيع إختيار "+n.maximum+" بنود فقط"},noResults:function(){return"لم يتم العثور على أي نتائج"},searching:function(){return"جاري البحث…"},removeAllItems:function(){return"قم بإزالة كل العناصر"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/az.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/az",[],function(){return{inputTooLong:function(n){return n.input.length-n.maximum+" simvol silin"},inputTooShort:function(n){return n.minimum-n.input.length+" simvol daxil edin"},loadingMore:function(){return"Daha çox nəticə yüklənir…"},maximumSelected:function(n){return"Sadəcə "+n.maximum+" element seçə bilərsiniz"},noResults:function(){return"Nəticə tapılmadı"},searching:function(){return"Axtarılır…"},removeAllItems:function(){return"Bütün elementləri sil"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/bg.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/bg",[],function(){return{inputTooLong:function(n){var e=n.input.length-n.maximum,u="Моля въведете с "+e+" по-малко символ";return e>1&&(u+="a"),u},inputTooShort:function(n){var e=n.minimum-n.input.length,u="Моля въведете още "+e+" символ";return e>1&&(u+="a"),u},loadingMore:function(){return"Зареждат се още…"},maximumSelected:function(n){var e="Можете да направите до "+n.maximum+" ";return n.maximum>1?e+="избора":e+="избор",e},noResults:function(){return"Няма намерени съвпадения"},searching:function(){return"Търсене…"},removeAllItems:function(){return"Премахнете всички елементи"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/bn.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/bn",[],function(){return{errorLoading:function(){return"ফলাফলগুলি লোড করা যায়নি।"},inputTooLong:function(n){var e=n.input.length-n.maximum,u="অনুগ্রহ করে "+e+" টি অক্ষর মুছে দিন।";return 1!=e&&(u="অনুগ্রহ করে "+e+" টি অক্ষর মুছে দিন।"),u},inputTooShort:function(n){return n.minimum-n.input.length+" টি অক্ষর অথবা অধিক অক্ষর লিখুন।"},loadingMore:function(){return"আরো ফলাফল লোড হচ্ছে ..."},maximumSelected:function(n){var e=n.maximum+" টি আইটেম নির্বাচন করতে পারবেন।";return 1!=n.maximum&&(e=n.maximum+" টি আইটেম নির্বাচন করতে পারবেন।"),e},noResults:function(){return"কোন ফলাফল পাওয়া যায়নি।"},searching:function(){return"অনুসন্ধান করা হচ্ছে ..."}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/bs.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/bs",[],function(){function e(e,n,r,t){return e%10==1&&e%100!=11?n:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?r:t}return{errorLoading:function(){return"Preuzimanje nije uspijelo."},inputTooLong:function(n){var r=n.input.length-n.maximum,t="Obrišite "+r+" simbol";return t+=e(r,"","a","a")},inputTooShort:function(n){var r=n.minimum-n.input.length,t="Ukucajte bar još "+r+" simbol";return t+=e(r,"","a","a")},loadingMore:function(){return"Preuzimanje još rezultata…"},maximumSelected:function(n){var r="Možete izabrati samo "+n.maximum+" stavk";return r+=e(n.maximum,"u","e","i")},noResults:function(){return"Ništa nije pronađeno"},searching:function(){return"Pretraga…"},removeAllItems:function(){return"Uklonite sve stavke"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/ca.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ca",[],function(){return{errorLoading:function(){return"La càrrega ha fallat"},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Si us plau, elimina "+n+" car";return r+=1==n?"àcter":"àcters"},inputTooShort:function(e){var n=e.minimum-e.input.length,r="Si us plau, introdueix "+n+" car";return r+=1==n?"àcter":"àcters"},loadingMore:function(){return"Carregant més resultats…"},maximumSelected:function(e){var n="Només es pot seleccionar "+e.maximum+" element";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"No s'han trobat resultats"},searching:function(){return"Cercant…"},removeAllItems:function(){return"Treu tots els elements"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/cs.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/cs",[],function(){function e(e,n){switch(e){case 2:return n?"dva":"dvě";case 3:return"tři";case 4:return"čtyři"}return""}return{errorLoading:function(){return"Výsledky nemohly být načteny."},inputTooLong:function(n){var t=n.input.length-n.maximum;return 1==t?"Prosím, zadejte o jeden znak méně.":t<=4?"Prosím, zadejte o "+e(t,!0)+" znaky méně.":"Prosím, zadejte o "+t+" znaků méně."},inputTooShort:function(n){var t=n.minimum-n.input.length;return 1==t?"Prosím, zadejte ještě jeden znak.":t<=4?"Prosím, zadejte ještě další "+e(t,!0)+" znaky.":"Prosím, zadejte ještě dalších "+t+" znaků."},loadingMore:function(){return"Načítají se další výsledky…"},maximumSelected:function(n){var t=n.maximum;return 1==t?"Můžete zvolit jen jednu položku.":t<=4?"Můžete zvolit maximálně "+e(t,!1)+" položky.":"Můžete zvolit maximálně "+t+" položek."},noResults:function(){return"Nenalezeny žádné položky."},searching:function(){return"Vyhledávání…"},removeAllItems:function(){return"Odstraňte všechny položky"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/da.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/da",[],function(){return{errorLoading:function(){return"Resultaterne kunne ikke indlæses."},inputTooLong:function(e){return"Angiv venligst "+(e.input.length-e.maximum)+" tegn mindre"},inputTooShort:function(e){return"Angiv venligst "+(e.minimum-e.input.length)+" tegn mere"},loadingMore:function(){return"Indlæser flere resultater…"},maximumSelected:function(e){var n="Du kan kun vælge "+e.maximum+" emne";return 1!=e.maximum&&(n+="r"),n},noResults:function(){return"Ingen resultater fundet"},searching:function(){return"Søger…"},removeAllItems:function(){return"Fjern alle elementer"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/de.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/de",[],function(){return{errorLoading:function(){return"Die Ergebnisse konnten nicht geladen werden."},inputTooLong:function(e){return"Bitte "+(e.input.length-e.maximum)+" Zeichen weniger eingeben"},inputTooShort:function(e){return"Bitte "+(e.minimum-e.input.length)+" Zeichen mehr eingeben"},loadingMore:function(){return"Lade mehr Ergebnisse…"},maximumSelected:function(e){var n="Sie können nur "+e.maximum+" Element";return 1!=e.maximum&&(n+="e"),n+=" auswählen"},noResults:function(){return"Keine Übereinstimmungen gefunden"},searching:function(){return"Suche…"},removeAllItems:function(){return"Entferne alle Elemente"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/dsb.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/dsb",[],function(){var n=["znamuško","znamušce","znamuška","znamuškow"],e=["zapisk","zapiska","zapiski","zapiskow"],u=function(n,e){return 1===n?e[0]:2===n?e[1]:n>2&&n<=4?e[2]:n>=5?e[3]:void 0};return{errorLoading:function(){return"Wuslědki njejsu se dali zacytaś."},inputTooLong:function(e){var a=e.input.length-e.maximum;return"Pšosym lašuj "+a+" "+u(a,n)},inputTooShort:function(e){var a=e.minimum-e.input.length;return"Pšosym zapódaj nanejmjenjej "+a+" "+u(a,n)},loadingMore:function(){return"Dalšne wuslědki se zacytaju…"},maximumSelected:function(n){return"Móžoš jano "+n.maximum+" "+u(n.maximum,e)+"wubraś."},noResults:function(){return"Žedne wuslědki namakane"},searching:function(){return"Pyta se…"},removeAllItems:function(){return"Remove all items"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/el.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/el",[],function(){return{errorLoading:function(){return"Τα αποτελέσματα δεν μπόρεσαν να φορτώσουν."},inputTooLong:function(n){var e=n.input.length-n.maximum,u="Παρακαλώ διαγράψτε "+e+" χαρακτήρ";return 1==e&&(u+="α"),1!=e&&(u+="ες"),u},inputTooShort:function(n){return"Παρακαλώ συμπληρώστε "+(n.minimum-n.input.length)+" ή περισσότερους χαρακτήρες"},loadingMore:function(){return"Φόρτωση περισσότερων αποτελεσμάτων…"},maximumSelected:function(n){var e="Μπορείτε να επιλέξετε μόνο "+n.maximum+" επιλογ";return 1==n.maximum&&(e+="ή"),1!=n.maximum&&(e+="ές"),e},noResults:function(){return"Δεν βρέθηκαν αποτελέσματα"},searching:function(){return"Αναζήτηση…"},removeAllItems:function(){return"Καταργήστε όλα τα στοιχεία"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/en.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Please delete "+n+" character";return 1!=n&&(r+="s"),r},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var n="You can only select "+e.maximum+" item";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/es.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/es",[],function(){return{errorLoading:function(){return"No se pudieron cargar los resultados"},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Por favor, elimine "+n+" car";return r+=1==n?"ácter":"acteres"},inputTooShort:function(e){var n=e.minimum-e.input.length,r="Por favor, introduzca "+n+" car";return r+=1==n?"ácter":"acteres"},loadingMore:function(){return"Cargando más resultados…"},maximumSelected:function(e){var n="Sólo puede seleccionar "+e.maximum+" elemento";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"No se encontraron resultados"},searching:function(){return"Buscando…"},removeAllItems:function(){return"Eliminar todos los elementos"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/et.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/et",[],function(){return{inputTooLong:function(e){var n=e.input.length-e.maximum,t="Sisesta "+n+" täht";return 1!=n&&(t+="e"),t+=" vähem"},inputTooShort:function(e){var n=e.minimum-e.input.length,t="Sisesta "+n+" täht";return 1!=n&&(t+="e"),t+=" rohkem"},loadingMore:function(){return"Laen tulemusi…"},maximumSelected:function(e){var n="Saad vaid "+e.maximum+" tulemus";return 1==e.maximum?n+="e":n+="t",n+=" valida"},noResults:function(){return"Tulemused puuduvad"},searching:function(){return"Otsin…"},removeAllItems:function(){return"Eemalda kõik esemed"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/eu.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/eu",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Idatzi ";return n+=1==t?"karaktere bat":t+" karaktere",n+=" gutxiago"},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Idatzi ";return n+=1==t?"karaktere bat":t+" karaktere",n+=" gehiago"},loadingMore:function(){return"Emaitza gehiago kargatzen…"},maximumSelected:function(e){return 1===e.maximum?"Elementu bakarra hauta dezakezu":e.maximum+" elementu hauta ditzakezu soilik"},noResults:function(){return"Ez da bat datorrenik aurkitu"},searching:function(){return"Bilatzen…"},removeAllItems:function(){return"Kendu elementu guztiak"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/fa.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/fa",[],function(){return{errorLoading:function(){return"امکان بارگذاری نتایج وجود ندارد."},inputTooLong:function(n){return"لطفاً "+(n.input.length-n.maximum)+" کاراکتر را حذف نمایید"},inputTooShort:function(n){return"لطفاً تعداد "+(n.minimum-n.input.length)+" کاراکتر یا بیشتر وارد نمایید"},loadingMore:function(){return"در حال بارگذاری نتایج بیشتر..."},maximumSelected:function(n){return"شما تنها میتوانید "+n.maximum+" آیتم را انتخاب نمایید"},noResults:function(){return"هیچ نتیجهای یافت نشد"},searching:function(){return"در حال جستجو..."},removeAllItems:function(){return"همه موارد را حذف کنید"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/fi.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/fi",[],function(){return{errorLoading:function(){return"Tuloksia ei saatu ladattua."},inputTooLong:function(n){return"Ole hyvä ja anna "+(n.input.length-n.maximum)+" merkkiä vähemmän"},inputTooShort:function(n){return"Ole hyvä ja anna "+(n.minimum-n.input.length)+" merkkiä lisää"},loadingMore:function(){return"Ladataan lisää tuloksia…"},maximumSelected:function(n){return"Voit valita ainoastaan "+n.maximum+" kpl"},noResults:function(){return"Ei tuloksia"},searching:function(){return"Haetaan…"},removeAllItems:function(){return"Poista kaikki kohteet"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/fr.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/fr",[],function(){return{errorLoading:function(){return"Les résultats ne peuvent pas être chargés."},inputTooLong:function(e){var n=e.input.length-e.maximum;return"Supprimez "+n+" caractère"+(n>1?"s":"")},inputTooShort:function(e){var n=e.minimum-e.input.length;return"Saisissez au moins "+n+" caractère"+(n>1?"s":"")},loadingMore:function(){return"Chargement de résultats supplémentaires…"},maximumSelected:function(e){return"Vous pouvez seulement sélectionner "+e.maximum+" élément"+(e.maximum>1?"s":"")},noResults:function(){return"Aucun résultat trouvé"},searching:function(){return"Recherche en cours…"},removeAllItems:function(){return"Supprimer tous les éléments"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/gl.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/gl",[],function(){return{errorLoading:function(){return"Non foi posíbel cargar os resultados."},inputTooLong:function(e){var n=e.input.length-e.maximum;return 1===n?"Elimine un carácter":"Elimine "+n+" caracteres"},inputTooShort:function(e){var n=e.minimum-e.input.length;return 1===n?"Engada un carácter":"Engada "+n+" caracteres"},loadingMore:function(){return"Cargando máis resultados…"},maximumSelected:function(e){return 1===e.maximum?"Só pode seleccionar un elemento":"Só pode seleccionar "+e.maximum+" elementos"},noResults:function(){return"Non se atoparon resultados"},searching:function(){return"Buscando…"},removeAllItems:function(){return"Elimina todos os elementos"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/he.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/he",[],function(){return{errorLoading:function(){return"שגיאה בטעינת התוצאות"},inputTooLong:function(n){var e=n.input.length-n.maximum,r="נא למחוק ";return r+=1===e?"תו אחד":e+" תווים"},inputTooShort:function(n){var e=n.minimum-n.input.length,r="נא להכניס ";return r+=1===e?"תו אחד":e+" תווים",r+=" או יותר"},loadingMore:function(){return"טוען תוצאות נוספות…"},maximumSelected:function(n){var e="באפשרותך לבחור עד ";return 1===n.maximum?e+="פריט אחד":e+=n.maximum+" פריטים",e},noResults:function(){return"לא נמצאו תוצאות"},searching:function(){return"מחפש…"},removeAllItems:function(){return"הסר את כל הפריטים"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/hi.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hi",[],function(){return{errorLoading:function(){return"परिणामों को लोड नहीं किया जा सका।"},inputTooLong:function(n){var e=n.input.length-n.maximum,r=e+" अक्षर को हटा दें";return e>1&&(r=e+" अक्षरों को हटा दें "),r},inputTooShort:function(n){return"कृपया "+(n.minimum-n.input.length)+" या अधिक अक्षर दर्ज करें"},loadingMore:function(){return"अधिक परिणाम लोड हो रहे है..."},maximumSelected:function(n){return"आप केवल "+n.maximum+" आइटम का चयन कर सकते हैं"},noResults:function(){return"कोई परिणाम नहीं मिला"},searching:function(){return"खोज रहा है..."},removeAllItems:function(){return"सभी वस्तुओं को हटा दें"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/hr.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hr",[],function(){function n(n){var e=" "+n+" znak";return n%10<5&&n%10>0&&(n%100<5||n%100>19)?n%10>1&&(e+="a"):e+="ova",e}return{errorLoading:function(){return"Preuzimanje nije uspjelo."},inputTooLong:function(e){return"Unesite "+n(e.input.length-e.maximum)},inputTooShort:function(e){return"Unesite još "+n(e.minimum-e.input.length)},loadingMore:function(){return"Učitavanje rezultata…"},maximumSelected:function(n){return"Maksimalan broj odabranih stavki je "+n.maximum},noResults:function(){return"Nema rezultata"},searching:function(){return"Pretraga…"},removeAllItems:function(){return"Ukloni sve stavke"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/hsb.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hsb",[],function(){var n=["znamješko","znamješce","znamješka","znamješkow"],e=["zapisk","zapiskaj","zapiski","zapiskow"],u=function(n,e){return 1===n?e[0]:2===n?e[1]:n>2&&n<=4?e[2]:n>=5?e[3]:void 0};return{errorLoading:function(){return"Wuslědki njedachu so začitać."},inputTooLong:function(e){var a=e.input.length-e.maximum;return"Prošu zhašej "+a+" "+u(a,n)},inputTooShort:function(e){var a=e.minimum-e.input.length;return"Prošu zapodaj znajmjeńša "+a+" "+u(a,n)},loadingMore:function(){return"Dalše wuslědki so začitaja…"},maximumSelected:function(n){return"Móžeš jenož "+n.maximum+" "+u(n.maximum,e)+"wubrać"},noResults:function(){return"Žane wuslědki namakane"},searching:function(){return"Pyta so…"},removeAllItems:function(){return"Remove all items"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/hu.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/hu",[],function(){return{errorLoading:function(){return"Az eredmények betöltése nem sikerült."},inputTooLong:function(e){return"Túl hosszú. "+(e.input.length-e.maximum)+" karakterrel több, mint kellene."},inputTooShort:function(e){return"Túl rövid. Még "+(e.minimum-e.input.length)+" karakter hiányzik."},loadingMore:function(){return"Töltés…"},maximumSelected:function(e){return"Csak "+e.maximum+" elemet lehet kiválasztani."},noResults:function(){return"Nincs találat."},searching:function(){return"Keresés…"},removeAllItems:function(){return"Távolítson el minden elemet"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/hy.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hy",[],function(){return{errorLoading:function(){return"Արդյունքները հնարավոր չէ բեռնել։"},inputTooLong:function(n){return"Խնդրում ենք հեռացնել "+(n.input.length-n.maximum)+" նշան"},inputTooShort:function(n){return"Խնդրում ենք մուտքագրել "+(n.minimum-n.input.length)+" կամ ավել նշաններ"},loadingMore:function(){return"Բեռնվում են նոր արդյունքներ․․․"},maximumSelected:function(n){return"Դուք կարող եք ընտրել առավելագույնը "+n.maximum+" կետ"},noResults:function(){return"Արդյունքներ չեն գտնվել"},searching:function(){return"Որոնում․․․"},removeAllItems:function(){return"Հեռացնել բոլոր տարրերը"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/id.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/id",[],function(){return{errorLoading:function(){return"Data tidak boleh diambil."},inputTooLong:function(n){return"Hapuskan "+(n.input.length-n.maximum)+" huruf"},inputTooShort:function(n){return"Masukkan "+(n.minimum-n.input.length)+" huruf lagi"},loadingMore:function(){return"Mengambil data…"},maximumSelected:function(n){return"Anda hanya dapat memilih "+n.maximum+" pilihan"},noResults:function(){return"Tidak ada data yang sesuai"},searching:function(){return"Mencari…"},removeAllItems:function(){return"Hapus semua item"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/is.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/is",[],function(){return{inputTooLong:function(n){var t=n.input.length-n.maximum,e="Vinsamlegast styttið texta um "+t+" staf";return t<=1?e:e+"i"},inputTooShort:function(n){var t=n.minimum-n.input.length,e="Vinsamlegast skrifið "+t+" staf";return t>1&&(e+="i"),e+=" í viðbót"},loadingMore:function(){return"Sæki fleiri niðurstöður…"},maximumSelected:function(n){return"Þú getur aðeins valið "+n.maximum+" atriði"},noResults:function(){return"Ekkert fannst"},searching:function(){return"Leita…"},removeAllItems:function(){return"Fjarlægðu öll atriði"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/it.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/it",[],function(){return{errorLoading:function(){return"I risultati non possono essere caricati."},inputTooLong:function(e){var n=e.input.length-e.maximum,t="Per favore cancella "+n+" caratter";return t+=1!==n?"i":"e"},inputTooShort:function(e){return"Per favore inserisci "+(e.minimum-e.input.length)+" o più caratteri"},loadingMore:function(){return"Caricando più risultati…"},maximumSelected:function(e){var n="Puoi selezionare solo "+e.maximum+" element";return 1!==e.maximum?n+="i":n+="o",n},noResults:function(){return"Nessun risultato trovato"},searching:function(){return"Sto cercando…"},removeAllItems:function(){return"Rimuovi tutti gli oggetti"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/ja.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ja",[],function(){return{errorLoading:function(){return"結果が読み込まれませんでした"},inputTooLong:function(n){return n.input.length-n.maximum+" 文字を削除してください"},inputTooShort:function(n){return"少なくとも "+(n.minimum-n.input.length)+" 文字を入力してください"},loadingMore:function(){return"読み込み中…"},maximumSelected:function(n){return n.maximum+" 件しか選択できません"},noResults:function(){return"対象が見つかりません"},searching:function(){return"検索しています…"},removeAllItems:function(){return"すべてのアイテムを削除"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/ka.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ka",[],function(){return{errorLoading:function(){return"მონაცემების ჩატვირთვა შეუძლებელია."},inputTooLong:function(n){return"გთხოვთ აკრიფეთ "+(n.input.length-n.maximum)+" სიმბოლოთი ნაკლები"},inputTooShort:function(n){return"გთხოვთ აკრიფეთ "+(n.minimum-n.input.length)+" სიმბოლო ან მეტი"},loadingMore:function(){return"მონაცემების ჩატვირთვა…"},maximumSelected:function(n){return"თქვენ შეგიძლიათ აირჩიოთ არაუმეტეს "+n.maximum+" ელემენტი"},noResults:function(){return"რეზულტატი არ მოიძებნა"},searching:function(){return"ძიება…"},removeAllItems:function(){return"ამოიღე ყველა ელემენტი"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/km.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/km",[],function(){return{errorLoading:function(){return"មិនអាចទាញយកទិន្នន័យ"},inputTooLong:function(n){return"សូមលុបចេញ "+(n.input.length-n.maximum)+" អក្សរ"},inputTooShort:function(n){return"សូមបញ្ចូល"+(n.minimum-n.input.length)+" អក្សរ រឺ ច្រើនជាងនេះ"},loadingMore:function(){return"កំពុងទាញយកទិន្នន័យបន្ថែម..."},maximumSelected:function(n){return"អ្នកអាចជ្រើសរើសបានតែ "+n.maximum+" ជម្រើសប៉ុណ្ណោះ"},noResults:function(){return"មិនមានលទ្ធផល"},searching:function(){return"កំពុងស្វែងរក..."},removeAllItems:function(){return"លុបធាតុទាំងអស់"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/ko.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ko",[],function(){return{errorLoading:function(){return"결과를 불러올 수 없습니다."},inputTooLong:function(n){return"너무 깁니다. "+(n.input.length-n.maximum)+" 글자 지워주세요."},inputTooShort:function(n){return"너무 짧습니다. "+(n.minimum-n.input.length)+" 글자 더 입력해주세요."},loadingMore:function(){return"불러오는 중…"},maximumSelected:function(n){return"최대 "+n.maximum+"개까지만 선택 가능합니다."},noResults:function(){return"결과가 없습니다."},searching:function(){return"검색 중…"},removeAllItems:function(){return"모든 항목 삭제"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/lt.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/lt",[],function(){function n(n,e,i,t){return n%10==1&&(n%100<11||n%100>19)?e:n%10>=2&&n%10<=9&&(n%100<11||n%100>19)?i:t}return{inputTooLong:function(e){var i=e.input.length-e.maximum,t="Pašalinkite "+i+" simbol";return t+=n(i,"į","ius","ių")},inputTooShort:function(e){var i=e.minimum-e.input.length,t="Įrašykite dar "+i+" simbol";return t+=n(i,"į","ius","ių")},loadingMore:function(){return"Kraunama daugiau rezultatų…"},maximumSelected:function(e){var i="Jūs galite pasirinkti tik "+e.maximum+" element";return i+=n(e.maximum,"ą","us","ų")},noResults:function(){return"Atitikmenų nerasta"},searching:function(){return"Ieškoma…"},removeAllItems:function(){return"Pašalinti visus elementus"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/lv.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/lv",[],function(){function e(e,n,u,i){return 11===e?n:e%10==1?u:i}return{inputTooLong:function(n){var u=n.input.length-n.maximum,i="Lūdzu ievadiet par "+u;return(i+=" simbol"+e(u,"iem","u","iem"))+" mazāk"},inputTooShort:function(n){var u=n.minimum-n.input.length,i="Lūdzu ievadiet vēl "+u;return i+=" simbol"+e(u,"us","u","us")},loadingMore:function(){return"Datu ielāde…"},maximumSelected:function(n){var u="Jūs varat izvēlēties ne vairāk kā "+n.maximum;return u+=" element"+e(n.maximum,"us","u","us")},noResults:function(){return"Sakritību nav"},searching:function(){return"Meklēšana…"},removeAllItems:function(){return"Noņemt visus vienumus"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/mk.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/mk",[],function(){return{inputTooLong:function(n){var e=(n.input.length,n.maximum,"Ве молиме внесете "+n.maximum+" помалку карактер");return 1!==n.maximum&&(e+="и"),e},inputTooShort:function(n){var e=(n.minimum,n.input.length,"Ве молиме внесете уште "+n.maximum+" карактер");return 1!==n.maximum&&(e+="и"),e},loadingMore:function(){return"Вчитување резултати…"},maximumSelected:function(n){var e="Можете да изберете само "+n.maximum+" ставк";return 1===n.maximum?e+="а":e+="и",e},noResults:function(){return"Нема пронајдено совпаѓања"},searching:function(){return"Пребарување…"},removeAllItems:function(){return"Отстрани ги сите предмети"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/ms.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ms",[],function(){return{errorLoading:function(){return"Keputusan tidak berjaya dimuatkan."},inputTooLong:function(n){return"Sila hapuskan "+(n.input.length-n.maximum)+" aksara"},inputTooShort:function(n){return"Sila masukkan "+(n.minimum-n.input.length)+" atau lebih aksara"},loadingMore:function(){return"Sedang memuatkan keputusan…"},maximumSelected:function(n){return"Anda hanya boleh memilih "+n.maximum+" pilihan"},noResults:function(){return"Tiada padanan yang ditemui"},searching:function(){return"Mencari…"},removeAllItems:function(){return"Keluarkan semua item"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/nb.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/nb",[],function(){return{errorLoading:function(){return"Kunne ikke hente resultater."},inputTooLong:function(e){return"Vennligst fjern "+(e.input.length-e.maximum)+" tegn"},inputTooShort:function(e){return"Vennligst skriv inn "+(e.minimum-e.input.length)+" tegn til"},loadingMore:function(){return"Laster flere resultater…"},maximumSelected:function(e){return"Du kan velge maks "+e.maximum+" elementer"},noResults:function(){return"Ingen treff"},searching:function(){return"Søker…"},removeAllItems:function(){return"Fjern alle elementer"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/ne.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ne",[],function(){return{errorLoading:function(){return"नतिजाहरु देखाउन सकिएन।"},inputTooLong:function(n){var e=n.input.length-n.maximum,u="कृपया "+e+" अक्षर मेटाउनुहोस्।";return 1!=e&&(u+="कृपया "+e+" अक्षरहरु मेटाउनुहोस्।"),u},inputTooShort:function(n){return"कृपया बाँकी रहेका "+(n.minimum-n.input.length)+" वा अरु धेरै अक्षरहरु भर्नुहोस्।"},loadingMore:function(){return"अरु नतिजाहरु भरिँदैछन् …"},maximumSelected:function(n){var e="तँपाई "+n.maximum+" वस्तु मात्र छान्न पाउँनुहुन्छ।";return 1!=n.maximum&&(e="तँपाई "+n.maximum+" वस्तुहरु मात्र छान्न पाउँनुहुन्छ।"),e},noResults:function(){return"कुनै पनि नतिजा भेटिएन।"},searching:function(){return"खोजि हुँदैछ…"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/nl.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/nl",[],function(){return{errorLoading:function(){return"De resultaten konden niet worden geladen."},inputTooLong:function(e){return"Gelieve "+(e.input.length-e.maximum)+" karakters te verwijderen"},inputTooShort:function(e){return"Gelieve "+(e.minimum-e.input.length)+" of meer karakters in te voeren"},loadingMore:function(){return"Meer resultaten laden…"},maximumSelected:function(e){var n=1==e.maximum?"kan":"kunnen",r="Er "+n+" maar "+e.maximum+" item";return 1!=e.maximum&&(r+="s"),r+=" worden geselecteerd"},noResults:function(){return"Geen resultaten gevonden…"},searching:function(){return"Zoeken…"},removeAllItems:function(){return"Verwijder alle items"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/pl.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/pl",[],function(){var n=["znak","znaki","znaków"],e=["element","elementy","elementów"],r=function(n,e){return 1===n?e[0]:n>1&&n<=4?e[1]:n>=5?e[2]:void 0};return{errorLoading:function(){return"Nie można załadować wyników."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Usuń "+t+" "+r(t,n)},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Podaj przynajmniej "+t+" "+r(t,n)},loadingMore:function(){return"Trwa ładowanie…"},maximumSelected:function(n){return"Możesz zaznaczyć tylko "+n.maximum+" "+r(n.maximum,e)},noResults:function(){return"Brak wyników"},searching:function(){return"Trwa wyszukiwanie…"},removeAllItems:function(){return"Usuń wszystkie przedmioty"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/ps.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ps",[],function(){return{errorLoading:function(){return"پايلي نه سي ترلاسه کېدای"},inputTooLong:function(n){var e=n.input.length-n.maximum,r="د مهربانۍ لمخي "+e+" توری ړنګ کړئ";return 1!=e&&(r=r.replace("توری","توري")),r},inputTooShort:function(n){return"لږ تر لږه "+(n.minimum-n.input.length)+" يا ډېر توري وليکئ"},loadingMore:function(){return"نوري پايلي ترلاسه کيږي..."},maximumSelected:function(n){var e="تاسو يوازي "+n.maximum+" قلم په نښه کولای سی";return 1!=n.maximum&&(e=e.replace("قلم","قلمونه")),e},noResults:function(){return"پايلي و نه موندل سوې"},searching:function(){return"لټول کيږي..."},removeAllItems:function(){return"ټول توکي لرې کړئ"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/pt-BR.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/pt-BR",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Apague "+n+" caracter";return 1!=n&&(r+="es"),r},inputTooShort:function(e){return"Digite "+(e.minimum-e.input.length)+" ou mais caracteres"},loadingMore:function(){return"Carregando mais resultados…"},maximumSelected:function(e){var n="Você só pode selecionar "+e.maximum+" ite";return 1==e.maximum?n+="m":n+="ns",n},noResults:function(){return"Nenhum resultado encontrado"},searching:function(){return"Buscando…"},removeAllItems:function(){return"Remover todos os itens"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/pt.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/pt",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var r=e.input.length-e.maximum,n="Por favor apague "+r+" ";return n+=1!=r?"caracteres":"caractere"},inputTooShort:function(e){return"Introduza "+(e.minimum-e.input.length)+" ou mais caracteres"},loadingMore:function(){return"A carregar mais resultados…"},maximumSelected:function(e){var r="Apenas pode seleccionar "+e.maximum+" ";return r+=1!=e.maximum?"itens":"item"},noResults:function(){return"Sem resultados"},searching:function(){return"A procurar…"},removeAllItems:function(){return"Remover todos os itens"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/ro.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ro",[],function(){return{errorLoading:function(){return"Rezultatele nu au putut fi incărcate."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vă rugăm să ștergeți"+t+" caracter";return 1!==t&&(n+="e"),n},inputTooShort:function(e){return"Vă rugăm să introduceți "+(e.minimum-e.input.length)+" sau mai multe caractere"},loadingMore:function(){return"Se încarcă mai multe rezultate…"},maximumSelected:function(e){var t="Aveți voie să selectați cel mult "+e.maximum;return t+=" element",1!==e.maximum&&(t+="e"),t},noResults:function(){return"Nu au fost găsite rezultate"},searching:function(){return"Căutare…"},removeAllItems:function(){return"Eliminați toate elementele"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/ru.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ru",[],function(){function n(n,e,r,u){return n%10<5&&n%10>0&&n%100<5||n%100>20?n%10>1?r:e:u}return{errorLoading:function(){return"Невозможно загрузить результаты"},inputTooLong:function(e){var r=e.input.length-e.maximum,u="Пожалуйста, введите на "+r+" символ";return u+=n(r,"","a","ов"),u+=" меньше"},inputTooShort:function(e){var r=e.minimum-e.input.length,u="Пожалуйста, введите ещё хотя бы "+r+" символ";return u+=n(r,"","a","ов")},loadingMore:function(){return"Загрузка данных…"},maximumSelected:function(e){var r="Вы можете выбрать не более "+e.maximum+" элемент";return r+=n(e.maximum,"","a","ов")},noResults:function(){return"Совпадений не найдено"},searching:function(){return"Поиск…"},removeAllItems:function(){return"Удалить все элементы"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/sk.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sk",[],function(){var e={2:function(e){return e?"dva":"dve"},3:function(){return"tri"},4:function(){return"štyri"}};return{errorLoading:function(){return"Výsledky sa nepodarilo načítať."},inputTooLong:function(n){var t=n.input.length-n.maximum;return 1==t?"Prosím, zadajte o jeden znak menej":t>=2&&t<=4?"Prosím, zadajte o "+e[t](!0)+" znaky menej":"Prosím, zadajte o "+t+" znakov menej"},inputTooShort:function(n){var t=n.minimum-n.input.length;return 1==t?"Prosím, zadajte ešte jeden znak":t<=4?"Prosím, zadajte ešte ďalšie "+e[t](!0)+" znaky":"Prosím, zadajte ešte ďalších "+t+" znakov"},loadingMore:function(){return"Načítanie ďalších výsledkov…"},maximumSelected:function(n){return 1==n.maximum?"Môžete zvoliť len jednu položku":n.maximum>=2&&n.maximum<=4?"Môžete zvoliť najviac "+e[n.maximum](!1)+" položky":"Môžete zvoliť najviac "+n.maximum+" položiek"},noResults:function(){return"Nenašli sa žiadne položky"},searching:function(){return"Vyhľadávanie…"},removeAllItems:function(){return"Odstráňte všetky položky"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/sl.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sl",[],function(){return{errorLoading:function(){return"Zadetkov iskanja ni bilo mogoče naložiti."},inputTooLong:function(e){var n=e.input.length-e.maximum,t="Prosim zbrišite "+n+" znak";return 2==n?t+="a":1!=n&&(t+="e"),t},inputTooShort:function(e){var n=e.minimum-e.input.length,t="Prosim vpišite še "+n+" znak";return 2==n?t+="a":1!=n&&(t+="e"),t},loadingMore:function(){return"Nalagam več zadetkov…"},maximumSelected:function(e){var n="Označite lahko največ "+e.maximum+" predmet";return 2==e.maximum?n+="a":1!=e.maximum&&(n+="e"),n},noResults:function(){return"Ni zadetkov."},searching:function(){return"Iščem…"},removeAllItems:function(){return"Odstranite vse elemente"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/sq.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sq",[],function(){return{errorLoading:function(){return"Rezultatet nuk mund të ngarkoheshin."},inputTooLong:function(e){var n=e.input.length-e.maximum,t="Të lutem fshi "+n+" karakter";return 1!=n&&(t+="e"),t},inputTooShort:function(e){return"Të lutem shkruaj "+(e.minimum-e.input.length)+" ose më shumë karaktere"},loadingMore:function(){return"Duke ngarkuar më shumë rezultate…"},maximumSelected:function(e){var n="Mund të zgjedhësh vetëm "+e.maximum+" element";return 1!=e.maximum&&(n+="e"),n},noResults:function(){return"Nuk u gjet asnjë rezultat"},searching:function(){return"Duke kërkuar…"},removeAllItems:function(){return"Hiq të gjitha sendet"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/sr-Cyrl.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/sr-Cyrl",[],function(){function n(n,e,r,u){return n%10==1&&n%100!=11?e:n%10>=2&&n%10<=4&&(n%100<12||n%100>14)?r:u}return{errorLoading:function(){return"Преузимање није успело."},inputTooLong:function(e){var r=e.input.length-e.maximum,u="Обришите "+r+" симбол";return u+=n(r,"","а","а")},inputTooShort:function(e){var r=e.minimum-e.input.length,u="Укуцајте бар још "+r+" симбол";return u+=n(r,"","а","а")},loadingMore:function(){return"Преузимање још резултата…"},maximumSelected:function(e){var r="Можете изабрати само "+e.maximum+" ставк";return r+=n(e.maximum,"у","е","и")},noResults:function(){return"Ништа није пронађено"},searching:function(){return"Претрага…"},removeAllItems:function(){return"Уклоните све ставке"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/sr.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/sr",[],function(){function n(n,e,r,t){return n%10==1&&n%100!=11?e:n%10>=2&&n%10<=4&&(n%100<12||n%100>14)?r:t}return{errorLoading:function(){return"Preuzimanje nije uspelo."},inputTooLong:function(e){var r=e.input.length-e.maximum,t="Obrišite "+r+" simbol";return t+=n(r,"","a","a")},inputTooShort:function(e){var r=e.minimum-e.input.length,t="Ukucajte bar još "+r+" simbol";return t+=n(r,"","a","a")},loadingMore:function(){return"Preuzimanje još rezultata…"},maximumSelected:function(e){var r="Možete izabrati samo "+e.maximum+" stavk";return r+=n(e.maximum,"u","e","i")},noResults:function(){return"Ništa nije pronađeno"},searching:function(){return"Pretraga…"},removeAllItems:function(){return"Уклоните све ставке"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/sv.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/sv",[],function(){return{errorLoading:function(){return"Resultat kunde inte laddas."},inputTooLong:function(n){return"Vänligen sudda ut "+(n.input.length-n.maximum)+" tecken"},inputTooShort:function(n){return"Vänligen skriv in "+(n.minimum-n.input.length)+" eller fler tecken"},loadingMore:function(){return"Laddar fler resultat…"},maximumSelected:function(n){return"Du kan max välja "+n.maximum+" element"},noResults:function(){return"Inga träffar"},searching:function(){return"Söker…"},removeAllItems:function(){return"Ta bort alla objekt"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/th.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/th",[],function(){return{errorLoading:function(){return"ไม่สามารถค้นข้อมูลได้"},inputTooLong:function(n){return"โปรดลบออก "+(n.input.length-n.maximum)+" ตัวอักษร"},inputTooShort:function(n){return"โปรดพิมพ์เพิ่มอีก "+(n.minimum-n.input.length)+" ตัวอักษร"},loadingMore:function(){return"กำลังค้นข้อมูลเพิ่ม…"},maximumSelected:function(n){return"คุณสามารถเลือกได้ไม่เกิน "+n.maximum+" รายการ"},noResults:function(){return"ไม่พบข้อมูล"},searching:function(){return"กำลังค้นข้อมูล…"},removeAllItems:function(){return"ลบรายการทั้งหมด"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/tk.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/tk",[],function(){return{errorLoading:function(){return"Netije ýüklenmedi."},inputTooLong:function(e){return e.input.length-e.maximum+" harp bozuň."},inputTooShort:function(e){return"Ýene-de iň az "+(e.minimum-e.input.length)+" harp ýazyň."},loadingMore:function(){return"Köpräk netije görkezilýär…"},maximumSelected:function(e){return"Diňe "+e.maximum+" sanysyny saýlaň."},noResults:function(){return"Netije tapylmady."},searching:function(){return"Gözlenýär…"},removeAllItems:function(){return"Remove all items"}}}),e.define,e.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/tr.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/tr",[],function(){return{errorLoading:function(){return"Sonuç yüklenemedi"},inputTooLong:function(n){return n.input.length-n.maximum+" karakter daha girmelisiniz"},inputTooShort:function(n){return"En az "+(n.minimum-n.input.length)+" karakter daha girmelisiniz"},loadingMore:function(){return"Daha fazla…"},maximumSelected:function(n){return"Sadece "+n.maximum+" seçim yapabilirsiniz"},noResults:function(){return"Sonuç bulunamadı"},searching:function(){return"Aranıyor…"},removeAllItems:function(){return"Tüm öğeleri kaldır"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/uk.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/uk",[],function(){function n(n,e,u,r){return n%100>10&&n%100<15?r:n%10==1?e:n%10>1&&n%10<5?u:r}return{errorLoading:function(){return"Неможливо завантажити результати"},inputTooLong:function(e){return"Будь ласка, видаліть "+(e.input.length-e.maximum)+" "+n(e.maximum,"літеру","літери","літер")},inputTooShort:function(n){return"Будь ласка, введіть "+(n.minimum-n.input.length)+" або більше літер"},loadingMore:function(){return"Завантаження інших результатів…"},maximumSelected:function(e){return"Ви можете вибрати лише "+e.maximum+" "+n(e.maximum,"пункт","пункти","пунктів")},noResults:function(){return"Нічого не знайдено"},searching:function(){return"Пошук…"},removeAllItems:function(){return"Видалити всі елементи"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/vi.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/vi",[],function(){return{inputTooLong:function(n){return"Vui lòng xóa bớt "+(n.input.length-n.maximum)+" ký tự"},inputTooShort:function(n){return"Vui lòng nhập thêm từ "+(n.minimum-n.input.length)+" ký tự trở lên"},loadingMore:function(){return"Đang lấy thêm kết quả…"},maximumSelected:function(n){return"Chỉ có thể chọn được "+n.maximum+" lựa chọn"},noResults:function(){return"Không tìm thấy kết quả"},searching:function(){return"Đang tìm…"},removeAllItems:function(){return"Xóa tất cả các mục"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/zh-CN.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/zh-CN",[],function(){return{errorLoading:function(){return"无法载入结果。"},inputTooLong:function(n){return"请删除"+(n.input.length-n.maximum)+"个字符"},inputTooShort:function(n){return"请再输入至少"+(n.minimum-n.input.length)+"个字符"},loadingMore:function(){return"载入更多结果…"},maximumSelected:function(n){return"最多只能选择"+n.maximum+"个项目"},noResults:function(){return"未找到结果"},searching:function(){return"搜索中…"},removeAllItems:function(){return"删除所有项目"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/select2/i18n/zh-TW.js:
--------------------------------------------------------------------------------
1 | /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2 |
3 | !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/zh-TW",[],function(){return{inputTooLong:function(n){return"請刪掉"+(n.input.length-n.maximum)+"個字元"},inputTooShort:function(n){return"請再輸入"+(n.minimum-n.input.length)+"個字元"},loadingMore:function(){return"載入中…"},maximumSelected:function(n){return"你只能選擇最多"+n.maximum+"項"},noResults:function(){return"沒有找到相符的項目"},searching:function(){return"搜尋中…"},removeAllItems:function(){return"刪除所有項目"}}}),n.define,n.require}();
--------------------------------------------------------------------------------
/staticfiles/admin/js/vendor/xregexp/LICENSE.txt:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2007-2017 Steven Levithan
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/staticfiles/js/2.548bc473.chunk.js.LICENSE.txt:
--------------------------------------------------------------------------------
1 | /*
2 | object-assign
3 | (c) Sindre Sorhus
4 | @license MIT
5 | */
6 |
7 | /*!
8 | Copyright (c) 2018 Jed Watson.
9 | Licensed under the MIT License (MIT), see
10 | http://jedwatson.github.io/classnames
11 | */
12 |
13 | /** @license React v0.20.2
14 | * scheduler.production.min.js
15 | *
16 | * Copyright (c) Facebook, Inc. and its affiliates.
17 | *
18 | * This source code is licensed under the MIT license found in the
19 | * LICENSE file in the root directory of this source tree.
20 | */
21 |
22 | /** @license React v16.13.1
23 | * react-is.production.min.js
24 | *
25 | * Copyright (c) Facebook, Inc. and its affiliates.
26 | *
27 | * This source code is licensed under the MIT license found in the
28 | * LICENSE file in the root directory of this source tree.
29 | */
30 |
31 | /** @license React v17.0.2
32 | * react-dom.production.min.js
33 | *
34 | * Copyright (c) Facebook, Inc. and its affiliates.
35 | *
36 | * This source code is licensed under the MIT license found in the
37 | * LICENSE file in the root directory of this source tree.
38 | */
39 |
40 | /** @license React v17.0.2
41 | * react-jsx-runtime.production.min.js
42 | *
43 | * Copyright (c) Facebook, Inc. and its affiliates.
44 | *
45 | * This source code is licensed under the MIT license found in the
46 | * LICENSE file in the root directory of this source tree.
47 | */
48 |
49 | /** @license React v17.0.2
50 | * react.production.min.js
51 | *
52 | * Copyright (c) Facebook, Inc. and its affiliates.
53 | *
54 | * This source code is licensed under the MIT license found in the
55 | * LICENSE file in the root directory of this source tree.
56 | */
57 |
--------------------------------------------------------------------------------
/staticfiles/js/runtime-main.b3325d9b.js:
--------------------------------------------------------------------------------
1 | !function(e){function r(r){for(var n,i,a=r[0],c=r[1],f=r[2],s=0,p=[];s= 980px wide, so add padding to the body to prevent
2 | content running up underneath it. */
3 |
4 | h1 {
5 | font-weight: 300;
6 | }
7 |
8 | h2, h3 {
9 | font-weight: 300;
10 | }
11 |
12 | .resource-description, .response-info {
13 | margin-bottom: 2em;
14 | }
15 |
16 | .version:before {
17 | content: "v";
18 | opacity: 0.6;
19 | padding-right: 0.25em;
20 | }
21 |
22 | .version {
23 | font-size: 70%;
24 | }
25 |
26 | .format-option {
27 | font-family: Menlo, Consolas, "Andale Mono", "Lucida Console", monospace;
28 | }
29 |
30 | .button-form {
31 | float: right;
32 | margin-right: 1em;
33 | }
34 |
35 | td.nested {
36 | padding: 0 !important;
37 | }
38 |
39 | td.nested > table {
40 | margin: 0;
41 | }
42 |
43 | form select, form input:not([type=checkbox]), form textarea {
44 | width: 90%;
45 | }
46 |
47 | form select[multiple] {
48 | height: 150px;
49 | }
50 |
51 | /* To allow tooltips to work on disabled elements */
52 | .disabled-tooltip-shield {
53 | position: absolute;
54 | top: 0;
55 | right: 0;
56 | bottom: 0;
57 | left: 0;
58 | }
59 |
60 | .errorlist {
61 | margin-top: 0.5em;
62 | }
63 |
64 | pre {
65 | overflow: auto;
66 | word-wrap: normal;
67 | white-space: pre;
68 | font-size: 12px;
69 | }
70 |
71 | .page-header {
72 | border-bottom: none;
73 | padding-bottom: 0px;
74 | }
75 |
76 | #filtersModal form input[type=submit] {
77 | width: auto;
78 | }
79 |
80 | #filtersModal .modal-body h2 {
81 | margin-top: 0
82 | }
83 |
--------------------------------------------------------------------------------
/staticfiles/rest_framework/css/prettify.css:
--------------------------------------------------------------------------------
1 | .com { color: #93a1a1; }
2 | .lit { color: #195f91; }
3 | .pun, .opn, .clo { color: #93a1a1; }
4 | .fun { color: #dc322f; }
5 | .str, .atv { color: #D14; }
6 | .kwd, .prettyprint .tag { color: #1e347b; }
7 | .typ, .atn, .dec, .var { color: teal; }
8 | .pln { color: #48484c; }
9 |
10 | .prettyprint {
11 | padding: 8px;
12 | background-color: #f7f7f9;
13 | border: 1px solid #e1e1e8;
14 | }
15 | .prettyprint.linenums {
16 | -webkit-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
17 | -moz-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
18 | box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
19 | }
20 |
21 | /* Specify class=linenums on a pre to get line numbering */
22 | ol.linenums {
23 | margin: 0 0 0 33px; /* IE indents via margin-left */
24 | }
25 | ol.linenums li {
26 | padding-left: 12px;
27 | color: #bebec5;
28 | line-height: 20px;
29 | text-shadow: 0 1px 0 #fff;
30 | }
--------------------------------------------------------------------------------
/staticfiles/rest_framework/docs/css/highlight.css:
--------------------------------------------------------------------------------
1 | /*
2 | This is the GitHub theme for highlight.js
3 |
4 | github.com style (c) Vasily Polovnyov
5 |
6 | */
7 |
8 | .hljs {
9 | display: block;
10 | overflow-x: auto;
11 | padding: 0.5em;
12 | color: #333;
13 | -webkit-text-size-adjust: none;
14 | }
15 |
16 | .hljs-comment,
17 | .diff .hljs-header,
18 | .hljs-javadoc {
19 | color: #998;
20 | font-style: italic;
21 | }
22 |
23 | .hljs-keyword,
24 | .css .rule .hljs-keyword,
25 | .hljs-winutils,
26 | .nginx .hljs-title,
27 | .hljs-subst,
28 | .hljs-request,
29 | .hljs-status {
30 | color: #333;
31 | font-weight: bold;
32 | }
33 |
34 | .hljs-number,
35 | .hljs-hexcolor,
36 | .ruby .hljs-constant {
37 | color: #008080;
38 | }
39 |
40 | .hljs-string,
41 | .hljs-tag .hljs-value,
42 | .hljs-phpdoc,
43 | .hljs-dartdoc,
44 | .tex .hljs-formula {
45 | color: #d14;
46 | }
47 |
48 | .hljs-title,
49 | .hljs-id,
50 | .scss .hljs-preprocessor {
51 | color: #900;
52 | font-weight: bold;
53 | }
54 |
55 | .hljs-list .hljs-keyword,
56 | .hljs-subst {
57 | font-weight: normal;
58 | }
59 |
60 | .hljs-class .hljs-title,
61 | .hljs-type,
62 | .vhdl .hljs-literal,
63 | .tex .hljs-command {
64 | color: #458;
65 | font-weight: bold;
66 | }
67 |
68 | .hljs-tag,
69 | .hljs-tag .hljs-title,
70 | .hljs-rule .hljs-property,
71 | .django .hljs-tag .hljs-keyword {
72 | color: #000080;
73 | font-weight: normal;
74 | }
75 |
76 | .hljs-attribute,
77 | .hljs-variable,
78 | .lisp .hljs-body,
79 | .hljs-name {
80 | color: #008080;
81 | }
82 |
83 | .hljs-regexp {
84 | color: #009926;
85 | }
86 |
87 | .hljs-symbol,
88 | .ruby .hljs-symbol .hljs-string,
89 | .lisp .hljs-keyword,
90 | .clojure .hljs-keyword,
91 | .scheme .hljs-keyword,
92 | .tex .hljs-special,
93 | .hljs-prompt {
94 | color: #990073;
95 | }
96 |
97 | .hljs-built_in {
98 | color: #0086b3;
99 | }
100 |
101 | .hljs-preprocessor,
102 | .hljs-pragma,
103 | .hljs-pi,
104 | .hljs-doctype,
105 | .hljs-shebang,
106 | .hljs-cdata {
107 | color: #999;
108 | font-weight: bold;
109 | }
110 |
111 | .hljs-deletion {
112 | background: #fdd;
113 | }
114 |
115 | .hljs-addition {
116 | background: #dfd;
117 | }
118 |
119 | .diff .hljs-change {
120 | background: #0086b3;
121 | }
122 |
123 | .hljs-chunk {
124 | color: #aaa;
125 | }
126 |
--------------------------------------------------------------------------------
/staticfiles/rest_framework/docs/css/jquery.json-view.min.css:
--------------------------------------------------------------------------------
1 | .json-view{position:relative}
2 | .json-view .collapser{width:20px;height:18px;display:block;position:absolute;left:-1.7em;top:-.2em;z-index:5;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpiYGBgOADE%2F3Hgw0DM4IRHgSsDFOzFInmMAQnY49ONzZRjDFiADT7dMLALiE8y4AGW6LoBAgwAuIkf%2F%2FB7O9sAAAAASUVORK5CYII%3D);background-repeat:no-repeat;background-position:center center;opacity:.5;cursor:pointer}
3 | .json-view .collapsed{-ms-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-khtml-transform:rotate(-90deg);-webkit-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg)}
4 | .json-view .bl{display:block;padding-left:20px;margin-left:-20px;position:relative}
5 | .json-view{font-family:monospace}
6 | .json-view ul{list-style-type:none;padding-left:2em;border-left:1px dotted;margin:.3em}
7 | .json-view ul li{position:relative}
8 | .json-view .comments,.json-view .dots{display:none;-moz-user-select:none;-ms-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;user-select:none}
9 | .json-view .comments{padding-left:.8em;font-style:italic;color:#888}
10 | .json-view .bool,.json-view .null,.json-view .num,.json-view .undef{font-weight:700;color:#1A01CC}
11 | .json-view .str{color:#800}
--------------------------------------------------------------------------------
/staticfiles/rest_framework/docs/img/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/staticfiles/rest_framework/docs/img/favicon.ico
--------------------------------------------------------------------------------
/staticfiles/rest_framework/docs/img/grid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/staticfiles/rest_framework/docs/img/grid.png
--------------------------------------------------------------------------------
/staticfiles/rest_framework/docs/js/jquery.json-view.min.js:
--------------------------------------------------------------------------------
1 | /**
2 | * jquery.json-view - jQuery collapsible JSON plugin
3 | * @version v1.0.0
4 | * @link http://github.com/bazh/jquery.json-view
5 | * @license MIT
6 | */
7 | !function(e){"use strict";var n=function(n){var a=e("",{"class":"collapser",on:{click:function(){var n=e(this);n.toggleClass("collapsed");var a=n.parent().children(".block"),p=a.children("ul");n.hasClass("collapsed")?(p.hide(),a.children(".dots, .comments").show()):(p.show(),a.children(".dots, .comments").hide())}}});return n&&a.addClass("collapsed"),a},a=function(a,p){var t=e.extend({},{nl2br:!0},p),r=function(e){return e.toString()?e.toString().replace(/&/g,"&").replace(/"/g,""").replace(//g,">"):""},s=function(n,a){return e("",{"class":a,html:r(n)})},l=function(a,p){switch(e.type(a)){case"object":p||(p=0);var c=e("",{"class":"block"}),d=Object.keys(a).length;if(!d)return c.append(s("{","b")).append(" ").append(s("}","b"));c.append(s("{","b"));var i=e("",{"class":"obj collapsible level"+p});return e.each(a,function(a,t){d--;var r=e("").append(s('"',"q")).append(a).append(s('"',"q")).append(": ").append(l(t,p+1));-1===["object","array"].indexOf(e.type(t))||e.isEmptyObject(t)||r.prepend(n()),d>0&&r.append(","),i.append(r)}),c.append(i),c.append(s("...","dots")),c.append(s("}","b")),c.append(1===Object.keys(a).length?s("// 1 item","comments"):s("// "+Object.keys(a).length+" items","comments")),c;case"array":p||(p=0);var d=a.length,c=e("",{"class":"block"});if(!d)return c.append(s("[","b")).append(" ").append(s("]","b"));c.append(s("[","b"));var i=e("",{"class":"obj collapsible level"+p});return e.each(a,function(a,t){d--;var r=e("").append(l(t,p+1));-1===["object","array"].indexOf(e.type(t))||e.isEmptyObject(t)||r.prepend(n()),d>0&&r.append(","),i.append(r)}),c.append(i),c.append(s("...","dots")),c.append(s("]","b")),c.append(1===a.length?s("// 1 item","comments"):s("// "+a.length+" items","comments")),c;case"string":if(a=r(a),/^(http|https|file):\/\/[^\s]+$/i.test(a))return e("").append(s('"',"q")).append(e("",{href:a,text:a})).append(s('"',"q"));if(t.nl2br){var o=/\n/g;o.test(a)&&(a=(a+"").replace(o,"
"))}var u=e("",{"class":"str"}).html(a);return e("").append(s('"',"q")).append(u).append(s('"',"q"));case"number":return s(a.toString(),"num");case"undefined":return s("undefined","undef");case"null":return s("null","null");case"boolean":return s(a?"true":"false","bool")}};return l(a)};return e.fn.jsonView=function(n,p){var t=e(this);if(p=e.extend({},{nl2br:!0},p),"string"==typeof n)try{n=JSON.parse(n)}catch(r){}return t.append(e("",{"class":"json-view"}).append(a(n,p))),t}}(jQuery);
--------------------------------------------------------------------------------
/staticfiles/rest_framework/fonts/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/staticfiles/rest_framework/fonts/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/staticfiles/rest_framework/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/staticfiles/rest_framework/fonts/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/staticfiles/rest_framework/fonts/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/staticfiles/rest_framework/fonts/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/staticfiles/rest_framework/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/staticfiles/rest_framework/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/staticfiles/rest_framework/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/staticfiles/rest_framework/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/staticfiles/rest_framework/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/staticfiles/rest_framework/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/staticfiles/rest_framework/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/staticfiles/rest_framework/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/staticfiles/rest_framework/img/glyphicons-halflings-white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/staticfiles/rest_framework/img/glyphicons-halflings-white.png
--------------------------------------------------------------------------------
/staticfiles/rest_framework/img/glyphicons-halflings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/staticfiles/rest_framework/img/glyphicons-halflings.png
--------------------------------------------------------------------------------
/staticfiles/rest_framework/img/grid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kritebh/ecommerce-django-react/857c97086e2f599532d9e4b0de30ddada0415673/staticfiles/rest_framework/img/grid.png
--------------------------------------------------------------------------------
/staticfiles/rest_framework/js/csrf.js:
--------------------------------------------------------------------------------
1 | function getCookie(name) {
2 | var cookieValue = null;
3 |
4 | if (document.cookie && document.cookie != '') {
5 | var cookies = document.cookie.split(';');
6 |
7 | for (var i = 0; i < cookies.length; i++) {
8 | var cookie = jQuery.trim(cookies[i]);
9 |
10 | // Does this cookie string begin with the name we want?
11 | if (cookie.substring(0, name.length + 1) == (name + '=')) {
12 | cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
13 | break;
14 | }
15 | }
16 | }
17 |
18 | return cookieValue;
19 | }
20 |
21 | function csrfSafeMethod(method) {
22 | // these HTTP methods do not require CSRF protection
23 | return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method));
24 | }
25 |
26 | function sameOrigin(url) {
27 | // test that a given url is a same-origin URL
28 | // url could be relative or scheme relative or absolute
29 | var host = document.location.host; // host + port
30 | var protocol = document.location.protocol;
31 | var sr_origin = '//' + host;
32 | var origin = protocol + sr_origin;
33 |
34 | // Allow absolute or scheme relative URLs to same origin
35 | return (url == origin || url.slice(0, origin.length + 1) == origin + '/') ||
36 | (url == sr_origin || url.slice(0, sr_origin.length + 1) == sr_origin + '/') ||
37 | // or any other URL that isn't scheme relative or absolute i.e relative.
38 | !(/^(\/\/|http:|https:).*/.test(url));
39 | }
40 |
41 | var csrftoken = window.drf.csrfToken;
42 |
43 | $.ajaxSetup({
44 | beforeSend: function(xhr, settings) {
45 | if (!csrfSafeMethod(settings.type) && sameOrigin(settings.url)) {
46 | // Send the token to same-origin, relative URLs only.
47 | // Send the token only if the method warrants CSRF protection
48 | // Using the CSRFToken value acquired earlier
49 | xhr.setRequestHeader(window.drf.csrfHeaderName, csrftoken);
50 | }
51 | }
52 | });
53 |
--------------------------------------------------------------------------------
/staticfiles/rest_framework/js/default.js:
--------------------------------------------------------------------------------
1 | $(document).ready(function() {
2 | // JSON highlighting.
3 | prettyPrint();
4 |
5 | // Bootstrap tooltips.
6 | $('.js-tooltip').tooltip({
7 | delay: 1000,
8 | container: 'body'
9 | });
10 |
11 | // Deal with rounded tab styling after tab clicks.
12 | $('a[data-toggle="tab"]:first').on('shown', function(e) {
13 | $(e.target).parents('.tabbable').addClass('first-tab-active');
14 | });
15 |
16 | $('a[data-toggle="tab"]:not(:first)').on('shown', function(e) {
17 | $(e.target).parents('.tabbable').removeClass('first-tab-active');
18 | });
19 |
20 | $('a[data-toggle="tab"]').click(function() {
21 | document.cookie = "tabstyle=" + this.name + "; path=/";
22 | });
23 |
24 | // Store tab preference in cookies & display appropriate tab on load.
25 | var selectedTab = null;
26 | var selectedTabName = getCookie('tabstyle');
27 |
28 | if (selectedTabName) {
29 | selectedTabName = selectedTabName.replace(/[^a-z-]/g, '');
30 | }
31 |
32 | if (selectedTabName) {
33 | selectedTab = $('.form-switcher a[name=' + selectedTabName + ']');
34 | }
35 |
36 | if (selectedTab && selectedTab.length > 0) {
37 | // Display whichever tab is selected.
38 | selectedTab.tab('show');
39 | } else {
40 | // If no tab selected, display rightmost tab.
41 | $('.form-switcher a:first').tab('show');
42 | }
43 |
44 | $(window).on('load', function() {
45 | $('#errorModal').modal('show');
46 | });
47 | });
48 |
--------------------------------------------------------------------------------