Update Fedimint configuration and enhance onboarding process
- Upgraded Fedimint version to v0.10.0 in docker-compose.yml and manifest.yml, adding support for the built-in Guardian UI. - Modified .gitignore to exclude deploy-config.sh script. - Enhanced onboarding process in AuthManager to persist onboarding state and validate password strength during user setup. - Updated API to handle onboarding completion and password change requests, ensuring a smoother user experience. - Improved configuration management to support Nostr discovery and Tor proxy settings, enhancing node identity features.
This commit is contained in:
@@ -164,6 +164,7 @@ export const useAppStore = defineStore('app', () => {
|
||||
'update-progress': null,
|
||||
},
|
||||
'lan-address': null,
|
||||
'tor-address': null,
|
||||
unread: 0,
|
||||
'wifi-ssids': [],
|
||||
'zram-enabled': false,
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref } from 'vue'
|
||||
|
||||
export const useControllerStore = defineStore('controller', () => {
|
||||
const isActive = ref(false)
|
||||
const gamepadCount = ref(0)
|
||||
|
||||
function setActive(active: boolean) {
|
||||
isActive.value = active
|
||||
}
|
||||
|
||||
function setGamepadCount(count: number) {
|
||||
gamepadCount.value = count
|
||||
isActive.value = count > 0
|
||||
}
|
||||
|
||||
return {
|
||||
isActive,
|
||||
gamepadCount,
|
||||
setActive,
|
||||
setGamepadCount,
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,99 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref, reactive } from 'vue'
|
||||
|
||||
const RECENT_ITEMS_KEY = 'archipelago-spotlight-recent'
|
||||
const MAX_RECENT_ITEMS = 8
|
||||
|
||||
export interface RecentItem {
|
||||
id: string
|
||||
label: string
|
||||
path?: string
|
||||
type: 'navigate' | 'learn' | 'action'
|
||||
timestamp: number
|
||||
}
|
||||
|
||||
export const useSpotlightStore = defineStore('spotlight', () => {
|
||||
const isOpen = ref(false)
|
||||
const selectedIndex = ref(0)
|
||||
|
||||
const recentItems = ref<RecentItem[]>([])
|
||||
|
||||
function loadRecentItems() {
|
||||
try {
|
||||
const raw = localStorage.getItem(RECENT_ITEMS_KEY)
|
||||
if (raw) {
|
||||
const parsed = JSON.parse(raw) as RecentItem[]
|
||||
recentItems.value = parsed.slice(0, MAX_RECENT_ITEMS)
|
||||
} else {
|
||||
recentItems.value = []
|
||||
}
|
||||
} catch {
|
||||
recentItems.value = []
|
||||
}
|
||||
}
|
||||
|
||||
function addRecentItem(item: Omit<RecentItem, 'timestamp'>) {
|
||||
const withTimestamp: RecentItem = { ...item, timestamp: Date.now() }
|
||||
const filtered = recentItems.value.filter(
|
||||
(r) => !(r.id === item.id && r.type === item.type)
|
||||
)
|
||||
recentItems.value = [withTimestamp, ...filtered].slice(0, MAX_RECENT_ITEMS)
|
||||
try {
|
||||
localStorage.setItem(RECENT_ITEMS_KEY, JSON.stringify(recentItems.value))
|
||||
} catch {
|
||||
// Ignore storage errors
|
||||
}
|
||||
}
|
||||
|
||||
function open() {
|
||||
isOpen.value = true
|
||||
selectedIndex.value = 0
|
||||
loadRecentItems()
|
||||
}
|
||||
|
||||
function close() {
|
||||
isOpen.value = false
|
||||
selectedIndex.value = 0
|
||||
}
|
||||
|
||||
function toggle() {
|
||||
isOpen.value ? close() : open()
|
||||
}
|
||||
|
||||
function setSelectedIndex(index: number) {
|
||||
selectedIndex.value = index
|
||||
}
|
||||
|
||||
const helpModal = reactive({
|
||||
show: false,
|
||||
title: '',
|
||||
content: '',
|
||||
relatedPath: undefined as string | undefined,
|
||||
})
|
||||
|
||||
function showHelpModal(payload: { title: string; content: string; relatedPath?: string }) {
|
||||
helpModal.show = true
|
||||
helpModal.title = payload.title
|
||||
helpModal.content = payload.content
|
||||
helpModal.relatedPath = payload.relatedPath
|
||||
}
|
||||
|
||||
function closeHelpModal() {
|
||||
helpModal.show = false
|
||||
}
|
||||
|
||||
return {
|
||||
isOpen,
|
||||
selectedIndex,
|
||||
recentItems,
|
||||
open,
|
||||
close,
|
||||
toggle,
|
||||
setSelectedIndex,
|
||||
addRecentItem,
|
||||
loadRecentItems,
|
||||
helpModal,
|
||||
showHelpModal,
|
||||
closeHelpModal,
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user