Skip to content

Commit

Permalink
chore: Refactoring Milestones
Browse files Browse the repository at this point in the history
* chore: Refactor Milestone type

* chore: Refactor ThemeToggle
  • Loading branch information
kenowi-dev authored Sep 6, 2023
1 parent 7e6b644 commit 8fc3997
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/sidebar/SidebarBottom.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import SidebarLink from "$lib/components/sidebar/SidebarLink.svelte";
import ThemeToggle from "$lib/components/ThemeToggle.svelte";
import ThemeToggle from "$lib/components/sidebar/ThemeToggle.svelte";
</script>

<div class="absolute bottom-0 left-0 justify-center p-4 space-x-4 w-full flex bg-white dark:bg-gray-800 z-20">
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/routes/milestones/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import type {PageData} from "./$types";
import type {Milestone} from "./+page";
import type {Milestone} from "./milestone";
import Icon from "$lib/components/Icon.svelte";
export let data: PageData;
Expand Down
39 changes: 1 addition & 38 deletions src/routes/milestones/+page.ts
Original file line number Diff line number Diff line change
@@ -1,42 +1,5 @@
import type { PageLoad } from './$types';

export type Milestone = {
url: string,
html_url: string,
labels_url: string,
id: number,
node_id: string,
number: number,
title: string,
description: string,
creator: {
login: string,
id: number,
node_id: string,
avatar_url: string,
gravatar_id: string,
url: string,
html_url: string,
followers_url: string,
following_url: string,
gists_url: string,
starred_url: string,
subscriptions_url: string,
organizations_url: string,
repos_url: string,
events_url: string,
received_events_url: string,
type: string,
site_admin: boolean
},
open_issues: number,
closed_issues: number,
state: string,
created_at: string,
updated_at: string,
due_on: string,
closed_at: string
}
import type {Milestone} from "./milestone.ts";


export const load: PageLoad = async ({fetch}) => ({
Expand Down
37 changes: 37 additions & 0 deletions src/routes/milestones/milestone.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
export type Milestone = {
url: string,
html_url: string,
labels_url: string,
id: number,
node_id: string,
number: number,
title: string,
description: string,
creator: {
login: string,
id: number,
node_id: string,
avatar_url: string,
gravatar_id: string,
url: string,
html_url: string,
followers_url: string,
following_url: string,
gists_url: string,
starred_url: string,
subscriptions_url: string,
organizations_url: string,
repos_url: string,
events_url: string,
received_events_url: string,
type: string,
site_admin: boolean
},
open_issues: number,
closed_issues: number,
state: string,
created_at: string,
updated_at: string,
due_on: string,
closed_at: string
}

0 comments on commit 8fc3997

Please sign in to comment.