// Mock data for Dashboard

export const trafficData = {
  labels: ['14', '15', '16', '17', '18', '19', '20'],
  datasets: [
    {
      name: 'Background jobs',
      values: [1200, 800, 1500, 2000, 1800, 900, 2200],
      color: '#e5e7eb',
    },
    {
      name: 'Requests',
      values: [2000, 1500, 3500, 4500, 3200, 1200, 3800],
      color: '#93c5fd',
    },
    {
      name: 'Avg. Session',
      values: [800, 600, 1200, 1600, 1100, 500, 1400],
      color: '#3b82f6',
    },
  ],
}

export const sessionsData = {
  labels: ['Active', 'Idle', 'New'],
  datasets: [
    {
      name: 'Sessions',
      values: [65, 25, 10],
    },
  ],
}

export const cpuData = {
  labels: ['00:00', '04:00', '08:00', '12:00', '16:00', '20:00', '24:00'],
  datasets: [
    {
      name: 'CPU %',
      values: [25, 30, 55, 70, 65, 45, 30],
    },
  ],
}

export const ramData = {
  labels: ['Used', 'Free', 'Cached'],
  datasets: [
    {
      name: 'RAM',
      values: [45, 30, 25],
    },
  ],
}

export const diskData = {
  labels: ['Used', 'Free'],
  datasets: [
    {
      name: 'Disk',
      values: [62, 38],
    },
  ],
}

export const networkData = {
  labels: ['00:00', '04:00', '08:00', '12:00', '16:00', '20:00', '24:00'],
  datasets: [
    {
      name: 'Download',
      values: [100, 120, 250, 400, 350, 280, 200],
    },
    {
      name: 'Upload',
      values: [50, 60, 120, 180, 160, 140, 100],
    },
  ],
}

export const systemInfo = {
  osVersion: 'Alpine Linux 3.19',
  incusVersion: 'Incus 6.0 LTS',
  kernelVersion: '6.6.30-0-lts',
  imageVersion: 'v3.2.1',
  distrobuilderVersion: '3.0',
}

export const statsOverview = {
  totalSites: 47,
  activeSites: 42,
  stoppedSites: 5,
  totalUsers: 156,
}

export const dashboardStats = {
  sessions: { value: 744, trend: 24, label: 'Sessions' },
  conversionRate: { value: 278, trend: 12, label: 'Conversion rate' },
  pageViews: { value: 1924, trend: 10, label: 'Page Views' },
}

export const planInfo = {
  current: {
    name: 'Basic',
    price: 399,
    currency: 'RUB',
    remaining: '84 days remaining',
  },
  next: {
    name: 'Essential',
    price: 999,
    currency: 'RUB',
    period: '1 Year plan',
  },
}

export const osInfo = {
  vendor: 'Alpine Linux',
  version: 'Alpine Linux 3.19 (x86_64)',
  architecture: '64-bit',
  language: 'English',
  servicesAndSoftware: 'Incus Container Manager',
  isISOImage: true,
}

export const cpuDailyUsage = {
  percent: 72.84,
  cycleResets: '6:84 hours',
  status: 'Good',
}

export const siteInfo = {
  creator: {
    name: 'Admin',
    email: 'admin@jeycloud.com',
  },
  createdOn: 'Dec 22, 2024',
  lastDeployed: 'Jan 14, 2025',
}

export const installedApps = [
  {
    name: 'Appveyor',
    version: '1.0 Oldest',
    lastUpdate: '19 July 2024, 10:30 GMT +5:30',
    plans: [
      { name: 'Basic', price: 99 },
      { name: 'Standard', price: 149 },
      { name: 'Premium', price: 390 },
    ],
  },
]

export const serverInfo = {
  ip: '118.24.67.82',
  location: 'Moscow, Russia',
  cpu: 'CPU / 8GB Memory',
  storage: '100 GB Storage',
  os: 'Alpine Linux 3.19',
}
