Add OpenAPI docs, frontend, migrations, and API updates
- OpenAPI: add missing endpoints (add-from-url, subscriptions, public availability) - OpenAPI: CalendarSubscription schema, Subscriptions tag - Frontend app - Migrations: count_for_availability, subscriptions_sync, user_preferences, calendar_settings - Config, rate limit, auth, calendar, booking, ICS, availability, user service updates Made-with: Cursor
This commit is contained in:
30
frontend/node_modules/date-fns/secondsToMinutes.cjs
generated
vendored
Normal file
30
frontend/node_modules/date-fns/secondsToMinutes.cjs
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
exports.secondsToMinutes = secondsToMinutes;
|
||||
var _index = require("./constants.cjs");
|
||||
|
||||
/**
|
||||
* @name secondsToMinutes
|
||||
* @category Conversion Helpers
|
||||
* @summary Convert seconds to minutes.
|
||||
*
|
||||
* @description
|
||||
* Convert a number of seconds to a full number of minutes.
|
||||
*
|
||||
* @param seconds - The number of seconds to be converted
|
||||
*
|
||||
* @returns The number of seconds converted in minutes
|
||||
*
|
||||
* @example
|
||||
* // Convert 120 seconds into minutes
|
||||
* const result = secondsToMinutes(120)
|
||||
* //=> 2
|
||||
*
|
||||
* @example
|
||||
* // It uses floor rounding:
|
||||
* const result = secondsToMinutes(119)
|
||||
* //=> 1
|
||||
*/
|
||||
function secondsToMinutes(seconds) {
|
||||
const minutes = seconds / _index.secondsInMinute;
|
||||
return Math.trunc(minutes);
|
||||
}
|
||||
Reference in New Issue
Block a user