From 4dbef3fcd7a14437d55c555cf10d50de8e50d7d1 Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Fri, 9 Dec 2022 11:57:12 +0900
Subject: feat: Move everything out of $lib

---
 .../src/routes/(main)/(app)/settings/+page.svelte  | 106 +++++++++++----------
 1 file changed, 55 insertions(+), 51 deletions(-)

(limited to 'code/app/src/routes/(main)/(app)/settings/+page.svelte')

diff --git a/code/app/src/routes/(main)/(app)/settings/+page.svelte b/code/app/src/routes/(main)/(app)/settings/+page.svelte
index 1f0cc67..1c9a910 100644
--- a/code/app/src/routes/(main)/(app)/settings/+page.svelte
+++ b/code/app/src/routes/(main)/(app)/settings/+page.svelte
@@ -1,5 +1,5 @@
 <script lang="ts">
-    import { Input, Button, Switch } from "$lib/components";
+    import {Input, Button, Switch} from "$components";
 </script>
 
 <div class="relative mx-auto max-w-4xl md:px-8 xl:px-0">
@@ -13,9 +13,9 @@
                 <div class="lg:hidden">
                     <label for="selected-tab" class="sr-only">Select a tab</label>
                     <select
-                        id="selected-tab"
-                        name="selected-tab"
-                        class="mt-1 block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-purple-500 focus:outline-none focus:ring-purple-500 sm:text-sm"
+                            id="selected-tab"
+                            name="selected-tab"
+                            class="mt-1 block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-purple-500 focus:outline-none focus:ring-purple-500 sm:text-sm"
                     >
                         <option selected>General</option>
 
@@ -34,38 +34,39 @@
                     <div class="border-b border-gray-200">
                         <nav class="-mb-px flex space-x-8">
                             <!-- Current: "border-purple-500 text-purple-600", Default: "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700" -->
-                            <a href="#" class="border-purple-500 text-purple-600 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
-                                >General</a
+                            <a href="#"
+                               class="border-purple-500 text-purple-600 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
+                            >General</a
                             >
 
                             <a
-                                href="#"
-                                class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
-                                >Password</a
+                                    href="#"
+                                    class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
+                            >Password</a
                             >
 
                             <a
-                                href="#"
-                                class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
-                                >Notifications</a
+                                    href="#"
+                                    class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
+                            >Notifications</a
                             >
 
                             <a
-                                href="#"
-                                class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
-                                >Plan</a
+                                    href="#"
+                                    class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
+                            >Plan</a
                             >
 
                             <a
-                                href="#"
-                                class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
-                                >Billing</a
+                                    href="#"
+                                    class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
+                            >Billing</a
                             >
 
                             <a
-                                href="#"
-                                class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
-                                >Team Members</a
+                                    href="#"
+                                    class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"
+                            >Team Members</a
                             >
                         </nav>
                     </div>
@@ -87,9 +88,9 @@
                                     <span class="flex-grow">Chelsea Hagon</span>
                                     <span class="ml-4 flex-shrink-0">
                                         <button
-                                            type="button"
-                                            class="rounded-md bg-white font-medium text-purple-600 hover:text-purple-500 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2"
-                                            >Update</button
+                                                type="button"
+                                                class="rounded-md bg-white font-medium text-purple-600 hover:text-purple-500 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2"
+                                        >Update</button
                                         >
                                     </span>
                                 </dd>
@@ -99,22 +100,22 @@
                                 <dd class="mt-1 flex text-sm text-gray-900 sm:col-span-2 sm:mt-0">
                                     <span class="flex-grow">
                                         <img
-                                            class="h-8 w-8 rounded-full"
-                                            src="https://images.unsplash.com/photo-1550525811-e5869dd03032?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"
-                                            alt=""
+                                                class="h-8 w-8 rounded-full"
+                                                src="https://images.unsplash.com/photo-1550525811-e5869dd03032?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"
+                                                alt=""
                                         />
                                     </span>
                                     <span class="ml-4 flex flex-shrink-0 items-start space-x-4">
                                         <button
