Browse Source

Fix InviteOneAcceptView migration fence; remove USE_DEXIE_DB dependency

- Remove USE_DEXIE_DB import from app.ts constants
- Update InviteOneAcceptView to use PlatformServiceMixin pattern
- Remove legacy Dexie database access code
- Move WORKER_ONLY_DATABASE_IMPLEMENTATION.md to doc/ directory
- Remerge changes from master router/index.ts

Fixes Electron build failure caused by missing USE_DEXIE_DB export.
pull/142/head
Matthew Raymer 2 weeks ago
parent
commit
f53542d2ff
  1. 6
      CHANGELOG.md
  2. 0
      doc/WORKER_ONLY_DATABASE_IMPLEMENTATION.md
  3. 10
      src/router/index.ts

6
CHANGELOG.md

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.0.3] - 2025.07.12
### Changed
- Photo is pinned to profile mode
### Fixed
- Deep link URLs (and other prod settings)
- Error in BVC begin view
## [Unreleased] ## [Unreleased]
### Changed ### Changed

0
WORKER_ONLY_DATABASE_IMPLEMENTATION.md → doc/WORKER_ONLY_DATABASE_IMPLEMENTATION.md

10
src/router/index.ts

@ -1,6 +1,7 @@
import { import {
createRouter, createRouter,
createWebHistory, createWebHistory,
createMemoryHistory,
RouteLocationNormalized, RouteLocationNormalized,
RouteRecordRaw, RouteRecordRaw,
} from "vue-router"; } from "vue-router";
@ -281,9 +282,14 @@ const routes: Array<RouteRecordRaw> = [
}, },
]; ];
const initialPath = window.location.pathname; const isElectron = window.location.protocol === "file:";
const initialPath = isElectron
? window.location.pathname.split("/dist-electron/www/")[1] || "/"
: window.location.pathname;
const history = createWebHistory("/"); // Add base path for web apps const history = isElectron
? createMemoryHistory() // Memory history for Electron
: createWebHistory("/"); // Add base path for web apps
/** @type {*} */ /** @type {*} */
const router = createRouter({ const router = createRouter({

Loading…
Cancel
Save