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
jauhari-mani/cricketMgnUI
233349f
src/app/views/add-player/add-player.component.ts
TypeScript
www.github.com/jauhari-mani/cricketMgnUI/tree/main/src/app/views/add-player/add-player.component.ts
https://raw.githubusercontent.com/jauhari-mani/cricketMgnUI/233349f/src/app/views/add-player/add-player.component.ts
jauhari-mani/cricketMgnUI 233349f src/app/views/add-player/add-player.component.ts
true
200
1,420
import { Component, OnInit } from '@angular/core'; import { PlayerServiceService } from 'src/app/services/player-service.service'; import Swal from 'sweetalert2'; @Component({ selector: 'app-add-player', templateUrl: './add-player.component.html', styleUrls: ['./add-player.component.less'] }) export class AddPla...
0
Akhila2803/Capstone
c5fe746
analytics/src/app/subscriber.service.ts
TypeScript
www.github.com/Akhila2803/Capstone/tree/main/analytics/src/app/subscriber.service.ts
https://raw.githubusercontent.com/Akhila2803/Capstone/c5fe746/analytics/src/app/subscriber.service.ts
Akhila2803/Capstone c5fe746 analytics/src/app/subscriber.service.ts
true
200
897
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { Subscriber } from './subscriber'; @Injectable({ providedIn: 'root' }) export class SubscriberService { private baseUrl = 'http://localhost:8080'; // Replace with your API URL ...
4
Jemsco/weatherapp
dbf5c26
src/components/weather-response.ts
TypeScript
www.github.com/Jemsco/weatherapp/tree/main/src/components/weather-response.ts
https://raw.githubusercontent.com/Jemsco/weatherapp/dbf5c26/src/components/weather-response.ts
Jemsco/weatherapp dbf5c26 src/components/weather-response.ts
true
200
2,006
// WeatherResponse.ts export interface WeatherResponse { current: { temp_f: number; feelslike_f: number; humidity: number; precip_in: number; wind_mph: number; wind_dir: string; gust_mph: number; dewpoint_f: number; condition: { text: string; icon: string; }; }; ...
6
Taskeren/activism-nuxt
aefd943
server/bungie-api-wrapper.ts
TypeScript
www.github.com/Taskeren/activism-nuxt/tree/main/server/bungie-api-wrapper.ts
https://raw.githubusercontent.com/Taskeren/activism-nuxt/aefd943/server/bungie-api-wrapper.ts
Taskeren/activism-nuxt aefd943 server/bungie-api-wrapper.ts
true
200
1,657
import { BungieMembershipType, DestinyHistoricalStatsPeriodGroup, getActivityHistory } from "bungie-api-ts/destiny2" import { HttpClient } from "bungie-api-ts/http" const MAX_PAGE_PER_CHARACTER = 50 export async function getCharacterActivityHistoryInTime(cli: HttpClient, membershipType: BungieMembershipType, membersh...
2
duisenbekernur/amazon-backend-next
b689bee
src/services/auth/auth.service.ts
TypeScript
www.github.com/duisenbekernur/amazon-backend-next/tree/main/src/services/auth/auth.service.ts
https://raw.githubusercontent.com/duisenbekernur/amazon-backend-next/b689bee/src/services/auth/auth.service.ts
duisenbekernur/amazon-backend-next b689bee src/services/auth/auth.service.ts
true
200
969
import { getContentType } from 'api/api.helper' import { instance } from 'api/api.interceptor' import axios from 'axios' import Cookies from 'js-cookie' import { IAuthResponse, IEmailPassword } from 'store/user/user.interface' import { saveToStorage } from './auth.helper' export const AuthService = { async main(type...
3
OdairCesar/ihelpyou-api
eecdf56
src/useCases/City/ReadCity/ReadCityUseCase.ts
TypeScript
www.github.com/OdairCesar/ihelpyou-api/tree/main/src/useCases/City/ReadCity/ReadCityUseCase.ts
https://raw.githubusercontent.com/OdairCesar/ihelpyou-api/eecdf56/src/useCases/City/ReadCity/ReadCityUseCase.ts
OdairCesar/ihelpyou-api eecdf56 src/useCases/City/ReadCity/ReadCityUseCase.ts
true
200
623
import { ICityRepository } from "../../../repositories/ICityRepository"; import { City } from "../../../entities/City"; import { IReadCityRequestDTO } from "./ReadCityDTO"; export class ReadCityUseCase { constructor ( private CityRepository: ICityRepository, ) {} async execute(data: IReadCityRequestDTO) { ...
7
ministryofjustice/create-and-vary-a-licence
399c6cd
server/routes/support/index.ts
TypeScript
www.github.com/ministryofjustice/create-and-vary-a-licence/tree/main/server/routes/support/index.ts
https://raw.githubusercontent.com/ministryofjustice/create-and-vary-a-licence/399c6cd/server/routes/support/index.ts
ministryofjustice/create-and-vary-a-licence 399c6cd server/routes/support/index.ts
true
200
4,901
import { RequestHandler, Router } from 'express' import asyncMiddleware from '../../middleware/asyncMiddleware' import roleCheckMiddleware from '../../middleware/roleCheckMiddleware' import SupportHomeRoutes from './handlers/supportHome' import { Services } from '../../services' import OffenderSearchRoutes from './hand...
5
headzoo/discuit-autotldr
c8e12b9
src/modals/Community.ts
TypeScript
www.github.com/headzoo/discuit-autotldr/tree/main/src/modals/Community.ts
https://raw.githubusercontent.com/headzoo/discuit-autotldr/c8e12b9/src/modals/Community.ts
headzoo/discuit-autotldr c8e12b9 src/modals/Community.ts
true
200
403
import { DataTypes } from 'sequelize'; import { sequelize } from '../sequelize'; /** * Modal for the communities being watched. */ export const Community = sequelize.define( 'communities', { id: { type: DataTypes.INTEGER, primaryKey: true, }, name: { type: DataTypes.STRING, }, ...
0
GeordiD/sm-games-fe
0b04d50
app/api/rooms/[slug]/route.ts
TypeScript
www.github.com/GeordiD/sm-games-fe/tree/main/app/api/rooms/[slug]/route.ts
https://raw.githubusercontent.com/GeordiD/sm-games-fe/0b04d50/app/api/rooms/%5Bslug%5D/route.ts
GeordiD/sm-games-fe 0b04d50 app/api/rooms/[slug]/route.ts
true
200
1,306
import { NotFound } from '@/app/_lib/default-responses'; import { _roomService } from '@/app/_lib/services/room.service'; import { _roundService } from '@/app/_lib/services/round.service'; import { RouteHandler } from '@/app/_lib/types/RouteHandler'; import { Player, PokerRoom, Round } from '@prisma/client'; import { N...
4
brys0/FlashNotes
ae4d173
packages/web/src/main.ts
TypeScript
www.github.com/brys0/FlashNotes/tree/main/packages/web/src/main.ts
https://raw.githubusercontent.com/brys0/FlashNotes/ae4d173/packages/web/src/main.ts
brys0/FlashNotes ae4d173 packages/web/src/main.ts
true
200
442
import { createPinia } from 'pinia' import { createApp } from 'vue' import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'; import App from './App.vue' import { router } from './router'; import { createMetaManager } from 'vue-meta'; let vueApp = createApp(App); vueApp.use(createMetaManager(false)); let p...
6
MeDjb10/AnimusClub
75660ce
src/app/services/user.service.ts
TypeScript
www.github.com/MeDjb10/AnimusClub/tree/main/src/app/services/user.service.ts
https://raw.githubusercontent.com/MeDjb10/AnimusClub/75660ce/src/app/services/user.service.ts
MeDjb10/AnimusClub 75660ce src/app/services/user.service.ts
true
200
2,241
import { Injectable } from '@angular/core'; import { Observable, map, of, tap } from 'rxjs'; import { HttpClient } from '@angular/common/http'; import { User } from '../classes/user'; import { Formation } from '../classes/formation'; const usersUrl = 'http://localhost:3000/user'; @Injectable({ providedIn: 'root', }...
1
ccastri/productSoft
5766b67
src/app/services/sidebar.service.ts
TypeScript
www.github.com/ccastri/productSoft/tree/main/src/app/services/sidebar.service.ts
https://raw.githubusercontent.com/ccastri/productSoft/5766b67/src/app/services/sidebar.service.ts
ccastri/productSoft 5766b67 src/app/services/sidebar.service.ts
true
200
1,032
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root', }) export class SidebarService { // !To get it from the back when isAuth // public menu = []; // loadMenu() { // this.menu = JSON.parse(localStorage.setItem('menu')) || []; // } menu: any[] = [ { title: 'Dashboard'...
2
deadoutsided/flet-test
b465d58
src/src/api/postsApi.ts
TypeScript
www.github.com/deadoutsided/flet-test/tree/main/src/src/api/postsApi.ts
https://raw.githubusercontent.com/deadoutsided/flet-test/b465d58/src/src/api/postsApi.ts
deadoutsided/flet-test b465d58 src/src/api/postsApi.ts
true
200
560
import { baseApi } from "."; export type PostData = { userId: number, id: number, title: string, body: string, } const postsApi = baseApi.injectEndpoints({ endpoints: (build) => ({ getPosts: build.query<PostData[], void>({ query: () => '/posts', /* transformResponse...
3
joshmarom/sista
3e46f54
src/core/color/index.ts
TypeScript
www.github.com/joshmarom/sista/tree/main/src/core/color/index.ts
https://raw.githubusercontent.com/joshmarom/sista/3e46f54/src/core/color/index.ts
joshmarom/sista 3e46f54 src/core/color/index.ts
true
200
4,742
import * as R from 'fp-ts/Record'; import * as A from 'fp-ts/ReadonlyArray'; import { flow, pipe } from 'fp-ts/function'; import { AnyColor, colord, extend } from 'colord'; import lchPlugin from 'colord/plugins/lch'; import { FullPalette, SpectrumColor } from '@/core/color/namedSpectrum'; import { Colors } from '@/page...
7
Sayyed-Amaan-Ali/WebApp-Project
f478ee4
Frontend/src/app/employee/Employee.ts
TypeScript
www.github.com/Sayyed-Amaan-Ali/WebApp-Project/tree/main/Frontend/src/app/employee/Employee.ts
https://raw.githubusercontent.com/Sayyed-Amaan-Ali/WebApp-Project/f478ee4/Frontend/src/app/employee/Employee.ts
Sayyed-Amaan-Ali/WebApp-Project f478ee4 Frontend/src/app/employee/Employee.ts
true
200
428
export interface Employee{ id: number, name: string, address: string, gender: string, email: string, phone: string, dobDate: Date, dateofhireDate: Date, jobtype: string, workshift: string, leavebalance: string, jobtitle: string, department: string, salary: string,...
5
AnggaMaulana6/oop-typescript
99f60ec
src/class.ts
TypeScript
www.github.com/AnggaMaulana6/oop-typescript/tree/main/src/class.ts
https://raw.githubusercontent.com/AnggaMaulana6/oop-typescript/99f60ec/src/class.ts
AnggaMaulana6/oop-typescript 99f60ec src/class.ts
true
200
1,952
/* Class adalah sebuah blueprint atau krangka untuk membuat sebuah object di dalam class juga menyimpan beberapa sifat dan perilaku sebuah object seperti property dan method */ // void tidak bakal me return apa2 // type anotation export class User { public name: string; constructor(name: str...
0
great-dev1/FYP-Bio
dd763bd
themes/index.ts
TypeScript
www.github.com/great-dev1/FYP-Bio/tree/main/themes/index.ts
https://raw.githubusercontent.com/great-dev1/FYP-Bio/dd763bd/themes/index.ts
great-dev1/FYP-Bio dd763bd themes/index.ts
true
200
740
import colors from 'assets/scss/_themes-vars.module.scss'; import themePalette from './palette'; const color = colors; const themeOption = { colors: color, heading: color.grey900, paper: color.paper, backgroundDefault: color.paper, background: color.primaryLight, darkTextPrimary: color.grey700, darkTex...
4
Nazmos27/node_express_mongoose-learning
cb3b7a7
project-2/src/app/modules/SemesterRegistration/semesterRegistration.validation.ts
TypeScript
www.github.com/Nazmos27/node_express_mongoose-learning/tree/main/project-2/src/app/modules/SemesterRegistration/semesterRegistration.validation.ts
https://raw.githubusercontent.com/Nazmos27/node_express_mongoose-learning/cb3b7a7/project-2/src/app/modules/SemesterRegistration/semesterRegistration.validation.ts
Nazmos27/node_express_mongoose-learning cb3b7a7 project-2/src/app/modules/SemesterRegistration/semesterRegistration.validation.ts
true
200
862
import Joi from 'joi'; import { semesterRegistrationStatus } from './semesterRegistration.constant'; export const createSemesterRegistrationValidationSchema = Joi.object({ academicSemester: Joi.string().required(), status: Joi.string() .valid(...semesterRegistrationStatus) .default('UPCOMING'), startDate...
2
EntraptaJ/TS-AutoNetwork
6a8026f
src/index.ts
TypeScript
www.github.com/EntraptaJ/TS-AutoNetwork/tree/main/src/index.ts
https://raw.githubusercontent.com/EntraptaJ/TS-AutoNetwork/6a8026f/src/index.ts
EntraptaJ/TS-AutoNetwork 6a8026f src/index.ts
true
200
4,040
// src/index.ts import 'reflect-metadata'; import { timeout } from './Utils/timeout'; import { logger, LogMode } from './Library/Logger'; import { ipamConfigController } from './Modules/IPAM/IPAMConfigController'; import Container from 'typedi'; import { NetworkController } from './Modules/Networks/NetworkController'; ...
1
Dominic-Talgatto/Checkers
7da9d57
src/app/app.routes.ts
TypeScript
www.github.com/Dominic-Talgatto/Checkers/tree/main/src/app/app.routes.ts
https://raw.githubusercontent.com/Dominic-Talgatto/Checkers/7da9d57/src/app/app.routes.ts
Dominic-Talgatto/Checkers 7da9d57 src/app/app.routes.ts
true
200
1,461
import { Routes } from '@angular/router'; import {HomeComponent} from "./component/home/home.component"; import {LessonsComponent} from "./component/lessonComponent/lessons/lessons.component"; import {LessonComponent} from "./component/lessonComponent/lesson/lesson.component"; import {SignInComponent} from "./component...
3
budwk/budwk
ed06a57
wk-vue3-admin/src/api/platform/sys/log.ts
TypeScript
www.github.com/budwk/budwk/tree/main/wk-vue3-admin/src/api/platform/sys/log.ts
https://raw.githubusercontent.com/budwk/budwk/ed06a57/wk-vue3-admin/src/api/platform/sys/log.ts
budwk/budwk ed06a57 wk-vue3-admin/src/api/platform/sys/log.ts
true
200
411
export const API_SYS_LOG_LIST = '/platform/sys/log/list' export const API_SYS_LOG_DATA = '/platform/sys/log/data' import request from '/@/utils/request' export function getList(data: object) { return request({ url: API_SYS_LOG_LIST, method: 'POST', data: data }) } export function get...
7
afstudiox/trybesmith
00c5cd7
src/models/product.model.ts
TypeScript
www.github.com/afstudiox/trybesmith/tree/main/src/models/product.model.ts
https://raw.githubusercontent.com/afstudiox/trybesmith/00c5cd7/src/models/product.model.ts
afstudiox/trybesmith 00c5cd7 src/models/product.model.ts
true
200
1,223
import { ResultSetHeader, RowDataPacket } from 'mysql2'; import { AddProduct, CreatedProduct, Product } from '../types'; import connection from './connection'; const TABLE = 'Trybesmith.Products'; const productModel = { async getAll(): Promise<Product[]> { const sql = `SELECT id, name, amount, orderId FROM ${TA...
5
MailuCat/noticias_efecto
baa29df
src/app/veganismo/veganismo.component.ts
TypeScript
www.github.com/MailuCat/noticias_efecto/tree/main/src/app/veganismo/veganismo.component.ts
https://raw.githubusercontent.com/MailuCat/noticias_efecto/baa29df/src/app/veganismo/veganismo.component.ts
MailuCat/noticias_efecto baa29df src/app/veganismo/veganismo.component.ts
true
200
817
import { Component, OnInit } from '@angular/core'; import {Title} from '@angular/platform-browser' import { SeoService } from '../seo.service'; @Component({ selector: 'app-veganismo', templateUrl: './veganismo.component.html', styleUrls: ['./veganismo.component.scss'] }) export class VeganismoComponent implemen...
4
frederico-escudeiro/music-collection
282f8da
src/app/albums/albums-routing.module.ts
TypeScript
www.github.com/frederico-escudeiro/music-collection/tree/main/src/app/albums/albums-routing.module.ts
https://raw.githubusercontent.com/frederico-escudeiro/music-collection/282f8da/src/app/albums/albums-routing.module.ts
frederico-escudeiro/music-collection 282f8da src/app/albums/albums-routing.module.ts
true
200
1,385
import { NgModule } from "@angular/core"; import { RouterModule } from "@angular/router"; import { GlobalConstants } from "src/app/shared/global-constants.enum"; import { SongsGuardService } from "src/app/songs/songs.guard"; import { AlbumsComponent } from "./albums.component"; import { AlbumsGuardService } from "./alb...
6
1661021512/smart-community
47f8c24
web/src/app/building-bungalow/index/index.module.ts
TypeScript
www.github.com/1661021512/smart-community/tree/main/web/src/app/building-bungalow/index/index.module.ts
https://raw.githubusercontent.com/1661021512/smart-community/47f8c24/web/src/app/building-bungalow/index/index.module.ts
1661021512/smart-community 47f8c24 web/src/app/building-bungalow/index/index.module.ts
true
200
661
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { IndexComponent } from './index.component'; import {VillageShareModule} from '../../village/village-share.module'; import {ReactiveFormsModule} from '@angular/forms'; import {YzPageModule, YzSizeModule} from '@yunzhi/ng-co...
3
Yuqiao412/2D-3D
e4b32a3
projects/map-engine-sdk/src/lib/map-framework/implementation/3d/layer/ArcgisLayer3d.ts
TypeScript
www.github.com/Yuqiao412/2D-3D/tree/main/projects/map-engine-sdk/src/lib/map-framework/implementation/3d/layer/ArcgisLayer3d.ts
https://raw.githubusercontent.com/Yuqiao412/2D-3D/e4b32a3/projects/map-engine-sdk/src/lib/map-framework/implementation/3d/layer/ArcgisLayer3d.ts
Yuqiao412/2D-3D e4b32a3 projects/map-engine-sdk/src/lib/map-framework/implementation/3d/layer/ArcgisLayer3d.ts
true
200
1,324
import LayerImpl3d from './LayerImpl3d'; import TileLayerImpl3d from './TileLayerImpl3d'; import ArcgisImageLayer from '../../2d/layer/ArcgisImageLayer'; import { Tool } from '../utils/Tool'; import ArcgisImageryProvider from './basicprovider/ArcgisImagertProvider'; declare var Cesium; export default class ArcgisLayer3...
2
masbagal/js13k-2024
053655b
src/main.ts
TypeScript
www.github.com/masbagal/js13k-2024/tree/main/src/main.ts
https://raw.githubusercontent.com/masbagal/js13k-2024/053655b/src/main.ts
masbagal/js13k-2024 053655b src/main.ts
true
200
9,818
import { cameraPos, cameraScale, clamp, Color, drawLine, drawRect, drawText, drawTile, engineInit, mouseWasPressed, randInt, randSign, setCameraPos, setCameraScale, setCanvasFixedSize, setFontDefault, tile, Timer, vec2, Vector2, wave, setGamepadsEnable, setShowWatermark, } ...
7
KaanArslan19/hexboxpoc
e97f3da
app/utils/poc_utils/createProduct.ts
TypeScript
www.github.com/KaanArslan19/hexboxpoc/tree/main/app/utils/poc_utils/createProduct.ts
https://raw.githubusercontent.com/KaanArslan19/hexboxpoc/e97f3da/app/utils/poc_utils/createProduct.ts
KaanArslan19/hexboxpoc e97f3da app/utils/poc_utils/createProduct.ts
true
200
2,676
import { uploadProductImageToR2, uploadProductImagesToR2 } from "../imageUpload"; import { uploadProductMetadataToR2 } from "@/app/utils/metadataUpload"; import client from "@/app/utils/mongodb"; export async function createProduct(formData: FormData) { // const productImageFile = formData.get("image") as File; //...
0
Dargon789/Ethereumjs-Webserver
f8d9708
packages/genesis/test/index.spec.ts
TypeScript
www.github.com/Dargon789/Ethereumjs-Webserver/tree/main/packages/genesis/test/index.spec.ts
https://raw.githubusercontent.com/Dargon789/Ethereumjs-Webserver/f8d9708/packages/genesis/test/index.spec.ts
Dargon789/Ethereumjs-Webserver f8d9708 packages/genesis/test/index.spec.ts
true
200
1,178
import { Chain, ChainGenesis } from '@ethereumjs/common' import { genesisStateRoot as genGenesisStateRoot } from '@ethereumjs/trie' import { bytesToHex, equalsBytes } from '@ethereumjs/util' import { assert, describe, it } from 'vitest' import { getGenesis } from '../src/index.js' describe('genesis test', () => { i...
1
howmanysmall/typescript-data-structures
13c1f17
src/utilities/memoize.ts
TypeScript
www.github.com/howmanysmall/typescript-data-structures/tree/main/src/utilities/memoize.ts
https://raw.githubusercontent.com/howmanysmall/typescript-data-structures/13c1f17/src/utilities/memoize.ts
howmanysmall/typescript-data-structures 13c1f17 src/utilities/memoize.ts
true
200
569
type Memoize<T, V> = (index: T) => V; /** * Used to memoize a function. It keeps the results of the function in a cache. * @param callback The function to memoize. * @returns The memoized function. */ export default function memoize<T, V>(callback: Memoize<T, V>): Memoize<T, V> { const cache = new Map<T, V>(); ...
5
archyCuber/pockedex
fc7a7fd
src/users/user.service.ts
TypeScript
www.github.com/archyCuber/pockedex/tree/main/src/users/user.service.ts
https://raw.githubusercontent.com/archyCuber/pockedex/fc7a7fd/src/users/user.service.ts
archyCuber/pockedex fc7a7fd src/users/user.service.ts
true
200
503
import { Injectable } from '@nestjs/common'; import {InjectModel} from "@nestjs/mongoose"; import {User, UserDocument} from "./user.schema"; import {Model} from "mongoose"; import {CreateUserDto} from "./create-user.dto"; @Injectable() export class UserService { constructor(@InjectModel(User.name) private userMode...
4
edwardjosephbennett/configs
1b991ef
packages/configs/src/lib/playwright/playwright.default.config.ts
TypeScript
www.github.com/edwardjosephbennett/configs/tree/main/packages/configs/src/lib/playwright/playwright.default.config.ts
https://raw.githubusercontent.com/edwardjosephbennett/configs/1b991ef/packages/configs/src/lib/playwright/playwright.default.config.ts
edwardjosephbennett/configs 1b991ef packages/configs/src/lib/playwright/playwright.default.config.ts
true
200
1,038
import type { PlaywrightTestConfig } from '@playwright/test'; import { defineConfig, devices } from '@playwright/test'; /** * See https://playwright.dev/docs/test-configuration. */ export const jhPlaywrightConfig : PlaywrightTestConfig = defineConfig({ testDir: './e2e-tests', /* Run tests in files in parallel */...
2
SSReal/portfolio-vnext
0690cec
pages/api/users.ts
TypeScript
www.github.com/SSReal/portfolio-vnext/tree/main/pages/api/users.ts
https://raw.githubusercontent.com/SSReal/portfolio-vnext/0690cec/pages/api/users.ts
SSReal/portfolio-vnext 0690cec pages/api/users.ts
true
200
451
import { NextApiRequest, NextApiResponse } from "next"; import { findUsernames } from "../../data/mongo"; export default async function handler( req: NextApiRequest, res: NextApiResponse<Object|void> ) { if(req.method !== "GET") { res.status(403).send({ message: "This endpoint doesn't a...
3
Djalalov/ts-practise
c991c10
src/app.ts
TypeScript
www.github.com/Djalalov/ts-practise/tree/main/src/app.ts
https://raw.githubusercontent.com/Djalalov/ts-practise/c991c10/src/app.ts
Djalalov/ts-practise c991c10 src/app.ts
true
200
1,253
import { Point6, Point7 } from "./basics"; let point = new Point6(45, 55); let x2 = point.getX(); console.log(x2); let point2 = new Point7(55, 35); let z = point2.Z; console.log(z); /////////////////////////////////////////////// let userInput: unknown; let userName: string; userInput = 5; userInput = "djkalhdkj"; /...
6
plgd-dev/hub
b4e8cc9
http-gateway/web/src/containers/Certificates/Certificates.i18n.ts
TypeScript
www.github.com/plgd-dev/hub/tree/main/http-gateway/web/src/containers/Certificates/Certificates.i18n.ts
https://raw.githubusercontent.com/plgd-dev/hub/b4e8cc9/http-gateway/web/src/containers/Certificates/Certificates.i18n.ts
plgd-dev/hub b4e8cc9 http-gateway/web/src/containers/Certificates/Certificates.i18n.ts
true
200
3,160
import { defineMessages } from '@formatjs/intl' export const messages = defineMessages({ certificates: { id: 'certificates.certificates', defaultMessage: 'Certificates', }, certificate: { id: 'certificates.certificate', defaultMessage: 'Certificate', }, deleteCertifi...
7
Casp7654/XPower
401e903
source/webclient/XPower_WebClient/src/app/Services/authguard.service.spec.ts
TypeScript
www.github.com/Casp7654/XPower/tree/main/source/webclient/XPower_WebClient/src/app/Services/authguard.service.spec.ts
https://raw.githubusercontent.com/Casp7654/XPower/401e903/source/webclient/XPower_WebClient/src/app/Services/authguard.service.spec.ts
Casp7654/XPower 401e903 source/webclient/XPower_WebClient/src/app/Services/authguard.service.spec.ts
true
200
562
import { HttpClient } from '@angular/common/http'; import { TestBed } from '@angular/core/testing'; import { AuthguardService } from './authguard.service'; describe('AuthguardService', () => { let service: AuthguardService; let mockHttp = jasmine.createSpyObj('HttpClient', ['post', 'get']); beforeEach(() => {...
0
debuglebowski/hidden-hell
d4b7922
src/utils/createItemObject/index.ts
TypeScript
www.github.com/debuglebowski/hidden-hell/tree/main/src/utils/createItemObject/index.ts
https://raw.githubusercontent.com/debuglebowski/hidden-hell/d4b7922/src/utils/createItemObject/index.ts
debuglebowski/hidden-hell d4b7922 src/utils/createItemObject/index.ts
true
200
410
import type { Context, Item } from '~/types'; import { createRelativePath } from '~/utils'; import { basename } from 'node:path'; export function createItemObject<T>(context: Context, absolutePath: string, extra: T): Item & T { return { name: basename(absolutePath), absolutePath: absolutePath, ...
1
NikolasAlencar/infospAPI
57e6741
server/Server.ts
TypeScript
www.github.com/NikolasAlencar/infospAPI/tree/main/server/Server.ts
https://raw.githubusercontent.com/NikolasAlencar/infospAPI/57e6741/server/Server.ts
NikolasAlencar/infospAPI 57e6741 server/Server.ts
true
200
548
import { router } from './routes'; import { enviroment } from './enviroments/enviroment'; import { startSocket } from './shared/middleware/Socket'; import express from 'express'; const cors = require('cors') const admin = require("firebase-admin"); admin.initializeApp({ credential: admin.credential.cert(enviroment...
5
Academia-FireMD/Front
26dcd3b
src/app/shared/avatar-upload/avatar-upload.component.ts
TypeScript
www.github.com/Academia-FireMD/Front/tree/main/src/app/shared/avatar-upload/avatar-upload.component.ts
https://raw.githubusercontent.com/Academia-FireMD/Front/26dcd3b/src/app/shared/avatar-upload/avatar-upload.component.ts
Academia-FireMD/Front 26dcd3b src/app/shared/avatar-upload/avatar-upload.component.ts
true
200
1,110
import { Component, Input } from '@angular/core'; import { ToastrService } from 'ngx-toastr'; import { firstValueFrom } from 'rxjs'; import { UserService } from '../../services/user.service'; @Component({ selector: 'app-avatar-upload', templateUrl: './avatar-upload.component.html', styleUrl: './avatar-upload.com...
4
Robert-Tyssen/bark-chat-server-nodejs
4dc8b81
src/routes/api_router.ts
TypeScript
www.github.com/Robert-Tyssen/bark-chat-server-nodejs/tree/main/src/routes/api_router.ts
https://raw.githubusercontent.com/Robert-Tyssen/bark-chat-server-nodejs/4dc8b81/src/routes/api_router.ts
Robert-Tyssen/bark-chat-server-nodejs 4dc8b81 src/routes/api_router.ts
true
200
939
import express from 'express'; import { authMiddleware } from '../middleware/auth_middleware'; import authRouter from './auth_router'; import conversationRouter from './conversation_router'; import messageRouter from './message_router'; // Create a public and protected router const publicRouter = express.Router(); con...
3
rudneisantiago/portfolio-api
e14f6f0
src/models/User.ts
TypeScript
www.github.com/rudneisantiago/portfolio-api/tree/main/src/models/User.ts
https://raw.githubusercontent.com/rudneisantiago/portfolio-api/e14f6f0/src/models/User.ts
rudneisantiago/portfolio-api e14f6f0 src/models/User.ts
true
200
1,019
import mongoose from "mongoose"; import { Password } from "../services/password"; interface UserAttrs { username: string; password: string; } interface UserDoc extends mongoose.Document { username: string; password: string; } interface UserModel extends mongoose.Model<UserDoc> { build(attrs: UserAttrs): Us...
2
ShahrozeKhan10/OptiMigrate
ec1060b
frontend/src/services/form.ts
TypeScript
www.github.com/ShahrozeKhan10/OptiMigrate/tree/main/frontend/src/services/form.ts
https://raw.githubusercontent.com/ShahrozeKhan10/OptiMigrate/ec1060b/frontend/src/services/form.ts
ShahrozeKhan10/OptiMigrate ec1060b frontend/src/services/form.ts
true
200
1,253
/* eslint-disable camelcase */ import * as Yup from 'yup'; export const first_name = Yup.string() .min(2, 'First name cannot be less than 2 characters') .max(60, 'First name cannot be greater than 20 characters') .required('First name is required'); export const lastName = Yup.string() .min(2, 'Last name cann...
6
hassan-ak/wmd-ts-atm
76e48cb
src/panels/adminPanel.ts
TypeScript
www.github.com/hassan-ak/wmd-ts-atm/tree/main/src/panels/adminPanel.ts
https://raw.githubusercontent.com/hassan-ak/wmd-ts-atm/76e48cb/src/panels/adminPanel.ts
hassan-ak/wmd-ts-atm 76e48cb src/panels/adminPanel.ts
true
200
623
// Admin Panel import inquirer from 'inquirer'; /******************************************/ // Admin Panel // list avaialble operations when loged in as admin // returns admin selection async function adminPanel(): Promise<string> { const response: { response: string } = await inquirer.prompt([ { message:...
0
Yograj010/mysql-connection
318f38d
src/app/_helpers/config.ts
TypeScript
www.github.com/Yograj010/mysql-connection/tree/main/src/app/_helpers/config.ts
https://raw.githubusercontent.com/Yograj010/mysql-connection/318f38d/src/app/_helpers/config.ts
Yograj010/mysql-connection 318f38d src/app/_helpers/config.ts
true
200
1,001
interface Configs { mongoDbHost: string; mongoDbPort: string; mongoCollectionName: string; sqlDbHost: string; sqlDbPort: string; sqlDbName: string; sqlUsername: string; sqlPassword: string; globalErrorMessage: string; serverHost: string; serverPort: string; } c...
7
Roy-Bivash/rentabike
be45e44
backend/src/historique/historique.module.ts
TypeScript
www.github.com/Roy-Bivash/rentabike/tree/main/backend/src/historique/historique.module.ts
https://raw.githubusercontent.com/Roy-Bivash/rentabike/be45e44/backend/src/historique/historique.module.ts
Roy-Bivash/rentabike be45e44 backend/src/historique/historique.module.ts
true
200
444
import { Module } from '@nestjs/common'; import { HistoriqueService } from './historique.service'; import { HistoriqueController } from './historique.controller'; import { TypeOrmModule } from '@nestjs/typeorm'; import { Historique } from './entities/historique.entity'; @Module({ imports: [TypeOrmModule.forFeature([...
1
CodeTropolis/reactive-angular-course
411ebfe
src/app/messages/messages.component.ts
TypeScript
www.github.com/CodeTropolis/reactive-angular-course/tree/main/src/app/messages/messages.component.ts
https://raw.githubusercontent.com/CodeTropolis/reactive-angular-course/411ebfe/src/app/messages/messages.component.ts
CodeTropolis/reactive-angular-course 411ebfe src/app/messages/messages.component.ts
true
200
916
import { Component, OnInit } from '@angular/core'; import {Observable} from 'rxjs'; import {Message} from '../model/message'; import {tap} from 'rxjs/operators'; import { MessagesService } from './messages.service'; @Component({ selector: 'messages', templateUrl: './messages.component.html', styleUrls: ['./messa...
5
jyotpatel14/ChatAppWS
32ca052
backend/src/index.ts
TypeScript
www.github.com/jyotpatel14/ChatAppWS/tree/main/backend/src/index.ts
https://raw.githubusercontent.com/jyotpatel14/ChatAppWS/32ca052/backend/src/index.ts
jyotpatel14/ChatAppWS 32ca052 backend/src/index.ts
true
200
718
import { WebSocketServer } from 'ws'; import { ChatManager } from './ChatManager'; import { LOGINUSER } from './messages'; const wss = new WebSocketServer({ port: 8080 }); const chatManager = new ChatManager(); wss.on('connection', function connection(ws) { // ws.on('error', console.error); // ws.on('messa...
4
awwmicky/audiophile
734f8c6
components/layout/footer/top/_.styles.ts
TypeScript
www.github.com/awwmicky/audiophile/tree/main/components/layout/footer/top/_.styles.ts
https://raw.githubusercontent.com/awwmicky/audiophile/734f8c6/components/layout/footer/top/_.styles.ts
awwmicky/audiophile 734f8c6 components/layout/footer/top/_.styles.ts
true
200
1,081
import tw from 'twin.macro' import { Text } from '@/components/blocks' // import { Layer } from '@/components/layout/layer' // @/components/layout/layer export const Frame = tw.div` container mx-auto relative pt-20 pb-12 grid gap-4 text-center md:(grid-cols-2 text-start [&>svg]:place-self-start!) ` export const To...
3
kochubeyy/todo-angular
3c01e99
src/app/validators/inn.validator.ts
TypeScript
www.github.com/kochubeyy/todo-angular/tree/main/src/app/validators/inn.validator.ts
https://raw.githubusercontent.com/kochubeyy/todo-angular/3c01e99/src/app/validators/inn.validator.ts
kochubeyy/todo-angular 3c01e99 src/app/validators/inn.validator.ts
true
200
363
import { AbstractControl, ValidatorFn } from '@angular/forms'; export function innValidator(): ValidatorFn { return (control: AbstractControl): { [key: string]: any } | null => { const value: string = control.value; if (value && (value.length !== 10 && value.length !== 12)) { return { 'invalidInnLengt...
2
Shanmugalakshmi11/HA_17_07_2024
82be453
src/routes/todos/index.ts
TypeScript
www.github.com/Shanmugalakshmi11/HA_17_07_2024/tree/main/src/routes/todos/index.ts
https://raw.githubusercontent.com/Shanmugalakshmi11/HA_17_07_2024/82be453/src/routes/todos/index.ts
Shanmugalakshmi11/HA_17_07_2024 82be453 src/routes/todos/index.ts
true
200
2,885
import { Router } from 'express'; import { ReasonPhrases, StatusCodes } from 'http-status-codes'; import TodoModel from '../../database/models/TodoModel'; import type { ICreateNewTodoBody, IDeleteTodoBody, IGetAllTodosBody, IUpdateTodoBody, } from '../../interfaces/routers/TodoRquests'; const TodosRouter = Rou...
0
Oldroge/TypeScript
5d6dd3d
fundamentals/exercises2/exercises.ts
TypeScript
www.github.com/Oldroge/TypeScript/tree/main/fundamentals/exercises2/exercises.ts
https://raw.githubusercontent.com/Oldroge/TypeScript/5d6dd3d/fundamentals/exercises2/exercises.ts
Oldroge/TypeScript 5d6dd3d fundamentals/exercises2/exercises.ts
true
200
2,197
// Material exercises: export function greeter(name: string): string { return `Olá ${name}!`; } export function personAge(name: string, age: number): string { return `${name} tem ${age} anos!`; } export function add(x: number, y: number): number { return x + y; } export function sumArray(numbers: number...
6
JakeGilesPhillips/split-flap
3ee2a4a
src/app/contentful/types/TypeColumnNew.ts
TypeScript
www.github.com/JakeGilesPhillips/split-flap/tree/main/src/app/contentful/types/TypeColumnNew.ts
https://raw.githubusercontent.com/JakeGilesPhillips/split-flap/3ee2a4a/src/app/contentful/types/TypeColumnNew.ts
JakeGilesPhillips/split-flap 3ee2a4a src/app/contentful/types/TypeColumnNew.ts
true
200
568
import type { ChainModifiers, Entry, EntryFieldTypes, EntrySkeletonType, LocaleCode } from "contentful"; export interface TypeColumnNewFields { key: EntryFieldTypes.Text; displayLabel: EntryFieldTypes.Text; } export type ColumnNewType = "columnNew"; export type TypeColumnNewEntry = Entry<TypeColumnNewSkeleton, und...
7
oceanengine/okeevis-render
fe5e3f2
src/RichText/flexlayout.ts
TypeScript
www.github.com/oceanengine/okeevis-render/tree/main/src/RichText/flexlayout.ts
https://raw.githubusercontent.com/oceanengine/okeevis-render/fe5e3f2/src/RichText/flexlayout.ts
oceanengine/okeevis-render fe5e3f2 src/RichText/flexlayout.ts
true
200
3,008
/** * @desc flex layout */ import { BBox } from '../utils/bbox'; import * as lodash from '../utils/lodash'; type BoxAlign = 'start' | 'center' | 'end'; export function getAlignPosition( start: number, end: number, size: number, align: BoxAlign, ): number { const positionMap: Record<BoxAlign, number> = { ...
1
kubeshop/pokeshop
3be5812
api/src/handlers/streamSyncronize.handler.ts
TypeScript
www.github.com/kubeshop/pokeshop/tree/main/api/src/handlers/streamSyncronize.handler.ts
https://raw.githubusercontent.com/kubeshop/pokeshop/3be5812/api/src/handlers/streamSyncronize.handler.ts
kubeshop/pokeshop 3be5812 api/src/handlers/streamSyncronize.handler.ts
true
200
821
import PokeAPIService from '@pokemon/services/pokeApi.service'; import PokemonSyncronizer, { TPokemonSyncMessage } from '@pokemon/services/pokemonSyncronizer.service'; import { StreamingService } from '@pokemon/services/stream.service'; import { KafkaMessage } from 'kafkajs' const pokemonSyncronizationHandler = async ...
4
vechain/solidity-masterclass
7af56df
scripts/deploy/deploy.ts
TypeScript
www.github.com/vechain/solidity-masterclass/tree/main/scripts/deploy/deploy.ts
https://raw.githubusercontent.com/vechain/solidity-masterclass/7af56df/scripts/deploy/deploy.ts
vechain/solidity-masterclass 7af56df scripts/deploy/deploy.ts
true
200
1,070
import { network } from "hardhat"; import { HttpNetworkConfig } from "hardhat/types"; import { getOrDeployContractInstances } from "../helpers"; /** * Deploys all the contracts * @param config The contracts configuration * @param printLogs Whether to print logs * @returns The deployed contracts */ export async...
5
KANGOO2021/PortfolioFrontendVercel
1b1150f
src/app/pages/acercade-edit/acercade-edit.component.ts
TypeScript
www.github.com/KANGOO2021/PortfolioFrontendVercel/tree/main/src/app/pages/acercade-edit/acercade-edit.component.ts
https://raw.githubusercontent.com/KANGOO2021/PortfolioFrontendVercel/1b1150f/src/app/pages/acercade-edit/acercade-edit.component.ts
KANGOO2021/PortfolioFrontendVercel 1b1150f src/app/pages/acercade-edit/acercade-edit.component.ts
true
200
1,476
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { FormControl, FormGroup } from '@angular/forms'; import { Acercade } from 'src/app/Models/acercade'; import { AcercadeService } from '../../services/acercade.service'; @Component({ selector: 'app-acercade-edit', templateUrl: '....
2
korchel/gh-api-react
0a506c7
src/utils/getErrorMessage.ts
TypeScript
www.github.com/korchel/gh-api-react/tree/main/src/utils/getErrorMessage.ts
https://raw.githubusercontent.com/korchel/gh-api-react/0a506c7/src/utils/getErrorMessage.ts
korchel/gh-api-react 0a506c7 src/utils/getErrorMessage.ts
true
200
491
import { SerializedError } from "@reduxjs/toolkit"; import { FetchBaseQueryError } from "@reduxjs/toolkit/query"; export const getErrorMessage = ( error: FetchBaseQueryError | SerializedError ): string => { if ("status" in error) { if (error.status === "FETCH_ERROR") { return "A connection error happened...
3
TheEgid/prisma
1ab0cb9
src/pages/api/user/[id].ts
TypeScript
www.github.com/TheEgid/prisma/tree/main/src/pages/api/user/[id].ts
https://raw.githubusercontent.com/TheEgid/prisma/1ab0cb9/src/pages/api/user/%5Bid%5D.ts
TheEgid/prisma 1ab0cb9 src/pages/api/user/[id].ts
true
200
1,902
import { NextApiRequest, NextApiResponse } from "next"; import { prisma } from "tools/db"; // eslint-disable-next-line @typescript-eslint/require-await export default async function handle(req: NextApiRequest, res: NextApiResponse) { const userId = req.query.id as string; if (req.method === "GET") { /...
0
Agungajipradana/RESTful-API-contact-management-nest-js
1ca023b
src/common/validation.service.ts
TypeScript
www.github.com/Agungajipradana/RESTful-API-contact-management-nest-js/tree/main/src/common/validation.service.ts
https://raw.githubusercontent.com/Agungajipradana/RESTful-API-contact-management-nest-js/1ca023b/src/common/validation.service.ts
Agungajipradana/RESTful-API-contact-management-nest-js 1ca023b src/common/validation.service.ts
true
200
800
// Importing the necessary decorator from NestJS and the ZodType class from Zod for validation. import { Injectable } from '@nestjs/common'; // `Injectable` decorator makes the class injectable as a service. import { ZodType } from 'zod'; // Importing ZodType from Zod library, which is used for schema validation. // T...
7
imojen/square
94e1bd8
src/app/components/play-area.component.ts
TypeScript
www.github.com/imojen/square/tree/main/src/app/components/play-area.component.ts
https://raw.githubusercontent.com/imojen/square/94e1bd8/src/app/components/play-area.component.ts
imojen/square 94e1bd8 src/app/components/play-area.component.ts
true
200
1,564
import { Component } from '@angular/core'; import { SquareService } from '../services/square.service'; import { NgClass, NgIf, NgStyle } from '@angular/common'; @Component({ selector: 'app-play-area', standalone: true, imports: [NgClass, NgStyle, NgIf], templateUrl: './play-area.component.html', styleUrls: [...
1
Hardart/pants-server
778a3fb
controllers/track-controller.ts
TypeScript
www.github.com/Hardart/pants-server/tree/main/controllers/track-controller.ts
https://raw.githubusercontent.com/Hardart/pants-server/778a3fb/controllers/track-controller.ts
Hardart/pants-server 778a3fb controllers/track-controller.ts
true
200
729
import type { Response, Request } from 'express' import trackService from '../service/track-service' import trackArchiveService from '../service/track-archive-service' class TrackController { async list(req: Request, res: Response) { const tracks = await trackService.list() res.status(200).json(tracks) } ...
4
radaalinmihai/routiner-backend
cbb1166
app/models/todo.model.ts
TypeScript
www.github.com/radaalinmihai/routiner-backend/tree/main/app/models/todo.model.ts
https://raw.githubusercontent.com/radaalinmihai/routiner-backend/cbb1166/app/models/todo.model.ts
radaalinmihai/routiner-backend cbb1166 app/models/todo.model.ts
true
200
620
import { Static, Type } from "@sinclair/typebox"; import { RowDataPacket } from "mysql2"; export const TodoModel = Type.Object({ id: Type.String(), title: Type.String(), description: Type.Optional(Type.String()), created_at: Type.String(), modified_at: Type.String(), }); export const InsertToDoModel = Type.Pick(...
5
Supawite-Peter/simple-iot-api-gateway
a4880fc
src/users/devices/devices.controller.spec.ts
TypeScript
www.github.com/Supawite-Peter/simple-iot-api-gateway/tree/main/src/users/devices/devices.controller.spec.ts
https://raw.githubusercontent.com/Supawite-Peter/simple-iot-api-gateway/a4880fc/src/users/devices/devices.controller.spec.ts
Supawite-Peter/simple-iot-api-gateway a4880fc src/users/devices/devices.controller.spec.ts
true
200
8,574
import { Test, TestingModule } from '@nestjs/testing'; import { DevicesController } from './devices.controller'; import { DevicesService } from './devices.service'; import { DevicesServiceMock } from './mocks/devices.service.mock'; import { CacheMock } from '../../mocks/cache.mock'; import { Cache } from 'cache-manager...
2
DhyeyMakadia/CTStock-FE
8c0cccf
src/services/publicClient.ts
TypeScript
www.github.com/DhyeyMakadia/CTStock-FE/tree/main/src/services/publicClient.ts
https://raw.githubusercontent.com/DhyeyMakadia/CTStock-FE/8c0cccf/src/services/publicClient.ts
DhyeyMakadia/CTStock-FE 8c0cccf src/services/publicClient.ts
true
200
3,108
import axios, { AxiosResponse } from "axios"; import { StatusCode } from "src/utils/constants"; const https = require("https"); const publicClient = axios.create({ baseURL: process.env.API_URL, timeout: 12400000, responseType: "json", httpsAgent: new https.Agent({ rejectUnauthorized: false }), }); let reques...
3
adammcodes/pokemechanics
bc7ad6c
src/hooks/useLocalStorageState.ts
TypeScript
www.github.com/adammcodes/pokemechanics/tree/main/src/hooks/useLocalStorageState.ts
https://raw.githubusercontent.com/adammcodes/pokemechanics/bc7ad6c/src/hooks/useLocalStorageState.ts
adammcodes/pokemechanics bc7ad6c src/hooks/useLocalStorageState.ts
true
200
618
"use client"; import { useState, useEffect } from "react"; export default function useLocalStorageState<T>( key: string, defaultValue: T ): [T, (value: T) => void] { const [state, setState] = useState<T>(() => { if (typeof localStorage !== "undefined") { const storedValue = localStorage.getItem(key); ...
6
lidofinance/reef-knot
be66a67
playwright-tests/config/env.config.ts
TypeScript
www.github.com/lidofinance/reef-knot/tree/main/playwright-tests/config/env.config.ts
https://raw.githubusercontent.com/lidofinance/reef-knot/be66a67/playwright-tests/config/env.config.ts
lidofinance/reef-knot be66a67 playwright-tests/config/env.config.ts
true
200
1,893
import { NetworkConfig } from '@lidofinance/wallets-testing-wallets'; import { NETWORKS_CONFIG } from '@lidofinance/wallets-testing-wallets'; import { WALLETS } from './wallet.config'; import { REEF_KNOT_CONFIG } from './config'; import { ENV_CONFIG } from './env.validation'; export interface StandConfig { networkCo...
0
albertosubero/angular-crypto-tracker
913b630
src/app/app.module.ts
TypeScript
www.github.com/albertosubero/angular-crypto-tracker/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/albertosubero/angular-crypto-tracker/913b630/src/app/app.module.ts
albertosubero/angular-crypto-tracker 913b630 src/app/app.module.ts
true
200
2,033
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { CoinsListComponent } from './core/views/coins-list/coins-list.component'; import { CoinDetailsComponent ...
7
anhdev2k1/social-fe
72992b3
src/configs/interceptor.ts
TypeScript
www.github.com/anhdev2k1/social-fe/tree/main/src/configs/interceptor.ts
https://raw.githubusercontent.com/anhdev2k1/social-fe/72992b3/src/configs/interceptor.ts
anhdev2k1/social-fe 72992b3 src/configs/interceptor.ts
true
200
1,228
import axios, { AxiosError, InternalAxiosRequestConfig } from "axios"; const axiosClient = axios.create({ baseURL: "https://social-be-nu.vercel.app/api/v1", headers: { "Content-Type": "application/json", }, }); // Add a response interceptor axiosClient.interceptors.response.use( // eslint-disable-next-lin...
1
henrique0089/instant
6f892a0
api/src/controllers/chat-room/unpin-chat-room-controller.ts
TypeScript
www.github.com/henrique0089/instant/tree/main/api/src/controllers/chat-room/unpin-chat-room-controller.ts
https://raw.githubusercontent.com/henrique0089/instant/6f892a0/api/src/controllers/chat-room/unpin-chat-room-controller.ts
henrique0089/instant 6f892a0 api/src/controllers/chat-room/unpin-chat-room-controller.ts
true
200
1,255
import { Request, Response } from 'express' import { AppError } from 'src/app-error' import { PrismaPinnedChatRoomsRepository } from 'src/repositories/prisma-pinned-chat-room-repository' import { z } from 'zod' import { PrismaChatRoomsRepository } from '../../repositories/prisma-chat-rooms-repository' export class Unp...
4
Watersilver/smbrowser
3bd2ca3
src/entityFactories/newDeadMario.ts
TypeScript
www.github.com/Watersilver/smbrowser/tree/main/src/entityFactories/newDeadMario.ts
https://raw.githubusercontent.com/Watersilver/smbrowser/3bd2ca3/src/entityFactories/newDeadMario.ts
Watersilver/smbrowser 3bd2ca3 src/entityFactories/newDeadMario.ts
true
200
761
import { Vec2d } from "../engine"; import entities, { newEntity } from "../entities"; import smb1Sprites from "../sprites/smb1"; function rand() { return Math.random() * 2 - 1; } export default function newDeadMario(x: number, y: number) { const smb1MarioAnimations = smb1Sprites.getFactory('mario').new(); smb1M...
2
ugurer/financeai
d22e375
backend/node-api/src/services/auth.service.ts
TypeScript
www.github.com/ugurer/financeai/tree/main/backend/node-api/src/services/auth.service.ts
https://raw.githubusercontent.com/ugurer/financeai/d22e375/backend/node-api/src/services/auth.service.ts
ugurer/financeai d22e375 backend/node-api/src/services/auth.service.ts
true
200
2,700
import { getRepository } from 'typeorm'; import bcrypt from 'bcrypt'; import jwt from 'jsonwebtoken'; import { User } from '../models/User'; export class AuthService { private static readonly JWT_SECRET = process.env.JWT_SECRET || 'your-secret-key'; private static readonly JWT_EXPIRES_IN = '24h'; public s...
5
Petya29/ReactUnityGames
206a5ba
server/routes/game.router.ts
TypeScript
www.github.com/Petya29/ReactUnityGames/tree/main/server/routes/game.router.ts
https://raw.githubusercontent.com/Petya29/ReactUnityGames/206a5ba/server/routes/game.router.ts
Petya29/ReactUnityGames 206a5ba server/routes/game.router.ts
true
200
622
import { Router } from "express"; import GameController from "../controllers/game.controller"; import authMiddleware from "../middleware/auth.middleware"; import validate from "../validation"; import { saveScoreSchema } from "../validation/schemas"; const gameRouter = Router(); gameRouter.post('/save-score/:gameId', ...
3
llecoq/ft_transcendence
069d92f
backend/src/messages/dto/create-message.dto.ts
TypeScript
www.github.com/llecoq/ft_transcendence/tree/main/backend/src/messages/dto/create-message.dto.ts
https://raw.githubusercontent.com/llecoq/ft_transcendence/069d92f/backend/src/messages/dto/create-message.dto.ts
llecoq/ft_transcendence 069d92f backend/src/messages/dto/create-message.dto.ts
true
200
713
import { Type } from 'class-transformer'; import { ApiProperty } from "@nestjs/swagger"; import { UserEntity } from "../../users/entities/user.entity"; import { IsString, IsNotEmpty, MaxLength } from "class-validator"; import { ChannelEntity } from 'src/channels/entities/channel.entity'; export class CreateMessageD...
0
NadaaLi202/Restaurant_Project
c6faa32
src/categories/category.validation.ts
TypeScript
www.github.com/NadaaLi202/Restaurant_Project/tree/main/src/categories/category.validation.ts
https://raw.githubusercontent.com/NadaaLi202/Restaurant_Project/c6faa32/src/categories/category.validation.ts
NadaaLi202/Restaurant_Project c6faa32 src/categories/category.validation.ts
true
200
1,505
import { body, param } from "express-validator"; import categoriesSchema from "./categories.schema"; import validatorMiddleware from "../middleware/validator.middleware"; class CategoriesValidation { createOne = [body('name').notEmpty().withMessage((val, {req}) => req.__('validation_field')) .isLength({m...
7
VixoPlank/Linktree-Clone
adaa918
app/(routes)/(home)/components/StepOne/StepOne.data.ts
TypeScript
www.github.com/VixoPlank/Linktree-Clone/tree/main/app/(routes)/(home)/components/StepOne/StepOne.data.ts
https://raw.githubusercontent.com/VixoPlank/Linktree-Clone/adaa918/app/%28routes%29/%28home%29/components/StepOne/StepOne.data.ts
VixoPlank/Linktree-Clone adaa918 app/(routes)/(home)/components/StepOne/StepOne.data.ts
true
200
337
export const dataCreator = [ { title: '🌟 Creator', value: 'creator', }, { title: '🏢 Business', value: 'business', }, { title: '👨‍💻 Developer', value: 'developer', }, { title: '🏠 Real State', value: 'real-state', }, { title: '😎 Other', value: 'other', }, ...
1
GersonVallejos/clust-strategies-project
7dd6d73
frontend/src/app/components/add-client-info/add-client-info.component.ts
TypeScript
www.github.com/GersonVallejos/clust-strategies-project/tree/main/frontend/src/app/components/add-client-info/add-client-info.component.ts
https://raw.githubusercontent.com/GersonVallejos/clust-strategies-project/7dd6d73/frontend/src/app/components/add-client-info/add-client-info.component.ts
GersonVallejos/clust-strategies-project 7dd6d73 frontend/src/app/components/add-client-info/add-client-info.component.ts
true
200
2,527
import { Component, OnInit } from '@angular/core'; import { Router, ActivatedRoute } from '@angular/router'; import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms'; import {Client_info} from 'src/app/models/client-info-model'; import {ClientInfoService} from 'src/app/servicios/clientInfo/clien...
4
burakdalyanda/Linker
01e4fc8
resources/client/common/ui/buttons/get-shared-button-style.ts
TypeScript
www.github.com/burakdalyanda/Linker/tree/main/resources/client/common/ui/buttons/get-shared-button-style.ts
https://raw.githubusercontent.com/burakdalyanda/Linker/01e4fc8/resources/client/common/ui/buttons/get-shared-button-style.ts
burakdalyanda/Linker 01e4fc8 resources/client/common/ui/buttons/get-shared-button-style.ts
true
200
3,784
export type ButtonVariant = | 'text' | 'flat' | 'raised' | 'outline' | 'link' | null; export type ButtonColor = null | 'primary' | 'danger' | 'paper' | 'chip'; interface SharedButtonStyleProps { variant?: ButtonVariant; color?: ButtonColor; border?: string; shadow?: string; whitespace?: string; }...
6
Kelgors/archimedes-api
fe7a3f3
src/schemas/User.ts
TypeScript
www.github.com/Kelgors/archimedes-api/tree/main/src/schemas/User.ts
https://raw.githubusercontent.com/Kelgors/archimedes-api/fe7a3f3/src/schemas/User.ts
Kelgors/archimedes-api fe7a3f3 src/schemas/User.ts
true
200
1,033
import { z } from 'zod'; import { UserRole } from '../models/User'; export const USER_ID = z.string().uuid(); export const USER_EMAIL = z.string().email(); export const USER_NAME = z.string(); export const USER_PLAIN_PASSWORD = z.string().min(12); export const USER_ROLE = z.nativeEnum(UserRole); export const UserCrea...
2
eldanielsoares/roioto
e642d6d
src/infra/cryptography/jwt-encryption.ts
TypeScript
www.github.com/eldanielsoares/roioto/tree/main/src/infra/cryptography/jwt-encryption.ts
https://raw.githubusercontent.com/eldanielsoares/roioto/e642d6d/src/infra/cryptography/jwt-encryption.ts
eldanielsoares/roioto e642d6d src/infra/cryptography/jwt-encryption.ts
true
200
447
import { Injectable } from '@nestjs/common' import { JwtService } from '@nestjs/jwt' import { Encryption } from '@/domain/user/application/cryptography/encrypt' @Injectable() export class JwtEncryption implements Encryption { constructor(private jwtService: JwtService) {} encrypt( payload: Record<string, unkno...
3
sanicodes/romels-webmart-Angular
3d2c7ad
src/app/owner/sidebar/sidebar.component.ts
TypeScript
www.github.com/sanicodes/romels-webmart-Angular/tree/main/src/app/owner/sidebar/sidebar.component.ts
https://raw.githubusercontent.com/sanicodes/romels-webmart-Angular/3d2c7ad/src/app/owner/sidebar/sidebar.component.ts
sanicodes/romels-webmart-Angular 3d2c7ad src/app/owner/sidebar/sidebar.component.ts
true
200
710
import { Component, OnInit } from '@angular/core'; import { AuthenticationService } from '../../services/authentication/authentication.service' import { MatDialog} from '@angular/material/dialog'; import { EditcredComponent } from '../editcred/editcred.component'; @Component({ selector: 'app-sidebar', templateUrl:...
0
drew-a-reed/ToDoProjectUI
49559ad
src/app/services/reset-password.service.ts
TypeScript
www.github.com/drew-a-reed/ToDoProjectUI/tree/main/src/app/services/reset-password.service.ts
https://raw.githubusercontent.com/drew-a-reed/ToDoProjectUI/49559ad/src/app/services/reset-password.service.ts
drew-a-reed/ToDoProjectUI 49559ad src/app/services/reset-password.service.ts
true
200
709
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { ResetPassword } from '../models/reset-password.model'; @Injectable({ providedIn: 'root', }) export class ResetPasswordService { private baseUrlDev: string = 'https://localhost:7174/api/User'; private baseUrl: ...
1
serenez/lpc-server-update
f23dd20
src/config/ConfigManager.ts
TypeScript
www.github.com/serenez/lpc-server-update/tree/main/src/config/ConfigManager.ts
https://raw.githubusercontent.com/serenez/lpc-server-update/f23dd20/src/config/ConfigManager.ts
serenez/lpc-server-update f23dd20 src/config/ConfigManager.ts
true
200
10,874
import * as vscode from 'vscode'; import * as path from 'path'; import * as fs from 'fs'; import { EventEmitter } from 'events'; import { LogManager, LogLevel } from '../log/LogManager'; export interface Config { host: string; port: number; username: string; password: string; rootPath: string; ...
5
Gokulr1612/ej2-angular-samples
86dbe82
src/app/app-shell/numeric-text-box/numeric-text-box.routing.module.ts
TypeScript
www.github.com/Gokulr1612/ej2-angular-samples/tree/main/src/app/app-shell/numeric-text-box/numeric-text-box.routing.module.ts
https://raw.githubusercontent.com/Gokulr1612/ej2-angular-samples/86dbe82/src/app/app-shell/numeric-text-box/numeric-text-box.routing.module.ts
Gokulr1612/ej2-angular-samples 86dbe82 src/app/app-shell/numeric-text-box/numeric-text-box.routing.module.ts
true
200
379
import { NgModule } from '@angular/core' import { Routes, RouterModule } from '@angular/router' import { NumericTextComponent } from './numeric-text-box.component' const routes: Routes = [ { path: '', component: NumericTextComponent } ] @NgModule({ imports: [RouterModule.forChild(routes)], exports: [...
4
Hazarinn/helpdesk-front
19ae55c
src/app/components/chamado/chamado-read/chamado-read.component.ts
TypeScript
www.github.com/Hazarinn/helpdesk-front/tree/main/src/app/components/chamado/chamado-read/chamado-read.component.ts
https://raw.githubusercontent.com/Hazarinn/helpdesk-front/19ae55c/src/app/components/chamado/chamado-read/chamado-read.component.ts
Hazarinn/helpdesk-front 19ae55c src/app/components/chamado/chamado-read/chamado-read.component.ts
true
200
1,512
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { ToastrService } from 'ngx-toastr'; import { Chamado } from 'src/app/models/chamado'; import { ChamadoService } from 'src/app/services/chamado.service'; @Component({ selector: 'app-chamado-read', templateUr...
2
keyemporiumtech/keyemporium_web
e5f5456
src/app/rest/request/interfaces/request-manager.interface.ts
TypeScript
www.github.com/keyemporiumtech/keyemporium_web/tree/main/src/app/rest/request/interfaces/request-manager.interface.ts
https://raw.githubusercontent.com/keyemporiumtech/keyemporium_web/e5f5456/src/app/rest/request/interfaces/request-manager.interface.ts
keyemporiumtech/keyemporium_web e5f5456 src/app/rest/request/interfaces/request-manager.interface.ts
true
200
444
import { KeyvalueObject } from '@ddc/kit'; import { ResponseTokenInterface } from '../../response/interfaces/response-token.interface'; import { RequestStorageInterface } from './request-storage.interface'; export interface RequestManagerInterface { storage?: RequestStorageInterface; tokenManager?: ResponseTokenInte...
3
shiranlasry/myHomeWork
a8ed789
CRM/public/CRM_homePage.ts
TypeScript
www.github.com/shiranlasry/myHomeWork/tree/main/CRM/public/CRM_homePage.ts
https://raw.githubusercontent.com/shiranlasry/myHomeWork/a8ed789/CRM/public/CRM_homePage.ts
shiranlasry/myHomeWork a8ed789 CRM/public/CRM_homePage.ts
true
200
21,780
//homepage ts // get current user from server cookie async function getLoggedInUser() { try { const response = await fetch("/API/user/get-logged-user"); if (!response.ok) { throw new Error(`Server returned status: ${response.status}`); } const data = await response.json(...
7
bisht1418/Generative-AI
2578334
S_03/D_04/Training/todo-app/src/app/app.module.ts
TypeScript
www.github.com/bisht1418/Generative-AI/tree/main/S_03/D_04/Training/todo-app/src/app/app.module.ts
https://raw.githubusercontent.com/bisht1418/Generative-AI/2578334/S_03/D_04/Training/todo-app/src/app/app.module.ts
bisht1418/Generative-AI 2578334 S_03/D_04/Training/todo-app/src/app/app.module.ts
true
200
591
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; // Add this line import { AppComponent } from './app.component'; import { TodoListComponent } from './todo-list/todo-list.component'; import { AddTodoComponent } from './ad...
0
davidnasrulloh/ch-6-binar-management-dashboard
762227d
src/backend/controllers/api/userTypeController.ts
TypeScript
www.github.com/davidnasrulloh/ch-6-binar-management-dashboard/tree/main/src/backend/controllers/api/userTypeController.ts
https://raw.githubusercontent.com/davidnasrulloh/ch-6-binar-management-dashboard/762227d/src/backend/controllers/api/userTypeController.ts
davidnasrulloh/ch-6-binar-management-dashboard 762227d src/backend/controllers/api/userTypeController.ts
true
200
1,009
import { Request, Response } from 'express'; import UserTypeService from '../../../backend/service/userTypeService'; class UserTypeController { static getAll(req: Request, res: Response): void { UserTypeService.getAll() .then((types) => { res.status(200).json({ code: 200, messag...
6
tttttasa/fpis-backend
989c9fc
src/database/mysql/migrations/1691744591932-create-usluga-table.ts
TypeScript
www.github.com/tttttasa/fpis-backend/tree/main/src/database/mysql/migrations/1691744591932-create-usluga-table.ts
https://raw.githubusercontent.com/tttttasa/fpis-backend/989c9fc/src/database/mysql/migrations/1691744591932-create-usluga-table.ts
tttttasa/fpis-backend 989c9fc src/database/mysql/migrations/1691744591932-create-usluga-table.ts
true
200
702
import { MigrationInterface, QueryRunner } from 'typeorm'; export class CreateUslugaTable1691744591932 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.query( `CREATE TABLE IF NOT EXISTS usluga ( \ id_usluge int NOT NULL AUTO_INCREMENT...
1
self-denial-cy/typescript-exercise
8c50126
examples/src/09-conditional-types/function.ts
TypeScript
www.github.com/self-denial-cy/typescript-exercise/tree/main/examples/src/09-conditional-types/function.ts
https://raw.githubusercontent.com/self-denial-cy/typescript-exercise/8c50126/examples/src/09-conditional-types/function.ts
self-denial-cy/typescript-exercise 8c50126 examples/src/09-conditional-types/function.ts
true
200
619
// 条件类型还可以用来对更复杂的类型进行比较,比如函数类型 export type Func = (...args: any[]) => any; // 泛型约束要求传入符合结构的类型参数,相当于参数校验;条件类型使用类型参数进行条件判断,相当于实际内部逻辑 export type FunctionConditionType<T extends Func> = T extends (...args: any[]) => string ? 'A string return func' : 'A non-string return func'; type StringResult = FunctionConditionTy...
2
ckwdani/lobebar
dd4337f
frontend_lb_nx/shared/ui/src/lib/components/dialogs/important-delete-dialog/important-delete-dialog.component.ts
TypeScript
www.github.com/ckwdani/lobebar/tree/main/frontend_lb_nx/shared/ui/src/lib/components/dialogs/important-delete-dialog/important-delete-dialog.component.ts
https://raw.githubusercontent.com/ckwdani/lobebar/dd4337f/frontend_lb_nx/shared/ui/src/lib/components/dialogs/important-delete-dialog/important-delete-dialog.component.ts
ckwdani/lobebar dd4337f frontend_lb_nx/shared/ui/src/lib/components/dialogs/important-delete-dialog/important-delete-dialog.component.ts
true
200
777
import {Component, Inject} from '@angular/core'; import {MAT_DIALOG_DATA, MatDialogRef} from "@angular/material/dialog"; import {FormControl, Validators} from "@angular/forms"; import {Shift} from "@frontend-lb-nx/shared/entities"; @Component({ selector: 'frontend-lb-nx-important-delete-dialog', templateUrl: './im...
5
yyy1025/cms
6790313
vue3-ts-cms/src/main.ts
TypeScript
www.github.com/yyy1025/cms/tree/main/vue3-ts-cms/src/main.ts
https://raw.githubusercontent.com/yyy1025/cms/6790313/vue3-ts-cms/src/main.ts
yyy1025/cms 6790313 vue3-ts-cms/src/main.ts
true
200
451
import { createApp } from 'vue' import App from './App.vue' import axios from 'axios' import 'normalize.css' import '../src/assets/css/common.less' import '../src/assets/css/reset.less' //ts文件引入.vue文件没有报错,是因为typescript-vue-plugin(volar)这个插件被启用 import './assets/main.css' import router from './router' import pinia from...
4
AnderBuendia/sharerecipes
5deeb06
packages/server/src/modules/comment/infrastructure/graphql/dto/comment.dto.ts
TypeScript
www.github.com/AnderBuendia/sharerecipes/tree/main/packages/server/src/modules/comment/infrastructure/graphql/dto/comment.dto.ts
https://raw.githubusercontent.com/AnderBuendia/sharerecipes/5deeb06/packages/server/src/modules/comment/infrastructure/graphql/dto/comment.dto.ts
AnderBuendia/sharerecipes 5deeb06 packages/server/src/modules/comment/infrastructure/graphql/dto/comment.dto.ts
true
200
353
import { CommentEntityDoc } from '@Shared/infrastructure/http/mongodb/interfaces/documents/comment-document.interface'; export type PublicCommentDTO = CommentEntityDoc; export interface SendRecipeCommentDTO { message: string; } export interface VoteCommentDTO { votes: number; } export interface UpdateCommentDTO...
3
swisspong/ms-crypto-fashion
49e1b95
ms-crypto-fashion/apps/orders/src/cron/cron.service.ts
TypeScript
www.github.com/swisspong/ms-crypto-fashion/tree/main/ms-crypto-fashion/apps/orders/src/cron/cron.service.ts
https://raw.githubusercontent.com/swisspong/ms-crypto-fashion/49e1b95/ms-crypto-fashion/apps/orders/src/cron/cron.service.ts
swisspong/ms-crypto-fashion 49e1b95 ms-crypto-fashion/apps/orders/src/cron/cron.service.ts
true
200
7,217
import { Inject, Injectable, Logger } from '@nestjs/common'; // import { MerchantsRepository } from '../merchants/merchants.repository'; // import { MerchantStatus } from '@app/common/enums'; import { Cron, CronExpression } from '@nestjs/schedule'; import { log } from 'console'; // import { TransactionTemporaryReposito...
0
purrox/bot-doticos
db4724c
services/schemas/Games.ts
TypeScript
www.github.com/purrox/bot-doticos/tree/main/services/schemas/Games.ts
https://raw.githubusercontent.com/purrox/bot-doticos/db4724c/services/schemas/Games.ts
purrox/bot-doticos db4724c services/schemas/Games.ts
true
200
923
import {Schema, model, Model} from 'mongoose'; import {IUser, UserModel} from "./Users"; import {User} from "discord.js"; export type Faction = 'Radiant' | 'Dire'; export type GameStatus = 'Active' | 'Destroyed' | 'Finished' | 'In process'; export interface IGame { createAt?: Date, duration?: number, // minu...
7
Lauaneoc/frontend-santa-clara
b022a41
src/@shared/config/querKeys.ts
TypeScript
www.github.com/Lauaneoc/frontend-santa-clara/tree/main/src/@shared/config/querKeys.ts
https://raw.githubusercontent.com/Lauaneoc/frontend-santa-clara/b022a41/src/%40shared/config/querKeys.ts
Lauaneoc/frontend-santa-clara b022a41 src/@shared/config/querKeys.ts
true
200
587
// src/config/queryKeys.ts export const queryKeys = { EXAM: { FIND_MANY: "findManyExams" as const, }, PATIENT: { FIND_MANY: "findManyPatients" as const, }, DOCTOR: { FIND_MANY: "findManyDoctors" as const, }, ENTERPRISE: { FIND_MANY: "findManyEnterprises" as const, }, SCHEDULING: { ...
6
huuphuc2301/introverts-cinema
38444b9
frontend/src/app/components/Dialog/styles.ts
TypeScript
www.github.com/huuphuc2301/introverts-cinema/tree/main/frontend/src/app/components/Dialog/styles.ts
https://raw.githubusercontent.com/huuphuc2301/introverts-cinema/38444b9/frontend/src/app/components/Dialog/styles.ts
huuphuc2301/introverts-cinema 38444b9 frontend/src/app/components/Dialog/styles.ts
true
200
576
import { makeStyles } from '@mui/styles'; const useStyles = makeStyles(() => ({ dialog: { minHeight: 'min(25vh, 30vw)', minWidth: 'min(25vh, 30vw)', }, title: { display: 'flex', alignItems: 'center', }, content: {}, action: { transition: '0.5s', '&:hover': { color: '#FF884B ',...
5
nodejs-projects-kenanhancer/typescript-design-patterns
bcdf8c9
src/decorator-pattern/example6/app.ts
TypeScript
www.github.com/nodejs-projects-kenanhancer/typescript-design-patterns/tree/main/src/decorator-pattern/example6/app.ts
https://raw.githubusercontent.com/nodejs-projects-kenanhancer/typescript-design-patterns/bcdf8c9/src/decorator-pattern/example6/app.ts
nodejs-projects-kenanhancer/typescript-design-patterns bcdf8c9 src/decorator-pattern/example6/app.ts
true
200
1,637
class User { constructor(public name: string) {} showInfo() { return `User: ${this.name}`; } } abstract class UserDecorator extends User { private readonly decoratedUser: User; constructor(decoratedUser: User) { super(decoratedUser.name); this.decoratedUser = decoratedUser; } showInfo() { ...
2
ShaharKrichli/lamed-li-server
97f982b
src/common/utils/validations/IValidation.ts
TypeScript
www.github.com/ShaharKrichli/lamed-li-server/tree/main/src/common/utils/validations/IValidation.ts
https://raw.githubusercontent.com/ShaharKrichli/lamed-li-server/97f982b/src/common/utils/validations/IValidation.ts
ShaharKrichli/lamed-li-server 97f982b src/common/utils/validations/IValidation.ts
true
200
1,270
enum FIELD_CONDITION_TYPES { EQUAL = 'EQUAL' } type FIELD_CONDITION_LITERALS = keyof typeof FIELD_CONDITION_TYPES; interface IEqualConditionOptions { condId: number option: string } export interface IFieldCondition { condId: number id: number condition: FIELD_CONDITION_LITERALS effectedF...
1
sweep-n-flip/snf-bridge-contracts-v1
ba5c649
tasks/deploy-wrapped-contract.ts
TypeScript
www.github.com/sweep-n-flip/snf-bridge-contracts-v1/tree/main/tasks/deploy-wrapped-contract.ts
https://raw.githubusercontent.com/sweep-n-flip/snf-bridge-contracts-v1/ba5c649/tasks/deploy-wrapped-contract.ts
sweep-n-flip/snf-bridge-contracts-v1 ba5c649 tasks/deploy-wrapped-contract.ts
true
200
2,513
import { task, types } from 'hardhat/config' import { Spinner } from '../scripts/spinner' import cliSpinner from 'cli-spinners' import { allowedChainsConfig } from '@/config/config' const spinner: Spinner = new Spinner(cliSpinner.triangle) export type DeployWrappedTokenTask = { accountIndex: number tokenName: str...
4