├── base ├── __init__.py ├── migrations │ ├── __init__.py │ └── __pycache__ │ │ └── __init__.cpython-310.pyc ├── models.py ├── admin.py ├── tests.py ├── __pycache__ │ ├── apps.cpython-310.pyc │ ├── urls.cpython-310.pyc │ ├── admin.cpython-310.pyc │ ├── forms.cpython-310.pyc │ ├── models.cpython-310.pyc │ ├── views.cpython-310.pyc │ └── __init__.cpython-310.pyc ├── apps.py ├── forms.py ├── urls.py ├── views.py └── templates │ ├── login.html │ └── 404.html ├── core ├── __init__.py ├── __pycache__ │ ├── urls.cpython-310.pyc │ ├── wsgi.cpython-310.pyc │ ├── __init__.cpython-310.pyc │ └── settings.cpython-310.pyc ├── urls.py ├── asgi.py ├── wsgi.py └── settings.py ├── main ├── __init__.py ├── migrations │ ├── __init__.py │ ├── __pycache__ │ │ └── __init__.cpython-310.pyc │ ├── 0003_alter_googledrivefolder_background_image.py │ ├── 0004_alter_googledrivefolder_background_image.py │ ├── 0002_googledrivefolder_background_image_and_more.py │ └── 0001_initial.py ├── tests.py ├── __pycache__ │ ├── apps.cpython-310.pyc │ ├── urls.cpython-310.pyc │ ├── admin.cpython-310.pyc │ ├── models.cpython-310.pyc │ ├── views.cpython-310.pyc │ └── __init__.cpython-310.pyc ├── admin.py ├── apps.py ├── forms.py ├── urls.py ├── models.py └── templates │ ├── customize.html │ └── upload.html ├── db.sqlite3 ├── requirements.txt ├── static ├── favicon.ico └── glr │ ├── images │ ├── 11.png │ ├── 22.png │ ├── gravatar.jpg │ ├── background_qr.jpg │ ├── sharemysnaps_black.png │ └── sharemysnaps_white.png │ ├── js │ ├── easing.js │ ├── image_preview.js │ ├── contactform.js │ ├── owl-carousel │ │ └── owl.carousel.css │ ├── fitvids.js │ └── init.js │ └── css │ └── fontawesome │ └── webfonts │ ├── fa-solid-900.eot │ ├── fa-solid-900.ttf │ ├── fa-brands-400.eot │ ├── fa-brands-400.ttf │ ├── fa-brands-400.woff │ ├── fa-brands-400.woff2 │ ├── fa-regular-400.eot │ ├── fa-regular-400.ttf │ ├── fa-regular-400.woff │ ├── fa-solid-900.woff │ ├── fa-solid-900.woff2 │ └── fa-regular-400.woff2 ├── staticfiles ├── favicon.ico ├── glr │ ├── images │ │ ├── 11.png │ │ ├── 22.png │ │ ├── gravatar.jpg │ │ ├── background_qr.jpg │ │ ├── sharemysnaps_black.png │ │ └── sharemysnaps_white.png │ ├── js │ │ ├── easing.js │ │ ├── contactform.js │ │ ├── owl-carousel │ │ │ └── owl.carousel.css │ │ ├── fitvids.js │ │ └── init.js │ └── css │ │ └── fontawesome │ │ └── webfonts │ │ ├── fa-solid-900.eot │ │ ├── fa-solid-900.ttf │ │ ├── fa-brands-400.eot │ │ ├── fa-brands-400.ttf │ │ ├── fa-brands-400.woff │ │ ├── fa-brands-400.woff2 │ │ ├── fa-regular-400.eot │ │ ├── fa-regular-400.ttf │ │ ├── fa-regular-400.woff │ │ ├── fa-solid-900.woff │ │ ├── fa-solid-900.woff2 │ │ └── fa-regular-400.woff2 └── admin │ ├── img │ ├── tooltag-arrowright.svg │ ├── README.txt │ ├── icon-addlink.svg │ ├── tooltag-add.svg │ ├── icon-changelink.svg │ ├── icon-deletelink.svg │ ├── icon-yes.svg │ ├── search.svg │ ├── icon-alert.svg │ ├── icon-no.svg │ ├── inline-delete.svg │ ├── icon-viewlink.svg │ ├── icon-unknown.svg │ ├── icon-unknown-alt.svg │ ├── icon-clock.svg │ ├── icon-hidelink.svg │ ├── gis │ │ ├── move_vertex_on.svg │ │ └── move_vertex_off.svg │ ├── icon-calendar.svg │ ├── LICENSE │ ├── sorting-icons.svg │ ├── calendar-icons.svg │ └── selector-icons.svg │ ├── js │ ├── jquery.init.js │ ├── popup_response.js │ ├── vendor │ │ ├── select2 │ │ │ ├── i18n │ │ │ │ ├── zh-TW.js │ │ │ │ ├── zh-CN.js │ │ │ │ ├── ja.js │ │ │ │ ├── az.js │ │ │ │ ├── ko.js │ │ │ │ ├── vi.js │ │ │ │ ├── tk.js │ │ │ │ ├── id.js │ │ │ │ ├── tr.js │ │ │ │ ├── ar.js │ │ │ │ ├── th.js │ │ │ │ ├── nb.js │ │ │ │ ├── km.js │ │ │ │ ├── sv.js │ │ │ │ ├── fi.js │ │ │ │ ├── is.js │ │ │ │ ├── et.js │ │ │ │ ├── hu.js │ │ │ │ ├── ms.js │ │ │ │ ├── ka.js │ │ │ │ ├── bg.js │ │ │ │ ├── da.js │ │ │ │ ├── hy.js │ │ │ │ ├── fa.js │ │ │ │ ├── en.js │ │ │ │ ├── hi.js │ │ │ │ ├── he.js │ │ │ │ ├── hr.js │ │ │ │ ├── de.js │ │ │ │ ├── af.js │ │ │ │ ├── eu.js │ │ │ │ ├── mk.js │ │ │ │ ├── pt-BR.js │ │ │ │ ├── pt.js │ │ │ │ ├── bn.js │ │ │ │ ├── lv.js │ │ │ │ ├── ca.js │ │ │ │ ├── ps.js │ │ │ │ ├── sq.js │ │ │ │ ├── it.js │ │ │ │ ├── nl.js │ │ │ │ ├── ne.js │ │ │ │ ├── fr.js │ │ │ │ ├── es.js │ │ │ │ ├── gl.js │ │ │ │ ├── sl.js │ │ │ │ ├── ro.js │ │ │ │ ├── lt.js │ │ │ │ ├── pl.js │ │ │ │ ├── el.js │ │ │ │ ├── sr.js │ │ │ │ ├── uk.js │ │ │ │ ├── bs.js │ │ │ │ ├── sr-Cyrl.js │ │ │ │ ├── ru.js │ │ │ │ ├── hsb.js │ │ │ │ ├── dsb.js │ │ │ │ ├── cs.js │ │ │ │ └── sk.js │ │ │ └── LICENSE.md │ │ ├── jquery │ │ │ └── LICENSE.txt │ │ └── xregexp │ │ │ └── LICENSE.txt │ ├── prepopulate_init.js │ ├── change_form.js │ ├── cancel.js │ ├── filters.js │ ├── autocomplete.js │ ├── unusable_password_field.js │ ├── prepopulate.js │ ├── theme.js │ ├── nav_sidebar.js │ ├── SelectBox.js │ └── core.js │ └── css │ ├── dashboard.css │ ├── unusable_password_field.css │ ├── login.css │ ├── vendor │ └── select2 │ │ └── LICENSE-SELECT2.md │ ├── responsive_rtl.css │ ├── dark_mode.css │ ├── nav_sidebar.css │ └── rtl.css ├── Dockerfile ├── manage.py ├── docker-compose.yml ├── .gitignore └── readme.md /base/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /core/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /main/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /base/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /main/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /base/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | 3 | # Create your models here. 4 | -------------------------------------------------------------------------------- /db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/db.sqlite3 -------------------------------------------------------------------------------- /base/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /base/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /main/tests.py: -------------------------------------------------------------------------------- 1 | from django.test import TestCase 2 | 3 | # Create your tests here. 4 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/requirements.txt -------------------------------------------------------------------------------- /static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/favicon.ico -------------------------------------------------------------------------------- /static/glr/images/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/images/11.png -------------------------------------------------------------------------------- /static/glr/images/22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/images/22.png -------------------------------------------------------------------------------- /static/glr/js/easing.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/js/easing.js -------------------------------------------------------------------------------- /staticfiles/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/favicon.ico -------------------------------------------------------------------------------- /static/glr/images/gravatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/images/gravatar.jpg -------------------------------------------------------------------------------- /staticfiles/glr/images/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/images/11.png -------------------------------------------------------------------------------- /staticfiles/glr/images/22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/images/22.png -------------------------------------------------------------------------------- /staticfiles/glr/js/easing.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/js/easing.js -------------------------------------------------------------------------------- /static/glr/images/background_qr.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/images/background_qr.jpg -------------------------------------------------------------------------------- /staticfiles/glr/images/gravatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/images/gravatar.jpg -------------------------------------------------------------------------------- /base/__pycache__/apps.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/base/__pycache__/apps.cpython-310.pyc -------------------------------------------------------------------------------- /base/__pycache__/urls.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/base/__pycache__/urls.cpython-310.pyc -------------------------------------------------------------------------------- /core/__pycache__/urls.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/core/__pycache__/urls.cpython-310.pyc -------------------------------------------------------------------------------- /core/__pycache__/wsgi.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/core/__pycache__/wsgi.cpython-310.pyc -------------------------------------------------------------------------------- /main/__pycache__/apps.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/main/__pycache__/apps.cpython-310.pyc -------------------------------------------------------------------------------- /main/__pycache__/urls.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/main/__pycache__/urls.cpython-310.pyc -------------------------------------------------------------------------------- /base/__pycache__/admin.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/base/__pycache__/admin.cpython-310.pyc -------------------------------------------------------------------------------- /base/__pycache__/forms.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/base/__pycache__/forms.cpython-310.pyc -------------------------------------------------------------------------------- /base/__pycache__/models.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/base/__pycache__/models.cpython-310.pyc -------------------------------------------------------------------------------- /base/__pycache__/views.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/base/__pycache__/views.cpython-310.pyc -------------------------------------------------------------------------------- /main/__pycache__/admin.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/main/__pycache__/admin.cpython-310.pyc -------------------------------------------------------------------------------- /main/__pycache__/models.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/main/__pycache__/models.cpython-310.pyc -------------------------------------------------------------------------------- /main/__pycache__/views.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/main/__pycache__/views.cpython-310.pyc -------------------------------------------------------------------------------- /static/glr/images/sharemysnaps_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/images/sharemysnaps_black.png -------------------------------------------------------------------------------- /static/glr/images/sharemysnaps_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/images/sharemysnaps_white.png -------------------------------------------------------------------------------- /staticfiles/glr/images/background_qr.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/images/background_qr.jpg -------------------------------------------------------------------------------- /base/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/base/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /core/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/core/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /core/__pycache__/settings.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/core/__pycache__/settings.cpython-310.pyc -------------------------------------------------------------------------------- /main/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/main/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /staticfiles/glr/images/sharemysnaps_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/images/sharemysnaps_black.png -------------------------------------------------------------------------------- /staticfiles/glr/images/sharemysnaps_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/images/sharemysnaps_white.png -------------------------------------------------------------------------------- /base/migrations/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/base/migrations/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /main/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from .models import GoogleDriveFolder 3 | 4 | # Register your models here. 5 | admin.site.register(GoogleDriveFolder) -------------------------------------------------------------------------------- /main/migrations/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/main/migrations/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /static/glr/css/fontawesome/webfonts/fa-solid-900.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/css/fontawesome/webfonts/fa-solid-900.eot -------------------------------------------------------------------------------- /static/glr/css/fontawesome/webfonts/fa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/css/fontawesome/webfonts/fa-solid-900.ttf -------------------------------------------------------------------------------- /static/glr/css/fontawesome/webfonts/fa-brands-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/css/fontawesome/webfonts/fa-brands-400.eot -------------------------------------------------------------------------------- /static/glr/css/fontawesome/webfonts/fa-brands-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/css/fontawesome/webfonts/fa-brands-400.ttf -------------------------------------------------------------------------------- /static/glr/css/fontawesome/webfonts/fa-brands-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/css/fontawesome/webfonts/fa-brands-400.woff -------------------------------------------------------------------------------- /static/glr/css/fontawesome/webfonts/fa-brands-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/css/fontawesome/webfonts/fa-brands-400.woff2 -------------------------------------------------------------------------------- /static/glr/css/fontawesome/webfonts/fa-regular-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/css/fontawesome/webfonts/fa-regular-400.eot -------------------------------------------------------------------------------- /static/glr/css/fontawesome/webfonts/fa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/css/fontawesome/webfonts/fa-regular-400.ttf -------------------------------------------------------------------------------- /static/glr/css/fontawesome/webfonts/fa-regular-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/css/fontawesome/webfonts/fa-regular-400.woff -------------------------------------------------------------------------------- /static/glr/css/fontawesome/webfonts/fa-solid-900.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/css/fontawesome/webfonts/fa-solid-900.woff -------------------------------------------------------------------------------- /static/glr/css/fontawesome/webfonts/fa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/css/fontawesome/webfonts/fa-solid-900.woff2 -------------------------------------------------------------------------------- /base/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class BaseConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'base' 7 | -------------------------------------------------------------------------------- /main/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class MainConfig(AppConfig): 5 | default_auto_field = 'django.db.models.BigAutoField' 6 | name = 'main' 7 | -------------------------------------------------------------------------------- /static/glr/css/fontawesome/webfonts/fa-regular-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/static/glr/css/fontawesome/webfonts/fa-regular-400.woff2 -------------------------------------------------------------------------------- /staticfiles/glr/css/fontawesome/webfonts/fa-solid-900.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/css/fontawesome/webfonts/fa-solid-900.eot -------------------------------------------------------------------------------- /staticfiles/glr/css/fontawesome/webfonts/fa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/css/fontawesome/webfonts/fa-solid-900.ttf -------------------------------------------------------------------------------- /staticfiles/glr/css/fontawesome/webfonts/fa-brands-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/css/fontawesome/webfonts/fa-brands-400.eot -------------------------------------------------------------------------------- /staticfiles/glr/css/fontawesome/webfonts/fa-brands-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/css/fontawesome/webfonts/fa-brands-400.ttf -------------------------------------------------------------------------------- /staticfiles/glr/css/fontawesome/webfonts/fa-brands-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/css/fontawesome/webfonts/fa-brands-400.woff -------------------------------------------------------------------------------- /staticfiles/glr/css/fontawesome/webfonts/fa-brands-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/css/fontawesome/webfonts/fa-brands-400.woff2 -------------------------------------------------------------------------------- /staticfiles/glr/css/fontawesome/webfonts/fa-regular-400.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/css/fontawesome/webfonts/fa-regular-400.eot -------------------------------------------------------------------------------- /staticfiles/glr/css/fontawesome/webfonts/fa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/css/fontawesome/webfonts/fa-regular-400.ttf -------------------------------------------------------------------------------- /staticfiles/glr/css/fontawesome/webfonts/fa-regular-400.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/css/fontawesome/webfonts/fa-regular-400.woff -------------------------------------------------------------------------------- /staticfiles/glr/css/fontawesome/webfonts/fa-solid-900.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/css/fontawesome/webfonts/fa-solid-900.woff -------------------------------------------------------------------------------- /staticfiles/glr/css/fontawesome/webfonts/fa-solid-900.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/css/fontawesome/webfonts/fa-solid-900.woff2 -------------------------------------------------------------------------------- /staticfiles/glr/css/fontawesome/webfonts/fa-regular-400.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anujjamdade007/sharemysnaps/HEAD/staticfiles/glr/css/fontawesome/webfonts/fa-regular-400.woff2 -------------------------------------------------------------------------------- /staticfiles/admin/img/tooltag-arrowright.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /staticfiles/admin/img/README.txt: -------------------------------------------------------------------------------- 1 | All icons are taken from Font Awesome (https://fontawesome.com/) 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/icon-addlink.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /staticfiles/admin/img/tooltag-add.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /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/img/icon-changelink.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /staticfiles/admin/img/icon-deletelink.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /base/forms.py: -------------------------------------------------------------------------------- 1 | from django import forms 2 | from django.contrib.auth.forms import UserCreationForm 3 | from django.contrib.auth.models import User 4 | 5 | class SignupForm(UserCreationForm): 6 | class Meta: 7 | model = User 8 | fields = ['username', 'email', 'password1', 'password2'] 9 | 10 | class LoginForm(forms.Form): 11 | username = forms.CharField() 12 | password = forms.CharField(widget=forms.PasswordInput) -------------------------------------------------------------------------------- /core/urls.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | from django.urls import path, include 3 | from django.conf import settings 4 | from django.conf.urls.static import static 5 | 6 | urlpatterns = [ 7 | path('admin/', admin.site.urls), 8 | path('', include("base.urls") ), 9 | path('dashboard/', include("main.urls") ), 10 | ] 11 | 12 | if settings.DEBUG: # new 13 | urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) 14 | -------------------------------------------------------------------------------- /core/asgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | ASGI config for core 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/5.1/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', 'core.settings') 15 | 16 | application = get_asgi_application() 17 | -------------------------------------------------------------------------------- /core/wsgi.py: -------------------------------------------------------------------------------- 1 | """ 2 | WSGI config for core 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/5.1/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', 'core.settings') 15 | 16 | application = get_wsgi_application() 17 | -------------------------------------------------------------------------------- /staticfiles/admin/img/icon-yes.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /staticfiles/admin/img/search.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /main/forms.py: -------------------------------------------------------------------------------- 1 | from django import forms 2 | 3 | class GoogleDriveFolderForm(forms.Form): 4 | event_name = forms.CharField(max_length=255, required=True, label='Event Name') 5 | folder_name = forms.CharField(max_length=255, required=True, label='Folder Name') 6 | 7 | from django import forms 8 | from .models import GoogleDriveFolder 9 | 10 | class GoogleDriveFolderForm(forms.ModelForm): 11 | class Meta: 12 | model = GoogleDriveFolder 13 | fields = ['title', 'background_image'] -------------------------------------------------------------------------------- /staticfiles/admin/img/icon-alert.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /staticfiles/admin/img/icon-no.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /staticfiles/admin/img/inline-delete.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /staticfiles/admin/css/dashboard.css: -------------------------------------------------------------------------------- 1 | /* DASHBOARD */ 2 | .dashboard td, .dashboard th { 3 | word-break: break-word; 4 | } 5 | 6 | .dashboard .module table th { 7 | width: 100%; 8 | } 9 | 10 | .dashboard .module table td { 11 | white-space: nowrap; 12 | } 13 | 14 | .dashboard .module table td a { 15 | display: block; 16 | padding-right: .6em; 17 | } 18 | 19 | /* RECENT ACTIONS MODULE */ 20 | 21 | .module ul.actionlist { 22 | margin-left: 0; 23 | } 24 | 25 | ul.actionlist li { 26 | list-style-type: none; 27 | overflow: hidden; 28 | text-overflow: ellipsis; 29 | } 30 | -------------------------------------------------------------------------------- /staticfiles/admin/img/icon-viewlink.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /staticfiles/admin/js/popup_response.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | { 3 | const initData = JSON.parse(document.getElementById('django-admin-popup-response-constants').dataset.popupResponse); 4 | switch(initData.action) { 5 | case 'change': 6 | opener.dismissChangeRelatedObjectPopup(window, initData.value, initData.obj, initData.new_value); 7 | break; 8 | case 'delete': 9 | opener.dismissDeleteRelatedObjectPopup(window, initData.value); 10 | break; 11 | default: 12 | opener.dismissAddRelatedObjectPopup(window, initData.value, initData.obj); 13 | break; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /main/migrations/0003_alter_googledrivefolder_background_image.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 5.1.4 on 2024-12-23 14:19 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('main', '0002_googledrivefolder_background_image_and_more'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AlterField( 14 | model_name='googledrivefolder', 15 | name='background_image', 16 | field=models.ImageField(blank=True, default='images/defaultbackground.jpg', null=True, upload_to='uploads/gallaryimage/'), 17 | ), 18 | ] 19 | -------------------------------------------------------------------------------- /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}(); -------------------------------------------------------------------------------- /main/migrations/0004_alter_googledrivefolder_background_image.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 5.1.4 on 2024-12-23 14:22 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('main', '0003_alter_googledrivefolder_background_image'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AlterField( 14 | model_name='googledrivefolder', 15 | name='background_image', 16 | field=models.ImageField(blank=True, default='uploads/gallaryimage/defaultbackground.jpg', null=True, upload_to='uploads/gallaryimage/'), 17 | ), 18 | ] 19 | -------------------------------------------------------------------------------- /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 | $( 7 | '.empty-form .form-row .field-' + field.name + 8 | ', .empty-form.form-row .field-' + field.name + 9 | ', .empty-form .form-row.field-' + field.name 10 | ).addClass('prepopulated_field'); 11 | $(field.id).data('dependency_list', field.dependency_list).prepopulate( 12 | field.dependency_ids, field.maxLength, field.allowUnicode 13 | ); 14 | }); 15 | } 16 | -------------------------------------------------------------------------------- /staticfiles/admin/img/icon-unknown.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /staticfiles/admin/img/icon-unknown-alt.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /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/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}(); -------------------------------------------------------------------------------- /static/glr/js/image_preview.js: -------------------------------------------------------------------------------- 1 | const backgroundImageInput = document.getElementById("background_image") 2 | const preview = document.getElementById('imagePreview'); 3 | // Add a listener to the file input 4 | backgroundImageInput.addEventListener('change', function(event) { 5 | // Take the uploaded img sent into this file input 6 | const file = event.target.files[0]; 7 | if (file) { 8 | const reader = new FileReader(); 9 | //wait the file/img load into the reader 10 | reader.onload = function(e) { 11 | // Set the new file as image src 12 | preview.src = e.target.result; 13 | }; 14 | reader.readAsDataURL(file); 15 | } 16 | }); -------------------------------------------------------------------------------- /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}(); -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # Use the official Python image from Docker Hub 2 | FROM python:3.11-slim 3 | 4 | # Set the working directory in the container 5 | WORKDIR /app 6 | 7 | # Install core dependencies. 8 | RUN apt-get update && apt-get install -y libpq-dev build-essential 9 | 10 | # Install Python dependencies 11 | COPY requirements.txt /app/ 12 | RUN pip install --no-cache-dir -r requirements.txt 13 | 14 | # Copy the entire project into the container 15 | COPY . /app/ 16 | 17 | # Set environment variables for Django 18 | ENV PYTHONUNBUFFERED=1 19 | 20 | # Expose the port that Django runs on (port 80) 21 | EXPOSE 80 22 | 23 | # Command to run the application (use port 80) 24 | CMD ["python", "manage.py", "runserver", "0.0.0.0:80"] 25 | -------------------------------------------------------------------------------- /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}(); -------------------------------------------------------------------------------- /main/urls.py: -------------------------------------------------------------------------------- 1 | from django.urls import path 2 | from . import views 3 | urlpatterns = [ 4 | path('', views.dashboard , name="dashboard"), 5 | path('create-folder/', views.create_folder, name='create_folder'), 6 | path('sync-folder/', views.sync_folders, name='sync_folder'), 7 | # path('upload//', views.upload_image_to_folder, name='upload_image_to_folder'), 8 | path('redirect_to_folder//', views.redirect_to_folder, name='redirect_to_folder'), 9 | path('gallery//', views.image_gallery, name='gallery'), 10 | path('serve_image//', views.serve_image, name='serve_image'), 11 | path('customise//', views.customize, name='customize'), 12 | ] -------------------------------------------------------------------------------- /staticfiles/admin/img/icon-clock.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /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}(); -------------------------------------------------------------------------------- /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', 'core.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 | -------------------------------------------------------------------------------- /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/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}(); -------------------------------------------------------------------------------- /main/models.py: -------------------------------------------------------------------------------- 1 | from django.db import models 2 | from django.contrib.auth.models import User 3 | 4 | 5 | class GoogleDriveFolder(models.Model): 6 | user = models.ForeignKey(User, on_delete=models.CASCADE) 7 | folder_name = models.CharField(max_length=255) 8 | folder_id = models.CharField(max_length=255, unique=True) 9 | event_name = models.CharField(max_length=255, blank=True, null=True) 10 | created_at = models.DateTimeField(auto_now_add=True) 11 | title = models.CharField(max_length=255, default='Captivating Moments in Every Frame', null=True, blank=True) 12 | background_image = models.ImageField(upload_to='gallaryimage/', default="gallaryimage/defaultbackground.jpg") 13 | 14 | def __str__(self): 15 | return self.folder_name 16 | 17 | 18 | -------------------------------------------------------------------------------- /staticfiles/admin/css/unusable_password_field.css: -------------------------------------------------------------------------------- 1 | /* Hide warnings fields if usable password is selected */ 2 | form:has(#id_usable_password input[value="true"]:checked) .messagelist { 3 | display: none; 4 | } 5 | 6 | /* Hide password fields if unusable password is selected */ 7 | form:has(#id_usable_password input[value="false"]:checked) .field-password1, 8 | form:has(#id_usable_password input[value="false"]:checked) .field-password2 { 9 | display: none; 10 | } 11 | 12 | /* Select appropriate submit button */ 13 | form:has(#id_usable_password input[value="true"]:checked) input[type="submit"].unset-password { 14 | display: none; 15 | } 16 | 17 | form:has(#id_usable_password input[value="false"]:checked) input[type="submit"].set-password { 18 | display: none; 19 | } 20 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/img/icon-hidelink.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /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/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/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/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/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/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}(); -------------------------------------------------------------------------------- /base/urls.py: -------------------------------------------------------------------------------- 1 | from django.urls import path, include 2 | from . import views 3 | from django.contrib.auth import views as auth_views 4 | from django.contrib.staticfiles.storage import staticfiles_storage 5 | from django.views.generic.base import RedirectView 6 | 7 | urlpatterns = [ 8 | path('', views.index , name="home"), 9 | 10 | # authentication 11 | path('login/', views.login, name='login'), 12 | # path('signup/', views.user_signup, name='signup'), 13 | path('logout/', auth_views.LogoutView.as_view(), name='logout'), 14 | path('social_auth/', include('social_django.urls' , namespace='social')), 15 | 16 | path('privacy-policy/', views.privacy, name='privacy'), 17 | 18 | path('terms-condition/', views.terms, name='terms'), 19 | 20 | path('favicon.ico', RedirectView.as_view(url='/staticfiles/favicon.ico')) 21 | 22 | ] -------------------------------------------------------------------------------- /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/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}(); -------------------------------------------------------------------------------- /main/migrations/0002_googledrivefolder_background_image_and_more.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 5.1.4 on 2024-12-23 14:11 2 | 3 | from django.db import migrations, models 4 | 5 | 6 | class Migration(migrations.Migration): 7 | 8 | dependencies = [ 9 | ('main', '0001_initial'), 10 | ] 11 | 12 | operations = [ 13 | migrations.AddField( 14 | model_name='googledrivefolder', 15 | name='background_image', 16 | field=models.ImageField(blank=True, default='images/defaultbackground.jpg', null=True, upload_to='gallaryimage/'), 17 | ), 18 | migrations.AddField( 19 | model_name='googledrivefolder', 20 | name='title', 21 | field=models.CharField(blank=True, default='Captivating Moments in Every Frame', max_length=255, null=True), 22 | ), 23 | ] 24 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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}(); -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3.8' 2 | 3 | services: 4 | db: 5 | image: postgres:13 6 | volumes: 7 | - pg_data:/var/lib/postgresql/data 8 | environment: 9 | POSTGRES_USER: ${DB_USER} 10 | POSTGRES_PASSWORD: ${DB_PASSWORD} 11 | POSTGRES_DB: ${DB_NAME} 12 | networks: 13 | - app_network 14 | 15 | web: 16 | build: . 17 | command: python manage.py runserver 0.0.0.0:80 18 | volumes: 19 | - .:/app 20 | ports: 21 | - "80:80" 22 | depends_on: 23 | - db 24 | environment: 25 | - DEBUG=${DEBUG} 26 | - SECRET_KEY=${SECRET_KEY} 27 | - DATABASE_URL=postgres://${DB_USER}:${DB_PASSWORD}@db:5432/${DB_NAME} 28 | - SOCIAL_AUTH_GOOGLE_OAUTH2_KEY=${SOCIAL_AUTH_GOOGLE_OAUTH2_KEY} 29 | - SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET=${SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET} 30 | - API_KEY=${API_KEY} 31 | networks: 32 | - app_network 33 | 34 | networks: 35 | app_network: 36 | driver: bridge 37 | 38 | volumes: 39 | pg_data: 40 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /base/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | from django.contrib.auth import login 3 | 4 | 5 | # Create your views here. 6 | # Home page 7 | def index(request): 8 | return render(request, 'index.html') 9 | 10 | # # signup page 11 | # def user_signup(request): 12 | 13 | # if request.user.is_authenticated: 14 | # return redirect('dashboard') 15 | 16 | # if request.method == 'POST': 17 | # form = SignupForm(request.POST) 18 | # if form.is_valid(): 19 | # form.save() 20 | # return redirect('login') 21 | # else: 22 | # form = SignupForm() 23 | # return render(request, 'signup.html', {'form': form}) 24 | 25 | # login page 26 | def login(request): 27 | 28 | # if request.user.is_authenticated: 29 | # return redirect('dashboard') 30 | 31 | return render(request, 'login.html') 32 | 33 | 34 | def privacy(request): 35 | 36 | return render(request, 'privacy.html') 37 | 38 | def terms(request): 39 | 40 | return render(request, 't&c.html') 41 | -------------------------------------------------------------------------------- /staticfiles/admin/js/filters.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Persist changelist filters state (collapsed/expanded). 3 | */ 4 | 'use strict'; 5 | { 6 | // Init filters. 7 | let filters = JSON.parse(sessionStorage.getItem('django.admin.filtersState')); 8 | 9 | if (!filters) { 10 | filters = {}; 11 | } 12 | 13 | Object.entries(filters).forEach(([key, value]) => { 14 | const detailElement = document.querySelector(`[data-filter-title='${CSS.escape(key)}']`); 15 | 16 | // Check if the filter is present, it could be from other view. 17 | if (detailElement) { 18 | value ? detailElement.setAttribute('open', '') : detailElement.removeAttribute('open'); 19 | } 20 | }); 21 | 22 | // Save filter state when clicks. 23 | const details = document.querySelectorAll('details'); 24 | details.forEach(detail => { 25 | detail.addEventListener('toggle', event => { 26 | filters[`${event.target.dataset.filterTitle}`] = detail.open; 27 | sessionStorage.setItem('django.admin.filtersState', JSON.stringify(filters)); 28 | }); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /base/templates/login.html: -------------------------------------------------------------------------------- 1 | {% extends 'main.html' %} 2 | 3 | {% block content %} 4 | 5 | 6 |
7 |
8 | 9 |

