From 9c79583adeb4facbcaf7dc15dad6a29bedd604fb Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sat, 25 Oct 2025 07:58:42 +0000 Subject: [PATCH] Auto task --- config/__pycache__/__init__.cpython-311.pyc | Bin 159 -> 159 bytes config/__pycache__/settings.cpython-311.pyc | Bin 4210 -> 4210 bytes config/__pycache__/urls.cpython-311.pyc | Bin 1143 -> 1143 bytes config/__pycache__/wsgi.cpython-311.pyc | Bin 679 -> 679 bytes core/__pycache__/__init__.cpython-311.pyc | Bin 157 -> 157 bytes core/__pycache__/admin.cpython-311.pyc | Bin 777 -> 777 bytes core/__pycache__/apps.cpython-311.pyc | Bin 524 -> 524 bytes core/__pycache__/forms.cpython-311.pyc | Bin 847 -> 847 bytes core/__pycache__/models.cpython-311.pyc | Bin 1409 -> 1409 bytes core/__pycache__/urls.cpython-311.pyc | Bin 347 -> 348 bytes core/__pycache__/views.cpython-311.pyc | Bin 2006 -> 2054 bytes .../__pycache__/0001_initial.cpython-311.pyc | Bin 1660 -> 1660 bytes .../__pycache__/__init__.cpython-311.pyc | Bin 168 -> 168 bytes core/templates/base.html | 14 ++ core/templates/core/article_detail.html | 14 ++ core/templates/core/index.html | 201 +++++------------- core/urls.py | 4 +- core/views.py | 30 +-- static/css/custom.css | 86 ++++++++ 19 files changed, 183 insertions(+), 166 deletions(-) create mode 100644 core/templates/base.html create mode 100644 core/templates/core/article_detail.html create mode 100644 static/css/custom.css diff --git a/config/__pycache__/__init__.cpython-311.pyc b/config/__pycache__/__init__.cpython-311.pyc index 3d6501c67fa5c80fdda8a8ee57862699aabd319d..9c08627649c72e8d0df93c28fa49c6c510a48249 100644 GIT binary patch delta 19 ZcmbQwIG>SwIWI340}vc8`8|<)3IH!E1$h7f delta 19 ZcmbQwIG>SwIWI340}vQ{ewxTV1pq3~1hoJF diff --git a/config/__pycache__/settings.cpython-311.pyc b/config/__pycache__/settings.cpython-311.pyc index dadfaa7db630a06a9bc0da9edbc375273aefa0ed..6a16ad44be685ae980048e49d6198303a2e7af68 100644 GIT binary patch delta 20 acmeyQ@JWGtIWI340}vc8`Mr@lT>t<@hX!B( delta 20 acmeyQ@JWGtIWI340}wn|@_i$Bx&Q!2UIwWE diff --git a/config/__pycache__/urls.cpython-311.pyc b/config/__pycache__/urls.cpython-311.pyc index 139db1071801d00bd7e1a167305bffd074d952f6..ccb158dc369f493f788367d62a4d54c2ef620072 100644 GIT binary patch delta 20 acmey)@tuQvIWI340}vc8`Mr@lhXnva;|4PT delta 20 acmey)@tuQvIWI340}vQ{e%i>L!vX+3#075v diff --git a/config/__pycache__/wsgi.cpython-311.pyc b/config/__pycache__/wsgi.cpython-311.pyc index 79ce690f602e05f6bfa8a8e253edcb377296b788..22d886f71eea5d95d78a7d26228a03a2f48f946b 100644 GIT binary patch delta 20 acmZ3^x}24JIWI340}vc8`Mr^Q4if-2^#!{C delta 20 acmZ3^x}24JIWI340}vQ{e%i=AhY0{N)&%ze diff --git a/core/__pycache__/__init__.cpython-311.pyc b/core/__pycache__/__init__.cpython-311.pyc index 3b7774ea363dc0bd4dc92284fe89acea2051acd3..9af217136e6a06dce507f3e5e0be74e08d3b9f01 100644 GIT binary patch delta 19 ZcmbQsIG2%oIWI340}vc8`8|<)5&$mX1#>dE1g`)9 diff --git a/core/__pycache__/admin.cpython-311.pyc b/core/__pycache__/admin.cpython-311.pyc index 5e41572949c7873f8ad5478be4973869ac513d51..fcac58e879622cf6cd22480c2aafd00e110060b2 100644 GIT binary patch delta 20 acmeBV>ty3z&dbZi00f6iesARd#{>W~X$9i| delta 20 acmeBV>ty3z&dbZi00g(yzis6H#{>W}Dg~(k diff --git a/core/__pycache__/apps.cpython-311.pyc b/core/__pycache__/apps.cpython-311.pyc index 6435d92a257f85ac41d6fd22a9e528c3da4a1ec5..23038c085d446ba3471483d0e52d3e32a755ee7e 100644 GIT binary patch delta 20 acmeBS>0#ks&dbZi00f6iesAPvWC8#&nFQzn delta 20 acmeBS>0#ks&dbZi00hRKpEhzcG64WAdITf@ diff --git a/core/__pycache__/forms.cpython-311.pyc b/core/__pycache__/forms.cpython-311.pyc index f6e5c4e3024d0f534a8b93046d15a44a0c8eeba6..eb440a2e768da904cd7932d23c59e6634efa3b9f 100644 GIT binary patch delta 20 acmX@lcAkxUIWI340}vc8`Mr_bg&6=mS_QTM delta 20 acmX@lcAkxUIWI340}!OEeA~$F!VCa6-30{z diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index 5b41fe198ce85fcf382186fd8eee2c17e98ce60c..847cdb919dcdb0f81fb7875114fee1ae24d10a6f 100644 GIT binary patch delta 20 acmZqVZsg`(&dbZi00f6iesAP1V+8;);00I! delta 20 acmZqVZsg`(&dbZi00eO=-!^iWu>t@sBm|xS diff --git a/core/__pycache__/urls.cpython-311.pyc b/core/__pycache__/urls.cpython-311.pyc index 4e4f113d309e34129cca5a1bb3778fb33b4fe2e4..71c3b9038ab06d3230f07b4603e67d107ca92f45 100644 GIT binary patch delta 86 zcmcc3bccy|IWI340}xzq`je46k+*=2H8U?IwPIq^Vl#;g3@GRW8v`q6gG+}{N9YXk a3oMEkSro6ZD1KmO;%92$2Eig8pg{nohZ%AJ delta 85 zcmcb^beoBHIWI340}w2<{FRY4k+*=AB_lsKbz<{kGw}-yDCh$l11o2PONUTL$PBg% ZEb#lUFyt^WJ} z&wqdZ?*6F1pHAKC>q|&{?Y#5Ap4V=s?#Np=zkj_hxG2AWf0x6D5|m*CMmHntGE|@n zH5h|&*t4m^1WdwS*auUgrE_1J`woOwKg_@Z?i&oPA$SlDbKi)tEOkAyCa*={Bkyngxtajoe@*u(nwUOZh$1@-xcG(9Q8Y>R9jTKO- zAZh>)8WaPM0Fyeth@xP^8o2-67l&pq&sjIVxi|KjzHllVVaYP60MA6FGBy7(0s`wy z0r_&FHuzjXeHTy!jmv<%XP#n+a#tTIwpPS8z zE32}I16dLxVq&K%q_6~V{lKGPJ%wJcBGyA47ZD2FDpSl!I8__E#I@HcvaTCvR*@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Bw^+t!kHpA?QW9JUobr_6S2OLE(gK%W+KsgEk;JYEFrK% zF%f&HM6?x}i2Y=2@oia$ShykeyYCdG6*Vx7j#**v^Pt2ZZ*d!LzxCcb + + + + {% block title %}AutoTask{% endblock %} + + + + {% block head %}{% endblock %} + + + {% block content %}{% endblock %} + + diff --git a/core/templates/core/article_detail.html b/core/templates/core/article_detail.html new file mode 100644 index 0000000..8820990 --- /dev/null +++ b/core/templates/core/article_detail.html @@ -0,0 +1,14 @@ +{% extends 'base.html' %} + +{% block title %}{{ article.title }}{% endblock %} + +{% block content %} +
+

