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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
David-forero/news-app-with-next13 | aecf70e | lib/fetchNews.ts | TypeScript | www.github.com/David-forero/news-app-with-next13/tree/main/lib/fetchNews.ts | https://raw.githubusercontent.com/David-forero/news-app-with-next13/aecf70e/lib/fetchNews.ts | David-forero/news-app-with-next13 aecf70e lib/fetchNews.ts | true | 200 | 1,810 | import { gql } from "graphql-request";
import sortNewsByImage from "./sortNewsByImage";
const fetchNews = async (
category?: Category | string,
keywords?: string,
isDynamic?: boolean
) => {
const query = gql`
query MyQuery(
$access_key: String!
$categories: String!
$keywords: String
)... | 6 |
bkrajendra/puneriawaaz | 8f93144 | src/app/pages/join/join.page.ts | TypeScript | www.github.com/bkrajendra/puneriawaaz/tree/main/src/app/pages/join/join.page.ts | https://raw.githubusercontent.com/bkrajendra/puneriawaaz/8f93144/src/app/pages/join/join.page.ts | bkrajendra/puneriawaaz 8f93144 src/app/pages/join/join.page.ts | true | 200 | 1,587 | import { Component, OnInit } from '@angular/core';
import { FormBuilder, Validators } from '@angular/forms';
import { LoadingController, ToastController } from '@ionic/angular';
import { CloudService } from 'src/app/services/cloud.service';
@Component({
selector: 'app-join',
templateUrl: './join.page.html',
styl... | 1 |
konfig-sdks/slack-web-typescript-sdk | 4a64eb3 | api/auth-api-generated.ts | TypeScript | www.github.com/konfig-sdks/slack-web-typescript-sdk/tree/main/api/auth-api-generated.ts | https://raw.githubusercontent.com/konfig-sdks/slack-web-typescript-sdk/4a64eb3/api/auth-api-generated.ts | konfig-sdks/slack-web-typescript-sdk 4a64eb3 api/auth-api-generated.ts | true | 200 | 10,776 | /* tslint:disable */
/* eslint-disable */
/*
Slack Web API
One way to interact with the Slack platform is its HTTP RPC-based Web API, a collection of methods requiring OAuth 2.0-based user, bot, or workspace tokens blessed with related OAuth scopes.
The version of the OpenAPI document: 1.7.0
NOTE: This file is auto... | 5 |
margrigorian/new-shop | e42769c | src/store/store.ts | TypeScript | www.github.com/margrigorian/new-shop/tree/main/src/store/store.ts | https://raw.githubusercontent.com/margrigorian/new-shop/e42769c/src/store/store.ts | margrigorian/new-shop e42769c src/store/store.ts | true | 200 | 426 | import { configureStore } from "@reduxjs/toolkit";
import managementSlice from "./slices/slice-manage";
import basketSlice from "./slices/slice-basket";
const store = configureStore({
reducer: {
manage: managementSlice,
basket: basketSlice
}
})
export default store;
export type RootState = Re... | 0 |
Kican/Kpanel | 796307f | projects/auth/src/lib/components/_partials/forgot-password/forgot-password.component.ts | TypeScript | www.github.com/Kican/Kpanel/tree/main/projects/auth/src/lib/components/_partials/forgot-password/forgot-password.component.ts | https://raw.githubusercontent.com/Kican/Kpanel/796307f/projects/auth/src/lib/components/_partials/forgot-password/forgot-password.component.ts | Kican/Kpanel 796307f projects/auth/src/lib/components/_partials/forgot-password/forgot-password.component.ts | true | 200 | 1,077 | import {Component, OnInit} from '@angular/core';
import {FormBuilder, FormGroup, Validators} from '@angular/forms';
import {ToastrService} from 'ngx-toastr';
import {KAccountService} from '@ngx-k/auth';
@Component({
selector: 'app-forgot-password',
templateUrl: './forgot-password.component.html',
styleUrls: ['./for... | 2 |
kamil-bednarek/n8n-nodes-home-assistant-websocket | 56d79e5 | src/nodes/HomeAssistantTrigger/types.ts | TypeScript | www.github.com/kamil-bednarek/n8n-nodes-home-assistant-websocket/tree/main/src/nodes/HomeAssistantTrigger/types.ts | https://raw.githubusercontent.com/kamil-bednarek/n8n-nodes-home-assistant-websocket/56d79e5/src/nodes/HomeAssistantTrigger/types.ts | kamil-bednarek/n8n-nodes-home-assistant-websocket 56d79e5 src/nodes/HomeAssistantTrigger/types.ts | true | 200 | 654 | import WebSocket from 'ws';
import { ICredentialDataDecryptedObject } from 'n8n-workflow';
export interface HomeAssistantCredentials extends ICredentialDataDecryptedObject {
host: string;
accessToken: string;
allowUnauthorizedCerts: boolean;
}
export interface WebSocketOptions {
rejectUnauthorized: boolean;
}... | 7 |
Warpshlczy/Dreamy-Home | f090d4c | src/server/api/user/register.ts | TypeScript | www.github.com/Warpshlczy/Dreamy-Home/tree/main/src/server/api/user/register.ts | https://raw.githubusercontent.com/Warpshlczy/Dreamy-Home/f090d4c/src/server/api/user/register.ts | Warpshlczy/Dreamy-Home f090d4c src/server/api/user/register.ts | true | 200 | 1,226 | export default defineEventHandler(async (event) => {
const config = useRuntimeConfig(event);
const requestParams = await readBody(event);
console.log(requestParams);
const result: any = await $fetch("user/register", {
baseURL: config.public.baseURL,
method: "POST",
body: requestParams,
});
conso... | 4 |
alvareztomas1/projects-manager | a41ce2c | frontend/src/components/index.ts | TypeScript | www.github.com/alvareztomas1/projects-manager/tree/main/frontend/src/components/index.ts | https://raw.githubusercontent.com/alvareztomas1/projects-manager/a41ce2c/frontend/src/components/index.ts | alvareztomas1/projects-manager a41ce2c frontend/src/components/index.ts | true | 200 | 983 | export { Notification } from './Notification';
export { ProjectListElement } from './ProjectListElement';
export { Percentage } from './Percentage';
export { ProjectFormModal } from './ProjectFormModal';
export { NoProjectsMessage } from './NoProjectsMessage';
export { DeleteModal } from './DeleteModal';
export { AddUs... | 1 |
Zacele/demo-srp-reakh-2.0 | d7cdc92 | packages/lib/selectNextLocation.ts | TypeScript | www.github.com/Zacele/demo-srp-reakh-2.0/tree/main/packages/lib/selectNextLocation.ts | https://raw.githubusercontent.com/Zacele/demo-srp-reakh-2.0/d7cdc92/packages/lib/selectNextLocation.ts | Zacele/demo-srp-reakh-2.0 d7cdc92 packages/lib/selectNextLocation.ts | true | 200 | 1,703 | // @ts-nocheck
import difference from 'lodash/difference'
import uniq from 'lodash/uniq'
import xorBy from 'lodash/xorBy'
import { PopularLocation } from 'types'
const selectAncestors = (
popularLocations: PopularLocation[],
locationId: string,
prevChildren = []
) =>
popularLocations.reduce((acc, currentLocati... | 5 |
shlomiash/promotion-tracker | d81d3cd | server/actions/handle-add-discount.ts | TypeScript | www.github.com/shlomiash/promotion-tracker/tree/main/server/actions/handle-add-discount.ts | https://raw.githubusercontent.com/shlomiash/promotion-tracker/d81d3cd/server/actions/handle-add-discount.ts | shlomiash/promotion-tracker d81d3cd server/actions/handle-add-discount.ts | true | 200 | 1,396 | "use server";
import { DiscountSchema } from "@/types/discount-schema";
import { createSafeActionClient } from "next-safe-action";
import { auth } from "../auth";
import { eq } from "drizzle-orm";
import { discounts } from "../db/schema";
import { db } from "../db/db";
const actionClient = createSafeActionClient();
... | 7 |
mferdiyanzah/mini-project-be-deployment | 095af9b | auth/src/controllers/user.controller.ts | TypeScript | www.github.com/mferdiyanzah/mini-project-be-deployment/tree/main/auth/src/controllers/user.controller.ts | https://raw.githubusercontent.com/mferdiyanzah/mini-project-be-deployment/095af9b/auth/src/controllers/user.controller.ts | mferdiyanzah/mini-project-be-deployment 095af9b auth/src/controllers/user.controller.ts | true | 200 | 1,086 | import { Request, Response } from 'express';
import { UserLoginRequest, UserRegisterRequest } from '../models/user.model';
import userService from '../services/user.service';
const register = async (req: Request, res: Response) => {
try {
const userRegisterRequest = req.body as UserRegisterRequest;
const da... | 0 |
equal-shares/equal-shares | 8522fba | frontend/src/api.ts | TypeScript | www.github.com/equal-shares/equal-shares/tree/main/frontend/src/api.ts | https://raw.githubusercontent.com/equal-shares/equal-shares/8522fba/frontend/src/api.ts | equal-shares/equal-shares 8522fba frontend/src/api.ts | true | 200 | 1,980 | // All API requests
import { DataResponse, VoteRequestBody } from './schemas';
import { getConfig } from './config';
export async function postFakeDataRequest(email: string, token: string): Promise<DataResponse> {
// Fake data for testing
console.log(email, token);
return Promise.resolve<DataResponse>({
vo... | 3 |
Alekseevich-psk/pm-Gallery | 071b81b | app/ts/init-template/init-previews.ts | TypeScript | www.github.com/Alekseevich-psk/pm-Gallery/tree/main/app/ts/init-template/init-previews.ts | https://raw.githubusercontent.com/Alekseevich-psk/pm-Gallery/071b81b/app/ts/init-template/init-previews.ts | Alekseevich-psk/pm-Gallery 071b81b app/ts/init-template/init-previews.ts | true | 200 | 810 | import pmgClasses from "../core/setting/pmgClasses";
import { preview } from '../types/pmgPreview';
function initPreviews(pmGallery: HTMLElement, previews: object[]) {
const track = pmGallery.querySelector('.' + pmgClasses['track']);
const img = function (img: preview, index: number) {
return `<div cl... | 4 |
yyunix/frontendmentor-solutions | 4be305e | guru/invoice-app/src/utils/shared.ts | TypeScript | www.github.com/yyunix/frontendmentor-solutions/tree/main/guru/invoice-app/src/utils/shared.ts | https://raw.githubusercontent.com/yyunix/frontendmentor-solutions/4be305e/guru/invoice-app/src/utils/shared.ts | yyunix/frontendmentor-solutions 4be305e guru/invoice-app/src/utils/shared.ts | true | 200 | 365 | export const formatDate = (date: string) => {
return new Date(date).toLocaleDateString("en-GB", {
day: "numeric",
month: "short",
year: "numeric",
});
};
export const formatCurrency = (amount: number) => {
const formatter = new Intl.NumberFormat("en-GB", {
style: "currency",
currency: "GBP",
... | 2 |
Stonum/stack-manager | f3bdbb3 | packages/main/src/project/projectFactory.ts | TypeScript | www.github.com/Stonum/stack-manager/tree/main/packages/main/src/project/projectFactory.ts | https://raw.githubusercontent.com/Stonum/stack-manager/f3bdbb3/packages/main/src/project/projectFactory.ts | Stonum/stack-manager f3bdbb3 packages/main/src/project/projectFactory.ts | true | 200 | 7,046 | import path from 'path';
import fs from 'fs';
import { projects, settings } from '../store';
import ProjectItem from './projectItem';
import * as helper from './projectHelpers';
import { checkPort } from '@/utils';
export default class ProjectFactory {
static async init(params?: ProjectOptions): Promise<Project> ... | 6 |
chenguihai/vue-admin-all | 44a40de | static/tinymce/langs/modules/alloy/src/main/ts/ephox/alloy/api/events/AlloyTriggers.ts | TypeScript | www.github.com/chenguihai/vue-admin-all/tree/main/static/tinymce/langs/modules/alloy/src/main/ts/ephox/alloy/api/events/AlloyTriggers.ts | https://raw.githubusercontent.com/chenguihai/vue-admin-all/44a40de/static/tinymce/langs/modules/alloy/src/main/ts/ephox/alloy/api/events/AlloyTriggers.ts | chenguihai/vue-admin-all 44a40de static/tinymce/langs/modules/alloy/src/main/ts/ephox/alloy/api/events/AlloyTriggers.ts | true | 200 | 1,575 | import {Fun, Obj} from '@ephox/katamari';
import * as SystemEvents from './SystemEvents';
import {AlloyComponent} from '../../api/component/ComponentApi';
import {Element} from '@ephox/sugar';
import {SimulatedEvent, EventFormat} from '../../events/SimulatedEvent';
const emit = (component: AlloyComponent, event: stri... | 1 |
glennfriend/example-code | d9169b0 | ant-design-react/useState/useTriggerDependency.ts | TypeScript | www.github.com/glennfriend/example-code/tree/main/ant-design-react/useState/useTriggerDependency.ts | https://raw.githubusercontent.com/glennfriend/example-code/d9169b0/ant-design-react/useState/useTriggerDependency.ts | glennfriend/example-code d9169b0 ant-design-react/useState/useTriggerDependency.ts | true | 200 | 1,139 | import { useState } from 'react';
import { message } from 'antd';
import { tryCatch } from '@onr/shared';
import { TriggerDependency } from '@onr/trigger';
export const useTriggerDependency = () => {
const [loading, setLoading] = useState(false);
const [triggerDependencies, setTriggerDependencies] = useState<Trigg... | 5 |
elena-calcada/agrotec-api | 7231b67 | src/modules/users/useCases/updateUserPassword/UpdateUserPasswordUseCase.ts | TypeScript | www.github.com/elena-calcada/agrotec-api/tree/main/src/modules/users/useCases/updateUserPassword/UpdateUserPasswordUseCase.ts | https://raw.githubusercontent.com/elena-calcada/agrotec-api/7231b67/src/modules/users/useCases/updateUserPassword/UpdateUserPasswordUseCase.ts | elena-calcada/agrotec-api 7231b67 src/modules/users/useCases/updateUserPassword/UpdateUserPasswordUseCase.ts | true | 200 | 926 | import { hash } from "bcryptjs";
import { inject, injectable } from "tsyringe";
import { AppError } from "../../../../shared/errors/AppError";
import { IUpdateUserPasswordDTO } from "../../dtos/IUpdateUserPasswordDTO";
import { IUsersRepository } from "../../repositories/IUsersRepository";
@injectable()
class UpdateU... | 3 |
e-freni/timesheet-ui | f2897d3 | src/app/components/dialog/missing-hours-warning/missing-hours-warning.component.ts | TypeScript | www.github.com/e-freni/timesheet-ui/tree/main/src/app/components/dialog/missing-hours-warning/missing-hours-warning.component.ts | https://raw.githubusercontent.com/e-freni/timesheet-ui/f2897d3/src/app/components/dialog/missing-hours-warning/missing-hours-warning.component.ts | e-freni/timesheet-ui f2897d3 src/app/components/dialog/missing-hours-warning/missing-hours-warning.component.ts | true | 200 | 1,189 | import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { getHoursInDaysFormatter } from 'app/utils/date-utilities';
import { LocalStorageService } from 'ngx-webstorage';
import { SKIP_MONTH_KEY } from 'app.constants';
@Component({
selector:... | 7 |
rafaelhbarreto/vortex-nest-api | cd4aa0f | src/user/user.controller.ts | TypeScript | www.github.com/rafaelhbarreto/vortex-nest-api/tree/main/src/user/user.controller.ts | https://raw.githubusercontent.com/rafaelhbarreto/vortex-nest-api/cd4aa0f/src/user/user.controller.ts | rafaelhbarreto/vortex-nest-api cd4aa0f src/user/user.controller.ts | true | 200 | 978 | import {
Body,
Controller,
Post,
Param,
Get,
Put,
Delete,
Patch,
ParseIntPipe,
} from '@nestjs/common';
import { CreateUserDTO } from './dto/create.user.dto';
import { UpdateUserDTO } from './dto/update.user.dto';
import { PatchUserDTO } from './dto/patch.user.dto';
@Controller('users')
export class ... | 4 |
beyond-localhost/how-are-you-BE | cc9b849 | src/domain/misc.repository.ts | TypeScript | www.github.com/beyond-localhost/how-are-you-BE/tree/main/src/domain/misc.repository.ts | https://raw.githubusercontent.com/beyond-localhost/how-are-you-BE/cc9b849/src/domain/misc.repository.ts | beyond-localhost/how-are-you-BE cc9b849 src/domain/misc.repository.ts | true | 200 | 500 | import { inArray } from "drizzle-orm";
import { jobs, worries, type Job, type Worry } from "./criteria.entity";
import type { Conn } from "./rdb";
export const findAllJobs = async (conn: Conn): Promise<Job[]> =>
conn.select().from(jobs);
export const findAllWorries = async (conn: Conn): Promise<Worry[]> =>
conn.s... | 2 |
maxones25/studien_generator_app | 85fbad6 | backend/apps/admin/src/directors/infrastructure/db/repositories/directors.repository.ts | TypeScript | www.github.com/maxones25/studien_generator_app/tree/main/backend/apps/admin/src/directors/infrastructure/db/repositories/directors.repository.ts | https://raw.githubusercontent.com/maxones25/studien_generator_app/85fbad6/backend/apps/admin/src/directors/infrastructure/db/repositories/directors.repository.ts | maxones25/studien_generator_app 85fbad6 backend/apps/admin/src/directors/infrastructure/db/repositories/directors.repository.ts | true | 200 | 3,168 | import {
StudyMemberSchema,
Director as DirectorSchema,
} from '@entities/schema';
import { InjectRepository } from '@nestjs/typeorm';
import { IsNull, Repository } from 'typeorm';
import { IDirectorsRepository, Director } from '@admin/directors/domain';
import { Id } from '@shared/modules/core';
import { TypeOrmRe... | 0 |
FxFurEN/front-crm | 9dc456a | src/middleware.ts | TypeScript | www.github.com/FxFurEN/front-crm/tree/main/src/middleware.ts | https://raw.githubusercontent.com/FxFurEN/front-crm/9dc456a/src/middleware.ts | FxFurEN/front-crm 9dc456a src/middleware.ts | true | 200 | 2,242 | import { type NextRequest, NextResponse } from 'next/server'
import { pageConfig } from './shared/config'
/**
* Основной middleware для обработки редиректов и авторизации.
*
* @param request - Запрос, который поступает в middleware.
* @returns Response - Ответ для перенаправления или продолжения запроса.
... | 6 |
ut02012tic2024/kfm | 8c04b6e | src/app/app.component.ts | TypeScript | www.github.com/ut02012tic2024/kfm/tree/main/src/app/app.component.ts | https://raw.githubusercontent.com/ut02012tic2024/kfm/8c04b6e/src/app/app.component.ts | ut02012tic2024/kfm 8c04b6e src/app/app.component.ts | true | 200 | 384 | import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { HomeComponent } from "./HomeComponent/home/home.component";
@Component({
selector: 'app-root',
imports: [HomeComponent,RouterOutlet],
templateUrl: './app.component.html',
styleUrl: './app.component.css'
... | 3 |
ossmanbas/RentACar | 49a1108 | src/app/app-routing.module.ts | TypeScript | www.github.com/ossmanbas/RentACar/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/ossmanbas/RentACar/49a1108/src/app/app-routing.module.ts | ossmanbas/RentACar 49a1108 src/app/app-routing.module.ts | true | 200 | 716 | import { CarComponent } from './components/car/car.component';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
const routes: Routes = [
{path:"",pathMatch:"full",component:CarComponent}, // Anasayfada hiç bişey açılmazsa Car Componenti aç. path = Default açılacak say... | 7 |
Vibrant275/FluidUI-cli | 0d4c9ae | packages/codemod/src/helpers/lint.ts | TypeScript | www.github.com/Vibrant275/FluidUI-cli/tree/main/packages/codemod/src/helpers/lint.ts | https://raw.githubusercontent.com/Vibrant275/FluidUI-cli/0d4c9ae/packages/codemod/src/helpers/lint.ts | Vibrant275/FluidUI-cli 0d4c9ae packages/codemod/src/helpers/lint.ts | true | 200 | 1,427 | import {getOptionsValue} from './options';
import {getStore, writeFileAndUpdateStore} from './store';
async function tryImportPackage(packageName: string) {
try {
return await import(packageName);
} catch {
return null;
}
}
export async function lintWithESLint(filePaths: string[]) {
const eslintPkg = ... | 4 |
ceptar/vendure-starter-ya5fqq | 96ca8f4 | src/compatibility/bcryptjs-hashing-strategy.ts | TypeScript | www.github.com/ceptar/vendure-starter-ya5fqq/tree/main/src/compatibility/bcryptjs-hashing-strategy.ts | https://raw.githubusercontent.com/ceptar/vendure-starter-ya5fqq/96ca8f4/src/compatibility/bcryptjs-hashing-strategy.ts | ceptar/vendure-starter-ya5fqq 96ca8f4 src/compatibility/bcryptjs-hashing-strategy.ts | true | 200 | 547 | import { PasswordHashingStrategy } from '@vendure/core';
import bcrypt from 'bcryptjs';
const SALT_ROUNDS = 12;
/**
* Use bcrypt-js rather than the default bcrypt, because Stackblitz cannot handle the
* native module version.
*/
export class BcryptJSPasswordHashingStrategy
implements PasswordHashingStr... | 0 |
Tanbir34872a/Adv-Web-Tech | aab6f9a | MidExam/labexam2/src/login/login.module.ts | TypeScript | www.github.com/Tanbir34872a/Adv-Web-Tech/tree/main/MidExam/labexam2/src/login/login.module.ts | https://raw.githubusercontent.com/Tanbir34872a/Adv-Web-Tech/aab6f9a/MidExam/labexam2/src/login/login.module.ts | Tanbir34872a/Adv-Web-Tech aab6f9a MidExam/labexam2/src/login/login.module.ts | true | 200 | 761 | import { Module, NestModule, MiddlewareConsumer } from '@nestjs/common';
import * as cookieParser from 'cookie-parser';
import { TypeOrmModule } from '@nestjs/typeorm';
import { JwtModule } from '@nestjs/jwt';
import { LoginService } from './login.service';
import { LoginController } from './login.controller';
import ... | 1 |
madeelchaudhary/byte-overflow | 1f8b4a1 | app/api/webhooks/route.ts | TypeScript | www.github.com/madeelchaudhary/byte-overflow/tree/main/app/api/webhooks/route.ts | https://raw.githubusercontent.com/madeelchaudhary/byte-overflow/1f8b4a1/app/api/webhooks/route.ts | madeelchaudhary/byte-overflow 1f8b4a1 app/api/webhooks/route.ts | true | 200 | 2,985 | import { WebhookEvent } from "@clerk/nextjs/server";
import { headers } from "next/headers";
import { Webhook } from "svix";
import { createUser, deleteUser, updateUser } from "@/lib/actions/user";
import APIError from "@/lib/api-error";
export async function POST(req: Request) {
// You can find this in the Clerk D... | 6 |
harcop/Algorithms-DS | 4874db2 | algo_expert/medium/dp/find_largest_sum.ts | TypeScript | www.github.com/harcop/Algorithms-DS/tree/main/algo_expert/medium/dp/find_largest_sum.ts | https://raw.githubusercontent.com/harcop/Algorithms-DS/4874db2/algo_expert/medium/dp/find_largest_sum.ts | harcop/Algorithms-DS 4874db2 algo_expert/medium/dp/find_largest_sum.ts | true | 200 | 652 | function ls1(arr: number[]): number {
let _a = [0,0,0];
for (let i = 0; i<arr.length; i++) {
if (arr[i] > _a[2]) {
_a[0] = _a[1];
_a[1] = _a[2];
_a[2] = arr[i];
}
else if (arr[i] > _a[1]) {
_a[0] = _a[1];
_a[1] = arr[i];
... | 5 |
aaronstanek/piebuilder | f81ed93 | src/hash.ts | TypeScript | www.github.com/aaronstanek/piebuilder/tree/main/src/hash.ts | https://raw.githubusercontent.com/aaronstanek/piebuilder/f81ed93/src/hash.ts | aaronstanek/piebuilder f81ed93 src/hash.ts | true | 200 | 2,302 | import * as crypto from 'crypto';
import * as fs from 'fs';
import * as pathlib from 'path';
export function documentToHash(obj: string[][]): string {
// returns hex of hash
let docString: string = JSON.stringify(obj);
return crypto.createHash('sha256').update(docString).digest('hex');
}
export ... | 3 |
SyedSaadh1/FullStack_Portal | c30431f | modules/internal/interview/InterviewServices.ts | TypeScript | www.github.com/SyedSaadh1/FullStack_Portal/tree/main/modules/internal/interview/InterviewServices.ts | https://raw.githubusercontent.com/SyedSaadh1/FullStack_Portal/c30431f/modules/internal/interview/InterviewServices.ts | SyedSaadh1/FullStack_Portal c30431f modules/internal/interview/InterviewServices.ts | true | 200 | 1,818 | import QuestionGenerator from '@/modules/external/ai/interview/QuestionGenerator';
import prisma from '@/prisma';
import StringUtils from '@/utils/string.utls';
import { Difficulty, Stack } from '@prisma/client';
export default class InterviewServices {
static async startNewInterview(
userId: string,
stack: Stack... | 7 |
loopbless/flyeye-monitor-server | 20009ad | src/alarm/notify.service.ts | TypeScript | www.github.com/loopbless/flyeye-monitor-server/tree/main/src/alarm/notify.service.ts | https://raw.githubusercontent.com/loopbless/flyeye-monitor-server/20009ad/src/alarm/notify.service.ts | loopbless/flyeye-monitor-server 20009ad src/alarm/notify.service.ts | true | 200 | 850 | import { Injectable } from '@nestjs/common';
@Injectable()
export class NotifyCacheService {
// 计时器
timer = null;
// 消息队列
msgQueue = [];
private observers = [];
private scheduler() {
this.timer = setTimeout(() => {
const msgs = this.msgQueue;
this.msgQueue = [];
this.observers.for... | 2 |
KickCodex/kick-codex-mono | 1b156f5 | packages/typeorm-database/src/columns/DecimalTransformer.ts | TypeScript | www.github.com/KickCodex/kick-codex-mono/tree/main/packages/typeorm-database/src/columns/DecimalTransformer.ts | https://raw.githubusercontent.com/KickCodex/kick-codex-mono/1b156f5/packages/typeorm-database/src/columns/DecimalTransformer.ts | KickCodex/kick-codex-mono 1b156f5 packages/typeorm-database/src/columns/DecimalTransformer.ts | true | 200 | 362 | import Decimal from 'decimal.js';
import { ValueTransformer } from 'typeorm';
export class DecimalTransformer implements ValueTransformer {
to(decimal?: Decimal): string | undefined {
return decimal?.toString() || undefined;
}
from(decimal?: string): Decimal | undefined {
return decimal ? ... | 4 |
karisDev/vtb-hack | 547b962 | frontend/src/api/models/atm.model.ts | TypeScript | www.github.com/karisDev/vtb-hack/tree/main/frontend/src/api/models/atm.model.ts | https://raw.githubusercontent.com/karisDev/vtb-hack/547b962/frontend/src/api/models/atm.model.ts | karisDev/vtb-hack 547b962 frontend/src/api/models/atm.model.ts | true | 200 | 1,676 | import { LngLat } from "@yandex/ymaps3-types";
import { GenericAttributes, convertLoad } from "./Location";
export type ServiceStatus = {
serviceCapability: "UNKNOWN" | "SUPPORTED" | "UNSUPPORTED";
serviceActivity: "UNKNOWN" | "AVAILABLE" | "UNAVAILABLE";
};
export type Schedule = {
allDayText: string;
allDay... | 0 |
dathdka/Server-API-draw-app | 969f773 | src/test/drawTest.ts | TypeScript | www.github.com/dathdka/Server-API-draw-app/tree/main/src/test/drawTest.ts | https://raw.githubusercontent.com/dathdka/Server-API-draw-app/969f773/src/test/drawTest.ts | dathdka/Server-API-draw-app 969f773 src/test/drawTest.ts | true | 200 | 827 | const drawTest = (server: any, chai: Chai.ChaiStatic) => {
let should = chai.should();
describe("draw request", () => {
it("successfully get my collection", done => {
chai
.request(server)
.get("/get-my-collection")
.auth(`${process.env.TEMP_TOKEN}`, { type: "bearer" })
.e... | 1 |
lparrot/kraken_cli | 66ecf23 | packages/cli/src/app/app.module.ts | TypeScript | www.github.com/lparrot/kraken_cli/tree/main/packages/cli/src/app/app.module.ts | https://raw.githubusercontent.com/lparrot/kraken_cli/66ecf23/packages/cli/src/app/app.module.ts | lparrot/kraken_cli 66ecf23 packages/cli/src/app/app.module.ts | true | 200 | 1,769 | import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import * as path from 'path'
import { join } from 'path'
import { DataSource } from 'typeorm'
import { createDatabase, dropDatabase, } from 'typeorm-extension'
import { EntityModule } from './entities/_entity.module'
import { Config... | 7 |
SureshMoghe/JPVReports | d7ab0f9 | src/app/welfareAsstLevel/components/farmerBankAccUpdateStatus/farmer-bank-baustatus-rbk-report/farmer-bank-baustatus-rbk-report.component.ts | TypeScript | www.github.com/SureshMoghe/JPVReports/tree/main/src/app/welfareAsstLevel/components/farmerBankAccUpdateStatus/farmer-bank-baustatus-rbk-report/farmer-bank-baustatus-rbk-report.component.ts | https://raw.githubusercontent.com/SureshMoghe/JPVReports/d7ab0f9/src/app/welfareAsstLevel/components/farmerBankAccUpdateStatus/farmer-bank-baustatus-rbk-report/farmer-bank-baustatus-rbk-report.component.ts | SureshMoghe/JPVReports d7ab0f9 src/app/welfareAsstLevel/components/farmerBankAccUpdateStatus/farmer-bank-baustatus-rbk-report/farmer-bank-baustatus-rbk-report.component.ts | true | 200 | 2,067 | import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { SessionService } from 'src/app/shared/services/session.service';
import { ToasterService } from 'src/app/shared/services/toaster.service';
import { UtilsService } from 'src/app/shared/services/utils.ser... | 5 |
peijunlei/taro-start | c9a963c | src/pages/package-B/distribution/my-customer/actions/action.ts | TypeScript | www.github.com/peijunlei/taro-start/tree/main/src/pages/package-B/distribution/my-customer/actions/action.ts | https://raw.githubusercontent.com/peijunlei/taro-start/c9a963c/src/pages/package-B/distribution/my-customer/actions/action.ts | peijunlei/taro-start c9a963c src/pages/package-B/distribution/my-customer/actions/action.ts | true | 200 | 719 | import { Command } from '../constant';
import { Dispatch } from 'typings';
import { IAllReducerProps } from '../types';
import { getReducerData } from '@/redux/store';
import api from 'api';
import { extraPathsValue } from '@/redux/util';
export default (dispatch: Dispatch) => {
let action = {
commonChange(...pa... | 6 |
DulanDias/pdf-forge | a458185 | src/types/pdfOptions.ts | TypeScript | www.github.com/DulanDias/pdf-forge/tree/main/src/types/pdfOptions.ts | https://raw.githubusercontent.com/DulanDias/pdf-forge/a458185/src/types/pdfOptions.ts | DulanDias/pdf-forge a458185 src/types/pdfOptions.ts | true | 200 | 1,186 | import { WatermarkOptions } from '../types/watermarkOptions';
import puppeteer, { PDFOptions as PuppeteerPDFOptions, PaperFormat } from 'puppeteer';
/**
* Interface for configuring the options used to generate a PDF.
*/
export interface PDFOptions {
headerTemplate?: string; // Custom header HTML
footerTemplate?:... | 2 |
codeOfTheFuture/amazon-clone | 79bcc83 | pages/api/auth/[...nextauth].ts | TypeScript | www.github.com/codeOfTheFuture/amazon-clone/tree/main/pages/api/auth/[...nextauth].ts | https://raw.githubusercontent.com/codeOfTheFuture/amazon-clone/79bcc83/pages/api/auth/%5B...nextauth%5D.ts | codeOfTheFuture/amazon-clone 79bcc83 pages/api/auth/[...nextauth].ts | true | 200 | 678 | import NextAuth, { NextAuthOptions } from "next-auth";
import GoogleProvider from "next-auth/providers/google";
export const authOptions: NextAuthOptions = {
providers: [
GoogleProvider({
clientId: process.env.GOOGLE_CLIENT_ID!,
clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
}),
],
session: {
strategy... | 3 |
GenaVinokurov/reactjs-movies-homework | 98111af | src/store/reducers/Actor/ActorActions.ts | TypeScript | www.github.com/GenaVinokurov/reactjs-movies-homework/tree/main/src/store/reducers/Actor/ActorActions.ts | https://raw.githubusercontent.com/GenaVinokurov/reactjs-movies-homework/98111af/src/store/reducers/Actor/ActorActions.ts | GenaVinokurov/reactjs-movies-homework 98111af src/store/reducers/Actor/ActorActions.ts | true | 200 | 1,563 | import { createAsyncThunk } from '@reduxjs/toolkit';
import { AppDispatch } from '../../store';
import { TypeActorFilms, TypeActorImagesData } from '../../../components/types';
interface ActorAttributes {
id: number;
lang: string;
}
export const fetchActorData = createAsyncThunk('actor/fetchData', async (arg: Act... | 4 |
Bambara/admin-panel-taxime-debug | 6292734 | src/app/settings/vehicle-categories/vehicle-categories.component.ts | TypeScript | www.github.com/Bambara/admin-panel-taxime-debug/tree/main/src/app/settings/vehicle-categories/vehicle-categories.component.ts | https://raw.githubusercontent.com/Bambara/admin-panel-taxime-debug/6292734/src/app/settings/vehicle-categories/vehicle-categories.component.ts | Bambara/admin-panel-taxime-debug 6292734 src/app/settings/vehicle-categories/vehicle-categories.component.ts | true | 200 | 54,051 | import { Component, OnInit, ViewChild } from '@angular/core';
import { VehicleCategoryVM, PriceSelectionVM } from '../../shared/model/vehiclecategory';
import { SettingsService } from '../../shared/services/settings.service';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { Subject } from 'rxjs';
import ... | 0 |
freefrogs/explore_space | bfce615 | src/types/about.ts | TypeScript | www.github.com/freefrogs/explore_space/tree/main/src/types/about.ts | https://raw.githubusercontent.com/freefrogs/explore_space/bfce615/src/types/about.ts | freefrogs/explore_space bfce615 src/types/about.ts | true | 200 | 547 | interface Headquarters {
address: string;
city: string;
state: string;
}
export interface HistoryLinks {
website: string;
flickr: string;
twitter: string;
elon_twitter: string;
}
export interface CompanyInfo {
headquarters: Headquarters;
links: HistoryLinks;
name: string;
founder: string;
foun... | 7 |
cgersht/MCProject-client | 3526f7f | projects/services/src/lib/api/get--counselor.service.ts | TypeScript | www.github.com/cgersht/MCProject-client/tree/main/projects/services/src/lib/api/get--counselor.service.ts | https://raw.githubusercontent.com/cgersht/MCProject-client/3526f7f/projects/services/src/lib/api/get--counselor.service.ts | cgersht/MCProject-client 3526f7f projects/services/src/lib/api/get--counselor.service.ts | true | 200 | 1,473 | import { Injectable } from '@angular/core';
import { NEVER, Observable } from 'rxjs';
import { Cunselor, HttpRequestModel } from 'types';
import { HttpServiceBase } from './http-service.base';
@Injectable({ providedIn: 'root' })
export class GetCounselorService extends HttpServiceBase {
counselors$: Observable<Cun... | 5 |
bigmistqke/solid-three | feb7727 | src/core/events.ts | TypeScript | www.github.com/bigmistqke/solid-three/tree/main/src/core/events.ts | https://raw.githubusercontent.com/bigmistqke/solid-three/feb7727/src/core/events.ts | bigmistqke/solid-three feb7727 src/core/events.ts | true | 200 | 21,019 | import * as THREE from 'three'
import { getRootState } from './utils'
import type { RootState } from '../solid/store'
import type { Instance } from '../three-types'
import type { Camera } from './utils'
export interface Intersection extends THREE.Intersection {
/** The event source (the object which registered the... | 1 |
IsuruFerna/epicode-ultimo-BW-Front-end | 7ca1221 | src/redux/reducers/user.ts | TypeScript | www.github.com/IsuruFerna/epicode-ultimo-BW-Front-end/tree/main/src/redux/reducers/user.ts | https://raw.githubusercontent.com/IsuruFerna/epicode-ultimo-BW-Front-end/7ca1221/src/redux/reducers/user.ts | IsuruFerna/epicode-ultimo-BW-Front-end 7ca1221 src/redux/reducers/user.ts | true | 200 | 713 | import { SET_USER } from "../actions";
export type User = {
token: string;
id: string;
name: string;
role: string;
surname: string;
username: string;
};
type UserState = {
user: User;
};
type UserAction = {
type: typeof SET_USER;
payload: User;
};
const initialState: UserState = {
user... | 6 |
Cojanks/DRTest | 9aec4b0 | vite.config.ts | TypeScript | www.github.com/Cojanks/DRTest/tree/main/vite.config.ts | https://raw.githubusercontent.com/Cojanks/DRTest/9aec4b0/vite.config.ts | Cojanks/DRTest 9aec4b0 vite.config.ts | true | 200 | 343 | import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import { webfontDownload } from 'vite-plugin-webfont-dl';
export default defineConfig({
base: '/DRTest/',
plugins: [
react(),
webfontDownload([
'https://fonts.googleapis.com/css2?family=Inter:wght@400;600;900&display=s... | 2 |
yunushkhan7/Jamespower | 406bbb4 | src/app/modules/emails/emails.component.ts | TypeScript | www.github.com/yunushkhan7/Jamespower/tree/main/src/app/modules/emails/emails.component.ts | https://raw.githubusercontent.com/yunushkhan7/Jamespower/406bbb4/src/app/modules/emails/emails.component.ts | yunushkhan7/Jamespower 406bbb4 src/app/modules/emails/emails.component.ts | true | 200 | 11,683 |
import { Component, OnInit } from '@angular/core';
import { FormControl, FormGroupDirective, NgForm, Validators, FormGroup, FormBuilder } from '@angular/forms';
import { ErrorStateMatcher } from '@angular/material/core';
import { UserIdleService } from 'angular-user-idle';
import { NgxSpinnerService } from 'ngx-spinne... | 4 |
Portkey-AI/gateway | 9974686 | src/providers/openrouter/api.ts | TypeScript | www.github.com/Portkey-AI/gateway/tree/main/src/providers/openrouter/api.ts | https://raw.githubusercontent.com/Portkey-AI/gateway/9974686/src/providers/openrouter/api.ts | Portkey-AI/gateway 9974686 src/providers/openrouter/api.ts | true | 200 | 611 | import { POWERED_BY } from '../../globals';
import { ProviderAPIConfig } from '../types';
const OpenrouterAPIConfig: ProviderAPIConfig = {
getBaseURL: () => 'https://openrouter.ai/api',
headers: ({ providerOptions }) => {
return {
Authorization: `Bearer ${providerOptions.apiKey}`, // https://openrouter.a... | 3 |
christinadivya/multi-web | 70db700 | src/app/personal-information/personal-information.component.ts | TypeScript | www.github.com/christinadivya/multi-web/tree/main/src/app/personal-information/personal-information.component.ts | https://raw.githubusercontent.com/christinadivya/multi-web/70db700/src/app/personal-information/personal-information.component.ts | christinadivya/multi-web 70db700 src/app/personal-information/personal-information.component.ts | true | 200 | 43,128 | import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core';
import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal';
import { ImageCroppedEvent } from 'ngx-image-cropper';
import { RegisterService } from '../service/register.service';
import { ToastrService } from 'ngx-toastr';
import { debounce... | 0 |
fgsreally/alioth | 9abf933 | packages/preset-layout/src/relative/index.ts | TypeScript | www.github.com/fgsreally/alioth/tree/main/packages/preset-layout/src/relative/index.ts | https://raw.githubusercontent.com/fgsreally/alioth/9abf933/packages/preset-layout/src/relative/index.ts | fgsreally/alioth 9abf933 packages/preset-layout/src/relative/index.ts | true | 200 | 959 | import type { AliothRenderFn } from 'alioth-vue'
import component from './Container.vue'
import { Renderer } from './renderer'
export const engine: AliothRenderFn = {
alioth: 'setRenderFn',
data: {
mode: 'editor',
fn: ({ node, scope, widget }) => {
const renderer = new Renderer('edit', node, widget, ... | 7 |
MiguelR1/HeroesCRUD | 94ccfcd | src/app/heroes/heroes-routing.module.ts | TypeScript | www.github.com/MiguelR1/HeroesCRUD/tree/main/src/app/heroes/heroes-routing.module.ts | https://raw.githubusercontent.com/MiguelR1/HeroesCRUD/94ccfcd/src/app/heroes/heroes-routing.module.ts | MiguelR1/HeroesCRUD 94ccfcd src/app/heroes/heroes-routing.module.ts | true | 200 | 1,038 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ListComponent } from './pages/list/list.component';
import { NavComponent } from './pages/nav/nav.component';
import { HeroePageComponent } from './pages/heroe-page/heroe-page.component';
import { CrearHeroeCompon... | 5 |
ragaeeb/bitaboom | 43a959c | src/arabic.test.ts | TypeScript | www.github.com/ragaeeb/bitaboom/tree/main/src/arabic.test.ts | https://raw.githubusercontent.com/ragaeeb/bitaboom/43a959c/src/arabic.test.ts | ragaeeb/bitaboom 43a959c src/arabic.test.ts | true | 200 | 11,304 | import { describe, expect, it } from 'vitest';
import {
addSpaceBetweenArabicTextAndNumbers,
cleanExtremeArabicUnderscores,
convertUrduSymbolsToArabic,
fixTrailingWow,
normalizeAlifVariants,
removeNonIndexSignatures,
removeSingularCodes,
removeSolitaryArabicLetters,
removeTatwil,
... | 1 |
vaibhavpatil4507/Angular-Projects | d1fa3a6 | spaFirstApp/src/app/app.module.ts | TypeScript | www.github.com/vaibhavpatil4507/Angular-Projects/tree/main/spaFirstApp/src/app/app.module.ts | https://raw.githubusercontent.com/vaibhavpatil4507/Angular-Projects/d1fa3a6/spaFirstApp/src/app/app.module.ts | vaibhavpatil4507/Angular-Projects d1fa3a6 spaFirstApp/src/app/app.module.ts | true | 200 | 788 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
import { AboutComponent } from './about/about.component';
... | 6 |
sc30gsw/next-nest-todo-api | b6b1dfb | src/auth/auth.service.ts | TypeScript | www.github.com/sc30gsw/next-nest-todo-api/tree/main/src/auth/auth.service.ts | https://raw.githubusercontent.com/sc30gsw/next-nest-todo-api/b6b1dfb/src/auth/auth.service.ts | sc30gsw/next-nest-todo-api b6b1dfb src/auth/auth.service.ts | true | 200 | 1,575 | import { ForbiddenException, Inject, Injectable } from '@nestjs/common'
import type { User } from '@prisma/client'
import { Prisma } from '@prisma/client'
import * as bcrypt from 'bcrypt'
import { PrismaService } from '../prisma/prisma.service'
import type { AuthDto } from './dto/auth.dto'
@Injectable()
export class ... | 2 |
from-nibly/optd | ca91589 | api/src/resources/resources.controller.ts | TypeScript | www.github.com/from-nibly/optd/tree/main/api/src/resources/resources.controller.ts | https://raw.githubusercontent.com/from-nibly/optd/ca91589/api/src/resources/resources.controller.ts | from-nibly/optd ca91589 api/src/resources/resources.controller.ts | true | 200 | 2,785 | import {
Body,
ClassSerializerInterceptor,
Controller,
Get,
Logger,
Param,
Put,
Req,
UseInterceptors,
} from '@nestjs/common';
import { HooksService } from 'src/hooks/hooks.service';
import { ResourceService } from './resources.service';
import {
NamespacedCreateResourceAPIBody,
NamespacedResource... | 4 |
MohitSG96/nest-project | 2abc426 | src/modules/user/dto/get-user.dto.ts | TypeScript | www.github.com/MohitSG96/nest-project/tree/main/src/modules/user/dto/get-user.dto.ts | https://raw.githubusercontent.com/MohitSG96/nest-project/2abc426/src/modules/user/dto/get-user.dto.ts | MohitSG96/nest-project 2abc426 src/modules/user/dto/get-user.dto.ts | true | 200 | 1,162 | import { ApiProperty } from '@nestjs/swagger';
import {
IsEmail,
IsNumber,
IsOptional,
IsString,
MaxLength,
MinLength,
} from 'class-validator';
/**
* UserData to be returned
*/
export class GetUserDTO {
/**
* User's ID
*/
@IsNumber()
@IsOptional()
@ApiProperty({
example: 1,
descrip... | 3 |
sylx/altbot | fb7625d | bot/src/services/Transcription.ts | TypeScript | www.github.com/sylx/altbot/tree/main/bot/src/services/Transcription.ts | https://raw.githubusercontent.com/sylx/altbot/fb7625d/bot/src/services/Transcription.ts | sylx/altbot fb7625d bot/src/services/Transcription.ts | true | 200 | 9,105 | import * as grpc from "@grpc/grpc-js"
import { delay, inject } from "tsyringe"
import { GuildMember } from "discord.js"
import { TranscriptionClient } from "../../grpc/transcription_grpc_pb"
import {
KeywordSpottingConfigRequest,
TranscriptionAudioRequest,
TranscriptionCloseRequest,
TranscriptionConfigR... | 0 |
EnnyMJE/LocationTaxiAngularExam | e0d6176 | src/app/components/clients/clients.component.ts | TypeScript | www.github.com/EnnyMJE/LocationTaxiAngularExam/tree/main/src/app/components/clients/clients.component.ts | https://raw.githubusercontent.com/EnnyMJE/LocationTaxiAngularExam/e0d6176/src/app/components/clients/clients.component.ts | EnnyMJE/LocationTaxiAngularExam e0d6176 src/app/components/clients/clients.component.ts | true | 200 | 1,149 | import { Component, OnInit } from '@angular/core';
import {Client} from "../../entities/client.entities";
import {ClientsService} from "../../services/clients.service";
import {Router} from "@angular/router";
@Component({
selector: 'app-clients',
templateUrl: './clients.component.html',
styleUrls: ['./clients.co... | 5 |
Trongg2203/FE-TMDT | 5c4cb53 | src/app/Services/cart.service.ts | TypeScript | www.github.com/Trongg2203/FE-TMDT/tree/main/src/app/Services/cart.service.ts | https://raw.githubusercontent.com/Trongg2203/FE-TMDT/5c4cb53/src/app/Services/cart.service.ts | Trongg2203/FE-TMDT 5c4cb53 src/app/Services/cart.service.ts | true | 200 | 3,721 | import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
import { ICart, ProductCart } from '../interfaces/cart';
@Injectable({
providedIn: 'root',
})
export class CartService {
// theo doi cap nhat gtri trong cart
private cartItems: ICart[] = [];
private CartItemSubject = new Behavi... | 7 |
achrafaouad/material-dashboard-angular2-master | 6699f54 | src/app/icons/icons.component.ts | TypeScript | www.github.com/achrafaouad/material-dashboard-angular2-master/tree/main/src/app/icons/icons.component.ts | https://raw.githubusercontent.com/achrafaouad/material-dashboard-angular2-master/6699f54/src/app/icons/icons.component.ts | achrafaouad/material-dashboard-angular2-master 6699f54 src/app/icons/icons.component.ts | true | 200 | 30,451 | import { HttpErrorResponse } from '@angular/common/http';
import { Component, OnInit } from '@angular/core';
import { LrsServiceService } from 'app/lrs-service.service';
import { ColDef } from 'ag-grid-community';
import VectorSource from 'ol/source/Vector';
import olVectorLayer from "ol/layer/Vector";
import Style fro... | 1 |
HamzaRahiim/quiz_app | ba2d749 | src/lib/filterData.ts | TypeScript | www.github.com/HamzaRahiim/quiz_app/tree/main/src/lib/filterData.ts | https://raw.githubusercontent.com/HamzaRahiim/quiz_app/ba2d749/src/lib/filterData.ts | HamzaRahiim/quiz_app ba2d749 src/lib/filterData.ts | true | 200 | 546 | import { RootState } from "@/store/redux/store";
import quizData from "@/lib/questions.json";
import { QuizQuestion } from "@/app/types";
export const filterQuizData = (state: RootState): QuizQuestion[] => {
const { category, type, difficulty } = state.filter;
return quizData.filter((question) => {
return (
... | 6 |
ByDiamondHQ/diamond-cli | cb855e2 | src/commands/app/make.ts | TypeScript | www.github.com/ByDiamondHQ/diamond-cli/tree/main/src/commands/app/make.ts | https://raw.githubusercontent.com/ByDiamondHQ/diamond-cli/cb855e2/src/commands/app/make.ts | ByDiamondHQ/diamond-cli cb855e2 src/commands/app/make.ts | true | 200 | 1,176 | import { existsSync, mkdirSync, readFileSync } from 'fs-extra';
import { Command, Flags } from '@oclif/core';
import { exec } from "child_process";
import { promisify } from 'util';
import color from "@oclif/color";
import { join } from 'path';
const diamondrepo = 'https://github.com/ByDiamondHQ/diamond-express.git'
... | 0 |
Joniruiz/apisw | 3e54a4d | src/database/data-source.ts | TypeScript | www.github.com/Joniruiz/apisw/tree/main/src/database/data-source.ts | https://raw.githubusercontent.com/Joniruiz/apisw/3e54a4d/src/database/data-source.ts | Joniruiz/apisw 3e54a4d src/database/data-source.ts | true | 200 | 1,971 | import "reflect-metadata"
import { DataSource } from "typeorm"
import { Auth, People, Films, PeopleInFilms,} from "./entity/models"
const PATH = require("path")
function getDataSource(): DataSource {
switch (process.env.NODE_ENV) {
case "production":
console.log("Database established for produ... | 5 |
MateoZapata1804/btw-client | 883f7be | src/app/app-routing.module.ts | TypeScript | www.github.com/MateoZapata1804/btw-client/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/MateoZapata1804/btw-client/883f7be/src/app/app-routing.module.ts | MateoZapata1804/btw-client 883f7be src/app/app-routing.module.ts | true | 200 | 669 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { CreateUserComponent } from './pages/create-user/create-user.component';
import { IndexPageComponent } from './pages/index-page/index-page.component';
const routes: ... | 1 |
madhesh-maasi/EPCSubmitProject | ebd264e | src/webparts/submitCombineAdmin/components/ISubmitCombineAdminState.ts | TypeScript | www.github.com/madhesh-maasi/EPCSubmitProject/tree/main/src/webparts/submitCombineAdmin/components/ISubmitCombineAdminState.ts | https://raw.githubusercontent.com/madhesh-maasi/EPCSubmitProject/ebd264e/src/webparts/submitCombineAdmin/components/ISubmitCombineAdminState.ts | madhesh-maasi/EPCSubmitProject ebd264e src/webparts/submitCombineAdmin/components/ISubmitCombineAdminState.ts | true | 200 | 443 | import { IBaseInterface } from "../../../interfaces/IBaseInterface";
import { PEPI_CombineAdmin } from "../../../domain/models/PEPI_CombineAdmin";
import { Enums } from "../../../globals/Enums";
export interface ISubmitCombineAdminState extends IBaseInterface {
CombineAdmin: PEPI_CombineAdmin;
IsCreateMode:bo... | 7 |
JuanFarre/consultoriofinal | 5cbca10 | src/app/services/especialidad.service.ts | TypeScript | www.github.com/JuanFarre/consultoriofinal/tree/main/src/app/services/especialidad.service.ts | https://raw.githubusercontent.com/JuanFarre/consultoriofinal/5cbca10/src/app/services/especialidad.service.ts | JuanFarre/consultoriofinal 5cbca10 src/app/services/especialidad.service.ts | true | 200 | 1,927 | import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class EspecialidadService {
private apiUrl = 'http://localhost:4000/api'; // Adjust this URL as needed
constructor(private htt... | 6 |
Chirayu31/onyx | 4063d0f | src/utils/sendMail.ts | TypeScript | www.github.com/Chirayu31/onyx/tree/main/src/utils/sendMail.ts | https://raw.githubusercontent.com/Chirayu31/onyx/4063d0f/src/utils/sendMail.ts | Chirayu31/onyx 4063d0f src/utils/sendMail.ts | true | 200 | 826 | import nodemailer from 'nodemailer'
const transporter = nodemailer.createTransport({
service: 'gmail',
auth: {
user: process.env.NODEMAILER_EMAIL,
pass: process.env.NODEMAILER_PWD,
},
})
export const sendVerficationEmail = async (email: string, token: string) => {
const mailOptions = {
from: proce... | 0 |
InzTockz/ReporteEquiposFrontEnd | ab266a1 | src/app/components/gestion/historico-asignacion/historico-asignacion.component.ts | TypeScript | www.github.com/InzTockz/ReporteEquiposFrontEnd/tree/main/src/app/components/gestion/historico-asignacion/historico-asignacion.component.ts | https://raw.githubusercontent.com/InzTockz/ReporteEquiposFrontEnd/ab266a1/src/app/components/gestion/historico-asignacion/historico-asignacion.component.ts | InzTockz/ReporteEquiposFrontEnd ab266a1 src/app/components/gestion/historico-asignacion/historico-asignacion.component.ts | true | 200 | 3,457 | import { Component, NgModule, OnInit } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { NgSelectModule } from '@ng-select/ng-select';
import { HistoricoAsignacionService } from '../../../services/historico-asignacion.service';
import { HistoricoAsignacionListado } from '../../../models/histo... | 5 |
sacar/product-catalogue | 973976c | src/actions/thunk.ts | TypeScript | www.github.com/sacar/product-catalogue/tree/main/src/actions/thunk.ts | https://raw.githubusercontent.com/sacar/product-catalogue/973976c/src/actions/thunk.ts | sacar/product-catalogue 973976c src/actions/thunk.ts | true | 200 | 898 | // src/store/products/actions.ts
import axios from 'axios';
import { ThunkAction } from 'redux-thunk';
import { RootState } from '../store/store';
import { Product } from '../types/product';
import { addProduct } from './action';
export const addProductAsync = (
productData: Product
): ThunkAction<void, RootState, u... | 1 |
iamdkjha/tth-main | e0eb6e1 | models/User.models.ts | TypeScript | www.github.com/iamdkjha/tth-main/tree/main/models/User.models.ts | https://raw.githubusercontent.com/iamdkjha/tth-main/e0eb6e1/models/User.models.ts | iamdkjha/tth-main e0eb6e1 models/User.models.ts | true | 200 | 1,684 | import mongoose, { Schema, Document } from 'mongoose';
export interface User extends Document {
username: string;
fName: string;
lName:string,
email: string;
password: string;
isAdmin: boolean;
verifyCode: string;
verifyCodeExpiry: Date;
isVerified: boolean;
createdAt: Date;
... | 7 |
sizumita/utils.tools | f36ecf5 | tailwind.config.ts | TypeScript | www.github.com/sizumita/utils.tools/tree/main/tailwind.config.ts | https://raw.githubusercontent.com/sizumita/utils.tools/f36ecf5/tailwind.config.ts | sizumita/utils.tools f36ecf5 tailwind.config.ts | true | 200 | 2,063 | import forms from "@tailwindcss/forms";
import typography from "@tailwindcss/typography";
import { Config } from "tailwindcss";
import colors from "tailwindcss/colors";
import typographyStyles from "./typography";
export default {
content: ["./src/**/*.{js,ts,jsx,tsx,mdx}"],
darkMode: "selector",
theme: {
... | 6 |
tago-io/analysis-kickstarter | 1869b7f | src/services/device/remove.ts | TypeScript | www.github.com/tago-io/analysis-kickstarter/tree/main/src/services/device/remove.ts | https://raw.githubusercontent.com/tago-io/analysis-kickstarter/1869b7f/src/services/device/remove.ts | tago-io/analysis-kickstarter 1869b7f src/services/device/remove.ts | true | 200 | 2,072 | import { Resources } from "@tago-io/sdk";
import { DeviceListScope } from "@tago-io/sdk/lib/modules/Utils/router/router.types";
import { fetchDeviceList } from "../../lib/fetch-device-list";
import { RouterConstructorDevice } from "../../types";
/**
* Function that remove aggregation data from the organization
* @p... | 0 |
a-k-kord/react-blog | 6050925 | src/shared/lib/utils.ts | TypeScript | www.github.com/a-k-kord/react-blog/tree/main/src/shared/lib/utils.ts | https://raw.githubusercontent.com/a-k-kord/react-blog/6050925/src/shared/lib/utils.ts | a-k-kord/react-blog 6050925 src/shared/lib/utils.ts | true | 200 | 839 | const playElement = (
element: HTMLAudioElement,
callback?: () => void
): void => {
element
.play()
.then(() => {
if (callback) {
callback();
} else {
return true;
}
})
.catch((error) => {
console... | 5 |
booshja/stick-and-puck | 672a5cf | src/index.ts | TypeScript | www.github.com/booshja/stick-and-puck/tree/main/src/index.ts | https://raw.githubusercontent.com/booshja/stick-and-puck/672a5cf/src/index.ts | booshja/stick-and-puck 672a5cf src/index.ts | true | 200 | 1,730 | import {
createGoogleCalendarEvents,
getKciEvents,
getLiaEvents,
} from './utils';
import { getOvaEvents } from './utils/olympicviewArena';
async function krakenCommunityIceplex() {
try {
const kciEvents = await getKciEvents();
console.log('Creating events for KCI...');
await cr... | 1 |
vzhny/maple-dailies | b223592 | src/app/framework/table/table.component.ts | TypeScript | www.github.com/vzhny/maple-dailies/tree/main/src/app/framework/table/table.component.ts | https://raw.githubusercontent.com/vzhny/maple-dailies/b223592/src/app/framework/table/table.component.ts | vzhny/maple-dailies b223592 src/app/framework/table/table.component.ts | true | 200 | 1,368 | import { Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';
import { PageSize } from '../pagination/pagination.types';
import { TableColumn, TableData } from './table.types';
@Component({
selector: 'app-table',
templateUrl: './table.component.html',
})
export class TableComponent implements... | 7 |
push-based/code-pushup-design-system | b4b7eb4 | plugins/src/utils/src/lib/typescript/decorator-config.visitor.ts | TypeScript | www.github.com/push-based/code-pushup-design-system/tree/main/plugins/src/utils/src/lib/typescript/decorator-config.visitor.ts | https://raw.githubusercontent.com/push-based/code-pushup-design-system/b4b7eb4/plugins/src/utils/src/lib/typescript/decorator-config.visitor.ts | push-based/code-pushup-design-system b4b7eb4 plugins/src/utils/src/lib/typescript/decorator-config.visitor.ts | true | 200 | 5,757 | import { parseTemplate } from '@angular/compiler';
import * as path from 'node:path';
import * as ts from 'typescript';
import { ParsedComponent } from '../angular/types';
import { parseStylesheet } from '../styles/stylesheet.parse';
import { resolveFileCached } from '../utils/file.resolver';
import { visitAngularDec... | 6 |
crazylxr/climbing-rage | 4757c79 | src/speedManager.ts | TypeScript | www.github.com/crazylxr/climbing-rage/tree/main/src/speedManager.ts | https://raw.githubusercontent.com/crazylxr/climbing-rage/4757c79/src/speedManager.ts | crazylxr/climbing-rage 4757c79 src/speedManager.ts | true | 200 | 1,365 | import { StairManager } from "./stairManager";
/**
* @description 用于控制速度,每隔 10s,就加快一点速度
*/
const Interval = 10000;
export class SpeedManager {
private _speedFactor: number = 1;
private static _instance: SpeedManager;
private increaseSpeedInterval: number;
get speedFactor(): number {
return this._speedFactor;... | 0 |
Andino-Labs/yiqi-web | a5487af | src/schemas/linkedin.ts | TypeScript | www.github.com/Andino-Labs/yiqi-web/tree/main/src/schemas/linkedin.ts | https://raw.githubusercontent.com/Andino-Labs/yiqi-web/a5487af/src/schemas/linkedin.ts | Andino-Labs/yiqi-web a5487af src/schemas/linkedin.ts | true | 200 | 4,831 | import { z } from 'zod'
export const LinkedInProfileSchema = z.object({
id: z.string(),
firstName: z.object({
localized: z.record(z.string()),
preferredLocale: z.object({
country: z.string(),
language: z.string()
})
}),
lastName: z.object({
localized: z.record(z.string()),
prefe... | 5 |
jxg81/homebridge-actron-que | 30bc5f9 | src/fanOnlyMasterAccessory.ts | TypeScript | www.github.com/jxg81/homebridge-actron-que/tree/main/src/fanOnlyMasterAccessory.ts | https://raw.githubusercontent.com/jxg81/homebridge-actron-que/30bc5f9/src/fanOnlyMasterAccessory.ts | jxg81/homebridge-actron-que 30bc5f9 src/fanOnlyMasterAccessory.ts | true | 200 | 5,321 | import { Service, PlatformAccessory, CharacteristicValue, HAPStatus } from 'homebridge';
import { ClimateMode, FanMode, PowerState } from './types';
import { ActronQuePlatform } from './platform';
// This class represents the master controller
export class FanOnlyMasterAccessory {
private fanService: Service;
con... | 1 |
joseaugustoR/conectaMed | f5a875a | src/app/consult-user/consult-user.page.spec.ts | TypeScript | www.github.com/joseaugustoR/conectaMed/tree/main/src/app/consult-user/consult-user.page.spec.ts | https://raw.githubusercontent.com/joseaugustoR/conectaMed/f5a875a/src/app/consult-user/consult-user.page.spec.ts | joseaugustoR/conectaMed f5a875a src/app/consult-user/consult-user.page.spec.ts | true | 200 | 476 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ConsultUserPage } from './consult-user.page';
describe('ConsultUserPage', () => {
let component: ConsultUserPage;
let fixture: ComponentFixture<ConsultUserPage>;
beforeEach(() => {
fixture = TestBed.createComponent(ConsultUserPage);... | 7 |
asteneh/OMNI_0 | 8e6bc35 | chat-widget/src/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.test.ts | TypeScript | www.github.com/asteneh/OMNI_0/tree/main/chat-widget/src/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.test.ts | https://raw.githubusercontent.com/asteneh/OMNI_0/8e6bc35/chat-widget/src/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.test.ts | asteneh/OMNI_0 8e6bc35 chat-widget/src/components/webchatcontainerstateful/webchatcontroller/markdownrenderers/HyperlinkTextOverrideRenderer.test.ts | true | 200 | 1,486 | import "@testing-library/jest-dom/extend-expect";
import { act, cleanup } from "@testing-library/react";
import HyperlinkTextOverrideRenderer from "./HyperlinkTextOverrideRenderer";
describe("HyperlinkTextOverrideRenderer unit tests", () => {
afterEach(() => {
cleanup();
jest.resetAllMocks();
... | 6 |
Faysalrabby/Bookmark_Manager | 89dc7a7 | src/app/app.service.ts | TypeScript | www.github.com/Faysalrabby/Bookmark_Manager/tree/main/src/app/app.service.ts | https://raw.githubusercontent.com/Faysalrabby/Bookmark_Manager/89dc7a7/src/app/app.service.ts | Faysalrabby/Bookmark_Manager 89dc7a7 src/app/app.service.ts | true | 200 | 590 |
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Router } from '@angular/router';
import {map} from 'rxjs/operators'
@Injectable({
providedIn: 'root'
})
export class AppService {
constructor(private router: Router , private http: HttpClient) { }
saveData(d... | 0 |
rahul4019/InvDash | 352abc1 | server/src/middlewares/errorHandler.ts | TypeScript | www.github.com/rahul4019/InvDash/tree/main/server/src/middlewares/errorHandler.ts | https://raw.githubusercontent.com/rahul4019/InvDash/352abc1/server/src/middlewares/errorHandler.ts | rahul4019/InvDash 352abc1 server/src/middlewares/errorHandler.ts | true | 200 | 598 | import { Request, Response, NextFunction } from "express";
import { ApiResponse } from "../types/apiResponse";
import CustomError from "../utils/customError";
export const errorHandler = (
err: Error & { status?: number },
_: Request,
res: Response,
next: NextFunction,
): Response<ApiResponse> => {
console.e... | 5 |
Jenausmax/clock | a6f66d5 | electron/main.ts | TypeScript | www.github.com/Jenausmax/clock/tree/main/electron/main.ts | https://raw.githubusercontent.com/Jenausmax/clock/a6f66d5/electron/main.ts | Jenausmax/clock a6f66d5 electron/main.ts | true | 200 | 1,434 | import { app, BrowserWindow } from 'electron'
import path from 'node:path'
// The built directory structure
//
// ├─┬─┬ dist
// │ │ └── index.html
// │ │
// │ ├─┬ dist-electron
// │ │ ├── main.js
// │ │ └── preload.js
// │
process.env.DIST = path.join(__dirname, '../dist')
process.env.PUBLIC = app.isPackaged ? process... | 1 |
CCIDDIGGI/Store | aec6786 | src/app/pages/Homepage/services/homepage.service.spec.ts | TypeScript | www.github.com/CCIDDIGGI/Store/tree/main/src/app/pages/Homepage/services/homepage.service.spec.ts | https://raw.githubusercontent.com/CCIDDIGGI/Store/aec6786/src/app/pages/Homepage/services/homepage.service.spec.ts | CCIDDIGGI/Store aec6786 src/app/pages/Homepage/services/homepage.service.spec.ts | true | 200 | 499 | import { TestBed } from '@angular/core/testing';
import { HomepageService } from './homepage.service';
import { HttpClientModule } from '@angular/common/http';
describe('HomepageService', () => {
let service: HomepageService;
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HttpClientModul... | 7 |
felipelyra3/drivent-backend | 0275412 | src/config/database.ts | TypeScript | www.github.com/felipelyra3/drivent-backend/tree/main/src/config/database.ts | https://raw.githubusercontent.com/felipelyra3/drivent-backend/0275412/src/config/database.ts | felipelyra3/drivent-backend 0275412 src/config/database.ts | true | 200 | 505 | import { PrismaClient } from "@prisma/client";
import { RedisClientType, createClient } from "redis";
export let redis: RedisClientType;
export let prisma: PrismaClient;
export function connectDb(): void {
prisma = new PrismaClient();
}
export async function disconnectDB(): Promise<void> {
await prisma?.$disconn... | 6 |
jayceovaire/Daily-Practice | ab2b89b | FrontEnd Masters - Primagen Algorithms/Que.ts | TypeScript | www.github.com/jayceovaire/Daily-Practice/tree/main/FrontEnd Masters - Primagen Algorithms/Que.ts | https://raw.githubusercontent.com/jayceovaire/Daily-Practice/ab2b89b/FrontEnd%20Masters%20-%20Primagen%20Algorithms/Que.ts | jayceovaire/Daily-Practice ab2b89b FrontEnd Masters - Primagen Algorithms/Que.ts | true | 200 | 1,102 | // First in First out
// Last in Last out
// A > B > C > D
// Head >>>>> Tail
// to add have tail point to new. this.tail.next = E
// this.tail = E
// to pop Head is now pointed to B, remove link to current Head
// head = head.next
// head.next = null
type Node<T> = {
value: T,
next?: Node<T>,
}
export defaul... | 0 |
ManvelmManucharyan/ts_server-client_cli | d4a4f4e | server/src/index.ts | TypeScript | www.github.com/ManvelmManucharyan/ts_server-client_cli/tree/main/server/src/index.ts | https://raw.githubusercontent.com/ManvelmManucharyan/ts_server-client_cli/d4a4f4e/server/src/index.ts | ManvelmManucharyan/ts_server-client_cli d4a4f4e server/src/index.ts | true | 200 | 398 | import express from 'express';
import bodyParser from 'body-parser';
import cors from 'cors';
import router from "./routes/index";
import './db/index';
const app = express();
app.use(cors({ credentials: true }));
app.use(bodyParser.json());
app.use('/', router)
app.listen(process.env.PORT || 5000, () => {
consol... | 5 |
MohammedR06/Frontend-Task | 1c7398a | src/app/service/crud-order.service.ts | TypeScript | www.github.com/MohammedR06/Frontend-Task/tree/main/src/app/service/crud-order.service.ts | https://raw.githubusercontent.com/MohammedR06/Frontend-Task/1c7398a/src/app/service/crud-order.service.ts | MohammedR06/Frontend-Task 1c7398a src/app/service/crud-order.service.ts | true | 200 | 1,066 | import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root',
})
export class CrudOrderService {
constructor() {}
getallOrder() {
return JSON.parse(localStorage.getItem('order') || '[]');
}
addOrders(data: any) {
const allOrder = this.getallOrder();
if (allOrder.length == 0) {
... | 7 |
defi-js/defi-js.github.io | 15a5ae5 | src/positionsv1/index.ts | TypeScript | www.github.com/defi-js/defi-js.github.io/tree/main/src/positionsv1/index.ts | https://raw.githubusercontent.com/defi-js/defi-js.github.io/15a5ae5/src/positionsv1/index.ts | defi-js/defi-js.github.io 15a5ae5 src/positionsv1/index.ts | true | 200 | 1,527 | import { Pancakeswap } from "./Pancakeswap";
import { Loops } from "./Loops";
import { Revault } from "./Revault";
import { Unicly } from "./Unicly";
import { TokenBalances } from "./TokenBalances";
import { Uniswap } from "./Uniswap";
import { OffChain } from "./OffChain";
import { AlphaHomora } from "./AlphaHomora";
... | 1 |
qped-eu/mass | 7101527 | src/Controller/MASSHandler.ts | TypeScript | www.github.com/qped-eu/mass/tree/main/src/Controller/MASSHandler.ts | https://raw.githubusercontent.com/qped-eu/mass/7101527/src/Controller/MASSHandler.ts | qped-eu/mass 7101527 src/Controller/MASSHandler.ts | true | 200 | 5,615 | import MASS_Syntax from "../Model/MASS_Syntax";
import MASS_CheckerStyle from "../Model/MASS_CheckerStyle";
import MASS_CheckerSemantic from "../Model/MASS_CheckerSemantic";
import MASS_CheckerCoverage from "../Model/MASS_CheckerCoverage";
import MASS_CheckerClass from "../Model/MASS_CheckerClass";
import MASS_CheckerM... | 0 |
Minhlele/SpreadSheet-Application | 2ff9037 | implementation/spreadsheet-app/src/models/expressions/reference-expression.ts | TypeScript | www.github.com/Minhlele/SpreadSheet-Application/tree/main/implementation/spreadsheet-app/src/models/expressions/reference-expression.ts | https://raw.githubusercontent.com/Minhlele/SpreadSheet-Application/2ff9037/implementation/spreadsheet-app/src/models/expressions/reference-expression.ts | Minhlele/SpreadSheet-Application 2ff9037 implementation/spreadsheet-app/src/models/expressions/reference-expression.ts | true | 200 | 686 | import { ICell } from '../../interfaces/cell.interface';
import { IExpression } from '../../interfaces/expression.interface';
import { StringExpression } from './string-expression';
/**
* A reference expression type, which takes the form REF({Cell Position}})
*/
export class ReferenceExpression implements IExpressio... | 6 |
pranavTripathi02/sangeet-vue | c468db1 | tailwind.config.ts | TypeScript | www.github.com/pranavTripathi02/sangeet-vue/tree/main/tailwind.config.ts | https://raw.githubusercontent.com/pranavTripathi02/sangeet-vue/c468db1/tailwind.config.ts | pranavTripathi02/sangeet-vue c468db1 tailwind.config.ts | true | 200 | 935 | /** @type {import('tailwindcss').Config} */
export default {
content: ["./index.html", "./src/**/*.{html,vue,ts}"],
theme: {
fontSize: {
sm: "0.75rem",
base: "1rem",
lg: "1.312rem",
xl: "1.688rem",
"2xl": "2.250rem",
"3xl": "2.938rem",
},
extend: {
colors: {
... | 5 |
umarkovic/PastExamsHub_API | ec61ea2 | src/Core/WebUI/projects/core-ui/src/app/shell/shell.module.ts | TypeScript | www.github.com/umarkovic/PastExamsHub_API/tree/main/src/Core/WebUI/projects/core-ui/src/app/shell/shell.module.ts | https://raw.githubusercontent.com/umarkovic/PastExamsHub_API/ec61ea2/src/Core/WebUI/projects/core-ui/src/app/shell/shell.module.ts | umarkovic/PastExamsHub_API ec61ea2 src/Core/WebUI/projects/core-ui/src/app/shell/shell.module.ts | true | 200 | 636 | import { CommonModule } from '@angular/common';
import { MatToolbarModule } from '@angular/material/toolbar';
import { ShellComponent } from './shell/shell.component';
import { MatIconModule } from '@angular/material/icon';
import { MatButtonModule } from '@angular/material/button';
import { NgModule } from '@angular/c... | 7 |
deangilmoreremix/interactive-shopping-landing | 0754523 | src/apps/VirtualTryOn/hooks/useSizeEstimation.ts | TypeScript | www.github.com/deangilmoreremix/interactive-shopping-landing/tree/main/src/apps/VirtualTryOn/hooks/useSizeEstimation.ts | https://raw.githubusercontent.com/deangilmoreremix/interactive-shopping-landing/0754523/src/apps/VirtualTryOn/hooks/useSizeEstimation.ts | deangilmoreremix/interactive-shopping-landing 0754523 src/apps/VirtualTryOn/hooks/useSizeEstimation.ts | true | 200 | 2,187 | import { useState, useCallback } from 'react';
import * as poseDetection from '@tensorflow-models/pose-detection';
import '@mediapipe/pose';
export function useSizeEstimation() {
const [measurements, setMeasurements] = useState<any>(null);
const [loading, setLoading] = useState(false);
const estimateSize = useC... | 1 |
Sunghan-Park/node-02-test | caed32e | src/modules/auth-google/auth-google.module.ts | TypeScript | www.github.com/Sunghan-Park/node-02-test/tree/main/src/modules/auth-google/auth-google.module.ts | https://raw.githubusercontent.com/Sunghan-Park/node-02-test/caed32e/src/modules/auth-google/auth-google.module.ts | Sunghan-Park/node-02-test caed32e src/modules/auth-google/auth-google.module.ts | true | 200 | 789 | import googleConfig from '../../config/google/google.config';
import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { AuthGoogleService } from './auth-google.service';
import { AuthGoogleStrategy } from './auth-google.strategy';
import { UsersModule } from '../users/users.module... | 0 |
NWYLZW/awaitabler | dbdc012 | src/await-auto-box.ts | TypeScript | www.github.com/NWYLZW/awaitabler/tree/main/src/await-auto-box.ts | https://raw.githubusercontent.com/NWYLZW/awaitabler/dbdc012/src/await-auto-box.ts | NWYLZW/awaitabler dbdc012 src/await-auto-box.ts | true | 200 | 7,010 | import type { PluginObj, types } from '@babel/core'
import type { SpreadElement, Expression, SequenceExpression } from '@babel/types'
import { declare } from '@babel/helper-plugin-utils'
function getIdentifierName(expr: Expression) {
return {
ArrayExpression: 'all',
SequenceExpression: 'allSettled'
}[expr.... | 6 |
Ranaco/trimail | df7338a | client/lib/createEmotionCache.ts | TypeScript | www.github.com/Ranaco/trimail/tree/main/client/lib/createEmotionCache.ts | https://raw.githubusercontent.com/Ranaco/trimail/df7338a/client/lib/createEmotionCache.ts | Ranaco/trimail df7338a client/lib/createEmotionCache.ts | true | 200 | 485 | import createCache from "@emotion/cache";
const isBrowser = typeof document !== "undefined";
const createEmotionCache = () => {
let insertionPoint: HTMLMetaElement | undefined;
if (isBrowser) {
const cacheInsertionPoint = document.querySelector<HTMLMetaElement>(
'meta[name="emotion-insertion-point"]'
... | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.