Login to Continue

10 |

It will take less than 2 minutes

11 | 12 | 21 | 22 |
23 |
24 | 25 | 26 | {% endblock %} -------------------------------------------------------------------------------- /main/migrations/0001_initial.py: -------------------------------------------------------------------------------- 1 | # Generated by Django 5.1.4 on 2024-12-23 14:11 2 | 3 | import django.db.models.deletion 4 | from django.conf import settings 5 | from django.db import migrations, models 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='GoogleDriveFolder', 19 | fields=[ 20 | ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), 21 | ('folder_name', models.CharField(max_length=255)), 22 | ('folder_id', models.CharField(max_length=255, unique=True)), 23 | ('event_name', models.CharField(blank=True, max_length=255, null=True)), 24 | ('created_at', models.DateTimeField(auto_now_add=True)), 25 | ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), 26 | ], 27 | ), 28 | ] 29 | -------------------------------------------------------------------------------- /staticfiles/admin/img/gis/move_vertex_on.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /staticfiles/admin/img/icon-calendar.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /staticfiles/admin/img/gis/move_vertex_off.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /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/sorting-icons.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /staticfiles/admin/js/vendor/jquery/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright OpenJS Foundation and other contributors, https://openjsf.org/ 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/autocomplete.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | { 3 | const $ = django.jQuery; 4 | 5 | $.fn.djangoAdminSelect2 = function() { 6 | $.each(this, function(i, element) { 7 | $(element).select2({ 8 | ajax: { 9 | data: (params) => { 10 | return { 11 | term: params.term, 12 | page: params.page, 13 | app_label: element.dataset.appLabel, 14 | model_name: element.dataset.modelName, 15 | field_name: element.dataset.fieldName 16 | }; 17 | } 18 | } 19 | }); 20 | }); 21 | return this; 22 | }; 23 | 24 | $(function() { 25 | // Initialize all autocomplete widgets except the one in the template 26 | // form used when a new formset is added. 27 | $('.admin-autocomplete').not('[name*=__prefix__]').djangoAdminSelect2(); 28 | }); 29 | 30 | document.addEventListener('formset:added', (event) => { 31 | $(event.target).find('.admin-autocomplete').djangoAdminSelect2(); 32 | }); 33 | } 34 | -------------------------------------------------------------------------------- /staticfiles/admin/js/vendor/xregexp/LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2007-present 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/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/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/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: 1.125rem; 16 | margin: 0; 17 | } 18 | 19 | .login #header h1 a { 20 | color: var(--header-link-color); 21 | } 22 | 23 | .login #content { 24 | padding: 20px; 25 | } 26 | 27 | .login #container { 28 | background: var(--body-bg); 29 | border: 1px solid var(--hairline-color); 30 | border-radius: 4px; 31 | overflow: hidden; 32 | width: 28em; 33 | min-width: 300px; 34 | margin: 100px auto; 35 | height: auto; 36 | } 37 | 38 | .login .form-row { 39 | padding: 4px 0; 40 | } 41 | 42 | .login .form-row label { 43 | display: block; 44 | line-height: 2em; 45 | } 46 | 47 | .login .form-row #id_username, .login .form-row #id_password { 48 | padding: 8px; 49 | width: 100%; 50 | box-sizing: border-box; 51 | } 52 | 53 | .login .submit-row { 54 | padding: 1em 0 0 0; 55 | margin: 0; 56 | text-align: center; 57 | } 58 | 59 | .login .password-reset-link { 60 | text-align: center; 61 | } 62 | -------------------------------------------------------------------------------- /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/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}(); -------------------------------------------------------------------------------- /base/templates/404.html: -------------------------------------------------------------------------------- 1 | {% extends 'main.html' %} 2 | 3 | {% block content %} 4 | 5 | 6 |
7 |
8 |
9 |

