Skip to content

Commit

Permalink
Refactor TonConnectStore and DSidebar components
Browse files Browse the repository at this point in the history
  • Loading branch information
d0rich committed Nov 23, 2023
1 parent aaeac53 commit b6faf14
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ export const useTonConnectStore = defineStore('ton-connect', () => {
window.location.origin +
'/tonconnect' +
(config.network === 'TESTNET' ? '-testnet' : '') +
'-manifest.json'
'-manifest.json',
language: 'en',
uiPreferences: {
borderRadius: 'none'
}
})
)
const buttonRootId = ref<string | null>(null)
Expand Down
3 changes: 2 additions & 1 deletion apps/d.d0rich.me/src/layout/components/DSidebar.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup lang="ts">
import { defineProps } from 'vue'
import SidebarMenu from '../../widgets/SidebarMenu.vue'
defineProps({
show: {
type: Boolean,
Expand All @@ -21,7 +22,7 @@ defineProps({
<div
class="absolute -z-10 inset-0 bg-green-400 dark:bg-green-950 opacity-80 dark:opacity-95 backdrop-saturate-0 backdrop-brightness-50"
/>
<slot />
<SidebarMenu />
</nav>
<div
class="h-full w-4 bg-black dark:bg-white"
Expand Down
5 changes: 1 addition & 4 deletions apps/d.d0rich.me/src/pages/Home.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<script setup lang="ts">
import TonConnect from '@/features/tonconnect/ui/TonConnect.vue'
</script>
<script setup lang="ts"></script>

<template>
<h1>Home page</h1>
<TonConnect />
</template>
7 changes: 7 additions & 0 deletions apps/d.d0rich.me/src/widgets/SidebarMenu.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<script setup lang="ts">
import TonConnect from '../features/tonconnect/ui/TonConnect.vue'
</script>

<template>
<TonConnect />
</template>

0 comments on commit b6faf14

Please sign in to comment.