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
usaidmasud/rent-car-fe
ce2ce07
src/libs/utils/dataUriToBlob.ts
TypeScript
www.github.com/usaidmasud/rent-car-fe/tree/main/src/libs/utils/dataUriToBlob.ts
https://raw.githubusercontent.com/usaidmasud/rent-car-fe/ce2ce07/src/libs/utils/dataUriToBlob.ts
usaidmasud/rent-car-fe ce2ce07 src/libs/utils/dataUriToBlob.ts
true
200
573
export function dataURItoBlob(dataURI: any) { const byteString = atob(dataURI.split(',')[1]); const mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0]; const ab = new ArrayBuffer(byteString.length); const ia = new Uint8Array(ab); for (let i = 0; i < byteString.length; i++) { ia[i] = byteString...
7
rebeca27/eap_project
cb03116
src/main/webapp/app/shared/reducers/index.ts
TypeScript
www.github.com/rebeca27/eap_project/tree/main/src/main/webapp/app/shared/reducers/index.ts
https://raw.githubusercontent.com/rebeca27/eap_project/cb03116/src/main/webapp/app/shared/reducers/index.ts
rebeca27/eap_project cb03116 src/main/webapp/app/shared/reducers/index.ts
true
200
3,186
import { combineReducers } from 'redux'; import { loadingBarReducer as loadingBar } from 'react-redux-loading-bar'; import authentication, { AuthenticationState } from './authentication'; import applicationProfile, { ApplicationProfileState } from './application-profile'; import administration, { AdministrationState ...
0
gargji/PHR_backup-16-08-2023-
9c0cb9f
src/app/phrdashboard/patient-task/patient-task.component.ts
TypeScript
www.github.com/gargji/PHR_backup-16-08-2023-/tree/main/src/app/phrdashboard/patient-task/patient-task.component.ts
https://raw.githubusercontent.com/gargji/PHR_backup-16-08-2023-/9c0cb9f/src/app/phrdashboard/patient-task/patient-task.component.ts
gargji/PHR_backup-16-08-2023- 9c0cb9f src/app/phrdashboard/patient-task/patient-task.component.ts
true
200
3,149
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { MessageService } from 'primeng/api'; import { HealthrecordsservicesService } from '../HealthRecordsServices/healthrecordsservices.service'; @Component({ selector: 'app-patient-task', tem...
3
Exorcistee/front
d65bc49
src/model/project/slide/element/Text.ts
TypeScript
www.github.com/Exorcistee/front/tree/main/src/model/project/slide/element/Text.ts
https://raw.githubusercontent.com/Exorcistee/front/d65bc49/src/model/project/slide/element/Text.ts
Exorcistee/front d65bc49 src/model/project/slide/element/Text.ts
true
200
848
import { BaseSlideElement, IBaseSlideElement, } from './BaseSlideElement' import { Point } from '~/model/base/Point' import { Size } from '~/model/base/Size' import { SlideElementEnum } from './SlideElementEnum' export interface IFont { bold?: boolean; color: string; family: string; italic?: boolean; siz...
5
tocteman/consider
d102fa6
libs/projects/src/lib/projects.ts
TypeScript
www.github.com/tocteman/consider/tree/main/libs/projects/src/lib/projects.ts
https://raw.githubusercontent.com/tocteman/consider/d102fa6/libs/projects/src/lib/projects.ts
tocteman/consider d102fa6 libs/projects/src/lib/projects.ts
true
200
343
export interface Project { id: number; name: string; status: string; } export const exampleProjects: Project[] = [ { id: 1, name: "Hydropulser Prototype", status: "in-progress" }, { id: 2, name: "Test rewriter", status: "pending" }, { id: 3, name: "Launch party", sta...
2
Allorentee/tiktok-clone
6916959
src/components/Video/video.styles.ts
TypeScript
www.github.com/Allorentee/tiktok-clone/tree/main/src/components/Video/video.styles.ts
https://raw.githubusercontent.com/Allorentee/tiktok-clone/6916959/src/components/Video/video.styles.ts
Allorentee/tiktok-clone 6916959 src/components/Video/video.styles.ts
true
200
337
import styled from 'styled-components' export const VideoWrapper = styled('section')` position: relative; max-width: 260px; min-height: 100%; scroll-snap-align: center; ` export const VideoStyled = styled('video')` position: absolute; width: 100%; height: 100%; inset: 0; aspect-ratio: 9/16; object...
1
whitenning/my-react-template
7862a22
src/app/redux/reducers/authReducer.ts
TypeScript
www.github.com/whitenning/my-react-template/tree/main/src/app/redux/reducers/authReducer.ts
https://raw.githubusercontent.com/whitenning/my-react-template/7862a22/src/app/redux/reducers/authReducer.ts
whitenning/my-react-template 7862a22 src/app/redux/reducers/authReducer.ts
true
200
461
import { createSlice} from '@reduxjs/toolkit' export const authReducer = createSlice({ name: 'auth', initialState: { user: { username: null, email: null, address: null }, userList: [] }, reducers: { setUser: (state, action) => { state.user = actio...
6
YUNH7/feature
f9c526c
hooks/useClickOutside.ts
TypeScript
www.github.com/YUNH7/feature/tree/main/hooks/useClickOutside.ts
https://raw.githubusercontent.com/YUNH7/feature/f9c526c/hooks/useClickOutside.ts
YUNH7/feature f9c526c hooks/useClickOutside.ts
true
200
541
import { useEffect, useRef } from 'react'; const useClickOutside = (handler: () => void) => { const ref = useRef<HTMLDivElement | null>(null); useEffect(() => { if (ref.current === null) return; const element = ref.current; const listener = (e: MouseEvent) => { if (element && !element.contains(e...
7
gitAzad/demo
6dc8e21
src/routes/news.routes.ts
TypeScript
www.github.com/gitAzad/demo/tree/main/src/routes/news.routes.ts
https://raw.githubusercontent.com/gitAzad/demo/6dc8e21/src/routes/news.routes.ts
gitAzad/demo 6dc8e21 src/routes/news.routes.ts
true
200
503
import { Router } from 'express'; import { checkPermission } from '../middlewares/checkPermission'; import { getAllNews, createNews, getNewsById, updateNewsById, deleteNewsById, } from '../controllers/news.controller'; const router = Router(); router.get('/', getAllNews); router.get('/:id', getNewsById); ...
0
Matheus-SS/PROSHOP
246106f
backend/providers/MailProvider/SendGridMailProvider.ts
TypeScript
www.github.com/Matheus-SS/PROSHOP/tree/main/backend/providers/MailProvider/SendGridMailProvider.ts
https://raw.githubusercontent.com/Matheus-SS/PROSHOP/246106f/backend/providers/MailProvider/SendGridMailProvider.ts
Matheus-SS/PROSHOP 246106f backend/providers/MailProvider/SendGridMailProvider.ts
true
200
1,180
import nodemailer, { Transporter } from 'nodemailer'; import nodemailerSendgrid from 'nodemailer-sendgrid'; import { IMailTemplate } from '../MailTemplate/IMailTemplateDTO'; import { IMailProvider } from './IMailProvider'; import { ISendEmail } from './ISendMailDTO'; class SendGridMailProvider implements IMailProvider...
4
Nithinpunathumkandy/v2-source-code
ad4620f
src/app/core/services/masters/mock-drill/mock-drill-types/mock-drill-types.service.ts
TypeScript
www.github.com/Nithinpunathumkandy/v2-source-code/tree/main/src/app/core/services/masters/mock-drill/mock-drill-types/mock-drill-types.service.ts
https://raw.githubusercontent.com/Nithinpunathumkandy/v2-source-code/ad4620f/src/app/core/services/masters/mock-drill/mock-drill-types/mock-drill-types.service.ts
Nithinpunathumkandy/v2-source-code ad4620f src/app/core/services/masters/mock-drill/mock-drill-types/mock-drill-types.service.ts
true
200
6,036
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { UtilityService } from 'src/app/shared/services/utility.service'; import { HelperServiceService } from '../../../general/helper-service/helper-s...
5
havardob/havardbrynjulfsen
0fb2782
studio/schemas/articleArchive.ts
TypeScript
www.github.com/havardob/havardbrynjulfsen/tree/main/studio/schemas/articleArchive.ts
https://raw.githubusercontent.com/havardob/havardbrynjulfsen/0fb2782/studio/schemas/articleArchive.ts
havardob/havardbrynjulfsen 0fb2782 studio/schemas/articleArchive.ts
true
200
634
import { BiArchive } from "react-icons/bi"; import { richTextSimple } from "./templates/richText"; import { slug } from "./templates/slug"; export default { name: 'articleArchive', title: 'Articles Landing', icon: BiArchive, type: 'document', preview: { select: { title: "title...
3
explicit-logic/light-pass-template-1
52628d1
store/slugStorage.ts
TypeScript
www.github.com/explicit-logic/light-pass-template-1/tree/main/store/slugStorage.ts
https://raw.githubusercontent.com/explicit-logic/light-pass-template-1/52628d1/store/slugStorage.ts
explicit-logic/light-pass-template-1 52628d1 store/slugStorage.ts
true
200
1,281
import { isClient } from '@/constants/isClient'; const key = 'slugs'; export function getSlugs(): string[] { if (!isClient) { return []; } const slugs = sessionStorage.getItem(key); if (!slugs) { return []; } try { return JSON.parse(slugs) as string[]; } catch { return []; } } expor...
2
kinjo1130/mapMemo
de92440
utils/date.ts
TypeScript
www.github.com/kinjo1130/mapMemo/tree/main/utils/date.ts
https://raw.githubusercontent.com/kinjo1130/mapMemo/de92440/utils/date.ts
kinjo1130/mapMemo de92440 utils/date.ts
true
200
1,060
// utils/date.ts import { Timestamp } from 'firebase/firestore'; export const formatDate = (timestamp: any): string => { if (!timestamp) return '日付なし'; try { // FirestoreのTimestampの場合 if (timestamp?.toDate && typeof timestamp.toDate === 'function') { return timestamp.toDate().toLocaleDateString('ja-...
6
mohitGitHxb/gaming-event
a54f4e7
src/middleware.ts
TypeScript
www.github.com/mohitGitHxb/gaming-event/tree/main/src/middleware.ts
https://raw.githubusercontent.com/mohitGitHxb/gaming-event/a54f4e7/src/middleware.ts
mohitGitHxb/gaming-event a54f4e7 src/middleware.ts
true
200
532
import { clerkMiddleware, createRouteMatcher } from "@clerk/nextjs/server"; const isProtectedRoute = createRouteMatcher(["/home(.*)", "/events(.*)"]); const adminProtectedRoute = createRouteMatcher(["/admin(.*)"]); export default clerkMiddleware((auth, req) => { if (isProtectedRoute(req)) auth().protect(); if (i...
7
The-Digital-State/freeunion-frontend-os
4ff3631
src/shared/slices/tasks.ts
TypeScript
www.github.com/The-Digital-State/freeunion-frontend-os/tree/main/src/shared/slices/tasks.ts
https://raw.githubusercontent.com/The-Digital-State/freeunion-frontend-os/4ff3631/src/shared/slices/tasks.ts
The-Digital-State/freeunion-frontend-os 4ff3631 src/shared/slices/tasks.ts
true
200
5,973
import { createSlice } from '@reduxjs/toolkit'; import type { AppThunk } from 'redux'; import { getTasks, moveTask, getComments, addComment, getAdminTasks, getAdminColumn, getColumnTasks } from 'shared/services/tasks.service'; import cloneDeep from 'lodash/cloneDeep'; import { toast } from 'react-toastify'; import form...
0
mdnuruli579/EMS
3247333
UI/src/app/service/Auth/auth.service.ts
TypeScript
www.github.com/mdnuruli579/EMS/tree/main/UI/src/app/service/Auth/auth.service.ts
https://raw.githubusercontent.com/mdnuruli579/EMS/3247333/UI/src/app/service/Auth/auth.service.ts
mdnuruli579/EMS 3247333 UI/src/app/service/Auth/auth.service.ts
true
200
1,559
import { Injectable } from '@angular/core'; import { environment } from '../../../environment'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Observable } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class AuthService { private isAuthenticatedKey = 'isAuthenticated'; private...
3
alexandreg67/todos-backend
b805ef4
src/todos/todos.service.ts
TypeScript
www.github.com/alexandreg67/todos-backend/tree/main/src/todos/todos.service.ts
https://raw.githubusercontent.com/alexandreg67/todos-backend/b805ef4/src/todos/todos.service.ts
alexandreg67/todos-backend b805ef4 src/todos/todos.service.ts
true
200
1,092
import { Injectable, NotFoundException } from '@nestjs/common'; import { Repository } from 'typeorm'; import { InjectRepository } from '@nestjs/typeorm'; import { Todo } from './entity/todos.entity'; @Injectable() export class TodosService { constructor(@InjectRepository(Todo) private repository: Repository<Todo>...
2
remoklify/gitlift-business-logic
2a34fc6
app/util/encryption.util.ts
TypeScript
www.github.com/remoklify/gitlift-business-logic/tree/main/app/util/encryption.util.ts
https://raw.githubusercontent.com/remoklify/gitlift-business-logic/2a34fc6/app/util/encryption.util.ts
remoklify/gitlift-business-logic 2a34fc6 app/util/encryption.util.ts
true
200
770
/** * @description holds encryption util */ import CryptoJS from 'crypto-js'; export class CommonEncryptionUtil { /** * encrpyts object * @param obj object */ encrypt = (obj: any, secret: string) => { let encJson = CryptoJS.AES.encrypt(JSON.stringify(obj), secret).toString(); let encData = Cryp...
1
akbarsahata/pitik
cbdace2
fms/pages/master/library/task/edit/edit.functions.ts
TypeScript
www.github.com/akbarsahata/pitik/tree/main/fms/pages/master/library/task/edit/edit.functions.ts
https://raw.githubusercontent.com/akbarsahata/pitik/cbdace2/fms/pages/master/library/task/edit/edit.functions.ts
akbarsahata/pitik cbdace2 fms/pages/master/library/task/edit/edit.functions.ts
true
200
8,667
import { isEmptyString, randomHexString, validateStringTime, } from "@services/utils/string"; import { TTaskLibraryResponse, TTriggerResponse } from "@type/response.type"; import { Dispatch } from "react"; import { ACTIONS, ACTION_TYPE, ERROR_TYPE, TInstructionData, TStore, } from "./edit.constants"; e...
7
s1f10210254/NATIVE__project
fb9defd
server/tests/api/apiClient.ts
TypeScript
www.github.com/s1f10210254/NATIVE__project/tree/main/server/tests/api/apiClient.ts
https://raw.githubusercontent.com/s1f10210254/NATIVE__project/fb9defd/server/tests/api/apiClient.ts
s1f10210254/NATIVE__project fb9defd server/tests/api/apiClient.ts
true
200
1,409
import {firebaseAdmin} from '$/middleware/firebaseAdmin'; import { API_BASE_PATH, FIREBASE_AUTH_EMULATOR_HOST, PORT, } from '$/service/envValues'; import aspida from '@aspida/axios'; import axios from 'axios'; import {initializeApp} from 'firebase/app'; import { GithubAuthProvider, connectAuthEmulator, getA...
6
guanghechen/barusu-react
cddde95
packages/octotree/src/util.ts
TypeScript
www.github.com/guanghechen/barusu-react/tree/main/packages/octotree/src/util.ts
https://raw.githubusercontent.com/guanghechen/barusu-react/cddde95/packages/octotree/src/util.ts
guanghechen/barusu-react cddde95 packages/octotree/src/util.ts
true
200
1,126
import type { OctotreeLeafNodeData, OctotreeParentNodeData, RawOctotreeNodeData, } from './types' /** * Classify & Format & Sort OctotreeNodeData * * @param prefixUrl * @param data */ export function resolveOctotreeData( prefixUrl: string, data: RawOctotreeNodeData[], ): Array<OctotreeLeafNodeData | Oct...
0
pagarevijayy/eth-provider-poc
0b304b9
src/eip-eth-provider/shared/PortMessageChannel.ts
TypeScript
www.github.com/pagarevijayy/eth-provider-poc/tree/main/src/eip-eth-provider/shared/PortMessageChannel.ts
https://raw.githubusercontent.com/pagarevijayy/eth-provider-poc/0b304b9/src/eip-eth-provider/shared/PortMessageChannel.ts
pagarevijayy/eth-provider-poc 0b304b9 src/eip-eth-provider/shared/PortMessageChannel.ts
true
200
3,472
declare const chrome: any import { isJsonRpcPayload, isJsonRpcResponse, isJsonRpcResult, } from '@walletconnect/jsonrpc-utils'; import type { JsonRpcPayload, JsonRpcRequest, } from '@walletconnect/jsonrpc-utils'; import { createNanoEvents } from 'nanoevents'; import { formatJsonRpcRequestPatched } ...
3
rizrmd/prasi-fast
524b921
shared/types/config.ts
TypeScript
www.github.com/rizrmd/prasi-fast/tree/main/shared/types/config.ts
https://raw.githubusercontent.com/rizrmd/prasi-fast/524b921/shared/types/config.ts
rizrmd/prasi-fast 524b921 shared/types/config.ts
true
200
328
export interface ServerConfig { url: string; } export interface AppConfig { frontend: ServerConfig; backend: ServerConfig; } export function parseServerUrl(url: string): { host: string; port: number } { const parsedUrl = new URL(url); return { host: parsedUrl.hostname, port: parseInt(parsedUrl.port)...
2
bsixel/ark-multi-manager
3dbfcef
src/lib/hooks/useToggle.ts
TypeScript
www.github.com/bsixel/ark-multi-manager/tree/main/src/lib/hooks/useToggle.ts
https://raw.githubusercontent.com/bsixel/ark-multi-manager/3dbfcef/src/lib/hooks/useToggle.ts
bsixel/ark-multi-manager 3dbfcef src/lib/hooks/useToggle.ts
true
200
546
import { useCallback, useState } from "react"; // A simple toggle-able boolean hook const useToggle = (initialValue = false) => { const [value, setValue] = useState(initialValue); // Callback which toggles the value to the opposite of what it currently is, or if provided, to a given boolean value const toggle = ...
1
noatgnu/celsusgui
122fc8b
src/app/pages/welcome/pie-chart/pie-chart.component.ts
TypeScript
www.github.com/noatgnu/celsusgui/tree/main/src/app/pages/welcome/pie-chart/pie-chart.component.ts
https://raw.githubusercontent.com/noatgnu/celsusgui/122fc8b/src/app/pages/welcome/pie-chart/pie-chart.component.ts
noatgnu/celsusgui 122fc8b src/app/pages/welcome/pie-chart/pie-chart.component.ts
true
200
2,709
import {AfterViewInit, Component, Inject, Input, NgZone, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core'; import * as am5 from "@amcharts/amcharts5"; import * as am5percent from "@amcharts/amcharts5/percent" import {BehaviorSubject} from "rxjs"; import {isPlatformBrowser} from "@angular/common"; import am5themes_K...
7
FemFX/instagram-clone
73c65d4
client/src/store/user/user.type.ts
TypeScript
www.github.com/FemFX/instagram-clone/tree/main/client/src/store/user/user.type.ts
https://raw.githubusercontent.com/FemFX/instagram-clone/73c65d4/client/src/store/user/user.type.ts
FemFX/instagram-clone 73c65d4 client/src/store/user/user.type.ts
true
200
814
import { ISubscription } from "@/types/subscription.type"; import { IPost } from "../post/post.type"; import { IComment } from "../comment/comment.type"; import { ILike } from "../like/like.type"; export interface IUser { id: number; fullName: string; username: string; password: string; email: string; desc...
6
MrHidalgo/Angular2
d061969
Directives/HostListener/bold.directive.ts
TypeScript
www.github.com/MrHidalgo/Angular2/tree/main/Directives/HostListener/bold.directive.ts
https://raw.githubusercontent.com/MrHidalgo/Angular2/d061969/Directives/HostListener/bold.directive.ts
MrHidalgo/Angular2 d061969 Directives/HostListener/bold.directive.ts
true
200
606
import {Directive, ElementRef, HostListener, Renderer2} from "@angular/core"; @Directive({ selector: '[bold]' }) export class BoldDirective { constructor( private elemRef: ElementRef, private render: Renderer2 ) { this.render.setStyle( this.elemRef.nativeElement, "cursor", "pointer" ); } @Ho...
0
timbenniks/timbenniksdev-2024
2f60a36
server/routes/sitemap.xml.ts
TypeScript
www.github.com/timbenniks/timbenniksdev-2024/tree/main/server/routes/sitemap.xml.ts
https://raw.githubusercontent.com/timbenniks/timbenniksdev-2024/2f60a36/server/routes/sitemap.xml.ts
timbenniks/timbenniksdev-2024 2f60a36 server/routes/sitemap.xml.ts
true
200
1,038
import { SitemapStream, streamToPromise } from 'sitemap' import { serverQueryContent } from '#content/server' export default defineEventHandler(async (event) => { const sitemap = new SitemapStream({ hostname: 'https://timbenniks.dev' }) const docs = await serverQueryContent(event, "/writing").find() cons...
2
sad61/Dashboard
9f6c95c
src/app/guild-content/guild-content.component.ts
TypeScript
www.github.com/sad61/Dashboard/tree/main/src/app/guild-content/guild-content.component.ts
https://raw.githubusercontent.com/sad61/Dashboard/9f6c95c/src/app/guild-content/guild-content.component.ts
sad61/Dashboard 9f6c95c src/app/guild-content/guild-content.component.ts
true
200
4,414
import { ChangeDetectorRef, Component } from '@angular/core'; import { ButtonsComponent } from '../buttons/buttons.component'; import { MatButtonModule } from '@angular/material/button'; import { ActivatedRoute, RouterLink, RouterLinkActive, RouterOutlet, } from '@angular/router'; import { Observable, Subscript...
6
Niell007/ad-sound-dev
d70ab49
lib/supabase/server.ts
TypeScript
www.github.com/Niell007/ad-sound-dev/tree/main/lib/supabase/server.ts
https://raw.githubusercontent.com/Niell007/ad-sound-dev/d70ab49/lib/supabase/server.ts
Niell007/ad-sound-dev d70ab49 lib/supabase/server.ts
true
200
3,148
import { createServerClient } from '@supabase/ssr' import { cookies } from 'next/headers' import { type NextRequest, NextResponse } from 'next/server' export function createClient() { return createServerClient( process.env.NEXT_PUBLIC_SUPABASE_URL!, process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!, { coo...
7
adrianprayoga/noleftovers
0b803a7
client/reducer/formReducer.ts
TypeScript
www.github.com/adrianprayoga/noleftovers/tree/main/client/reducer/formReducer.ts
https://raw.githubusercontent.com/adrianprayoga/noleftovers/0b803a7/client/reducer/formReducer.ts
adrianprayoga/noleftovers 0b803a7 client/reducer/formReducer.ts
true
200
1,346
const defaultIngredient = { name: "", amount: "", measure: "1" }; const defaultStep = { text: "" }; export const INITIAL_STATE = { name: "", description: "", ingredients: [{ ...defaultIngredient }], steps: [{ ...defaultStep }], author: "", }; export const ACTION_TYPES = { UPDATE_TEXT: "UPDATE_TEXT", DEL...
0
Hameezr/Document-Management-System
0464cdc
src/domain/entities/User/UserEntity.ts
TypeScript
www.github.com/Hameezr/Document-Management-System/tree/main/src/domain/entities/User/UserEntity.ts
https://raw.githubusercontent.com/Hameezr/Document-Management-System/0464cdc/src/domain/entities/User/UserEntity.ts
Hameezr/Document-Management-System 0464cdc src/domain/entities/User/UserEntity.ts
true
200
2,436
import { BaseEntity, IEntity } from "../../utils/BaseEntity"; import { Result, Err, Ok } from "oxide.ts"; import { NewUserDto } from "../../../application/DTO/UserDTO"; import bcrypt from 'bcrypt'; export interface IUser extends IEntity { username: string; email: string; password: string; ownedDocuments: strin...
2
tachybase/tachybase
8bc23c3
packages/module-message/src/client/usage/components/TableMessagesWrapper.schema.ts
TypeScript
www.github.com/tachybase/tachybase/tree/main/packages/module-message/src/client/usage/components/TableMessagesWrapper.schema.ts
https://raw.githubusercontent.com/tachybase/tachybase/8bc23c3/packages/module-message/src/client/usage/components/TableMessagesWrapper.schema.ts
tachybase/tachybase 8bc23c3 packages/module-message/src/client/usage/components/TableMessagesWrapper.schema.ts
true
200
713
import { COLLECTION_NAME_MESSAGES } from '../../../common/collections/messages'; export const getSchemaTableMessagesWrapper = (props?) => { const { params } = props || {}; return { type: 'void', name: 'message-table', 'x-uid': 'message-table', 'x-decorator': 'Messages-ProviderCollectionMessages', ...
1
PriyankaBharade/RestaurantAngular
40a6c8c
src/app/app.module.ts
TypeScript
www.github.com/PriyankaBharade/RestaurantAngular/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/PriyankaBharade/RestaurantAngular/40a6c8c/src/app/app.module.ts
PriyankaBharade/RestaurantAngular 40a6c8c src/app/app.module.ts
true
200
1,825
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { RestaurantDashComponent } from './restaurant-dash/restaurant-dash.component'; import { FormsModule, Reac...
6
luciaiosa/master_escuelait_proyecto_react
f0478a4
src/shared/components/search-bar/SearchBarStyles.ts
TypeScript
www.github.com/luciaiosa/master_escuelait_proyecto_react/tree/main/src/shared/components/search-bar/SearchBarStyles.ts
https://raw.githubusercontent.com/luciaiosa/master_escuelait_proyecto_react/f0478a4/src/shared/components/search-bar/SearchBarStyles.ts
luciaiosa/master_escuelait_proyecto_react f0478a4 src/shared/components/search-bar/SearchBarStyles.ts
true
200
1,187
import createStyles from "@mui/styles/createStyles"; import { makeStyles } from "@mui/styles"; export const styles = makeStyles(() => createStyles({ searchBarContainer: { display: "flex", backgroundColor: "#F0EEEE", height: 50, borderRadius: 5, fl...
3
ArturoAitbol/license-server
b638c73
ui/src/app/modules/ctaas/map/line-detail/line-detail.component.ts
TypeScript
www.github.com/ArturoAitbol/license-server/tree/main/ui/src/app/modules/ctaas/map/line-detail/line-detail.component.ts
https://raw.githubusercontent.com/ArturoAitbol/license-server/b638c73/ui/src/app/modules/ctaas/map/line-detail/line-detail.component.ts
ArturoAitbol/license-server b638c73 ui/src/app/modules/ctaas/map/line-detail/line-detail.component.ts
true
200
1,393
import { Component, Inject, OnInit } from '@angular/core'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { Constants } from 'src/app/helpers/constants'; import { SubAccountService } from 'src/app/services/sub-account.service'; import { environment } from 'src/environments/environment'...
0
JoelKap/greenit-mobile
027e32f
src/app/repair-device/repair-device.module.ts
TypeScript
www.github.com/JoelKap/greenit-mobile/tree/main/src/app/repair-device/repair-device.module.ts
https://raw.githubusercontent.com/JoelKap/greenit-mobile/027e32f/src/app/repair-device/repair-device.module.ts
JoelKap/greenit-mobile 027e32f src/app/repair-device/repair-device.module.ts
true
200
646
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { RepairDevicePageRoutingModule } from './repair-device-routing.module'; import { RepairDevicePage } from '...
7
JadiaelFC/NestJsEmailQueueSystem
e337848
src/main.ts
TypeScript
www.github.com/JadiaelFC/NestJsEmailQueueSystem/tree/main/src/main.ts
https://raw.githubusercontent.com/JadiaelFC/NestJsEmailQueueSystem/e337848/src/main.ts
JadiaelFC/NestJsEmailQueueSystem e337848 src/main.ts
true
200
667
import { NestFactory } from '@nestjs/core'; import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'; import { AppModule } from './app.module'; import { Logger } from '@nestjs/common'; async function bootstrap() { const app = await NestFactory.create(AppModule); const config = new DocumentBuilder() .se...
1
Muhtar07/sminex
5075df4
src/classifier/common/validationDocument.ts
TypeScript
www.github.com/Muhtar07/sminex/tree/main/src/classifier/common/validationDocument.ts
https://raw.githubusercontent.com/Muhtar07/sminex/5075df4/src/classifier/common/validationDocument.ts
Muhtar07/sminex 5075df4 src/classifier/common/validationDocument.ts
true
200
2,097
import { Classifier } from '../entities/classifier.entity'; import { Level1 } from '../level_1/entities/level_1.entity'; interface IDescriptionClassifier { code: string; description: string; level: string; } export class Level { code: string; description: string; level: string; parentPath: string[]; c...
0
JuAsErathorn/SiteDuBg_F-B
67f835c
frontend/src/modal/modal.component.ts
TypeScript
www.github.com/JuAsErathorn/SiteDuBg_F-B/tree/main/frontend/src/modal/modal.component.ts
https://raw.githubusercontent.com/JuAsErathorn/SiteDuBg_F-B/67f835c/frontend/src/modal/modal.component.ts
JuAsErathorn/SiteDuBg_F-B 67f835c frontend/src/modal/modal.component.ts
true
200
1,174
import { Component, Inject } from '@angular/core'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { FormsModule } from '@angular/forms'; import { MatFormFieldModule } from '@angular/material/form-field'; import { MatInputModule } from '@angular/material/input'; import { MatButtonModule...
3
Vithoven/myApp
8194edc
src/app/pages/generar-qr-asistencia/generar-qr-asistencia.page.spec.ts
TypeScript
www.github.com/Vithoven/myApp/tree/main/src/app/pages/generar-qr-asistencia/generar-qr-asistencia.page.spec.ts
https://raw.githubusercontent.com/Vithoven/myApp/8194edc/src/app/pages/generar-qr-asistencia/generar-qr-asistencia.page.spec.ts
Vithoven/myApp 8194edc src/app/pages/generar-qr-asistencia/generar-qr-asistencia.page.spec.ts
true
200
525
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { GenerarQrAsistenciaPage } from './generar-qr-asistencia.page'; describe('GenerarQrAsistenciaPage', () => { let component: GenerarQrAsistenciaPage; let fixture: ComponentFixture<GenerarQrAsistenciaPage>; beforeEach(() => { fixture = ...
2
CarrotEasy0214/AWS1_class
0de81f5
17.React/240618/src/index.ts
TypeScript
www.github.com/CarrotEasy0214/AWS1_class/tree/main/17.React/240618/src/index.ts
https://raw.githubusercontent.com/CarrotEasy0214/AWS1_class/0de81f5/17.React/240618/src/index.ts
CarrotEasy0214/AWS1_class 0de81f5 17.React/240618/src/index.ts
true
200
3,299
import App from "./App"; new App(document.getElementById("root")); console.log("Hello World!"); let num: number; num = 1; // num = "1" << 오류 console.log(num); // num = 1; << 1을 할당함으로써 nymber type을 강제한다. let numStr: string = "1"; // console.log(num === numStr); // Type에 대해서 정확하고 명확하게 를 요구함 let obj: { a: number; b: ...
6
ShiraandNessi/sCoolBusClient
492f5e8
src/app/modules/family/passport-camera/passport-camera.component.ts
TypeScript
www.github.com/ShiraandNessi/sCoolBusClient/tree/main/src/app/modules/family/passport-camera/passport-camera.component.ts
https://raw.githubusercontent.com/ShiraandNessi/sCoolBusClient/492f5e8/src/app/modules/family/passport-camera/passport-camera.component.ts
ShiraandNessi/sCoolBusClient 492f5e8 src/app/modules/family/passport-camera/passport-camera.component.ts
true
200
2,232
import { Component, Inject, OnInit } from '@angular/core'; import { MatDialogRef } from '@angular/material/dialog'; import { Router } from '@angular/router'; import { WebcamImage } from 'ngx-webcam'; import { Subject, Observable } from 'rxjs'; @Component({ selector: 'app-passport-camera', templateUrl: './passport-...
1
ludoguenet/laravel-vue-fullstack
f4218f0
resources/js/composables/users/useUser.ts
TypeScript
www.github.com/ludoguenet/laravel-vue-fullstack/tree/main/resources/js/composables/users/useUser.ts
https://raw.githubusercontent.com/ludoguenet/laravel-vue-fullstack/f4218f0/resources/js/composables/users/useUser.ts
ludoguenet/laravel-vue-fullstack f4218f0 resources/js/composables/users/useUser.ts
true
200
843
import {ref} from "vue"; import axios from "axios"; import {UserType} from "../../types/users/UserType"; export default function () { const errors = ref({}); const user = ref<UserType>(); const createUser = async ( formData: any, ): Promise<void> => { await axios.post('/api/users', for...
3
danielbeeke/bunqie
258aea9
src/keyManagement.ts
TypeScript
www.github.com/danielbeeke/bunqie/tree/main/src/keyManagement.ts
https://raw.githubusercontent.com/danielbeeke/bunqie/258aea9/src/keyManagement.ts
danielbeeke/bunqie 258aea9 src/keyManagement.ts
true
200
1,763
import { get, set } from 'idb-keyval' import type { components } from './schema.d.ts' export interface ServerPublicKey { server_public_key: string } export const createKeyPair = async (identifier: string) => { const options = { name: 'RSASSA-PKCS1-v1_5', modulusLength: 2048, publicExponent: new Uint8A...
0
clearly-suspicious/KawaiiKeeper-web
0e04aa5
src/server/api/routers/collections.ts
TypeScript
www.github.com/clearly-suspicious/KawaiiKeeper-web/tree/main/src/server/api/routers/collections.ts
https://raw.githubusercontent.com/clearly-suspicious/KawaiiKeeper-web/0e04aa5/src/server/api/routers/collections.ts
clearly-suspicious/KawaiiKeeper-web 0e04aa5 src/server/api/routers/collections.ts
true
200
3,670
import { Collection } from "@prisma/client"; import { z } from "zod"; import { protectedProcedure, router } from "./../trpc"; export const collectionsRouter = router({ getCollectionsByUser: protectedProcedure .meta({ openapi: { method: "GET", path: "/collection/user" } }) .input( z.object({ li...
2
Haritongautb/yo_weather_pwa
f736d66
src/services/days-forecast-service/days-forecast.service.ts
TypeScript
www.github.com/Haritongautb/yo_weather_pwa/tree/main/src/services/days-forecast-service/days-forecast.service.ts
https://raw.githubusercontent.com/Haritongautb/yo_weather_pwa/f736d66/src/services/days-forecast-service/days-forecast.service.ts
Haritongautb/yo_weather_pwa f736d66 src/services/days-forecast-service/days-forecast.service.ts
true
200
1,210
import axios from "axios"; import { toast } from "sonner"; export class DaysForecastService { static async getDaysForecast(lat: number, long: number) { try { const response = await axios.get(process.env.WEATHER_URL as string, { params: { key: process.env.WEATHER_API_KEY, q: `${l...
7
ZhouWHao/koa2_typescript_mysql_react_vite_nextjs
9891927
client/src/request/type/type-tree.ts
TypeScript
www.github.com/ZhouWHao/koa2_typescript_mysql_react_vite_nextjs/tree/main/client/src/request/type/type-tree.ts
https://raw.githubusercontent.com/ZhouWHao/koa2_typescript_mysql_react_vite_nextjs/9891927/client/src/request/type/type-tree.ts
ZhouWHao/koa2_typescript_mysql_react_vite_nextjs 9891927 client/src/request/type/type-tree.ts
true
200
419
import axios from "axios"; import type { response } from "@type/common/response"; import type { TypeAttributes, TagAttributes } from "@type/model-attribute"; export type responseType = TypeAttributes & { children: TagAttributes[]; }; /** * 首页用于获取类型树 */ function getTypeTree() { return axios.get<response<response...
6
Maxycarp89/llamada-de-servicio-turnos
907e5b1
Front-Llamada-de-ServicioV2/src/store/garantía-motos/garantia-motos.effects.ts
TypeScript
www.github.com/Maxycarp89/llamada-de-servicio-turnos/tree/main/Front-Llamada-de-ServicioV2/src/store/garantía-motos/garantia-motos.effects.ts
https://raw.githubusercontent.com/Maxycarp89/llamada-de-servicio-turnos/907e5b1/Front-Llamada-de-ServicioV2/src/store/garant%C3%ADa-motos/garantia-motos.effects.ts
Maxycarp89/llamada-de-servicio-turnos 907e5b1 Front-Llamada-de-ServicioV2/src/store/garantía-motos/garantia-motos.effects.ts
true
200
11,064
import { Injectable } from "@angular/core"; import { Actions, createEffect, ofType } from '@ngrx/effects'; import { catchError, switchMap, } from "rxjs/operators"; import { Observable, of } from "rxjs"; import { Store, select } from "@ngrx/store"; import * as warrantyAction from "./garantia-motos.action" import { showL...
1
yvsagarreddy/nx-component-lib
c8a8f16
src/app/app.component.ts
TypeScript
www.github.com/yvsagarreddy/nx-component-lib/tree/main/src/app/app.component.ts
https://raw.githubusercontent.com/yvsagarreddy/nx-component-lib/c8a8f16/src/app/app.component.ts
yvsagarreddy/nx-component-lib c8a8f16 src/app/app.component.ts
true
200
403
import { Component } from '@angular/core'; import { RouterModule } from '@angular/router'; import { ComponentsComponent } from '@nx-component-lib/components'; @Component({ standalone: true, imports: [RouterModule, ComponentsComponent], selector: 'app-root', templateUrl: './app.component.html', styleUrl: './a...
0
JaeLadu/Pet-Finder
d379806
frontend/src/pages/home-page.ts
TypeScript
www.github.com/JaeLadu/Pet-Finder/tree/main/frontend/src/pages/home-page.ts
https://raw.githubusercontent.com/JaeLadu/Pet-Finder/d379806/frontend/src/pages/home-page.ts
JaeLadu/Pet-Finder d379806 frontend/src/pages/home-page.ts
true
200
5,869
import { Router } from "@vaadin/router"; import { state } from "../state"; function initHomePage() { class HomePage extends HTMLElement { constructor() { super(); } connectedCallback() { const headerEl = document.createElement("header-comp"); this.append(headerEl); ...
3
architect-team/arcctl
41ecac5
src/datacenters/store.ts
TypeScript
www.github.com/architect-team/arcctl/tree/main/src/datacenters/store.ts
https://raw.githubusercontent.com/architect-team/arcctl/41ecac5/src/datacenters/store.ts
architect-team/arcctl 41ecac5 src/datacenters/store.ts
true
200
8,607
import * as crypto from 'https://deno.land/std@0.153.0/node/crypto.ts'; import * as path from 'std/path/mod.ts'; import tar from 'tar'; import { ComponentStoreDB } from '../component-store/db.ts'; import { InfraGraph } from '../graphs/index.ts'; import { ImageManifest, ImageRepository } from '../oci/index.ts'; import {...
2
danielcf147/T31-M4-Cinema-Kenzie
8a93e3c
src/services/rooms/createRoom.service.ts
TypeScript
www.github.com/danielcf147/T31-M4-Cinema-Kenzie/tree/main/src/services/rooms/createRoom.service.ts
https://raw.githubusercontent.com/danielcf147/T31-M4-Cinema-Kenzie/8a93e3c/src/services/rooms/createRoom.service.ts
danielcf147/T31-M4-Cinema-Kenzie 8a93e3c src/services/rooms/createRoom.service.ts
true
200
1,617
import AppDataSource from "../../data-source"; import { Employee } from "../../entities/employeeEntity"; import { Movie } from "../../entities/moviesEntity"; import { Room } from "../../entities/roomsEntity"; import { AppError } from "../../errors"; import { RoomCreate, Rooms } from "../../interfaces/movie/rooms.Interf...
6
karoljaskolka/triple-quiz-angular
12a2f78
src/app/core/store/quizzes/quizzes.reducers.ts
TypeScript
www.github.com/karoljaskolka/triple-quiz-angular/tree/main/src/app/core/store/quizzes/quizzes.reducers.ts
https://raw.githubusercontent.com/karoljaskolka/triple-quiz-angular/12a2f78/src/app/core/store/quizzes/quizzes.reducers.ts
karoljaskolka/triple-quiz-angular 12a2f78 src/app/core/store/quizzes/quizzes.reducers.ts
true
200
498
import { Action, createReducer, on } from '@ngrx/store'; import { QuizzesState } from '../state'; import { setQuizzes } from './quizzes.actions'; export const initialState: QuizzesState = { quizzes: [], loaded: false }; export const _quizzesReducer = createReducer( initialState, on(setQuizzes, (state, { quizzes }...
1
cross-development/medium-clone-ng
e5629f1
src/app/editArticle/store/effects/updateArticle.effect.ts
TypeScript
www.github.com/cross-development/medium-clone-ng/tree/main/src/app/editArticle/store/effects/updateArticle.effect.ts
https://raw.githubusercontent.com/cross-development/medium-clone-ng/e5629f1/src/app/editArticle/store/effects/updateArticle.effect.ts
cross-development/medium-clone-ng e5629f1 src/app/editArticle/store/effects/updateArticle.effect.ts
true
200
1,614
// Packages import { Injectable } from '@angular/core'; import { Router } from '@angular/router'; import { HttpErrorResponse } from '@angular/common/http'; import { Actions, createEffect, ofType } from '@ngrx/effects'; import { catchError, map, of, switchMap, tap } from 'rxjs'; // Store import { updateArticleAction, ...
0
RussellCarey/portfolio
83317fb
client/src/components/InnerPages/Contact[REMOVED]/styles/styled.ts
TypeScript
www.github.com/RussellCarey/portfolio/tree/main/client/src/components/InnerPages/Contact[REMOVED]/styles/styled.ts
https://raw.githubusercontent.com/RussellCarey/portfolio/83317fb/client/src/components/InnerPages/Contact%5BREMOVED%5D/styles/styled.ts
RussellCarey/portfolio 83317fb client/src/components/InnerPages/Contact[REMOVED]/styles/styled.ts
true
200
2,121
import styled from "styled-components"; import { theme } from "../../../../theme/Theme"; import { IStyledProps } from "../../../../interfaces/types"; export const Container = styled.div` width: 100%; height: 100%; display: flex; overflow-y: auto; font-size: ${theme.font.fontsizes.text}; color: ${(props: ...
3
Zrna/reviews-web
4a9e41d
utils/date.test.ts
TypeScript
www.github.com/Zrna/reviews-web/tree/main/utils/date.test.ts
https://raw.githubusercontent.com/Zrna/reviews-web/4a9e41d/utils/date.test.ts
Zrna/reviews-web 4a9e41d utils/date.test.ts
true
200
785
import { formatDate } from './date'; const date = '2022-01-15T15:00:00+00:00'; describe('Date', () => { describe('formatDate', () => { it('should return the date in MMMM d, y format', () => { expect(formatDate(date, 'MMMM d, y')).toBe('January 15, 2022'); }); it('should return the date in y-MM-dd...
7
alisson-moura/ignite-nodejs
b8d806e
04-ddd-nodejs/src/domain/forum/application/repositories/answers-repository.ts
TypeScript
www.github.com/alisson-moura/ignite-nodejs/tree/main/04-ddd-nodejs/src/domain/forum/application/repositories/answers-repository.ts
https://raw.githubusercontent.com/alisson-moura/ignite-nodejs/b8d806e/04-ddd-nodejs/src/domain/forum/application/repositories/answers-repository.ts
alisson-moura/ignite-nodejs b8d806e 04-ddd-nodejs/src/domain/forum/application/repositories/answers-repository.ts
true
200
813
import { type PaginationParams } from '@/core/repositories/pagination'; import { type Answer } from '../../enterprise/entities/answer'; export interface AnswersRepository extends CreateAnswerRepository, FindAnswerByIdRepository, DeleteAnswerRepository, SaveAnswerRepository, FindByQuestionIdRepository { } ex...
4
SandeepMammula/airbyte
7c6679b
src/core/api/hooks/cloud/usePrefetchCloudWorkspaceData.ts
TypeScript
www.github.com/SandeepMammula/airbyte/tree/main/src/core/api/hooks/cloud/usePrefetchCloudWorkspaceData.ts
https://raw.githubusercontent.com/SandeepMammula/airbyte/7c6679b/src/core/api/hooks/cloud/usePrefetchCloudWorkspaceData.ts
SandeepMammula/airbyte 7c6679b src/core/api/hooks/cloud/usePrefetchCloudWorkspaceData.ts
true
200
1,267
import { useQueries } from "@tanstack/react-query"; import { useCurrentWorkspaceId } from "area/workspace/utils"; import { getListPermissionsQueryKey, useListPermissionsQuery } from "core/api"; import { useCurrentUser } from "core/services/auth"; import { getCurrentWorkspaceStateQueryKey, getWorkspaceQueryKey, ...
1
Kuangyi97/web_origin
e2d2218
src/extension.ts
TypeScript
www.github.com/Kuangyi97/web_origin/tree/main/src/extension.ts
https://raw.githubusercontent.com/Kuangyi97/web_origin/e2d2218/src/extension.ts
Kuangyi97/web_origin e2d2218 src/extension.ts
true
200
449
import * as vscode from 'vscode'; import dealChooseFrames from './frames/index' const commands = vscode.commands; const window = vscode.window; export function activate(context: vscode.ExtensionContext) { let web = commands.registerCommand('web', () => { window.showQuickPick(['框架']).then(choose => { if (choose =...
5
GabrielBursi/wallet-app
c1cfc00
src/components/Button/styles.ts
TypeScript
www.github.com/GabrielBursi/wallet-app/tree/main/src/components/Button/styles.ts
https://raw.githubusercontent.com/GabrielBursi/wallet-app/c1cfc00/src/components/Button/styles.ts
GabrielBursi/wallet-app c1cfc00 src/components/Button/styles.ts
true
200
2,013
/* eslint-disable @typescript-eslint/no-unused-vars */ import { styled, css, DefaultTheme } from 'styled-components/native' import { RuleSet } from 'styled-components/native/dist/types' import normalize from 'react-native-normalize' import { ButtonProps } from './types' type ButtonStyledProps = Omit<ButtonProps, 'tit...
0
blvckmvre/digital-collector
9044278
src/store/actions/auth-actions.ts
TypeScript
www.github.com/blvckmvre/digital-collector/tree/main/src/store/actions/auth-actions.ts
https://raw.githubusercontent.com/blvckmvre/digital-collector/9044278/src/store/actions/auth-actions.ts
blvckmvre/digital-collector 9044278 src/store/actions/auth-actions.ts
true
200
2,357
import { createAsyncThunk } from "@reduxjs/toolkit"; import $req from "../../axios/config"; import useAnnounce from "../../hooks/useAnnounce"; import { IUser } from "../../types/users"; interface IAuthParams { username: string; password: string; announce: ReturnType<typeof useAnnounce>; } export const signupAct...
2
brunovcg/application
6c2c2d0
src/view/components/modules/text/Text.types.ts
TypeScript
www.github.com/brunovcg/application/tree/main/src/view/components/modules/text/Text.types.ts
https://raw.githubusercontent.com/brunovcg/application/6c2c2d0/src/view/components/modules/text/Text.types.ts
brunovcg/application 6c2c2d0 src/view/components/modules/text/Text.types.ts
true
200
551
import { ColorsVariant } from '../../../../types'; export type TextSize = 'tiny' | 'small' | 'medium' | 'large'; export type TextAlign = 'left' | 'right' | 'center' | 'justify'; export type StyledTextProps = { height?: string; width?: string; maxLines?: number; align?: TextAlign; italic?: boolean;...
3
SergioRafaelMoralesSanchez/patrullometro
c81dd39
src/app/app.routes.ts
TypeScript
www.github.com/SergioRafaelMoralesSanchez/patrullometro/tree/main/src/app/app.routes.ts
https://raw.githubusercontent.com/SergioRafaelMoralesSanchez/patrullometro/c81dd39/src/app/app.routes.ts
SergioRafaelMoralesSanchez/patrullometro c81dd39 src/app/app.routes.ts
true
200
904
import { Routes } from '@angular/router'; import { AddPuntosPatrullaComponent } from './components/add-puntos-patrulla/add-puntos-patrulla.component'; import { LoginComponent } from './components/login/login.component'; import { PatrullometroComponent } from './components/patrullometro/patrullometro.component'; import ...
6
ssilve1989/ulti-project
f362b15
src/worlds/consts.ts
TypeScript
www.github.com/ssilve1989/ulti-project/tree/main/src/worlds/consts.ts
https://raw.githubusercontent.com/ssilve1989/ulti-project/f362b15/src/worlds/consts.ts
ssilve1989/ulti-project f362b15 src/worlds/consts.ts
true
200
483
export const NorthAmericanWorlds = new Set([ 'adamantoise', 'cactuar', 'faerie', 'gilgamesh', 'jenova', 'midgardsormr', 'sargatanas', 'siren', 'behemoth', 'excalibur', 'exodus', 'famfrit', 'hyperion', 'lamia', 'leviathan', 'ultros', 'balmung', 'brynhildr', 'coeurl', 'diabolos', ...
7
Kriss-Hanna/blog-express-ts
a30bcf6
src/controllers/post.controllers.ts
TypeScript
www.github.com/Kriss-Hanna/blog-express-ts/tree/main/src/controllers/post.controllers.ts
https://raw.githubusercontent.com/Kriss-Hanna/blog-express-ts/a30bcf6/src/controllers/post.controllers.ts
Kriss-Hanna/blog-express-ts a30bcf6 src/controllers/post.controllers.ts
true
200
2,019
import { Request, Response } from "express"; import PostModel from "../../models/post.models"; const crypto = require("crypto"); const uuid = crypto.randomUUID(); class PostController { // Read static async getAllPosts(req: Request, res: Response) { try { const posts = await PostModel.findAll(); re...
4
dixk3458/matzipweb-front
854221a
src/hooks/queries/useMutateAddComment.ts
TypeScript
www.github.com/dixk3458/matzipweb-front/tree/main/src/hooks/queries/useMutateAddComment.ts
https://raw.githubusercontent.com/dixk3458/matzipweb-front/854221a/src/hooks/queries/useMutateAddComment.ts
dixk3458/matzipweb-front 854221a src/hooks/queries/useMutateAddComment.ts
true
200
676
import { useMutation } from '@tanstack/react-query'; import { addComment, RequestAddComment } from '../../apis/comment'; import { UseMutationCustomOptions } from '../../types'; import { queryClient } from '../../utils'; import { queryKeys } from '../../constants'; function useMutateAddComment( postId: number, muta...
1
pranjal1127/opinion-x
5522664
packages/nextjs/hooks/scaffold-eth/useEventHistory.ts
TypeScript
www.github.com/pranjal1127/opinion-x/tree/main/packages/nextjs/hooks/scaffold-eth/useEventHistory.ts
https://raw.githubusercontent.com/pranjal1127/opinion-x/5522664/packages/nextjs/hooks/scaffold-eth/useEventHistory.ts
pranjal1127/opinion-x 5522664 packages/nextjs/hooks/scaffold-eth/useEventHistory.ts
true
200
4,270
import { useEffect, useState } from "react"; import { useTargetNetwork } from "./useTargetNetwork"; import { useInfiniteQuery } from "@tanstack/react-query"; import { Abi, AbiEvent } from "abitype"; import { Address, GetLogsParameters, PublicClient } from "viem"; import { useBlockNumber, usePublicClient } from "wagmi";...
2
Daegurrr/Daegurrr_Frontend
c3cd5e4
src/styles/GlobalStyle.ts
TypeScript
www.github.com/Daegurrr/Daegurrr_Frontend/tree/main/src/styles/GlobalStyle.ts
https://raw.githubusercontent.com/Daegurrr/Daegurrr_Frontend/c3cd5e4/src/styles/GlobalStyle.ts
Daegurrr/Daegurrr_Frontend c3cd5e4 src/styles/GlobalStyle.ts
true
200
858
import { createGlobalStyle } from "styled-components"; import { reset } from "styled-reset"; export const GlobalStyle = createGlobalStyle` ${reset} @font-face { font-family: 'Pretendard-Regular'; src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format(...
0
marhild/angular-email-client
e298180
src/app/auth/validators/match-password.ts
TypeScript
www.github.com/marhild/angular-email-client/tree/main/src/app/auth/validators/match-password.ts
https://raw.githubusercontent.com/marhild/angular-email-client/e298180/src/app/auth/validators/match-password.ts
marhild/angular-email-client e298180 src/app/auth/validators/match-password.ts
true
200
455
import { Validator , AbstractControl} from '@angular/forms' import { Injectable } from '@angular/core' @Injectable({providedIn: 'root'}) export class MatchPassword implements Validator { validate (formGroup: AbstractControl) { const {password, passwordConfirmation} = formGroup.value; if(password =...
3
Qsenwang/sskin
4a0c8a7
src/app/customer/customer-edit/bundle-package-edit-component/bundle-package-edit-component.ts
TypeScript
www.github.com/Qsenwang/sskin/tree/main/src/app/customer/customer-edit/bundle-package-edit-component/bundle-package-edit-component.ts
https://raw.githubusercontent.com/Qsenwang/sskin/4a0c8a7/src/app/customer/customer-edit/bundle-package-edit-component/bundle-package-edit-component.ts
Qsenwang/sskin 4a0c8a7 src/app/customer/customer-edit/bundle-package-edit-component/bundle-package-edit-component.ts
true
200
5,855
import {Component, EventEmitter, Inject, OnInit, Output} from '@angular/core'; import {FormArray, FormBuilder, FormGroup, ReactiveFormsModule, Validators} from "@angular/forms"; import {CustomerService} from "../../customer.service"; import {NZ_MODAL_DATA, NzModalRef} from "ng-zorro-antd/modal"; import {NzMessageServic...
7
uiloos/uiloos
6df5e72
packages/core/src/Typewriter/keys.ts
TypeScript
www.github.com/uiloos/uiloos/tree/main/packages/core/src/Typewriter/keys.ts
https://raw.githubusercontent.com/uiloos/uiloos/6df5e72/packages/core/src/Typewriter/keys.ts
uiloos/uiloos 6df5e72 packages/core/src/Typewriter/keys.ts
true
200
1,011
/** * Represents a backspace key for when text needs to be removed * from the `Typewriter`. * * @since 1.2.0 */ export const typewriterActionTypeBackspace = '⌫'; /** * Represents the user clearing all text from the `Typewriter` sort * of a: select all and hit backspace scenario. * * @since 1.2.0 */ export co...
6
OldMateTyler/messages-angular
329613a
src/app/app.module.ts
TypeScript
www.github.com/OldMateTyler/messages-angular/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/OldMateTyler/messages-angular/329613a/src/app/app.module.ts
OldMateTyler/messages-angular 329613a src/app/app.module.ts
true
200
1,720
import { NgModule } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { BrowserModule } from '@angular/platform-browser'; import { RouterModule } from '@angular/router'; import { HttpClientModule } from '@angular/common/http'; import { AppRoutingModule } from './app-routing...
4
WebArtWork/wPet
b69e152
src/app/modules/petrecord/pages/records/records.component.ts
TypeScript
www.github.com/WebArtWork/wPet/tree/main/src/app/modules/petrecord/pages/records/records.component.ts
https://raw.githubusercontent.com/WebArtWork/wPet/b69e152/src/app/modules/petrecord/pages/records/records.component.ts
WebArtWork/wPet b69e152 src/app/modules/petrecord/pages/records/records.component.ts
true
200
5,001
import { Component } from '@angular/core'; import { AlertService, CoreService } from 'wacom'; import { PetrecordService } from '../../services/petrecord.service'; import { Petrecord } from '../../interfaces/petrecord.interface'; import { FormService } from 'src/app/core/modules/form/form.service'; import { TranslateSer...
1
wu-jp/javascript-algorithm
62caa47
src/algorithm/14/index.ts
TypeScript
www.github.com/wu-jp/javascript-algorithm/tree/main/src/algorithm/14/index.ts
https://raw.githubusercontent.com/wu-jp/javascript-algorithm/62caa47/src/algorithm/14/index.ts
wu-jp/javascript-algorithm 62caa47 src/algorithm/14/index.ts
true
200
677
/** * @param {string[]} strs * @return {string} */ var longestCommonPrefix = function(strs: string) { if(strs.length === 0) { return '' } // 解法1 /* let res = '' for(let i = 0; i < strs[0].length; i++) { for(let j = 1; j < strs.length; j++) { if(strs[j][i] !== strs[0][i]) { ...
2
dev-mDavid/wavescrape-workspace
c13cdb5
apps/wavescrape/src/app/search-page/search-page.component.ts
TypeScript
www.github.com/dev-mDavid/wavescrape-workspace/tree/main/apps/wavescrape/src/app/search-page/search-page.component.ts
https://raw.githubusercontent.com/dev-mDavid/wavescrape-workspace/c13cdb5/apps/wavescrape/src/app/search-page/search-page.component.ts
dev-mDavid/wavescrape-workspace c13cdb5 apps/wavescrape/src/app/search-page/search-page.component.ts
true
200
312
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'wavescrape-workspace-search-page', templateUrl: './search-page.component.html', styleUrls: ['./search-page.component.sass'] }) export class SearchPageComponent implements OnInit { constructor() { } ngOnInit(): void { } }
5
Matin297/design-system
03bd28e
src/components/drawer/styles/block.ts
TypeScript
www.github.com/Matin297/design-system/tree/main/src/components/drawer/styles/block.ts
https://raw.githubusercontent.com/Matin297/design-system/03bd28e/src/components/drawer/styles/block.ts
Matin297/design-system 03bd28e src/components/drawer/styles/block.ts
true
200
1,609
import {css} from 'lit'; export default css` .drawer--block { width: 100%; height: var(--size); inset-inline: 0; } .drawer--block.drawer--start { inset-block-start: 0; inset-block-end: initial; animation: block-start-slide-out var(--ds-transition-medium); } .drawer--block.drawer--st...
7
DanteCS25/PalCODEX
b2c54ac
src/app/components/cards/userinv-item/userinv-item.component.ts
TypeScript
www.github.com/DanteCS25/PalCODEX/tree/main/src/app/components/cards/userinv-item/userinv-item.component.ts
https://raw.githubusercontent.com/DanteCS25/PalCODEX/b2c54ac/src/app/components/cards/userinv-item/userinv-item.component.ts
DanteCS25/PalCODEX b2c54ac src/app/components/cards/userinv-item/userinv-item.component.ts
true
200
889
import { Component, Input, Output, EventEmitter } from '@angular/core'; import { MatCardModule } from '@angular/material/card'; import { UserinvService } from '../../../services/userinv.service'; import { Inventory } from '../../../models/userinv.model'; @Component({ selector: 'app-userinv-item', standalone: true,...
6
ducmanh2610/hospital-admin
253df69
src/layouts/navbar/navbar.component.ts
TypeScript
www.github.com/ducmanh2610/hospital-admin/tree/main/src/layouts/navbar/navbar.component.ts
https://raw.githubusercontent.com/ducmanh2610/hospital-admin/253df69/src/layouts/navbar/navbar.component.ts
ducmanh2610/hospital-admin 253df69 src/layouts/navbar/navbar.component.ts
true
200
899
import { Component, OnInit } from '@angular/core'; import { LocalService } from 'src/services/local-storage/local.service'; import { Output, EventEmitter } from '@angular/core'; import { AuthenticateService } from 'src/services/authenticate/authenticate.service'; @Component({ selector: 'app-navbar', templateUrl: '...
4
guilhermesquita/arquitetura-I
dfb95d5
src/business/videoBusiness.ts
TypeScript
www.github.com/guilhermesquita/arquitetura-I/tree/main/src/business/videoBusiness.ts
https://raw.githubusercontent.com/guilhermesquita/arquitetura-I/dfb95d5/src/business/videoBusiness.ts
guilhermesquita/arquitetura-I dfb95d5 src/business/videoBusiness.ts
true
200
1,092
import { VideoDatabes } from "../database/VideoDatabase" import { Video } from "../models/Video" export class VideoBusiness { public async getVideos() { const videos = new VideoDatabes() const videoDatas = await videos.getVideos() const video: Video[] = videoDatas.map((videoData) => new V...
2
jValdezR/teslo-shop
92f3b80
src/auth/auth.service.ts
TypeScript
www.github.com/jValdezR/teslo-shop/tree/main/src/auth/auth.service.ts
https://raw.githubusercontent.com/jValdezR/teslo-shop/92f3b80/src/auth/auth.service.ts
jValdezR/teslo-shop 92f3b80 src/auth/auth.service.ts
true
200
2,237
import { BadRequestException, Injectable, InternalServerErrorException, UnauthorizedException, } from '@nestjs/common'; import { CreateUserDto } from './dto/create-user.dto'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { User } from './entities/user.entity'; ...
6
AyyazTech/course_fullstack_blog_with_angular_material_express_mysql_backend
e1dc51b
src/controllers/categories/get-categories.controller.ts
TypeScript
www.github.com/AyyazTech/course_fullstack_blog_with_angular_material_express_mysql_backend/tree/main/src/controllers/categories/get-categories.controller.ts
https://raw.githubusercontent.com/AyyazTech/course_fullstack_blog_with_angular_material_express_mysql_backend/e1dc51b/src/controllers/categories/get-categories.controller.ts
AyyazTech/course_fullstack_blog_with_angular_material_express_mysql_backend e1dc51b src/controllers/categories/get-categories.controller.ts
true
200
333
import { Response } from "express"; import { CustomRequest } from "../../server"; import { CategoriesService } from "../../services/categories.service"; export let getCategoriesController = async ( req: CustomRequest, resp: Response ) => { let categories = await CategoriesService.getCategories(); resp.send(cat...
7
trongghanh23/NguyenTanTruong
b68b6c3
module6/sprint2/shop-smartphone/src/app/component/home/history/history.component.ts
TypeScript
www.github.com/trongghanh23/NguyenTanTruong/tree/main/module6/sprint2/shop-smartphone/src/app/component/home/history/history.component.ts
https://raw.githubusercontent.com/trongghanh23/NguyenTanTruong/b68b6c3/module6/sprint2/shop-smartphone/src/app/component/home/history/history.component.ts
trongghanh23/NguyenTanTruong b68b6c3 module6/sprint2/shop-smartphone/src/app/component/home/history/history.component.ts
true
200
2,395
import { Component, OnInit } from '@angular/core'; import {TokenStorageService} from '../../../service/token-storage.service'; import {SmartphoneService} from '../../../service/smartphone.service'; import {BehaviorSubject, Observable} from 'rxjs'; import {IHistoryDto} from '../../../dto/i-history-dto'; import {ICustome...
4
gradosphera/dao
689add8
dapp/src/wrappers/PointsSeller.ts
TypeScript
www.github.com/gradosphera/dao/tree/main/dapp/src/wrappers/PointsSeller.ts
https://raw.githubusercontent.com/gradosphera/dao/689add8/dapp/src/wrappers/PointsSeller.ts
gradosphera/dao 689add8 dapp/src/wrappers/PointsSeller.ts
true
200
537
import { Address, beginCell, Cell, Contract, contractAddress, ContractProvider, Sender, SendMode } from "@ton/core"; export class BlagoSeller implements Contract { constructor( readonly address: Address, readonly init?: { code: Cell; data: Cell }, ) {} static createFromAddress(address: Address) { re...
2
amisdun/yassir_test
060967b
src/modules/job.module.ts
TypeScript
www.github.com/amisdun/yassir_test/tree/main/src/modules/job.module.ts
https://raw.githubusercontent.com/amisdun/yassir_test/060967b/src/modules/job.module.ts
amisdun/yassir_test 060967b src/modules/job.module.ts
true
200
478
import { Module } from '@nestjs/common'; import { JobsService } from '../services'; import { MongooseModule } from '@nestjs/mongoose'; import { AirQuality, AirQualitySchema } from '../schemas/air_quality.schema'; import { AirQualityModule } from './air_quality.module'; @Module({ imports: [ AirQualityModule, ...
7
DimaKertpich/show-react
f9ae289
src/pages/MainPage/Components/MainProductList/hooks/useMainProductList.ts
TypeScript
www.github.com/DimaKertpich/show-react/tree/main/src/pages/MainPage/Components/MainProductList/hooks/useMainProductList.ts
https://raw.githubusercontent.com/DimaKertpich/show-react/f9ae289/src/pages/MainPage/Components/MainProductList/hooks/useMainProductList.ts
DimaKertpich/show-react f9ae289 src/pages/MainPage/Components/MainProductList/hooks/useMainProductList.ts
true
200
849
import { useMemo } from 'react'; import { useQuery } from '@tanstack/react-query'; import { Product } from '../../../../../shared/types'; import { MainProductListResultProps } from '../MainProductListProps'; const useMainProductList = (): MainProductListResultProps => { const productsQuery = useQuery<Product[], Erro...
6
AlejandroBlanco2001/BookPal-API
ce4c4a8
dist/company/company.service.d.ts
TypeScript
www.github.com/AlejandroBlanco2001/BookPal-API/tree/main/dist/company/company.service.d.ts
https://raw.githubusercontent.com/AlejandroBlanco2001/BookPal-API/ce4c4a8/dist/company/company.service.d.ts
AlejandroBlanco2001/BookPal-API ce4c4a8 dist/company/company.service.d.ts
true
200
684
import { PrismaService } from '../prisma/prisma.service'; import { Company, Prisma } from '@prisma/client'; import { SecurityService } from '../utils/security/security.service'; export declare class CompanyService { private prisma; private securityService; private readonly logger; constructor(prisma: Pr...
2
suzuito/blog1
726a22f
src/app/article-raw.service.spec.ts
TypeScript
www.github.com/suzuito/blog1/tree/main/src/app/article-raw.service.spec.ts
https://raw.githubusercontent.com/suzuito/blog1/726a22f/src/app/article-raw.service.spec.ts
suzuito/blog1 726a22f src/app/article-raw.service.spec.ts
true
200
378
import { TestBed } from '@angular/core/testing'; import { ArticleRawService } from './article-raw.service'; describe('ArticleRawService', () => { let service: ArticleRawService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(ArticleRawService); }); it('should be crea...
4
Nagamedha/DBS_GrowHigh
2714dd0
AngularOMS/src/app/clientprofile/clientprofile.component.ts
TypeScript
www.github.com/Nagamedha/DBS_GrowHigh/tree/main/AngularOMS/src/app/clientprofile/clientprofile.component.ts
https://raw.githubusercontent.com/Nagamedha/DBS_GrowHigh/2714dd0/AngularOMS/src/app/clientprofile/clientprofile.component.ts
Nagamedha/DBS_GrowHigh 2714dd0 AngularOMS/src/app/clientprofile/clientprofile.component.ts
true
200
1,570
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { HttpClient } from '@angular/common/http'; import { DashboardComponent } from '../dashboard/dashboard.component'; @Component({ selector: 'app-clientprofile', templateUrl: './clientprofile.component.html', styleUr...
7
Azizbek-007/smart-shop
f2c353f
src/clients/clients.controller.ts
TypeScript
www.github.com/Azizbek-007/smart-shop/tree/main/src/clients/clients.controller.ts
https://raw.githubusercontent.com/Azizbek-007/smart-shop/f2c353f/src/clients/clients.controller.ts
Azizbek-007/smart-shop f2c353f src/clients/clients.controller.ts
true
200
825
import { Body, Controller, Get, Patch, Post, Query } from '@nestjs/common'; import { ClientsService } from './clients.service'; import { ClientRegister } from './dto/Register.dto'; import { UpdateClient } from './dto/update.dto'; @Controller('client') export class ClientsController { constructor( private r...
2
ACE-NMAMIT/ace-website
6f15fa1
src/pages/api/removeFromTeam.ts
TypeScript
www.github.com/ACE-NMAMIT/ace-website/tree/main/src/pages/api/removeFromTeam.ts
https://raw.githubusercontent.com/ACE-NMAMIT/ace-website/6f15fa1/src/pages/api/removeFromTeam.ts
ACE-NMAMIT/ace-website 6f15fa1 src/pages/api/removeFromTeam.ts
true
200
1,503
import { db } from '@lib/db'; import { eventTable, teamTable, userTeamTable } from '@lib/db/schema'; import type { APIRoute } from 'astro'; import { z } from 'astro:schema'; import { and, eq } from 'drizzle-orm'; const removeFromTeamSchema = z.object({ teamId: z.number(), userId: z.string(), }); export const POST...
6
Youssef0409/PdsFront
ae36d62
src/app/freelancer/ticket-details/ticket-details.component.ts
TypeScript
www.github.com/Youssef0409/PdsFront/tree/main/src/app/freelancer/ticket-details/ticket-details.component.ts
https://raw.githubusercontent.com/Youssef0409/PdsFront/ae36d62/src/app/freelancer/ticket-details/ticket-details.component.ts
Youssef0409/PdsFront ae36d62 src/app/freelancer/ticket-details/ticket-details.component.ts
true
200
561
import { Component, Inject } from '@angular/core'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { Ticket } from '../suivi-offre/suivi-offre.component'; @Component({ selector: 'app-ticket-details', templateUrl: './ticket-details.component.html', styleUrls: ['./ticket-details.co...
4
AryaVinod/Backend
cb73b38
Assignment1/src/route/department.route.ts
TypeScript
www.github.com/AryaVinod/Backend/tree/main/Assignment1/src/route/department.route.ts
https://raw.githubusercontent.com/AryaVinod/Backend/cb73b38/Assignment1/src/route/department.route.ts
AryaVinod/Backend cb73b38 Assignment1/src/route/department.route.ts
true
200
616
import { DepartmentController } from "../controller/department.controller"; import dataSource from "../db/postgres.db"; import { Department } from "../entity/department.entity"; import { DepartmentRepository } from "../repository/department.repository"; import { DepartmentService } from "../service/department.service";...
7
HenriqueSouzza/next-solid
60e6215
cypress/e2e/dashboard.cy.ts
TypeScript
www.github.com/HenriqueSouzza/next-solid/tree/main/cypress/e2e/dashboard.cy.ts
https://raw.githubusercontent.com/HenriqueSouzza/next-solid/60e6215/cypress/e2e/dashboard.cy.ts
HenriqueSouzza/next-solid 60e6215 cypress/e2e/dashboard.cy.ts
true
200
1,160
describe("dashboard", () => { beforeEach(() => { cy.visit('/login'); cy.get("input[name='username']").type('henrique.souza'); cy.get("input[name='password']").type('Henry123456'); cy.contains("button", "Sign in").click(); }); it('should add user on the table', () => { cy.get('button').contain...
2
hamed-fouladi-itomych/air-quality
b292976
src/repositories/base.repository.ts
TypeScript
www.github.com/hamed-fouladi-itomych/air-quality/tree/main/src/repositories/base.repository.ts
https://raw.githubusercontent.com/hamed-fouladi-itomych/air-quality/b292976/src/repositories/base.repository.ts
hamed-fouladi-itomych/air-quality b292976 src/repositories/base.repository.ts
true
200
328
import { AppDataSource } from '../../data-source'; import { EntityTarget, ObjectLiteral, Repository } from 'typeorm'; class BaseRepository<T extends ObjectLiteral> { public db: Repository<T>; constructor(target: EntityTarget<T>) { this.db = AppDataSource.getRepository<T>(target); } } export default BaseRepo...
4
persilee/next-arch
c5eeea5
src/server/utils/aliyun/mail.ts
TypeScript
www.github.com/persilee/next-arch/tree/main/src/server/utils/aliyun/mail.ts
https://raw.githubusercontent.com/persilee/next-arch/c5eeea5/src/server/utils/aliyun/mail.ts
persilee/next-arch c5eeea5 src/server/utils/aliyun/mail.ts
true
200
1,193
import Client, { SingleSendMailRequest } from '@alicloud/dm20151123' import { Config } from '@alicloud/openapi-client' import { RuntimeOptions } from '@alicloud/tea-util' import { subject } from '@casl/ability' import { singleSendMailInput } from '~/schema/aliyun/mail' const { aliyun: { accessKeyId, accessKe...
6
edsolater/pivkit
d503618
src/utils/getElementsFromRefs.ts
TypeScript
www.github.com/edsolater/pivkit/tree/main/src/utils/getElementsFromRefs.ts
https://raw.githubusercontent.com/edsolater/pivkit/d503618/src/utils/getElementsFromRefs.ts
edsolater/pivkit d503618 src/utils/getElementsFromRefs.ts
true
200
954
import { DeMayArray, DeMayFn, MayArray, MayFn, arrify, shakeFalsy, shrinkFn } from "@edsolater/fnkit" export type ElementRefs<HTMLEl extends HTMLElement = HTMLElement> = MayFn<MayArray<MayFn<HTMLEl | null | undefined>>> export type ElementRef<HTMLEl extends HTMLElement = HTMLElement> = MayFn<MayFn<HTMLEl | null | unde...
2
Shailesh0711/Rummy-basecode
ce47131
src/constants/messages/alert.ts
TypeScript
www.github.com/Shailesh0711/Rummy-basecode/tree/main/src/constants/messages/alert.ts
https://raw.githubusercontent.com/Shailesh0711/Rummy-basecode/ce47131/src/constants/messages/alert.ts
Shailesh0711/Rummy-basecode ce47131 src/constants/messages/alert.ts
true
200
1,451
export = Object.freeze({ TYPE: { COMMON_POPUP: 'commonPopup', TOST_POPUP: 'centerToastPopup', TOP_TOAST_POPUP: 'topToastPopup', MIDDLE_TOAST_POPUP: 'middleToastPopup', COMMON_TOAST_POPUP: 'commonToastPopup', TOP_MIDDLE_TOAST_POPUP : `topMiddleTostPopup`, DOWN_...
7
neskor-b/Algoritms-and-data-structure
df69003
src/algoritms/list-search/binary-search/index.ts
TypeScript
www.github.com/neskor-b/Algoritms-and-data-structure/tree/main/src/algoritms/list-search/binary-search/index.ts
https://raw.githubusercontent.com/neskor-b/Algoritms-and-data-structure/df69003/src/algoritms/list-search/binary-search/index.ts
neskor-b/Algoritms-and-data-structure df69003 src/algoritms/list-search/binary-search/index.ts
true
200
476
// Time complexity - O(log n) function binarySearch<T>(arr: T[], target: number | string, selector?: (item: T) => number | string) { let left = 0; let right = arr.length - 1; while (left <= right) { const mid = Math.floor((left + right) / 2); const value = selector ? selector(arr[mid]) : arr[mid]; if (value =...
4