10 | Error404 11 |

12 |

Sorry, we couldn't find this page.

13 | {% if request.user.is_authenticated %} 14 | Back To Dashboard 15 | {% else %} 16 | Back To Home 17 | {% endif %} 18 |
19 |
20 |
21 | 22 | 23 | {% endblock %} -------------------------------------------------------------------------------- /staticfiles/admin/js/unusable_password_field.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Fallback JS for browsers which do not support :has selector used in 3 | // admin/css/unusable_password_fields.css 4 | // Remove file once all supported browsers support :has selector 5 | try { 6 | // If browser does not support :has selector this will raise an error 7 | document.querySelector("form:has(input)"); 8 | } catch (error) { 9 | console.log("Defaulting to javascript for usable password form management: " + error); 10 | // JS replacement for unsupported :has selector 11 | document.querySelectorAll('input[name="usable_password"]').forEach(option => { 12 | option.addEventListener('change', function() { 13 | const usablePassword = (this.value === "true" ? this.checked : !this.checked); 14 | const submit1 = document.querySelector('input[type="submit"].set-password'); 15 | const submit2 = document.querySelector('input[type="submit"].unset-password'); 16 | const messages = document.querySelector('#id_unusable_warning'); 17 | document.getElementById('id_password1').closest('.form-row').hidden = !usablePassword; 18 | document.getElementById('id_password2').closest('.form-row').hidden = !usablePassword; 19 | if (messages) { 20 | messages.hidden = usablePassword; 21 | } 22 | if (submit1 && submit2) { 23 | submit1.hidden = !usablePassword; 24 | submit2.hidden = usablePassword; 25 | } 26 | }); 27 | option.dispatchEvent(new Event('change')); 28 | }); 29 | } 30 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /static/glr/js/contactform.js: -------------------------------------------------------------------------------- 1 | (function($) { 2 | "use strict"; 3 | 4 | var options2 = { success: showResponseContact, beforeSubmit: showRequestContact}; 5 | $('#contact-form').on('submit', function(){ 6 | $(this).ajaxSubmit(options2); 7 | return false; 8 | }); 9 | 10 | })(jQuery); 11 | 12 | function showResponseContact(responseText, statusText) { 13 | if (statusText == 'success') { 14 | jQuery('#contact-form-holder').html('
Message sent
'); 15 | jQuery('#output-contact').html('

Thanks for contacting us! We will check your message within a few minutes.

'); 16 | } else { 17 | alert('status: ' + statusText + '\n\nSomething is wrong here'); 18 | } 19 | } 20 | 21 | function showRequestContact(formData, jqForm, options2) { 22 | var form = jqForm[0]; 23 | var validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i; 24 | 25 | if (!form.name.value) { 26 | jQuery('#output-contact').html('
Please fill the Name field!
'); 27 | return false; 28 | } else if (!form.email.value) { 29 | jQuery('#output-contact').html('
Please fill the Email field!
'); 30 | return false; 31 | } else if (form.email.value.search(validRegExp) == -1) { 32 | jQuery('#output-contact').html('
Please provide a valid Email address!
'); 33 | return false; 34 | } 35 | else if (!form.subject.value) { 36 | jQuery('#output-contact').html('
Please fill the Subject field!
'); 37 | return false; 38 | } 39 | else if (!form.message.value) { 40 | jQuery('#output-contact').html('
Please fill the Message field!
'); 41 | return false; 42 | } 43 | else { 44 | jQuery('#output-contact').html('Sending message...!'); 45 | return true; 46 | } 47 | } -------------------------------------------------------------------------------- /staticfiles/glr/js/contactform.js: -------------------------------------------------------------------------------- 1 | (function($) { 2 | "use strict"; 3 | 4 | var options2 = { success: showResponseContact, beforeSubmit: showRequestContact}; 5 | $('#contact-form').on('submit', function(){ 6 | $(this).ajaxSubmit(options2); 7 | return false; 8 | }); 9 | 10 | })(jQuery); 11 | 12 | function showResponseContact(responseText, statusText) { 13 | if (statusText == 'success') { 14 | jQuery('#contact-form-holder').html('
Message sent
'); 15 | jQuery('#output-contact').html('

Thanks for contacting us! We will check your message within a few minutes.

