Skip to content

Commit 2980652

Browse files
committed
feat(traffic): implement standalone traffic analysis page with IndexedDB storage
1 parent cecf931 commit 2980652

File tree

16 files changed

+1653
-795
lines changed

16 files changed

+1653
-795
lines changed

components/DataUsageTable.vue

Lines changed: 0 additions & 684 deletions
This file was deleted.

components/MobileBottomNav.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ onMounted(() => {
3636
>
3737
<!-- Backdrop blur container -->
3838
<div
39-
class="mx-2 mb-2 overflow-hidden rounded-2xl shadow-lg backdrop-blur-[12px]"
39+
class="mx-1 mb-2 overflow-hidden rounded-2xl shadow-lg backdrop-blur-[12px] sm:mx-2"
4040
:style="{
4141
border:
4242
'1px solid color-mix(in oklch, var(--color-base-content) 10%, transparent)',
4343
background:
4444
'color-mix(in oklch, var(--color-base-300) 90%, transparent)',
4545
}"
4646
>
47-
<div class="grid h-16 grid-cols-6">
47+
<div class="grid h-16 w-full grid-cols-7">
4848
<NuxtLink
4949
v-for="nav in navItems"
5050
:key="nav.href"
@@ -90,7 +90,7 @@ onMounted(() => {
9090
<!-- Visual label with fade animation -->
9191
<span
9292
aria-hidden="true"
93-
class="relative z-10 text-[10px] font-medium transition-all duration-300 ease-in-out group-hover:opacity-100"
93+
class="relative z-10 truncate px-0.5 text-[9px] font-medium transition-all duration-300 ease-in-out group-hover:opacity-100 sm:text-[10px]"
9494
:class="isActive(nav.href) ? 'opacity-100' : 'opacity-80'"
9595
>
9696
{{ nav.name }}

components/Sidebar.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
import {
3+
IconChartAreaLine,
34
IconChevronsLeft,
45
IconChevronsRight,
56
IconFileStack,
@@ -20,6 +21,7 @@ const navItems = computed(() => [
2021
{ href: '/proxies', name: t('proxies'), icon: IconGlobe },
2122
{ href: '/rules', name: t('rules'), icon: IconRuler },
2223
{ href: '/connections', name: t('connections'), icon: IconNetwork },
24+
{ href: '/traffic', name: t('dataUsage'), icon: IconChartAreaLine },
2325
{ href: '/logs', name: t('logs'), icon: IconFileStack },
2426
{ href: '/config', name: t('config'), icon: IconSettings },
2527
])

0 commit comments

Comments
 (0)