Skip to content

Commit

Permalink
fix to incorrect formating to ensure linter passes
Browse files Browse the repository at this point in the history
  • Loading branch information
bukhosi-eugene-mpande committed Jun 1, 2024
1 parent 8c9218b commit 35791f3
Show file tree
Hide file tree
Showing 27 changed files with 23 additions and 683 deletions.
5 changes: 2 additions & 3 deletions src/client/src/lib/components/admin/+Activities.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<script lang="ts">
import { Timeline, TimelineItem, Button } from 'flowbite-svelte';
import { CalendarWeekSolid } from 'flowbite-svelte-icons';
import { ArrowRightOutline } from 'flowbite-svelte-icons';
import { Timeline, TimelineItem } from 'flowbite-svelte';
const activities = [
{
title: 'Budget Planning Meeting',
Expand Down
4 changes: 2 additions & 2 deletions src/client/src/lib/components/admin/+Admins.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Tabs, TabItem, Button } from 'flowbite-svelte';
import { Button } from 'flowbite-svelte';
const admins = [
{
name: 'Katlego Tau',
Expand Down Expand Up @@ -48,7 +48,7 @@

<section class="container mx-auto my-2 px-4">
<div class="flex items-center overflow-x-auto whitespace-nowrap py-4">
<a href="#" class="text-gray-600 dark:text-gray-200">
<a href="/" class="text-gray-600 dark:text-gray-200">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5"
Expand Down
4 changes: 2 additions & 2 deletions src/client/src/lib/components/admin/+Announcements.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

<div class="flex flex-1 flex-col justify-between">
<div class="border-s border-gray-900/10 p-4 sm:border-l-transparent sm:p-6">
<a href="#">
<a href="/">
<h3 class="font-bold uppercase text-gray-900">
{announcement.heading}
</h3>
Expand All @@ -60,7 +60,7 @@

<div class="sm:flex sm:items-end sm:justify-end">
<a
href="#"
href="/"
class="block bg-green-400 px-5 py-3 text-center text-xs font-bold uppercase text-gray-900 transition hover:bg-yellow-400"
>
Read Full Announcement
Expand Down
6 changes: 2 additions & 4 deletions src/client/src/lib/components/admin/+Lectures.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<script lang="ts">
import Lecturers from '$lib/components/admin/+Lectures.svelte';
import Students from '$lib/components/admin/+Students.svelte';
import { Tabs, TabItem, Button } from 'flowbite-svelte';
import { Button } from 'flowbite-svelte';
const lecturers = [
{
name: 'Azola Lukhozi',
Expand Down Expand Up @@ -50,7 +48,7 @@

<section class="container mx-auto my-2 px-4">
<div class="flex items-center overflow-x-auto whitespace-nowrap py-4">
<a href="#" class="text-gray-600 dark:text-gray-200">
<a href="/" class="text-gray-600 dark:text-gray-200">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5"
Expand Down
41 changes: 0 additions & 41 deletions src/client/src/lib/components/admin/+Notifications.svelte

This file was deleted.

5 changes: 1 addition & 4 deletions src/client/src/lib/components/admin/+Organisation.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<script lang="ts">
import SideBar from '$lib/components/utils/+SideBar.svelte';
import Profile from '$lib/components/admin/+Profile.svelte';
import adjustments from '$lib/images/adjustments.svg';
import { Tabs, TabItem, Button } from 'flowbite-svelte';
import { Button } from 'flowbite-svelte';
const organisation = {
organisationname: 'University of Pretoria',
module: [
Expand Down
5 changes: 1 addition & 4 deletions src/client/src/lib/components/admin/+Profile.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<script lang="ts">
import SideBar from '$lib/components/utils/+SideBar.svelte';
import Profile from '$lib/components/admin/+Profile.svelte';
import adjustments from '$lib/images/adjustments.svg';
import { Tabs, TabItem, Button } from 'flowbite-svelte';
import { Button } from 'flowbite-svelte';
const user = {
name: 'Eugene',
email: 'eugene.mpande@tuks.co.za',
Expand Down
4 changes: 2 additions & 2 deletions src/client/src/lib/components/admin/+Students.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Tabs, TabItem, Button } from 'flowbite-svelte';
import { Button } from 'flowbite-svelte';
const students = [
{
name: 'Azola Lukhozi',
Expand Down Expand Up @@ -48,7 +48,7 @@

<section class="container mx-auto my-2 px-4">
<div class="flex items-center overflow-x-auto whitespace-nowrap py-4">
<a href="#" class="text-gray-600 dark:text-gray-200">
<a href="/" class="text-gray-600 dark:text-gray-200">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<script>
import { Heading, Span } from 'flowbite-svelte';
import Apple from '$lib/images/apple.svg';
import Google from '$lib/images/google.svg';
import { goto } from '$app/navigation';
import { Input, Label, ButtonGroup, Button, Checkbox, A } from 'flowbite-svelte';
import { Input, Label, Button, A } from 'flowbite-svelte';
import '@fontsource/roboto';
// Function to store the access token in local storage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import Apple from '$lib/images/apple.svg';
import Google from '$lib/images/google.svg';
import { goto } from '$app/navigation';
import { Input, Label, Radio, Button, Checkbox, A } from 'flowbite-svelte';
import { Input, Label, Button, Checkbox, A } from 'flowbite-svelte';
import '@fontsource/roboto';
// Function to store the access token in local storage
Expand Down
37 changes: 0 additions & 37 deletions src/client/src/lib/components/utils/+AuroraBackground.svelte

This file was deleted.

7 changes: 0 additions & 7 deletions src/client/src/lib/components/utils/cn.ts

This file was deleted.

18 changes: 0 additions & 18 deletions src/client/src/routes/activities/+page.ts
Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
export async function load({ page, fetch, session, context }) {
// Fetch some data here. For example:
// const res = await fetch('/api/some-endpoint');
// const data = await res.json();
// if (res.ok) {
// return {
// props: {
// data
// }
// };
// } else {
// // If there was an error, you can return an error status and message
// return {
// status: res.status,
// error: new Error(`Could not load data: ${data.message}`)
// };
// }
}
18 changes: 0 additions & 18 deletions src/client/src/routes/announcements/+page.ts
Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
export async function load({ page, fetch, session, context }) {
// Fetch some data here. For example:
// const res = await fetch('/api/some-endpoint');
// const data = await res.json();
// if (res.ok) {
// return {
// props: {
// data
// }
// };
// } else {
// // If there was an error, you can return an error status and message
// return {
// status: res.status,
// error: new Error(`Could not load data: ${data.message}`)
// };
// }
}
19 changes: 0 additions & 19 deletions src/client/src/routes/demo/+page.svelte

This file was deleted.

Empty file.
18 changes: 0 additions & 18 deletions src/client/src/routes/lecturers/+page.ts
Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
export async function load({ page, fetch, session, context }) {
// Fetch some data here. For example:
// const res = await fetch('/api/some-endpoint');
// const data = await res.json();
// if (res.ok) {
// return {
// props: {
// data
// }
// };
// } else {
// // If there was an error, you can return an error status and message
// return {
// status: res.status,
// error: new Error(`Could not load data: ${data.message}`)
// };
// }
}
18 changes: 0 additions & 18 deletions src/client/src/routes/organisation/+page.ts
Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
export async function load({ page, fetch, session, context }) {
// Fetch some data here. For example:
// const res = await fetch('/api/some-endpoint');
// const data = await res.json();
// if (res.ok) {
// return {
// props: {
// data
// }
// };
// } else {
// // If there was an error, you can return an error status and message
// return {
// status: res.status,
// error: new Error(`Could not load data: ${data.message}`)
// };
// }
}
18 changes: 0 additions & 18 deletions src/client/src/routes/profile/+page.ts
Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
export async function load({ page, fetch, session, context }) {
// Fetch some data here. For example:
// const res = await fetch('/api/some-endpoint');
// const data = await res.json();
// if (res.ok) {
// return {
// props: {
// data
// }
// };
// } else {
// // If there was an error, you can return an error status and message
// return {
// status: res.status,
// error: new Error(`Could not load data: ${data.message}`)
// };
// }
}
18 changes: 0 additions & 18 deletions src/client/src/routes/settings/+page.ts
Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
export async function load({ page, fetch, session, context }) {
// Fetch some data here. For example:
// const res = await fetch('/api/some-endpoint');
// const data = await res.json();
// if (res.ok) {
// return {
// props: {
// data
// }
// };
// } else {
// // If there was an error, you can return an error status and message
// return {
// status: res.status,
// error: new Error(`Could not load data: ${data.message}`)
// };
// }
}
2 changes: 2 additions & 0 deletions src/client/src/routes/signin/+page.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

// Mock sign-in function
async function signIn(email, password) {
console.log(email);
console.log(password);
// In a real application, you would send these credentials to your server
// and get an access token in response. Here we're just generating a mock token.
const mockToken = 'mocktoken12345678910';
Expand Down
2 changes: 0 additions & 2 deletions src/client/src/routes/signin/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<script lang="ts">
import LeftSideImage from '$lib/components/authentication/+LeftSideImage.svelte';
import SignInForm from '$lib/components/authentication/+SignInForm.svelte';
import AuroraBackground from '$lib/components/utils/+AuroraBackground.svelte';
let name = 'World';
</script>

<main>
Expand Down
5 changes: 5 additions & 0 deletions src/client/src/routes/signup/+page.server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/** @type {import('./$types').Actions} */
// Mock sign-in function
async function signUp(name, email, password, org_name, image_file) {
console.log(name);
console.log(email);
console.log(password);
console.log(org_name);
console.log(image_file.name);
// In a real application, you would send these credentials to your server
// and get an access token in response. Here we're just generating a mock token.
const mockToken = 'mocktoken12345678910';
Expand Down
2 changes: 0 additions & 2 deletions src/client/src/routes/signup/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<script lang="ts">
import LeftSideImage from '$lib/components/authentication/+LeftSideImage.svelte';
import SignUpForm from '$lib/components/authentication/+SignUpForm.svelte';
import AuroraBackground from '$lib/components/utils/+AuroraBackground.svelte';
let name = 'World';
</script>

<main>
Expand Down
18 changes: 0 additions & 18 deletions src/client/src/routes/students/+page.ts
Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
export async function load({ page, fetch, session, context }) {
// Fetch some data here. For example:
// const res = await fetch('/api/some-endpoint');
// const data = await res.json();
// if (res.ok) {
// return {
// props: {
// data
// }
// };
// } else {
// // If there was an error, you can return an error status and message
// return {
// status: res.status,
// error: new Error(`Could not load data: ${data.message}`)
// };
// }
}
Loading

0 comments on commit 35791f3

Please sign in to comment.