- Device Notification
- {Capacitor.isNativePlatform()? 'Receive notification on your device when a task is due' : 'This feature is only available on mobile devices'}
-
+ Device Notification
+
+ {Capacitor.isNativePlatform()
+ ? 'Receive notification on your device when a task is due'
+ : 'This feature is only available on mobile devices'}{' '}
+
+
- Custom Notification
- Receive notification on other platform
-
- {
- event.preventDefault()
- if (chatID !== 0){
- setChatID(0)
- }
- else{
- setChatID('')
- UpdateUserDetails({
- chatID: Number(0),
- }).then(resp => {
- resp.json().then(data => {
- setUserProfile(data)
- })
- })
- }
- setNotificationTarget('0')
- handleSave()
-
- }
-
- }
- color={chatID!==0 ? 'success' : 'neutral'}
- variant={chatID!==0 ? 'solid' : 'outlined'}
- endDecorator={chatID!==0 ? 'On' : 'Off'}
- slotProps={{
- endDecorator: {
- sx: {
- minWidth: 24,
- },
- },
- }}
- />
-
- {chatID !== 0&& (
-
-
-
- {notificationTarget === '1' && (
- <>
-
- You need to initiate a message to the bot in order for the Telegram
- notification to work{' '}
-
- Click here
- {' '}
- to start a chat
-
-
- Chat ID
-
- setChatID(e.target.value)}
- placeholder='User ID / Chat ID'
- sx={{
- width: '200px',
- }}
- />
-
- If you don't know your Chat ID, start chat with userinfobot and it
- will send you your Chat ID.{' '}
-
- Click here
- {' '}
- to start chat with userinfobot{' '}
-
- >
- )}
- {notificationTarget === '2' && (
- <>
- User key
- setChatID(e.target.value)}
- placeholder='User ID'
- sx={{
- width: '200px',
- }}
- />
- >
- )}
- {error && (
-
- {error}
-
- )}
-
-
-
- )}
- setIsSnackbarOpen(false)} endDecorator={ setIsSnackbarOpen(false)}>}>
-
- Permission Denied
- You have denied the permission to receive notification on this device. Please enable it in your device settings
+ Notificaiton through other platform like Telegram or Pushover
-
-
+
+
+
+ Custom Notification
+
+ Receive notification on other platform
+
+
+ {
+ event.preventDefault()
+ if (chatID !== 0) {
+ setChatID(0)
+ } else {
+ setChatID('')
+ UpdateUserDetails({
+ chatID: Number(0),
+ }).then(resp => {
+ resp.json().then(data => {
+ setUserProfile(data)
+ })
+ })
+ }
+ setNotificationTarget('0')
+ handleSave()
+ }}
+ color={chatID !== 0 ? 'success' : 'neutral'}
+ variant={chatID !== 0 ? 'solid' : 'outlined'}
+ endDecorator={chatID !== 0 ? 'On' : 'Off'}
+ slotProps={{
+ endDecorator: {
+ sx: {
+ minWidth: 24,
+ },
+ },
+ }}
+ />
+
+ {chatID !== 0 && (
+
+
+ {notificationTarget === '1' && (
+ <>
+
+ You need to initiate a message to the bot in order for the
+ Telegram notification to work{' '}
+
+ Click here
+ {' '}
+ to start a chat
+
+
+ Chat ID
+
+ setChatID(e.target.value)}
+ placeholder='User ID / Chat ID'
+ sx={{
+ width: '200px',
+ }}
+ />
+
+ If you don't know your Chat ID, start chat with userinfobot and
+ it will send you your Chat ID.{' '}
+
+ Click here
+ {' '}
+ to start chat with userinfobot{' '}
+
+ >
+ )}
+ {notificationTarget === '2' && (
+ <>
+ User key
+ setChatID(e.target.value)}
+ placeholder='User ID'
+ sx={{
+ width: '200px',
+ }}
+ />
+ >
+ )}
+ {error && (
+
+ {error}
+
+ )}
+
+
+
+ )}
+ setIsSnackbarOpen(false)}
+ endDecorator={
+ setIsSnackbarOpen(false)}>
+
+
+ }
+ >
+
+ Permission Denied
+
+ You have denied the permission to receive notification on this
+ device. Please enable it in your device settings
+
+
+
)
}
diff --git a/vite.config.js b/vite.config.js
index f8e9fde..6d6044b 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -61,6 +61,7 @@ export default defineConfig({
workbox: {
skipWaiting: true, // Force the waiting service worker to become the active service worker
clientsClaim: true, // Take control of uncontrolled clients as soon as the service worker becomes active
+ maximumFileSizeToCacheInBytes: 6000000, // 6MB
},
}),
],