added notifications

This commit is contained in:
2026-01-22 09:21:54 +01:00
parent 5af3ddb972
commit 6c66b1cd7d
10 changed files with 118 additions and 8 deletions

View File

@@ -3,6 +3,12 @@ import router from './router.ts'
import App from './App.vue'
import { validateToken, initTheme } from './store.ts'
import { fluent, setLanguage } from './i18n'
// import {
// createChannel,
// Importance,
// Visibility,
// } from '@tauri-apps/plugin-notification';
import './base.css'
import { getLocalePreference } from './store.ts'
@@ -25,14 +31,26 @@ async function init() {
setLanguage(osLocale);
}
// await createChannel({
// id: 'messages',
// name: 'Messages',
// description: 'Notifications for new messages',
// importance: Importance.High,
// visibility: Visibility.Private,
// lights: true,
// lightColor: '#ff0000',
// vibration: true,
// sound: 'notification_sound',
// });
app.mount('#app')
}
init()
// export const API = 'http://127.0.0.1:8080'
export const API = 'http://127.0.0.1:8080'
// export const API = 'http://192.168.1.183:8080'
export const API = 'https://alatreon.org/frangipane'
// export const API_WS = 'ws://127.0.0.1:8080/ws'
// export const API = 'https://alatreon.org/frangipane'
export const API_WS = 'ws://127.0.0.1:8080/ws'
// export const API_WS = 'ws://192.168.1.183:8080/ws'
export const API_WS = 'wss://alatreon.org/frangipane/ws'
// export const API_WS = 'wss://alatreon.org/frangipane/ws'