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
Zenkert/content-creation-WebApp-Frontend
e69bedd
src/app/admin-module/admin-module-routing.module.ts
TypeScript
www.github.com/Zenkert/content-creation-WebApp-Frontend/tree/main/src/app/admin-module/admin-module-routing.module.ts
https://raw.githubusercontent.com/Zenkert/content-creation-WebApp-Frontend/e69bedd/src/app/admin-module/admin-module-routing.module.ts
Zenkert/content-creation-WebApp-Frontend e69bedd src/app/admin-module/admin-module-routing.module.ts
true
200
1,219
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { AuthGuard } from 'src/_validator/_auth/auth-guard'; import { RoleGuard } from 'src/_validator/_auth/role-guard'; import { AdminProfileComponent } from './admin-profile/admin-profile.component'; import { AdminCompo...
6
usamazansari/visualization-tracker
73bbf11
client/src/app/image-analytics/modules/application-ui/components/ia-bucket-container/ia-bucket/ia-bucket.component.spec.ts
TypeScript
www.github.com/usamazansari/visualization-tracker/tree/main/client/src/app/image-analytics/modules/application-ui/components/ia-bucket-container/ia-bucket/ia-bucket.component.spec.ts
https://raw.githubusercontent.com/usamazansari/visualization-tracker/73bbf11/client/src/app/image-analytics/modules/application-ui/components/ia-bucket-container/ia-bucket/ia-bucket.component.spec.ts
usamazansari/visualization-tracker 73bbf11 client/src/app/image-analytics/modules/application-ui/components/ia-bucket-container/ia-bucket/ia-bucket.component.spec.ts
true
200
668
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { IaBucketComponent } from './ia-bucket.component'; describe('IaBucketComponent', () => { let component: IaBucketComponent; let fixture: ComponentFixture<IaBucketComponent>; beforeEach(async(() => { TestBed.configureT...
3
griff1873/ClaysJS
a97d219
spclaysui/src/db/schema.ts
TypeScript
www.github.com/griff1873/ClaysJS/tree/main/spclaysui/src/db/schema.ts
https://raw.githubusercontent.com/griff1873/ClaysJS/a97d219/spclaysui/src/db/schema.ts
griff1873/ClaysJS a97d219 spclaysui/src/db/schema.ts
true
200
2,025
import { pgTable, serial, varchar, boolean, timestamp, integer, text } from "drizzle-orm/pg-core"; import {relations} from "drizzle-orm" export const Profiles = pgTable("Profiles", { ProfileID: serial("ProfileID").primaryKey(), UserID: varchar("UserID").notNull(), FirstName: varchar("FirstName").notNull()...
1
crensoft/ddd
5dbbca4
dist/services/event-service.d.ts
TypeScript
www.github.com/crensoft/ddd/tree/main/dist/services/event-service.d.ts
https://raw.githubusercontent.com/crensoft/ddd/5dbbca4/dist/services/event-service.d.ts
crensoft/ddd 5dbbca4 dist/services/event-service.d.ts
true
200
719
/// <reference types="node" /> import { EventEmitter } from "events"; export interface IDomainEvent { type: string; payload?: any; meta?: any; } export declare class DomainEvent { private props; constructor(props: IDomainEvent); get type(): string; get payload(): any; get meta(): any; ...
7
marsgpl/cwallet
9cda00a
src/service/storage.ts
TypeScript
www.github.com/marsgpl/cwallet/tree/main/src/service/storage.ts
https://raw.githubusercontent.com/marsgpl/cwallet/9cda00a/src/service/storage.ts
marsgpl/cwallet 9cda00a src/service/storage.ts
true
200
1,742
import { CHARSET_UTF8 } from 'defs/charset' import { MIME_JSON } from 'defs/mimes' import { pick } from 'lib/pick' export function exportAsJson(fileName: string, keys: string[]) { const data = JSON.stringify(pick({...localStorage}, ...keys)) const url = `data:${MIME_JSON};charset=${CHARSET_UTF8},${encodeURICom...
5
galarzafrancisco/neurofabric
ca2004a
sdk/typescript/src/core/AgentRegistry/LocalAgentRegistry.ts
TypeScript
www.github.com/galarzafrancisco/neurofabric/tree/main/sdk/typescript/src/core/AgentRegistry/LocalAgentRegistry.ts
https://raw.githubusercontent.com/galarzafrancisco/neurofabric/ca2004a/sdk/typescript/src/core/AgentRegistry/LocalAgentRegistry.ts
galarzafrancisco/neurofabric ca2004a sdk/typescript/src/core/AgentRegistry/LocalAgentRegistry.ts
true
200
1,010
import { LocalAgent } from '../../agents/LocalAgent'; import { AgentRegistryEntry } from '../../../../../interfaces/typescript/AgentRegistryEntry'; import { IAgentRegistry } from '../../../../../interfaces/typescript/IAssetRegistry'; class LocalAgentRegistry implements IAgentRegistry { private agents: Map<string, ...
4
larasouzabr/ShowTime
9ce72d7
src/app/components/genres/genres.component.ts
TypeScript
www.github.com/larasouzabr/ShowTime/tree/main/src/app/components/genres/genres.component.ts
https://raw.githubusercontent.com/larasouzabr/ShowTime/9ce72d7/src/app/components/genres/genres.component.ts
larasouzabr/ShowTime 9ce72d7 src/app/components/genres/genres.component.ts
true
200
939
import { Component, OnInit } from '@angular/core'; import { NgxSpinnerService } from 'ngx-spinner'; import { MovieService } from 'src/app/services/movie.service'; import { TvShowsService } from 'src/app/services/tv-shows.service'; @Component({ selector: 'app-genres', templateUrl: './genres.component.html', style...
3
grifondopala/docwriter
637359c
server/apps/apigateaway/src/documentation/documenation.controller.ts
TypeScript
www.github.com/grifondopala/docwriter/tree/main/server/apps/apigateaway/src/documentation/documenation.controller.ts
https://raw.githubusercontent.com/grifondopala/docwriter/637359c/server/apps/apigateaway/src/documentation/documenation.controller.ts
grifondopala/docwriter 637359c server/apps/apigateaway/src/documentation/documenation.controller.ts
true
200
1,442
import { Controller, Post, Body, Request, Get, Delete, Param } from '@nestjs/common'; import { Request as req } from 'express'; import { CreateDocumentationDto, DeleteDocumentationDto} from '@app/common' import { DocumentationService } from './documentation.s...
6
Nagitu/nest-practice
90c6979
src/books/books.module.ts
TypeScript
www.github.com/Nagitu/nest-practice/tree/main/src/books/books.module.ts
https://raw.githubusercontent.com/Nagitu/nest-practice/90c6979/src/books/books.module.ts
Nagitu/nest-practice 90c6979 src/books/books.module.ts
true
200
323
import { Module } from '@nestjs/common'; import { BooksService } from './books.service'; import { BooksController } from './books.controller'; import { PrismaModule } from 'src/prisma.module'; @Module({ imports:[PrismaModule], controllers: [BooksController], providers: [BooksService], }) export class BooksModule ...
7
Mod8124/static-jobs-listings-angular
62276c0
src/app/app.component.ts
TypeScript
www.github.com/Mod8124/static-jobs-listings-angular/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/Mod8124/static-jobs-listings-angular/62276c0/src/app/app.component.ts
Mod8124/static-jobs-listings-angular 62276c0 src/app/app.component.ts
true
200
1,138
import { Component, OnInit } from '@angular/core'; import { JobService } from './services/job.service'; import { IData } from './interfaces/interfaces'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent implements OnInit { ...
5
khmseu/download-node
e47db4e
download-node.ts
TypeScript
www.github.com/khmseu/download-node/tree/main/download-node.ts
https://raw.githubusercontent.com/khmseu/download-node/e47db4e/download-node.ts
khmseu/download-node e47db4e download-node.ts
true
200
3,326
#!/usr/bin/env node import { error, log } from "console"; import Decompress from "decompress"; import DecompressBzip2 from "decompress-bzip2"; import DecompressTar from "decompress-tar"; import DecompressTarbz2 from "decompress-tarbz2"; import DecompressTargz from "decompress-targz"; import DecompressTarxz from "decom...
4
Hritujeet/clozit-ecommerce
1b00c0c
src/models/Cart.ts
TypeScript
www.github.com/Hritujeet/clozit-ecommerce/tree/main/src/models/Cart.ts
https://raw.githubusercontent.com/Hritujeet/clozit-ecommerce/1b00c0c/src/models/Cart.ts
Hritujeet/clozit-ecommerce 1b00c0c src/models/Cart.ts
true
200
1,297
import mongoose from "mongoose"; // Define CartItem Schema first const cartItemSchema = new mongoose.Schema({ cart: { type: mongoose.Schema.ObjectId, ref: "Cart" }, product: { type: mongoose.Schema.ObjectId, ref: "Product" }, variant: { color: String, size: String }, quantity: { typ...
3
Henrytos/05-nest-clean
74c5f1f
src/infra/http/controllers/edit-question.controller.ts
TypeScript
www.github.com/Henrytos/05-nest-clean/tree/main/src/infra/http/controllers/edit-question.controller.ts
https://raw.githubusercontent.com/Henrytos/05-nest-clean/74c5f1f/src/infra/http/controllers/edit-question.controller.ts
Henrytos/05-nest-clean 74c5f1f src/infra/http/controllers/edit-question.controller.ts
true
200
1,895
import { BadRequestException, Body, Controller, HttpCode, HttpStatus, Param, Post, Put, } from '@nestjs/common'; import { CurrentUser } from '@/infra/auth/current-user-decorator'; import { UserPayload } from '@/infra/auth/jwt.strategy'; import { ZodValidationPipe } from '@/infra/http/pipes/zod-validatio...
6
nimbus-ui-org/nimbus-ui
6f1092e
packages/preset/src/slot-recipes/drawer.ts
TypeScript
www.github.com/nimbus-ui-org/nimbus-ui/tree/main/packages/preset/src/slot-recipes/drawer.ts
https://raw.githubusercontent.com/nimbus-ui-org/nimbus-ui/6f1092e/packages/preset/src/slot-recipes/drawer.ts
nimbus-ui-org/nimbus-ui 6f1092e packages/preset/src/slot-recipes/drawer.ts
true
200
3,009
import { defineSlotRecipe } from '@pandacss/dev' export const drawer = defineSlotRecipe({ className: 'nimbus-drawer', slots: ['root', 'overlay', 'inner'], jsx: ['Drawer'], base: { root: { display: 'flex', position: 'relative', bgColor: 'base.bg.body', borderColor: 'base.border', ...
5
alissonfr/finance-angular
598f10f
src/app/core/components/sidenav/sidenav-items.ts
TypeScript
www.github.com/alissonfr/finance-angular/tree/main/src/app/core/components/sidenav/sidenav-items.ts
https://raw.githubusercontent.com/alissonfr/finance-angular/598f10f/src/app/core/components/sidenav/sidenav-items.ts
alissonfr/finance-angular 598f10f src/app/core/components/sidenav/sidenav-items.ts
true
200
486
import { SidenavItem } from "./sidenav-item.type"; export const SidenavItems: SidenavItem[] = [ { name: "Principal", route: "/dashboard", icon: "grid_view" }, { name: "Contas bancárias", route: "/bank-accounts", icon: "paid" }, { name: "Catego...
7
LautaroLD/hhrrr
4468c99
src/store/index.ts
TypeScript
www.github.com/LautaroLD/hhrrr/tree/main/src/store/index.ts
https://raw.githubusercontent.com/LautaroLD/hhrrr/4468c99/src/store/index.ts
LautaroLD/hhrrr 4468c99 src/store/index.ts
true
200
593
import { create } from "zustand"; import { createJSONStorage, persist } from "zustand/middleware"; import type { User } from "~/modules"; interface Store { user: User; setUser: (newUser: User) => void; } export const useAppStore = create( persist<Store>( (set) => ({ user: { id: "", email...
3
codealphadev/CodeAlpha.MVT.PoC
a3e469b
src/state.ts
TypeScript
www.github.com/codealphadev/CodeAlpha.MVT.PoC/tree/main/src/state.ts
https://raw.githubusercontent.com/codealphadev/CodeAlpha.MVT.PoC/a3e469b/src/state.ts
codealphadev/CodeAlpha.MVT.PoC a3e469b src/state.ts
true
200
1,226
import { writable } from 'svelte/store'; import { listen } from '@tauri-apps/api/event'; import type { ChannelList } from '../src-tauri/bindings/ChannelList'; import type { EventWindowControls } from '../src-tauri/bindings/window_controls/EventWindowControls'; import type { HideAppWindowMessage } from '../src-tauri/bin...
4
yarmsl/mtek_bc
13d52ea
control-panel-ui/src/modules/User/User.slice.ts
TypeScript
www.github.com/yarmsl/mtek_bc/tree/main/control-panel-ui/src/modules/User/User.slice.ts
https://raw.githubusercontent.com/yarmsl/mtek_bc/13d52ea/control-panel-ui/src/modules/User/User.slice.ts
yarmsl/mtek_bc 13d52ea control-panel-ui/src/modules/User/User.slice.ts
true
200
1,617
import { createSlice } from '@reduxjs/toolkit'; import jwtDecode from 'jwt-decode'; import { initialState } from './initialState'; import { checkAuthThunk, signInThunk, signUpThunk } from '../Auth/store'; const UserSlice = createSlice({ name: 'User', initialState, reducers: { clearUser: (state) => { O...
6
brijendratiwari/ionic
06af4f3
src/app/blog-details/blog-details.page.ts
TypeScript
www.github.com/brijendratiwari/ionic/tree/main/src/app/blog-details/blog-details.page.ts
https://raw.githubusercontent.com/brijendratiwari/ionic/06af4f3/src/app/blog-details/blog-details.page.ts
brijendratiwari/ionic 06af4f3 src/app/blog-details/blog-details.page.ts
true
200
2,367
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { Platform } from '@ionic/angular'; import { PetcloudApiService } from '../api/petcloud-api.service'; @Component({ selector: 'app-blog-details', templateUrl: './blog-details.page.html', styleUrls: ['./blog...
5
INDEP2022/f-sigebi
13188b3
src/app/pages/administrative-processes/insurance-and-surveillance/expenses-register/expenses-register.module.ts
TypeScript
www.github.com/INDEP2022/f-sigebi/tree/main/src/app/pages/administrative-processes/insurance-and-surveillance/expenses-register/expenses-register.module.ts
https://raw.githubusercontent.com/INDEP2022/f-sigebi/13188b3/src/app/pages/administrative-processes/insurance-and-surveillance/expenses-register/expenses-register.module.ts
INDEP2022/f-sigebi 13188b3 src/app/pages/administrative-processes/insurance-and-surveillance/expenses-register/expenses-register.module.ts
true
200
992
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { ReactiveFormsModule } from '@angular/forms'; import { BsDatepickerModule } from 'ngx-bootstrap/datepicker'; import { TabsModule } from 'ngx-bootstrap/tabs'; import { SharedModule } from '../../../../shared/shared.module'...
7
Brunoporto2702/app-template
9a1ac9c
src/utility-modules/data/db/datasources/sqlite-datasource.ts
TypeScript
www.github.com/Brunoporto2702/app-template/tree/main/src/utility-modules/data/db/datasources/sqlite-datasource.ts
https://raw.githubusercontent.com/Brunoporto2702/app-template/9a1ac9c/src/utility-modules/data/db/datasources/sqlite-datasource.ts
Brunoporto2702/app-template 9a1ac9c src/utility-modules/data/db/datasources/sqlite-datasource.ts
true
200
281
import { DataSource } from 'typeorm'; import base from './base-datasource'; const sqliteDatasource = new DataSource({ ...base, // database: `test-db/db-${Date.now()}.sqlite`, database: ':memory:', type: 'sqlite', synchronize: true, }); export default sqliteDatasource;
3
esasar/buzzer
7ecb85b
server/src/index.ts
TypeScript
www.github.com/esasar/buzzer/tree/main/server/src/index.ts
https://raw.githubusercontent.com/esasar/buzzer/7ecb85b/server/src/index.ts
esasar/buzzer 7ecb85b server/src/index.ts
true
200
2,512
import express, { Request, Response } from 'express'; import http from 'http'; import { Server } from 'socket.io'; import roomService from './services/roomService'; const PORT = process.env.PORT || 8080; const cors = { origin: process.env.CORS_ORIGIN || 'http://localhost:5173', methods: ['GET', 'POST'], a...
4
ParkerZ/acerolaGameJam
b89b51a
src/items/foodItems/food3.ts
TypeScript
www.github.com/ParkerZ/acerolaGameJam/tree/main/src/items/foodItems/food3.ts
https://raw.githubusercontent.com/ParkerZ/acerolaGameJam/b89b51a/src/items/foodItems/food3.ts
ParkerZ/acerolaGameJam b89b51a src/items/foodItems/food3.ts
true
200
702
import * as ex from "excalibur"; import { cucumberChoppedSprite, cucumberHitSprite, lettuceParticleSprite, } from "../../resources"; import { FoodBase } from "./foodBase"; import { FoodType } from "../../types"; import { FOOD_TYPE_SPRITE_MAP } from "../../constants"; export class Food3 extends FoodBase { sprit...
6
Jorgekarkour/marvel-heroes-listing
7e8bdf1
src/app/components/modal/modal.component.ts
TypeScript
www.github.com/Jorgekarkour/marvel-heroes-listing/tree/main/src/app/components/modal/modal.component.ts
https://raw.githubusercontent.com/Jorgekarkour/marvel-heroes-listing/7e8bdf1/src/app/components/modal/modal.component.ts
Jorgekarkour/marvel-heroes-listing 7e8bdf1 src/app/components/modal/modal.component.ts
true
200
2,248
import { Component, inject, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms'; import { MatButtonModule } from '@angular/material/button'; import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog'; import { MatLabel, MatFormField } ...
5
johngrandson/event-checker
3cb8d51
imports/features/people/hooks/usePeople.ts
TypeScript
www.github.com/johngrandson/event-checker/tree/main/imports/features/people/hooks/usePeople.ts
https://raw.githubusercontent.com/johngrandson/event-checker/3cb8d51/imports/features/people/hooks/usePeople.ts
johngrandson/event-checker 3cb8d51 imports/features/people/hooks/usePeople.ts
true
200
1,422
import { useTracker } from 'meteor/react-meteor-data'; import { getFilteredPeopleSubscription } from '/imports/features/people/services/subscriptions'; import { PeopleFilters } from '/imports/features/people/schemas'; import { getFilteredPeople } from '/imports/features/people/services/utils'; /** * @function usePeo...
7
AakashHelloworld/Goli
7e9d4ab
src/lib/parseTimeDurationField.ts
TypeScript
www.github.com/AakashHelloworld/Goli/tree/main/src/lib/parseTimeDurationField.ts
https://raw.githubusercontent.com/AakashHelloworld/Goli/7e9d4ab/src/lib/parseTimeDurationField.ts
AakashHelloworld/Goli 7e9d4ab src/lib/parseTimeDurationField.ts
true
200
784
export const parseTimeDurationField=(timestamp: string): string =>{ if (!timestamp) { return "" ; } // Convert to Date object const date = new Date(timestamp); // Format the date const options : Intl.DateTimeFormatOptions = { month: 'short', day: 'numeric', year: 'numeric' }...
3
nasirmovlamov/legion-team-hackathon
c54f4c7
bookstore-server/src/books/books.service.ts
TypeScript
www.github.com/nasirmovlamov/legion-team-hackathon/tree/main/bookstore-server/src/books/books.service.ts
https://raw.githubusercontent.com/nasirmovlamov/legion-team-hackathon/c54f4c7/bookstore-server/src/books/books.service.ts
nasirmovlamov/legion-team-hackathon c54f4c7 bookstore-server/src/books/books.service.ts
true
200
2,879
import { Injectable } from '@nestjs/common'; import { CreateBookDto } from './dto/create-book.dto'; import { UpdateBookDto } from './dto/update-book.dto'; import { Books } from './entities/book.entity'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { User } from 'src/u...
4
mujtaba-basheer/tweetnet-backend
f3e644f
src/routes/user.ts
TypeScript
www.github.com/mujtaba-basheer/tweetnet-backend/tree/main/src/routes/user.ts
https://raw.githubusercontent.com/mujtaba-basheer/tweetnet-backend/f3e644f/src/routes/user.ts
mujtaba-basheer/tweetnet-backend f3e644f src/routes/user.ts
true
200
753
import { Router } from "express"; import { forwardTweets, getFollows, getMyTweets, getTweetsByTask, likeTweet, replyToTweet, retweetTweet, } from "../apis/user"; import { protect } from "../middleware/auth"; const userRouter = Router(); // follows userRouter.get("/follows", protect, getFollows); // my ...
6
VFALAN/frotuniversidad-ui
aa05e55
src/app/modules/ususarios/components/tabla-usuario/tabla-usuario.component.ts
TypeScript
www.github.com/VFALAN/frotuniversidad-ui/tree/main/src/app/modules/ususarios/components/tabla-usuario/tabla-usuario.component.ts
https://raw.githubusercontent.com/VFALAN/frotuniversidad-ui/aa05e55/src/app/modules/ususarios/components/tabla-usuario/tabla-usuario.component.ts
VFALAN/frotuniversidad-ui aa05e55 src/app/modules/ususarios/components/tabla-usuario/tabla-usuario.component.ts
true
200
3,996
import {AfterViewInit, Component, OnInit, ViewChild} from '@angular/core'; import {UsuarioService} from "../../services/usuario.service"; import {MatTableDataSource} from "@angular/material/table"; import {UsuarioTableDTO} from "../../model/usuario-table-dto"; import {HttpErrorResponse} from "@angular/common/http"; imp...
5
MalwareDataLab/GUI4MalSynGen
f462305
autodroid/packages/backend/src/modules/dataset/infra/http/routes/dataset.routes.ts
TypeScript
www.github.com/MalwareDataLab/GUI4MalSynGen/tree/main/autodroid/packages/backend/src/modules/dataset/infra/http/routes/dataset.routes.ts
https://raw.githubusercontent.com/MalwareDataLab/GUI4MalSynGen/f462305/autodroid/packages/backend/src/modules/dataset/infra/http/routes/dataset.routes.ts
MalwareDataLab/GUI4MalSynGen f462305 autodroid/packages/backend/src/modules/dataset/infra/http/routes/dataset.routes.ts
true
200
879
import { Router } from 'express' import datasetController from '../controllers/dataset.controller' import datasetFileController from '../controllers/datasetFile.controller' import { Segments, validationMiddleware, } from '@common/infra/http/middlewares/validation.middleware' import { UserDatasetUpdateSchema } from...
7
AlfaSowa/Game-wow
17a7215
src/game/player/base.ts
TypeScript
www.github.com/AlfaSowa/Game-wow/tree/main/src/game/player/base.ts
https://raw.githubusercontent.com/AlfaSowa/Game-wow/17a7215/src/game/player/base.ts
AlfaSowa/Game-wow 17a7215 src/game/player/base.ts
true
200
5,750
import { CoreBaseConstructorType, Draw, Engine, MouseType, MoveMovesKeys, PositionType, TargetType } from '../../engine' import { RangeAttack } from '../../engine/core' import { Sprite } from '../../engine/sprite' import { Boss } from '../enemies' import { Bar } from '../entities' import testNPCImage from '../assets/NP...
3
pechemann/angular-toolbox
3e8ecdd
projects/angular-toolbox/src/test/util/empty-string.const.spec.ts
TypeScript
www.github.com/pechemann/angular-toolbox/tree/main/projects/angular-toolbox/src/test/util/empty-string.const.spec.ts
https://raw.githubusercontent.com/pechemann/angular-toolbox/3e8ecdd/projects/angular-toolbox/src/test/util/empty-string.const.spec.ts
pechemann/angular-toolbox 3e8ecdd projects/angular-toolbox/src/test/util/empty-string.const.spec.ts
true
200
444
/** * @license * Copyright Pascal ECHEMANN. 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://pascalechemann.com/angular-toolbox/resources/license */ import { EMPTY_STRING } from '../../public-api'; describe('EMPTY_STRING', ()...
4
yracnet/dotenv-local
4dfdcb0
src/index.ts
TypeScript
www.github.com/yracnet/dotenv-local/tree/main/src/index.ts
https://raw.githubusercontent.com/yracnet/dotenv-local/4dfdcb0/src/index.ts
yracnet/dotenv-local 4dfdcb0 src/index.ts
true
200
2,896
import dotenv from "dotenv"; import path from "path"; /** * Options for loading environment variables. */ export type LoadEnvOpts = { /** * Directory where the environment variable files are located. * If not specified, the current working directory will be used. * @default process.cwd() */ envDir?: ...
6
CesarRawr/loop-server
84e5e9d
app.ts
TypeScript
www.github.com/CesarRawr/loop-server/tree/main/app.ts
https://raw.githubusercontent.com/CesarRawr/loop-server/84e5e9d/app.ts
CesarRawr/loop-server 84e5e9d app.ts
true
200
578
import cors from 'cors'; import dotenv from 'dotenv'; import express from 'express'; import bodyParser from 'body-parser'; import mongoSanitize from 'express-mongo-sanitize'; import router from './src/routes/v1.js'; import {__dirname} from './src/utils/index.js'; const app = express(); const port = 8080; dotenv.confi...
5
amIsachin/Ecommerce-Angular
a033ea6
src/app/app.module.ts
TypeScript
www.github.com/amIsachin/Ecommerce-Angular/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/amIsachin/Ecommerce-Angular/a033ea6/src/app/app.module.ts
amIsachin/Ecommerce-Angular a033ea6 src/app/app.module.ts
true
200
1,315
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { ProductModule } from './src/Modules/product/product.module'; import { UesrModule ...
7
Phuong276/English-for-Kids
28f80bc
src/utils/tokenUtils.ts
TypeScript
www.github.com/Phuong276/English-for-Kids/tree/main/src/utils/tokenUtils.ts
https://raw.githubusercontent.com/Phuong276/English-for-Kids/28f80bc/src/utils/tokenUtils.ts
Phuong276/English-for-Kids 28f80bc src/utils/tokenUtils.ts
true
200
879
import { User } from "@prisma/client"; import { decode, JwtPayload, sign, verify } from "jsonwebtoken"; export const refreshToken = async (id: number) => { const payload = { id: id }; return sign(payload, process.env.TOKEN_SECRET_JWT as string, { algorithm: "HS256", expiresIn: process.env.REFRESH_TOKEN_TIM...
3
future4code/freire-Brenno-Moyses
2e47d74
modulo4/Cookenu/src/data/UserDatabase.ts
TypeScript
www.github.com/future4code/freire-Brenno-Moyses/tree/main/modulo4/Cookenu/src/data/UserDatabase.ts
https://raw.githubusercontent.com/future4code/freire-Brenno-Moyses/2e47d74/modulo4/Cookenu/src/data/UserDatabase.ts
future4code/freire-Brenno-Moyses 2e47d74 modulo4/Cookenu/src/data/UserDatabase.ts
true
200
1,926
import { Recipe } from "../entities/Recipe"; import { User } from "../entities/User"; import { BaseDatabase } from "./BaseDatabase"; export class UserDatabase extends BaseDatabase { public async createUser(user: User): Promise<void>{ try{ await BaseDatabase.connection('Users').insert({ id: ...
4
palmyra76/palmyra-rui
e11d89b
dist/palmyra/form/PalmyraFilterForm.d.ts
TypeScript
www.github.com/palmyra76/palmyra-rui/tree/main/dist/palmyra/form/PalmyraFilterForm.d.ts
https://raw.githubusercontent.com/palmyra76/palmyra-rui/e11d89b/dist/palmyra/form/PalmyraFilterForm.d.ts
palmyra76/palmyra-rui e11d89b dist/palmyra/form/PalmyraFilterForm.d.ts
true
200
537
import { StoreFactory } from '../../main'; import { IFormCustomizer, FormMode } from './Types'; interface IPalmyraFilterFormInput { children?: any; formData: any; mode: FormMode; storeFactory?: StoreFactory<any>; customizer?: IFormCustomizer; } interface IPalmyraFilterForm { getFilterData: () =...
5
mohammadKhazaee/Rahnema-learning
c6f52a4
voting-app/src/modules/Plan/Program/model/program.ts
TypeScript
www.github.com/mohammadKhazaee/Rahnema-learning/tree/main/voting-app/src/modules/Plan/Program/model/program.ts
https://raw.githubusercontent.com/mohammadKhazaee/Rahnema-learning/c6f52a4/voting-app/src/modules/Plan/Program/model/program.ts
mohammadKhazaee/Rahnema-learning c6f52a4 voting-app/src/modules/Plan/Program/model/program.ts
true
200
444
import { WholeNumber } from '../../../../data/int'; import { NonEmptyString } from '../../../../data/non-empty-string'; import { UserId } from '../../../User/model/user-id'; import { PlanId } from '../../model/plan-id'; import { ProgramId } from './program-id'; export interface Program { id: ProgramId; p...
6
harii-tilavat/web-quiz-main
10997d3
src/app/components/home/home.component.ts
TypeScript
www.github.com/harii-tilavat/web-quiz-main/tree/main/src/app/components/home/home.component.ts
https://raw.githubusercontent.com/harii-tilavat/web-quiz-main/10997d3/src/app/components/home/home.component.ts
harii-tilavat/web-quiz-main 10997d3 src/app/components/home/home.component.ts
true
200
439
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-home', templateUrl: './home.component.html', styleUrls: ['./home.component.scss'] }) export class HomeComponent implements OnInit { public isOpen: boolean = true; constructor() { } ngOnInit(): void { } title = 'e-commerce-an...
7
jaem1n207/bendd
44858b3
src/mdx/mdx.ts
TypeScript
www.github.com/jaem1n207/bendd/tree/main/src/mdx/mdx.ts
https://raw.githubusercontent.com/jaem1n207/bendd/44858b3/src/mdx/mdx.ts
jaem1n207/bendd 44858b3 src/mdx/mdx.ts
true
200
7,048
import fs from 'node:fs'; import path from 'node:path'; import { z } from 'zod'; import { type Route } from 'next'; import type { ArticleInfo } from '../components/article/types/article'; const MetadataSchema = z.object({ title: z.string().max(38), publishedAt: z.string(), category: z.string(), description: z...
4
achinchen/nano
9b93a89
services/backend/src/domain/service/use-case/close-service/implementation.ts
TypeScript
www.github.com/achinchen/nano/tree/main/services/backend/src/domain/service/use-case/close-service/implementation.ts
https://raw.githubusercontent.com/achinchen/nano/9b93a89/services/backend/src/domain/service/use-case/close-service/implementation.ts
achinchen/nano 9b93a89 services/backend/src/domain/service/use-case/close-service/implementation.ts
true
200
1,366
import type { CloseServiceDTO } from '~backend/domain/service/dto'; import type { IServiceRepository } from '~backend/domain/service/repository/service/abstract'; import type { IResult } from '~backend/domain/shared/result'; import { Result } from '~backend/domain/shared/result'; import { AppError, AppErrorUnexpected }...
6
Goval-Community/govaldocs
f08db2f
src/app.d.ts
TypeScript
www.github.com/Goval-Community/govaldocs/tree/main/src/app.d.ts
https://raw.githubusercontent.com/Goval-Community/govaldocs/f08db2f/src/app.d.ts
Goval-Community/govaldocs f08db2f src/app.d.ts
true
200
312
// See https://kit.svelte.dev/docs/types#app // for information about these interfaces declare global { namespace App { // interface Error {} // interface Locals {} interface PageData { // Links to be displayed in the nav bar nav: [string, string][]; } // interface Platform {} } } export {};
5
bryanorellana/sb1-4r5wak
2d26930
pages/api/citas/[id].ts
TypeScript
www.github.com/bryanorellana/sb1-4r5wak/tree/main/pages/api/citas/[id].ts
https://raw.githubusercontent.com/bryanorellana/sb1-4r5wak/2d26930/pages/api/citas/%5Bid%5D.ts
bryanorellana/sb1-4r5wak 2d26930 pages/api/citas/[id].ts
true
200
1,411
import { NextApiRequest, NextApiResponse } from 'next'; import { getSession } from 'next-auth/react'; import { PrismaClient } from '@prisma/client'; import { sendConfirmationEmail } from '../../../utils/mailer'; const prisma = new PrismaClient(); export default async function handler(req: NextApiRequest, res: NextApi...
7
blaxsior/codesolveronline
7aef00a
backend/src/controller/initcode.controller.ts
TypeScript
www.github.com/blaxsior/codesolveronline/tree/main/backend/src/controller/initcode.controller.ts
https://raw.githubusercontent.com/blaxsior/codesolveronline/7aef00a/backend/src/controller/initcode.controller.ts
blaxsior/codesolveronline 7aef00a backend/src/controller/initcode.controller.ts
true
200
2,375
import { db } from "../db/index.db.js"; import { InitCode } from "@prisma/client"; import { Lang } from "../interfaces/input.interface.js"; /** * 초기화 코드의 타입 */ type Iinit = Omit<InitCode, "id" | "type"> & { type: string }; /** * 초기화를 위한 코드 */ const data: Iinit[] = [ { type: "c_cpp", code: `#include <s...
3
fcuenya/btcbets-amplify
3522aba
src/packages/core/data/useBtcPrice.ts
TypeScript
www.github.com/fcuenya/btcbets-amplify/tree/main/src/packages/core/data/useBtcPrice.ts
https://raw.githubusercontent.com/fcuenya/btcbets-amplify/3522aba/src/packages/core/data/useBtcPrice.ts
fcuenya/btcbets-amplify 3522aba src/packages/core/data/useBtcPrice.ts
true
200
813
import { useEffect } from "react"; import useWebSocket from "react-use-websocket"; import { Nullable } from '../util/types.d'; const COINBASE_WS_URL = 'wss://ws-feed.exchange.coinbase.com'; const COINBASE_WS_SUBSCRIBE_MSG = { "type": "subscribe", "product_ids": ["BTC-USD"], "channels": ["ticker"] }; cons...
2
MiffyAndKitty/BlogProject_Back
c15c679
src/middleware/userIdentifier.ts
TypeScript
www.github.com/MiffyAndKitty/BlogProject_Back/tree/main/src/middleware/userIdentifier.ts
https://raw.githubusercontent.com/MiffyAndKitty/BlogProject_Back/c15c679/src/middleware/userIdentifier.ts
MiffyAndKitty/BlogProject_Back c15c679 src/middleware/userIdentifier.ts
true
200
928
import '../config/env'; import { Request, Response, NextFunction } from 'express'; import { v4 as uuidv4 } from 'uuid'; export const userIdentifier = () => { return (req: Request, res: Response, next: NextFunction) => { const authHeader = req.headers.authorization; const authCookie = req.signedCookies.user; ...
0
keirosang/if
f76117f
packages/app/theme/dark/index.ts
TypeScript
www.github.com/keirosang/if/tree/main/packages/app/theme/dark/index.ts
https://raw.githubusercontent.com/keirosang/if/f76117f/packages/app/theme/dark/index.ts
keirosang/if f76117f packages/app/theme/dark/index.ts
true
200
1,231
export default { color_std: 'black', color_std_rgb: '0,0,0', color_contrast: 'white', color_contrast_rgb: '255,255,255', color_text: '#a2a5b9', color_text_rgb: '162,165,185', color_text_sub: 'rgba(162,165,185,0.72)', color_text_sublight: 'rgba(162,165,185,0.6)', color_text_grey: 'rgba(162,165,185,0.48)', col...
4
muhamedfazeel/checklist-main-api
e0c68a8
src/main.ts
TypeScript
www.github.com/muhamedfazeel/checklist-main-api/tree/main/src/main.ts
https://raw.githubusercontent.com/muhamedfazeel/checklist-main-api/e0c68a8/src/main.ts
muhamedfazeel/checklist-main-api e0c68a8 src/main.ts
true
200
1,953
import { RequestMethod, VersioningType } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { NestFactory } from '@nestjs/core'; import { FastifyAdapter, NestFastifyApplication, } from '@nestjs/platform-fastify'; import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'; import { n...
6
ger343/portfolioFrontend
f2c1e05
src/app/components/presentacion/editpresentacion.component.ts
TypeScript
www.github.com/ger343/portfolioFrontend/tree/main/src/app/components/presentacion/editpresentacion.component.ts
https://raw.githubusercontent.com/ger343/portfolioFrontend/f2c1e05/src/app/components/presentacion/editpresentacion.component.ts
ger343/portfolioFrontend f2c1e05 src/app/components/presentacion/editpresentacion.component.ts
true
200
1,185
import { Component, OnInit } from '@angular/core'; import { persona } from 'src/app/model/persona.model'; import { PersonaService } from 'src/app/service/persona.service'; import { ActivatedRoute, Router } from '@angular/router'; @Component({ selector: 'app-editpresentacion', templateUrl: './editpresentacion.comp...
5
VictorNorman/qr_attendance_app
1f0b093
src/app/home/home.page.ts
TypeScript
www.github.com/VictorNorman/qr_attendance_app/tree/main/src/app/home/home.page.ts
https://raw.githubusercontent.com/VictorNorman/qr_attendance_app/1f0b093/src/app/home/home.page.ts
VictorNorman/qr_attendance_app 1f0b093 src/app/home/home.page.ts
true
200
1,941
import { Component } from '@angular/core'; import { BarcodeScanner } from '@ionic-native/barcode-scanner/ngx'; import { CoursesService } from '../services/courses.service'; import { SubmissionService } from '../services/submission.service'; import { Storage } from '@ionic/storage'; @Component({ selector: 'app-home',...
3
Angular-OTUS/ToDoList-AnastasiyaIvanykina-
1b254b4
todo-app/src/app/components/task-control-panel/task-control-panel.component.ts
TypeScript
www.github.com/Angular-OTUS/ToDoList-AnastasiyaIvanykina-/tree/main/todo-app/src/app/components/task-control-panel/task-control-panel.component.ts
https://raw.githubusercontent.com/Angular-OTUS/ToDoList-AnastasiyaIvanykina-/1b254b4/todo-app/src/app/components/task-control-panel/task-control-panel.component.ts
Angular-OTUS/ToDoList-AnastasiyaIvanykina- 1b254b4 todo-app/src/app/components/task-control-panel/task-control-panel.component.ts
true
200
2,257
import { Component, EventEmitter, Output, ChangeDetectionStrategy, OnInit, OnDestroy, } from '@angular/core'; import { CommonModule } from '@angular/common'; import { TaskFilterComponent } from '../task-filter/task-filter.component'; import { FilterOption } from '../task-filter/filter-option.interface'; imp...
7
Gemini-API-Developer-Competition/gemai-api
825a4fe
functions/src/gemini/gemini.service.ts
TypeScript
www.github.com/Gemini-API-Developer-Competition/gemai-api/tree/main/functions/src/gemini/gemini.service.ts
https://raw.githubusercontent.com/Gemini-API-Developer-Competition/gemai-api/825a4fe/functions/src/gemini/gemini.service.ts
Gemini-API-Developer-Competition/gemai-api 825a4fe functions/src/gemini/gemini.service.ts
true
200
1,175
import { Injectable } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { GoogleGenerativeAI, ModelParams } from '@google/generative-ai'; @Injectable() export class GeminiService { private readonly client: GoogleGenerativeAI; private readonly modelParams: ModelParams; constructor(pri...
1
assis402/AngularHerokuTest
b4cea62
src/app/services/product-service.ts
TypeScript
www.github.com/assis402/AngularHerokuTest/tree/main/src/app/services/product-service.ts
https://raw.githubusercontent.com/assis402/AngularHerokuTest/b4cea62/src/app/services/product-service.ts
assis402/AngularHerokuTest b4cea62 src/app/services/product-service.ts
true
200
438
import { Injectable} from '@angular/core'; import { environment } from '../../environments/environment'; import { ServiceBase} from '../service-base/service-base'; import { ProductView } from '../components/product/models/product-view'; @Injectable() export class ProductService extends ServiceBase<ProductView> {...
2
moneyadviceservice/maps-apps
5d0c795
apps/money-adviser-network/utils/isInOfficeHours/isInOfficeHours.test.ts
TypeScript
www.github.com/moneyadviceservice/maps-apps/tree/main/apps/money-adviser-network/utils/isInOfficeHours/isInOfficeHours.test.ts
https://raw.githubusercontent.com/moneyadviceservice/maps-apps/5d0c795/apps/money-adviser-network/utils/isInOfficeHours/isInOfficeHours.test.ts
moneyadviceservice/maps-apps 5d0c795 apps/money-adviser-network/utils/isInOfficeHours/isInOfficeHours.test.ts
true
200
881
import { isInOfficeHours } from './isInOfficeHours'; const mockDate = (dateString: string) => { const RealDate = global.Date; global.Date = jest.fn( () => new RealDate(dateString), ) as unknown as DateConstructor; global.Date.now = RealDate.now; global.Date.parse = RealDate.parse; global.Date.UTC = R...
0
beaunus/datarithms-ts
c3b2924
src/algorithms/spiral-order/index.ts
TypeScript
www.github.com/beaunus/datarithms-ts/tree/main/src/algorithms/spiral-order/index.ts
https://raw.githubusercontent.com/beaunus/datarithms-ts/c3b2924/src/algorithms/spiral-order/index.ts
beaunus/datarithms-ts c3b2924 src/algorithms/spiral-order/index.ts
true
200
1,293
import { Matrix } from "../../types"; /** * Traverse the given matrix in spiral order. * * @param matrix 2-d array of elements to traverse in spiral order * @param [layer = 0] layer layer to traverse (0 is outermost layer) * * @example * * ```typescript * // Returns [1,2,3,6,9,8,7,4,5] * spiralOrder([ * [...
4
seila-plexus/prueba
e25c05a
src/app/core/interceptors/loading-handler.interceptor.spec.ts
TypeScript
www.github.com/seila-plexus/prueba/tree/main/src/app/core/interceptors/loading-handler.interceptor.spec.ts
https://raw.githubusercontent.com/seila-plexus/prueba/e25c05a/src/app/core/interceptors/loading-handler.interceptor.spec.ts
seila-plexus/prueba e25c05a src/app/core/interceptors/loading-handler.interceptor.spec.ts
true
200
2,822
import { TestBed } from '@angular/core/testing'; import { HttpInterceptorFn } from '@angular/common/http'; import { HttpClientTestingModule, HttpTestingController, provideHttpClientTesting } from '@angular/common/http/testing'; import { loadingHandlerInterceptor } from './loading-handler.interceptor'; import { provideH...
5
LUC4Slap/api-universidades-nest
1d62f22
src/universidades/module/module.controller.ts
TypeScript
www.github.com/LUC4Slap/api-universidades-nest/tree/main/src/universidades/module/module.controller.ts
https://raw.githubusercontent.com/LUC4Slap/api-universidades-nest/1d62f22/src/universidades/module/module.controller.ts
LUC4Slap/api-universidades-nest 1d62f22 src/universidades/module/module.controller.ts
true
200
667
import { Body, Controller, Delete, Get, Post, Query, UsePipes, ValidationPipe, } from '@nestjs/common'; import { ModuleService } from './module.service'; import { Universidade } from './interfaces/universidade.interface'; @Controller('universidades') export class ModuleController { constructor(privat...
6
shahanahmed86/angular-games-clip
750f83e
src/app/shared/tabs-container/tabs-container.component.ts
TypeScript
www.github.com/shahanahmed86/angular-games-clip/tree/main/src/app/shared/tabs-container/tabs-container.component.ts
https://raw.githubusercontent.com/shahanahmed86/angular-games-clip/750f83e/src/app/shared/tabs-container/tabs-container.component.ts
shahanahmed86/angular-games-clip 750f83e src/app/shared/tabs-container/tabs-container.component.ts
true
200
773
import { AfterContentInit, Component, ContentChildren, QueryList } from '@angular/core'; import { TabComponent } from '../tab/tab.component'; @Component({ selector: 'app-tabs-container', templateUrl: './tabs-container.component.html', styleUrls: ['./tabs-container.component.css'] }) export class TabsContainerCompon...
1
wamc1993/nala
8ccd8ef
src/services/employeeService.ts
TypeScript
www.github.com/wamc1993/nala/tree/main/src/services/employeeService.ts
https://raw.githubusercontent.com/wamc1993/nala/8ccd8ef/src/services/employeeService.ts
wamc1993/nala 8ccd8ef src/services/employeeService.ts
true
200
3,417
import { supabase } from "config/superbase"; import { EmployeeData, PeriodData } from "models/Employee"; import { UpsertParams, EmployeeTable } from "models/Database"; const bucketImages = import.meta.env.VITE_STORAGE_IMG_BUCKET; export const getOrganigramDataByPeriod = async ( period: number ): Promise<EmployeeData...
7
FinalVossler/Root-Front-Host
3ea4551
src/components/appComponents/elements/elementsBoard/elementsBoard.styles.ts
TypeScript
www.github.com/FinalVossler/Root-Front-Host/tree/main/src/components/appComponents/elements/elementsBoard/elementsBoard.styles.ts
https://raw.githubusercontent.com/FinalVossler/Root-Front-Host/3ea4551/src/components/appComponents/elements/elementsBoard/elementsBoard.styles.ts
FinalVossler/Root-Front-Host 3ea4551 src/components/appComponents/elements/elementsBoard/elementsBoard.styles.ts
true
200
3,052
import { createUseStyles } from "react-jss"; import { ITheme } from "roottypes"; const useStyles = createUseStyles((theme: ITheme) => ({ elementsBoardContainer: { display: "flex", flexDirection: "row", marginRight: 10, overflow: "auto", paddingTop: 10, paddingBottom: 40, fontSize: 14, ...
3
Strangedip/Portfolio
9fe67d5
src/app/ham-navbar/ham-navbar.component.ts
TypeScript
www.github.com/Strangedip/Portfolio/tree/main/src/app/ham-navbar/ham-navbar.component.ts
https://raw.githubusercontent.com/Strangedip/Portfolio/9fe67d5/src/app/ham-navbar/ham-navbar.component.ts
Strangedip/Portfolio 9fe67d5 src/app/ham-navbar/ham-navbar.component.ts
true
200
629
import { Component, HostListener, OnInit } from '@angular/core'; @Component({ selector: 'ham-navbar', templateUrl: './ham-navbar.component.html', styleUrls: ['./ham-navbar.component.scss'] }) export class HamNavbarComponent implements OnInit { constructor() { } ngOnInit(): void { } isNavbarClose: bool...
2
saturngod/NextJSTodo
5a3af3b
app/api/todos/route.ts
TypeScript
www.github.com/saturngod/NextJSTodo/tree/main/app/api/todos/route.ts
https://raw.githubusercontent.com/saturngod/NextJSTodo/5a3af3b/app/api/todos/route.ts
saturngod/NextJSTodo 5a3af3b app/api/todos/route.ts
true
200
490
import { NextResponse } from 'next/server'; import prisma from '@/lib/prisma'; export async function POST(request: Request) { const { title, listId } = await request.json(); //check listID exist const list = await prisma.list.findUnique({ where: { id: listId } }); if (!list) { return NextResponse.json({ su...
0
Pranay325/E-serve
550f0bb
frontEnd/src/app/google-api.service.ts
TypeScript
www.github.com/Pranay325/E-serve/tree/main/frontEnd/src/app/google-api.service.ts
https://raw.githubusercontent.com/Pranay325/E-serve/550f0bb/frontEnd/src/app/google-api.service.ts
Pranay325/E-serve 550f0bb frontEnd/src/app/google-api.service.ts
true
200
2,037
import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { AuthConfig, OAuthService } from 'angular-oauth2-oidc'; import { Observable, Subject } from 'rxjs'; const oAuthConfig: AuthConfig ={ issuer: 'https://accounts.google.com', strictDiscoveryDocumentVal...
4
FalehOussama/blassa.net
cab142b
BlassaSln/BlassaFront/src/app/pages/loading-screen/loading-screen.page.ts
TypeScript
www.github.com/FalehOussama/blassa.net/tree/main/BlassaSln/BlassaFront/src/app/pages/loading-screen/loading-screen.page.ts
https://raw.githubusercontent.com/FalehOussama/blassa.net/cab142b/BlassaSln/BlassaFront/src/app/pages/loading-screen/loading-screen.page.ts
FalehOussama/blassa.net cab142b BlassaSln/BlassaFront/src/app/pages/loading-screen/loading-screen.page.ts
true
200
2,077
import { Component, OnDestroy, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { AnnonceStorageService } from 'src/app/services/annonce-storage.service'; import { AnnonceService } from 'src/app/services/annonce.service'; import { TokenStorageService } from 'src/app/servic...
6
vladislavRykov/music-social-media-next14
d47fa57
actions/auth.ts
TypeScript
www.github.com/vladislavRykov/music-social-media-next14/tree/main/actions/auth.ts
https://raw.githubusercontent.com/vladislavRykov/music-social-media-next14/d47fa57/actions/auth.ts
vladislavRykov/music-social-media-next14 d47fa57 actions/auth.ts
true
200
5,858
'use server'; import { sendEmail } from '@/lib/mails'; import { mongooseConnect } from '@/lib/mongoose'; import { createSession, deleteSession, updateSession } from '@/lib/sessions'; import { generateForgotPassVerifyToken, generateVerifyToken } from '@/lib/verifyToken'; import { Models } from '@/models/models'; import...
7
risetarnished/leetcode-monthly-challenge-ts
9eab1ec
tests/july/21-word-search/WordSearch.spec.ts
TypeScript
www.github.com/risetarnished/leetcode-monthly-challenge-ts/tree/main/tests/july/21-word-search/WordSearch.spec.ts
https://raw.githubusercontent.com/risetarnished/leetcode-monthly-challenge-ts/9eab1ec/tests/july/21-word-search/WordSearch.spec.ts
risetarnished/leetcode-monthly-challenge-ts 9eab1ec tests/july/21-word-search/WordSearch.spec.ts
true
200
1,115
import { exist } from '../../../src/july/21-word-search/WordSearch'; describe('Word Search Tests', () => { const board: string[][] = [ ['A', 'B', 'C', 'E'], ['S', 'F', 'C', 'S'], ['A', 'D', 'E', 'E'], ]; afterEach(() => { expect.hasAssertions(); }); it('should not find the word when the mat...
1
carloscm02/AgendaDiexeStore
5f951b6
src/views/add.views.ts
TypeScript
www.github.com/carloscm02/AgendaDiexeStore/tree/main/src/views/add.views.ts
https://raw.githubusercontent.com/carloscm02/AgendaDiexeStore/5f951b6/src/views/add.views.ts
carloscm02/AgendaDiexeStore 5f951b6 src/views/add.views.ts
true
200
1,892
import { Contact } from "../models/contact.model"; export class AddView{ constructor(){ this.morePhone.addEventListener("click", () => { this.morePhone.insertAdjacentHTML("beforebegin", `<input type="text" name="phone" class="phone" placeholder="Telefono">`); }); } private nam...
0
bitfocus/companion-module-generic-emberplus
1421151
src/logger.ts
TypeScript
www.github.com/bitfocus/companion-module-generic-emberplus/tree/main/src/logger.ts
https://raw.githubusercontent.com/bitfocus/companion-module-generic-emberplus/1421151/src/logger.ts
bitfocus/companion-module-generic-emberplus 1421151 src/logger.ts
true
200
2,815
import { type DropdownChoice, InstanceBase } from '@companion-module/base' import type { EmberPlusConfig as ModuleConfig } from './config.js' export enum LoggerLevel { Error = 0, Warning = 1, Information = 2, Debug = 3, Console = 4, } export const loggerLevelChoices: DropdownChoice[] = [ // { id: LoggerLevel.Er...
2
FrancoGianello/angularUdemy
9862374
05heroesApp/src/app/auth/guards/public.guard.ts
TypeScript
www.github.com/FrancoGianello/angularUdemy/tree/main/05heroesApp/src/app/auth/guards/public.guard.ts
https://raw.githubusercontent.com/FrancoGianello/angularUdemy/9862374/05heroesApp/src/app/auth/guards/public.guard.ts
FrancoGianello/angularUdemy 9862374 05heroesApp/src/app/auth/guards/public.guard.ts
true
200
1,170
import { Injectable } from '@angular/core'; import { AuthService } from '../services/auth.service'; import { ActivatedRouteSnapshot, CanActivate, CanMatch, Route, Router, RouterStateSnapshot, UrlSegment, UrlTree } from '@angular/router'; import { Observable, map, tap } from 'rxjs'; @Injectable({providedIn: 'root'}) ex...
3
kamranahmed1110/nest01
b51784b
src/auth/file.service.ts
TypeScript
www.github.com/kamranahmed1110/nest01/tree/main/src/auth/file.service.ts
https://raw.githubusercontent.com/kamranahmed1110/nest01/b51784b/src/auth/file.service.ts
kamranahmed1110/nest01 b51784b src/auth/file.service.ts
true
200
786
import { Injectable } from '@nestjs/common'; import * as multer from 'multer'; import * as path from 'path'; @Injectable() export class FileService { public static multerConfig = { storage: multer.diskStorage({ destination: './uploads', filename: (req, file, callback) => { const ext = path.ex...
4
fahadahmed/online-web-bff
33d41b0
packages/spark-bff/src/schema/queries/me/profile/profile.ts
TypeScript
www.github.com/fahadahmed/online-web-bff/tree/main/packages/spark-bff/src/schema/queries/me/profile/profile.ts
https://raw.githubusercontent.com/fahadahmed/online-web-bff/33d41b0/packages/spark-bff/src/schema/queries/me/profile/profile.ts
fahadahmed/online-web-bff 33d41b0 packages/spark-bff/src/schema/queries/me/profile/profile.ts
true
200
1,947
import { objectType, extendType, enumType } from 'nexus'; const MFAOption = enumType({ name: 'mfaOption', members: ['none', 'email'], description: 'Multi factor authentication', }); const Origin = enumType({ name: 'Origin', members: ['MySpark', 'MYSB', 'Facebook', 'Google', 'Apple'], description: 'Origin ...
6
jcavendish/gostack-gobarber
7559f40
src/shared/container/providers/EmailProvider/fakes/FakeEmailProvider.ts
TypeScript
www.github.com/jcavendish/gostack-gobarber/tree/main/src/shared/container/providers/EmailProvider/fakes/FakeEmailProvider.ts
https://raw.githubusercontent.com/jcavendish/gostack-gobarber/7559f40/src/shared/container/providers/EmailProvider/fakes/FakeEmailProvider.ts
jcavendish/gostack-gobarber 7559f40 src/shared/container/providers/EmailProvider/fakes/FakeEmailProvider.ts
true
200
344
import ISendEmailProvider from '../models/IEmailProvider'; import ISendMailDTO from '../dtos/ISendMailDTO'; class FakeEmailProvider implements ISendEmailProvider { sentMails: ISendMailDTO[] = []; public async sendEmail(emailData: ISendMailDTO): Promise<void> { this.sentMails.push(emailData); } } export def...
1
ram33sul/worker-hiring-portal
9b98b03
authentication/auth.ts
TypeScript
www.github.com/ram33sul/worker-hiring-portal/tree/main/authentication/auth.ts
https://raw.githubusercontent.com/ram33sul/worker-hiring-portal/9b98b03/authentication/auth.ts
ram33sul/worker-hiring-portal 9b98b03 authentication/auth.ts
true
200
596
import { Request, Response, NextFunction } from 'express'; import { verifyUserService } from '../services/account'; export const auth = (req: any, res: Response, next: NextFunction) => { const token = req.headers["authorization"] ?? req.body["authorization"] ?? req.query["authorization"]; verifyUserService({to...
7
martinpanov/Gallery
71a4032
src/hooks/useIntersectionObserver.ts
TypeScript
www.github.com/martinpanov/Gallery/tree/main/src/hooks/useIntersectionObserver.ts
https://raw.githubusercontent.com/martinpanov/Gallery/71a4032/src/hooks/useIntersectionObserver.ts
martinpanov/Gallery 71a4032 src/hooks/useIntersectionObserver.ts
true
200
1,423
import { MutableRefObject, useEffect, useState } from "react"; interface Images { name: string; tags: string[]; category: string; } interface useIntersectionObserverProps { imagesRef: MutableRefObject<(HTMLDivElement | null)[]>; screenSize: string; displayedImages: Images[]; } export default ...
0
Unarray/portfolio
2926037
src/lib/config/experiences/type.ts
TypeScript
www.github.com/Unarray/portfolio/tree/main/src/lib/config/experiences/type.ts
https://raw.githubusercontent.com/Unarray/portfolio/2926037/src/lib/config/experiences/type.ts
Unarray/portfolio 2926037 src/lib/config/experiences/type.ts
true
200
368
import type { Config } from "$lib/config/technologie"; import type { Dayjs } from "dayjs"; import type { ContractType } from "./const.ts"; export type Experience = { company: string; contract: ContractType; position: string; description: string[]; url?: string; date: { start: Dayjs; end?: Dayjs; ...
2
code2nguyen/web-components
9e46958
packages/playground/src/json-form/json-form.ts
TypeScript
www.github.com/code2nguyen/web-components/tree/main/packages/playground/src/json-form/json-form.ts
https://raw.githubusercontent.com/code2nguyen/web-components/9e46958/packages/playground/src/json-form/json-form.ts
code2nguyen/web-components 9e46958 packages/playground/src/json-form/json-form.ts
true
200
1,483
import { LitElement, html, css, type TemplateResult } from 'lit' import { customElement, property } from 'lit/decorators.js' import type { ComponentInstanceState, FormState } from './form-state' import type { FormConfig } from './form-config' import type { Attribute, CustomElement } from 'custom-elements-manifest' impo...
3
minhdao1302/boost-manager-dashboard
7d6bb72
src/components/chat/types.ts
TypeScript
www.github.com/minhdao1302/boost-manager-dashboard/tree/main/src/components/chat/types.ts
https://raw.githubusercontent.com/minhdao1302/boost-manager-dashboard/7d6bb72/src/components/chat/types.ts
minhdao1302/boost-manager-dashboard 7d6bb72 src/components/chat/types.ts
true
200
849
export interface Message { id: string; role: "user" | "assistant"; content: string; timestamp: Date; } export type ToastType = "default" | "destructive"; export interface ChatResponse { response: string; toastInfo?: { message: string; type: ToastType; } } export interface TouchpointResponse { ...
4
dazyhero/aptor
3a9c6cb
src/database/schemas/services.ts
TypeScript
www.github.com/dazyhero/aptor/tree/main/src/database/schemas/services.ts
https://raw.githubusercontent.com/dazyhero/aptor/3a9c6cb/src/database/schemas/services.ts
dazyhero/aptor 3a9c6cb src/database/schemas/services.ts
true
200
441
import { pgTable, serial, varchar, integer, json } from 'drizzle-orm/pg-core'; import { businesses } from './businesses'; export const services = pgTable('services', { id: serial('id').primaryKey(), businessId: integer('business_id').references(() => businesses.id), // FK to businesses name: varchar('name', { le...
1
sezaras85/5ire-js-api
7abdb15
packages/typegen/src/generate/consts.ts
TypeScript
www.github.com/sezaras85/5ire-js-api/tree/main/packages/typegen/src/generate/consts.ts
https://raw.githubusercontent.com/sezaras85/5ire-js-api/7abdb15/packages/typegen/src/generate/consts.ts
sezaras85/5ire-js-api 7abdb15 packages/typegen/src/generate/consts.ts
true
200
2,900
// Copyright 2017-2021 @polkadot/typegen authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { Metadata } from '@5ire/types/metadata/Metadata'; import type { ExtraTypes } from './types'; import Handlebars from 'handlebars'; import lookupDefinitions from '@5ire/types/augment/lookup/definitions';...
0
ShresthaShome/ai-helper-chatbot
69c3c97
src/lib/startNewChat.ts
TypeScript
www.github.com/ShresthaShome/ai-helper-chatbot/tree/main/src/lib/startNewChat.ts
https://raw.githubusercontent.com/ShresthaShome/ai-helper-chatbot/69c3c97/src/lib/startNewChat.ts
ShresthaShome/ai-helper-chatbot 69c3c97 src/lib/startNewChat.ts
true
200
1,324
import client from "@/graphql/apolloClient"; import { INSERT_CHAT_SESSION, INSERT_GUEST, INSERT_MESSAGE, } from "@/graphql/mutations/mutations"; import { InsertChatSessionResponse, InsertChatSessionVariables, InsertGuestResponse, InsertGuestVariables, } from "@/types/types"; export default async function...
2
pagers-org/Effective-TypeScript
c72a3c6
sample/ch03-inference/item-27-well-typed-libs/well-typed-libs-08.ts
TypeScript
www.github.com/pagers-org/Effective-TypeScript/tree/main/sample/ch03-inference/item-27-well-typed-libs/well-typed-libs-08.ts
https://raw.githubusercontent.com/pagers-org/Effective-TypeScript/c72a3c6/sample/ch03-inference/item-27-well-typed-libs/well-typed-libs-08.ts
pagers-org/Effective-TypeScript c72a3c6 sample/ch03-inference/item-27-well-typed-libs/well-typed-libs-08.ts
true
200
392
// requires node modules: @types/lodash const csvData = '...'; const rawRows = csvData.split('\n'); const headers = rawRows[0].split(','); import _ from 'lodash'; interface BasketballPlayer { name: string; team: string; salary: number; } declare const rosters: { [team: string]: BasketballPlayer[] }; const allPla...
7
phankhanhngan/Engsistant
9645c73
src/modules/aws/aws.module.ts
TypeScript
www.github.com/phankhanhngan/Engsistant/tree/main/src/modules/aws/aws.module.ts
https://raw.githubusercontent.com/phankhanhngan/Engsistant/9645c73/src/modules/aws/aws.module.ts
phankhanhngan/Engsistant 9645c73 src/modules/aws/aws.module.ts
true
200
512
import { Module } from '@nestjs/common'; import { AWSService } from './aws.service'; import { UsersService } from '../users/users.service'; import { MikroOrmModule } from '@mikro-orm/nestjs'; import { User } from 'src/entities'; import { AwsController } from './aws.controller'; // import { StripeService } from '../stri...
4
CedricKL/brian-folio
69c4c46
src/app/app.component.ts
TypeScript
www.github.com/CedricKL/brian-folio/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/CedricKL/brian-folio/69c4c46/src/app/app.component.ts
CedricKL/brian-folio 69c4c46 src/app/app.component.ts
true
200
802
import { Component } from '@angular/core'; import { RouterOutlet } from '@angular/router'; import { NavBarComponent } from "./nav-bar/nav-bar.component"; import { HomeSectionComponent } from "./home-section/home-section.component"; import { AboutSectionComponent } from "./about-section/about-section.component"; import ...
3
Baptiste-Fournel/Front-seminaire
79f2237
src/app/model/weapon/weapon.model.ts
TypeScript
www.github.com/Baptiste-Fournel/Front-seminaire/tree/main/src/app/model/weapon/weapon.model.ts
https://raw.githubusercontent.com/Baptiste-Fournel/Front-seminaire/79f2237/src/app/model/weapon/weapon.model.ts
Baptiste-Fournel/Front-seminaire 79f2237 src/app/model/weapon/weapon.model.ts
true
200
1,070
import { Categorie } from '../categorie/categorie.model'; export class Weapon { public weaponId: number; private weaponName: String; private weaponPrice: number; private weaponCategory: Categorie; constructor(data: any) { this.weaponId = data.weaponId ? data.weaponId : null; this.weaponName = data.w...
6
pedroinsa/nueva-serena
8e9f0df
src/util/i18next.ts
TypeScript
www.github.com/pedroinsa/nueva-serena/tree/main/src/util/i18next.ts
https://raw.githubusercontent.com/pedroinsa/nueva-serena/8e9f0df/src/util/i18next.ts
pedroinsa/nueva-serena 8e9f0df src/util/i18next.ts
true
200
554
import i18n from "i18next"; import { initReactI18next, } from "react-i18next"; import es from "../languages/es/global.json" import en from "../languages/en/global.json" i18n.use(initReactI18next).init({ resources: { es: { translation: es }, en: { translation: en ...
1
aroldayson/adminUI
62e6668
src/app/token.interceptor.ts
TypeScript
www.github.com/aroldayson/adminUI/tree/main/src/app/token.interceptor.ts
https://raw.githubusercontent.com/aroldayson/adminUI/62e6668/src/app/token.interceptor.ts
aroldayson/adminUI 62e6668 src/app/token.interceptor.ts
true
200
323
import { HttpInterceptorFn } from '@angular/common/http'; export const tokenInterceptor: HttpInterceptorFn = (req, next) => { // debugger const token = window.localStorage.getItem('token'); const cloneReq = req.clone({ setHeaders: { Authorization: `Bearer ${token}` } }) return next(cloneReq); ...
2
Kenzie-Academy-Brasil-Developers/m4-sprint5-kimoveis-DebCorrea-2
0e9ae52
src/controllers/property.controllers.ts
TypeScript
www.github.com/Kenzie-Academy-Brasil-Developers/m4-sprint5-kimoveis-DebCorrea-2/tree/main/src/controllers/property.controllers.ts
https://raw.githubusercontent.com/Kenzie-Academy-Brasil-Developers/m4-sprint5-kimoveis-DebCorrea-2/0e9ae52/src/controllers/property.controllers.ts
Kenzie-Academy-Brasil-Developers/m4-sprint5-kimoveis-DebCorrea-2 0e9ae52 src/controllers/property.controllers.ts
true
200
752
import { Request, Response } from "express"; import createPropertyService from "../services/properties/createProperty.service"; import listPropertiesService from "../services/properties/listProperties.service"; const createPropertyController = async (req: Request, res: Response) => { const { value, size, address, c...
0
Atefnouri/angular-qr-generator
6627f78
src/environments/environment.prod.ts
TypeScript
www.github.com/Atefnouri/angular-qr-generator/tree/main/src/environments/environment.prod.ts
https://raw.githubusercontent.com/Atefnouri/angular-qr-generator/6627f78/src/environments/environment.prod.ts
Atefnouri/angular-qr-generator 6627f78 src/environments/environment.prod.ts
true
200
484
export const environment = { production: true, firebaseConfig : { apiKey: "AIzaSyDUHUWZhr-smCjx_YNm06Iy8jc14uZ8oK8", authDomain: "angualrqrimage.firebaseapp.com", databaseURL: "https://angualrqrimage-default-rtdb.europe-west1.firebasedatabase.app", projectId: "angualrqrimage", storageBucket: "a...
4
priyaduggal/benfit_ionic_lat_code
c171519
src/app/weekplanning/weekplanning.module.ts
TypeScript
www.github.com/priyaduggal/benfit_ionic_lat_code/tree/main/src/app/weekplanning/weekplanning.module.ts
https://raw.githubusercontent.com/priyaduggal/benfit_ionic_lat_code/c171519/src/app/weekplanning/weekplanning.module.ts
priyaduggal/benfit_ionic_lat_code c171519 src/app/weekplanning/weekplanning.module.ts
true
200
581
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { WeekplanningPageRoutingModule } from './weekplanning-routing.module'; import { WeekplanningPage } from './weekplanning.page'; ...
6
Rajesh-Dukka/Angular-Todo
709571b
src/app/app.module.ts
TypeScript
www.github.com/Rajesh-Dukka/Angular-Todo/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/Rajesh-Dukka/Angular-Todo/709571b/src/app/app.module.ts
Rajesh-Dukka/Angular-Todo 709571b src/app/app.module.ts
true
200
1,121
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { TodoformComponent } from './todoform/todoform.component'; import { TodolistComponent } from './todolist/...
3
treetea-bro/nest-prisma-tutorial
a12c18f
src/users/posts/posts.service.ts
TypeScript
www.github.com/treetea-bro/nest-prisma-tutorial/tree/main/src/users/posts/posts.service.ts
https://raw.githubusercontent.com/treetea-bro/nest-prisma-tutorial/a12c18f/src/users/posts/posts.service.ts
treetea-bro/nest-prisma-tutorial a12c18f src/users/posts/posts.service.ts
true
200
1,264
import { Injectable } from '@nestjs/common'; import { CreatePostInput } from './dto/create-post.input'; import { UpdatePostInput } from './dto/update-post.input'; import { PrismaService } from 'src/prisma/prisma.service'; import { CreateGroupPostInput } from './dto/create-group-post.input'; @Injectable() export class ...
7
oriondesign2015/n8n-nodes-notificame-hub
4651565
nodes/NotificaMeHub/fields/whatsapp/EnviarMensagemTexto.fields.ts
TypeScript
www.github.com/oriondesign2015/n8n-nodes-notificame-hub/tree/main/nodes/NotificaMeHub/fields/whatsapp/EnviarMensagemTexto.fields.ts
https://raw.githubusercontent.com/oriondesign2015/n8n-nodes-notificame-hub/4651565/nodes/NotificaMeHub/fields/whatsapp/EnviarMensagemTexto.fields.ts
oriondesign2015/n8n-nodes-notificame-hub 4651565 nodes/NotificaMeHub/fields/whatsapp/EnviarMensagemTexto.fields.ts
true
200
1,019
import { INodeProperties } from 'n8n-workflow'; export const enviarMensagemTextoFields: INodeProperties[] = [ { displayName: 'Token Do Canal', name: 'channelToken', type: 'string', typeOptions: { password: true }, required: true, default: '', description: 'Token do canal do WhatsApp', displayOptions: ...
1
BelgianNoise/dl-utils
c81feab
dl-queue/src/handlers/get-queue.ts
TypeScript
www.github.com/BelgianNoise/dl-utils/tree/main/dl-queue/src/handlers/get-queue.ts
https://raw.githubusercontent.com/BelgianNoise/dl-utils/c81feab/dl-queue/src/handlers/get-queue.ts
BelgianNoise/dl-utils c81feab dl-queue/src/handlers/get-queue.ts
true
200
1,213
import { Request, Response } from 'express'; import { getPool } from '../utils/database'; export interface GetQueueRequestBody { list: string[] | undefined; } export async function getQueueHandler( req: Request, res: Response, ): Promise<void> { const contentType = req.get('Content-Type'); if (contentType !...
5
solana-labs/interns-codehub
ac0684a
infinity-pools/scripts/src/actions/open-trade-position.ts
TypeScript
www.github.com/solana-labs/interns-codehub/tree/main/infinity-pools/scripts/src/actions/open-trade-position.ts
https://raw.githubusercontent.com/solana-labs/interns-codehub/ac0684a/infinity-pools/scripts/src/actions/open-trade-position.ts
solana-labs/interns-codehub ac0684a infinity-pools/scripts/src/actions/open-trade-position.ts
true
200
9,076
import { Jupiter } from '@jup-ag/core' import { Percentage } from '@orca-so/common-sdk' import { PoolUtil, toTokenAmount } from '@orca-so/whirlpools-sdk' import { ASSOCIATED_TOKEN_PROGRAM_ID, TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync, } from '@solana/spl-token' import { SYSVAR_RENT_PUBKEY, SystemProgram...
0
Glen-Gal/Tick
9d66329
app/(auth)/login/action.ts
TypeScript
www.github.com/Glen-Gal/Tick/tree/main/app/(auth)/login/action.ts
https://raw.githubusercontent.com/Glen-Gal/Tick/9d66329/app/%28auth%29/login/action.ts
Glen-Gal/Tick 9d66329 app/(auth)/login/action.ts
true
200
1,182
'use server'; import { revalidatePath } from 'next/cache'; import { redirect } from 'next/navigation'; import { createClient } from '@/utils/supabase/server'; export async function emailLogin(formData: FormData) { const supabase = await createClient(); // type-casting here for convenience // in practice, you ...
2
haseebkhan9081/ManagementSync
ca1fce9
app/api/student/fine/route.ts
TypeScript
www.github.com/haseebkhan9081/ManagementSync/tree/main/app/api/student/fine/route.ts
https://raw.githubusercontent.com/haseebkhan9081/ManagementSync/ca1fce9/app/api/student/fine/route.ts
haseebkhan9081/ManagementSync ca1fce9 app/api/student/fine/route.ts
true
200
3,412
export const dynamic = 'force-dynamic'; import client from "@/lib/prismadb"; import { auth } from "@clerk/nextjs"; import { format } from "date-fns"; import { NextResponse } from "next/server"; export async function GET(){ try{ const {userId}=auth(); const today=new Date(); const formattedDate=format(today,'dd.MM.yy...
6
amd313/jhipster-sample-application
4eb2d00
src/main/webapp/app/shared/model/category.model.ts
TypeScript
www.github.com/amd313/jhipster-sample-application/tree/main/src/main/webapp/app/shared/model/category.model.ts
https://raw.githubusercontent.com/amd313/jhipster-sample-application/4eb2d00/src/main/webapp/app/shared/model/category.model.ts
amd313/jhipster-sample-application 4eb2d00 src/main/webapp/app/shared/model/category.model.ts
true
200
338
import { IService } from 'app/shared/model/service.model'; export interface ICategory { id?: number; name?: string; description?: string; services?: IService[]; } export class Category implements ICategory { constructor(public id?: number, public name?: string, public description?: string, public services?:...
3
DSalamanca94/Parcial
dd04af5
src/aeropuerto-aerolinea/aeropuerto-aerolinea.module.ts
TypeScript
www.github.com/DSalamanca94/Parcial/tree/main/src/aeropuerto-aerolinea/aeropuerto-aerolinea.module.ts
https://raw.githubusercontent.com/DSalamanca94/Parcial/dd04af5/src/aeropuerto-aerolinea/aeropuerto-aerolinea.module.ts
DSalamanca94/Parcial dd04af5 src/aeropuerto-aerolinea/aeropuerto-aerolinea.module.ts
true
200
642
import { Module } from '@nestjs/common'; import { AeropuertoAerolineaService } from './aeropuerto-aerolinea.service'; import { AeropuertoEntity } from 'src/aeropuerto/aeropuerto.entity/aeropuerto.entity'; import { AerolineaEntity } from 'src/aerolinea/aerolinea.entity/aerolinea.entity'; import { TypeOrmModule } from '@...
4
newyork-anthonyng/guess-the-move
b86a6bb
src/app/guess/[gameId]/machine.ts
TypeScript
www.github.com/newyork-anthonyng/guess-the-move/tree/main/src/app/guess/[gameId]/machine.ts
https://raw.githubusercontent.com/newyork-anthonyng/guess-the-move/b86a6bb/src/app/guess/%5BgameId%5D/machine.ts
newyork-anthonyng/guess-the-move b86a6bb src/app/guess/[gameId]/machine.ts
true
200
4,313
import { assign, createMachine } from 'xstate'; import { CustomChessConfig, getMovesFromPgn } from './utils'; import { Color, COLORS } from './utils'; const EVALUATE_GAME_URL = '/api/evaluate'; function getEvaluation(uci: string, gameId: string) { return fetch(`${EVALUATE_GAME_URL}/${gameId}`, { method: 'POST'...
7