repo stringlengths 4 140 | commit_id stringlengths 7 7 | rel_path stringlengths 1 3.5k | language stringclasses 37
values | url stringlengths 37 3.56k | raw_url stringlengths 54 3.58k | key stringlengths 20 3.54k | ok bool 1
class | status int64 200 200 | bytes int64 48 425k | content stringlengths 40 425k | worker_id int64 0 7 |
|---|---|---|---|---|---|---|---|---|---|---|---|
TAK-EMI/HalfEdge.js | 6891e88 | src/DataAccess.ts | TypeScript | www.github.com/TAK-EMI/HalfEdge.js/tree/main/src/DataAccess.ts | https://raw.githubusercontent.com/TAK-EMI/HalfEdge.js/6891e88/src/DataAccess.ts | TAK-EMI/HalfEdge.js 6891e88 src/DataAccess.ts | true | 200 | 2,365 | import Vertex from './Vertex';
import Half from './Half';
import Edge from './Edge';
import Loop from './Loop';
import VertexData from './VertexData';
import HalfData from './HalfData';
import EdgeData from './EdgeData';
import LoopData from './LoopData';
export default class DataAccess {
protected vertexes: VertexD... | 7 |
ars005/PBG | dfcabc4 | src/components/tree.ts | TypeScript | www.github.com/ars005/PBG/tree/main/src/components/tree.ts | https://raw.githubusercontent.com/ars005/PBG/dfcabc4/src/components/tree.ts | ars005/PBG dfcabc4 src/components/tree.ts | true | 200 | 1,221 | // obstacles/tree.ts
import {
Group,
Mesh,
MeshBasicMaterial,
CylinderGeometry,
SphereGeometry,
TextureLoader,
} from "three";
export const createTree = (x: number, y: number, z: number): Group => {
const tree = new Group();
const textureLoader = new TextureLoader();
const barkTexture = textureLoade... | 0 |
AlexandreMT/ad-2019 | f39741e | backend/src/routes/UserRoutes.ts | TypeScript | www.github.com/AlexandreMT/ad-2019/tree/main/backend/src/routes/UserRoutes.ts | https://raw.githubusercontent.com/AlexandreMT/ad-2019/f39741e/backend/src/routes/UserRoutes.ts | AlexandreMT/ad-2019 f39741e backend/src/routes/UserRoutes.ts | true | 200 | 482 | import { Router } from 'express'
import UserController from '../controllers/UserController'
import RaffleController from '../controllers/RaffleController'
const UserRoutes = Router()
UserRoutes.get('/users', UserController.index)
UserRoutes.post('/users', UserController.store)
UserRoutes.put('/users/:userId', UserCon... | 2 |
dipaliamali/api-int | 88d919e | src/app/userdata/userdata.component.ts | TypeScript | www.github.com/dipaliamali/api-int/tree/main/src/app/userdata/userdata.component.ts | https://raw.githubusercontent.com/dipaliamali/api-int/88d919e/src/app/userdata/userdata.component.ts | dipaliamali/api-int 88d919e src/app/userdata/userdata.component.ts | true | 200 | 819 | import { Component, OnInit } from '@angular/core';
import { Route, Router } from '@angular/router';
import { InfoService } from '../info.service';
@Component({
selector: 'app-userdata',
templateUrl: './userdata.component.html',
styleUrls: ['./userdata.component.css']
})
export class UserdataComponent implements O... | 1 |
EkremUfacik/express-chat-api | 4e76b53 | src/controllers/chatController.ts | TypeScript | www.github.com/EkremUfacik/express-chat-api/tree/main/src/controllers/chatController.ts | https://raw.githubusercontent.com/EkremUfacik/express-chat-api/4e76b53/src/controllers/chatController.ts | EkremUfacik/express-chat-api 4e76b53 src/controllers/chatController.ts | true | 200 | 1,190 | import { Request, Response } from "express";
import Chat from "../models/chatModel";
export const accessChat = async (req: Request, res: Response) => {
const { userId } = req.params;
if (!userId) {
return res.status(400).json({ message: "User id is required" });
}
let chat = await Chat.find({
isGroupCh... | 3 |
Darcyu83/nodejs_recap | 5cfceb6 | express_typescript/db/models/vendor.ts | TypeScript | www.github.com/Darcyu83/nodejs_recap/tree/main/express_typescript/db/models/vendor.ts | https://raw.githubusercontent.com/Darcyu83/nodejs_recap/5cfceb6/express_typescript/db/models/vendor.ts | Darcyu83/nodejs_recap 5cfceb6 express_typescript/db/models/vendor.ts | true | 200 | 1,197 | import {
CreationOptional,
DataTypes,
InferAttributes,
InferCreationAttributes,
Model,
Sequelize,
} from "sequelize";
import sequelizeConnection from "../config";
interface IVendor {
id: number;
name: string;
slug: string;
description?: string;
foodGroup?: string;
createdAt?: Date;
updatedAt?... | 4 |
Mohd-Aqib-khan/grocery-booking-app | 44a04b5 | src/controllers/auth.controller.ts | TypeScript | www.github.com/Mohd-Aqib-khan/grocery-booking-app/tree/main/src/controllers/auth.controller.ts | https://raw.githubusercontent.com/Mohd-Aqib-khan/grocery-booking-app/44a04b5/src/controllers/auth.controller.ts | Mohd-Aqib-khan/grocery-booking-app 44a04b5 src/controllers/auth.controller.ts | true | 200 | 2,248 | import AuthService from "../services/auth.service.js";
import JwtUtil from "../utils/jwt.js";
import bcrypt from "bcrypt";
import { Request, Response, NextFunction } from "express";
class AuthController {
async signUp(req: Request, res: Response, next: NextFunction): Promise<void> {
const { username, passw... | 5 |
SeaBenSea/guess-who-online | 44d0fde | src/app/api/admin/set-role/route.ts | TypeScript | www.github.com/SeaBenSea/guess-who-online/tree/main/src/app/api/admin/set-role/route.ts | https://raw.githubusercontent.com/SeaBenSea/guess-who-online/44d0fde/src/app/api/admin/set-role/route.ts | SeaBenSea/guess-who-online 44d0fde src/app/api/admin/set-role/route.ts | true | 200 | 1,447 | import { NextResponse } from 'next/server';
import { verifyAdminAccess } from '@/utils/adminAuth';
import { logAdminAction } from '@/utils/adminLogger';
export async function POST(request: Request) {
try {
const { userId, isAdmin } = await request.json();
const result = await verifyAdminAccess();
if ('... | 6 |
infra-kiwi/kiwi-blog | a70901b | 0005-cdk-nag/lib/stack.ts | TypeScript | www.github.com/infra-kiwi/kiwi-blog/tree/main/0005-cdk-nag/lib/stack.ts | https://raw.githubusercontent.com/infra-kiwi/kiwi-blog/a70901b/0005-cdk-nag/lib/stack.ts | infra-kiwi/kiwi-blog a70901b 0005-cdk-nag/lib/stack.ts | true | 200 | 753 | /*
* Copyright (c) 2024. Alberto Marchetti - https://www.linkedin.com/in/albertomarchetti/
*/
import * as cdk from 'aws-cdk-lib';
import { aws_kms, aws_sns, CfnOutput } from 'aws-cdk-lib';
import { Construct } from 'constructs';
export class KiwiStack extends cdk.Stack {
readonly topic: aws_sns.Topic;
construc... | 1 |
StartAI-ai/plataforma-startai | 120ef76 | src/pages/auth/login/login.component.ts | TypeScript | www.github.com/StartAI-ai/plataforma-startai/tree/main/src/pages/auth/login/login.component.ts | https://raw.githubusercontent.com/StartAI-ai/plataforma-startai/120ef76/src/pages/auth/login/login.component.ts | StartAI-ai/plataforma-startai 120ef76 src/pages/auth/login/login.component.ts | true | 200 | 1,877 | import { Component, OnInit } from '@angular/core';
import { AuthService } from '../../../service/auth.service';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { ReactiveFormsModule } from '@angular/forms';
import { Router } from '@angular/router';
import { UtilService } from '../../../serv... | 2 |
Watcharapongkasem/microservices | 153ce43 | frontend/order-cart/redux/reducer/checkout.ts | TypeScript | www.github.com/Watcharapongkasem/microservices/tree/main/frontend/order-cart/redux/reducer/checkout.ts | https://raw.githubusercontent.com/Watcharapongkasem/microservices/153ce43/frontend/order-cart/redux/reducer/checkout.ts | Watcharapongkasem/microservices 153ce43 frontend/order-cart/redux/reducer/checkout.ts | true | 200 | 1,156 | import { createAsyncThunk, createSlice, PayloadAction } from "@reduxjs/toolkit";
import productRepository from "../../repository/productRepository";
import { API_ENDPOINT } from "../../utils/api/endpoint";
const initialState: productInti = {
product: [],
};
export const fetchCheckOutAll = createAsyncThunk(
"produ... | 0 |
ArekX/note-me | ebca9f7 | frontend/hooks/use-drag-manager.ts | TypeScript | www.github.com/ArekX/note-me/tree/main/frontend/hooks/use-drag-manager.ts | https://raw.githubusercontent.com/ArekX/note-me/ebca9f7/frontend/hooks/use-drag-manager.ts | ArekX/note-me ebca9f7 frontend/hooks/use-drag-manager.ts | true | 200 | 1,347 | import { useSignal } from "@preact/signals";
export interface DragManagerHook<T> {
source: T | null;
target: T | null;
canDropTo: (value: T) => boolean;
drag: (value: T) => void;
reset: () => void;
setDropTarget: (value: T | null) => void;
}
export const useDragManager = <
T extends {
... | 3 |
cadonaenrike/atividade-delegacia | 25ac94b | src/models/crimes.model.ts | TypeScript | www.github.com/cadonaenrike/atividade-delegacia/tree/main/src/models/crimes.model.ts | https://raw.githubusercontent.com/cadonaenrike/atividade-delegacia/25ac94b/src/models/crimes.model.ts | cadonaenrike/atividade-delegacia 25ac94b src/models/crimes.model.ts | true | 200 | 321 | import { Armas } from "./armas.model";
import { v4 as uuid } from "uuid";
export class Crime {
private id: string;
constructor(public name: string, public criminoso_id: string) {
this.id = uuid();
}
public getSave() {
return {
name: this.name,
criminoso_id: this.criminoso_id,
};
}
}... | 4 |
FightersForJustice/Inctagram-Next-AppDir | f388a63 | src/appRoutes/routes.ts | TypeScript | www.github.com/FightersForJustice/Inctagram-Next-AppDir/tree/main/src/appRoutes/routes.ts | https://raw.githubusercontent.com/FightersForJustice/Inctagram-Next-AppDir/f388a63/src/appRoutes/routes.ts | FightersForJustice/Inctagram-Next-AppDir f388a63 src/appRoutes/routes.ts | true | 200 | 1,511 | export const AUTH_ROUTES = Object.freeze({
SIGN_UP: '/sign-up',
SIGN_IN: '/sign-in',
REGISTRATION_CONFIRMATION: '/auth/registration-confirmation',
RECOVERY: '/auth/recovery',
VERIFICATION: '/email-verification',
EMAIL_EXPIRED: '/email-expired',
FORGOT_PASSWORD: '/forgot-password',
VERIFICATION_INVALID: ... | 5 |
bdrkreza/evato-menn-stack-app | 83a97b0 | redux/reducers/api.ts | TypeScript | www.github.com/bdrkreza/evato-menn-stack-app/tree/main/redux/reducers/api.ts | https://raw.githubusercontent.com/bdrkreza/evato-menn-stack-app/83a97b0/redux/reducers/api.ts | bdrkreza/evato-menn-stack-app 83a97b0 redux/reducers/api.ts | true | 200 | 505 | import { fetchBaseQuery } from "@reduxjs/toolkit/dist/query";
import { RootState } from "../store/store";
export const baseQuery = fetchBaseQuery({
baseUrl: "/api",
prepareHeaders: (headers, { getState }) => {
const token = (getState() as RootState).auth.token;
console.log("tokent is valid", token);
//... | 7 |
scurk1415/xl-pharmacy | a64b9c6 | src/app/shared/features/modal/modal-container/modal-container.component.ts | TypeScript | www.github.com/scurk1415/xl-pharmacy/tree/main/src/app/shared/features/modal/modal-container/modal-container.component.ts | https://raw.githubusercontent.com/scurk1415/xl-pharmacy/a64b9c6/src/app/shared/features/modal/modal-container/modal-container.component.ts | scurk1415/xl-pharmacy a64b9c6 src/app/shared/features/modal/modal-container/modal-container.component.ts | true | 200 | 528 | import { ChangeDetectionStrategy, Component, input, inject } from '@angular/core';
import { DialogRef } from '@angular/cdk/dialog';
@Component({
selector: 'xl-modal-container',
standalone: true,
imports: [],
templateUrl: './modal-container.component.html',
styleUrl: './modal-container.component.scss',
chan... | 1 |
Koryun7707/swap-shop | 87109f3 | src/swap/swap.repository.ts | TypeScript | www.github.com/Koryun7707/swap-shop/tree/main/src/swap/swap.repository.ts | https://raw.githubusercontent.com/Koryun7707/swap-shop/87109f3/src/swap/swap.repository.ts | Koryun7707/swap-shop 87109f3 src/swap/swap.repository.ts | true | 200 | 481 | import { Repository } from 'typeorm';
import { EntityRepository } from 'typeorm/decorator/EntityRepository';
import { SwapEntity } from './swap.entity';
@EntityRepository(SwapEntity)
export class SwapRepository extends Repository<SwapEntity> {
async getNotificationsCount(userId: string) {
return await this.crea... | 0 |
niitaf/jabak-lah-frontend | 9744879 | src/app/back-office-module/back-office-components/profile/ui-add-agent/ui-add-agent.component.spec.ts | TypeScript | www.github.com/niitaf/jabak-lah-frontend/tree/main/src/app/back-office-module/back-office-components/profile/ui-add-agent/ui-add-agent.component.spec.ts | https://raw.githubusercontent.com/niitaf/jabak-lah-frontend/9744879/src/app/back-office-module/back-office-components/profile/ui-add-agent/ui-add-agent.component.spec.ts | niitaf/jabak-lah-frontend 9744879 src/app/back-office-module/back-office-components/profile/ui-add-agent/ui-add-agent.component.spec.ts | true | 200 | 656 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { UiAddAgentComponent } from './ui-add-agent.component';
describe('UiAddAgentComponent', () => {
let component: UiAddAgentComponent;
let fixture: ComponentFixture<UiAddAgentComponent>;
beforeEach(async () => {
await TestBed.configure... | 2 |
OBCApps/mis-pueblitos-frontend | bd2b098 | src/app/pages/modules/view-pueblito/tips-viajeros/entities/DtoTipsViajeros.ts | TypeScript | www.github.com/OBCApps/mis-pueblitos-frontend/tree/main/src/app/pages/modules/view-pueblito/tips-viajeros/entities/DtoTipsViajeros.ts | https://raw.githubusercontent.com/OBCApps/mis-pueblitos-frontend/bd2b098/src/app/pages/modules/view-pueblito/tips-viajeros/entities/DtoTipsViajeros.ts | OBCApps/mis-pueblitos-frontend bd2b098 src/app/pages/modules/view-pueblito/tips-viajeros/entities/DtoTipsViajeros.ts | true | 200 | 582 | export class DtoTipsViajeros {
id: string;
llegarFisrtDesc: string;
llegarsecondDesc: DtoLlegarSecondDesc[] = [];
latitud: number;
longitud: number;
llegarConsejo: string;
llevarDesc: string;
llevarTemporada: DtoTemporada[] = []
llevarConsejo: string;
movilizacionDesc: string;
ayudaDesc: string;
... | 3 |
adamalfredsson/react-media-devices | 2f85b55 | src/useMediaDevices.ts | TypeScript | www.github.com/adamalfredsson/react-media-devices/tree/main/src/useMediaDevices.ts | https://raw.githubusercontent.com/adamalfredsson/react-media-devices/2f85b55/src/useMediaDevices.ts | adamalfredsson/react-media-devices 2f85b55 src/useMediaDevices.ts | true | 200 | 1,345 | import { useEffect, useRef, useState } from "react";
import { useDeepCompareEffectNoCheck } from "use-deep-compare-effect";
import { getMediaDevices } from "./utils/mediaDevices";
interface UseMediaDevicesOptions {
constraints?: MediaStreamConstraints;
onError?: (error: Error) => void;
}
export const useMediaDevi... | 4 |
cmoron/dyel_api | e5c7d80 | src/app.ts | TypeScript | www.github.com/cmoron/dyel_api/tree/main/src/app.ts | https://raw.githubusercontent.com/cmoron/dyel_api/e5c7d80/src/app.ts | cmoron/dyel_api e5c7d80 src/app.ts | true | 200 | 1,103 | import express from 'express'
import mongoose from 'mongoose'
import cors from 'cors'
import passport from 'passport'
import samples from './__samples__/data'
import routes from './routes/routes'
import * as conf from './config/configuration'
import strategy from './config/passport'
const logger = conf.loggerFactory.g... | 5 |
Harshal6927/dreamwell-fe | bd44e6c | src/utils/api-chat.ts | TypeScript | www.github.com/Harshal6927/dreamwell-fe/tree/main/src/utils/api-chat.ts | https://raw.githubusercontent.com/Harshal6927/dreamwell-fe/bd44e6c/src/utils/api-chat.ts | Harshal6927/dreamwell-fe bd44e6c src/utils/api-chat.ts | true | 200 | 1,122 | import axios from 'axios'
import { API_URL } from '@/lib/constants'
import { toast } from 'sonner'
interface ChatDataSend {
message: string
gen_ai_model: string
agent_id: number
}
export interface ChatHistoryResponse {
message: string
response: string
gen_ai_model: string
agent_id: number
id: number
... | 6 |
iancarlosortega/teslo-shop | aba6d6f | pages/api/orders/index.ts | TypeScript | www.github.com/iancarlosortega/teslo-shop/tree/main/pages/api/orders/index.ts | https://raw.githubusercontent.com/iancarlosortega/teslo-shop/aba6d6f/pages/api/orders/index.ts | iancarlosortega/teslo-shop aba6d6f pages/api/orders/index.ts | true | 200 | 2,008 | import type { NextApiRequest, NextApiResponse } from 'next';
import { getSession } from 'next-auth/react';
import { db } from '../../../database';
import { IOrder } from '../../../interfaces';
import { Order, Product } from '../../../models';
type Data = { message: string } | IOrder;
export default function handler(
... | 7 |
hamed9877/nonQhandi | 0653f24 | nonqhandi/data/fake/UserData.ts | TypeScript | www.github.com/hamed9877/nonQhandi/tree/main/nonqhandi/data/fake/UserData.ts | https://raw.githubusercontent.com/hamed9877/nonQhandi/0653f24/nonqhandi/data/fake/UserData.ts | hamed9877/nonQhandi 0653f24 nonqhandi/data/fake/UserData.ts | true | 200 | 346 | export interface IUserData {
name: string;
code: string;
number: string;
email: string;
gender: string;
location: string;
}
export const UserData: IUserData = {
name: "کارشناس کارشناسیان",
code: "123456789",
number: "09181012145",
email: "example@gmail.com",
gender: "مرد",
location: "همدان",
};... | 1 |
TheReal4m4d3u5/bookSearchEngine | f30e1d9 | server/src/schemas/resolvers.ts | TypeScript | www.github.com/TheReal4m4d3u5/bookSearchEngine/tree/main/server/src/schemas/resolvers.ts | https://raw.githubusercontent.com/TheReal4m4d3u5/bookSearchEngine/f30e1d9/server/src/schemas/resolvers.ts | TheReal4m4d3u5/bookSearchEngine f30e1d9 server/src/schemas/resolvers.ts | true | 200 | 3,536 | import { User } from '../models/index.js';
import { AuthenticationError } from 'apollo-server-express';
import { signToken } from '../utils/auth.js';
//import jwt from 'jsonwebtoken';
//const secret = process.env.JWT_SECRET || 'yourSecretKey';
interface Context {
user?: {
data: {
_id: string;
user... | 0 |
CaiqueRibe/prismaWebDev | a1b9a85 | 8-scriptAddConnectRelationship.ts | TypeScript | www.github.com/CaiqueRibe/prismaWebDev/tree/main/8-scriptAddConnectRelationship.ts | https://raw.githubusercontent.com/CaiqueRibe/prismaWebDev/a1b9a85/8-scriptAddConnectRelationship.ts | CaiqueRibe/prismaWebDev a1b9a85 8-scriptAddConnectRelationship.ts | true | 200 | 531 | import { PrismaClient } from "@prisma/client"
const prisma = new PrismaClient()
async function main() {
const user = await prisma.user.update({
where: {
email: "kyle@test.com, ",
},
data: {
userPreference: {
connect: {
id: "9b036344-88d6-4c5e-9058-69ce7... | 2 |
Thiago-Batista-da-Silva-Oliveira/soccer-management-back | ef05df4 | src/modules/players/useCases/UpdatePlayer/UpdatePlayerService.ts | TypeScript | www.github.com/Thiago-Batista-da-Silva-Oliveira/soccer-management-back/tree/main/src/modules/players/useCases/UpdatePlayer/UpdatePlayerService.ts | https://raw.githubusercontent.com/Thiago-Batista-da-Silva-Oliveira/soccer-management-back/ef05df4/src/modules/players/useCases/UpdatePlayer/UpdatePlayerService.ts | Thiago-Batista-da-Silva-Oliveira/soccer-management-back ef05df4 src/modules/players/useCases/UpdatePlayer/UpdatePlayerService.ts | true | 200 | 889 | import { inject, injectable } from "tsyringe";
import { PLAYER_REPOSITORY_KEY } from "../../../../config/constants";
import { AppError } from "../../../../shared/errors/AppError";
import { IUpdatePlayerDTO } from "../../dtos";
import { Player } from "../../infra";
import { IPlayerRepository } from "../../repositories";... | 4 |
LaisaCCAndrade/contact-record | dac297d | back/src/middlewares/ensureIsOwner.middleware.ts | TypeScript | www.github.com/LaisaCCAndrade/contact-record/tree/main/back/src/middlewares/ensureIsOwner.middleware.ts | https://raw.githubusercontent.com/LaisaCCAndrade/contact-record/dac297d/back/src/middlewares/ensureIsOwner.middleware.ts | LaisaCCAndrade/contact-record dac297d back/src/middlewares/ensureIsOwner.middleware.ts | true | 200 | 880 | import { NextFunction, Request, Response } from "express";
import { AppDataSource } from "../data-source";
import { Contacts } from "../entities/contacts.entities";
import { AppError } from "../errors/AppError";
const ensureIsOwnerMiddleware = async (
req: Request,
res: Response,
next: NextFunction
) => {
cons... | 5 |
hopeinjavascript/node-typescript-sequelize | 2670e7e | src/models/restaurant.ts | TypeScript | www.github.com/hopeinjavascript/node-typescript-sequelize/tree/main/src/models/restaurant.ts | https://raw.githubusercontent.com/hopeinjavascript/node-typescript-sequelize/2670e7e/src/models/restaurant.ts | hopeinjavascript/node-typescript-sequelize 2670e7e src/models/restaurant.ts | true | 200 | 1,358 | import sequelize from './../connections/mysql';
import { DataTypes } from 'sequelize';
const Restaurant = sequelize.define(
'Restaurant',
{
id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
allowNull: false,
primaryKey: true,
},
name: {
type: DataTypes.STRING,
... | 3 |
bojaanaa11/RS2_project_Hotels | 12a6ec9 | hotels/WebApps/HotelsSPA/src/app/identity/identity.module.ts | TypeScript | www.github.com/bojaanaa11/RS2_project_Hotels/tree/main/hotels/WebApps/HotelsSPA/src/app/identity/identity.module.ts | https://raw.githubusercontent.com/bojaanaa11/RS2_project_Hotels/12a6ec9/hotels/WebApps/HotelsSPA/src/app/identity/identity.module.ts | bojaanaa11/RS2_project_Hotels 12a6ec9 hotels/WebApps/HotelsSPA/src/app/identity/identity.module.ts | true | 200 | 1,197 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { IdentityRoutingModule } from './identity-routing.module';
import { IdentityComponent } from './identity.component';
import { LoginFormComponent } from './feature-authentication/login-form/login-form.component';
import { ... | 7 |
subha-influxiq/aws-backend | 8821318 | src/app/components/doctor-office/doctor-office-dashboard/doctor-office-dashboard.component.ts | TypeScript | www.github.com/subha-influxiq/aws-backend/tree/main/src/app/components/doctor-office/doctor-office-dashboard/doctor-office-dashboard.component.ts | https://raw.githubusercontent.com/subha-influxiq/aws-backend/8821318/src/app/components/doctor-office/doctor-office-dashboard/doctor-office-dashboard.component.ts | subha-influxiq/aws-backend 8821318 src/app/components/doctor-office/doctor-office-dashboard/doctor-office-dashboard.component.ts | true | 200 | 13,465 | import { Component, OnInit } from '@angular/core';
import { CookieService } from 'ngx-cookie-service';
import { ActivatedRoute } from '@angular/router';
import { MatSnackBar } from '@angular/material';
import { environment } from '../../../../environments/environment';
import { HttpServiceService } from '../../../servi... | 6 |
Godstrump/vivre-cards-admin | 0abbc44 | src/utils/constants.ts | TypeScript | www.github.com/Godstrump/vivre-cards-admin/tree/main/src/utils/constants.ts | https://raw.githubusercontent.com/Godstrump/vivre-cards-admin/0abbc44/src/utils/constants.ts | Godstrump/vivre-cards-admin 0abbc44 src/utils/constants.ts | true | 200 | 4,709 | import { VariantType } from "notistack";
export const DRAWER_WIDTH = 240;
export const dateOptions: Intl.DateTimeFormatOptions = {
weekday: "long",
year: "numeric",
month: "long",
day: "numeric",
};
//Labels to stack user details
export const userLabels = [
{ label: 'First Name', icon: ''},
{... | 1 |
RenilsonAlbuquerque/compras-api | 1d4612a | src/controls/sugestion.controller.ts | TypeScript | www.github.com/RenilsonAlbuquerque/compras-api/tree/main/src/controls/sugestion.controller.ts | https://raw.githubusercontent.com/RenilsonAlbuquerque/compras-api/1d4612a/src/controls/sugestion.controller.ts | RenilsonAlbuquerque/compras-api 1d4612a src/controls/sugestion.controller.ts | true | 200 | 548 | import express from 'express';
import { UserLoginDto } from '../dto/user.login.dto';
import { loginDtoToEntity } from '../mappers/user.mapper';
import sugestionService from '../service/sugestion.service';
export class SugestionController {
public async takeSugestionByMarketId(req: express.Request, res: express.Res... | 2 |
Ufo391/company-website | 184ccc5 | src/app/dsgvo/dsgvo.component.spec.ts | TypeScript | www.github.com/Ufo391/company-website/tree/main/src/app/dsgvo/dsgvo.component.spec.ts | https://raw.githubusercontent.com/Ufo391/company-website/184ccc5/src/app/dsgvo/dsgvo.component.spec.ts | Ufo391/company-website 184ccc5 src/app/dsgvo/dsgvo.component.spec.ts | true | 200 | 552 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { DsgvoComponent } from './dsgvo.component';
describe('DsgvoComponent', () => {
let component: DsgvoComponent;
let fixture: ComponentFixture<DsgvoComponent>;
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [Ds... | 0 |
l3miage-riadob/miahoot-front2 | a8f8d70 | src/app/app-routing.module.ts | TypeScript | www.github.com/l3miage-riadob/miahoot-front2/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/l3miage-riadob/miahoot-front2/a8f8d70/src/app/app-routing.module.ts | l3miage-riadob/miahoot-front2 a8f8d70 src/app/app-routing.module.ts | true | 200 | 1,667 | import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {AccueilComponent} from './accueil/accueil.component';
import {AccountConfigComponent} from './account-config/account-config.component';
import {CreationComponent} from "./creation/creation.component";
import {Presentat... | 4 |
nullcatalyst/freezeframe | 943b6a0 | src/gpu/render_pipeline.ts | TypeScript | www.github.com/nullcatalyst/freezeframe/tree/main/src/gpu/render_pipeline.ts | https://raw.githubusercontent.com/nullcatalyst/freezeframe/943b6a0/src/gpu/render_pipeline.ts | nullcatalyst/freezeframe 943b6a0 src/gpu/render_pipeline.ts | true | 200 | 1,388 | import { deepCopy } from "../util/deep_copy";
import { methodCall } from "./actions";
import { FFDevice } from "./device";
import { FFObject } from "./object";
import { FFRecorder } from "./recorder";
export class FFRenderPipeline extends FFObject<GPURenderPipeline> {
private _device: FFDevice;
private _desc?:... | 3 |
Pratyush-05/ProMovies | 4286986 | src/app/services/movie.service.ts | TypeScript | www.github.com/Pratyush-05/ProMovies/tree/main/src/app/services/movie.service.ts | https://raw.githubusercontent.com/Pratyush-05/ProMovies/4286986/src/app/services/movie.service.ts | Pratyush-05/ProMovies 4286986 src/app/services/movie.service.ts | true | 200 | 683 | import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { MovieDto } from '../models/movie';
import { switchMap } from 'rxjs/operators';
import { of } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class MoviesService {
constructor(private http: HttpClient) {}... | 7 |
udamir/api-diff-viewer | bb46831 | src/helpers/yaml.ts | TypeScript | www.github.com/udamir/api-diff-viewer/tree/main/src/helpers/yaml.ts | https://raw.githubusercontent.com/udamir/api-diff-viewer/bb46831/src/helpers/yaml.ts | udamir/api-diff-viewer bb46831 src/helpers/yaml.ts | true | 200 | 3,090 | export class YAML {
static stringify(value: any): string {
if (value == null) {
return 'null';
}
const type = typeof value;
if (value instanceof Date) {
return value.toISOString();
}
if (value instanceof Array) {
return "[]"
}
if (type === "object") {
return "{}... | 5 |
JuanPabllo/q2-todos | 0a8c2f5 | src/services/tasks/types.ts | TypeScript | www.github.com/JuanPabllo/q2-todos/tree/main/src/services/tasks/types.ts | https://raw.githubusercontent.com/JuanPabllo/q2-todos/0a8c2f5/src/services/tasks/types.ts | JuanPabllo/q2-todos 0a8c2f5 src/services/tasks/types.ts | true | 200 | 392 | export type Tag = 'Q2BANK' | 'Q2PAY' | 'Q2INGRESSOS';
export type Finish = 'Finalizada' | 'Pendente';
export type TasksData = {
description: string;
hour: Date;
date: Date;
tag: Tag;
finish: Finish;
};
export interface TasksDataResponse extends TasksData {
id: number;
}
export type GetTask... | 6 |
ncc-erp/ncc-erp-ims | 378545a | vue/src/store/modules/calendar.ts | TypeScript | www.github.com/ncc-erp/ncc-erp-ims/tree/main/vue/src/store/modules/calendar.ts | https://raw.githubusercontent.com/ncc-erp/ncc-erp-ims/378545a/vue/src/store/modules/calendar.ts | ncc-erp/ncc-erp-ims 378545a vue/src/store/modules/calendar.ts | true | 200 | 1,056 | import { Store, Module, ActionContext } from "vuex";
import ListModule from "./list-module";
import ListState from "./list-state";
import TinyMce from "../entities/tinymce";
import Ajax from "../../lib/ajax";
import Calendar from "../entities/calendar";
interface CalendarState extends ListState<Calendar> {
editTenant... | 0 |
omarkhaled1910/flowers | 573d725 | src/hooks/useAddFlower.ts | TypeScript | www.github.com/omarkhaled1910/flowers/tree/main/src/hooks/useAddFlower.ts | https://raw.githubusercontent.com/omarkhaled1910/flowers/573d725/src/hooks/useAddFlower.ts | omarkhaled1910/flowers 573d725 src/hooks/useAddFlower.ts | true | 200 | 1,187 | import { deleteFlowerImage } from '@/Requests/flowers';
import { useCallback, useState } from 'react';
const isNotLocal = (src: string) => src.includes('firebasestorage');
export const useAddFlower = (flowerId?: string, flower?: any) => {
const [files, setFiles] = useState<any>([]);
const [items, setItems] = useS... | 1 |
geerteltink/aoc-ts | 57ee500 | 2024/day-06/index.ts | TypeScript | www.github.com/geerteltink/aoc-ts/tree/main/2024/day-06/index.ts | https://raw.githubusercontent.com/geerteltink/aoc-ts/57ee500/2024/day-06/index.ts | geerteltink/aoc-ts 57ee500 2024/day-06/index.ts | true | 200 | 4,720 | import input from './input.txt';
import testInput1 from './input1.test.txt';
import testInput2 from './input2.test.txt';
import { testSolution, type Solution, solve, printGrid, type Coordinate, type Grid, type Value } from '@lib';
import { createGrid } from '@lib';
const EXPECTED_PART_ONE = 41;
const EXPECTED_PART_TWO... | 2 |
magmafellow/eventer | 354af06 | auth.config.ts | TypeScript | www.github.com/magmafellow/eventer/tree/main/auth.config.ts | https://raw.githubusercontent.com/magmafellow/eventer/354af06/auth.config.ts | magmafellow/eventer 354af06 auth.config.ts | true | 200 | 535 | import type { NextAuthConfig } from 'next-auth'
export const authConfig = {
pages: {},
callbacks: {
authorized({ auth, request: { nextUrl } }) {
const isLoggedIn = !!auth?.user
if (isLoggedIn) return true
else if (nextUrl.pathname === '/login') {
return true
}
else {
... | 4 |
SiphesihleMadondo/Homes | 18ac2be | src/app/auth.interceptor.ts | TypeScript | www.github.com/SiphesihleMadondo/Homes/tree/main/src/app/auth.interceptor.ts | https://raw.githubusercontent.com/SiphesihleMadondo/Homes/18ac2be/src/app/auth.interceptor.ts | SiphesihleMadondo/Homes 18ac2be src/app/auth.interceptor.ts | true | 200 | 611 | import { Injectable } from "@angular/core";
import { HttpInterceptor, HttpRequest, HttpHandler } from "@angular/common/http";
import { SharedtokenService } from "./sharedtoken.service";
@Injectable()
export class AuthInterceptor implements HttpInterceptor {
constructor(private tokenService: SharedtokenService) { }... | 3 |
wilsonoroo/Backend-CapstoneProject-NodeJS | 6299ec0 | functions/src/core/models/herramienta/herramientaModel.ts | TypeScript | www.github.com/wilsonoroo/Backend-CapstoneProject-NodeJS/tree/main/functions/src/core/models/herramienta/herramientaModel.ts | https://raw.githubusercontent.com/wilsonoroo/Backend-CapstoneProject-NodeJS/6299ec0/functions/src/core/models/herramienta/herramientaModel.ts | wilsonoroo/Backend-CapstoneProject-NodeJS 6299ec0 functions/src/core/models/herramienta/herramientaModel.ts | true | 200 | 545 | import { IHerramienta } from "../../interface";
export class Herramienta implements IHerramienta<CategoriaHerramientaEnum> {
id: string;
identificador: string;
marca: string;
tipo: string;
isEliminado: boolean;
modelo: string;
isServicio: boolean;
categoria: CategoriaHerramientaEnum;
... | 7 |
SantosLopezLozano/Animeflix-Ionic | ffa1414 | src/app/core/components/genero/genero.component.ts | TypeScript | www.github.com/SantosLopezLozano/Animeflix-Ionic/tree/main/src/app/core/components/genero/genero.component.ts | https://raw.githubusercontent.com/SantosLopezLozano/Animeflix-Ionic/ffa1414/src/app/core/components/genero/genero.component.ts | SantosLopezLozano/Animeflix-Ionic ffa1414 src/app/core/components/genero/genero.component.ts | true | 200 | 1,309 | import { PrivateAnimeService } from './../../services/private-animes.service';
import { PublicAnimeService } from './../../services/public-animes.service';
import { Component, Input, OnInit } from '@angular/core';
import { isLowResolution } from '../../utils/screens.utils';
import { Genero, PrivateAnime, PublicAnime } ... | 5 |
ibrahiminlx/sequelize_customer_user_sale_nestjs | ad00c5a | src/db/entity/customer.entity.ts | TypeScript | www.github.com/ibrahiminlx/sequelize_customer_user_sale_nestjs/tree/main/src/db/entity/customer.entity.ts | https://raw.githubusercontent.com/ibrahiminlx/sequelize_customer_user_sale_nestjs/ad00c5a/src/db/entity/customer.entity.ts | ibrahiminlx/sequelize_customer_user_sale_nestjs ad00c5a src/db/entity/customer.entity.ts | true | 200 | 676 | import { Table, Column, Model, PrimaryKey, CreatedAt, UpdatedAt, DeletedAt, AutoIncrement, DataType } from 'sequelize-typescript';
@Table
export class Customer extends Model<Customer> {
@PrimaryKey
@AutoIncrement
@Column
id: number;
@Column({ type: DataType.STRING, allowNull: false, unique: true, validate: ... | 6 |
tho-bre/event-flow | c7f2964 | src/lib/firebase.ts | TypeScript | www.github.com/tho-bre/event-flow/tree/main/src/lib/firebase.ts | https://raw.githubusercontent.com/tho-bre/event-flow/c7f2964/src/lib/firebase.ts | tho-bre/event-flow c7f2964 src/lib/firebase.ts | true | 200 | 1,964 | import { initializeApp } from 'firebase/app';
import { getFirestore, enableIndexedDbPersistence } from 'firebase/firestore';
import { getAuth } from 'firebase/auth';
import { getAnalytics } from 'firebase/analytics';
if (!import.meta.env.VITE_FIREBASE_API_KEY) {
throw new Error('Firebase API Key is missing. Check yo... | 2 |
dreadhalor/hermitcraft-horns | 8595d52 | packages/audio-editor/src/app/test-2/audio-export/audio-export-async.ts | TypeScript | www.github.com/dreadhalor/hermitcraft-horns/tree/main/packages/audio-editor/src/app/test-2/audio-export/audio-export-async.ts | https://raw.githubusercontent.com/dreadhalor/hermitcraft-horns/8595d52/packages/audio-editor/src/app/test-2/audio-export/audio-export-async.ts | dreadhalor/hermitcraft-horns 8595d52 packages/audio-editor/src/app/test-2/audio-export/audio-export-async.ts | true | 200 | 897 | // export-audio-async.ts
export const exportAudioAsync = (audioBuffer: AudioBuffer): Promise<Blob> => {
return new Promise((resolve, reject) => {
const worker = new Worker(
new URL('./audio-export.worker.ts', import.meta.url),
{
type: 'module',
}
);
worker.onmessage = (event) =>... | 1 |
RafaelFortes01/OneBitCode | 5807a68 | TypeScript/20-criando-interfaces/index.ts | TypeScript | www.github.com/RafaelFortes01/OneBitCode/tree/main/TypeScript/20-criando-interfaces/index.ts | https://raw.githubusercontent.com/RafaelFortes01/OneBitCode/5807a68/TypeScript/20-criando-interfaces/index.ts | RafaelFortes01/OneBitCode 5807a68 TypeScript/20-criando-interfaces/index.ts | true | 200 | 712 | interface CelestialBody {
name: string
mass: number
}
interface Star extends CelestialBody {
age: number
planets: Planet[]
}
interface Planet extends CelestialBody {
population: number
createSatellite: (name: string) => void
}
let sun: Star = {
name: "Sol",
mass: 1.989 * (10 ** 30),
... | 4 |
phamquoc1708/chat-app-be | cec9173 | src/Routes/User.route.ts | TypeScript | www.github.com/phamquoc1708/chat-app-be/tree/main/src/Routes/User.route.ts | https://raw.githubusercontent.com/phamquoc1708/chat-app-be/cec9173/src/Routes/User.route.ts | phamquoc1708/chat-app-be cec9173 src/Routes/User.route.ts | true | 200 | 588 | import express, { NextFunction } from "express";
import { UserController } from "../Controllers/user/user.controller";
import { UserService } from "../Services/User.service";
const route = express.Router();
const userService = new UserService();
const userController = new UserController(userService);
route.post("/r... | 5 |
joethedev/back_nest | e10026c | src/auth/strategies/jwt-refresh.strategy.ts | TypeScript | www.github.com/joethedev/back_nest/tree/main/src/auth/strategies/jwt-refresh.strategy.ts | https://raw.githubusercontent.com/joethedev/back_nest/e10026c/src/auth/strategies/jwt-refresh.strategy.ts | joethedev/back_nest e10026c src/auth/strategies/jwt-refresh.strategy.ts | true | 200 | 620 | import { Injectable } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport';
import { ExtractJwt, Strategy } from 'passport-jwt';
import { ConfigService } from '@nestjs/config';
@Injectable()
export class JwtRefreshStrategy extends PassportStrategy(
Strategy,
'jwt-refresh',
) {
constructor(c... | 6 |
albinekb/bartender-bot | a9f8b03 | frontend/src/hooks/usePumps.ts | TypeScript | www.github.com/albinekb/bartender-bot/tree/main/frontend/src/hooks/usePumps.ts | https://raw.githubusercontent.com/albinekb/bartender-bot/a9f8b03/frontend/src/hooks/usePumps.ts | albinekb/bartender-bot a9f8b03 frontend/src/hooks/usePumps.ts | true | 200 | 304 | import useSWR from 'swr'
import {fetcher} from './api'
import type {Pump} from '../pages/api/pumps'
export function usePumps(): { pumps: Pump[], isLoading: boolean, error?: Error } {
const { data, error, isLoading } = useSWR('/api/pumps', fetcher)
return { pumps: data ?? [], isLoading, error }
}
| 0 |
Lucas91420/InstallationAppEnv | aec0913 | node_modules/eslint-webpack-plugin/types/linter.d.ts | TypeScript | www.github.com/Lucas91420/InstallationAppEnv/tree/main/node_modules/eslint-webpack-plugin/types/linter.d.ts | https://raw.githubusercontent.com/Lucas91420/InstallationAppEnv/aec0913/node_modules/eslint-webpack-plugin/types/linter.d.ts | Lucas91420/InstallationAppEnv aec0913 node_modules/eslint-webpack-plugin/types/linter.d.ts | true | 200 | 1,315 | export = linter;
/**
* @param {string|undefined} key
* @param {Options} options
* @param {Compilation} compilation
* @returns {Promise<{lint: Linter, report: Reporter, threads: number}>}
*/
declare function linter(
key: string | undefined,
options: Options,
compilation: Compilation,
): Promise<{
lint: Lint... | 2 |
belimer/mobile-wallet-web | b0eb365 | src/app/app.module.ts | TypeScript | www.github.com/belimer/mobile-wallet-web/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/belimer/mobile-wallet-web/b0eb365/src/app/app.module.ts | belimer/mobile-wallet-web b0eb365 src/app/app.module.ts | true | 200 | 1,340 | import { BrowserModule } from "@angular/platform-browser";
import { NgModule } from "@angular/core";
import { HttpClientModule } from '@angular/common/http';
import { AppRoutingModule } from "./app-routing.module";
import { AppComponent } from "./app.component";
import { NgbModule } from "@ng-bootstrap/ng-bootst... | 1 |
DeNic0la/SheetsApp | 31632f7 | src/DebugState.ts | TypeScript | www.github.com/DeNic0la/SheetsApp/tree/main/src/DebugState.ts | https://raw.githubusercontent.com/DeNic0la/SheetsApp/31632f7/src/DebugState.ts | DeNic0la/SheetsApp 31632f7 src/DebugState.ts | true | 200 | 1,410 | import {CustomPicker, PickerContext} from "./CustomPicker";
import {getAllCalendersForHTML, getCalendarId} from "./CalendarSelectorMaster";
export type debugState = "User" | "Extended" | "Nicola"
const DEBUG_STATE_KEY = "DebugStateKey";
export function getDebugStateProp():debugState{
let prop = PropertiesService.g... | 7 |
monsieurQ/firestarter | 1ef7858 | src/app/app.module.ts | TypeScript | www.github.com/monsieurQ/firestarter/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/monsieurQ/firestarter/1ef7858/src/app/app.module.ts | monsieurQ/firestarter 1ef7858 src/app/app.module.ts | true | 200 | 1,100 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import {MatButtonModule} from '@... | 4 |
bsvleste/backendTypescript | e07e772 | src/modules/cars/infra/typeorm/entities/Category.ts | TypeScript | www.github.com/bsvleste/backendTypescript/tree/main/src/modules/cars/infra/typeorm/entities/Category.ts | https://raw.githubusercontent.com/bsvleste/backendTypescript/e07e772/src/modules/cars/infra/typeorm/entities/Category.ts | bsvleste/backendTypescript e07e772 src/modules/cars/infra/typeorm/entities/Category.ts | true | 200 | 375 | import { v4 as uuidV4 } from 'uuid';
import { Column, CreateDateColumn, Entity, PrimaryColumn } from 'typeorm';
@Entity("categorie")
export class Category {
@PrimaryColumn()
id?: string
@Column()
name: string;
@Column()
description: string;
@CreateDateColumn()
created_at: Date
constructor() {
... | 3 |
WorldMaker/angular-pharkas | 48db844 | projects/test-app/src/app.component.ts | TypeScript | www.github.com/WorldMaker/angular-pharkas/tree/main/projects/test-app/src/app.component.ts | https://raw.githubusercontent.com/WorldMaker/angular-pharkas/48db844/projects/test-app/src/app.component.ts | WorldMaker/angular-pharkas 48db844 projects/test-app/src/app.component.ts | true | 200 | 1,567 | import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
} from '@angular/core'
import { timer } from 'rxjs'
import { map } from 'rxjs/operators'
import { PharkasComponent } from 'angular-pharkas'
import { Observable } from 'rxjs'
import { BlurhashDescription } from 'angular-pharkas-blurhash'
import { Mode... | 6 |
olliegg123/Ollies-Website | f29205d | src/util/themes.ts | TypeScript | www.github.com/olliegg123/Ollies-Website/tree/main/src/util/themes.ts | https://raw.githubusercontent.com/olliegg123/Ollies-Website/f29205d/src/util/themes.ts | olliegg123/Ollies-Website f29205d src/util/themes.ts | true | 200 | 736 | export interface Theme {
bg: string;
text: string;
brand: string;
}
export const themes = {
light: {
bg: '#fff',
border: '#eee',
'header-bg': 'rgba(255, 255, 255, 0.9)',
text: '#17252A',
brand: '#964A61', //'#006bb7',
icon: 'none',
},
dark: {
bg: 'rgb(44, 46, 51)',
border: '... | 5 |
osov/VisualEditor | 9763957 | src/nodes/constants/boolean.ts | TypeScript | www.github.com/osov/VisualEditor/tree/main/src/nodes/constants/boolean.ts | https://raw.githubusercontent.com/osov/VisualEditor/9763957/src/nodes/constants/boolean.ts | osov/VisualEditor 9763957 src/nodes/constants/boolean.ts | true | 200 | 1,068 | import { ClassicPreset as Classic } from 'rete'
import { socketBoolean } from '../../sockets'
import { CheckboxControl } from "../../controls"
export class BooleanNode extends Classic.Node {
width = 180;
height = 110;
private area = (window as any).area;
nodeTitle = { ru: "Логическое", type: "yellow" }... | 0 |
atharv14/TalkTuahFutureYou | 3fff793 | src/data/onboardingQuestions.ts | TypeScript | www.github.com/atharv14/TalkTuahFutureYou/tree/main/src/data/onboardingQuestions.ts | https://raw.githubusercontent.com/atharv14/TalkTuahFutureYou/3fff793/src/data/onboardingQuestions.ts | atharv14/TalkTuahFutureYou 3fff793 src/data/onboardingQuestions.ts | true | 200 | 1,671 | // src/data/onboardingQuestions.ts
import { OnboardingQuestion } from '@/types/onboarding';
export const questions: OnboardingQuestion[] = [
{
id: 'user_name',
type: 'text',
question: "What's your first name?",
description: "This helps find future you",
required: true
},
{
id: 'financial_... | 2 |
writlabs/rocketsite | 6e081d6 | src/components/pageBuilder/models/css/CssObjectFit.ts | TypeScript | www.github.com/writlabs/rocketsite/tree/main/src/components/pageBuilder/models/css/CssObjectFit.ts | https://raw.githubusercontent.com/writlabs/rocketsite/6e081d6/src/components/pageBuilder/models/css/CssObjectFit.ts | writlabs/rocketsite 6e081d6 src/components/pageBuilder/models/css/CssObjectFit.ts | true | 200 | 490 |
export const ObjectFit = {
None: { display: "None", value: "none" },
Fill: { display: "Fill", value: "fill" },
Contain: { display: "Contain", value: "contain" },
Cover: { display: "Cover", value: "cover" },
ScaleDown: { display: "Scale Down", value: "scale-down" },
};
export class CssObjectFit {
value: st... | 1 |
dabocher/next-01register | 380d090 | src/utils/createUser.ts | TypeScript | www.github.com/dabocher/next-01register/tree/main/src/utils/createUser.ts | https://raw.githubusercontent.com/dabocher/next-01register/380d090/src/utils/createUser.ts | dabocher/next-01register 380d090 src/utils/createUser.ts | true | 200 | 550 | interface UserCredentials {
username: string;
email: string;
password: string;
}
const createUser = async ({ username, password, email }: UserCredentials) => {
const response = await fetch("/api/register", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
... | 7 |
AlisonSimiao/backend-perfect-recipe | d2f0fa5 | src/prisma/prisma.service.ts | TypeScript | www.github.com/AlisonSimiao/backend-perfect-recipe/tree/main/src/prisma/prisma.service.ts | https://raw.githubusercontent.com/AlisonSimiao/backend-perfect-recipe/d2f0fa5/src/prisma/prisma.service.ts | AlisonSimiao/backend-perfect-recipe d2f0fa5 src/prisma/prisma.service.ts | true | 200 | 703 | import { Injectable, OnModuleInit } from '@nestjs/common';
import { PrismaClient } from '@prisma/client';
@Injectable()
export class PrismaService extends PrismaClient implements OnModuleInit {
static init = false;
constructor() {
super({
log: [
{ emit: 'event', level: 'query' }, // Habilita o l... | 4 |
joshmarinacci/josh_db_server | d6f81eb | src/test/test_multipart.ts | TypeScript | www.github.com/joshmarinacci/josh_db_server/tree/main/src/test/test_multipart.ts | https://raw.githubusercontent.com/joshmarinacci/josh_db_server/d6f81eb/src/test/test_multipart.ts | joshmarinacci/josh_db_server d6f81eb src/test/test_multipart.ts | true | 200 | 5,348 | /*
Post JSON with encoded attachments and mime types. DB will convert them to attachment refs on disk with the right file extension as well as serving them up as urls embedded in the object
*/
//post json blob + n files from disk. can we just use filepaths instead for now?
import {ServerSettings, start_server} from "... | 3 |
harryzoneslr/ProductManagementUI | f857753 | angulerdemo/src/app/components/unitquery/unitquery.component.ts | TypeScript | www.github.com/harryzoneslr/ProductManagementUI/tree/main/angulerdemo/src/app/components/unitquery/unitquery.component.ts | https://raw.githubusercontent.com/harryzoneslr/ProductManagementUI/f857753/angulerdemo/src/app/components/unitquery/unitquery.component.ts | harryzoneslr/ProductManagementUI f857753 angulerdemo/src/app/components/unitquery/unitquery.component.ts | true | 200 | 2,146 | import { Component, OnInit } from '@angular/core';
import { UnitField } from '../../entity/UnitField';
import { UnitfieldserviceService } from '../../service/unitfieldservice.service';
import { Router } from '@angular/router';
@Component({
selector: 'app-unitquery',
templateUrl: './unitquery.component.html',
sty... | 6 |
EsteveAsensio/Fichaje_Esteve | dac66f6 | FrontendFichajes/src/app/pages/admins/principal/principal.component.ts | TypeScript | www.github.com/EsteveAsensio/Fichaje_Esteve/tree/main/FrontendFichajes/src/app/pages/admins/principal/principal.component.ts | https://raw.githubusercontent.com/EsteveAsensio/Fichaje_Esteve/dac66f6/FrontendFichajes/src/app/pages/admins/principal/principal.component.ts | EsteveAsensio/Fichaje_Esteve dac66f6 FrontendFichajes/src/app/pages/admins/principal/principal.component.ts | true | 200 | 379 | import { Component } from '@angular/core';
import {SidebarAdmComponent} from "../../../components/admins/sidebar-adm/sidebar-adm.component";
@Component({
selector: 'app-principal',
standalone: true,
imports: [
SidebarAdmComponent
],
templateUrl: './principal.component.html',
styleUrl: './princi... | 0 |
shahabazkc/dev-compiler-client | 51c7515 | src/utils/constants/languages.ts | TypeScript | www.github.com/shahabazkc/dev-compiler-client/tree/main/src/utils/constants/languages.ts | https://raw.githubusercontent.com/shahabazkc/dev-compiler-client/51c7515/src/utils/constants/languages.ts | shahabazkc/dev-compiler-client 51c7515 src/utils/constants/languages.ts | true | 200 | 1,096 | import JavascriptIcon from '../../assets/images/javascript.png';
import NodejsIcon from '../../assets/images/nodejs.png';
import ReactIcon from '../../assets/images/react.png';
import TypescriptIcon from '../../assets/images/typescript.png';
import PythonIcon from '../../assets/images/python.png';
import HtmlIcon from ... | 5 |
murilio/murilio | 987abbe | src/components/Search/styles.ts | TypeScript | www.github.com/murilio/murilio/tree/main/src/components/Search/styles.ts | https://raw.githubusercontent.com/murilio/murilio/987abbe/src/components/Search/styles.ts | murilio/murilio 987abbe src/components/Search/styles.ts | true | 200 | 506 | import styled from 'styled-components'
const Container = styled.section`
width: 100%;
padding: 0 5%;
margin: 20px 0;
border-top: solid 1px #eee;
`
const Label = styled.label`
display: flex;
align-items: center;
gap: 20px;
cursor: pointer;
padding: 0 20px;
width: 100%;
height: 50px;
border: so... | 1 |
ZhengXiaowei/i18n-pancham | 4805349 | src/plugins/detect.plugin.ts | TypeScript | www.github.com/ZhengXiaowei/i18n-pancham/tree/main/src/plugins/detect.plugin.ts | https://raw.githubusercontent.com/ZhengXiaowei/i18n-pancham/4805349/src/plugins/detect.plugin.ts | ZhengXiaowei/i18n-pancham 4805349 src/plugins/detect.plugin.ts | true | 200 | 4,185 | /*
* @Author : 晓晓晓晓丶vv
* @Date : 2024-07-02 09:38:55
* @LastEditTime : 2024-07-09 11:37:36
* @LastEditors : 晓晓晓晓丶vv
* @Description : 语言变化时触发的插件
*/
import Cookies from 'js-cookie';
import { LanguageDetectorAsyncModule, Services } from 'i18next';
import { type IDetectorOptions } from '@/types';
im... | 4 |
lFandoriNl/react-form | 473debb | src/form.ts | TypeScript | www.github.com/lFandoriNl/react-form/tree/main/src/form.ts | https://raw.githubusercontent.com/lFandoriNl/react-form/473debb/src/form.ts | lFandoriNl/react-form 473debb src/form.ts | true | 200 | 1,497 | import { FormField } from './form-field';
import { FieldValues, Override } from './types';
export type FormOptions<T> = {
fields: T;
};
export class Form<FormData extends FieldValues> {
private fields: {
[name in keyof FormData]: FormField<FormData[name]>;
};
constructor(private options: FormOptions<For... | 3 |
YamSln/jems | 7fc2355 | src/client/src/app/game/pipe/timer.pipe.ts | TypeScript | www.github.com/YamSln/jems/tree/main/src/client/src/app/game/pipe/timer.pipe.ts | https://raw.githubusercontent.com/YamSln/jems/7fc2355/src/client/src/app/game/pipe/timer.pipe.ts | YamSln/jems 7fc2355 src/client/src/app/game/pipe/timer.pipe.ts | true | 200 | 490 | import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'timer',
})
export class TimerPipe implements PipeTransform {
transform(value: number, ...args: unknown[]): string {
if (value <= 5999) {
const minutes = Math.floor(value / 60);
const seconds = value % 60;
return (
(mi... | 6 |
twinstae/rize | db3ae4c | src/tauri/serverMailRepository.ts | TypeScript | www.github.com/twinstae/rize/tree/main/src/tauri/serverMailRepository.ts | https://raw.githubusercontent.com/twinstae/rize/db3ae4c/src/tauri/serverMailRepository.ts | twinstae/rize db3ae4c src/tauri/serverMailRepository.ts | true | 200 | 1,173 | import { fetch } from '@tauri-apps/plugin-http';
import { MailBodyT, MailRepository, RawMailT } from '../mailList/types';
const HOST = 'http://localhost:5173';
const readJSONfile: (path: string) => Promise<unknown> = (path) =>
fetch(HOST + '/' + path).then((res) => res.json());
const writeJSONfile = (path: string) =... | 7 |
Hermit-School/udupi-darshan-FE | 7ad7f98 | src/app/services/shared.service.ts | TypeScript | www.github.com/Hermit-School/udupi-darshan-FE/tree/main/src/app/services/shared.service.ts | https://raw.githubusercontent.com/Hermit-School/udupi-darshan-FE/7ad7f98/src/app/services/shared.service.ts | Hermit-School/udupi-darshan-FE 7ad7f98 src/app/services/shared.service.ts | true | 200 | 1,518 | import { Injectable } from '@angular/core';
import { BehaviorSubject, Observable } from 'rxjs';
import { Details } from '../models/card';
@Injectable({
providedIn: 'root',
})
export class SharedService {
private searchTextSource = new BehaviorSubject<string>('');
searchText$ = this.searchTextSource.asObser... | 0 |
ngthanhdat521/nestjs | f690f62 | src/apis/user/test/remove-user-by-id.handler.spec.ts | TypeScript | www.github.com/ngthanhdat521/nestjs/tree/main/src/apis/user/test/remove-user-by-id.handler.spec.ts | https://raw.githubusercontent.com/ngthanhdat521/nestjs/f690f62/src/apis/user/test/remove-user-by-id.handler.spec.ts | ngthanhdat521/nestjs f690f62 src/apis/user/test/remove-user-by-id.handler.spec.ts | true | 200 | 1,174 | import { Test, TestingModule } from '@nestjs/testing';
import { v4 as uuidv4 } from 'uuid';
import { RemoveUserByIdCommand } from '../commands/remove-user-by-id.command';
import { RemoveUserByIdHandler } from '../handlers/remove-user-by-id.handler';
import { IUserService } from '../user.interface';
import { UserService... | 5 |
Jeremyfys/zeroq-test | b38fcd4 | src/auth/auth.module.ts | TypeScript | www.github.com/Jeremyfys/zeroq-test/tree/main/src/auth/auth.module.ts | https://raw.githubusercontent.com/Jeremyfys/zeroq-test/b38fcd4/src/auth/auth.module.ts | Jeremyfys/zeroq-test b38fcd4 src/auth/auth.module.ts | true | 200 | 988 | import { Module } from '@nestjs/common';
import { ConfigType } from '@nestjs/config';
import { JwtModule } from '@nestjs/jwt';
import { PassportModule } from '@nestjs/passport';
import { UserModule } from '../users/user.module';
import { AuthController } from './auth.controller';
import { AuthService } from './auth.ser... | 2 |
usernameAbdulRehman/prcloud | 884ae3c | src/auth/services/auth.service.ts | TypeScript | www.github.com/usernameAbdulRehman/prcloud/tree/main/src/auth/services/auth.service.ts | https://raw.githubusercontent.com/usernameAbdulRehman/prcloud/884ae3c/src/auth/services/auth.service.ts | usernameAbdulRehman/prcloud 884ae3c src/auth/services/auth.service.ts | true | 200 | 3,221 | import { ConflictException, Injectable, NotFoundException, UnauthorizedException } from '@nestjs/common';
import { UserInterface } from 'src/user/interfaces';
import { UserService, UserTokenService } from 'src/user/services';
import { JwtService } from '@nestjs/jwt';
import * as bcrypt from 'bcrypt';
import { randomByt... | 1 |
bside-bump/bside-bump-backend | a7fd382 | src/comment/comment.controller.spec.ts | TypeScript | www.github.com/bside-bump/bside-bump-backend/tree/main/src/comment/comment.controller.spec.ts | https://raw.githubusercontent.com/bside-bump/bside-bump-backend/a7fd382/src/comment/comment.controller.spec.ts | bside-bump/bside-bump-backend a7fd382 src/comment/comment.controller.spec.ts | true | 200 | 1,174 | import { Comment } from '@common/entities/Comment.entity';
import { Test, TestingModule } from '@nestjs/testing';
import { getRepositoryToken } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { CommentController } from './comment.controller';
import { CommentService } from './comment.service';
des... | 4 |
NirajKapole/ecs-blue-green | 28037c8 | lib/ecs/alarms.ts | TypeScript | www.github.com/NirajKapole/ecs-blue-green/tree/main/lib/ecs/alarms.ts | https://raw.githubusercontent.com/NirajKapole/ecs-blue-green/28037c8/lib/ecs/alarms.ts | NirajKapole/ecs-blue-green 28037c8 lib/ecs/alarms.ts | true | 200 | 4,077 | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
import { Construct } from 'constructs';
import { Duration } from 'aws-cdk-lib';
import * as albv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2';
import * as cloudWatch from 'aws-cdk-lib/aws-cloudwatch';
exp... | 3 |
MaksimAmelchenko/finex-monorepo | efd937c | packages/api-service/api/v1/categories/move-category/index.ts | TypeScript | www.github.com/MaksimAmelchenko/finex-monorepo/tree/main/packages/api-service/api/v1/categories/move-category/index.ts | https://raw.githubusercontent.com/MaksimAmelchenko/finex-monorepo/efd937c/packages/api-service/api/v1/categories/move-category/index.ts | MaksimAmelchenko/finex-monorepo efd937c packages/api-service/api/v1/categories/move-category/index.ts | true | 200 | 470 | import { handler } from './handler';
import { RestMethod, RestRouteOptions } from '../../../../libs/rest-api/types';
import { moveCategoryParamsSchema } from './params.schema';
import { moveCategoryResponseSchema } from './response.schema';
export const moveCategory: RestRouteOptions = {
method: RestMethod.Put,
ur... | 6 |
942256353/tankgame | 9681fed | tank/tank/src/canvas/bullet.ts | TypeScript | www.github.com/942256353/tankgame/tree/main/tank/tank/src/canvas/bullet.ts | https://raw.githubusercontent.com/942256353/tankgame/9681fed/tank/tank/src/canvas/bullet.ts | 942256353/tankgame 9681fed tank/tank/src/canvas/bullet.ts | true | 200 | 1,047 | import canvasAbstract from "./canvasAbstract";
import model from "../model/bullet";
import tank from "./tank";
import bullet from "../model/bullet";
import play from "./play";
import audio from "../service/audio";
export default new (class extends canvasAbstract implements ICanvas {
intervalId=0
num(): number ... | 7 |
Afonso-Muondo/SisFarma | b13c37c | Front/Farma-APP/src/app/remedios/remedios.component.ts | TypeScript | www.github.com/Afonso-Muondo/SisFarma/tree/main/Front/Farma-APP/src/app/remedios/remedios.component.ts | https://raw.githubusercontent.com/Afonso-Muondo/SisFarma/b13c37c/Front/Farma-APP/src/app/remedios/remedios.component.ts | Afonso-Muondo/SisFarma b13c37c Front/Farma-APP/src/app/remedios/remedios.component.ts | true | 200 | 3,142 | import { Component, OnInit, TemplateRef } from '@angular/core';
import { Remedio } from '../models/Remedio';
import { RemedioService } from '@app/services/remedio.service';
import { FormGroup } from '@angular/forms';
import { ToastrService } from 'ngx-toastr';
import { BsModalRef, BsModalService } from 'ngx-bootstrap/m... | 5 |
ClementChambard/site-planning-ecole | 15077d9 | nextjs/site-maman/app/hooks/useReserveRdvModal.ts | TypeScript | www.github.com/ClementChambard/site-planning-ecole/tree/main/nextjs/site-maman/app/hooks/useReserveRdvModal.ts | https://raw.githubusercontent.com/ClementChambard/site-planning-ecole/15077d9/nextjs/site-maman/app/hooks/useReserveRdvModal.ts | ClementChambard/site-planning-ecole 15077d9 nextjs/site-maman/app/hooks/useReserveRdvModal.ts | true | 200 | 690 | import { Rdv } from "@prisma/client";
import { DefaultValues } from "react-hook-form";
import { create } from "zustand";
interface ReserveRdvModalStore {
isOpen: boolean;
onOpen: (rdv: Rdv) => void;
onClose: () => void;
rdv: Rdv;
}
const useReserveRdvModal = create<ReserveRdvModalStore>((set) => ({
isOpen: ... | 0 |
alexdelahaba/BookMarkApp | 07a4b4f | src/app/pages/display/display.component.ts | TypeScript | www.github.com/alexdelahaba/BookMarkApp/tree/main/src/app/pages/display/display.component.ts | https://raw.githubusercontent.com/alexdelahaba/BookMarkApp/07a4b4f/src/app/pages/display/display.component.ts | alexdelahaba/BookMarkApp 07a4b4f src/app/pages/display/display.component.ts | true | 200 | 1,872 | import { Component, OnInit, Output, EventEmitter } from '@angular/core';
import { Store } from '@ngrx/store';
import * as Actions from './../../actions/app.actions';
import { AppState } from 'src/app/app.state';
import { BookMark } from '../../models/bookmark.interface';
import { MatDialog } from '@angular/material/dia... | 2 |
BeanHeaDza/advent-of-code | c26512b | 2015/day-25/part1.ts | TypeScript | www.github.com/BeanHeaDza/advent-of-code/tree/main/2015/day-25/part1.ts | https://raw.githubusercontent.com/BeanHeaDza/advent-of-code/c26512b/2015/day-25/part1.ts | BeanHeaDza/advent-of-code c26512b 2015/day-25/part1.ts | true | 200 | 593 | import { readInput } from "../../common";
function getId(row: number, column: number) {
let id = 0;
for (let x = 1; x <= column; x++) {
id += x;
}
let inc = column;
for (let y = 1; y < row; y++) {
id += inc++;
}
return id;
}
function main() {
const [input] = readInput();
const row = +input... | 1 |
monodara/Ecommerce-Web-with-API | aa3664e | src/test/products/productReducer.test.ts | TypeScript | www.github.com/monodara/Ecommerce-Web-with-API/tree/main/src/test/products/productReducer.test.ts | https://raw.githubusercontent.com/monodara/Ecommerce-Web-with-API/aa3664e/src/test/products/productReducer.test.ts | monodara/Ecommerce-Web-with-API aa3664e src/test/products/productReducer.test.ts | true | 200 | 5,252 | import { ProductCreatedType, ProductType } from "../../misc/type";
import productReducer, {
addToWishList,
createProductsAsync,
deleteProductsAsync,
fetchAllProductsAsync,
getSearchKeyword,
removeFromWishList,
updateProductsAsync,
} from "../../redux/slices/productSlice";
import { createNewStore } from ".... | 4 |
balancednetwork/balanced-network-interface | 653ef03 | apps/web/src/hooks/useV2Pairs.ts | TypeScript | www.github.com/balancednetwork/balanced-network-interface/tree/main/apps/web/src/hooks/useV2Pairs.ts | https://raw.githubusercontent.com/balancednetwork/balanced-network-interface/653ef03/apps/web/src/hooks/useV2Pairs.ts | balancednetwork/balanced-network-interface 653ef03 apps/web/src/hooks/useV2Pairs.ts | true | 200 | 13,316 | import { keepPreviousData, useQuery } from '@tanstack/react-query';
import { useEffect, useMemo, useState } from 'react';
import { BalancedJs, CallData } from '@balancednetwork/balanced-js';
import { Currency, CurrencyAmount, Fraction, Token, XChainId } from '@balancednetwork/sdk-core';
import { Pair, PairType } from ... | 3 |
jchang6513/key-press-logger | 3249491 | src/popup.ts | TypeScript | www.github.com/jchang6513/key-press-logger/tree/main/src/popup.ts | https://raw.githubusercontent.com/jchang6513/key-press-logger/3249491/src/popup.ts | jchang6513/key-press-logger 3249491 src/popup.ts | true | 200 | 1,284 | 'use strict';
import './popup.css';
import { keyPressLoggerStorage } from './storage';
(function () {
const setupSwitch = (enable: boolean) => {
const node = document.getElementById('enable-switch') as HTMLInputElement;
if (node) {
node.checked = enable
node.addEventListener('change', () => {
... | 6 |
800010179/Web-Project2-backend | 5ec9c92 | backend/src/interfaces/review.ts | TypeScript | www.github.com/800010179/Web-Project2-backend/tree/main/backend/src/interfaces/review.ts | https://raw.githubusercontent.com/800010179/Web-Project2-backend/5ec9c92/backend/src/interfaces/review.ts | 800010179/Web-Project2-backend 5ec9c92 backend/src/interfaces/review.ts | true | 200 | 604 | import {Document, Types} from 'mongoose';
import {Song} from './song';
import {User} from './user';
interface Review extends Document {
likes: string[];
song: Song | Types.ObjectId;
user: User | Types.ObjectId;
rating: number;
comment: string;
title: string;
createdAt: Date;
updatedAt: D... | 7 |
Par-IUTeam/BACK | c588be4 | src/utils/parts/generateCategories.ts | TypeScript | www.github.com/Par-IUTeam/BACK/tree/main/src/utils/parts/generateCategories.ts | https://raw.githubusercontent.com/Par-IUTeam/BACK/c588be4/src/utils/parts/generateCategories.ts | Par-IUTeam/BACK c588be4 src/utils/parts/generateCategories.ts | true | 200 | 1,179 | import axios from "axios";
import {AlimentLine} from "../setupData";
import {capitalize} from "../capitalize";
import {printAxiosData} from "../AxiosResultManager";
type categoryLine = { code: string, name: string }
export const generateCategories = async (aliments: AlimentLine[], log = false) => {
const categor... | 0 |
ftrbnd/apt-manager | 17f0c36 | src/services/receipts.ts | TypeScript | www.github.com/ftrbnd/apt-manager/tree/main/src/services/receipts.ts | https://raw.githubusercontent.com/ftrbnd/apt-manager/17f0c36/src/services/receipts.ts | ftrbnd/apt-manager 17f0c36 src/services/receipts.ts | true | 200 | 630 | import { Receipt } from '@/lib/drizzle/schema/receipts';
const RECEIPTS = '/api/receipts';
export const getReceipts = async () => {
const res = await fetch(RECEIPTS);
if (!res.ok) throw new Error('Failed to get receipts');
const { receipts }: { receipts: Receipt[] } = await res.json();
return receipts;
};
expor... | 5 |
aviarytech/crypto | fc2c630 | src/tests/lib/Ed25519VerificationKey2018.spec.ts | TypeScript | www.github.com/aviarytech/crypto/tree/main/src/tests/lib/Ed25519VerificationKey2018.spec.ts | https://raw.githubusercontent.com/aviarytech/crypto/fc2c630/src/tests/lib/Ed25519VerificationKey2018.spec.ts | aviarytech/crypto fc2c630 src/tests/lib/Ed25519VerificationKey2018.spec.ts | true | 200 | 2,067 | import { Ed25519VerificationKey2018 } from '$lib/keypairs/Ed25519VerificationKey2018';
import { base58, base64url } from '$lib/utils/encoding';
import { describe, expect, test } from 'vitest';
import { documentLoader } from '../fixtures/documentLoader';
describe('Ed25519VerificationKey2018', () => {
test('resolves as... | 2 |
Kankeu/Mini-F-Sharp | 592d78e | models/values/Let.ts | TypeScript | www.github.com/Kankeu/Mini-F-Sharp/tree/main/models/values/Let.ts | https://raw.githubusercontent.com/Kankeu/Mini-F-Sharp/592d78e/models/values/Let.ts | Kankeu/Mini-F-Sharp 592d78e models/values/Let.ts | true | 200 | 3,673 | import { Stmt } from "./Stmt"
import { Expr } from './Expr';
import { Signature, Type, Environment, Val, TypeVariable, ValVariable } from "../context/Context";
export class Let extends Stmt {
private name: string
private value: Expr
constructor(name?: string, value?: Expr) {
super()
this.n... | 1 |
lnminh0710/xt-XoonitDoc | a8c6cd8 | Source/Main/src/DMS/src/app/shared/components/xn-control/light-material-ui/checkbox/checkbox.ts | TypeScript | www.github.com/lnminh0710/xt-XoonitDoc/tree/main/Source/Main/src/DMS/src/app/shared/components/xn-control/light-material-ui/checkbox/checkbox.ts | https://raw.githubusercontent.com/lnminh0710/xt-XoonitDoc/a8c6cd8/Source/Main/src/DMS/src/app/shared/components/xn-control/light-material-ui/checkbox/checkbox.ts | lnminh0710/xt-XoonitDoc a8c6cd8 Source/Main/src/DMS/src/app/shared/components/xn-control/light-material-ui/checkbox/checkbox.ts | true | 200 | 17,691 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {FocusableOption, FocusMonitor, FocusOrigin} from '@angular/cdk/a11y';
import {BooleanInput, coerceBooleanProp... | 6 |
5ruzo/bookly | 0cf53c6 | src/lib/utils/my-page.util.ts | TypeScript | www.github.com/5ruzo/bookly/tree/main/src/lib/utils/my-page.util.ts | https://raw.githubusercontent.com/5ruzo/bookly/0cf53c6/src/lib/utils/my-page.util.ts | 5ruzo/bookly 0cf53c6 src/lib/utils/my-page.util.ts | true | 200 | 683 | export const isMoreThanThreeDaysAgo = (dateStr: string): boolean => {
// 입력받은 날짜 문자열을 Date 객체로 변환
const targetDate = new Date(dateStr.split('T')[0]); // 'YYYY-MM-DD' 부분만 가져오기
// 오늘 날짜를 Date 객체로 변환
const today = new Date();
// 오늘 날짜에서 3일 전 날짜를 계산
const threeDaysAgo = new Date(today.setDate(today.getDate() ... | 7 |
kapobajza/ZDnevnik | 57cbc6b | apps/sveltastic/src/lib/api/instance.ts | TypeScript | www.github.com/kapobajza/ZDnevnik/tree/main/apps/sveltastic/src/lib/api/instance.ts | https://raw.githubusercontent.com/kapobajza/ZDnevnik/57cbc6b/apps/sveltastic/src/lib/api/instance.ts | kapobajza/ZDnevnik 57cbc6b apps/sveltastic/src/lib/api/instance.ts | true | 200 | 971 | import type { CreateInstanceOptions } from "./api";
import { createAuthApi, type AuthApi } from "./auth.api";
import { createClassroomApi, type ClassroomApi } from "./clasroom.api";
import type { ImageApi } from "./image.api";
import { createImageApi } from "./image.api";
import { createInviteApi, type InviteApi } from... | 2 |
EldarMamishev/RemoteDeviceControl | 9bd2568 | Frontend/RemoteDesktop/src/app/user/user.module.ts | TypeScript | www.github.com/EldarMamishev/RemoteDeviceControl/tree/main/Frontend/RemoteDesktop/src/app/user/user.module.ts | https://raw.githubusercontent.com/EldarMamishev/RemoteDeviceControl/9bd2568/Frontend/RemoteDesktop/src/app/user/user.module.ts | EldarMamishev/RemoteDeviceControl 9bd2568 Frontend/RemoteDesktop/src/app/user/user.module.ts | true | 200 | 1,050 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { UserRoutingModule } from './user-routing.module';
import { UserComponent } from './user.component';
import { Tabs1Component } from './tabs1/tabs1.component';
import { UserDevicesPerBuildingsAccordionComponent } from './u... | 5 |
vpn-wg-manager/main-server | 7ece3fe | src/users/UseCase/GetUsersUseCase.ts | TypeScript | www.github.com/vpn-wg-manager/main-server/tree/main/src/users/UseCase/GetUsersUseCase.ts | https://raw.githubusercontent.com/vpn-wg-manager/main-server/7ece3fe/src/users/UseCase/GetUsersUseCase.ts | vpn-wg-manager/main-server 7ece3fe src/users/UseCase/GetUsersUseCase.ts | true | 200 | 777 | import UsersRepository from '@/users/users.repository';
import Error, { ErrorTypes } from '@/shared/Errors/Error';
import { UserRole } from '@/users/constants';
import GetUsersRequest from '@/users/Requests/GetUsers.request';
export default class GetUsersUseCase {
constructor(
private userRepository: UsersReposi... | 0 |
concreteFrost/connections | 2a226e8 | src/store/actions/__tests__/tabsActions.test.ts | TypeScript | www.github.com/concreteFrost/connections/tree/main/src/store/actions/__tests__/tabsActions.test.ts | https://raw.githubusercontent.com/concreteFrost/connections/2a226e8/src/store/actions/__tests__/tabsActions.test.ts | concreteFrost/connections 2a226e8 src/store/actions/__tests__/tabsActions.test.ts | true | 200 | 2,249 | import mockFlowStructure from "__mocks__/mockFlow";
import { FlowStructure } from "store/interfaces/Iflow";
import useStore from "store/store";
import { RFState } from "store/types/rfState";
function createAndAddFlowsToTabs(numberToCreate: number): FlowStructure[] {
let i = 0;
const arr: FlowStructure[] = [];
wh... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.