diff --git a/.python-version b/.python-version deleted file mode 100644 index 24ee5b1..0000000 --- a/.python-version +++ /dev/null @@ -1 +0,0 @@ -3.13 diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 94a4e27..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,97 +0,0 @@ -# Changelog - -All notable changes to Browser Vault GUI will be documented in this file. - -## [0.2.0] - 2024-01-XX - Vue 3 Migration + Credential Saving - -### โœจ Major Changes - -#### Vue 3 Migration -- **BREAKING**: Complete rewrite from React to Vue 3 -- Replaced React with Vue 3 Composition API -- Replaced custom CSS with Tailwind CSS -- Added DaisyUI for beautiful UI components -- ~30% smaller bundle size -- Better performance and developer experience - -#### New Feature: Optional Credential Saving -- Added option to save credentials in localStorage (opt-in) -- Prominent security warning modal on first save -- Visual indicators (๐Ÿ”“ badge) for servers with saved credentials -- Auto-fill credentials on subsequent logins -- Easy removal of saved credentials -- **Security**: Disabled by default, requires explicit user consent - -### ๐Ÿ“ฆ Added -- Vue 3 with ` - - -``` - -### TypeScript Props & Emits - -```vue - -``` - -### Reactivity - -- `ref()` - for primitive values (`ref(0)`, `ref('')`) -- `reactive()` - for objects (not used much, ref works for everything) -- `computed()` - for derived values -- `watch()` / `watchEffect()` - for side effects - -## DaisyUI Components Used - -### Buttons -```html - - - - -``` - -### Cards -```html -
-
-

Title

-

Content

-
-
-``` - -### Forms -```html -
- - -
-``` - -### Alerts -```html -
- ... - Info message -
-``` - -### Modal -```html - -``` - -## Feature Comparison - -| Feature | React Version | Vue Version | Status | -|---------|--------------|-------------|--------| -| Server Management | โœ… | โœ… | Identical | -| Multi-Auth Support | โœ… | โœ… | Identical | -| Login Verification | โœ… | โœ… | Identical | -| Mount Point Detection | โœ… | โœ… | Identical | -| Secret Reading | โœ… | โœ… | Identical | -| Recursive Search | โœ… | โœ… | Identical | -| Multi-Mount Search | โœ… | โœ… | Identical | -| Caching System | โœ… | โœ… | Identical | -| Settings Panel | โœ… | โœ… | Identical | -| KV v1/v2 Support | โœ… | โœ… | Identical | -| Dark/Light Mode | โœ… | โœ… | Improved (DaisyUI themes) | -| Responsive Design | โœ… | โœ… | Improved (Tailwind) | - -## Benefits of Vue Version - -### Code Quality -- โœ… **Less Code**: Vue templates are more concise than JSX -- โœ… **Better Separation**: Logic in ` - - -``` - -## Theme Switching - -DaisyUI supports multiple themes. To switch themes: - -```html - - -``` - -Or dynamically: -```typescript -document.documentElement.setAttribute('data-theme', 'light') -``` - -Available themes: dark, light, cupcake, bumblebee, emerald, corporate, synthwave, retro, cyberpunk, valentine, halloween, garden, forest, aqua, lofi, pastel, fantasy, wireframe, black, luxury, dracula, cmyk, autumn, business, acid, lemonade, night, coffee, winter - -## Next Steps - -### Recommended Enhancements - -1. **Add Vue Router** (if you want multiple pages) -2. **Add Pinia** (Vue's state management, like Redux) -3. **Add VueUse** (collection of useful composition utilities) -4. **Add animations** with Vue transitions -5. **PWA support** with Vite PWA plugin - -### Optional Improvements - -1. **Virtual scrolling** for large result lists -2. **Drag & drop** for organizing servers -3. **Keyboard shortcuts** with Vue composables -4. **Export/import** server configurations -5. **Secret editing** UI with forms - -## Testing - -To test the conversion: - -1. `npm install` -2. `npm run dev` -3. Add a server (should work like before) -4. Login (mount points should be detected) -5. Read a secret -6. Try search (single path and all mounts) -7. Check settings panel -8. Verify cache statistics - -Everything should work identically to the React version! - -## Documentation - -All previous documentation still applies: -- `README.md` - Updated for Vue -- `USAGE.md` - Same usage, new UI -- `KV_VERSIONS.md` - No changes -- `MOUNT_POINTS.md` - No changes -- `CORS_AND_CLIENT.md` - No changes - -## Conclusion - -โœ… **Migration Complete!** -โœ… **All features preserved** -โœ… **Smaller bundle size** -โœ… **Better performance** -โœ… **Modern UI with Tailwind + DaisyUI** -โœ… **Cleaner codebase** - -The Vue version is production-ready! ๐Ÿš€ - diff --git a/main.py b/main.py deleted file mode 100644 index 811fbdc..0000000 --- a/main.py +++ /dev/null @@ -1,6 +0,0 @@ -def main(): - print("Hello from browser-vault-gui!") - - -if __name__ == "__main__": - main() diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index 2475b8c..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,7 +0,0 @@ -[project] -name = "browser-vault-gui" -version = "0.1.0" -description = "Add your description here" -readme = "README.md" -requires-python = ">=3.13" -dependencies = [] diff --git a/src/App.vue b/src/App.vue index e4d3c59..d90f05e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -13,13 +13,7 @@ const selectedServer = ref(null) const activeConnection = ref(null) const { error } = useSweetAlert() -const { modalState, closePolicyModal, showPolicyModal } = usePolicyModal() - -// Test function for debugging -const testPolicyModal = () => { - console.log('๐Ÿ” Testing policy modal') - showPolicyModal('secret/myapp/config', 'write', 'permission denied', 'Test Policy Modal') -} +const { modalState, closePolicyModal } = usePolicyModal() // Load servers from localStorage on mount onMounted(() => { @@ -116,11 +110,6 @@ const handleLogout = () => {
- -
- -
-