chore: Set up Electron configuration and update dependencies

- Add Electron Forge configuration in forge.config.js for packaging and building the app
- Create main Electron entry point in main.cjs for application initialization
- Update package.json scripts for Electron development and building
- Add necessary Electron dependencies to package.json
- Modify .gitignore to exclude build artifacts and temporary files
- Refactor Footer and Navbar components to remove unused imports
- Enhance NostrFeed component by removing unnecessary connection logic
- Update i18n setup for better type safety and locale management
- Refactor Home component to clean up unused code
- Extend Nostr store to manage account state with TypeScript interfaces
This commit is contained in:
padreug 2025-03-20 17:26:15 +01:00
parent 3c05ddde51
commit a74148a0da
11 changed files with 5831 additions and 13 deletions

View file

@ -1,7 +1,4 @@
<script setup lang="ts">
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
</script>
<template>

View file

@ -2,7 +2,6 @@
import { ref, computed } from 'vue'
import { useI18n } from 'vue-i18n'
import { useTheme } from '@/components/theme-provider'
import { useRouter } from 'vue-router'
import { Button } from '@/components/ui/button'
import { Zap, Sun, Moon, Menu, X } from 'lucide-vue-next'
import LanguageSwitcher from '@/components/LanguageSwitcher.vue'
@ -14,7 +13,6 @@ interface NavigationItem {
const { t } = useI18n()
const { theme, setTheme } = useTheme()
const router = useRouter()
const isOpen = ref(false)
const navigation = computed<NavigationItem[]>(() => [

View file

@ -15,7 +15,7 @@ const isLoading = ref(true)
const error = ref<Error | null>(null)
const relayUrls = props.relays || JSON.parse(import.meta.env.VITE_NOSTR_RELAYS as string)
const { isConnected, connect, disconnect } = useNostr({ relays: relayUrls })
const { disconnect } = useNostr({ relays: relayUrls })
async function loadNotes() {
try {