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
Snehadugyala062000/BookApp
8192044
src/app/orders/orders.module.ts
TypeScript
www.github.com/Snehadugyala062000/BookApp/tree/main/src/app/orders/orders.module.ts
https://raw.githubusercontent.com/Snehadugyala062000/BookApp/8192044/src/app/orders/orders.module.ts
Snehadugyala062000/BookApp 8192044 src/app/orders/orders.module.ts
true
200
665
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { MyordersComponent } from '../myorders/myorders.component'; import { HttpClientModule } from '@angular/common/http'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { OrderRoutingModule } from ...
0
vilcadev/mapsApp
c44b349
src/app/alone/pages/alone-page/alone-page.component.ts
TypeScript
www.github.com/vilcadev/mapsApp/tree/main/src/app/alone/pages/alone-page/alone-page.component.ts
https://raw.githubusercontent.com/vilcadev/mapsApp/c44b349/src/app/alone/pages/alone-page/alone-page.component.ts
vilcadev/mapsApp c44b349 src/app/alone/pages/alone-page/alone-page.component.ts
true
200
494
import { Component } from '@angular/core'; // import { CommonModule } from '@angular/common'; import { CounterAloneComponent } from '../../components/counter-alone/counter-alone.component'; import { SideMenuComponent } from '../../components/side-menu/side-menu.component'; @Component({ standalone: true, imports:[...
2
serraguti/primerangular2022
0a962db
src/components/deportes/deportes.component.ts
TypeScript
www.github.com/serraguti/primerangular2022/tree/main/src/components/deportes/deportes.component.ts
https://raw.githubusercontent.com/serraguti/primerangular2022/0a962db/src/components/deportes/deportes.component.ts
serraguti/primerangular2022 0a962db src/components/deportes/deportes.component.ts
true
200
435
import {Component} from '@angular/core'; @Component({ selector: "app-deportes", templateUrl: "./deportes.component.html", styleUrls: ["./deportes.component.css"] }) export class DeportesComponent { public sports: Array<string>; public numeros: Array<number>; constructor() { this.numer...
1
Cascou/ethereum-challenges
c5d8a1b
capture-the-ether/token-sale/10-TokenSale.test.ts
TypeScript
www.github.com/Cascou/ethereum-challenges/tree/main/capture-the-ether/token-sale/10-TokenSale.test.ts
https://raw.githubusercontent.com/Cascou/ethereum-challenges/c5d8a1b/capture-the-ether/token-sale/10-TokenSale.test.ts
Cascou/ethereum-challenges c5d8a1b capture-the-ether/token-sale/10-TokenSale.test.ts
true
200
1,339
import { SignerWithAddress } from '@nomiclabs/hardhat-ethers/signers'; import { expect } from 'chai'; import { Contract } from 'ethers'; import { ethers } from 'hardhat'; const { utils } = ethers; describe('TokenSaleChallenge', () => { let target: Contract; let deployer: SignerWithAddress; let attacker: SignerWi...
5
kiltro-dev/nestjs-ms-products
3f05eb1
src/products/entities/product.entity.ts
TypeScript
www.github.com/kiltro-dev/nestjs-ms-products/tree/main/src/products/entities/product.entity.ts
https://raw.githubusercontent.com/kiltro-dev/nestjs-ms-products/3f05eb1/src/products/entities/product.entity.ts
kiltro-dev/nestjs-ms-products 3f05eb1 src/products/entities/product.entity.ts
true
200
561
interface UpdateWithOptions { name?: string; description: string; price: number; } export class Product { // public id: string; // public name: string; // public description?: string; // public price: number; constructor( public id: string, public name: string, public price: number,...
7
DaaimAliSheikh/Meet-Me-AI-chat-app
8911693
socket-server/src/lib/passportStrategies.ts
TypeScript
www.github.com/DaaimAliSheikh/Meet-Me-AI-chat-app/tree/main/socket-server/src/lib/passportStrategies.ts
https://raw.githubusercontent.com/DaaimAliSheikh/Meet-Me-AI-chat-app/8911693/socket-server/src/lib/passportStrategies.ts
DaaimAliSheikh/Meet-Me-AI-chat-app 8911693 socket-server/src/lib/passportStrategies.ts
true
200
3,370
import { Strategy as PassportLocalStrategy } from "passport-local"; import { Strategy as JwtStrategy, ExtractJwt } from "passport-jwt"; import { Strategy as GoogleStrategy } from "passport-google-oauth20"; import bcrypt from "bcryptjs"; import User from "../models/user.model"; import sendVerifyToken from "./sendVerify...
3
UnUniFi/web-apps
8867465
projects/portal/src/app/pages/derivatives/positions/positions.component.ts
TypeScript
www.github.com/UnUniFi/web-apps/tree/main/projects/portal/src/app/pages/derivatives/positions/positions.component.ts
https://raw.githubusercontent.com/UnUniFi/web-apps/8867465/projects/portal/src/app/pages/derivatives/positions/positions.component.ts
UnUniFi/web-apps 8867465 projects/portal/src/app/pages/derivatives/positions/positions.component.ts
true
200
2,404
import { BankQueryService } from '../../../models/cosmos/bank.query.service'; import { DerivativesApplicationService } from '../../../models/derivatives/derivatives.application.service'; import { DerivativesQueryService } from '../../../models/derivatives/derivatives.query.service'; import { PricefeedQueryService } fro...
6
Mawuli87/Nodejs-MySql-Rest-Api
35bbcff
src/seeder/role.seeder.ts
TypeScript
www.github.com/Mawuli87/Nodejs-MySql-Rest-Api/tree/main/src/seeder/role.seeder.ts
https://raw.githubusercontent.com/Mawuli87/Nodejs-MySql-Rest-Api/35bbcff/src/seeder/role.seeder.ts
Mawuli87/Nodejs-MySql-Rest-Api 35bbcff src/seeder/role.seeder.ts
true
200
1,604
import { Permission } from "../entity/permission.entity"; import { Role } from "../entity/role.entity"; import {AppDataSource} from "../index"; AppDataSource.initialize() .then(async (dataSource) => { const permissionRepository = dataSource.getRepository(Permission); const perms = [ 'v...
4
sachinraja/trpc-playground
69ff694
packages/trpc-playground/src/zod-resolve-types.ts
TypeScript
www.github.com/sachinraja/trpc-playground/tree/main/packages/trpc-playground/src/zod-resolve-types.ts
https://raw.githubusercontent.com/sachinraja/trpc-playground/69ff694/packages/trpc-playground/src/zod-resolve-types.ts
sachinraja/trpc-playground 69ff694 packages/trpc-playground/src/zod-resolve-types.ts
true
200
2,096
import { ResolvedRouterSchema } from '@trpc-playground/types' import { AnyProcedure, AnyRouter } from '@trpc/server' import lodash from 'lodash' import { AnyZodObject, z, ZodAny } from 'zod' import { getProcedureSchemas } from './get-default-input' // eslint-disable-next-line @typescript-eslint/no-explicit-any export ...
0
Markish2000/Angular-AuthApp
f6f717e
src/app/dashboard/dashboard.module.ts
TypeScript
www.github.com/Markish2000/Angular-AuthApp/tree/main/src/app/dashboard/dashboard.module.ts
https://raw.githubusercontent.com/Markish2000/Angular-AuthApp/f6f717e/src/app/dashboard/dashboard.module.ts
Markish2000/Angular-AuthApp f6f717e src/app/dashboard/dashboard.module.ts
true
200
426
// Angular import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; // Components import { DashboardLayoutComponent } from './layouts/dashboard-layout/dashboard-layout.component'; import { DashboardRoutingModule } from './dashboard-routing.module'; @NgModule({ declarations: [Dashboa...
7
Rahul327Agarwal/AmuraHealth
92208fd
src/Components/Registration/ThankYouPage/ThankYouPage.styles.ts
TypeScript
www.github.com/Rahul327Agarwal/AmuraHealth/tree/main/src/Components/Registration/ThankYouPage/ThankYouPage.styles.ts
https://raw.githubusercontent.com/Rahul327Agarwal/AmuraHealth/92208fd/src/Components/Registration/ThankYouPage/ThankYouPage.styles.ts
Rahul327Agarwal/AmuraHealth 92208fd src/Components/Registration/ThankYouPage/ThankYouPage.styles.ts
true
200
907
import { makeStyles } from "tss-react/mui"; export const useStyles = makeStyles()((theme) => ({ mainCon: { height: "100vh", width: "100%", display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", color: "black", backgroundColor: "white", }, centerB...
3
InvisibleDuckC/TeLlevoAPP
57fde47
src/app/home/home.page.ts
TypeScript
www.github.com/InvisibleDuckC/TeLlevoAPP/tree/main/src/app/home/home.page.ts
https://raw.githubusercontent.com/InvisibleDuckC/TeLlevoAPP/57fde47/src/app/home/home.page.ts
InvisibleDuckC/TeLlevoAPP 57fde47 src/app/home/home.page.ts
true
200
2,643
import { Component, ElementRef, ViewChildren, ViewChild, OnInit} from '@angular/core'; import type { Animation } from '@ionic/angular'; import { AnimationController, } from '@ionic/angular'; import { Router } from '@angular/router'; import { PermisosService } from '../services/permisos.service'; @Component({ selec...
6
davidroa9708/tech-challenge-kiki-latam
ca5360c
src/frameworks/data-services/typeorm/repositories/shipment.repository.ts
TypeScript
www.github.com/davidroa9708/tech-challenge-kiki-latam/tree/main/src/frameworks/data-services/typeorm/repositories/shipment.repository.ts
https://raw.githubusercontent.com/davidroa9708/tech-challenge-kiki-latam/ca5360c/src/frameworks/data-services/typeorm/repositories/shipment.repository.ts
davidroa9708/tech-challenge-kiki-latam ca5360c src/frameworks/data-services/typeorm/repositories/shipment.repository.ts
true
200
857
import {} from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { TypeormGenericRepository } from '../typeorm-generic-repository.repository'; import { IShipmentRepository } from '../../../../core/abstracts/shipment-repository.abstract'; export class ShipmentRepository<T> extends TypeormGenericReposi...
4
JackieTruongZ/backend-test
41a7030
src/services/role.service.ts
TypeScript
www.github.com/JackieTruongZ/backend-test/tree/main/src/services/role.service.ts
https://raw.githubusercontent.com/JackieTruongZ/backend-test/41a7030/src/services/role.service.ts
JackieTruongZ/backend-test 41a7030 src/services/role.service.ts
true
200
376
import BaseService from "@/base/base.service"; import RoleQuery from "@/query/role.query"; class RoleService extends BaseService<any, any, any> { protected query: RoleQuery; protected nameBase: string = 'Role'; protected attributeBase: string = ''; constructor() { super(); this.query ...
3
MarchRory/teamUp-H5
3f7d99a
src/stores/modules/userInfo/index.ts
TypeScript
www.github.com/MarchRory/teamUp-H5/tree/main/src/stores/modules/userInfo/index.ts
https://raw.githubusercontent.com/MarchRory/teamUp-H5/3f7d99a/src/stores/modules/userInfo/index.ts
MarchRory/teamUp-H5 3f7d99a src/stores/modules/userInfo/index.ts
true
200
2,000
import { defineStore } from "pinia"; import { removeToken, setToken } from "@/utils/token"; import { userInfoType, tokenStorageType } from "../types/user"; import { getInfoAPI, logoutAPI } from "@/api/user"; import { showSuccessToast } from "vant"; const useUserStore = defineStore('useUserStore', { state: (): user...
7
MysteryPoo/farkle-in-space-gameserver
9740618
src/Abstracts/ClientBase.ts
TypeScript
www.github.com/MysteryPoo/farkle-in-space-gameserver/tree/main/src/Abstracts/ClientBase.ts
https://raw.githubusercontent.com/MysteryPoo/farkle-in-space-gameserver/9740618/src/Abstracts/ClientBase.ts
MysteryPoo/farkle-in-space-gameserver 9740618 src/Abstracts/ClientBase.ts
true
200
2,615
import { Socket, SocketConnectOpts } from "net"; import { v4 as uuid } from "uuid"; import { IClient } from "../Interfaces/IClient"; import { IMessageHandler } from "../Interfaces/IMessageHandler"; import { IConnectionManager } from "../Interfaces/IConnectionManager"; export abstract class ClientBase implements IClie...
5
duanStar/next-blog
1b230ea
pages/api/user/logout.ts
TypeScript
www.github.com/duanStar/next-blog/tree/main/pages/api/user/logout.ts
https://raw.githubusercontent.com/duanStar/next-blog/1b230ea/pages/api/user/logout.ts
duanStar/next-blog 1b230ea pages/api/user/logout.ts
true
200
639
import { clearCookie } from './../../../utils/index'; import { ironOptions } from 'config/index'; import type { NextApiRequest, NextApiResponse } from "next"; import { withIronSessionApiRoute } from 'iron-session/next' import { Cookie } from 'next-cookie' import { ISession } from ".." async function logout(req: NextAp...
6
ra-lfaro/Advent-of-Code-2024
e6e2705
day_04/part_2.ts
TypeScript
www.github.com/ra-lfaro/Advent-of-Code-2024/tree/main/day_04/part_2.ts
https://raw.githubusercontent.com/ra-lfaro/Advent-of-Code-2024/e6e2705/day_04/part_2.ts
ra-lfaro/Advent-of-Code-2024 e6e2705 day_04/part_2.ts
true
200
2,970
/** * https://adventofcode.com/2024/day/4 * Answer: 1835 */ import prepareInput from "./prepareInput"; const SEEKED_WORD = 'MAS'; type Coord = [r: number, c: number]; type Direction = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' const search = () => { // get the matrix to search const wordSearch = p...
4
2361319763/react-ts-vite
20c77be
src/view/redux/es6-生成器/可执行生成器.ts
TypeScript
www.github.com/2361319763/react-ts-vite/tree/main/src/view/redux/es6-生成器/可执行生成器.ts
https://raw.githubusercontent.com/2361319763/react-ts-vite/20c77be/src/view/redux/es6-%E7%94%9F%E6%88%90%E5%99%A8/%E5%8F%AF%E6%89%A7%E8%A1%8C%E7%94%9F%E6%88%90%E5%99%A8.ts
2361319763/react-ts-vite 20c77be src/view/redux/es6-生成器/可执行生成器.ts
true
200
879
function getData1() { return new Promise((resolve,reject)=>{ setTimeout(()=>{ resolve('data1') },1000) }) } function getData2(str:string) { return new Promise((resolve,reject)=>{ setTimeout(()=>{ resolve('data2') },1000) }) } function getData3(str:string) { return new Promise((reso...
3
feecon12/auth
0927773
src/dbConfig/dbConfig.ts
TypeScript
www.github.com/feecon12/auth/tree/main/src/dbConfig/dbConfig.ts
https://raw.githubusercontent.com/feecon12/auth/0927773/src/dbConfig/dbConfig.ts
feecon12/auth 0927773 src/dbConfig/dbConfig.ts
true
200
596
import mongoose from 'mongoose' export async function connect() { try { mongoose.connect(process.env.MONGO_URI!); const connection = mongoose.connection; connection.on('connected', () => { console.log('MongoDB connected successfully'); }); connection.on('error'...
6
voytinsn/FullstackExample
e705fef
backend/src/models/employeeModel.ts
TypeScript
www.github.com/voytinsn/FullstackExample/tree/main/backend/src/models/employeeModel.ts
https://raw.githubusercontent.com/voytinsn/FullstackExample/e705fef/backend/src/models/employeeModel.ts
voytinsn/FullstackExample e705fef backend/src/models/employeeModel.ts
true
200
2,683
import { Schema, Types, model } from "mongoose"; /** * Виды занятости */ export enum EmployeeWorkTypes { Main = "main", // основное место работы External = "external", // внешний совместитель Internal = "internal", // внутренний совместитель } /** * Традиционный перечень гендеров */ export enum Gender { M...
7
yeedith/aide-au-barman
8c29919
src/app/form-recherche/form-recherche.component.ts
TypeScript
www.github.com/yeedith/aide-au-barman/tree/main/src/app/form-recherche/form-recherche.component.ts
https://raw.githubusercontent.com/yeedith/aide-au-barman/8c29919/src/app/form-recherche/form-recherche.component.ts
yeedith/aide-au-barman 8c29919 src/app/form-recherche/form-recherche.component.ts
true
200
3,741
import { Component, OnInit } from '@angular/core'; import { FormArray, FormBuilder, FormControl, FormGroup } from '@angular/forms'; import { Cocktail } from '../models/cocktail'; import { ApiBarmanService } from '../service/api-barman.service'; @Component({ selector: 'app-form-recherche', templateUrl: './form-rech...
5
GotFly/ethglobal-hakathon-frontend
8c881ab
src/mocks/borrowLiquidity.ts
TypeScript
www.github.com/GotFly/ethglobal-hakathon-frontend/tree/main/src/mocks/borrowLiquidity.ts
https://raw.githubusercontent.com/GotFly/ethglobal-hakathon-frontend/8c881ab/src/mocks/borrowLiquidity.ts
GotFly/ethglobal-hakathon-frontend 8c881ab src/mocks/borrowLiquidity.ts
true
200
973
import { iBorrowLiquidity } from '../interfaces/iBorrowLiquidity'; export const borrowLiquidityItem: iBorrowLiquidity = { tokens: [ { name: 'ARB', icon: '/arbitrum-icon.svg', }, { name: 'USDT', icon: '/usdt.svg', }, ], swap: 'Uniswap(Beefy)', farmingAPY: 90.5, borrowAP...
4
phanuell-365/pharmacy-front-end-with-vue
c9bd366
src/stores/menu/data/inventory/main-menu.ts
TypeScript
www.github.com/phanuell-365/pharmacy-front-end-with-vue/tree/main/src/stores/menu/data/inventory/main-menu.ts
https://raw.githubusercontent.com/phanuell-365/pharmacy-front-end-with-vue/c9bd366/src/stores/menu/data/inventory/main-menu.ts
phanuell-365/pharmacy-front-end-with-vue c9bd366 src/stores/menu/data/inventory/main-menu.ts
true
200
323
import { inventorySubmenu } from "@/stores/menu/data/inventory/submenu"; import { INVENTORY_ICON } from "@/constants/icons"; import type { MainMenu } from "@/stores/menu/interfaces"; export const inventoryMainMenu: MainMenu = { name: "inventory", ico: INVENTORY_ICON, active: false, submenus: inventorySubmenu, ...
7
ahmad1702/dont-talk-2-me
e57840f
pages/api/pusher.ts
TypeScript
www.github.com/ahmad1702/dont-talk-2-me/tree/main/pages/api/pusher.ts
https://raw.githubusercontent.com/ahmad1702/dont-talk-2-me/e57840f/pages/api/pusher.ts
ahmad1702/dont-talk-2-me e57840f pages/api/pusher.ts
true
200
2,513
import { get } from "lodash-es"; import type { NextApiRequest, NextApiResponse } from "next"; import Pusher from "pusher"; import prisma from "../../lib/prisma"; const pusher_app_id = process.env.NEXT_PUBLIC_PUSHER_APP_ID; const pusher_app_key = process.env.NEXT_PUBLIC_PUSHER_APP_KEY; const pusher_secret = process.env...
6
herbertdesousa/vilela-ar
a70ee7e
mobile/src/components/Header/styles.ts
TypeScript
www.github.com/herbertdesousa/vilela-ar/tree/main/mobile/src/components/Header/styles.ts
https://raw.githubusercontent.com/herbertdesousa/vilela-ar/a70ee7e/mobile/src/components/Header/styles.ts
herbertdesousa/vilela-ar a70ee7e mobile/src/components/Header/styles.ts
true
200
420
import styled from 'styled-components/native'; import { Text } from 'react-native'; import colors from '@/styles/colors'; import fonts from '@/styles/fonts'; export const HeaderContainer = styled.View` flex-direction: row; align-items: center; margin-bottom: 32px; `; export const HeaderTitle = styled.Text` c...
5
RudyDupuis/social-networks_project_back
64d93a4
start/routes/user.ts
TypeScript
www.github.com/RudyDupuis/social-networks_project_back/tree/main/start/routes/user.ts
https://raw.githubusercontent.com/RudyDupuis/social-networks_project_back/64d93a4/start/routes/user.ts
RudyDupuis/social-networks_project_back 64d93a4 start/routes/user.ts
true
200
749
import Route from '@ioc:Adonis/Core/Route' Route.post('user/create', 'UsersController.create').as('user.create') Route.post('user/update', 'UsersController.update').as('user.update').middleware('auth') Route.post('user/login', 'UsersController.login').as('user.login') Route.post('user/logout', 'UsersController.logout'...
4
JakubGitC/ToDoAdvanced
be69735
src/utils/handleSortTasks.ts
TypeScript
www.github.com/JakubGitC/ToDoAdvanced/tree/main/src/utils/handleSortTasks.ts
https://raw.githubusercontent.com/JakubGitC/ToDoAdvanced/be69735/src/utils/handleSortTasks.ts
JakubGitC/ToDoAdvanced be69735 src/utils/handleSortTasks.ts
true
200
1,656
import { Dispatch, SetStateAction } from "react"; import { TypeTask } from "./types/TypeTask"; type TypeHandleSortTasksProps = { sortBy: "priority" | "taskName" | "dueDate" | "completionDate"; sortOrder: "asc" | "desc"; setSortOrder: Dispatch<SetStateAction<"asc" | "desc">>; tasks: TypeTask[]; setTasks: Disp...
3
DuongThiMinhNhu/NHOM2_LTFE_HOCKY2_2022_TMDT_VEGETABLESHOP
1f66dbc
VegetableShop/code/src/lib/pro/lightbox/image-popup.ts
TypeScript
www.github.com/DuongThiMinhNhu/NHOM2_LTFE_HOCKY2_2022_TMDT_VEGETABLESHOP/tree/main/VegetableShop/code/src/lib/pro/lightbox/image-popup.ts
https://raw.githubusercontent.com/DuongThiMinhNhu/NHOM2_LTFE_HOCKY2_2022_TMDT_VEGETABLESHOP/1f66dbc/VegetableShop/code/src/lib/pro/lightbox/image-popup.ts
DuongThiMinhNhu/NHOM2_LTFE_HOCKY2_2022_TMDT_VEGETABLESHOP 1f66dbc VegetableShop/code/src/lib/pro/lightbox/image-popup.ts
true
200
7,166
import { Component, ElementRef, EventEmitter, HostListener, Inject, Input, OnInit, Output, PLATFORM_ID, Renderer2, ViewChild, ViewEncapsulation, } from '@angular/core'; import {DOCUMENT, isPlatformBrowser} from '@angular/common'; import {window} from '../../free/utils/fa...
5
DoDinhDiem/TechStore_Admin
2d10e97
src/app/pages/components/login/login.component.ts
TypeScript
www.github.com/DoDinhDiem/TechStore_Admin/tree/main/src/app/pages/components/login/login.component.ts
https://raw.githubusercontent.com/DoDinhDiem/TechStore_Admin/2d10e97/src/app/pages/components/login/login.component.ts
DoDinhDiem/TechStore_Admin 2d10e97 src/app/pages/components/login/login.component.ts
true
200
1,347
import { Component } from '@angular/core'; import { LayoutService } from 'src/app/layout/service/app.layout.service'; import { IAccount } from '../../api/account'; import { AccountService } from '../../service/account.service'; import { Router } from '@angular/router'; import { MessageService } from 'primeng/api'; @Co...
6
gracelungu/decloud-mobile-expo
7de2542
src/hooks/useLogin.ts
TypeScript
www.github.com/gracelungu/decloud-mobile-expo/tree/main/src/hooks/useLogin.ts
https://raw.githubusercontent.com/gracelungu/decloud-mobile-expo/7de2542/src/hooks/useLogin.ts
gracelungu/decloud-mobile-expo 7de2542 src/hooks/useLogin.ts
true
200
1,120
import { useWalletConnect } from "@walletconnect/react-native-dapp"; import { useAtom } from "jotai"; import { useCallback, useEffect, useState } from "react"; import authAtom from "../store/atoms/auth"; const useLogin = () => { const [, setAuth] = useAtom(authAtom); const [accounts, setAccounts] = useState<any[]>...
7
mynameisx12345/news
0aab5eb
news_app/src/app/view-news/view-news.service.ts
TypeScript
www.github.com/mynameisx12345/news/tree/main/news_app/src/app/view-news/view-news.service.ts
https://raw.githubusercontent.com/mynameisx12345/news/0aab5eb/news_app/src/app/view-news/view-news.service.ts
mynameisx12345/news 0aab5eb news_app/src/app/view-news/view-news.service.ts
true
200
2,847
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; import { BehaviorSubject, map } from 'rxjs'; import { environment } from 'src/environment/environment'; import * as moment from 'moment'; @Injectable({ providedIn: ...
4
guangliang2019/Prototype-UI
1fb0dac
src/components/lucide/square-power.ts
TypeScript
www.github.com/guangliang2019/Prototype-UI/tree/main/src/components/lucide/square-power.ts
https://raw.githubusercontent.com/guangliang2019/Prototype-UI/1fb0dac/src/components/lucide/square-power.ts
guangliang2019/Prototype-UI 1fb0dac src/components/lucide/square-power.ts
true
200
1,272
export default class LucideSquarePower extends HTMLElement { connectedCallback() { const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); svg.classList.add('lucide', 'lucide-square-power'); svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg'); svg.setAttribute('viewBox', '0 0 2...
3
kjhank/biostymina
61a5d6a
src/components/pages/Aloe/Cultivation/Cultivation.styled.ts
TypeScript
www.github.com/kjhank/biostymina/tree/main/src/components/pages/Aloe/Cultivation/Cultivation.styled.ts
https://raw.githubusercontent.com/kjhank/biostymina/61a5d6a/src/components/pages/Aloe/Cultivation/Cultivation.styled.ts
kjhank/biostymina 61a5d6a src/components/pages/Aloe/Cultivation/Cultivation.styled.ts
true
200
3,434
import styled from 'styled-components'; // @ts-expect-error borked imports import RawMap from '@/images/aloe/map.svg'; import { queries } from '@/utils'; export const Wrapper = styled.div` width: 54%; > h2 { font-size: ${({ theme }) => theme.getClamped(62)}; font-family: ${({ theme }) => theme.fonts.headi...
6
Rafael-Nunes-Silva/Atlantis-ATV2
7865507
src/ts/modelos/documento.ts
TypeScript
www.github.com/Rafael-Nunes-Silva/Atlantis-ATV2/tree/main/src/ts/modelos/documento.ts
https://raw.githubusercontent.com/Rafael-Nunes-Silva/Atlantis-ATV2/7865507/src/ts/modelos/documento.ts
Rafael-Nunes-Silva/Atlantis-ATV2 7865507 src/ts/modelos/documento.ts
true
200
566
import { TipoDocumento } from "../enumeracoes/TipoDocumento" export default class Documento { private numero: string; private tipo: TipoDocumento; private dataExpedicao: Date; constructor(numero: string, tipo: TipoDocumento, dataExpedicao: Date) { this.numero = numero; this.tipo = tipo...
4
annakotlova/theclub-main
72c5eb6
server/src/modules/file/file.controller.ts
TypeScript
www.github.com/annakotlova/theclub-main/tree/main/server/src/modules/file/file.controller.ts
https://raw.githubusercontent.com/annakotlova/theclub-main/72c5eb6/server/src/modules/file/file.controller.ts
annakotlova/theclub-main 72c5eb6 server/src/modules/file/file.controller.ts
true
200
7,903
import { Request, Response } from 'express'; import xlsx from 'node-xlsx'; import fs from 'fs/promises'; import path from 'path'; import fileService from './file.service'; import userService from '../user/user.service'; import eventService from '../event/event.service'; import paymentService from '../payment/payment.s...
5
JacekPasierb/SO-YUMMY-APP-BACKEND
c0a5ff4
src/tests/popularRecipe.test.ts
TypeScript
www.github.com/JacekPasierb/SO-YUMMY-APP-BACKEND/tree/main/src/tests/popularRecipe.test.ts
https://raw.githubusercontent.com/JacekPasierb/SO-YUMMY-APP-BACKEND/c0a5ff4/src/tests/popularRecipe.test.ts
JacekPasierb/SO-YUMMY-APP-BACKEND c0a5ff4 src/tests/popularRecipe.test.ts
true
200
2,515
import { MongoMemoryServer } from "mongodb-memory-server"; import mongoose from "mongoose"; import request from "supertest"; import app from "../app"; import Recipe, { IRecipe } from "../models/recipe"; import { User } from "../models/user"; import jwt from "jsonwebtoken"; describe("PopularRecipe API", () => {...
3
CarlosDev3119/back-rifa
d4cbf2e
src/domain/datasources/auth.datasource.ts
TypeScript
www.github.com/CarlosDev3119/back-rifa/tree/main/src/domain/datasources/auth.datasource.ts
https://raw.githubusercontent.com/CarlosDev3119/back-rifa/d4cbf2e/src/domain/datasources/auth.datasource.ts
CarlosDev3119/back-rifa d4cbf2e src/domain/datasources/auth.datasource.ts
true
200
361
import { AccessUserDto } from '../dtos/access-user.dto'; import { LoginUserDto } from '../dtos/login-user.dto'; import { UserEntity } from '../entities/user.entity'; export abstract class AuthDatasource { abstract login( loginUserDto: LoginUserDto ): Promise<UserEntity> abstract register( accessUserDto...
7
oriel-r/appointments-app-service
aa5b616
src/services/credentialService.ts
TypeScript
www.github.com/oriel-r/appointments-app-service/tree/main/src/services/credentialService.ts
https://raw.githubusercontent.com/oriel-r/appointments-app-service/aa5b616/src/services/credentialService.ts
oriel-r/appointments-app-service aa5b616 src/services/credentialService.ts
true
200
968
import CredentialDto from "../dto/crecrentialDto"; import { Credential } from "../entities/Credential"; import { CredentialRepository } from "../Repositories/AppointmentRepository"; import user_service from "./user_service"; import { User } from "../entities/User"; export default { create_credential: async (credenti...
6
raemilcf/SingleSignOnFront
f235a5f
src/app/app-routing.module.ts
TypeScript
www.github.com/raemilcf/SingleSignOnFront/tree/main/src/app/app-routing.module.ts
https://raw.githubusercontent.com/raemilcf/SingleSignOnFront/f235a5f/src/app/app-routing.module.ts
raemilcf/SingleSignOnFront f235a5f src/app/app-routing.module.ts
true
200
1,827
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { CreateAccountComponent } from './create-account/create-account.component'; import { LoginComponent } from './login/login.component'; import { WelcomeComponent } from './welcome/welcome.component'; import { OktaAu...
4
xinzhizhu6/blog-backend
36bda79
src/controllers/setting.ts
TypeScript
www.github.com/xinzhizhu6/blog-backend/tree/main/src/controllers/setting.ts
https://raw.githubusercontent.com/xinzhizhu6/blog-backend/36bda79/src/controllers/setting.ts
xinzhizhu6/blog-backend 36bda79 src/controllers/setting.ts
true
200
1,521
import { body, middlewares, prefix, summary, tagsAll } from 'koa-swagger-decorator' import Controller from '../utils/baseClass/Controller' import { get, put } from '../utils/requestMapping' import { RespMsg } from '../utils/enums' import { auth } from '../middlewares' @prefix('/setting') @tagsAll(['Setting']) export d...
5
realrunner/practicals
04a2bde
ts/src/p1.ts
TypeScript
www.github.com/realrunner/practicals/tree/main/ts/src/p1.ts
https://raw.githubusercontent.com/realrunner/practicals/04a2bde/ts/src/p1.ts
realrunner/practicals 04a2bde ts/src/p1.ts
true
200
365
export function isPalindrome(s: string): boolean { return false; } export function reverseWordsInString(s: string): string { return s; } // note: You can solve this with `return eval(s)` but you shouldn't, that's not the point! // Also, using eval in production code is generally bad practice. export function doCa...
3
N1ckPro/advent-of-code
ca7553e
src/solutions/2023/18/part2.ts
TypeScript
www.github.com/N1ckPro/advent-of-code/tree/main/src/solutions/2023/18/part2.ts
https://raw.githubusercontent.com/N1ckPro/advent-of-code/ca7553e/src/solutions/2023/18/part2.ts
N1ckPro/advent-of-code ca7553e src/solutions/2023/18/part2.ts
true
200
1,124
import type { Solution } from '../../../lib/index.js'; import { Direction, DirectionLetterMarker, Vector2, benchmark } from '../../../lib/index.js'; const DirectionMap = { '0': DirectionLetterMarker.Right, '1': DirectionLetterMarker.Down, '2': DirectionLetterMarker.Left, '3': DirectionLetterMarker.Up, }; export c...
7
cyprienfiquet12/dofus-adventure-manager
0d7d7eb
server/server.ts
TypeScript
www.github.com/cyprienfiquet12/dofus-adventure-manager/tree/main/server/server.ts
https://raw.githubusercontent.com/cyprienfiquet12/dofus-adventure-manager/0d7d7eb/server/server.ts
cyprienfiquet12/dofus-adventure-manager 0d7d7eb server/server.ts
true
200
1,481
import express from "express" import dotenv from "dotenv" import cookieParser from "cookie-parser" import cors from "cors" import db from "./config/Database.js" import router from "./routes/index.js" import Stripe from "stripe"; import { updatePayment } from "./controllers/Subscriptions.js"; dotenv.config() const stri...
6
Ajitheshwar/Vegetable-Vendor
dda0d99
src/app/admin/admin.module.ts
TypeScript
www.github.com/Ajitheshwar/Vegetable-Vendor/tree/main/src/app/admin/admin.module.ts
https://raw.githubusercontent.com/Ajitheshwar/Vegetable-Vendor/dda0d99/src/app/admin/admin.module.ts
Ajitheshwar/Vegetable-Vendor dda0d99 src/app/admin/admin.module.ts
true
200
1,596
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { AdminRoutingModule } from './admin-routing.module'; import { AdminComponent } from './admin.component'; import { AppCommonModule } from '../app-common/ap...
4
ertogri/left-bot
97afabd
tests/JoinCommand.test.ts
TypeScript
www.github.com/ertogri/left-bot/tree/main/tests/JoinCommand.test.ts
https://raw.githubusercontent.com/ertogri/left-bot/97afabd/tests/JoinCommand.test.ts
ertogri/left-bot 97afabd tests/JoinCommand.test.ts
true
200
3,864
import { ChatInputCommandInteraction, ClientOptions, GuildMember, IntentsBitField, VoiceChannel, } from "discord.js"; import { config } from "dotenv"; import JoinCommand from "../src/commands/player/JoinCommand"; import Embeds from "../src/structures/Embeds"; import ExtendedClient from "../src/structures/Exte...
3
Addeo/inst-angular
2f17a96
src/app/block-first/block-first.component.ts
TypeScript
www.github.com/Addeo/inst-angular/tree/main/src/app/block-first/block-first.component.ts
https://raw.githubusercontent.com/Addeo/inst-angular/2f17a96/src/app/block-first/block-first.component.ts
Addeo/inst-angular 2f17a96 src/app/block-first/block-first.component.ts
true
200
6,229
import { Component, OnInit, ViewChild, ElementRef, Inject, } from '@angular/core'; import { gsap } from 'gsap'; import { ScrollTrigger } from 'gsap/ScrollTrigger'; import { DOCUMENT } from '@angular/common'; @Component({ selector: 'inst-block-first', templateUrl: './block-first.component.html', styleU...
1
NatiEzra/finalProjectE
2b385c1
backend/controller/postController.ts
TypeScript
www.github.com/NatiEzra/finalProjectE/tree/main/backend/controller/postController.ts
https://raw.githubusercontent.com/NatiEzra/finalProjectE/2b385c1/backend/controller/postController.ts
NatiEzra/finalProjectE 2b385c1 backend/controller/postController.ts
true
200
4,591
import { Request, Response } from "express"; import PostModel from '../model/post'; import postModel from "../model/post"; const createPost = async (req:Request, res:Response) => { const imagePath = req.file ? req.file.path : null; // Extract uploaded image const postBody = req.body; postBody.image = ...
2
medyll/idae
30090b5
packages/idae-db/src/lib/IdaeDbConnection.ts
TypeScript
www.github.com/medyll/idae/tree/main/packages/idae-db/src/lib/IdaeDbConnection.ts
https://raw.githubusercontent.com/medyll/idae/30090b5/packages/idae-db/src/lib/IdaeDbConnection.ts
medyll/idae 30090b5 packages/idae-db/src/lib/IdaeDbConnection.ts
true
200
3,110
// packages\idae-db\lib\IdaeDbConnection.ts import { DbType, type IdaeDbAdapterInterfaceNext } from './@types/types.js'; import { IdaeDBModel } from './IdaeDBModel.js'; import { IdaeDb } from './idaeDb.js'; /** * Represents a database connection. */ export class IdaeDbConnection { #models = new Map<string, IdaeDBM...
7
0xPolygonID/js-sdk
3c2e01a
src/storage/blockchain/state.ts
TypeScript
www.github.com/0xPolygonID/js-sdk/tree/main/src/storage/blockchain/state.ts
https://raw.githubusercontent.com/0xPolygonID/js-sdk/3c2e01a/src/storage/blockchain/state.ts
0xPolygonID/js-sdk 3c2e01a src/storage/blockchain/state.ts
true
200
9,289
import { RootInfo, StateProof } from './../entities/state'; import { ZKProof } from '@iden3/js-jwz'; import { IStateStorage, UserStateTransitionInfo } from '../interfaces/state'; import { Contract, JsonRpcProvider, Signer, TransactionRequest } from 'ethers'; import { StateInfo } from '../entities/state'; import { State...
6
mmcguff/firebase-typescript-express-boilerplate
73f12b5
functions/src/services/db.ts
TypeScript
www.github.com/mmcguff/firebase-typescript-express-boilerplate/tree/main/functions/src/services/db.ts
https://raw.githubusercontent.com/mmcguff/firebase-typescript-express-boilerplate/73f12b5/functions/src/services/db.ts
mmcguff/firebase-typescript-express-boilerplate 73f12b5 functions/src/services/db.ts
true
200
1,816
import {db} from "../configs/firebase"; const _sortObject = (o:any) => { const sorted:any = {}; let key; const a = []; for (key in o) { // eslint-disable-next-line if (o.hasOwnProperty(key)) { a.push(key); } } a.sort(); for (key = 0; key < a.length; key++) { sorted[a[key]] = o[a[...
5
stevenD18skz/Finance-Tracker
dba400d
src/utils/formatters.ts
TypeScript
www.github.com/stevenD18skz/Finance-Tracker/tree/main/src/utils/formatters.ts
https://raw.githubusercontent.com/stevenD18skz/Finance-Tracker/dba400d/src/utils/formatters.ts
stevenD18skz/Finance-Tracker dba400d src/utils/formatters.ts
true
200
444
export const formatCurrency = ( amount: number, currencyCode: string = "USD", ): string => { return new Intl.NumberFormat("es-CO", { style: "currency", currency: currencyCode, minimumFractionDigits: 0, maximumFractionDigits: 0, }).format(amount); }; export const formatDate = (date: string) => {...
4
AdrianoRdg/fullstack-ecommerce
600f33b
ecommerce-frontend/src/view/pages/Home/sections/Browse/styles.ts
TypeScript
www.github.com/AdrianoRdg/fullstack-ecommerce/tree/main/ecommerce-frontend/src/view/pages/Home/sections/Browse/styles.ts
https://raw.githubusercontent.com/AdrianoRdg/fullstack-ecommerce/600f33b/ecommerce-frontend/src/view/pages/Home/sections/Browse/styles.ts
AdrianoRdg/fullstack-ecommerce 600f33b ecommerce-frontend/src/view/pages/Home/sections/Browse/styles.ts
true
200
343
import styled from 'styled-components'; export const BrowseContainer = styled.section` display: flex; flex-direction: column; align-items: center; padding: 4rem 0; h2 { font-size: 32px; } `; export const BrowseCards = styled.div` display: flex; justify-content: space-between; max-width: 73.9375...
3
Afpia/task-nest
e5ab3b3
front/src/pages/project/index.ts
TypeScript
www.github.com/Afpia/task-nest/tree/main/front/src/pages/project/index.ts
https://raw.githubusercontent.com/Afpia/task-nest/e5ab3b3/front/src/pages/project/index.ts
Afpia/task-nest e5ab3b3 front/src/pages/project/index.ts
true
200
271
import { LayoutHome } from '@app/layouts' import { privateMain } from '@shared/auth' import { routes } from '@shared/config' import { Project } from './ui' export const ProjectRoute = { view: Project, route: privateMain(routes.private.project), layout: LayoutHome }
0
antunesdanilo/pousa-pet
fccef6b
backend/src/repositories/prisma-repositories/repositories/boarding.repository.ts
TypeScript
www.github.com/antunesdanilo/pousa-pet/tree/main/backend/src/repositories/prisma-repositories/repositories/boarding.repository.ts
https://raw.githubusercontent.com/antunesdanilo/pousa-pet/fccef6b/backend/src/repositories/prisma-repositories/repositories/boarding.repository.ts
antunesdanilo/pousa-pet fccef6b backend/src/repositories/prisma-repositories/repositories/boarding.repository.ts
true
200
1,528
import { Injectable } from '@nestjs/common'; import { PrismaService } from '../../prisma-repositories/prisma.service'; import { BoardingRepository } from 'src/repositories/abstract-repositories/boarding.repository'; import { BoardingDto } from 'src/modules/boarding/dtos/boarding.dto'; import { BoardingCreateData } from...
2
fbpalleros/angular-bases
2e3f34e
src/app/dbz/components/form/form.component.ts
TypeScript
www.github.com/fbpalleros/angular-bases/tree/main/src/app/dbz/components/form/form.component.ts
https://raw.githubusercontent.com/fbpalleros/angular-bases/2e3f34e/src/app/dbz/components/form/form.component.ts
fbpalleros/angular-bases 2e3f34e src/app/dbz/components/form/form.component.ts
true
200
629
import { Component, EventEmitter, Output } from '@angular/core'; import { Character } from '../../interfaces/character.interface'; @Component({ selector: 'dbz-add-character', templateUrl: './form.component.html', styleUrl: './form.component.css', }) export class FormComponent { @Output() public onNewCharac...
7
SoCoTech-Hub/void14
3d9ddab
apps/dashboard/inmail/app/api/inmails/route.ts
TypeScript
www.github.com/SoCoTech-Hub/void14/tree/main/apps/dashboard/inmail/app/api/inmails/route.ts
https://raw.githubusercontent.com/SoCoTech-Hub/void14/3d9ddab/apps/dashboard/inmail/app/api/inmails/route.ts
SoCoTech-Hub/void14 3d9ddab apps/dashboard/inmail/app/api/inmails/route.ts
true
200
2,011
import { NextResponse } from "next/server"; import { revalidatePath } from "next/cache"; import { z } from "zod"; import { createInmail, deleteInmail, updateInmail, } from "@soco/inmail-api/inmails/mutations"; import { inmailIdSchema, insertInmailParams, updateInmailParams } from "@soco/inmail-db/schema/...
5
renocrewsolutions/calcomtest
574275d
apps/calcom-admin/src/api/accessCode/AccessCode.ts
TypeScript
www.github.com/renocrewsolutions/calcomtest/tree/main/apps/calcom-admin/src/api/accessCode/AccessCode.ts
https://raw.githubusercontent.com/renocrewsolutions/calcomtest/574275d/apps/calcom-admin/src/api/accessCode/AccessCode.ts
renocrewsolutions/calcomtest 574275d apps/calcom-admin/src/api/accessCode/AccessCode.ts
true
200
304
import { OAuthClient } from "../oAuthClient/OAuthClient"; import { Team } from "../team/Team"; export type AccessCode = { client?: OAuthClient | null; code: string; expiresAt: Date; id: number; scopes?: Array<"READ_BOOKING" | "READ_PROFILE">; team?: Team | null; userId: number | null; };
6
FEFernandoEscutia/M3-Lectures
291fd13
Lectures/Demo/src/repositories/UserRepository.ts
TypeScript
www.github.com/FEFernandoEscutia/M3-Lectures/tree/main/Lectures/Demo/src/repositories/UserRepository.ts
https://raw.githubusercontent.com/FEFernandoEscutia/M3-Lectures/291fd13/Lectures/Demo/src/repositories/UserRepository.ts
FEFernandoEscutia/M3-Lectures 291fd13 Lectures/Demo/src/repositories/UserRepository.ts
true
200
478
import { AppDataSource } from "../config/data-source"; import { User } from "../entities/User"; const UserRepository = AppDataSource.getRepository(User).extend({ findById: async function (id: number) { const user = await this.findOneBy({ id }); if (user) return user; else throw Error("The user does not e...
4
duynghiadev/Nutritional-Info-Recipe-System
16ac69d
DATN_BE/src/controllers/userControllers/ingredient.controller.ts
TypeScript
www.github.com/duynghiadev/Nutritional-Info-Recipe-System/tree/main/DATN_BE/src/controllers/userControllers/ingredient.controller.ts
https://raw.githubusercontent.com/duynghiadev/Nutritional-Info-Recipe-System/16ac69d/DATN_BE/src/controllers/userControllers/ingredient.controller.ts
duynghiadev/Nutritional-Info-Recipe-System 16ac69d DATN_BE/src/controllers/userControllers/ingredient.controller.ts
true
200
926
import { Request, Response } from 'express' import { INGREDIENT_MESSAGE } from '~/constants/messages' import ingredientServices from '~/services/userServices/ingredient.services' export const getAllCategoryIngredientsController = async (req: Request, res: Response) => { const result = await ingredientServices.getAll...
1
Didiercito/EasyCode
2a0a4d7
src/middleware/auth.ts
TypeScript
www.github.com/Didiercito/EasyCode/tree/main/src/middleware/auth.ts
https://raw.githubusercontent.com/Didiercito/EasyCode/2a0a4d7/src/middleware/auth.ts
Didiercito/EasyCode 2a0a4d7 src/middleware/auth.ts
true
200
1,614
import jwt, { JwtPayload } from 'jsonwebtoken'; import dotenv from 'dotenv'; import { Request, Response, NextFunction } from 'express'; dotenv.config(); declare global { namespace Express { interface Request { user?: { id: number } & JwtPayload; } } } export class TokenService { ...
3
tanawat011/nestjs-boilerplate-26102567
aeba41e
src/utils/bcrypt.ts
TypeScript
www.github.com/tanawat011/nestjs-boilerplate-26102567/tree/main/src/utils/bcrypt.ts
https://raw.githubusercontent.com/tanawat011/nestjs-boilerplate-26102567/aeba41e/src/utils/bcrypt.ts
tanawat011/nestjs-boilerplate-26102567 aeba41e src/utils/bcrypt.ts
true
200
255
import { hash, compare } from 'bcrypt'; export const bcryptHash = async (str: string) => { const saltOrRounds = 10; return hash(str, saltOrRounds); }; export const bcryptCheck = async (str: string, hash: string) => { return compare(str, hash); };
0
lgu-cebu-city/gso-cebu-frontend
e7d033b
src/app/pages/abstract-of-canvass/aoq-print/aoq-print.component.ts
TypeScript
www.github.com/lgu-cebu-city/gso-cebu-frontend/tree/main/src/app/pages/abstract-of-canvass/aoq-print/aoq-print.component.ts
https://raw.githubusercontent.com/lgu-cebu-city/gso-cebu-frontend/e7d033b/src/app/pages/abstract-of-canvass/aoq-print/aoq-print.component.ts
lgu-cebu-city/gso-cebu-frontend e7d033b src/app/pages/abstract-of-canvass/aoq-print/aoq-print.component.ts
true
200
1,609
import { DatePipe } from '@angular/common'; import { Component, Input, OnInit } from '@angular/core'; import { MatTableDataSource } from '@angular/material/table'; import { AbstractOfCanvassModel } from 'src/app/data-model/abstract-of-canvass-model'; import { SupplierItems } from '../abstract-of-canvass-list/abstract-o...
2
isITinnovation/isitinnovation.github.io
8f50af9
api/utils/mysql.ts
TypeScript
www.github.com/isITinnovation/isitinnovation.github.io/tree/main/api/utils/mysql.ts
https://raw.githubusercontent.com/isITinnovation/isitinnovation.github.io/8f50af9/api/utils/mysql.ts
isITinnovation/isitinnovation.github.io 8f50af9 api/utils/mysql.ts
true
200
2,308
import mysql from "mysql2/promise"; import dotenv from "dotenv"; // 환경 변수 로드 dotenv.config(); // 호스트 주소 처리 let host = process.env.MYSQL_HOST || "localhost"; let port: number | undefined; // 호스트에 포트가 포함되어 있는 경우 분리 if (host.includes(":")) { const parts = host.split(":"); host = parts[0]; port = parseInt(parts[1]...
7
EthanSmithson/Venue-Production
5ac96fc
angularContainer/nativeApp/src/app/app.component.spec.ts
TypeScript
www.github.com/EthanSmithson/Venue-Production/tree/main/angularContainer/nativeApp/src/app/app.component.spec.ts
https://raw.githubusercontent.com/EthanSmithson/Venue-Production/5ac96fc/angularContainer/nativeApp/src/app/app.component.spec.ts
EthanSmithson/Venue-Production 5ac96fc angularContainer/nativeApp/src/app/app.component.spec.ts
true
200
1,458
import { TestBed } from '@angular/core/testing'; import { provideRouter } from '@angular/router'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [AppComponent], providers: [provideRouter([])] ...
6
MarceloBarbosa02/ops
79a0c03
pasta sem título/_app-mobile/src/modules/Settings/components/Items/ValidationCode/styles.ts
TypeScript
www.github.com/MarceloBarbosa02/ops/tree/main/pasta sem título/_app-mobile/src/modules/Settings/components/Items/ValidationCode/styles.ts
https://raw.githubusercontent.com/MarceloBarbosa02/ops/79a0c03/pasta%20sem%20t%C3%ADtulo/_app-mobile/src/modules/Settings/components/Items/ValidationCode/styles.ts
MarceloBarbosa02/ops 79a0c03 pasta sem título/_app-mobile/src/modules/Settings/components/Items/ValidationCode/styles.ts
true
200
3,137
import styled, { css } from "styled-components/native"; import { RFPercentage } from "react-native-responsive-fontsize"; export const Container = styled.View` margin: 6px 0; flex-direction: row; align-self: flex-start; justify-content: space-between; gap: 8px; `; export const Content = styled.View` flex-d...
5
SadidCG/Cuberplast-web
e721a01
src/pages/api/actualizar.ts
TypeScript
www.github.com/SadidCG/Cuberplast-web/tree/main/src/pages/api/actualizar.ts
https://raw.githubusercontent.com/SadidCG/Cuberplast-web/e721a01/src/pages/api/actualizar.ts
SadidCG/Cuberplast-web e721a01 src/pages/api/actualizar.ts
true
200
878
import type { APIRoute } from 'astro'; import { db, eq } from 'astro:db'; import { usuario } from 'astro:db'; export const PUT: APIRoute = async ({ request }) => { try { const { id, name } = await request.json(); // Lógica para actualizar el usuario utilizando Drezzle if (typeof id === 'string' && typ...
4
aimanusmani17/TriwebAPI-Learning
fabc182
Projects/QuizManager/src/helper/error.ts
TypeScript
www.github.com/aimanusmani17/TriwebAPI-Learning/tree/main/Projects/QuizManager/src/helper/error.ts
https://raw.githubusercontent.com/aimanusmani17/TriwebAPI-Learning/fabc182/Projects/QuizManager/src/helper/error.ts
aimanusmani17/TriwebAPI-Learning fabc182 Projects/QuizManager/src/helper/error.ts
true
200
380
export default class ProjectError extends Error{ private _status:number = 0; private _data:Object | [] ={} get statusCode(): number{ return this._status; } set statusCode(code: number){ this._status= code; } get data(): Object{ return this._data ; } set data...
1
jcantosg/lms-wrapper
1271afe
src/sga/edae-user/services.ts
TypeScript
www.github.com/jcantosg/lms-wrapper/tree/main/src/sga/edae-user/services.ts
https://raw.githubusercontent.com/jcantosg/lms-wrapper/1271afe/src/sga/edae-user/services.ts
jcantosg/lms-wrapper 1271afe src/sga/edae-user/services.ts
true
200
705
import { EdaeUserRepository } from '#edae-user/domain/repository/edae-user.repository'; import { EdaeUserGetter } from '#edae-user/domain/service/edae-user-getter.service'; import { EdaeUserBusinessUnitChecker } from '#edae-user/domain/service/edae-user-business-unitChecker.service'; import { EdaeUserPasswordGenerator ...
3
yash1tsikarvar/AngularWithCapacitor
7cfb1b3
src/app/shared/definitions/models/new-tenant-applicant.model.ts
TypeScript
www.github.com/yash1tsikarvar/AngularWithCapacitor/tree/main/src/app/shared/definitions/models/new-tenant-applicant.model.ts
https://raw.githubusercontent.com/yash1tsikarvar/AngularWithCapacitor/7cfb1b3/src/app/shared/definitions/models/new-tenant-applicant.model.ts
yash1tsikarvar/AngularWithCapacitor 7cfb1b3 src/app/shared/definitions/models/new-tenant-applicant.model.ts
true
200
286
export interface DataVerificationCode { email: string; phoneNumber: string; sentType: SentType; userId: number; dialCode: string; } /** * Defines the delivery destination of the verification code. */ export enum SentType { None = 0, SMS = 1, Mail = 2, }
2
seni0rDEV/soniQ
fb9bc08
src/app/navbar/navbar.component.ts
TypeScript
www.github.com/seni0rDEV/soniQ/tree/main/src/app/navbar/navbar.component.ts
https://raw.githubusercontent.com/seni0rDEV/soniQ/fb9bc08/src/app/navbar/navbar.component.ts
seni0rDEV/soniQ fb9bc08 src/app/navbar/navbar.component.ts
true
200
552
import { Component } from '@angular/core'; import { NgClass } from '@angular/common'; @Component({ selector: 'app-navbar', standalone: true, imports: [NgClass], templateUrl: './navbar.component.html', styleUrl: './navbar.component.scss', }) export class NavbarComponent { // isMenuOpen = true; // toggle...
0
zakaryaeenil/CODAAG
cf71c26
src/WebUI/ClientApp/src/app/modules/action/action-details/a-over-view-view/a-over-view-view.component.spec.ts
TypeScript
www.github.com/zakaryaeenil/CODAAG/tree/main/src/WebUI/ClientApp/src/app/modules/action/action-details/a-over-view-view/a-over-view-view.component.spec.ts
https://raw.githubusercontent.com/zakaryaeenil/CODAAG/cf71c26/src/WebUI/ClientApp/src/app/modules/action/action-details/a-over-view-view/a-over-view-view.component.spec.ts
zakaryaeenil/CODAAG cf71c26 src/WebUI/ClientApp/src/app/modules/action/action-details/a-over-view-view/a-over-view-view.component.spec.ts
true
200
678
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { AOverViewViewComponent } from './a-over-view-view.component'; describe('AOverViewViewComponent', () => { let component: AOverViewViewComponent; let fixture: ComponentFixture<AOverViewViewComponent>; beforeEach(async () => { await T...
7
dmedina2150dev/learn-node
992ae61
authenticator-clean-architecture/src/configs/bcrypt.ts
TypeScript
www.github.com/dmedina2150dev/learn-node/tree/main/authenticator-clean-architecture/src/configs/bcrypt.ts
https://raw.githubusercontent.com/dmedina2150dev/learn-node/992ae61/authenticator-clean-architecture/src/configs/bcrypt.ts
dmedina2150dev/learn-node 992ae61 authenticator-clean-architecture/src/configs/bcrypt.ts
true
200
505
/** * ! Usamos el patron adapter con esto adaptamos el paquete externo para ⤵️ * * Así evitamos depender del paquete en diferentes lugares de la aplicación⤵️ * * Y poder sustituirlo facilmente * */ import { compareSync, hashSync } from 'bcryptjs'; export class BcryptAdapter { static hash( password: string ...
5
miguelriosoliveira/rendezvous-with-cassidoo
0952bd5
src/2023/330-majority/majority.test.ts
TypeScript
www.github.com/miguelriosoliveira/rendezvous-with-cassidoo/tree/main/src/2023/330-majority/majority.test.ts
https://raw.githubusercontent.com/miguelriosoliveira/rendezvous-with-cassidoo/0952bd5/src/2023/330-majority/majority.test.ts
miguelriosoliveira/rendezvous-with-cassidoo 0952bd5 src/2023/330-majority/majority.test.ts
true
200
617
import { majority } from './majority'; describe('#majority', () => { it('should return the majority element', () => { expect(majority([3, 1, 4, 1])).toBe('1'); }); it('should return "Majority odds" if there is a majority of odd numbers', () => { expect(majority([33, 44, 55, 66, 77])).toBe('Majority odds'); })...
6
casalealessandro/comeMiVesto
72465fa
src/app/service/prodotti-online.service.spec.ts
TypeScript
www.github.com/casalealessandro/comeMiVesto/tree/main/src/app/service/prodotti-online.service.spec.ts
https://raw.githubusercontent.com/casalealessandro/comeMiVesto/72465fa/src/app/service/prodotti-online.service.spec.ts
casalealessandro/comeMiVesto 72465fa src/app/service/prodotti-online.service.spec.ts
true
200
398
import { TestBed } from '@angular/core/testing'; import { ProdottiOnlineService } from './prodotti-online.service'; describe('ProdottiOnlineService', () => { let service: ProdottiOnlineService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(ProdottiOnlineService); }); ...
4
orochaa/eslint-config
c7b9e3a
src/configs/node.ts
TypeScript
www.github.com/orochaa/eslint-config/tree/main/src/configs/node.ts
https://raw.githubusercontent.com/orochaa/eslint-config/c7b9e3a/src/configs/node.ts
orochaa/eslint-config c7b9e3a src/configs/node.ts
true
200
362
import { securityPlugin } from '../plugins/security.js' import { sharedPlugins } from '../utils/constants.js' import { defineConfig } from '../utils/define-config.js' import { GLOB_TS } from '../utils/globs.js' export const nodeConfig = defineConfig({ files: [GLOB_TS], plugins: [...sharedPlugins, securityPlugin], ...
0
AugustoJDev/jjccursos-backend
050f8e6
src/auth/modules/auth.module.ts
TypeScript
www.github.com/AugustoJDev/jjccursos-backend/tree/main/src/auth/modules/auth.module.ts
https://raw.githubusercontent.com/AugustoJDev/jjccursos-backend/050f8e6/src/auth/modules/auth.module.ts
AugustoJDev/jjccursos-backend 050f8e6 src/auth/modules/auth.module.ts
true
200
1,010
import { Module } from '@nestjs/common'; import { JwtModule } from '@nestjs/jwt'; import { PassportModule } from '@nestjs/passport'; import { ConfigModule, ConfigService } from '@nestjs/config'; import { JwtStrategy } from '../strategies/jwt.strategy'; import { PrismaModule } from '../../prisma.module'; import { AuthSe...
1
lshmam/driving_dark
612ccb2
app/api/reviews/route.ts
TypeScript
www.github.com/lshmam/driving_dark/tree/main/app/api/reviews/route.ts
https://raw.githubusercontent.com/lshmam/driving_dark/612ccb2/app/api/reviews/route.ts
lshmam/driving_dark 612ccb2 app/api/reviews/route.ts
true
200
380
import { getGoogleReviews } from '@/lib/google'; import { NextResponse } from 'next/server'; export async function GET() { try { const reviews = await getGoogleReviews(); return NextResponse.json(reviews); } catch (error) { console.error('Error fetching reviews:', error); return NextResponse.json({...
7
janwoelke/Hill-Climb-Racing
17e6726
src/scenes/Params.ts
TypeScript
www.github.com/janwoelke/Hill-Climb-Racing/tree/main/src/scenes/Params.ts
https://raw.githubusercontent.com/janwoelke/Hill-Climb-Racing/17e6726/src/scenes/Params.ts
janwoelke/Hill-Climb-Racing 17e6726 src/scenes/Params.ts
true
200
913
type Params = { coins: number fuel: number highscore: number highscore2: number highscore3: number score: number carcolor: number carcolor2: number map: string vehicle: string character: string rim: string bluestatus: string greystatus: string ...
2
tecniredesall/angular-tfl
d8ae32d
src/app/shared/models/workflow.models.ts
TypeScript
www.github.com/tecniredesall/angular-tfl/tree/main/src/app/shared/models/workflow.models.ts
https://raw.githubusercontent.com/tecniredesall/angular-tfl/d8ae32d/src/app/shared/models/workflow.models.ts
tecniredesall/angular-tfl d8ae32d src/app/shared/models/workflow.models.ts
true
200
2,791
import { TransformationTypeModel } from "./transformation-type.model"; export interface IWorkflowModel { id: string; lots: number; name: string; userId: number; isDraft: boolean; isEnabled: boolean; locationId: number; createdDate: string; commodityId: number; totalProcess: number; commodityName:...
5
SerikM/Blog
2a81f99
app/src/store/BlogPosts.ts
TypeScript
www.github.com/SerikM/Blog/tree/main/app/src/store/BlogPosts.ts
https://raw.githubusercontent.com/SerikM/Blog/2a81f99/app/src/store/BlogPosts.ts
SerikM/Blog 2a81f99 app/src/store/BlogPosts.ts
true
200
2,231
import { Action, Reducer } from 'redux'; import { AppThunkAction } from '.'; export interface BlogPostsState { isLoading: boolean; blogPosts: BlogPost[]; currentBlogPost: number; } export interface BlogPost { publishDate: string; topic: string; content: string; } interface RequestBlogPostsAc...
4
Downonly/downonly-frontend
691f741
src/components/player/hooks/usePreloading.ts
TypeScript
www.github.com/Downonly/downonly-frontend/tree/main/src/components/player/hooks/usePreloading.ts
https://raw.githubusercontent.com/Downonly/downonly-frontend/691f741/src/components/player/hooks/usePreloading.ts
Downonly/downonly-frontend 691f741 src/components/player/hooks/usePreloading.ts
true
200
855
import { type GLTF } from 'three/examples/jsm/loaders/GLTFLoader' import { useEffect, useState } from 'react' import { Take } from '@/components/player/types' export const usePreloading = ( currentIndex: number, takes: Take[] | undefined, loaded: Omit< Map<string, { gltf: GLTF; sound: Howl }>, 'set' | 'clear' |...
6
Glendragon/aoc2024
4d194c1
day3.ts
TypeScript
www.github.com/Glendragon/aoc2024/tree/main/day3.ts
https://raw.githubusercontent.com/Glendragon/aoc2024/4d194c1/day3.ts
Glendragon/aoc2024 4d194c1 day3.ts
true
200
2,578
import { readFileSync } from "./util/readfile"; import { pipe } from "./util/pipe"; function parseInput(data: string) { const regexp = /mul\(\d{1,3}\,\d{1,3}\)/g const results = data.matchAll(regexp); return results; } function getPairs(matches: IterableIterator<RegExpMatchArray>) { const regexp = /(\d+),(\d+...
0
maherThemri/gestion-stock-frontend
afd7398
src/app/services/user/user.service.ts
TypeScript
www.github.com/maherThemri/gestion-stock-frontend/tree/main/src/app/services/user/user.service.ts
https://raw.githubusercontent.com/maherThemri/gestion-stock-frontend/afd7398/src/app/services/user/user.service.ts
maherThemri/gestion-stock-frontend afd7398 src/app/services/user/user.service.ts
true
200
685
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { ChangerMotDePasseUtilisateurDto, UtilisateurDto } from '../models'; import { Observable } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class UserService { apiUrl: string = 'http://localhost:8089/utili...
3
davidgibbon1/ADHD_app
384c040
src/app/api/notion-sync/route.ts
TypeScript
www.github.com/davidgibbon1/ADHD_app/tree/main/src/app/api/notion-sync/route.ts
https://raw.githubusercontent.com/davidgibbon1/ADHD_app/384c040/src/app/api/notion-sync/route.ts
davidgibbon1/ADHD_app 384c040 src/app/api/notion-sync/route.ts
true
200
1,357
import { NextRequest, NextResponse } from 'next/server'; import { mergeAllNotionTasks, exportTasksToJson } from '@/app/services/notionService'; export async function POST(request: NextRequest) { try { const { userId } = await request.json(); if (!userId) { return NextResponse.json( { error...
7
ronwelte/ronwelte
4a30a02
Frontend/src/app/components/restaurant-list/restaurant-list.component.ts
TypeScript
www.github.com/ronwelte/ronwelte/tree/main/Frontend/src/app/components/restaurant-list/restaurant-list.component.ts
https://raw.githubusercontent.com/ronwelte/ronwelte/4a30a02/Frontend/src/app/components/restaurant-list/restaurant-list.component.ts
ronwelte/ronwelte 4a30a02 Frontend/src/app/components/restaurant-list/restaurant-list.component.ts
true
200
1,120
import { Component, OnInit } from "@angular/core"; import { Observable } from "rxjs"; import { of, map } from "rxjs"; import { Store } from "@ngrx/store"; import { DataService } from "../../data.service"; import { loadRestaurantList } from "../../data.actions"; import { Restauran...
1
JuanAragonCo/lego-app
cd447d7
src/utils/hooks/api/useDetail.ts
TypeScript
www.github.com/JuanAragonCo/lego-app/tree/main/src/utils/hooks/api/useDetail.ts
https://raw.githubusercontent.com/JuanAragonCo/lego-app/cd447d7/src/utils/hooks/api/useDetail.ts
JuanAragonCo/lego-app cd447d7 src/utils/hooks/api/useDetail.ts
true
200
380
import { getDetail } from '@utils/api'; import { ProductDetail } from '@utils/types'; import { useState, useEffect } from 'react'; export default function useDetail(id: number) { const [data, setData] = useState<ProductDetail | null>(null); useEffect(() => { getDetail(id).then(result => setData(resul...
2
TrisChong/water-quality-monitoring
ac720cd
project/src/types/sensors.ts
TypeScript
www.github.com/TrisChong/water-quality-monitoring/tree/main/project/src/types/sensors.ts
https://raw.githubusercontent.com/TrisChong/water-quality-monitoring/ac720cd/project/src/types/sensors.ts
TrisChong/water-quality-monitoring ac720cd project/src/types/sensors.ts
true
200
433
export type SensorType = 'TDS' | 'pH' | 'Turbidity' | 'Flow Rate'; export interface SensorData { tdsLevel: number; phLevel: number; turbidity: number; flowRate: number; timestamp: string; status: 'OK' | 'Warning' | 'Alarm'; } export interface SensorStatus { _id: string; name: string; type: SensorTyp...
5
abhinavkr2108/notable
c382079
src/app/api/upload/route.ts
TypeScript
www.github.com/abhinavkr2108/notable/tree/main/src/app/api/upload/route.ts
https://raw.githubusercontent.com/abhinavkr2108/notable/c382079/src/app/api/upload/route.ts
abhinavkr2108/notable c382079 src/app/api/upload/route.ts
true
200
1,125
import { db } from "@/lib/database"; import { $notes } from "@/lib/database/schema"; import { uploadFileToFirebase } from "@/lib/firebase"; import { eq } from "drizzle-orm"; import { NextResponse } from "next/server"; export async function POST(req: Request, res: Response) { try { const { noteId } = await req.js...
4
marinahanyy/jenkins-angular
a2cccce
src/app/account/auth/helper/validateForm.ts
TypeScript
www.github.com/marinahanyy/jenkins-angular/tree/main/src/app/account/auth/helper/validateForm.ts
https://raw.githubusercontent.com/marinahanyy/jenkins-angular/a2cccce/src/app/account/auth/helper/validateForm.ts
marinahanyy/jenkins-angular a2cccce src/app/account/auth/helper/validateForm.ts
true
200
457
import { FormControl, FormGroup } from '@angular/forms'; export default class ValidateForm { static validateAllFormFilds(formGroup: FormGroup) { Object.keys(formGroup.controls).forEach((field) => { const control = formGroup.get(field); if (control instanceof FormControl) { control.markAsDirty...
6
nikolabojkovic/todo-app
309e9c9
todo-app-angular-workspace/projects/todo-app/src/app/components/todo-list/todo-list.component.spec.ts
TypeScript
www.github.com/nikolabojkovic/todo-app/tree/main/todo-app-angular-workspace/projects/todo-app/src/app/components/todo-list/todo-list.component.spec.ts
https://raw.githubusercontent.com/nikolabojkovic/todo-app/309e9c9/todo-app-angular-workspace/projects/todo-app/src/app/components/todo-list/todo-list.component.spec.ts
nikolabojkovic/todo-app 309e9c9 todo-app-angular-workspace/projects/todo-app/src/app/components/todo-list/todo-list.component.spec.ts
true
200
2,177
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { of } from 'rxjs'; import { EffectsModule } from '@ngrx/effects'; import { Store, StoreModule } from '@ngrx/store'; import { TodoService, SettingsProviderKey, StorageProviderKey } from '.....
0
alishatri/fullstack-ecommerce
0d2e91e
client/src/app/components/products/products.component.ts
TypeScript
www.github.com/alishatri/fullstack-ecommerce/tree/main/client/src/app/components/products/products.component.ts
https://raw.githubusercontent.com/alishatri/fullstack-ecommerce/0d2e91e/client/src/app/components/products/products.component.ts
alishatri/fullstack-ecommerce 0d2e91e client/src/app/components/products/products.component.ts
true
200
693
import { Component, OnInit } from '@angular/core'; import { ProductsService } from 'src/service/products.service'; @Component({ selector: 'app-products', templateUrl: './products.component.html', styleUrls: ['./products.component.scss'], }) export class ProductsComponent implements OnInit { constructor(private...
7
lee-shao/Quarantine
30e6b04
src/quarantine-client/views/scenes/gui-scene.ts
TypeScript
www.github.com/lee-shao/Quarantine/tree/main/src/quarantine-client/views/scenes/gui-scene.ts
https://raw.githubusercontent.com/lee-shao/Quarantine/30e6b04/src/quarantine-client/views/scenes/gui-scene.ts
lee-shao/Quarantine 30e6b04 src/quarantine-client/views/scenes/gui-scene.ts
true
200
9,036
import { ItemMenu } from '../item-menu/menu' import { TutorialController } from "../../controller/gui-controller/tutorialController"; import { GameSpeedButtons } from "../general-gui-buttons/speedButtons"; import { RuleButton } from "../general-gui-buttons/rulesButton"; import { RestartButton } from "../general-gui-but...
3
Nehyan9895/ToDo-List-with-Angular-17
310dd50
src/app/components/pages/completed-tasks/completed-tasks.component.ts
TypeScript
www.github.com/Nehyan9895/ToDo-List-with-Angular-17/tree/main/src/app/components/pages/completed-tasks/completed-tasks.component.ts
https://raw.githubusercontent.com/Nehyan9895/ToDo-List-with-Angular-17/310dd50/src/app/components/pages/completed-tasks/completed-tasks.component.ts
Nehyan9895/ToDo-List-with-Angular-17 310dd50 src/app/components/pages/completed-tasks/completed-tasks.component.ts
true
200
1,266
import { Component, inject } from '@angular/core'; import { HttpService } from '../../../services/http.service'; import { PageTitleComponent } from '../../page-title/page-title.component'; import { TaskListComponent } from '../../task-list/task-list.component'; @Component({ selector: 'app-completed-tasks', standal...
2
anurakboonlao/HEXA-Online-Ordering
f7a92d8
src/redux/reducers/user.reducer.ts
TypeScript
www.github.com/anurakboonlao/HEXA-Online-Ordering/tree/main/src/redux/reducers/user.reducer.ts
https://raw.githubusercontent.com/anurakboonlao/HEXA-Online-Ordering/f7a92d8/src/redux/reducers/user.reducer.ts
anurakboonlao/HEXA-Online-Ordering f7a92d8 src/redux/reducers/user.reducer.ts
true
200
2,321
import { UserRoleEnum } from '../../constants/constant'; import { createPermission } from '../../utils/permissionUtils'; import { actionType } from '../actions/user.actions'; import { SubContact, TokenPayload } from '../domains/Auth'; import { IApplicationAction } from '../type'; interface IUserState { payload: To...
4
Callgent/callgent-api
902fbce
src/bff/callgent-tree/callgent-tree.controller.spec.ts
TypeScript
www.github.com/Callgent/callgent-api/tree/main/src/bff/callgent-tree/callgent-tree.controller.spec.ts
https://raw.githubusercontent.com/Callgent/callgent-api/902fbce/src/bff/callgent-tree/callgent-tree.controller.spec.ts
Callgent/callgent-api 902fbce src/bff/callgent-tree/callgent-tree.controller.spec.ts
true
200
535
import { Test, TestingModule } from '@nestjs/testing'; import { CallgentTreeController } from './callgent-tree.controller'; describe('CallgentTreeController', () => { let controller: CallgentTreeController; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ controlle...
6
cds-snc/platform-forms-client
679cc19
lib/types/utility-types.ts
TypeScript
www.github.com/cds-snc/platform-forms-client/tree/main/lib/types/utility-types.ts
https://raw.githubusercontent.com/cds-snc/platform-forms-client/679cc19/lib/types/utility-types.ts
cds-snc/platform-forms-client 679cc19 lib/types/utility-types.ts
true
200
975
import { type NextRequest, NextResponse } from "next/server"; import { Session } from "next-auth"; export interface LambdaResponse<T> { data: { records?: T[]; }; } export type UploadResult = { isValid: boolean; key: string; }; export interface MiddlewareReturn { next: boolean; props?: Record<string, ...
7
game-node-app/game-node-server
a993f60
src/activities/activities-feed/activities-feed.controller.ts
TypeScript
www.github.com/game-node-app/game-node-server/tree/main/src/activities/activities-feed/activities-feed.controller.ts
https://raw.githubusercontent.com/game-node-app/game-node-server/a993f60/src/activities/activities-feed/activities-feed.controller.ts
game-node-app/game-node-server a993f60 src/activities/activities-feed/activities-feed.controller.ts
true
200
1,654
import { Controller, Get, Query, UseGuards, UseInterceptors, } from "@nestjs/common"; import { ActivitiesFeedService } from "./activities-feed.service"; import { ApiOkResponse, ApiTags } from "@nestjs/swagger"; import { ActivitiesFeedRequestDto } from "./dto/activities-feed-request.dto"; import { Pa...
0
zhengpj95/demoRpg
ccc7cdb
src/modules/test/mdr/TestPanelCloudMdr.ts
TypeScript
www.github.com/zhengpj95/demoRpg/tree/main/src/modules/test/mdr/TestPanelCloudMdr.ts
https://raw.githubusercontent.com/zhengpj95/demoRpg/ccc7cdb/src/modules/test/mdr/TestPanelCloudMdr.ts
zhengpj95/demoRpg ccc7cdb src/modules/test/mdr/TestPanelCloudMdr.ts
true
200
2,622
import { ui } from "@ui/layaMaxUI"; import Handler = Laya.Handler; import Label = Laya.Label; import Box = Laya.Box; import Button = Laya.Button; import Image = Laya.Image; import Tween = Laya.Tween; /** * 测试panel+list */ export class TestPanelCloudMdr extends ui.modules.test.TestPanelCloudUI { private _max = 10; ...
5
Ehikioya-Andrew/election-hackton
cb317d0
src/app/pages/analytics/analytics-shared/analytics-block/analytics-block.component.ts
TypeScript
www.github.com/Ehikioya-Andrew/election-hackton/tree/main/src/app/pages/analytics/analytics-shared/analytics-block/analytics-block.component.ts
https://raw.githubusercontent.com/Ehikioya-Andrew/election-hackton/cb317d0/src/app/pages/analytics/analytics-shared/analytics-block/analytics-block.component.ts
Ehikioya-Andrew/election-hackton cb317d0 src/app/pages/analytics/analytics-shared/analytics-block/analytics-block.component.ts
true
200
7,977
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, } from '@angular/core'; import { ActivatedRoute, NavigationEnd, NavigationStart, Params, Router, } from '@angular/router'; import { NbDateService, NbDialogService, NbThemeService, NbColorHelper, } from '@nebular/theme'; im...
7