Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
spinxi committed Jan 4, 2023
0 parents commit 588876d
Show file tree
Hide file tree
Showing 17,336 changed files with 3,208,150 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
15,751 changes: 15,751 additions & 0 deletions .gitignore

Large diffs are not rendered by default.

Empty file added apps/__init__.py
Empty file.
Binary file added apps/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file added apps/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file added apps/__pycache__/admin.cpython-38.pyc
Binary file not shown.
Binary file added apps/__pycache__/admin.cpython-39.pyc
Binary file not shown.
Binary file added apps/__pycache__/apps.cpython-38.pyc
Binary file not shown.
Binary file added apps/__pycache__/apps.cpython-39.pyc
Binary file not shown.
Binary file added apps/__pycache__/models.cpython-38.pyc
Binary file not shown.
Binary file added apps/__pycache__/models.cpython-39.pyc
Binary file not shown.
Binary file added apps/__pycache__/urls.cpython-38.pyc
Binary file not shown.
Binary file added apps/__pycache__/urls.cpython-39.pyc
Binary file not shown.
Binary file added apps/__pycache__/views.cpython-38.pyc
Binary file not shown.
Binary file added apps/__pycache__/views.cpython-39.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions apps/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
6 changes: 6 additions & 0 deletions apps/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class AppsConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "apps"
Empty file added apps/migrations/__init__.py
Empty file.
Binary file added apps/migrations/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file added apps/migrations/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions apps/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
3 changes: 3 additions & 0 deletions apps/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
79 changes: 79 additions & 0 deletions apps/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
from django.urls import path

from .views import (
apps_ecommerce_add_product_view,
apps_ecommerce_cart_view,
apps_ecommerce_checkout_view,
apps_ecommerce_customers_view,
apps_ecommerce_orders_view,
apps_ecommerce_product_detail_view,
apps_ecommerce_products_view,
apps_ecommerce_shops_view,
apps_calendar_calendar_view,
apps_chat_chat_view,
apps_email_inbox_view,
apps_email_read_view,
apps_tasks_create_view,
apps_tasks_kanban_view,
apps_tasks_list_view,
# apps_invoice_list_view,
# apps_invoice_details_view,
apps_contacts_usergrid_view,
apps_contacts_userlist_view,
apps_contacts_profile_view,
apps_horizontal_horizontal_view,
)

app_name = "apps"
urlpatterns = [
# Ecommerce
path(
"ecommerce/add-product",
view=apps_ecommerce_add_product_view,
name="ecommerce.add_product",
),
path("ecommerce/cart", view=apps_ecommerce_cart_view, name="ecommerce.cart"),
path(
"ecommerce/checkout",
view=apps_ecommerce_checkout_view,
name="ecommerce.checkout",
),
path(
"ecommerce/customers",
view=apps_ecommerce_customers_view,
name="ecommerce.customers",
),
path("ecommerce/orders", view=apps_ecommerce_orders_view, name="ecommerce.orders"),
path(
"ecommerce/product-detail",
view=apps_ecommerce_product_detail_view,
name="ecommerce.product_detail",
),
path(
"ecommerce/products",
view=apps_ecommerce_products_view,
name="ecommerce.products",
),
path("ecommerce/shops", view=apps_ecommerce_shops_view, name="ecommerce.shops"),
# calendar
path("calendar", view=apps_calendar_calendar_view, name="calendar"),
# chat
path("chat", view=apps_chat_chat_view, name="chat"),
# Email
path("email/inbox", view=apps_email_inbox_view, name="email.inbox"),
path("emial/read_email", view=apps_email_read_view, name="email.read"),
# Tasks
path("tasks/create-task", view=apps_tasks_create_view, name="tasks.create"),
path("tasks/kanban", view=apps_tasks_kanban_view, name="tasks.kanban"),
path("tasks/list", view=apps_tasks_list_view, name="tasks.list"),
# Contacts
path(
"contacts/user_grid", view=apps_contacts_usergrid_view, name="contacts.usergrid"
),
path(
"contacts/user_list", view=apps_contacts_userlist_view, name="contacts.userlist"
),
path("contacts/profile", view=apps_contacts_profile_view, name="contacts.profile"),
# Horizontal
path("horizontal", view=apps_horizontal_horizontal_view, name="horizontal"),
]
82 changes: 82 additions & 0 deletions apps/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
from django.http import request
from django.shortcuts import redirect, render
from django.views import View
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth import get_user_model
from django.urls import reverse
from django.views.generic import TemplateView


# Create your views here.
class AppsView(LoginRequiredMixin, TemplateView):
# class AppsView(TemplateView):
pass


# Ecommerce
apps_ecommerce_add_product_view = AppsView.as_view(
template_name="apps/ecommerce/ecommerce-add-product.html"
)
apps_ecommerce_cart_view = AppsView.as_view(
template_name="apps/ecommerce/ecommerce-cart.html"
)
apps_ecommerce_checkout_view = AppsView.as_view(
template_name="apps/ecommerce/ecommerce-checkout.html"
)
apps_ecommerce_customers_view = AppsView.as_view(
template_name="apps/ecommerce/ecommerce-customers.html"
)
apps_ecommerce_orders_view = AppsView.as_view(
template_name="apps/ecommerce/ecommerce-orders.html"
)
apps_ecommerce_product_detail_view = AppsView.as_view(
template_name="apps/ecommerce/ecommerce-product-detail.html"
)
apps_ecommerce_products_view = AppsView.as_view(
template_name="apps/ecommerce/ecommerce-products.html"
)
apps_ecommerce_shops_view = AppsView.as_view(
template_name="apps/ecommerce/ecommerce-shops.html"
)

# calendar
apps_calendar_calendar_view = AppsView.as_view(template_name="apps/apps-calendar.html")
# chat
apps_chat_chat_view = AppsView.as_view(template_name="apps/apps-chat.html")

# Email
apps_email_inbox_view = AppsView.as_view(
template_name="apps/email/apps-email-inbox.html"
)
apps_email_read_view = AppsView.as_view(template_name="apps/email/apps-email-read.html")

# # Invoices
# apps_invoice_list_view = AppsView.as_view(
# template_name="apps/invoices/invoice_list.html"
# )
# apps_invoice_details_view = AppsView.as_view(
# template_name="apps/invoices/invoice_details.html"
# )

# Tasks
apps_tasks_create_view = AppsView.as_view(template_name="apps/tasks/tasks-create.html")
apps_tasks_kanban_view = AppsView.as_view(template_name="apps/tasks/tasks-kanban.html")
apps_tasks_list_view = AppsView.as_view(template_name="apps/tasks/tasks-list.html")


# Contacts
apps_contacts_usergrid_view = AppsView.as_view(
template_name="apps/contacts/apps-contacts-grid.html"
)
apps_contacts_userlist_view = AppsView.as_view(
template_name="apps/contacts/apps-contacts-list.html"
)
apps_contacts_profile_view = AppsView.as_view(
template_name="apps/contacts/apps-contacts-profile.html"
)


# horizontal
apps_horizontal_horizontal_view = AppsView.as_view(
template_name="apps/horizontal/horizontal.html"
)
Loading

0 comments on commit 588876d

Please sign in to comment.