Tenemos un repo para un CMS De testimonios.
user / publico -> tiene acceso a la API publica sin autenticacion
editor / autenticado -> tiene acceso a la api de edicion admin / autenticado -> tiene acceso a la api de edicion y puede aprobar posts
| name: ESLint | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| # schedule: (disabled for now) | |
| # - cron: "41 20 * * 3" |
any por tipos concretos:
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <title>Eslint Report</title> | |
| <meta charset="UTF-8" /> | |
| <base target="_blank" /> | |
| <link rel="icon" href="https://eslint.org/favicon.ico" /> | |
| <script src="https://registry.npmmirror.com/react/18.2.0/files/umd/react.production.min.js"></script> | |
| <script src="https://registry.npmmirror.com/react-dom/18.2.0/files/umd/react-dom.production.min.js"></script> |
C:\Users\davi3\GitHubprojects\S11-25-Equipo-64-WebApp\src\app(auth)\layout.tsx
β Line β Column β Type β Message β Rule ID β ββββββββββββΌβββββββββββΌβββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌβββββββββββββββββββββββ’ β 1 β 10 β warning β 'AuthLayout' is defined but never used. β @typescript-eslint/ β β β β β β no-unused-vars β
C:\Users\davi3\GitHubprojects\S11-25-Equipo-64-WebApp\src\app(marketing)_components\AboutMissionPage.tsx
| CREATE TYPE user_role AS ENUM ('admin','editor','visitor'); | |
| CREATE TYPE testimonial_status AS ENUM ('draft','in_review','published','rejected'); | |
| CREATE TYPE visibility AS ENUM ('public','private'); | |
| CREATE TYPE media_type AS ENUM ('image','video','file'); | |
| CREATE TYPE media_provider AS ENUM ('cloudinary','youtube','other'); | |
| CREATE TYPE moderation_decision AS ENUM ('approved','rejected'); | |
| CREATE TABLE users ( | |
| id UUID PRIMARY KEY DEFAULT gen_random_uuid(), | |
| email TEXT UNIQUE NOT NULL, |
| -S res,ext:mp4:m4a --recode mp4 |
| class WorkHour(int, Enum): | |
| WORK_START = 8 | |
| LUNCH_START = 12 | |
| LUNCH_END = 13 | |
| WORK_END = 17 | |
| def is_working_hour(self) -> bool: | |
| t = date.time() | |
| morning_ok = time(WorkHour.WORK_START.value, 0) <= t < time(WorkHour.LUNCH_START.value, 0) | |
| afternoon_ok = time(WorkHour.LUNCH_END.value, 0) <= t < time(WorkHour.WORK_END.value, 0) |
| ## Universal | |
| - nmol/L -> pmol/L = 1000 | |
| - pmol/L -> nmol/L = 0.001 | |
| - ng/mL -> ng/dL = 100 | |
| - ng/dL -> ng/mL = 0.01 | |
| - ng/mL -> pg/mL = 1000 | |
| - pg/mL -> ng/mL = 0.001 | |
| ## Hormone specific |
| import argparse | |
| import os | |
| import re | |
| import subprocess | |
| import sys | |
| from pathlib import Path | |
| def repo_root() -> Path: | |
| return Path(__file__).resolve().parent |