<template>
  <QuickNav />

  <!-- CONTENT -->
  <section id="Content" class="p-6 pb-24">
    <!-- Breadcrumb -->
    <div class="mb-8">
      <!-- Back -->
      <div class="text-lg text-center font-light relative px-7">
        <h1
          class="text-lg text-center px-2 py-1 absolute -left-2 -top-1"
          @click="$router.back()"
        >
          <fa icon="chevron-left" class="fa-fw"></fa>
        </h1>
      </div>

      <!-- Heading -->
      <h1 id="ViewHeading" class="text-4xl text-center font-light pt-4 mb-8">
        Notification Help
      </h1>
    </div>

    <div>
      <p>Here are things to get notifications working.</p>

      <h2 class="text-xl font-semibold">Test</h2>
      <p>Somehow call the service-worker self.showNotification</p>

      <h2 class="text-xl font-semibold">Check OS-level permissions</h2>
      <div>
        Walk-throughs & screenshots, maybe for all combinations of OS &
        browsers.
        <div>
          <h3 class="text-lg font-semibold">Mobile Phone - Apple iOS</h3>
          <div>
            Notifications require iOS 16.4 or higher. To check your iOS version,
            go to Settings > General > About > Software Version.
          </div>

          <h3 class="text-lg font-semibold">Mobile Phone - Google Android</h3>
          <div>See the browser section.</div>

          <h3 class="text-lg font-semibold">Desktop - Mac</h3>
          <div>Requires Mac OS 13.</div>
        </div>
      </div>

      <h2 class="text-xl font-semibold">Check browser-level permissions</h2>
      <p>Walk-throughs & screenshots for browser settings</p>
      <div>
        <div>
          <h3 class="text-lg font-semibold">Mobile Phone - Apple iOS</h3>
          <div>Make sure your OS (above) supports it.</div>

          <h3 class="text-lg font-semibold">Mobile Phone - Android</h3>
          <div>
            Chrome requires version 50. Hold icon, select "App info", and enable
            notifications.
          </div>
        </div>
      </div>

      <h2 class="text-xl font-semibold">Explain full reset to start again</h2>
      <p>
        Walk-throughs for clearing everything & subscribing anew to get a
        message
      </p>

      <h2 class="text-xl font-semibold">Auto-detection</h2>
      <p>Show results of auto-detection whether they're turned on</p>
    </div>
  </section>
</template>
<script lang="ts">
import { Component, Vue } from "vue-facing-decorator";
import QuickNav from "@/components/QuickNav.vue";

interface Notification {
  group: string;
  type: string;
  title: string;
  text: string;
}

@Component({ components: { QuickNav } })
export default class HelpNotificationsView extends Vue {
  $notify!: (notification: Notification, timeout?: number) => void;
}
</script>