'); 16 | } else { 17 | alert('status: ' + statusText + '\n\nSomething is wrong here'); 18 | } 19 | } 20 | 21 | function showRequestContact(formData, jqForm, options2) { 22 | var form = jqForm[0]; 23 | var validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i; 24 | 25 | if (!form.name.value) { 26 | jQuery('#output-contact').html('
Please fill the Name field!
'); 27 | return false; 28 | } else if (!form.email.value) { 29 | jQuery('#output-contact').html('
Please fill the Email field!
'); 30 | return false; 31 | } else if (form.email.value.search(validRegExp) == -1) { 32 | jQuery('#output-contact').html('
Please provide a valid Email address!
'); 33 | return false; 34 | } 35 | else if (!form.subject.value) { 36 | jQuery('#output-contact').html('
Please fill the Subject field!
'); 37 | return false; 38 | } 39 | else if (!form.message.value) { 40 | jQuery('#output-contact').html('
Please fill the Message field!
'); 41 | return false; 42 | } 43 | else { 44 | jQuery('#output-contact').html('Sending message...!'); 45 | return true; 46 | } 47 | } -------------------------------------------------------------------------------- /staticfiles/admin/js/theme.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | { 3 | function setTheme(mode) { 4 | if (mode !== "light" && mode !== "dark" && mode !== "auto") { 5 | console.error(`Got invalid theme mode: ${mode}. Resetting to auto.`); 6 | mode = "auto"; 7 | } 8 | document.documentElement.dataset.theme = mode; 9 | localStorage.setItem("theme", mode); 10 | } 11 | 12 | function cycleTheme() { 13 | const currentTheme = localStorage.getItem("theme") || "auto"; 14 | const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches; 15 | 16 | if (prefersDark) { 17 | // Auto (dark) -> Light -> Dark 18 | if (currentTheme === "auto") { 19 | setTheme("light"); 20 | } else if (currentTheme === "light") { 21 | setTheme("dark"); 22 | } else { 23 | setTheme("auto"); 24 | } 25 | } else { 26 | // Auto (light) -> Dark -> Light 27 | if (currentTheme === "auto") { 28 | setTheme("dark"); 29 | } else if (currentTheme === "dark") { 30 | setTheme("light"); 31 | } else { 32 | setTheme("auto"); 33 | } 34 | } 35 | } 36 | 37 | function initTheme() { 38 | // set theme defined in localStorage if there is one, or fallback to auto mode 39 | const currentTheme = localStorage.getItem("theme"); 40 | currentTheme ? setTheme(currentTheme) : setTheme("auto"); 41 | } 42 | 43 | window.addEventListener('load', function(_) { 44 | const buttons = document.getElementsByClassName("theme-toggle"); 45 | Array.from(buttons).forEach((btn) => { 46 | btn.addEventListener("click", cycleTheme); 47 | }); 48 | }); 49 | 50 | initTheme(); 51 | } 52 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Django # 2 | *.log 3 | *.pot 4 | *.pyc 5 | __pycache__ 6 | db.sqlite3 7 | media 8 | 9 | # Backup files # 10 | *.bak 11 | 12 | # If you are using PyCharm # 13 | # User-specific stuff 14 | .idea/**/workspace.xml 15 | .idea/**/tasks.xml 16 | .idea/**/usage.statistics.xml 17 | .idea/**/dictionaries 18 | .idea/**/shelf 19 | 20 | # AWS User-specific 21 | .idea/**/aws.xml 22 | 23 | # Generated files 24 | .idea/**/contentModel.xml 25 | 26 | # Sensitive or high-churn files 27 | .idea/**/dataSources/ 28 | .idea/**/dataSources.ids 29 | .idea/**/dataSources.local.xml 30 | .idea/**/sqlDataSources.xml 31 | .idea/**/dynamic.xml 32 | .idea/**/uiDesigner.xml 33 | .idea/**/dbnavigator.xml 34 | 35 | # Gradle 36 | .idea/**/gradle.xml 37 | .idea/**/libraries 38 | 39 | # File-based project format 40 | *.iws 41 | 42 | # IntelliJ 43 | out/ 44 | 45 | # JIRA plugin 46 | atlassian-ide-plugin.xml 47 | 48 | # Python # 49 | *.py[cod] 50 | *$py.class 51 | 52 | # Distribution / packaging 53 | .Python build/ 54 | develop-eggs/ 55 | dist/ 56 | downloads/ 57 | eggs/ 58 | .eggs/ 59 | lib/ 60 | lib64/ 61 | parts/ 62 | sdist/ 63 | var/ 64 | wheels/ 65 | *.whl 66 | *.egg-info/ 67 | .installed.cfg 68 | *.egg 69 | *.manifest 70 | *.spec 71 | 72 | # Installer logs 73 | pip-log.txt 74 | pip-delete-this-directory.txt 75 | 76 | # Unit test / coverage reports 77 | htmlcov/ 78 | .tox/ 79 | .coverage 80 | .coverage.* 81 | .cache 82 | .pytest_cache/ 83 | nosetests.xml 84 | coverage.xml 85 | *.cover 86 | .hypothesis/ 87 | 88 | # Jupyter Notebook 89 | .ipynb_checkpoints 90 | 91 | # pyenv 92 | .python-version 93 | 94 | # celery 95 | celerybeat-schedule.* 96 | 97 | # SageMath parsed files 98 | *.sage.py 99 | 100 | # Environments 101 | .env 102 | .venv 103 | env/ 104 | venv/ 105 | ENV/ 106 | env.bak/ 107 | venv.bak/ 108 | 109 | # mkdocs documentation 110 | /site 111 | 112 | # mypy 113 | .mypy_cache/ 114 | 115 | # Sublime Text # 116 | *.tmlanguage.cache 117 | *.tmPreferences.cache 118 | *.stTheme.cache 119 | *.sublime-workspace 120 | *.sublime-project 121 | 122 | # sftp configuration file 123 | sftp-config.json 124 | 125 | # Package control specific files Package 126 | Control.last-run 127 | Control.ca-list 128 | Control.ca-bundle 129 | Control.system-ca-bundle 130 | GitHub.sublime-settings 131 | 132 | # Visual Studio Code # 133 | .vscode/* 134 | !.vscode/settings.json 135 | !.vscode/tasks.json 136 | !.vscode/launch.json 137 | !.vscode/extensions.json 138 | .history -------------------------------------------------------------------------------- /staticfiles/admin/img/calendar-icons.svg: -------------------------------------------------------------------------------- 1 | 2 | 15 | 34 | 36 | 38 | 41 | 42 | 44 | 47 | 48 | 49 | 56 | 63 | 64 | -------------------------------------------------------------------------------- /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"] .selector .selector-filter label { 39 | margin-right: 0; 40 | margin-left: 8px; 41 | } 42 | 43 | [dir="rtl"] .object-tools li { 44 | float: right; 45 | } 46 | 47 | [dir="rtl"] .object-tools li + li { 48 | margin-left: 0; 49 | margin-right: 15px; 50 | } 51 | 52 | [dir="rtl"] .dashboard .module table td a { 53 | padding-left: 0; 54 | padding-right: 16px; 55 | } 56 | 57 | [dir="rtl"] .selector-add { 58 | background-position: 0 -80px; 59 | } 60 | 61 | [dir="rtl"] .selector-remove { 62 | background-position: 0 -120px; 63 | } 64 | 65 | [dir="rtl"] .active.selector-add:focus, .active.selector-add:hover { 66 | background-position: 0 -100px; 67 | } 68 | 69 | [dir="rtl"] .active.selector-remove:focus, .active.selector-remove:hover { 70 | background-position: 0 -140px; 71 | } 72 | } 73 | 74 | /* MOBILE */ 75 | 76 | @media (max-width: 767px) { 77 | [dir="rtl"] .aligned .related-lookup, 78 | [dir="rtl"] .aligned .datetimeshortcuts { 79 | margin-left: 0; 80 | margin-right: 15px; 81 | } 82 | 83 | [dir="rtl"] .aligned ul, 84 | [dir="rtl"] form .aligned ul.errorlist { 85 | margin-right: 0; 86 | } 87 | 88 | [dir="rtl"] #changelist-filter { 89 | margin-left: 0; 90 | margin-right: 0; 91 | } 92 | [dir="rtl"] .aligned .vCheckboxLabel { 93 | padding: 1px 5px 0 0; 94 | } 95 | 96 | [dir="rtl"] .selector-remove { 97 | background-position: 0 0; 98 | } 99 | 100 | [dir="rtl"] .active.selector-remove:focus, .active.selector-remove:hover { 101 | background-position: 0 -20px; 102 | } 103 | 104 | [dir="rtl"] .selector-add { 105 | background-position: 0 -40px; 106 | } 107 | 108 | [dir="rtl"] .active.selector-add:focus, .active.selector-add:hover { 109 | background-position: 0 -60px; 110 | } 111 | } 112 | -------------------------------------------------------------------------------- /main/templates/customize.html: -------------------------------------------------------------------------------- 1 | {% extends 'main.html' %} 2 | 3 | {% block content %} 4 | 5 |
6 | 7 |
8 |
9 | {% csrf_token %} 10 |
11 | 14 | 16 |
17 | 18 |
19 | 22 | 23 |
24 | 25 | 40 |
41 | 42 | 43 |

Image preview

