- IMAP-only email client with Electron + Vue 3 + Pinia - Native GTK titlebar, no default Electron menu - Resizable sidebar panels via drag handles - Message list with swipe gestures (left/right) for delete/read/flag - Multi-select mode with bulk delete, mark-as-read, flag actions - Unread-only filter toggle on message count badge - Message body cache with 3-hour TTL - Custom circular checkboxes for selection UI - Swipe action configuration in settings - Russian UI Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
39 lines
922 B
TypeScript
39 lines
922 B
TypeScript
import { resolve } from 'path'
|
|
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import { config as dotenv } from 'dotenv'
|
|
|
|
dotenv()
|
|
|
|
export default defineConfig({
|
|
main: {
|
|
plugins: [externalizeDepsPlugin()],
|
|
define: {
|
|
'process.env.GMAIL_CLIENT_ID': JSON.stringify(process.env.GMAIL_CLIENT_ID ?? ''),
|
|
'process.env.GMAIL_CLIENT_SECRET': JSON.stringify(process.env.GMAIL_CLIENT_SECRET ?? '')
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@shared': resolve('src/shared'),
|
|
'@main': resolve('src/main')
|
|
}
|
|
}
|
|
},
|
|
preload: {
|
|
plugins: [externalizeDepsPlugin()],
|
|
resolve: {
|
|
alias: {
|
|
'@shared': resolve('src/shared')
|
|
}
|
|
}
|
|
},
|
|
renderer: {
|
|
plugins: [vue()],
|
|
resolve: {
|
|
alias: {
|
|
'@shared': resolve('src/shared'),
|
|
'@renderer': resolve('src/renderer/src')
|
|
}
|
|
}
|
|
}
|
|
})
|