Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
intoxicoder committed Sep 13, 2024
1 parent b3e5cfd commit bfe98be
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import UserProfile from "$lib/components/views/profile/UserProfile.svelte";
import CreatePostModal from "$lib/components/CreateMeme.svelte";
import Feed from "$lib/components/Feed.svelte";
import Explore from "$lib/components/Explore.svelte";
import Explore from "$lib/components/views/explore/Explore.svelte";
import {
Home as HomeIcon,
Search,
Expand All @@ -26,7 +26,7 @@
AvatarImage,
} from "$lib/components/ui/avatar";
import { Profile } from "$lib/ao/messegeFactory.svelte";
import LowerProfile from "$lib/components/LowerProfile.svelte";
import LowerProfile from "$lib/components/views/profile/LowerProfile.svelte";
export let url = "";
Expand Down
6 changes: 3 additions & 3 deletions src/lib/components/CreateMeme.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
function getExt(name: string) {
let mimeType = mime.getType(name);
let ext = mime.getExtension(mimeType);
console.log(name);
console.log(mimeType);
console.log(ext);
// console.log(name);
// console.log(mimeType);
// console.log(ext);
return ext;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/RepliesPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { Link } from "svelte-routing";
import { Button } from "$lib/components/ui/button";
import CreatePost from "$lib/components/CreateMeme.svelte";
import SwapTransactions from "$lib/components/SwapTransaction.svelte";
import SwapTransactions from "$lib/components/views/swap/SwapTransaction.svelte";
import * as Tabs from "$lib/components/ui/tabs";
export let memeId: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
TrendingUp,
} from "lucide-svelte";
import type { Meme } from "$lib/models/Meme";
import { feedPosts } from "../../stores/feedpage.store";
import { feedPosts } from "../../../../stores/feedpage.store";
import { fetchMemes } from "$lib/ao/mememaker";
import Pump from "./Pump.svelte";
import Dump from "./Dump.svelte";
import Spinner from "./Spinner.svelte";
import Pump from "../../Pump.svelte";
import Dump from "../../Dump.svelte";
import Spinner from "../../Spinner.svelte";
let memes: Meme[] = [];
let loading = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts">
import { onMount } from "svelte";
import { Avatar, AvatarFallback, AvatarImage } from "./ui/avatar";
import { Avatar, AvatarFallback, AvatarImage } from "../../ui/avatar";
import { MoreHorizontal } from "lucide-svelte";
import { currentUser } from "../../stores/profile.store";
import { currentUser } from "../../../../stores/profile.store";
import ConnectWalletButton from "$lib/components/wallet.svelte";
import { navigate } from "svelte-routing";
Expand Down
2 changes: 2 additions & 0 deletions src/lib/components/views/profile/UserProfile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
async function fetchEvents() {
eventStore.setLoading(true);
// let events = ao.getEvents();
// eventsStore.set(events);
try {
} catch (err) {
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { formatDistanceToNow } from "date-fns";
import { ArrowUpRight, ArrowDownRight } from "lucide-svelte";
import { fetchSwaps } from "$lib/ao/mememaker";
import { swapsStore } from "../../stores/pool.store";
import { swapsStore } from "../../../../stores/pool.store";
import type { Swap } from "$lib/models/Swap";
import { DECIMALS, formatNumber } from "$lib/constants";
import type { Meme } from "$lib/models/Meme";
Expand Down
3 changes: 0 additions & 3 deletions src/stores/events.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,19 @@ export interface Event {
sig: ""
}

// Define the structure of our event store
interface EventStore {
events: Event[];
loading: boolean;
error: string | null;
}

// Create the initial state
const initialState: EventStore = {
events: [],
loading: false,
error: null,
};



// Create the store
function createEventStore() {
const { subscribe, set, update } = writable<EventStore>(initialState);
Expand Down
1 change: 1 addition & 0 deletions src/stores/profile.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const anon = {
Name: "anon",
Creator: "anon",
}

export const currentUser = writable<Profile>(anon);
export const profileMemes = writable<Meme[]>([]);

Expand Down

0 comments on commit bfe98be

Please sign in to comment.