{{ article.title }}

+

Published on {{ article.created_at|date:"F d, Y" }}

+
+
+ {{ article.content|safe }} +
+
+{% endblock %} diff --git a/core/templates/core/index.html b/core/templates/core/index.html index f4e4991..4a85b52 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -1,157 +1,56 @@ - - +{% extends 'base.html' %} +{% load static %} - - - - {{ project_name }} - {% if project_description %} - - - - {% endif %} - {% if project_image_url %} - - - {% endif %} - - - - - - -
-
-

Analyzing your requirements and generating your website…

-
- Loading… -
-

Appwizzy AI is collecting your requirements and applying the first changes.

-

This page will refresh automatically as the plan is implemented.

-

- Runtime: Django {{ django_version }} · Python {{ python_version }} — - UTC {{ current_time|date:"Y-m-d H:i:s" }} -

-
-
- Page updated: {{ current_time|date:"Y-m-d H:i:s" }} (UTC) -
-
- +
+

Wallet Balance

+
{{ wallet.balance_btc|floatformat:8 }} BTC
+
~ ${{ wallet.balance_usd|floatformat:2 }} USD
+
- \ No newline at end of file +
+

Recent Transactions

+
+ + + + + + + + + + {% for tx in transactions %} + + + + + + {% empty %} + + + + {% endfor %} + +
DescriptionAmount (BTC)Timestamp
{{ tx.description }} + {% if tx.type == 'credit' %}+{% endif %}{{ tx.amount_btc|floatformat:8 }} + {{ tx.timestamp }}
No transactions yet.
+
+
+ + + +{% endblock %} diff --git a/core/urls.py b/core/urls.py index 6299e3d..8e0d0ae 100644 --- a/core/urls.py +++ b/core/urls.py @@ -1,7 +1,7 @@ from django.urls import path -from .views import home +from .views import index urlpatterns = [ - path("", home, name="home"), + path("", index, name="index"), ] diff --git a/core/views.py b/core/views.py index c1a6d45..ff647f5 100644 --- a/core/views.py +++ b/core/views.py @@ -11,21 +11,25 @@ from .forms import TicketForm from .models import Ticket -def home(request): - """Render the landing screen with loader and environment details.""" - host_name = request.get_host().lower() - agent_brand = "AppWizzy" if host_name == "appwizzy.com" else "Flatlogic" - now = timezone.now() +def index(request): + """Render the main dashboard with wallet and transaction data.""" + # Mock data for the wallet and transactions + wallet_data = { + 'balance_btc': 0.00123456, + 'balance_usd': 50.12 + } + transactions_data = [ + {'id': 'a1b2', 'description': 'Automated Task Reward', 'amount_btc': 0.00005, 'type': 'credit', 'timestamp': '2025-10-25 10:00:00'}, + {'id': 'c3d4', 'description': 'Strategy Execution Fee', 'amount_btc': -0.000005, 'type': 'debit', 'timestamp': '2025-10-25 09:30:00'}, + {'id': 'e5f6', 'description': 'Automated Task Reward', 'amount_btc': 0.00007, 'type': 'credit', 'timestamp': '2025-10-24 18:00:00'}, + {'id': 'g7h8', 'description': 'VIP ★2 Upgrade', 'amount_btc': -0.0005, 'type': 'debit', 'timestamp': '2025-10-24 12:00:00'}, + {'id': 'i9j0', 'description': 'Initial Deposit', 'amount_btc': 0.001, 'type': 'credit', 'timestamp': '2025-10-23 20:15:00'}, + ] context = { - "project_name": "New Style", - "agent_brand": agent_brand, - "django_version": django_version(), - "python_version": platform.python_version(), - "current_time": now, - "host_name": host_name, - "project_description": os.getenv("PROJECT_DESCRIPTION", ""), - "project_image_url": os.getenv("PROJECT_IMAGE_URL", ""), + "wallet": wallet_data, + "transactions": transactions_data, + "project_name": "AutoTask", } return render(request, "core/index.html", context) diff --git a/static/css/custom.css b/static/css/custom.css new file mode 100644 index 0000000..da49097 --- /dev/null +++ b/static/css/custom.css @@ -0,0 +1,86 @@ + +:root { + --color-background: #1a1a1d; + --color-primary-accent: #00ffff; + --color-text: #c5c6c7; + --color-credit: #39ff14; + --color-debit: #ff0033; + --font-headings: 'Orbitron', sans-serif; + --font-body: 'Roboto Mono', monospace; +} + +body { + background-color: var(--color-background); + color: var(--color-text); + font-family: var(--font-body); + margin: 0; + padding: 2rem; +} + +h1, h2, h3, h4, h5 { + font-family: var(--font-headings); + color: var(--color-primary-accent); + text-shadow: 0 0 5px var(--color-primary-accent); +} + +.dashboard-container { + max-width: 960px; + margin: 0 auto; +} + +.wallet-card { + background-color: #2c2c31; + border: 1px solid var(--color-primary-accent); + border-radius: 8px; + padding: 2rem; + margin-bottom: 2rem; + box-shadow: 0 0 15px rgba(0, 255, 255, 0.2); +} + +.wallet-card h2 { + margin-top: 0; +} + +.wallet-balance-btc { + font-size: 2.5rem; + font-weight: 700; + color: var(--color-primary-accent); + text-shadow: 0 0 10px var(--color-primary-accent); +} + +.wallet-balance-usd { + font-size: 1.2rem; + color: var(--color-text); + opacity: 0.8; +} + +.transaction-table { + width: 100%; + border-collapse: collapse; + background-color: #2c2c31; + border-radius: 8px; + overflow: hidden; + box-shadow: 0 0 15px rgba(0, 255, 255, 0.1); +} + +.transaction-table th, +.transaction-table td { + padding: 1rem; + text-align: left; + border-bottom: 1px solid #444; +} + +.transaction-table th { + font-family: var(--font-headings); + color: var(--color-primary-accent); +} + +.text-credit { + color: var(--color-credit); + font-weight: 700; +} + +.text-debit { + color: var(--color-debit); + font-weight: 700; +}