-                                            type="button"
-                                            class="rounded-md bg-white font-medium text-purple-600 hover:text-purple-500 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2"
-                                            >Update</button
+                                                type="button"
+                                                class="rounded-md bg-white font-medium text-purple-600 hover:text-purple-500 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2"
+                                        >Update</button
                                         >
                                         <span class="text-gray-300" aria-hidden="true">|</span>
                                         <button
-                                            type="button"
-                                            class="rounded-md bg-white font-medium text-purple-600 hover:text-purple-500 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2"
-                                            >Remove</button
+                                                type="button"
+                                                class="rounded-md bg-white font-medium text-purple-600 hover:text-purple-500 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2"
+                                        >Remove</button
                                         >
                                     </span>
                                 </dd>
@@ -125,9 +126,9 @@
                                     <span class="flex-grow">chelsea.hagon@example.com</span>
                                     <span class="ml-4 flex-shrink-0">
                                         <button
-                                            type="button"
-                                            class="rounded-md bg-white font-medium text-purple-600 hover:text-purple-500 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2"
-                                            >Update</button
+                                                type="button"
+                                                class="rounded-md bg-white font-medium text-purple-600 hover:text-purple-500 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2"
+                                        >Update</button
                                         >
                                     </span>
                                 </dd>
@@ -138,9 +139,9 @@
                                     <span class="flex-grow">Human Resources Manager</span>
                                     <span class="ml-4 flex-shrink-0">
                                         <button
-                                            type="button"
-                                            class="rounded-md bg-white font-medium text-purple-600 hover:text-purple-500 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2"
-                                            >Update</button
+                                                type="button"
+                                                class="rounded-md bg-white font-medium text-purple-600 hover:text-purple-500 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2"
+                                        >Update</button
                                         >
                                     </span>
                                 </dd>
@@ -152,7 +153,8 @@
                 <div class="mt-10 divide-y divide-gray-200">
                     <div class="space-y-1">
                         <h3 class="text-lg font-medium leading-6 text-gray-900">Account</h3>
-                        <p class="max-w-2xl text-sm text-gray-500">Manage how information is displayed on your account.</p>
+                        <p class="max-w-2xl text-sm text-gray-500">Manage how information is displayed on your
+                            account.</p>
                     </div>
                     <div class="mt-6">
                         <dl class="divide-y divide-gray-200">
@@ -162,9 +164,9 @@
                                     <span class="flex-grow">English</span>
                                     <span class="ml-4 flex-shrink-0">
                                         <button
-                                            type="button"
-                                            class="rounded-md bg-white font-medium text-purple-600 hover:text-purple-500 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2"
-                                            >Update</button
+                                                type="button"
+                                                class="rounded-md bg-white font-medium text-purple-600 hover:text-purple-500 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2"
+                                        >Update</button
                                         >
                                     </span>
                                 </dd>
@@ -175,22 +177,24 @@
                                     <span class="flex-grow">DD-MM-YYYY</span>
                                     <span class="ml-4 flex flex-shrink-0 items-start space-x-4">
                                         <button
-                                            type="button"
-                                            class="rounded-md bg-white font-medium text-purple-600 hover:text-purple-500 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2"
-                                            >Update</button
+                                                type="button"
+                                                class="rounded-md bg-white font-medium text-purple-600 hover:text-purple-500 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2"
+                                        >Update</button
                                         >
                                         <span class="text-gray-300" aria-hidden="true">|</span>
                                         <button
-                                            type="button"
-                                            class="rounded-md bg-white font-medium text-purple-600 hover:text-purple-500 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2"
-                                            >Remove</button
+                                                type="button"
+                                                class="rounded-md bg-white font-medium text-purple-600 hover:text-purple-500 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2"
+                                        >Remove</button
                                         >
                                     </span>
                                 </dd>
                             </div>
                             <div class="py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5 sm:pt-5">
-                                <dt class="text-sm font-medium text-gray-500" id="timezone-option-label">Automatic timezone</dt>
-                                <Switch />
+                                <dt class="text-sm font-medium text-gray-500" id="timezone-option-label">Automatic
+                                    timezone
+                                </dt>
+                                <Switch/>
                             </div>
                         </dl>
                     </div>
-- 
cgit v1.3

