Matthew Raymer
e0aded04b4
refactor: Replace console logging with logger utility
- Add logger import across multiple view components
- Replace console.error/warn/log with logger methods
- Update error handling to use structured logging
- Improve type safety for error objects
- Add crypto-browserify polyfill for browser environment
The changes improve logging by:
1. Using consistent logging interface
2. Adding structured error logging
3. Improving error type safety
4. Centralizing logging configuration
5. Fixing browser compatibility issues
Affected files:
- Multiple view components
- vite.config.ts
- Build configuration
5 months ago
Matthew Raymer
3b4f4dc125
style: reorder v-model and v-bind directives
Changes:
- Move v-model directives before other attributes
- Move v-bind directives before event handlers
- Reorder attributes for better readability
- Fix template attribute ordering across components
- Improve eslint rules
- add default vite config for testing (handles nostr error too)
This follows Vue.js style guide recommendations for attribute
ordering and improves template consistency.
6 months ago
Matthew Raymer
f6802cd160
refactor: improve router type safety and usage
- Add explicit Router type imports across views
- Replace $router type casting with proper typing
- Use $router.back() instead of $router.go(-1) for consistency
- Add proper route and router typings to components
- Clean up router navigation methods
- Fix router push/back method calls
This commit improves type safety and consistency in router usage across
the application's view components.
6 months ago
Matthew Raymer
c708716675
refactor: migrate interfaces to dedicated directory
Reorganizes TypeScript interfaces into a modular structure:
- Create dedicated interfaces directory with specialized files
- Split interfaces by domain (claims, common, limits, records, user)
- Update imports in endorserServer.ts to use new interface locations
- Replace 'any' types with 'unknown' for better type safety
- Add proper type imports and exports
This improves code organization and maintainability by:
- Centralizing interface definitions
- Reducing file size of endorserServer.ts
- Making interface relationships more explicit
- Improving type safety with stricter types
6 months ago
Trent Larson
c9c3cacfbd
fix image server references for tests (2 tests failing: missing function & looking for registration prompt for unregistered user)
6 months ago
Matthew Raymer
be8ba12df6
Refatored vite.config to be a bit more streamlined before adding alternate build options. This did end up requiring me to remove @ from imports for some reason. Tests came out fine.
7 months ago
Trent Larson
f405e7d02f
make notification errors go away automatically
7 months ago
Trent Larson
8111b0e5cf
modify the settings to allow account-specific settings, eg. for "isRegistered"
11 months ago
Trent Larson
60e2d549cc
fix destination page after photo is shared
1 year ago
Trent Larson
53e77e46dd
fix list of offers (and some other lists), and add tests for offers
1 year ago
Trent Larson
57fe2cbe13
fix image shared with web share
1 year ago
Trent Larson
bdb544a624
fix error sharing image and failing to upload, fix upload in webkit/safari, and test it
1 year ago
Trent Larson
59820a2f01
add more type casts
1 year ago
Trent Larson
d724d8093c
add ability to edit a GiveAction
1 year ago
Trent Larson
5ad8a2d2ba
await all of the db.settings updates
1 year ago
Trent Larson
b2ebc2992b
cache the passkey JWANT access token for multiple signatures
1 year ago
Trent Larson
145a1da37e
linting cleanup
1 year ago
Trent Larson
bce003e508
change accessToken to take a DID
1 year ago
Trent Larson
7d6b210ee1
allow file choice for gift, plus other UI fixes
1 year ago
Trent Larson
6c28828c0a
fix cropping problem where long images go off the screen
1 year ago
Trent Larson
6af239378c
bump to v 0.3.10, fix image upload on Chrome
1 year ago
Trent Larson
f7b5dbf4ce
style the sharing screen (plus other fixes)
1 year ago
Trent Larson
7f02ba29a3
add a share_target for people to add a photo
1 year ago