Select the types of activity you want to include in your feed.
[READ-ONLY] One Calendar is a privacy-first calendar web app built with Next.js. It has modern security features, including e2ee, password-protected sharing, and self-destructing share links ๐
calendar.xyehr.cn
···11-import {
22- Calendar,
33- Bookmark,
44-} from 'lucide-react'
11+import { Calendar, Bookmark } from 'lucide-react'
52import { ClockDashed } from '@/components/icons/clock-dashed'
63import MiniCalendarSheet from './mini-calendar-sheet'
74import { Button } from '@/components/ui/button'
···33import { useEffect, useRef, useState } from 'react'
44import type React from 'react'
55import { Edit3, Share2, Bookmark, Trash2 } from 'lucide-react'
66-import {
77- format,
88- isSameDay,
99- isWithinInterval,
1010- endOfDay,
1111- startOfDay,
1212- add,
1313-} from 'date-fns'
66+import { format, isSameDay, isWithinInterval, add } from 'date-fns'
147import { cn } from '@/lib/utils'
158import type { CalendarEvent } from '../calendar'
169import { translations, type Language } from '@/lib/i18n'
···2626 html: payload.html,
2727 })
2828 if (result.error) throw new Error(result.error.message)
2929- if (!result.data?.id) throw new Error('Email provider did not return a message id')
2929+ if (!result.data?.id)
3030+ throw new Error('Email provider did not return a message id')
3031}
31323233export const auth = betterAuth({
···4849 body: 'We received a request to reset your password. Use the button below to continue.',
4950 actionLabel: 'Reset password',
5051 actionUrl: url,
5151- secondary: 'If you did not request this, you can safely ignore this email.',
5252+ secondary:
5353+ 'If you did not request this, you can safely ignore this email.',
5254 }),
5355 })
5456 },
···8587 sendVerificationOTP: async ({ email, otp, type }) => {
8688 await sendAuthEmail({
8789 to: email,
8888- subject: type === 'forget-password' ? 'Reset code' : 'Verification code',
9090+ subject:
9191+ type === 'forget-password' ? 'Reset code' : 'Verification code',
8992 html: await renderAuthEmailTemplate({
9093 preview:
9194 type === 'forget-password'
9295 ? 'Your One Calendar reset code'
9396 : 'Your One Calendar verification code',
9497 title:
9595- type === 'forget-password'
9696- ? 'Reset code'
9797- : 'Verification code',
9898+ type === 'forget-password' ? 'Reset code' : 'Verification code',
9899 body: `Use this code to continue: ${otp}`,
99100 secondary: 'This code will expire shortly for your security.',
100101 }),