Skip to content

Commit

Permalink
fix: use icons from carbon-icons-svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechsimetka committed Jan 22, 2024
1 parent d731921 commit 92ce572
Show file tree
Hide file tree
Showing 91 changed files with 151 additions and 779 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
},
"devDependencies": {
"@bonosoft/sveltekit-qrcode": "^0.0.3",
"@fontsource/source-sans-pro": "^5.0.4",
"@multiformats/multiaddr": "^12.1.3",
"@noble/ciphers": "^0.4.0",
"@noble/hashes": "^1.3.2",
Expand All @@ -39,6 +38,7 @@
"@waku/message-encryption": "^0.0.22",
"@waku/sdk": "^0.0.20",
"@waku/utils": "^0.0.12",
"carbon-icons-svelte": "^12.4.2",
"copy-to-clipboard": "^3.3.3",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
Expand Down
15 changes: 8 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 3 additions & 8 deletions src/lib/components/authenticated-only.svelte
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
<script lang="ts">
import routes from '$lib/routes'
import { ChatBot, Login, UserFollow } from 'carbon-icons-svelte'
import type { HDNodeWallet } from 'ethers/lib.commonjs'
import { profile } from '$lib/stores/profile'
import { walletStore } from '$lib/stores/wallet'
import { goto } from '$app/navigation'
import routes from '$lib/routes'
import Button from '$lib/components/button.svelte'
import Container from '$lib/components/container.svelte'
import Loading from '$lib/components/loading.svelte'
import ChatBot from '$lib/components/icons/chat-bot.svelte'
import Login from '$lib/components/icons/login.svelte'
import UserFollow from '$lib/components/icons/user-follow.svelte'
import type { HDNodeWallet } from 'ethers/lib.commonjs'
$: wallet = $walletStore.wallet
interface $$Slots {
Expand Down
5 changes: 2 additions & 3 deletions src/lib/components/chat-object-invite.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script lang="ts">
import { CheckmarkFilled, Checkmark, Pending } from 'carbon-icons-svelte'
import adapters from '$lib/adapters'
import routes from '$lib/routes'
import type { InstallMessage, WithMeta } from '$lib/stores/chat'
Expand All @@ -7,14 +9,11 @@
import Button from './button.svelte'
import ChatMessage from './chat-message.svelte'
import Container from './container.svelte'
import CheckmarkFilled from './icons/checkmark-filled.svelte'
import Loading from './loading.svelte'
import ObjectInstallInfo from './object-install-info.svelte'
import { goto } from '$app/navigation'
import { hashString } from '$lib/adapters/waku/crypto'
import Checkmark from './icons/checkmark.svelte'
import Pending from './icons/pending.svelte'
//am I the sender of this message?
export let myMessage = false
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/dicebear.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script lang="ts">
import User from './icons/user.svelte'
import { User } from 'carbon-icons-svelte'
export let seed: string
export let size = 48
export let style = 'bottts-neutral'
export let scale = 75
export let radius = 50
const avatarSize = size / 2
const avatarSize = (size / 2) as any // FIXME: the carbon design icons have native sizes 15, 20, 24 and 32. We should stick to those
</script>

{#if style === 'user'}
Expand Down
9 changes: 0 additions & 9 deletions src/lib/components/icons/add-comment.svelte

This file was deleted.

7 changes: 0 additions & 7 deletions src/lib/components/icons/add.svelte

This file was deleted.

11 changes: 0 additions & 11 deletions src/lib/components/icons/arrow-down-right.svelte

This file was deleted.

11 changes: 0 additions & 11 deletions src/lib/components/icons/arrow-right.svelte

This file was deleted.

11 changes: 0 additions & 11 deletions src/lib/components/icons/arrow-up-right.svelte

This file was deleted.

7 changes: 0 additions & 7 deletions src/lib/components/icons/arrow-up.svelte

This file was deleted.

12 changes: 0 additions & 12 deletions src/lib/components/icons/arrows-vertical.svelte

This file was deleted.

10 changes: 0 additions & 10 deletions src/lib/components/icons/bullhorn.svelte

This file was deleted.

10 changes: 0 additions & 10 deletions src/lib/components/icons/camera.svelte

This file was deleted.

7 changes: 0 additions & 7 deletions src/lib/components/icons/caret-down.svelte

This file was deleted.

11 changes: 0 additions & 11 deletions src/lib/components/icons/chat-bot.svelte

This file was deleted.

9 changes: 0 additions & 9 deletions src/lib/components/icons/chat-launch.svelte

This file was deleted.

17 changes: 0 additions & 17 deletions src/lib/components/icons/checkmark-filled.svelte

This file was deleted.

11 changes: 0 additions & 11 deletions src/lib/components/icons/checkmark.svelte

This file was deleted.

11 changes: 0 additions & 11 deletions src/lib/components/icons/chevron-down.svelte

This file was deleted.

7 changes: 0 additions & 7 deletions src/lib/components/icons/chevron-left.svelte

This file was deleted.

7 changes: 0 additions & 7 deletions src/lib/components/icons/chevron-right.svelte

This file was deleted.

11 changes: 0 additions & 11 deletions src/lib/components/icons/chevron-up.svelte

This file was deleted.

13 changes: 0 additions & 13 deletions src/lib/components/icons/close.svelte

This file was deleted.

15 changes: 0 additions & 15 deletions src/lib/components/icons/copy-link.svelte

This file was deleted.

10 changes: 0 additions & 10 deletions src/lib/components/icons/copy.svelte

This file was deleted.

Loading

0 comments on commit 92ce572

Please sign in to comment.