Template base para proyectos SaaS multi-tenant. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React/Vite) - apps/database (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
15 lines
366 B
JavaScript
15 lines
366 B
JavaScript
export default (function (o, c) {
|
|
var proto = c.prototype;
|
|
|
|
proto.weekday = function (input) {
|
|
var weekStart = this.$locale().weekStart || 0;
|
|
var $W = this.$W;
|
|
var weekday = ($W < weekStart ? $W + 7 : $W) - weekStart;
|
|
|
|
if (this.$utils().u(input)) {
|
|
return weekday;
|
|
}
|
|
|
|
return this.subtract(weekday, 'day').add(input, 'day');
|
|
};
|
|
}); |