Update dashboard navigation and login redirect
- Modify login route to redirect to home index instead of dashboard - Refresh dashboard sidebar icons with new SVG designs - Remove Analytics sidebar item from dashboard template
This commit is contained in:
2
app.py
2
app.py
@@ -391,7 +391,7 @@ def login():
|
|||||||
#flask.flash('Logged in successfully.')
|
#flask.flash('Logged in successfully.')
|
||||||
|
|
||||||
next = request.args.get('next')
|
next = request.args.get('next')
|
||||||
return redirect(next or url_for('dashboard'))
|
return redirect(next or url_for('home.index'))
|
||||||
|
|
||||||
@app.route('/signup', methods=['GET', 'POST'])
|
@app.route('/signup', methods=['GET', 'POST'])
|
||||||
def signup():
|
def signup():
|
||||||
|
|||||||
@@ -25,41 +25,32 @@
|
|||||||
class="flex items-center gap-3 rounded-lg px-3 py-2 text-gray-500 transition-all hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-50 cursor-pointer"
|
class="flex items-center gap-3 rounded-lg px-3 py-2 text-gray-500 transition-all hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-50 cursor-pointer"
|
||||||
href="{{ url_for('home.index') }}"><svg xmlns="http://www.w3.org/2000/svg" width="24"
|
href="{{ url_for('home.index') }}"><svg xmlns="http://www.w3.org/2000/svg" width="24"
|
||||||
height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
||||||
stroke-linecap="round" stroke-linejoin="round" class="h-4 w-4" data-id="14">
|
stroke-linecap="round" stroke-linejoin="round" class="h-4 w-4" data-id="20">
|
||||||
<path d="m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
|
<path d="M3 3v18h18"></path>
|
||||||
<polyline points="9 22 9 12 15 12 15 22"></polyline>
|
<path d="m19 9-5 5-4-4-3 3"></path>
|
||||||
</svg>
|
</svg>
|
||||||
Home
|
Home
|
||||||
</a><a
|
</a><a
|
||||||
class="flex items-center gap-3 rounded-lg px-3 py-2 text-gray-500 transition-all hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-50 cursor-pointer"
|
class="flex items-center gap-3 rounded-lg px-3 py-2 text-gray-500 transition-all hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-50 cursor-pointer"
|
||||||
data-id="15" hx-get="{{ url_for('dashboard_http_functions') }}" hx-target="#container"
|
data-id="15" hx-get="{{ url_for('dashboard_http_functions') }}" hx-target="#container"
|
||||||
hx-swap="innerHTML" hx-push-url="true"><svg xmlns="http://www.w3.org/2000/svg" width="24"
|
hx-swap="innerHTML" hx-push-url="true"><svg xmlns="http://www.w3.org/2000/svg" width="18"
|
||||||
height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
height="18" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"
|
||||||
stroke-linecap="round" stroke-linejoin="round" class="h-4 w-4" data-id="16">
|
class="size-6">
|
||||||
<path d="m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"></path>
|
<path stroke-linecap="round" stroke-linejoin="round"
|
||||||
|
d="m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z" />
|
||||||
</svg>
|
</svg>
|
||||||
|
|
||||||
HTTP
|
HTTP
|
||||||
</a><a
|
</a><a
|
||||||
class="flex items-center gap-3 rounded-lg px-3 py-2 text-gray-500 transition-all hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-50 cursor-pointer"
|
class="flex items-center gap-3 rounded-lg px-3 py-2 text-gray-500 transition-all hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-50 cursor-pointer"
|
||||||
data-id="17" hx-get="{{ url_for('timer.overview') }}" hx-target="#container" hx-swap="innerHTML"
|
data-id="17" hx-get="{{ url_for('timer.overview') }}" hx-target="#container" hx-swap="innerHTML"
|
||||||
hx-push-url="true"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
|
hx-push-url="true"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"
|
||||||
viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
|
||||||
stroke-linecap="round" stroke-linejoin="round" class="h-4 w-4" data-id="18">
|
<path stroke-linecap="round" stroke-linejoin="round"
|
||||||
<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path>
|
d="M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" />
|
||||||
<circle cx="9" cy="7" r="4"></circle>
|
|
||||||
<path d="M22 21v-2a4 4 0 0 0-3-3.87"></path>
|
|
||||||
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
|
|
||||||
</svg>
|
</svg>
|
||||||
|
|
||||||
Timer
|
Timer
|
||||||
</a><a
|
|
||||||
class="flex items-center gap-3 rounded-lg px-3 py-2 text-gray-500 transition-all hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-50 cursor-pointer"
|
|
||||||
data-id="19" href="#"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
|
|
||||||
viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
|
||||||
stroke-linecap="round" stroke-linejoin="round" class="h-4 w-4" data-id="20">
|
|
||||||
<path d="M3 3v18h18"></path>
|
|
||||||
<path d="m19 9-5 5-4-4-3 3"></path>
|
|
||||||
</svg>
|
|
||||||
Analytics
|
|
||||||
</a></nav>
|
</a></nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user