calcom/apps/web/lib
Agusti Fernandez b860a79d59
Detect users browser locale for time format 12/24 hours (#1900)
* fix: adds new isBrowserLocal24h timeFormat util, uses in BookingPage

* fix: adds new time format locale detector in available times

* fix: removes 24h clock from availabletimes

* chore: move timeFormat to lib util, add to payment page

* chore: remove commented out is24h

* fix: adds timeFormat to success page

* fix: adds timeFormat to cancel page

* fix: adds timeFormat to video meeting ended/not started pages

* fix: removes added typo in success page

* fix: reverts back to use of is24h Switch in available times / time options, renames timeFormat to detectBrowserTimeFormat to avoid collisions

* fix: moves use uf isBrowserLocal24h() to clock util initClock() itself, by calling it only if no localStorage settings are set

* chore: move back timeFormat props to line it was so no change

* chore: remove empty line in timeOptions

* chore: move back timeFormat where it was in TimeOptions props

* chore: add back empty line before selectedTimeZone return

* fix: reverts back to use of is24h in payments page

* feat: adds browser locale as default in payment page in case there's no settings set by the customer

* feat: adds browser locale as default in success page

* fix: deconstruct props so eslint passes

* fix: lint issue for extra empty line in meeting-ended uid page

Co-authored-by: Agusti Fernandez <git@agusti.me>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-02-23 12:37:15 +00:00
..
config Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
core Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
emails hide additional notes in organizer scheduled email if empty (#1870) 2022-02-16 10:32:13 +00:00
events Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
hooks Feature: Instant Theme Change, without refresh [Booking Pages Only] (#1807) 2022-02-16 15:53:26 +00:00
integrations Removing room entry buffer before a Daily.co video call (#1902) 2022-02-19 00:39:10 +00:00
mutations Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
queries Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
types Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
webhooks include rescheduleUid webhook payload (#1551) (#1584) 2022-02-19 00:09:07 +00:00
app-providers.tsx Remove intercom from public booking pages (#1835) 2022-02-16 08:26:48 -07:00
asStringOrNull.tsx Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
auth.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
availability.ts Extract prisma to it's own package (#1823) 2022-02-15 13:30:52 -07:00
CalEventParser.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
classNames.ts Add ui package for reusable components (#1916) 2022-02-21 09:41:25 -07:00
clock.ts Detect users browser locale for time format 12/24 hours (#1900) 2022-02-23 12:37:15 +00:00
cropImage.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
crypto.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
ensureArray.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
errors.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
event.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
getPlaceholderAvatar.tsx Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
getting-started.tsx Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
integrations.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
isBrandingHidden.tsx Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
jackson.ts Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
jsonUtils.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
location.ts Extract prisma to it's own package (#1823) 2022-02-15 13:30:52 -07:00
logger.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
member.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
notEmpty.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
notification.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
parseZone.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
prisma.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
profile.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
QueryCell.tsx Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
random.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
saml.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
serverConfig.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
slots.ts Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
slugify.ts Build fixes (#1929) 2022-02-21 18:45:35 +00:00
telemetry.ts Eslint fixes (#1898) 2022-02-18 16:53:45 +00:00
timeFormat.ts Detect users browser locale for time format 12/24 hours (#1900) 2022-02-23 12:37:15 +00:00
trpc.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
videoClient.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00
webhook.ts Migrated cal.com to apps/web 2022-02-10 14:22:45 -07:00