44 |
45 | {% if folder.background_image %} 46 | 47 | {% else %} 48 | No background image uploaded 49 | {% endif %} 50 |
51 | 52 |
53 | 54 |
55 | 59 |
60 |
61 |
62 |
63 | {% load static %} 64 | 65 | {% endblock %} 66 | -------------------------------------------------------------------------------- /static/glr/js/owl-carousel/owl.carousel.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Owl Carousel v2.3.4 3 | * Copyright 2013-2018 David Deutsch 4 | * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE 5 | */ 6 | .owl-carousel,.owl-carousel .owl-item{-webkit-tap-highlight-color:transparent;position:relative}.owl-carousel{display:none;width:100%;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y;touch-action:manipulation;-moz-backface-visibility:hidden}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0,0,0)}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-carousel .owl-item{min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-touch-callout:none}.owl-carousel .owl-item img{display:block;width:100%}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.no-js .owl-carousel,.owl-carousel.owl-loaded{display:block}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel .owl-nav button.owl-next,.owl-carousel .owl-nav button.owl-prev,.owl-carousel button.owl-dot{background:0 0;color:inherit;border:none;padding:0!important;font:inherit}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item{visibility:hidden}.owl-carousel.owl-drag .owl-item{-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item{float:right}.owl-carousel .animated{animation-duration:1s;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{animation-name:fadeOut}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{transition:height .5s ease-in-out}.owl-carousel .owl-item .owl-lazy{opacity:0;transition:opacity .4s ease}.owl-carousel .owl-item .owl-lazy:not([src]),.owl-carousel .owl-item .owl-lazy[src^=""]{max-height:0}.owl-carousel .owl-item img.owl-lazy{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;transition:transform .1s ease}.owl-carousel .owl-video-play-icon:hover{-ms-transform:scale(1.3,1.3);transform:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;transition:opacity .4s ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%} -------------------------------------------------------------------------------- /staticfiles/glr/js/owl-carousel/owl.carousel.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Owl Carousel v2.3.4 3 | * Copyright 2013-2018 David Deutsch 4 | * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE 5 | */ 6 | .owl-carousel,.owl-carousel .owl-item{-webkit-tap-highlight-color:transparent;position:relative}.owl-carousel{display:none;width:100%;z-index:1}.owl-carousel .owl-stage{position:relative;-ms-touch-action:pan-Y;touch-action:manipulation;-moz-backface-visibility:hidden}.owl-carousel .owl-stage:after{content:".";display:block;clear:both;visibility:hidden;line-height:0;height:0}.owl-carousel .owl-stage-outer{position:relative;overflow:hidden;-webkit-transform:translate3d(0,0,0)}.owl-carousel .owl-item,.owl-carousel .owl-wrapper{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0)}.owl-carousel .owl-item{min-height:1px;float:left;-webkit-backface-visibility:hidden;-webkit-touch-callout:none}.owl-carousel .owl-item img{display:block;width:100%}.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled{display:none}.no-js .owl-carousel,.owl-carousel.owl-loaded{display:block}.owl-carousel .owl-dot,.owl-carousel .owl-nav .owl-next,.owl-carousel .owl-nav .owl-prev{cursor:pointer;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel .owl-nav button.owl-next,.owl-carousel .owl-nav button.owl-prev,.owl-carousel button.owl-dot{background:0 0;color:inherit;border:none;padding:0!important;font:inherit}.owl-carousel.owl-loading{opacity:0;display:block}.owl-carousel.owl-hidden{opacity:0}.owl-carousel.owl-refresh .owl-item{visibility:hidden}.owl-carousel.owl-drag .owl-item{-ms-touch-action:pan-y;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.owl-carousel.owl-grab{cursor:move;cursor:grab}.owl-carousel.owl-rtl{direction:rtl}.owl-carousel.owl-rtl .owl-item{float:right}.owl-carousel .animated{animation-duration:1s;animation-fill-mode:both}.owl-carousel .owl-animated-in{z-index:0}.owl-carousel .owl-animated-out{z-index:1}.owl-carousel .fadeOut{animation-name:fadeOut}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}.owl-height{transition:height .5s ease-in-out}.owl-carousel .owl-item .owl-lazy{opacity:0;transition:opacity .4s ease}.owl-carousel .owl-item .owl-lazy:not([src]),.owl-carousel .owl-item .owl-lazy[src^=""]{max-height:0}.owl-carousel .owl-item img.owl-lazy{transform-style:preserve-3d}.owl-carousel .owl-video-wrapper{position:relative;height:100%;background:#000}.owl-carousel .owl-video-play-icon{position:absolute;height:80px;width:80px;left:50%;top:50%;margin-left:-40px;margin-top:-40px;background:url(owl.video.play.png) no-repeat;cursor:pointer;z-index:1;-webkit-backface-visibility:hidden;transition:transform .1s ease}.owl-carousel .owl-video-play-icon:hover{-ms-transform:scale(1.3,1.3);transform:scale(1.3,1.3)}.owl-carousel .owl-video-playing .owl-video-play-icon,.owl-carousel .owl-video-playing .owl-video-tn{display:none}.owl-carousel .owl-video-tn{opacity:0;height:100%;background-position:center center;background-repeat:no-repeat;background-size:contain;transition:opacity .4s ease}.owl-carousel .owl-video-frame{position:relative;z-index:1;height:100%;width:100%} -------------------------------------------------------------------------------- /staticfiles/admin/js/nav_sidebar.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | { 3 | const toggleNavSidebar = document.getElementById('toggle-nav-sidebar'); 4 | if (toggleNavSidebar !== null) { 5 | const navSidebar = document.getElementById('nav-sidebar'); 6 | const main = document.getElementById('main'); 7 | let navSidebarIsOpen = localStorage.getItem('django.admin.navSidebarIsOpen'); 8 | if (navSidebarIsOpen === null) { 9 | navSidebarIsOpen = 'true'; 10 | } 11 | main.classList.toggle('shifted', navSidebarIsOpen === 'true'); 12 | navSidebar.setAttribute('aria-expanded', navSidebarIsOpen); 13 | 14 | toggleNavSidebar.addEventListener('click', function() { 15 | if (navSidebarIsOpen === 'true') { 16 | navSidebarIsOpen = 'false'; 17 | } else { 18 | navSidebarIsOpen = 'true'; 19 | } 20 | localStorage.setItem('django.admin.navSidebarIsOpen', navSidebarIsOpen); 21 | main.classList.toggle('shifted'); 22 | navSidebar.setAttribute('aria-expanded', navSidebarIsOpen); 23 | }); 24 | } 25 | 26 | function initSidebarQuickFilter() { 27 | const options = []; 28 | const navSidebar = document.getElementById('nav-sidebar'); 29 | if (!navSidebar) { 30 | return; 31 | } 32 | navSidebar.querySelectorAll('th[scope=row] a').forEach((container) => { 33 | options.push({title: container.innerHTML, node: container}); 34 | }); 35 | 36 | function checkValue(event) { 37 | let filterValue = event.target.value; 38 | if (filterValue) { 39 | filterValue = filterValue.toLowerCase(); 40 | } 41 | if (event.key === 'Escape') { 42 | filterValue = ''; 43 | event.target.value = ''; // clear input 44 | } 45 | let matches = false; 46 | for (const o of options) { 47 | let displayValue = ''; 48 | if (filterValue) { 49 | if (o.title.toLowerCase().indexOf(filterValue) === -1) { 50 | displayValue = 'none'; 51 | } else { 52 | matches = true; 53 | } 54 | } 55 | // show/hide parent 56 | o.node.parentNode.parentNode.style.display = displayValue; 57 | } 58 | if (!filterValue || matches) { 59 | event.target.classList.remove('no-results'); 60 | } else { 61 | event.target.classList.add('no-results'); 62 | } 63 | sessionStorage.setItem('django.admin.navSidebarFilterValue', filterValue); 64 | } 65 | 66 | const nav = document.getElementById('nav-filter'); 67 | nav.addEventListener('change', checkValue, false); 68 | nav.addEventListener('input', checkValue, false); 69 | nav.addEventListener('keyup', checkValue, false); 70 | 71 | const storedValue = sessionStorage.getItem('django.admin.navSidebarFilterValue'); 72 | if (storedValue) { 73 | nav.value = storedValue; 74 | checkValue({target: nav, key: ''}); 75 | } 76 | } 77 | window.initSidebarQuickFilter = initSidebarQuickFilter; 78 | initSidebarQuickFilter(); 79 | } 80 | -------------------------------------------------------------------------------- /staticfiles/admin/img/selector-icons.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /staticfiles/admin/css/dark_mode.css: -------------------------------------------------------------------------------- 1 | @media (prefers-color-scheme: dark) { 2 | :root { 3 | --primary: #264b5d; 4 | --primary-fg: #f7f7f7; 5 | 6 | --body-fg: #eeeeee; 7 | --body-bg: #121212; 8 | --body-quiet-color: #d0d0d0; 9 | --body-medium-color: #e0e0e0; 10 | --body-loud-color: #ffffff; 11 | 12 | --breadcrumbs-link-fg: #e0e0e0; 13 | --breadcrumbs-bg: var(--primary); 14 | 15 | --link-fg: #81d4fa; 16 | --link-hover-color: #4ac1f7; 17 | --link-selected-fg: #6f94c6; 18 | 19 | --hairline-color: #272727; 20 | --border-color: #353535; 21 | 22 | --error-fg: #e35f5f; 23 | --message-success-bg: #006b1b; 24 | --message-warning-bg: #583305; 25 | --message-error-bg: #570808; 26 | 27 | --darkened-bg: #212121; 28 | --selected-bg: #1b1b1b; 29 | --selected-row: #00363a; 30 | 31 | --close-button-bg: #333333; 32 | --close-button-hover-bg: #666666; 33 | 34 | color-scheme: dark; 35 | } 36 | } 37 | 38 | 39 | html[data-theme="dark"] { 40 | --primary: #264b5d; 41 | --primary-fg: #f7f7f7; 42 | 43 | --body-fg: #eeeeee; 44 | --body-bg: #121212; 45 | --body-quiet-color: #d0d0d0; 46 | --body-medium-color: #e0e0e0; 47 | --body-loud-color: #ffffff; 48 | 49 | --breadcrumbs-link-fg: #e0e0e0; 50 | --breadcrumbs-bg: var(--primary); 51 | 52 | --link-fg: #81d4fa; 53 | --link-hover-color: #4ac1f7; 54 | --link-selected-fg: #6f94c6; 55 | 56 | --hairline-color: #272727; 57 | --border-color: #353535; 58 | 59 | --error-fg: #e35f5f; 60 | --message-success-bg: #006b1b; 61 | --message-warning-bg: #583305; 62 | --message-error-bg: #570808; 63 | 64 | --darkened-bg: #212121; 65 | --selected-bg: #1b1b1b; 66 | --selected-row: #00363a; 67 | 68 | --close-button-bg: #333333; 69 | --close-button-hover-bg: #666666; 70 | 71 | color-scheme: dark; 72 | } 73 | 74 | /* THEME SWITCH */ 75 | .theme-toggle { 76 | cursor: pointer; 77 | border: none; 78 | padding: 0; 79 | background: transparent; 80 | vertical-align: middle; 81 | margin-inline-start: 5px; 82 | margin-top: -1px; 83 | } 84 | 85 | .theme-toggle svg { 86 | vertical-align: middle; 87 | height: 1rem; 88 | width: 1rem; 89 | display: none; 90 | } 91 | 92 | /* 93 | Fully hide screen reader text so we only show the one matching the current 94 | theme. 95 | */ 96 | .theme-toggle .visually-hidden { 97 | display: none; 98 | } 99 | 100 | html[data-theme="auto"] .theme-toggle .theme-label-when-auto { 101 | display: block; 102 | } 103 | 104 | html[data-theme="dark"] .theme-toggle .theme-label-when-dark { 105 | display: block; 106 | } 107 | 108 | html[data-theme="light"] .theme-toggle .theme-label-when-light { 109 | display: block; 110 | } 111 | 112 | /* ICONS */ 113 | .theme-toggle svg.theme-icon-when-auto, 114 | .theme-toggle svg.theme-icon-when-dark, 115 | .theme-toggle svg.theme-icon-when-light { 116 | fill: var(--header-link-color); 117 | color: var(--header-bg); 118 | } 119 | 120 | html[data-theme="auto"] .theme-toggle svg.theme-icon-when-auto { 121 | display: block; 122 | } 123 | 124 | html[data-theme="dark"] .theme-toggle svg.theme-icon-when-dark { 125 | display: block; 126 | } 127 | 128 | html[data-theme="light"] .theme-toggle svg.theme-icon-when-light { 129 | display: block; 130 | } 131 | -------------------------------------------------------------------------------- /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: 1.25rem; 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 > #nav-sidebar { 63 | visibility: hidden; 64 | } 65 | 66 | .main.shifted > #nav-sidebar { 67 | margin-left: 0; 68 | visibility: visible; 69 | } 70 | 71 | [dir="rtl"] .main.shifted > #nav-sidebar { 72 | margin-right: 0; 73 | } 74 | 75 | #nav-sidebar .module th { 76 | width: 100%; 77 | overflow-wrap: anywhere; 78 | } 79 | 80 | #nav-sidebar .module th, 81 | #nav-sidebar .module caption { 82 | padding-left: 16px; 83 | } 84 | 85 | #nav-sidebar .module td { 86 | white-space: nowrap; 87 | } 88 | 89 | [dir="rtl"] #nav-sidebar .module th, 90 | [dir="rtl"] #nav-sidebar .module caption { 91 | padding-left: 8px; 92 | padding-right: 16px; 93 | } 94 | 95 | #nav-sidebar .current-app .section:link, 96 | #nav-sidebar .current-app .section:visited { 97 | color: var(--header-color); 98 | font-weight: bold; 99 | } 100 | 101 | #nav-sidebar .current-model { 102 | background: var(--selected-row); 103 | } 104 | 105 | @media (forced-colors: active) { 106 | #nav-sidebar .current-model { 107 | background-color: SelectedItem; 108 | } 109 | } 110 | 111 | .main > #nav-sidebar + .content { 112 | max-width: calc(100% - 23px); 113 | } 114 | 115 | .main.shifted > #nav-sidebar + .content { 116 | max-width: calc(100% - 299px); 117 | } 118 | 119 | @media (max-width: 767px) { 120 | #nav-sidebar, #toggle-nav-sidebar { 121 | display: none; 122 | } 123 | 124 | .main > #nav-sidebar + .content, 125 | .main.shifted > #nav-sidebar + .content { 126 | max-width: 100%; 127 | } 128 | } 129 | 130 | #nav-filter { 131 | width: 100%; 132 | box-sizing: border-box; 133 | padding: 2px 5px; 134 | margin: 5px 0; 135 | border: 1px solid var(--border-color); 136 | background-color: var(--darkened-bg); 137 | color: var(--body-fg); 138 | } 139 | 140 | #nav-filter:focus { 141 | border-color: var(--body-quiet-color); 142 | } 143 | 144 | #nav-filter.no-results { 145 | background: var(--message-error-bg); 146 | } 147 | 148 | #nav-sidebar table { 149 | width: 100%; 150 | } 151 | -------------------------------------------------------------------------------- /static/glr/js/fitvids.js: -------------------------------------------------------------------------------- 1 | /*jshint browser:true */ 2 | /*! 3 | * FitVids 1.1 4 | * 5 | * Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com 6 | * Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ 7 | * Released under the WTFPL license - http://sam.zoy.org/wtfpl/ 8 | * 9 | */ 10 | 11 | ;(function( $ ){ 12 | 13 | 'use strict'; 14 | 15 | $.fn.fitVids = function( options ) { 16 | var settings = { 17 | customSelector: null, 18 | ignore: null 19 | }; 20 | 21 | if(!document.getElementById('fit-vids-style')) { 22 | // appendStyles: https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js 23 | var head = document.head || document.getElementsByTagName('head')[0]; 24 | var css = '.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}'; 25 | var div = document.createElement("div"); 26 | div.innerHTML = '

x

'; 27 | head.appendChild(div.childNodes[1]); 28 | } 29 | 30 | if ( options ) { 31 | $.extend( settings, options ); 32 | } 33 | 34 | return this.each(function(){ 35 | var selectors = [ 36 | 'iframe[src*="player.vimeo.com"]', 37 | 'iframe[src*="youtube.com"]', 38 | 'iframe[src*="youtube-nocookie.com"]', 39 | 'iframe[src*="kickstarter.com"][src*="video.html"]', 40 | 'object', 41 | 'embed' 42 | ]; 43 | 44 | if (settings.customSelector) { 45 | selectors.push(settings.customSelector); 46 | } 47 | 48 | var ignoreList = '.fitvidsignore'; 49 | 50 | if(settings.ignore) { 51 | ignoreList = ignoreList + ', ' + settings.ignore; 52 | } 53 | 54 | var $allVideos = $(this).find(selectors.join(',')); 55 | $allVideos = $allVideos.not('object object'); // SwfObj conflict patch 56 | $allVideos = $allVideos.not(ignoreList); // Disable FitVids on this video. 57 | 58 | $allVideos.each(function(){ 59 | var $this = $(this); 60 | if($this.parents(ignoreList).length > 0) { 61 | return; // Disable FitVids on this video. 62 | } 63 | if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; } 64 | if ((!$this.css('height') && !$this.css('width')) && (isNaN($this.attr('height')) || isNaN($this.attr('width')))) 65 | { 66 | $this.attr('height', 9); 67 | $this.attr('width', 16); 68 | } 69 | var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(), 70 | width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(), 71 | aspectRatio = height / width; 72 | if(!$this.attr('name')){ 73 | var videoName = 'fitvid' + $.fn.fitVids._count; 74 | $this.attr('name', videoName); 75 | $.fn.fitVids._count++; 76 | } 77 | $this.wrap('
').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+'%'); 78 | $this.removeAttr('height').removeAttr('width'); 79 | }); 80 | }); 81 | }; 82 | 83 | // Internal counter for unique video names. 84 | $.fn.fitVids._count = 0; 85 | 86 | // Works with either jQuery or Zepto 87 | })( window.jQuery || window.Zepto ); 88 | -------------------------------------------------------------------------------- /staticfiles/glr/js/fitvids.js: -------------------------------------------------------------------------------- 1 | /*jshint browser:true */ 2 | /*! 3 | * FitVids 1.1 4 | * 5 | * Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com 6 | * Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ 7 | * Released under the WTFPL license - http://sam.zoy.org/wtfpl/ 8 | * 9 | */ 10 | 11 | ;(function( $ ){ 12 | 13 | 'use strict'; 14 | 15 | $.fn.fitVids = function( options ) { 16 | var settings = { 17 | customSelector: null, 18 | ignore: null 19 | }; 20 | 21 | if(!document.getElementById('fit-vids-style')) { 22 | // appendStyles: https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js 23 | var head = document.head || document.getElementsByTagName('head')[0]; 24 | var css = '.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}'; 25 | var div = document.createElement("div"); 26 | div.innerHTML = '

x

'; 27 | head.appendChild(div.childNodes[1]); 28 | } 29 | 30 | if ( options ) { 31 | $.extend( settings, options ); 32 | } 33 | 34 | return this.each(function(){ 35 | var selectors = [ 36 | 'iframe[src*="player.vimeo.com"]', 37 | 'iframe[src*="youtube.com"]', 38 | 'iframe[src*="youtube-nocookie.com"]', 39 | 'iframe[src*="kickstarter.com"][src*="video.html"]', 40 | 'object', 41 | 'embed' 42 | ]; 43 | 44 | if (settings.customSelector) { 45 | selectors.push(settings.customSelector); 46 | } 47 | 48 | var ignoreList = '.fitvidsignore'; 49 | 50 | if(settings.ignore) { 51 | ignoreList = ignoreList + ', ' + settings.ignore; 52 | } 53 | 54 | var $allVideos = $(this).find(selectors.join(',')); 55 | $allVideos = $allVideos.not('object object'); // SwfObj conflict patch 56 | $allVideos = $allVideos.not(ignoreList); // Disable FitVids on this video. 57 | 58 | $allVideos.each(function(){ 59 | var $this = $(this); 60 | if($this.parents(ignoreList).length > 0) { 61 | return; // Disable FitVids on this video. 62 | } 63 | if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; } 64 | if ((!$this.css('height') && !$this.css('width')) && (isNaN($this.attr('height')) || isNaN($this.attr('width')))) 65 | { 66 | $this.attr('height', 9); 67 | $this.attr('width', 16); 68 | } 69 | var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(), 70 | width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(), 71 | aspectRatio = height / width; 72 | if(!$this.attr('name')){ 73 | var videoName = 'fitvid' + $.fn.fitVids._count; 74 | $this.attr('name', videoName); 75 | $.fn.fitVids._count++; 76 | } 77 | $this.wrap('
').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+'%'); 78 | $this.removeAttr('height').removeAttr('width'); 79 | }); 80 | }); 81 | }; 82 | 83 | // Internal counter for unique video names. 84 | $.fn.fitVids._count = 0; 85 | 86 | // Works with either jQuery or Zepto 87 | })( window.jQuery || window.Zepto ); 88 | -------------------------------------------------------------------------------- /staticfiles/admin/js/SelectBox.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | { 3 | const SelectBox = { 4 | cache: {}, 5 | init: function(id) { 6 | const box = document.getElementById(id); 7 | SelectBox.cache[id] = []; 8 | const cache = SelectBox.cache[id]; 9 | for (const node of box.options) { 10 | cache.push({value: node.value, text: node.text, displayed: 1}); 11 | } 12 | }, 13 | redisplay: function(id) { 14 | // Repopulate HTML select box from cache 15 | const box = document.getElementById(id); 16 | const scroll_value_from_top = box.scrollTop; 17 | box.innerHTML = ''; 18 | for (const node of SelectBox.cache[id]) { 19 | if (node.displayed) { 20 | const new_option = new Option(node.text, node.value, false, false); 21 | // Shows a tooltip when hovering over the option 22 | new_option.title = node.text; 23 | box.appendChild(new_option); 24 | } 25 | } 26 | box.scrollTop = scroll_value_from_top; 27 | }, 28 | filter: function(id, text) { 29 | // Redisplay the HTML select box, displaying only the choices containing ALL 30 | // the words in text. (It's an AND search.) 31 | const tokens = text.toLowerCase().split(/\s+/); 32 | for (const node of SelectBox.cache[id]) { 33 | node.displayed = 1; 34 | const node_text = node.text.toLowerCase(); 35 | for (const token of tokens) { 36 | if (!node_text.includes(token)) { 37 | node.displayed = 0; 38 | break; // Once the first token isn't found we're done 39 | } 40 | } 41 | } 42 | SelectBox.redisplay(id); 43 | }, 44 | get_hidden_node_count(id) { 45 | const cache = SelectBox.cache[id] || []; 46 | return cache.filter(node => node.displayed === 0).length; 47 | }, 48 | delete_from_cache: function(id, value) { 49 | let delete_index = null; 50 | const cache = SelectBox.cache[id]; 51 | for (const [i, node] of cache.entries()) { 52 | if (node.value === value) { 53 | delete_index = i; 54 | break; 55 | } 56 | } 57 | cache.splice(delete_index, 1); 58 | }, 59 | add_to_cache: function(id, option) { 60 | SelectBox.cache[id].push({value: option.value, text: option.text, displayed: 1}); 61 | }, 62 | cache_contains: function(id, value) { 63 | // Check if an item is contained in the cache 64 | for (const node of SelectBox.cache[id]) { 65 | if (node.value === value) { 66 | return true; 67 | } 68 | } 69 | return false; 70 | }, 71 | move: function(from, to) { 72 | const from_box = document.getElementById(from); 73 | for (const option of from_box.options) { 74 | const option_value = option.value; 75 | if (option.selected && SelectBox.cache_contains(from, option_value)) { 76 | SelectBox.add_to_cache(to, {value: option_value, text: option.text, displayed: 1}); 77 | SelectBox.delete_from_cache(from, option_value); 78 | } 79 | } 80 | SelectBox.redisplay(from); 81 | SelectBox.redisplay(to); 82 | }, 83 | move_all: function(from, to) { 84 | const from_box = document.getElementById(from); 85 | for (const option of from_box.options) { 86 | const option_value = option.value; 87 | if (SelectBox.cache_contains(from, option_value)) { 88 | SelectBox.add_to_cache(to, {value: option_value, text: option.text, displayed: 1}); 89 | SelectBox.delete_from_cache(from, option_value); 90 | } 91 | } 92 | SelectBox.redisplay(from); 93 | SelectBox.redisplay(to); 94 | }, 95 | sort: function(id) { 96 | SelectBox.cache[id].sort(function(a, b) { 97 | a = a.text.toLowerCase(); 98 | b = b.text.toLowerCase(); 99 | if (a > b) { 100 | return 1; 101 | } 102 | if (a < b) { 103 | return -1; 104 | } 105 | return 0; 106 | } ); 107 | }, 108 | select_all: function(id) { 109 | const box = document.getElementById(id); 110 | for (const option of box.options) { 111 | option.selected = true; 112 | } 113 | } 114 | }; 115 | window.SelectBox = SelectBox; 116 | } 117 | -------------------------------------------------------------------------------- /static/glr/js/init.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Author: matchthemes.com 3 | * 4 | */ 5 | 6 | (function($) { 7 | "use strict"; 8 | 9 | // home slider 10 | $('.home-slider').owlCarousel({ 11 | items:1, 12 | loop:true, 13 | autoplay:true, 14 | autoplayTimeout:7000, 15 | autoplayHoverPause:true, 16 | animateOut: 'fadeOut', 17 | dots:false, 18 | nav:true, 19 | navText:'' 20 | }); 21 | 22 | $('.portfolio-slider-4items').owlCarousel({ 23 | loop:true, 24 | autoplay:true, 25 | autoplayTimeout:6000, 26 | margin: 30, 27 | dots:false, 28 | nav:true, 29 | navText:'', 30 | responsive:{ 0: { items: 1 }, 31 | 568: { items: 2 }, 32 | 1024: { items: 3 }, 33 | 34 | } 35 | }); 36 | 37 | $('.testimonial-slider').owlCarousel({ 38 | items:1, 39 | loop:true, 40 | autoHeight: true, 41 | autoplay: true, 42 | autoplayTimeout:8000, 43 | animateOut: 'fadeOut' 44 | }); 45 | 46 | //mobile menu 47 | $('.nav-button').on('click', function(e){ 48 | 49 | e.preventDefault(); 50 | 51 | $('.mobile-menu-holder, .menu-mask').addClass('is-active'); 52 | $('body').addClass('has-active-menu'); 53 | 54 | }); 55 | 56 | $('.exit-mobile, .menu-mask').on('click', function(e){ 57 | 58 | e.preventDefault(); 59 | 60 | $('.mobile-menu-holder, .menu-mask').removeClass('is-active'); 61 | $('body').removeClass('has-active-menu'); 62 | 63 | }); 64 | 65 | $('.menu-mobile > li.menu-item-has-children > a').on('click', function(e){ 66 | 67 | e.preventDefault(); 68 | e.stopPropagation(); 69 | 70 | if ( $(this).parent().hasClass('menu-open') ) 71 | 72 | $(this).parent().removeClass('menu-open'); 73 | 74 | else { 75 | 76 | $(this).parent().addClass('menu-open'); 77 | 78 | } 79 | 80 | }); 81 | 82 | // end mobile menu 83 | 84 | // menu edge screen turn left 85 | 86 | $(".menu-nav li").on('mouseenter mouseleave', function (e) { 87 | if ($('ul', this).length) { 88 | var elm = $('.sub-menu', this); 89 | var off = elm.offset(); 90 | var l = off.left; 91 | var w = elm.width(); 92 | var docW = $(window).width(); 93 | 94 | var isEntirelyVisible = (l + w <= docW); 95 | 96 | if (!isEntirelyVisible) { 97 | $(this).addClass('edge'); 98 | } else { 99 | $(this).removeClass('edge'); 100 | } 101 | } 102 | }); 103 | 104 | 105 | $(window).on('load', function() { 106 | 107 | //masonry 108 | var blogItems = $('.layout-masonry'); 109 | var portfolioItems = $('.portfolio-layout-masonry'); 110 | var portfolioItems2 = $('.portfolio-layout-masonry2'); 111 | var portfolioItems4 = $('.grid-v4-masonry'); 112 | 113 | blogItems.isotope({ 114 | itemSelector : '.blog-item-masonry', 115 | layoutMode : 'masonry', 116 | 117 | }); 118 | 119 | portfolioItems.isotope({ 120 | itemSelector : '.item-portfolio', 121 | layoutMode : 'masonry', 122 | 123 | }); 124 | 125 | portfolioItems2.isotope({ 126 | itemSelector : '.grid-item-style', 127 | layoutMode : 'fitRows', 128 | }); 129 | 130 | 131 | portfolioItems4.isotope({ 132 | itemSelector : '.grid-item-v4', 133 | percentPosition: true, 134 | layoutMode: 'masonry', 135 | masonry: { 136 | columnWidth: '.grid-item-v4-init' 137 | } 138 | }); 139 | 140 | 141 | // filter items when filter link is clicked 142 | if ($('.portfolio-filter a').length){ 143 | $('.portfolio-filter a').on('click', function(){ 144 | $('.portfolio-filter .current').removeClass('current'); 145 | $(this).addClass('current'); 146 | 147 | var selector = $(this).attr('data-filter'); 148 | portfolioItems.isotope({ filter: selector }); 149 | portfolioItems2.isotope({ filter: selector }); 150 | return false; 151 | }); 152 | } 153 | 154 | }); //window.load 155 | 156 | $(window).on('scroll', function() { 157 | if ($(document).scrollTop() > 1 ) { 158 | $('.main-header').addClass('nav-fixed-top'); 159 | } else { 160 | $('.main-header').removeClass('nav-fixed-top'); 161 | } 162 | 163 | }); 164 | 165 | 166 | //gallery 167 | 168 | $('.gallery-post a').simpleLightbox({ 169 | heightRatio: 1, 170 | widthRatio: 0.8 171 | 172 | }); 173 | 174 | 175 | // faq 176 | $('.faq-section').hide(); 177 | $('.faq-title').on('click',function(){ 178 | 179 | if( $(this).next().is(':hidden') ) { 180 | 181 | $(this).toggleClass('active').next().slideDown(); 182 | } else { 183 | $(this).removeClass('active').next().slideUp(); 184 | } 185 | return false; 186 | }); 187 | 188 | 189 | //fluid width videos 190 | 191 | $(".single-post-content, .custom-page-template, .post-video").fitVids({customSelector: "iframe[src^='https://w.soundcloud.com']"}); 192 | 193 | 194 | //scroll up button 195 | 196 | $(".scrollup").hide(); 197 | $(window).on('scroll', function() { 198 | if ($(this).scrollTop() > 400) { 199 | $('.scrollup').fadeIn(); 200 | } else { 201 | $('.scrollup').fadeOut(); 202 | } 203 | }); 204 | 205 | $("a.scrolltop[href^='#']").on('click', function(e) { 206 | e.preventDefault(); 207 | var hash = this.hash; 208 | $('html, body').stop().animate({scrollTop:0}, 1000, 'easeOutExpo'); 209 | 210 | }); 211 | 212 | })(jQuery); -------------------------------------------------------------------------------- /staticfiles/glr/js/init.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Author: matchthemes.com 3 | * 4 | */ 5 | 6 | (function($) { 7 | "use strict"; 8 | 9 | // home slider 10 | $('.home-slider').owlCarousel({ 11 | items:1, 12 | loop:true, 13 | autoplay:true, 14 | autoplayTimeout:7000, 15 | autoplayHoverPause:true, 16 | animateOut: 'fadeOut', 17 | dots:false, 18 | nav:true, 19 | navText:'' 20 | }); 21 | 22 | $('.portfolio-slider-4items').owlCarousel({ 23 | loop:true, 24 | autoplay:true, 25 | autoplayTimeout:6000, 26 | margin: 30, 27 | dots:false, 28 | nav:true, 29 | navText:'', 30 | responsive:{ 0: { items: 1 }, 31 | 568: { items: 2 }, 32 | 1024: { items: 3 }, 33 | 34 | } 35 | }); 36 | 37 | $('.testimonial-slider').owlCarousel({ 38 | items:1, 39 | loop:true, 40 | autoHeight: true, 41 | autoplay: true, 42 | autoplayTimeout:8000, 43 | animateOut: 'fadeOut' 44 | }); 45 | 46 | //mobile menu 47 | $('.nav-button').on('click', function(e){ 48 | 49 | e.preventDefault(); 50 | 51 | $('.mobile-menu-holder, .menu-mask').addClass('is-active'); 52 | $('body').addClass('has-active-menu'); 53 | 54 | }); 55 | 56 | $('.exit-mobile, .menu-mask').on('click', function(e){ 57 | 58 | e.preventDefault(); 59 | 60 | $('.mobile-menu-holder, .menu-mask').removeClass('is-active'); 61 | $('body').removeClass('has-active-menu'); 62 | 63 | }); 64 | 65 | $('.menu-mobile > li.menu-item-has-children > a').on('click', function(e){ 66 | 67 | e.preventDefault(); 68 | e.stopPropagation(); 69 | 70 | if ( $(this).parent().hasClass('menu-open') ) 71 | 72 | $(this).parent().removeClass('menu-open'); 73 | 74 | else { 75 | 76 | $(this).parent().addClass('menu-open'); 77 | 78 | } 79 | 80 | }); 81 | 82 | // end mobile menu 83 | 84 | // menu edge screen turn left 85 | 86 | $(".menu-nav li").on('mouseenter mouseleave', function (e) { 87 | if ($('ul', this).length) { 88 | var elm = $('.sub-menu', this); 89 | var off = elm.offset(); 90 | var l = off.left; 91 | var w = elm.width(); 92 | var docW = $(window).width(); 93 | 94 | var isEntirelyVisible = (l + w <= docW); 95 | 96 | if (!isEntirelyVisible) { 97 | $(this).addClass('edge'); 98 | } else { 99 | $(this).removeClass('edge'); 100 | } 101 | } 102 | }); 103 | 104 | 105 | $(window).on('load', function() { 106 | 107 | //masonry 108 | var blogItems = $('.layout-masonry'); 109 | var portfolioItems = $('.portfolio-layout-masonry'); 110 | var portfolioItems2 = $('.portfolio-layout-masonry2'); 111 | var portfolioItems4 = $('.grid-v4-masonry'); 112 | 113 | blogItems.isotope({ 114 | itemSelector : '.blog-item-masonry', 115 | layoutMode : 'masonry', 116 | 117 | }); 118 | 119 | portfolioItems.isotope({ 120 | itemSelector : '.item-portfolio', 121 | layoutMode : 'masonry', 122 | 123 | }); 124 | 125 | portfolioItems2.isotope({ 126 | itemSelector : '.grid-item-style', 127 | layoutMode : 'fitRows', 128 | }); 129 | 130 | 131 | portfolioItems4.isotope({ 132 | itemSelector : '.grid-item-v4', 133 | percentPosition: true, 134 | layoutMode: 'masonry', 135 | masonry: { 136 | columnWidth: '.grid-item-v4-init' 137 | } 138 | }); 139 | 140 | 141 | // filter items when filter link is clicked 142 | if ($('.portfolio-filter a').length){ 143 | $('.portfolio-filter a').on('click', function(){ 144 | $('.portfolio-filter .current').removeClass('current'); 145 | $(this).addClass('current'); 146 | 147 | var selector = $(this).attr('data-filter'); 148 | portfolioItems.isotope({ filter: selector }); 149 | portfolioItems2.isotope({ filter: selector }); 150 | return false; 151 | }); 152 | } 153 | 154 | }); //window.load 155 | 156 | $(window).on('scroll', function() { 157 | if ($(document).scrollTop() > 1 ) { 158 | $('.main-header').addClass('nav-fixed-top'); 159 | } else { 160 | $('.main-header').removeClass('nav-fixed-top'); 161 | } 162 | 163 | }); 164 | 165 | 166 | //gallery 167 | 168 | $('.gallery-post a').simpleLightbox({ 169 | heightRatio: 1, 170 | widthRatio: 0.8 171 | 172 | }); 173 | 174 | 175 | // faq 176 | $('.faq-section').hide(); 177 | $('.faq-title').on('click',function(){ 178 | 179 | if( $(this).next().is(':hidden') ) { 180 | 181 | $(this).toggleClass('active').next().slideDown(); 182 | } else { 183 | $(this).removeClass('active').next().slideUp(); 184 | } 185 | return false; 186 | }); 187 | 188 | 189 | //fluid width videos 190 | 191 | $(".single-post-content, .custom-page-template, .post-video").fitVids({customSelector: "iframe[src^='https://w.soundcloud.com']"}); 192 | 193 | 194 | //scroll up button 195 | 196 | $(".scrollup").hide(); 197 | $(window).on('scroll', function() { 198 | if ($(this).scrollTop() > 400) { 199 | $('.scrollup').fadeIn(); 200 | } else { 201 | $('.scrollup').fadeOut(); 202 | } 203 | }); 204 | 205 | $("a.scrolltop[href^='#']").on('click', function(e) { 206 | e.preventDefault(); 207 | var hash = this.hash; 208 | $('html, body').stop().animate({scrollTop:0}, 1000, 'easeOutExpo'); 209 | 210 | }); 211 | 212 | })(jQuery); -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 |
2 | 3 | logo 4 |

Personalized Photo Gallery Web App

5 | 6 | 7 |

8 | 9 | contributors 10 | 11 | 12 | forks 13 | 14 | 15 | stars 16 | 17 | 18 | open issues 19 | 20 |

21 |
22 | 23 | --- 24 | A web application that allows users to create personalized photo galleries with seamless Google OAuth integration and storage on Google Drive. Users can easily upload, manage, and display their images in a custom-designed gallery layout. 25 | 26 | 27 | 28 | ## :star2: About the Project 29 | 30 | 31 | 32 | ### :camera: Screenshots 33 | 34 |
35 | 36 | screenshot 37 | dashboard 38 | home page 39 | 40 |
41 | 42 | 43 | 44 | ## 🚀 **Features** 45 | 46 | - **🔐 Google OAuth Integration**: Secure user sign-up and authentication using Google accounts. 47 | - **☁️ Google Drive Storage**: Directly upload and store images to your Google Drive. 48 | - **🎨 Custom Gallery Layouts**: Personalize your gallery with custom-designed pages and layouts. 49 | - **📸 Easy Image Management**: Effortlessly organize, view, and manage images from your Google Drive via the app. 50 | - **⚡ Seamless File Handling**: Powered by the Google Drive API for efficient file management and storage. 51 | 52 | --- 53 | 54 | ## 🛠 **Technologies Used** 55 | [![My Skills](https://skillicons.dev/icons?i=py,django,tailwind)](https://skillicons.dev) 56 | 57 | - **Python**: Backend development with Python. 58 | - **Django**: Web framework for building the application. 59 | - **Tailwind CSS**: For modern, responsive, and customizable front-end design. 60 | - **Google Drive API**: To manage image uploads and storage. 61 | 62 | --- 63 | 64 | ## 🌟 **How It Works** 65 | 66 | 1. **User Authentication**: Users sign in securely using their Google account through Google OAuth. 67 | 2. **Image Upload**: Users can upload images directly to their Google Drive. 68 | 3. **Custom Gallery Creation**: The web app auto-generates personalized gallery pages to display the images in a beautifully designed layout. 69 | 4. **View and Manage**: Users can view their gallery, add or remove images, and adjust the layout as needed. 70 | 71 | --- 72 | 73 | ## 💻 **Installation & Setup** 74 | 75 | ### 1. Clone this repository 76 | 77 | ```bash 78 | git clone https://github.com/anujjamdade007/sharemysnaps.git 79 | cd sharemysnaps 80 | 81 | ``` 82 | 83 | ### 2. Set up the virtual environment 84 | 85 | ```bash 86 | python -m venv venv 87 | source venv/bin/activate # For Linux/macOS 88 | venv\Scripts\activate # For Windows 89 | 90 | ``` 91 | 92 | ### 3. Install required dependencies 93 | 94 | Ensure you have the `requirements.txt` file in the root directory. Install the necessary dependencies: 95 | 96 | ```bash 97 | pip install -r requirements.txt 98 | 99 | ``` 100 | 101 | ### 4. Set up Environment Variables 102 | 103 | Create a `.env` file in the root directory of your project and add the following credentials: 104 | 105 | ```dotenv 106 | # Google API Key 107 | API_KEY='Your API Key' 108 | 109 | # Google OAuth2 credentials 110 | SOCIAL_AUTH_GOOGLE_OAUTH2_KEY='Your API Key' 111 | SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET='Your API Key' 112 | 113 | SECRET_KEY='Your Secret Key' 114 | 115 | # Debug setting (set to False for production) 116 | DEBUG=True 117 | 118 | # Database Credentials 119 | NAME='Database Name' 120 | USER='Database User' 121 | PASSWORD='Database Password' 122 | 123 | ``` 124 | 125 | ### 5. Configure Google OAuth and Google Drive API 126 | 127 | - Set up **Google OAuth credentials** in the [Google Developer Console](https://console.developers.google.com/). 128 | - Enable the **Google Drive API** and make sure your project is linked to the OAuth credentials. 129 | - Place your **client_id** and **client_secret** values into the `.env` file under `SOCIAL_AUTH_GOOGLE_OAUTH2_KEY` and `SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET`. 130 | 131 | ### 6. Set Up the Database 132 | 133 | Ensure that your PostgreSQL database is running. Update the `.env` file with your **database** credentials as needed. 134 | 135 | Run the following commands to set up the database: 136 | 137 | ```bash 138 | python manage.py makemigrations 139 | python manage.py migrate 140 | 141 | ``` 142 | 143 | ### 7. Run the development server 144 | 145 | ```bash 146 | python manage.py runserver 147 | 148 | ``` 149 | 150 | Now, navigate to `http://127.0.0.1:8000/` to start using the app! 151 | 152 | 153 | ---------- 154 | 155 | ## 💬 **Contributions** 156 | 157 | Contributions are welcome! If you'd like to contribute, please fork the repository and submit a pull request. 158 | 159 | ---------- 160 | 161 | ## 💬 **Contact** 162 | 163 | For any inquiries, please feel free to reach out via [ajk952626@gmail.com](mailto:ajk952626@gmail.com). 164 | 165 | ---------- 166 | -------------------------------------------------------------------------------- /staticfiles/admin/css/rtl.css: -------------------------------------------------------------------------------- 1 | /* GLOBAL */ 2 | 3 | th { 4 | text-align: right; 5 | } 6 | 7 | .module h2, .module caption { 8 | text-align: right; 9 | } 10 | 11 | .module ul, .module ol { 12 | margin-left: 0; 13 | margin-right: 1.5em; 14 | } 15 | 16 | .viewlink, .addlink, .changelink, .hidelink { 17 | padding-left: 0; 18 | padding-right: 16px; 19 | background-position: 100% 1px; 20 | } 21 | 22 | .deletelink { 23 | padding-left: 0; 24 | padding-right: 16px; 25 | background-position: 100% 1px; 26 | } 27 | 28 | .object-tools { 29 | float: left; 30 | } 31 | 32 | thead th:first-child, 33 | tfoot td:first-child { 34 | border-left: none; 35 | } 36 | 37 | /* LAYOUT */ 38 | 39 | #user-tools { 40 | right: auto; 41 | left: 0; 42 | text-align: left; 43 | } 44 | 45 | div.breadcrumbs { 46 | text-align: right; 47 | } 48 | 49 | #content-main { 50 | float: right; 51 | } 52 | 53 | #content-related { 54 | float: left; 55 | margin-left: -300px; 56 | margin-right: auto; 57 | } 58 | 59 | .colMS { 60 | margin-left: 300px; 61 | margin-right: 0; 62 | } 63 | 64 | /* SORTABLE TABLES */ 65 | 66 | table thead th.sorted .sortoptions { 67 | float: left; 68 | } 69 | 70 | thead th.sorted .text { 71 | padding-right: 0; 72 | padding-left: 42px; 73 | } 74 | 75 | /* dashboard styles */ 76 | 77 | .dashboard .module table td a { 78 | padding-left: .6em; 79 | padding-right: 16px; 80 | } 81 | 82 | /* changelists styles */ 83 | 84 | .change-list .filtered table { 85 | border-left: none; 86 | border-right: 0px none; 87 | } 88 | 89 | #changelist-filter { 90 | border-left: none; 91 | border-right: none; 92 | margin-left: 0; 93 | margin-right: 30px; 94 | } 95 | 96 | #changelist-filter li.selected { 97 | border-left: none; 98 | padding-left: 10px; 99 | margin-left: 0; 100 | border-right: 5px solid var(--hairline-color); 101 | padding-right: 10px; 102 | margin-right: -15px; 103 | } 104 | 105 | #changelist table tbody td:first-child, #changelist table tbody th:first-child { 106 | border-right: none; 107 | border-left: none; 108 | } 109 | 110 | .paginator .end { 111 | margin-left: 6px; 112 | margin-right: 0; 113 | } 114 | 115 | .paginator input { 116 | margin-left: 0; 117 | margin-right: auto; 118 | } 119 | 120 | /* FORMS */ 121 | 122 | .aligned label { 123 | padding: 0 0 3px 1em; 124 | } 125 | 126 | .submit-row a.deletelink { 127 | margin-left: 0; 128 | margin-right: auto; 129 | } 130 | 131 | .vDateField, .vTimeField { 132 | margin-left: 2px; 133 | } 134 | 135 | .aligned .form-row input { 136 | margin-left: 5px; 137 | } 138 | 139 | form .aligned ul { 140 | margin-right: 163px; 141 | padding-right: 10px; 142 | margin-left: 0; 143 | padding-left: 0; 144 | } 145 | 146 | form ul.inline li { 147 | float: right; 148 | padding-right: 0; 149 | padding-left: 7px; 150 | } 151 | 152 | form .aligned p.help, 153 | form .aligned div.help { 154 | margin-left: 0; 155 | margin-right: 160px; 156 | padding-right: 10px; 157 | } 158 | 159 | form div.help ul, 160 | form .aligned .checkbox-row + .help, 161 | form .aligned p.date div.help.timezonewarning, 162 | form .aligned p.datetime div.help.timezonewarning, 163 | form .aligned p.time div.help.timezonewarning { 164 | margin-right: 0; 165 | padding-right: 0; 166 | } 167 | 168 | form .wide p.help, 169 | form .wide ul.errorlist, 170 | form .wide div.help { 171 | padding-left: 0; 172 | padding-right: 50px; 173 | } 174 | 175 | .submit-row { 176 | text-align: right; 177 | } 178 | 179 | fieldset .fieldBox { 180 | margin-left: 20px; 181 | margin-right: 0; 182 | } 183 | 184 | .errorlist li { 185 | background-position: 100% 12px; 186 | padding: 0; 187 | } 188 | 189 | .errornote { 190 | background-position: 100% 12px; 191 | padding: 10px 12px; 192 | } 193 | 194 | /* WIDGETS */ 195 | 196 | .calendarnav-previous { 197 | top: 0; 198 | left: auto; 199 | right: 10px; 200 | background: url(../img/calendar-icons.svg) 0 -15px no-repeat; 201 | } 202 | 203 | .calendarnav-next { 204 | top: 0; 205 | right: auto; 206 | left: 10px; 207 | background: url(../img/calendar-icons.svg) 0 0 no-repeat; 208 | } 209 | 210 | .calendar caption, .calendarbox h2 { 211 | text-align: center; 212 | } 213 | 214 | .selector { 215 | float: right; 216 | } 217 | 218 | .selector .selector-filter { 219 | text-align: right; 220 | } 221 | 222 | .selector-add { 223 | background: url(../img/selector-icons.svg) 0 -64px no-repeat; 224 | } 225 | 226 | .active.selector-add:focus, .active.selector-add:hover { 227 | background-position: 0 -80px; 228 | } 229 | 230 | .selector-remove { 231 | background: url(../img/selector-icons.svg) 0 -96px no-repeat; 232 | } 233 | 234 | .active.selector-remove:focus, .active.selector-remove:hover { 235 | background-position: 0 -112px; 236 | } 237 | 238 | a.selector-chooseall { 239 | background: url(../img/selector-icons.svg) right -128px no-repeat; 240 | } 241 | 242 | a.active.selector-chooseall:focus, a.active.selector-chooseall:hover { 243 | background-position: 100% -144px; 244 | } 245 | 246 | a.selector-clearall { 247 | background: url(../img/selector-icons.svg) 0 -160px no-repeat; 248 | } 249 | 250 | a.active.selector-clearall:focus, a.active.selector-clearall:hover { 251 | background-position: 0 -176px; 252 | } 253 | 254 | .inline-deletelink { 255 | float: left; 256 | } 257 | 258 | form .form-row p.datetime { 259 | overflow: hidden; 260 | } 261 | 262 | .related-widget-wrapper { 263 | float: right; 264 | } 265 | 266 | /* MISC */ 267 | 268 | .inline-related h2, .inline-group h2 { 269 | text-align: right 270 | } 271 | 272 | .inline-related h3 span.delete { 273 | padding-right: 20px; 274 | padding-left: inherit; 275 | left: 10px; 276 | right: inherit; 277 | float:left; 278 | } 279 | 280 | .inline-related h3 span.delete label { 281 | margin-left: inherit; 282 | margin-right: 2px; 283 | } 284 | 285 | .inline-group .tabular td.original p { 286 | right: 0; 287 | } 288 | 289 | .selector .selector-chooser { 290 | margin: 0; 291 | } 292 | -------------------------------------------------------------------------------- /main/templates/upload.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Upload File 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 36 | 37 | 38 |
39 | {% for message in messages %} 40 | {% if message.tags == 'success' %} 41 | 50 | {% elif message.tags == 'error' %} 51 | 64 | {% endif %} 65 | {% endfor %} 66 |
67 | 68 | 69 |
70 |
71 |
72 | {% csrf_token %} 73 |
74 | 77 | 78 |
79 | 80 | 95 |
96 |
97 | 98 | 105 |
106 | 107 |
108 |
109 | 110 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /core/settings.py: -------------------------------------------------------------------------------- 1 | 2 | 3 | from pathlib import Path 4 | import os 5 | from dotenv import load_dotenv 6 | 7 | # Load environment variables from .env file 8 | load_dotenv() 9 | 10 | 11 | # Build paths inside the project like this: BASE_DIR / 'subdir'. 12 | BASE_DIR = Path(__file__).resolve().parent.parent 13 | 14 | 15 | # Quick-start development settings - unsuitable for production 16 | # See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/ 17 | 18 | # SECURITY WARNING: keep the secret key used in production secret! 19 | 20 | SECRET_KEY = os.getenv('SECRET_KEY') 21 | 22 | # SECURITY WARNING: don't run with debug turned on in production! 23 | DEBUG = os.getenv('DEBUG', 'True').lower() == 'true' 24 | 25 | ALLOWED_HOSTS = ['*'] 26 | 27 | CSRF_TRUSTED_ORIGINS = ['https://sharemysnaps.anujjamdade.site','https://*.127.0.0.1','http://localhost'] 28 | SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') 29 | 30 | 31 | # Application definition 32 | 33 | INSTALLED_APPS = [ 34 | 'django.contrib.admin', 35 | 'django.contrib.auth', 36 | 'django.contrib.contenttypes', 37 | 'django.contrib.sessions', 38 | 'django.contrib.messages', 39 | 'django.contrib.staticfiles', 40 | 41 | # local apps 42 | 'base', 43 | 'main', 44 | 45 | # third party apps 46 | 'social_django', 47 | 'django.contrib.humanize', 48 | 'django_cleanup.apps.CleanupConfig', 49 | 50 | ] 51 | 52 | MIDDLEWARE = [ 53 | 'django.middleware.security.SecurityMiddleware', 54 | "whitenoise.middleware.WhiteNoiseMiddleware", 55 | 'django.contrib.sessions.middleware.SessionMiddleware', 56 | 'django.middleware.common.CommonMiddleware', 57 | 'django.middleware.csrf.CsrfViewMiddleware', 58 | 'django.contrib.auth.middleware.AuthenticationMiddleware', 59 | 'django.contrib.messages.middleware.MessageMiddleware', 60 | 'django.middleware.clickjacking.XFrameOptionsMiddleware', 61 | 'social_django.middleware.SocialAuthExceptionMiddleware', 62 | ] 63 | 64 | ROOT_URLCONF = 'core.urls' 65 | 66 | TEMPLATES = [ 67 | { 68 | 'BACKEND': 'django.template.backends.django.DjangoTemplates', 69 | 'DIRS': [], 70 | 'APP_DIRS': True, 71 | 'OPTIONS': { 72 | 'context_processors': [ 73 | 'django.template.context_processors.debug', 74 | 'django.template.context_processors.request', 75 | 'django.contrib.auth.context_processors.auth', 76 | 'django.contrib.messages.context_processors.messages', 77 | 'social_django.context_processors.backends', 78 | ], 79 | }, 80 | }, 81 | ] 82 | 83 | WSGI_APPLICATION = 'core.wsgi.application' 84 | 85 | 86 | # Database 87 | # https://docs.djangoproject.com/en/5.1/ref/settings/#databases 88 | 89 | # DATABASES = { 90 | # 'default': { 91 | # 'ENGINE': 'django.db.backends.sqlite3', 92 | # 'NAME': BASE_DIR / 'db.sqlite3', 93 | # } 94 | # } 95 | 96 | import os 97 | from urllib.parse import urlparse 98 | 99 | # Use different database configurations depending on the environment 100 | if os.getenv('DEBUG') == 'True': 101 | DATABASES = { 102 | 'default': { 103 | 'ENGINE': 'django.db.backends.postgresql_psycopg2', 104 | 'NAME': os.getenv('NAME'), 105 | 'USER': os.getenv('USER'), 106 | 'PASSWORD': os.getenv('PASSWORD'), 107 | 'HOST': 'localhost', 108 | 'PORT': '5432', 109 | } 110 | } 111 | else: 112 | # Production database configuration using DATABASE_URL 113 | url = urlparse(os.getenv('DATABASE_URL')) 114 | DATABASES = { 115 | 'default': { 116 | 'ENGINE': 'django.db.backends.postgresql_psycopg2', 117 | 'NAME': url.path[1:], 118 | 'USER': url.username, 119 | 'PASSWORD': url.password, 120 | 'HOST': url.hostname, 121 | 'PORT': url.port, 122 | } 123 | } 124 | 125 | 126 | 127 | # Password validation 128 | # https://docs.djangoproject.com/en/5.1/ref/settings/#auth-password-validators 129 | 130 | AUTH_PASSWORD_VALIDATORS = [ 131 | { 132 | 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', 133 | }, 134 | { 135 | 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', 136 | }, 137 | { 138 | 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', 139 | }, 140 | { 141 | 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', 142 | }, 143 | ] 144 | 145 | 146 | # Internationalization 147 | # https://docs.djangoproject.com/en/5.1/topics/i18n/ 148 | 149 | LANGUAGE_CODE = 'en-us' 150 | 151 | TIME_ZONE = 'UTC' 152 | 153 | USE_I18N = True 154 | 155 | USE_TZ = True 156 | 157 | 158 | # Static files (CSS, JavaScript, Images) 159 | # https://docs.djangoproject.com/en/5.1/howto/static-files/ 160 | 161 | STATIC_URL = 'static/' 162 | 163 | # Default primary key field type 164 | # https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field 165 | 166 | DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' 167 | 168 | LOGIN_URL = 'login' 169 | 170 | import os 171 | 172 | # This is where Django looks for static files during development 173 | STATIC_URL = '/static/' 174 | 175 | # This is where you should collect static files in production (for static file serving) 176 | STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') 177 | 178 | # List directories where static files are collected from apps and other places 179 | STATICFILES_DIRS = [ 180 | os.path.join(BASE_DIR, 'static'), 181 | ] 182 | 183 | # Optionally, configure this to manage static file versioning 184 | # STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage' 185 | STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage" 186 | 187 | #social app custom 188 | 189 | AUTHENTICATION_BACKENDS = [ 190 | 'social_core.backends.google.GoogleOAuth2', 191 | 'django.contrib.auth.backends.ModelBackend', 192 | ] 193 | 194 | SOCIAL_AUTH_URL_NAMESPACE = 'social' 195 | 196 | LOGIN_URL = 'login' 197 | 198 | LOGIN_REDIRECT_URL = 'dashboard' 199 | 200 | LOGOUT_URL = 'logout' 201 | 202 | LOGOUT_REDIRECT_URL = 'login' 203 | 204 | SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = os.getenv('SOCIAL_AUTH_GOOGLE_OAUTH2_KEY') 205 | 206 | SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = os.getenv('SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET') 207 | 208 | SOCIAL_AUTH_GOOGLE_OAUTH2_SCOPE = [ 209 | 'https://www.googleapis.com/auth/drive', # Full access to Google Drive 210 | ] 211 | 212 | API_KEY = os.getenv('API_KEY') 213 | 214 | 215 | SOCIAL_AUTH_GOOGLE_OAUTH2_AUTH_EXTRA_ARGUMENTS = { 216 | 'access_type': 'offline', 217 | 'approval_prompt':'force' 218 | } 219 | 220 | SOCIAL_AUTH_GOOGLE_OAUTH2_USE_UNIQUE_USER_ID = True 221 | 222 | MEDIA_URL = "/media/" 223 | MEDIA_ROOT = BASE_DIR / "media" -------------------------------------------------------------------------------- /staticfiles/admin/js/core.js: -------------------------------------------------------------------------------- 1 | // Core JavaScript helper functions 2 | 'use strict'; 3 | 4 | // quickElement(tagType, parentReference [, textInChildNode, attribute, attributeValue ...]); 5 | function quickElement() { 6 | const obj = document.createElement(arguments[0]); 7 | if (arguments[2]) { 8 | const textNode = document.createTextNode(arguments[2]); 9 | obj.appendChild(textNode); 10 | } 11 | const len = arguments.length; 12 | for (let i = 3; i < len; i += 2) { 13 | obj.setAttribute(arguments[i], arguments[i + 1]); 14 | } 15 | arguments[1].appendChild(obj); 16 | return obj; 17 | } 18 | 19 | // "a" is reference to an object 20 | function removeChildren(a) { 21 | while (a.hasChildNodes()) { 22 | a.removeChild(a.lastChild); 23 | } 24 | } 25 | 26 | // ---------------------------------------------------------------------------- 27 | // Find-position functions by PPK 28 | // See https://www.quirksmode.org/js/findpos.html 29 | // ---------------------------------------------------------------------------- 30 | function findPosX(obj) { 31 | let curleft = 0; 32 | if (obj.offsetParent) { 33 | while (obj.offsetParent) { 34 | curleft += obj.offsetLeft - obj.scrollLeft; 35 | obj = obj.offsetParent; 36 | } 37 | } else if (obj.x) { 38 | curleft += obj.x; 39 | } 40 | return curleft; 41 | } 42 | 43 | function findPosY(obj) { 44 | let curtop = 0; 45 | if (obj.offsetParent) { 46 | while (obj.offsetParent) { 47 | curtop += obj.offsetTop - obj.scrollTop; 48 | obj = obj.offsetParent; 49 | } 50 | } else if (obj.y) { 51 | curtop += obj.y; 52 | } 53 | return curtop; 54 | } 55 | 56 | //----------------------------------------------------------------------------- 57 | // Date object extensions 58 | // ---------------------------------------------------------------------------- 59 | { 60 | Date.prototype.getTwelveHours = function() { 61 | return this.getHours() % 12 || 12; 62 | }; 63 | 64 | Date.prototype.getTwoDigitMonth = function() { 65 | return (this.getMonth() < 9) ? '0' + (this.getMonth() + 1) : (this.getMonth() + 1); 66 | }; 67 | 68 | Date.prototype.getTwoDigitDate = function() { 69 | return (this.getDate() < 10) ? '0' + this.getDate() : this.getDate(); 70 | }; 71 | 72 | Date.prototype.getTwoDigitTwelveHour = function() { 73 | return (this.getTwelveHours() < 10) ? '0' + this.getTwelveHours() : this.getTwelveHours(); 74 | }; 75 | 76 | Date.prototype.getTwoDigitHour = function() { 77 | return (this.getHours() < 10) ? '0' + this.getHours() : this.getHours(); 78 | }; 79 | 80 | Date.prototype.getTwoDigitMinute = function() { 81 | return (this.getMinutes() < 10) ? '0' + this.getMinutes() : this.getMinutes(); 82 | }; 83 | 84 | Date.prototype.getTwoDigitSecond = function() { 85 | return (this.getSeconds() < 10) ? '0' + this.getSeconds() : this.getSeconds(); 86 | }; 87 | 88 | Date.prototype.getAbbrevDayName = function() { 89 | return typeof window.CalendarNamespace === "undefined" 90 | ? '0' + this.getDay() 91 | : window.CalendarNamespace.daysOfWeekAbbrev[this.getDay()]; 92 | }; 93 | 94 | Date.prototype.getFullDayName = function() { 95 | return typeof window.CalendarNamespace === "undefined" 96 | ? '0' + this.getDay() 97 | : window.CalendarNamespace.daysOfWeek[this.getDay()]; 98 | }; 99 | 100 | Date.prototype.getAbbrevMonthName = function() { 101 | return typeof window.CalendarNamespace === "undefined" 102 | ? this.getTwoDigitMonth() 103 | : window.CalendarNamespace.monthsOfYearAbbrev[this.getMonth()]; 104 | }; 105 | 106 | Date.prototype.getFullMonthName = function() { 107 | return typeof window.CalendarNamespace === "undefined" 108 | ? this.getTwoDigitMonth() 109 | : window.CalendarNamespace.monthsOfYear[this.getMonth()]; 110 | }; 111 | 112 | Date.prototype.strftime = function(format) { 113 | const fields = { 114 | a: this.getAbbrevDayName(), 115 | A: this.getFullDayName(), 116 | b: this.getAbbrevMonthName(), 117 | B: this.getFullMonthName(), 118 | c: this.toString(), 119 | d: this.getTwoDigitDate(), 120 | H: this.getTwoDigitHour(), 121 | I: this.getTwoDigitTwelveHour(), 122 | m: this.getTwoDigitMonth(), 123 | M: this.getTwoDigitMinute(), 124 | p: (this.getHours() >= 12) ? 'PM' : 'AM', 125 | S: this.getTwoDigitSecond(), 126 | w: '0' + this.getDay(), 127 | x: this.toLocaleDateString(), 128 | X: this.toLocaleTimeString(), 129 | y: ('' + this.getFullYear()).substr(2, 4), 130 | Y: '' + this.getFullYear(), 131 | '%': '%' 132 | }; 133 | let result = '', i = 0; 134 | while (i < format.length) { 135 | if (format.charAt(i) === '%') { 136 | result += fields[format.charAt(i + 1)]; 137 | ++i; 138 | } 139 | else { 140 | result += format.charAt(i); 141 | } 142 | ++i; 143 | } 144 | return result; 145 | }; 146 | 147 | // ---------------------------------------------------------------------------- 148 | // String object extensions 149 | // ---------------------------------------------------------------------------- 150 | String.prototype.strptime = function(format) { 151 | const split_format = format.split(/[.\-/]/); 152 | const date = this.split(/[.\-/]/); 153 | let i = 0; 154 | let day, month, year; 155 | while (i < split_format.length) { 156 | switch (split_format[i]) { 157 | case "%d": 158 | day = date[i]; 159 | break; 160 | case "%m": 161 | month = date[i] - 1; 162 | break; 163 | case "%Y": 164 | year = date[i]; 165 | break; 166 | case "%y": 167 | // A %y value in the range of [00, 68] is in the current 168 | // century, while [69, 99] is in the previous century, 169 | // according to the Open Group Specification. 170 | if (parseInt(date[i], 10) >= 69) { 171 | year = date[i]; 172 | } else { 173 | year = (new Date(Date.UTC(date[i], 0))).getUTCFullYear() + 100; 174 | } 175 | break; 176 | } 177 | ++i; 178 | } 179 | // Create Date object from UTC since the parsed value is supposed to be 180 | // in UTC, not local time. Also, the calendar uses UTC functions for 181 | // date extraction. 182 | return new Date(Date.UTC(year, month, day)); 183 | }; 184 | } 185 | --------------------------------------------------------------------------------