upd: webpush

Deskripsi:
- database push notification
- update package
- memasang webpush

NO Issues
This commit is contained in:
amel
2024-11-18 17:12:58 +08:00
parent bc5ce5b48c
commit d847c97bec
30 changed files with 1267 additions and 282 deletions

39
src/app/icon.tsx Normal file
View File

@@ -0,0 +1,39 @@
import { ImageResponse } from 'next/og'
// Image metadata
export const size = {
width: 32,
height: 32,
}
export const contentType = 'image/png'
// Image generation
export default function Icon(): ImageResponse {
const { width, height } = size
return new ImageResponse(
(
// Element JSX yang berfungsi sebagai ikon
<div
style={{
fontSize: 24,
backgroundColor: 'black',
width: '100%',
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
color: 'white',
}}
>
B
</div>
),
{
width,
height,
}
)
}
// wibu:1.0.87