Skip to content

Commit

Permalink
Refactor background and move images to public folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Royal-lobster committed Dec 29, 2024
1 parent 5c676dc commit 1794282
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 21 deletions.
27 changes: 14 additions & 13 deletions src/entrypoints/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@ import { captureScreenListener } from './sidebar/captureScreenListener'
import { sendSidebarShortcut } from './sidebar/sendSidebarShortcut'
import { sidebarToggleListeners } from './sidebar/sidebarToggleListeners'

backgroundLog()
export default defineBackground({
main() {
// Initialize logging
backgroundLog()

// =========================== //
// Sidebar Scripts
// =========================== //
sidebarToggleListeners()
sendSidebarShortcut()
captureScreenListener()
// Sidebar functionality
sidebarToggleListeners()
sendSidebarShortcut()
captureScreenListener()

// =========================== //
// Quick menu Scripts
// =========================== //
createContextMenu()
forwardContextMenuClicks()
createContextMenuOnStorageChange()
// Quick menu functionality
createContextMenu()
forwardContextMenuClicks()
createContextMenuOnStorageChange()
},
})
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
8 changes: 0 additions & 8 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,5 @@ export default defineConfig({
port: 5173,
},
},
build: {
rollupOptions: {
input: {
sidebar: 'src/pages/sidebar/index.html',
settings: 'src/pages/settings/index.html',
},
},
},
}),
})

0 comments on commit 1794282

Please sign in to comment.