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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
adarshram/infrequent-reminders | 8360d9f | api/src/utils/dateManipulators.ts | TypeScript | www.github.com/adarshram/infrequent-reminders/tree/main/api/src/utils/dateManipulators.ts | https://raw.githubusercontent.com/adarshram/infrequent-reminders/8360d9f/api/src/utils/dateManipulators.ts | adarshram/infrequent-reminders 8360d9f api/src/utils/dateManipulators.ts | true | 200 | 3,335 | import {
format,
differenceInCalendarDays,
addWeeks,
addMonths,
addDays,
setDate,
lastDayOfMonth,
addYears,
} from 'date-fns';
interface DateReturn {
date: Date;
days: number;
shouldReset?: boolean;
}
export const calculateSnoozeDate = (
inputDate: Date,
frequency: number,
frequencyType: st... | 2 |
sebastian-mcpe/fixit-mobile | 997a73b | utils/token.ts | TypeScript | www.github.com/sebastian-mcpe/fixit-mobile/tree/main/utils/token.ts | https://raw.githubusercontent.com/sebastian-mcpe/fixit-mobile/997a73b/utils/token.ts | sebastian-mcpe/fixit-mobile 997a73b utils/token.ts | true | 200 | 748 | import * as SecureStore from "expo-secure-store";
import { jwtDecode } from "jwt-decode";
export const getUserID = () => {
const token = SecureStore.getItem("session");
if (!token) {
throw Error;
}
const tokenDecoded = jwtDecode(token) as { [key: string]: any };
const userId =
tokenDecoded[
"h... | 0 |
hbyunzai/yelon | 4c32e6f | packages/auth/src/store/session-storage.service.spec.ts | TypeScript | www.github.com/hbyunzai/yelon/tree/main/packages/auth/src/store/session-storage.service.spec.ts | https://raw.githubusercontent.com/hbyunzai/yelon/4c32e6f/packages/auth/src/store/session-storage.service.spec.ts | hbyunzai/yelon 4c32e6f packages/auth/src/store/session-storage.service.spec.ts | true | 200 | 1,735 | import { SessionStorageStore } from './session-storage.service';
import { ITokenModel } from '../token/interface';
describe('auth: session-storage', () => {
const store = new SessionStorageStore();
const KEY = 'access_token';
const VALUE: ITokenModel = {
access_token: 'token data'
} as ITokenModel;
befo... | 6 |
iqbalrahman900/aem | e456136 | src/app/component/dashboard/dashboard.component.ts | TypeScript | www.github.com/iqbalrahman900/aem/tree/main/src/app/component/dashboard/dashboard.component.ts | https://raw.githubusercontent.com/iqbalrahman900/aem/e456136/src/app/component/dashboard/dashboard.component.ts | iqbalrahman900/aem e456136 src/app/component/dashboard/dashboard.component.ts | true | 200 | 773 | // dashboard.component.ts
import { Component, OnInit } from '@angular/core';
import { AuthService } from '../../services/auth.service';
@Component({
selector: 'app-dashboard',
templateUrl: './dashboard.component.html',
styleUrls: ['./dashboard.component.scss']
})
export class DashboardComponent implements OnInit... | 5 |
00013985/event-manager-client | bdd2fb4 | src/app/Event/details/details.component.ts | TypeScript | www.github.com/00013985/event-manager-client/tree/main/src/app/Event/details/details.component.ts | https://raw.githubusercontent.com/00013985/event-manager-client/bdd2fb4/src/app/Event/details/details.component.ts | 00013985/event-manager-client bdd2fb4 src/app/Event/details/details.component.ts | true | 200 | 939 | import { Component, inject } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { MatChipsModule } from '@angular/material/chips';
import { MatCardModule } from '@angular/material/card';
import { IEvent } from '../../IEvent';
import { EventAPIService } from '../../api/event-api.service';
@C... | 3 |
Ashik-ch/CityDiner | 43d6d86 | CityDiner-Frontend/src/app/omponents/page/restaurant/restaurant.component.ts | TypeScript | www.github.com/Ashik-ch/CityDiner/tree/main/CityDiner-Frontend/src/app/omponents/page/restaurant/restaurant.component.ts | https://raw.githubusercontent.com/Ashik-ch/CityDiner/43d6d86/CityDiner-Frontend/src/app/omponents/page/restaurant/restaurant.component.ts | Ashik-ch/CityDiner 43d6d86 CityDiner-Frontend/src/app/omponents/page/restaurant/restaurant.component.ts | true | 200 | 1,554 | import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { RestaurantService } from 'src/app/service/restaurant.service';
import { IRestaurant } from 'src/app/shared/models/Interface';
@Component({
selector: 'app-restaurant',
templateUrl: './restaurant.component.html',
... | 4 |
Shampinon/raketech | ef7343e | frontend/src/services/api/entities/movie.type.ts | TypeScript | www.github.com/Shampinon/raketech/tree/main/frontend/src/services/api/entities/movie.type.ts | https://raw.githubusercontent.com/Shampinon/raketech/ef7343e/frontend/src/services/api/entities/movie.type.ts | Shampinon/raketech ef7343e frontend/src/services/api/entities/movie.type.ts | true | 200 | 843 | export type MovieRating = {
Source: string;
Value: string;
}
export type Movie = {
'imdbID': string,
'Title': string;
'Year': string
'Rated': string
'Released': Date
'DVD': Date,
'Runtime': string
'Genre': string
'Director': string
'Writer': string
'Actors': string
... | 7 |
Chikavi1/radi-business | 74bc91a | src/app/list-vaccines/list-vaccines.module.ts | TypeScript | www.github.com/Chikavi1/radi-business/tree/main/src/app/list-vaccines/list-vaccines.module.ts | https://raw.githubusercontent.com/Chikavi1/radi-business/74bc91a/src/app/list-vaccines/list-vaccines.module.ts | Chikavi1/radi-business 74bc91a src/app/list-vaccines/list-vaccines.module.ts | true | 200 | 516 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { ListVaccinesPageRoutingModule } from './list-vaccines-routing.module';
import { ListVaccinesPage } from './list-vaccines.page'... | 2 |
fumzy/clips | 5a85014 | src/app/services/auth.service.ts | TypeScript | www.github.com/fumzy/clips/tree/main/src/app/services/auth.service.ts | https://raw.githubusercontent.com/fumzy/clips/5a85014/src/app/services/auth.service.ts | fumzy/clips 5a85014 src/app/services/auth.service.ts | true | 200 | 2,090 | import { Injectable } from '@angular/core';
import { AngularFireAuth } from '@angular/fire/compat/auth';
import { AngularFirestore, AngularFirestoreCollection } from '@angular/fire/compat/firestore';
import { Observable, of } from 'rxjs';
import IUser from '../models/user.model';
import { delay, map, filter, switchMap ... | 6 |
thesandboxgame/sandbox-smart-contracts | 79433cb | packages/marketplace/test/RoyaltiesRegistry.test.ts | TypeScript | www.github.com/thesandboxgame/sandbox-smart-contracts/tree/main/packages/marketplace/test/RoyaltiesRegistry.test.ts | https://raw.githubusercontent.com/thesandboxgame/sandbox-smart-contracts/79433cb/packages/marketplace/test/RoyaltiesRegistry.test.ts | thesandboxgame/sandbox-smart-contracts 79433cb packages/marketplace/test/RoyaltiesRegistry.test.ts | true | 200 | 12,504 | import {deployFixturesWithoutWhitelist} from './fixtures';
import {loadFixture} from '@nomicfoundation/hardhat-network-helpers';
import {expect} from 'chai';
import {ZeroAddress, Contract, Signer} from 'ethers';
import {upgrades} from 'hardhat';
describe('RoyaltiesRegistry.sol', function () {
let RoyaltiesRegistryAs... | 5 |
virtualcitySYSTEMS/map-core | 3008234 | src/util/editor/transformation/create2DHandlers.ts | TypeScript | www.github.com/virtualcitySYSTEMS/map-core/tree/main/src/util/editor/transformation/create2DHandlers.ts | https://raw.githubusercontent.com/virtualcitySYSTEMS/map-core/3008234/src/util/editor/transformation/create2DHandlers.ts | virtualcitySYSTEMS/map-core 3008234 src/util/editor/transformation/create2DHandlers.ts | true | 200 | 10,629 | import type { Coordinate } from 'ol/coordinate.js';
import type { Extent } from 'ol/extent.js';
import type { Geometry } from 'ol/geom.js';
import { Feature } from 'ol';
import { Circle, LineString, Point, Polygon } from 'ol/geom.js';
import { Fill, Icon, Stroke, Style } from 'ol/style.js';
import { Color } from '@vcma... | 0 |
lucsbasto/alumni | 70ecc28 | src/address/address.service.ts | TypeScript | www.github.com/lucsbasto/alumni/tree/main/src/address/address.service.ts | https://raw.githubusercontent.com/lucsbasto/alumni/70ecc28/src/address/address.service.ts | lucsbasto/alumni 70ecc28 src/address/address.service.ts | true | 200 | 1,406 | import { Injectable } from '@nestjs/common'
import { NotFoundException } from '@nestjs/common/exceptions'
import { CityRepository } from '~/city/city.repository'
import { AddressRepository } from './address.repository'
import { CreateAddressInput } from './dto/create-address.input'
import { UpdateAddressInput } from '.... | 3 |
nathanoliveira23/weather-app | 332f23f | src/styles/global.ts | TypeScript | www.github.com/nathanoliveira23/weather-app/tree/main/src/styles/global.ts | https://raw.githubusercontent.com/nathanoliveira23/weather-app/332f23f/src/styles/global.ts | nathanoliveira23/weather-app 332f23f src/styles/global.ts | true | 200 | 456 | import { createGlobalStyle } from 'styled-components';
export const GlobalStyle = createGlobalStyle`
:root {
--background: #100E1D;
--secundaryColor: #1E213A;
--text-primary-color: #E7E7EB;
--text-secundary-color: #88869D;
}
*{
margin: 0;
padding: 0;
... | 4 |
camilonull/regom | 8146046 | src/app/pages/work-message/work-message.component.spec.ts | TypeScript | www.github.com/camilonull/regom/tree/main/src/app/pages/work-message/work-message.component.spec.ts | https://raw.githubusercontent.com/camilonull/regom/8146046/src/app/pages/work-message/work-message.component.spec.ts | camilonull/regom 8146046 src/app/pages/work-message/work-message.component.spec.ts | true | 200 | 637 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { WorkMessageComponent } from './work-message.component';
describe('WorkMessageComponent', () => {
let component: WorkMessageComponent;
let fixture: ComponentFixture<WorkMessageComponent>;
beforeEach(async () => {
await TestBed.confi... | 1 |
rendaardy/forum-api | de2a7d5 | src/domains/authentications/entities/_test/new-auth.test.ts | TypeScript | www.github.com/rendaardy/forum-api/tree/main/src/domains/authentications/entities/_test/new-auth.test.ts | https://raw.githubusercontent.com/rendaardy/forum-api/de2a7d5/src/domains/authentications/entities/_test/new-auth.test.ts | rendaardy/forum-api de2a7d5 src/domains/authentications/entities/_test/new-auth.test.ts | true | 200 | 979 | import {describe, it, expect} from '@jest/globals';
import {NewAuth} from '../new-auth.ts';
describe('NewAuth entity', () => {
it('should throw an error when the payload doesn\'t meet the required properties', () => {
const payload = {
accessToken: 'accessToken',
};
expect(() => new NewAuth(payload)).toThr... | 7 |
sanju-presidio/build | 241e32c | dist/interfaces/app.interface.d.ts | TypeScript | www.github.com/sanju-presidio/build/tree/main/dist/interfaces/app.interface.d.ts | https://raw.githubusercontent.com/sanju-presidio/build/241e32c/dist/interfaces/app.interface.d.ts | sanju-presidio/build 241e32c dist/interfaces/app.interface.d.ts | true | 200 | 1,150 | import { ActionType } from "./app.enum";
export interface IClickableElement {
type: string;
tagName: string;
text?: string;
placeholder?: string;
coordinate: {
x: number;
y: number;
};
attributes: {
[key in string]: string;
};
isVisibleInCurrentViewPort: boole... | 2 |
harichandhanabandaru/Cellino | 9422644 | CELLINO/aims-run-mgmt-svc-main/src/migrations/1666805402157-Migration.ts | TypeScript | www.github.com/harichandhanabandaru/Cellino/tree/main/CELLINO/aims-run-mgmt-svc-main/src/migrations/1666805402157-Migration.ts | https://raw.githubusercontent.com/harichandhanabandaru/Cellino/9422644/CELLINO/aims-run-mgmt-svc-main/src/migrations/1666805402157-Migration.ts | harichandhanabandaru/Cellino 9422644 CELLINO/aims-run-mgmt-svc-main/src/migrations/1666805402157-Migration.ts | true | 200 | 3,745 | import { MigrationInterface, QueryRunner } from "typeorm";
export class Migration1666805402157 implements MigrationInterface {
name = 'Migration1666805402157'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
CREATE TABLE "biosero_order_status" (
... | 5 |
JuanHerreraSalcedo/parcial3web | 1e436da | libreria/src/app/components/listar-libros/listar-libros.component.ts | TypeScript | www.github.com/JuanHerreraSalcedo/parcial3web/tree/main/libreria/src/app/components/listar-libros/listar-libros.component.ts | https://raw.githubusercontent.com/JuanHerreraSalcedo/parcial3web/1e436da/libreria/src/app/components/listar-libros/listar-libros.component.ts | JuanHerreraSalcedo/parcial3web 1e436da libreria/src/app/components/listar-libros/listar-libros.component.ts | true | 200 | 1,696 | import { Component, OnInit } from '@angular/core';
import { libro } from 'src/app/models/libro';
import { LibroService } from 'src/app/services/libro.service';
import Swal from 'sweetalert2';
@Component({
selector: 'app-listar-libros',
templateUrl: './listar-libros.component.html',
styleUrls: ['./listar-libros.c... | 6 |
awsfundamentals-hq/apigw-websockets | f14ee4f | functions/cron.ts | TypeScript | www.github.com/awsfundamentals-hq/apigw-websockets/tree/main/functions/cron.ts | https://raw.githubusercontent.com/awsfundamentals-hq/apigw-websockets/f14ee4f/functions/cron.ts | awsfundamentals-hq/apigw-websockets f14ee4f functions/cron.ts | true | 200 | 1,730 | import { ApiGatewayManagementApi, DynamoDB } from 'aws-sdk';
import { Resource } from 'sst';
const dynamoDB = new DynamoDB.DocumentClient();
const api = new ApiGatewayManagementApi({
endpoint: process.env.WEBSOCKET_URL,
});
export async function handler() {
try {
const connections = await loadConnections();
... | 0 |
time-river/recv | 9e8ff99 | test/utils.ts | TypeScript | www.github.com/time-river/recv/tree/main/test/utils.ts | https://raw.githubusercontent.com/time-river/recv/9e8ff99/test/utils.ts | time-river/recv 9e8ff99 test/utils.ts | true | 200 | 702 | import { encodeAbiParameters, encodePacked, getContractAddress, keccak256, parseAbiParameters } from "viem";
import artifacts from "../artifacts/contracts/Wallet.sol/Wallet.json";
export function predictWalletAddress(
from: `0x${string}`, arg: `0x${string}`, salt: `0x${string}`
): `0x${string}` {
const byteCode =... | 3 |
ahmadaldeen/rahal | eed928d | src/places/place.entity.ts | TypeScript | www.github.com/ahmadaldeen/rahal/tree/main/src/places/place.entity.ts | https://raw.githubusercontent.com/ahmadaldeen/rahal/eed928d/src/places/place.entity.ts | ahmadaldeen/rahal eed928d src/places/place.entity.ts | true | 200 | 2,544 | import { City } from "src/cities/city.entity";
import { Interest } from "src/interests/interest.entity";
import { Membership } from "src/memberships/membership.entity";
import { Reservation } from "src/reservation/reservation.entity";
import { ReservationType } from "src/reservationـtype/reservationـtype.entity";
impor... | 4 |
HealthyFryOption/RogueNFT | bf5c71c | frontEnd/src/app/lib/error_related/clientErrorHandler.ts | TypeScript | www.github.com/HealthyFryOption/RogueNFT/tree/main/frontEnd/src/app/lib/error_related/clientErrorHandler.ts | https://raw.githubusercontent.com/HealthyFryOption/RogueNFT/bf5c71c/frontEnd/src/app/lib/error_related/clientErrorHandler.ts | HealthyFryOption/RogueNFT bf5c71c frontEnd/src/app/lib/error_related/clientErrorHandler.ts | true | 200 | 483 | export function clientErrorHandlerWrapper<T>(
asyncFunction: () => Promise<T | null>,
setErrorMessage: (message: string | null) => void
): () => Promise<T | null> {
return async () => {
try {
return await asyncFunction();
} catch (error) {
console.log(error)
setErrorMes... | 1 |
nk18chi/lerna-mern-stack-boilerplate | 9526f0d | packages/backend/src/article/entities/article.entity.ts | TypeScript | www.github.com/nk18chi/lerna-mern-stack-boilerplate/tree/main/packages/backend/src/article/entities/article.entity.ts | https://raw.githubusercontent.com/nk18chi/lerna-mern-stack-boilerplate/9526f0d/packages/backend/src/article/entities/article.entity.ts | nk18chi/lerna-mern-stack-boilerplate 9526f0d packages/backend/src/article/entities/article.entity.ts | true | 200 | 788 | import { ObjectType, Field, ID } from '@nestjs/graphql';
import { Author } from '../../author/entities/author.entity';
@ObjectType()
export class Article {
@Field(() => ID, { description: 'The id of the article' })
id: string;
@Field(() => String, { description: 'The title of the article' })
title: string;
... | 7 |
LucasFernandez11/Student-app-admin | ecd5e0a | src/app/features/alumnos/alumnos.module.ts | TypeScript | www.github.com/LucasFernandez11/Student-app-admin/tree/main/src/app/features/alumnos/alumnos.module.ts | https://raw.githubusercontent.com/LucasFernandez11/Student-app-admin/ecd5e0a/src/app/features/alumnos/alumnos.module.ts | LucasFernandez11/Student-app-admin ecd5e0a src/app/features/alumnos/alumnos.module.ts | true | 200 | 1,886 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { DashboardAlumnosComponent } from './components/dashboard-alumnos/dashboard-alumnos.component';
import { AlumnosRoutingModule } from './alumnos-routing.module';
import { EditarAlumnoComponent } from './components/dialog/e... | 5 |
cuikiri/hunter | c1ec184 | src/main/webapp/app/entities/matricula/doenca/update/doenca-update.component.ts | TypeScript | www.github.com/cuikiri/hunter/tree/main/src/main/webapp/app/entities/matricula/doenca/update/doenca-update.component.ts | https://raw.githubusercontent.com/cuikiri/hunter/c1ec184/src/main/webapp/app/entities/matricula/doenca/update/doenca-update.component.ts | cuikiri/hunter c1ec184 src/main/webapp/app/entities/matricula/doenca/update/doenca-update.component.ts | true | 200 | 2,586 | import { Component, OnInit } from '@angular/core';
import { HttpResponse } from '@angular/common/http';
import { FormBuilder, Validators } from '@angular/forms';
import { ActivatedRoute } from '@angular/router';
import { Observable } from 'rxjs';
import { finalize } from 'rxjs/operators';
import { IDoenca, Doenca } fr... | 2 |
DavidGithubAcc/MoneyMate | acc0ca5 | App Code/src/app/tab5/tab5.page.ts | TypeScript | www.github.com/DavidGithubAcc/MoneyMate/tree/main/App Code/src/app/tab5/tab5.page.ts | https://raw.githubusercontent.com/DavidGithubAcc/MoneyMate/acc0ca5/App%20Code/src/app/tab5/tab5.page.ts | DavidGithubAcc/MoneyMate acc0ca5 App Code/src/app/tab5/tab5.page.ts | true | 200 | 13,779 | import { Component } from '@angular/core';
import { IonicModule } from '@ionic/angular';
import { ExploreContainerComponent } from '../explore-container/explore-container.component';
import { ViewChild } from '@angular/core';
import { IonModal } from '@ionic/angular';
import { OverlayEventDetail } from '@ionic/core/co... | 0 |
HTHoussam/ecosite | 852429d | types/next.auth.d.ts | TypeScript | www.github.com/HTHoussam/ecosite/tree/main/types/next.auth.d.ts | https://raw.githubusercontent.com/HTHoussam/ecosite/852429d/types/next.auth.d.ts | HTHoussam/ecosite 852429d types/next.auth.d.ts | true | 200 | 650 | /* eslint-disable no-unused-vars */
import { DefaultSession } from 'next-auth'
declare module 'next-auth' {
/**
* Returned by `useSession`, `getSession` and received as a prop on the `SessionProvider` React Context
*/
interface User {
id: string
name?: string | null
email?: string | null
image?: string ... | 3 |
cronon/yt-kingdom | 93b1a50 | app/src/common/timeUtils/durationPercent.ts | TypeScript | www.github.com/cronon/yt-kingdom/tree/main/app/src/common/timeUtils/durationPercent.ts | https://raw.githubusercontent.com/cronon/yt-kingdom/93b1a50/app/src/common/timeUtils/durationPercent.ts | cronon/yt-kingdom 93b1a50 app/src/common/timeUtils/durationPercent.ts | true | 200 | 528 | import { LongTime } from "common/song";
/**
* fraction/total
* both in hh:mm:ss format
*/
export function durationPercent(fraction: LongTime, total: LongTime) {
const fractionSeconds = longTimeToSeconds(fraction)
const totalSeconds = longTimeToSeconds(total)
if (totalSeconds === 0) {
return 0
} else {
... | 6 |
memo28-space-cmd/memo28.cmd | b5b3125 | packages/uniConfigurationParsing/src/features/parsingConfiguration/app/distribute/permissions.ts | TypeScript | www.github.com/memo28-space-cmd/memo28.cmd/tree/main/packages/uniConfigurationParsing/src/features/parsingConfiguration/app/distribute/permissions.ts | https://raw.githubusercontent.com/memo28-space-cmd/memo28.cmd/b5b3125/packages/uniConfigurationParsing/src/features/parsingConfiguration/app/distribute/permissions.ts | memo28-space-cmd/memo28.cmd b5b3125 packages/uniConfigurationParsing/src/features/parsingConfiguration/app/distribute/permissions.ts | true | 200 | 706 | /*
* @Author: @memo28.repo
* @Date: 2023-12-22 15:55:25
* @LastEditTime: 2023-12-24 21:36:19
* @Description:
* @FilePath: /cmdRepo/packages/uniConfigurationParsing/src/features/parsingConfiguration/app/distribute/permissions.ts
*/
import { androidDefaultPermissions } from '../../../configuration/app/distribute/i... | 4 |
klvinbagoly/vizsgaremek | b977b05 | frontend/src/app/pages/album/album.component.ts | TypeScript | www.github.com/klvinbagoly/vizsgaremek/tree/main/frontend/src/app/pages/album/album.component.ts | https://raw.githubusercontent.com/klvinbagoly/vizsgaremek/b977b05/frontend/src/app/pages/album/album.component.ts | klvinbagoly/vizsgaremek b977b05 frontend/src/app/pages/album/album.component.ts | true | 200 | 4,451 | import { Component, OnInit } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { ActivatedRoute } from '@angular/router';
import { ConfirmDeleteComponent } from 'src/app/common/confirm-delete/confirm-delete.component';
import { AlbumEditorComponent } from 'src/app/form-dialog/form/album... | 1 |
Ionaru/deals | 5a84fe1 | modules/scrapers/jumbo/src/main.ts | TypeScript | www.github.com/Ionaru/deals/tree/main/modules/scrapers/jumbo/src/main.ts | https://raw.githubusercontent.com/Ionaru/deals/5a84fe1/modules/scrapers/jumbo/src/main.ts | Ionaru/deals 5a84fe1 modules/scrapers/jumbo/src/main.ts | true | 200 | 623 | import { natsOptions } from "@deals/api";
import { ScraperServiceModule } from "@deals/scraper-service";
import { Logger } from "@nestjs/common";
import { NestFactory } from "@nestjs/core";
import { MicroserviceOptions } from "@nestjs/microservices";
import { Jumbo } from "./jumbo";
const bootstrap = async () => {
... | 7 |
bhaireshm/ez.js | 9209c7d | src/tests/toPromise.test.ts | TypeScript | www.github.com/bhaireshm/ez.js/tree/main/src/tests/toPromise.test.ts | https://raw.githubusercontent.com/bhaireshm/ez.js/9209c7d/src/tests/toPromise.test.ts | bhaireshm/ez.js 9209c7d src/tests/toPromise.test.ts | true | 200 | 1,218 | import { toPromise } from "../";
describe("toPromise", () => {
it("should resolve the promise with the result when the callback is called with no error", async () => {
const callbackFn = (
arg1: string,
arg2: number,
callback: (err: any, result: string) => void,
) => {
callback(null, ... | 5 |
roketag33/CyberTools | 6da0295 | src/modules/portScanner/services/portScannerService.ts | TypeScript | www.github.com/roketag33/CyberTools/tree/main/src/modules/portScanner/services/portScannerService.ts | https://raw.githubusercontent.com/roketag33/CyberTools/6da0295/src/modules/portScanner/services/portScannerService.ts | roketag33/CyberTools 6da0295 src/modules/portScanner/services/portScannerService.ts | true | 200 | 5,910 | import { secureTauriInvoke } from '@/lib/tauri';
export interface PortScanResult {
port: number;
state: string;
service?: string;
}
export interface PortScanProgress {
scan_id: string;
target: string;
progress: number;
ports_scanned: number;
ports_found: PortScanResult[];
total_ports: number;
stat... | 3 |
namanyayg/air | c6d8fd2 | src/types/react-datamaps-india.d.ts | TypeScript | www.github.com/namanyayg/air/tree/main/src/types/react-datamaps-india.d.ts | https://raw.githubusercontent.com/namanyayg/air/c6d8fd2/src/types/react-datamaps-india.d.ts | namanyayg/air c6d8fd2 src/types/react-datamaps-india.d.ts | true | 200 | 1,260 | declare module 'react-datamaps-india' {
import { ComponentType } from 'react';
interface MapLayout {
title: string;
legendTitle: string;
startColor: string;
endColor: string;
hoverTitle: string;
noDataColor: string;
borderColor: string;
hoverBorderColor?: string;
hoverColor?: st... | 2 |
camadams/localloyalty | a449313 | app/api/business/getOwnedAndEmployeedByLoyaltyCards+api.ts | TypeScript | www.github.com/camadams/localloyalty/tree/main/app/api/business/getOwnedAndEmployeedByLoyaltyCards+api.ts | https://raw.githubusercontent.com/camadams/localloyalty/a449313/app/api/business/getOwnedAndEmployeedByLoyaltyCards%2Bapi.ts | camadams/localloyalty a449313 app/api/business/getOwnedAndEmployeedByLoyaltyCards+api.ts | true | 200 | 1,718 | import { db } from "@/db";
import { Card, employees, loyaltyCards } from "@/db/schema";
import { eq } from "drizzle-orm";
import { withAuth } from "@/lib/withAuth";
import { User } from "better-auth/types";
export type LoyaltyCardItem = {
id: number;
description: string;
maxPoints: number;
status: string;
ar... | 6 |
jkilov/game-library | 68c1ab0 | src/hooks/useGames.ts | TypeScript | www.github.com/jkilov/game-library/tree/main/src/hooks/useGames.ts | https://raw.githubusercontent.com/jkilov/game-library/68c1ab0/src/hooks/useGames.ts | jkilov/game-library 68c1ab0 src/hooks/useGames.ts | true | 200 | 616 | import { GameQuery } from "../App";
import useData from "./useData";
import { Genre } from "./useGenres";
export interface Platform {
id: number,
name: string,
slug: string
}
export interface Game {
id: number;
name: string;
background_image: string
parent_platforms: {platform: Platform}[],
metacrit... | 4 |
Harish01234/demo1 | d5e3d8d | src/app/api/addvalueGM/route.ts | TypeScript | www.github.com/Harish01234/demo1/tree/main/src/app/api/addvalueGM/route.ts | https://raw.githubusercontent.com/Harish01234/demo1/d5e3d8d/src/app/api/addvalueGM/route.ts | Harish01234/demo1 d5e3d8d src/app/api/addvalueGM/route.ts | true | 200 | 1,508 | import connectDb from '@/lib/connectDb';
import { User } from '@/model/model'; // Adjust the import path if necessary
import { NextRequest, NextResponse } from 'next/server';
// Connect to the database
connectDb();
export async function POST(request: NextRequest) {
try {
const reqBody = await request.json... | 1 |
whileTrueDev/project-lc | 81174b6 | libs/nest-modules-goods-review/src/lib/comment/goods-review-comment.controller.ts | TypeScript | www.github.com/whileTrueDev/project-lc/tree/main/libs/nest-modules-goods-review/src/lib/comment/goods-review-comment.controller.ts | https://raw.githubusercontent.com/whileTrueDev/project-lc/81174b6/libs/nest-modules-goods-review/src/lib/comment/goods-review-comment.controller.ts | whileTrueDev/project-lc 81174b6 libs/nest-modules-goods-review/src/lib/comment/goods-review-comment.controller.ts | true | 200 | 1,939 | import {
Body,
Controller,
Delete,
Get,
Param,
ParseIntPipe,
Patch,
Post,
UseGuards,
UseInterceptors,
ValidationPipe,
} from '@nestjs/common';
import { GoodsReview, GoodsReviewComment } from '@prisma/client';
import { CacheClearKeys, HttpCacheInterceptor } from '@project-lc/nest-core';
import { Jw... | 7 |
hakubox/haku-design | 08f4b0b | src/modules/anime-module/@types/timeline.d.ts | TypeScript | www.github.com/hakubox/haku-design/tree/main/src/modules/anime-module/@types/timeline.d.ts | https://raw.githubusercontent.com/hakubox/haku-design/08f4b0b/src/modules/anime-module/%40types/timeline.d.ts | hakubox/haku-design 08f4b0b src/modules/anime-module/@types/timeline.d.ts | true | 200 | 2,370 | import type { Howl } from 'howler';
/** 时间轴 */
export interface TimeAxis {
/** 时间轴Id */
id: string;
/** 时间轴总时长(毫秒) */
duration: number;
/** 是否播放中 */
isPlay: boolean;
}
/** 轨道类型(动画不属于任一轨道)
* @alias **text** 文本
* @alias **gif** 动图
* @alias **component** 组件
* @alias **audio** 音频
* @alias **effects** 特效
... | 2 |
gataca-io/ageverification-demo | 113abc4 | src/assets/data.ts | TypeScript | www.github.com/gataca-io/ageverification-demo/tree/main/src/assets/data.ts | https://raw.githubusercontent.com/gataca-io/ageverification-demo/113abc4/src/assets/data.ts | gataca-io/ageverification-demo 113abc4 src/assets/data.ts | true | 200 | 4,528 | import { ICarrouselProps } from '../components/Carrousel'
export const CarrouselContinue: ICarrouselProps = {
name: 'recommended',
cards: [
{
id: '0',
title: 'title_0',
imageBg:
'https://images.unsplash.com/photo-1650700669709-b88505f0c334?q=80&w=1974... | 5 |
aythen1/tanatos-1 | 48f465b | src/store/dto/create-store.dto.ts | TypeScript | www.github.com/aythen1/tanatos-1/tree/main/src/store/dto/create-store.dto.ts | https://raw.githubusercontent.com/aythen1/tanatos-1/48f465b/src/store/dto/create-store.dto.ts | aythen1/tanatos-1 48f465b src/store/dto/create-store.dto.ts | true | 200 | 854 | import { IsNotEmpty, IsString, IsDecimal, IsOptional } from 'class-validator';
import { Usuario } from '../../users/entities/user.entity';
import { Order } from 'src/order/entities/order.entity';
import { Cat } from 'src/cat/entities/cat.entity';
export class CreateStoreFloristDto {
@IsNotEmpty()
@IsString()
rea... | 3 |
ganeshgurram/basicangular | 2a1e569 | src/app/auth.guard.ts | TypeScript | www.github.com/ganeshgurram/basicangular/tree/main/src/app/auth.guard.ts | https://raw.githubusercontent.com/ganeshgurram/basicangular/2a1e569/src/app/auth.guard.ts | ganeshgurram/basicangular 2a1e569 src/app/auth.guard.ts | true | 200 | 741 | import { Injectable } from '@angular/core';
import { ActivatedRoute, ActivatedRouteSnapshot, CanActivate, Route, Router, RouterStateSnapshot, UrlTree } from '@angular/router';
import { Observable } from 'rxjs';
import { AuthService } from './services/auth.service';
@Injectable({
providedIn: 'root'
})
export class Au... | 4 |
NguyenVanThu01122/AiArtGenerator | 2ad7f5b | src/services/aiArtGenerator.ts | TypeScript | www.github.com/NguyenVanThu01122/AiArtGenerator/tree/main/src/services/aiArtGenerator.ts | https://raw.githubusercontent.com/NguyenVanThu01122/AiArtGenerator/2ad7f5b/src/services/aiArtGenerator.ts | NguyenVanThu01122/AiArtGenerator 2ad7f5b src/services/aiArtGenerator.ts | true | 200 | 872 | import axios from "axios";
import { APIs } from "./configs/api";
import { privateAxios } from "./configs/axios";
interface ImageConfig {
step: number;
style: string;
alpha: number;
scale: number;
positivePrompt: string;
negativePrompt: string;
}
interface ImageUploadData {
url: string;
config: ImageConf... | 1 |
khunghaydien/wps | 0d87a6e | apps/admin-pc/utils/RecordUtil.ts | TypeScript | www.github.com/khunghaydien/wps/tree/main/apps/admin-pc/utils/RecordUtil.ts | https://raw.githubusercontent.com/khunghaydien/wps/0d87a6e/apps/admin-pc/utils/RecordUtil.ts | khunghaydien/wps 0d87a6e apps/admin-pc/utils/RecordUtil.ts | true | 200 | 5,204 | import forEach from 'lodash/forEach';
import isNil from 'lodash/isNil';
import reduce from 'lodash/reduce';
import FIELD_TYPE from '../constants/fieldType';
import { FunctionTypeList } from '../constants/functionType';
import msg from '../../commons/languages';
import * as ConfigUtil from './ConfigUtil';
export typ... | 7 |
engmkamal/capexbudgetreport | 4f7f8cd | libs/shared/data-access-user/src/lib/user.service.ts | TypeScript | www.github.com/engmkamal/capexbudgetreport/tree/main/libs/shared/data-access-user/src/lib/user.service.ts | https://raw.githubusercontent.com/engmkamal/capexbudgetreport/4f7f8cd/libs/shared/data-access-user/src/lib/user.service.ts | engmkamal/capexbudgetreport 4f7f8cd libs/shared/data-access-user/src/lib/user.service.ts | true | 200 | 1,639 | // import { Injectable } from '@angular/core';
// @Injectable({
// providedIn: 'root'
// })
// export class UserService {
// constructor() { }
// }
//========================================
import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
@Injectable({
providedIn: 'root',
})
... | 0 |
rabbitholegg/questdk-plugins | 5de95a5 | packages/across/src/Across.ts | TypeScript | www.github.com/rabbitholegg/questdk-plugins/tree/main/packages/across/src/Across.ts | https://raw.githubusercontent.com/rabbitholegg/questdk-plugins/5de95a5/packages/across/src/Across.ts | rabbitholegg/questdk-plugins 5de95a5 packages/across/src/Across.ts | true | 200 | 1,607 | import { ACROSS_BRIDGE_ABI, DEPOSIT_V3_ABI } from './abi'
import { CHAIN_ID_ARRAY } from './chain-ids'
import {
CHAIN_TO_SPOKEPOOL,
CHAIN_TO_SPOKE_VERIFIER,
CHAIN_TO_WETH,
} from './contracts'
import { type BridgeActionParams, compressJson } from '@rabbitholegg/questdk'
import { CHAIN_TO_TOKENS } from '@rabbithol... | 2 |
codefrontdev/coffee-with-ilyass | 44d47f3 | src/controllers/profileController.ts | TypeScript | www.github.com/codefrontdev/coffee-with-ilyass/tree/main/src/controllers/profileController.ts | https://raw.githubusercontent.com/codefrontdev/coffee-with-ilyass/44d47f3/src/controllers/profileController.ts | codefrontdev/coffee-with-ilyass 44d47f3 src/controllers/profileController.ts | true | 200 | 5,269 | import { Request, Response } from "express";
import { myDataSource } from "../config/pgDB";
import { Profile } from "../entity/Profile";
import { TProfile } from "../utils/type";
/**
* ProfileController is a class that contains methods for handling Profile routes.
* Each method handles a specific HTTP method and rou... | 6 |
itzzritik/Tools | 1fb348f | src/app/api/automation/stackoverflow/route.ts | TypeScript | www.github.com/itzzritik/Tools/tree/main/src/app/api/automation/stackoverflow/route.ts | https://raw.githubusercontent.com/itzzritik/Tools/1fb348f/src/app/api/automation/stackoverflow/route.ts | itzzritik/Tools 1fb348f src/app/api/automation/stackoverflow/route.ts | true | 200 | 3,833 | import { NextResponse } from 'next/server';
import { Page } from 'puppeteer';
import { launchBrowser } from '#utils/helper/browser';
import { sendToTelegram } from '#utils/helper/sendMessage';
const title = 'Stackoverflow Session Triggered';
const button = { text: 'Failed, Trigger Manually', url: 'https://stackoverfl... | 3 |
enesdir/angular-store | e05d42a | src/app/dashboard/components/podcast/podcast-list/podcast-list.component.spec.ts | TypeScript | www.github.com/enesdir/angular-store/tree/main/src/app/dashboard/components/podcast/podcast-list/podcast-list.component.spec.ts | https://raw.githubusercontent.com/enesdir/angular-store/e05d42a/src/app/dashboard/components/podcast/podcast-list/podcast-list.component.spec.ts | enesdir/angular-store e05d42a src/app/dashboard/components/podcast/podcast-list/podcast-list.component.spec.ts | true | 200 | 603 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PodcastListComponent } from './podcast-list.component';
describe('PodcastListComponent', () => {
let component: PodcastListComponent;
let fixture: ComponentFixture<PodcastListComponent>;
beforeEach(async () => {
await TestBed.configureT... | 5 |
pablogeokar/combatentes | e8ab205 | server/src/server.ts | TypeScript | www.github.com/pablogeokar/combatentes/tree/main/server/src/server.ts | https://raw.githubusercontent.com/pablogeokar/combatentes/e8ab205/server/src/server.ts | pablogeokar/combatentes e8ab205 server/src/server.ts | true | 200 | 283 | import Fastify from "fastify";
import cors from "@fastify/cors";
import { appRoutes } from "./routes";
const app = Fastify();
app.register(cors);
app.register(appRoutes);
app
.listen({ port: 3333, host: "0.0.0.0" })
.then(() => console.log("🟢 [HTTP] server is running"));
| 4 |
sabrinassantos/mars-rover | 8c390c4 | src/app/comando.ts | TypeScript | www.github.com/sabrinassantos/mars-rover/tree/main/src/app/comando.ts | https://raw.githubusercontent.com/sabrinassantos/mars-rover/8c390c4/src/app/comando.ts | sabrinassantos/mars-rover 8c390c4 src/app/comando.ts | true | 200 | 467 | import { MarsRover } from "../entities/marsRover/marsRover";
const comando = (comando: string, marsRover: MarsRover) => {
switch (comando) {
case 'L':
marsRover.giraParaEsquerda(marsRover);
break;
case 'R':
marsRover.giraParaDireita(marsRover);
break... | 1 |
ayelencoudeu/weatherAppCoudeuAyelen | 006ce59 | src/services/getCities.ts | TypeScript | www.github.com/ayelencoudeu/weatherAppCoudeuAyelen/tree/main/src/services/getCities.ts | https://raw.githubusercontent.com/ayelencoudeu/weatherAppCoudeuAyelen/006ce59/src/services/getCities.ts | ayelencoudeu/weatherAppCoudeuAyelen 006ce59 src/services/getCities.ts | true | 200 | 530 | /* eslint-disable @typescript-eslint/explicit-function-return-type */
import { ajax } from '../tools/ajax'
export const getCities = async (countryCode: string) => {
const options = {
method: 'GET',
url: 'https://spott.p.rapidapi.com/places',
headers: {
'X-RapidAPI-Key': '70084f0026mshccb25ae3df469f... | 7 |
Gust4voSiqueira/leiturando-app | 2a07b02 | src/hooks/useConnectWords.ts | TypeScript | www.github.com/Gust4voSiqueira/leiturando-app/tree/main/src/hooks/useConnectWords.ts | https://raw.githubusercontent.com/Gust4voSiqueira/leiturando-app/2a07b02/src/hooks/useConnectWords.ts | Gust4voSiqueira/leiturando-app 2a07b02 src/hooks/useConnectWords.ts | true | 200 | 1,176 | import { useContext } from 'react'
import { api } from '../lib/axios'
import { TokenContext } from '../contexts/TokenContext'
import { UserContext } from '../contexts/UserDataContext'
import { IResponses } from '../ui/screens/ConnectWords'
export const useConnectWords = () => {
const { token } = useContext(TokenCont... | 0 |
dhatrishdixit/realtime-notification-nextjs | 695a297 | src/hooks/useSocket.ts | TypeScript | www.github.com/dhatrishdixit/realtime-notification-nextjs/tree/main/src/hooks/useSocket.ts | https://raw.githubusercontent.com/dhatrishdixit/realtime-notification-nextjs/695a297/src/hooks/useSocket.ts | dhatrishdixit/realtime-notification-nextjs 695a297 src/hooks/useSocket.ts | true | 200 | 2,411 | import { useState, useEffect, useCallback } from 'react';
import io, { Socket } from 'socket.io-client';
let socket: Socket | undefined;
export const useSocket = () => {
const [isConnected, setIsConnected] = useState(false);
const [connectedUsers, setConnectedUsers] = useState<{ id: string, userName: string }[]>(... | 2 |
DonnieErgo/kupipodariday-backend | 530df1d | src/wishlists/dto/create-wishlist.dto.ts | TypeScript | www.github.com/DonnieErgo/kupipodariday-backend/tree/main/src/wishlists/dto/create-wishlist.dto.ts | https://raw.githubusercontent.com/DonnieErgo/kupipodariday-backend/530df1d/src/wishlists/dto/create-wishlist.dto.ts | DonnieErgo/kupipodariday-backend 530df1d src/wishlists/dto/create-wishlist.dto.ts | true | 200 | 301 | import { IsNotEmpty, IsUrl, Length, IsOptional } from 'class-validator';
export class CreateWishlistDto {
@IsNotEmpty()
@Length(1, 250)
name: string;
@IsNotEmpty()
@IsUrl()
image: string;
@IsOptional()
@Length(1, 1500)
description: string;
@IsOptional()
itemsId: number[];
}
| 6 |
stud-log/news-types | 5887af1 | models/logs.model.ts | TypeScript | www.github.com/stud-log/news-types/tree/main/models/logs.model.ts | https://raw.githubusercontent.com/stud-log/news-types/5887af1/models/logs.model.ts | stud-log/news-types 5887af1 models/logs.model.ts | true | 200 | 594 |
export const LogType = {
entrance: 'entrance',
comment: 'comment',
edit: 'edit',
create: 'create',
service: 'service',
readGuide: 'readGuide',
} as const;
/**
* Используется для логов и в качестве фиксации событий для достижений
*/
export class Log {
readonly id: number;
readonly recordId: number | n... | 5 |
alexMercy/serviceTask | 00d03c6 | src/utils/types.ts | TypeScript | www.github.com/alexMercy/serviceTask/tree/main/src/utils/types.ts | https://raw.githubusercontent.com/alexMercy/serviceTask/00d03c6/src/utils/types.ts | alexMercy/serviceTask 00d03c6 src/utils/types.ts | true | 200 | 470 | import {ReactNode} from "react";
export interface Data {
key: string,
name: string,
children?: Data[]
}
export type FlatData = Omit<Data, "children"> & { isDir: boolean, parentKey: string };
export interface FileNode {
parent: FlatData,
childs: FlatData[]
}
export interface SiblingsFile... | 4 |
brijmohangurjar/vrStudy | cafda54 | mobile/src/app/modules/note-detail/note-detail.page.ts | TypeScript | www.github.com/brijmohangurjar/vrStudy/tree/main/mobile/src/app/modules/note-detail/note-detail.page.ts | https://raw.githubusercontent.com/brijmohangurjar/vrStudy/cafda54/mobile/src/app/modules/note-detail/note-detail.page.ts | brijmohangurjar/vrStudy cafda54 mobile/src/app/modules/note-detail/note-detail.page.ts | true | 200 | 2,628 | import { HttpErrorResponse } from '@angular/common/http';
import { Component, OnDestroy, OnInit } from '@angular/core';
import { ActivatedRoute, ParamMap } from '@angular/router';
import { PopoverController } from '@ionic/angular';
import { Subscription } from 'rxjs';
import { NoteService } from 'src/app/api-services';... | 1 |
achieveIdeal/vue3_odoo12 | 67073d2 | src/service/type/index.ts | TypeScript | www.github.com/achieveIdeal/vue3_odoo12/tree/main/src/service/type/index.ts | https://raw.githubusercontent.com/achieveIdeal/vue3_odoo12/67073d2/src/service/type/index.ts | achieveIdeal/vue3_odoo12 67073d2 src/service/type/index.ts | true | 200 | 515 | import {AxiosRequestConfig, AxiosResponse} from "axios";
// 因为我们对返回类型做了泛型处理,所以res不能写死
interface Interceptors<T = AxiosResponse> {
requestSuccessFn?: (config: AxiosRequestConfig) => AxiosRequestConfig;
requestFailureFn?: (err: any) => any;
responseSuccessFn?: (res: T) => T;
responseFailureFn?: (err: any... | 7 |
thomasbrodusch/piupiu | f827d39 | tests/transformers/snakeCase.spec.ts | TypeScript | www.github.com/thomasbrodusch/piupiu/tree/main/tests/transformers/snakeCase.spec.ts | https://raw.githubusercontent.com/thomasbrodusch/piupiu/f827d39/tests/transformers/snakeCase.spec.ts | thomasbrodusch/piupiu f827d39 tests/transformers/snakeCase.spec.ts | true | 200 | 493 | import snakeCase from "../../src/transformers/snakeCase";
import { nonStringValueCheck } from "../support";
describe("snakeCase", () => {
it.each([
["Toto", "toto"],
["ToTo", "to_to"],
["toto", "toto"],
["to To", "to_to"],
["toToTOO", "to_to_t_o_o"],
...nonStringValueCheck().map((nSv) => [nSv... | 0 |
redsmedeiros/api-typescript | b7fb16b | src/shared/http/server.ts | TypeScript | www.github.com/redsmedeiros/api-typescript/tree/main/src/shared/http/server.ts | https://raw.githubusercontent.com/redsmedeiros/api-typescript/b7fb16b/src/shared/http/server.ts | redsmedeiros/api-typescript b7fb16b src/shared/http/server.ts | true | 200 | 791 | import "reflect-metadata";
import express from 'express';
import 'express-async-errors';
import { errors } from 'celebrate';
import routes from './routes';
import { Response, Request, NextFunction } from 'express';
import { AppError } from '@shared/errors/AppError';
import '@shared/typeorm';
const app = express();
ap... | 3 |
DHalupczok/pets-management-microfrontend-poc | 20f272c | src/app/app-routing.module.ts | TypeScript | www.github.com/DHalupczok/pets-management-microfrontend-poc/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/DHalupczok/pets-management-microfrontend-poc/20f272c/src/app/app-routing.module.ts | DHalupczok/pets-management-microfrontend-poc 20f272c src/app/app-routing.module.ts | true | 200 | 404 | import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
const routes: Routes = [{path: "pets", loadChildren: () => import("./pets/pets.module").then(m => m.PetsModule)}, {
path: '',
redirectTo: 'pets',
pathMatch: 'full',
}];
@NgModule({
imports: [RouterModule.forRoot(rout... | 6 |
JonasVargaski/rs485_mqtt | 9257612 | frontent/src/utils/constants.ts | TypeScript | www.github.com/JonasVargaski/rs485_mqtt/tree/main/frontent/src/utils/constants.ts | https://raw.githubusercontent.com/JonasVargaski/rs485_mqtt/9257612/frontent/src/utils/constants.ts | JonasVargaski/rs485_mqtt 9257612 frontent/src/utils/constants.ts | true | 200 | 6,309 | import { TInfoIndicatorProps } from "@/components/device/info-indicator";
import { TConnectionStatus } from "@/hooks/useMqttDevice";
enum eHolding {
"({Link2}1@W40001)", // ({Link1}1@D200) -> temp 1",
"({Link2}1@W40002)", // ({Link1}1@D202) -> temp 2",
"({Link2}1@W40003)", // ({Link1}1@D204) -> temp 3",
"({Lin... | 5 |
malg266526/leetcode | c8f23b8 | src/anagrams.ts | TypeScript | www.github.com/malg266526/leetcode/tree/main/src/anagrams.ts | https://raw.githubusercontent.com/malg266526/leetcode/c8f23b8/src/anagrams.ts | malg266526/leetcode c8f23b8 src/anagrams.ts | true | 200 | 964 | const sortLetter = (a: string, b: string) => a > b ? 1 : -1;
const isAnagram = (wordA: string, wordB: string) => {
if (wordA.length !== wordB.length) return false
// @ts-ignore
const sortedA = Array.from(wordA).sort(sortLetter).join('')
// @ts-ignore
const sortedB = Array.from(wordB).sort(sortLett... | 4 |
ErichLeonardo/IonicNotea | 6457849 | src/app/modal/modal.page.ts | TypeScript | www.github.com/ErichLeonardo/IonicNotea/tree/main/src/app/modal/modal.page.ts | https://raw.githubusercontent.com/ErichLeonardo/IonicNotea/6457849/src/app/modal/modal.page.ts | ErichLeonardo/IonicNotea 6457849 src/app/modal/modal.page.ts | true | 200 | 1,496 | import { Component, OnInit } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { IonButton, IonHeader, IonImg, IonLabel, IonItem, IonContent, IonButtons, IonTitle, IonToolbar } from '@ionic/angular/standalone';
import { NavParams } from '@ionic/an... | 1 |
skbkontur/form-engine | fba7bd5 | tests/FormStore/TestUtils/StoreTestHelpers.ts | TypeScript | www.github.com/skbkontur/form-engine/tree/main/tests/FormStore/TestUtils/StoreTestHelpers.ts | https://raw.githubusercontent.com/skbkontur/form-engine/fba7bd5/tests/FormStore/TestUtils/StoreTestHelpers.ts | skbkontur/form-engine fba7bd5 tests/FormStore/TestUtils/StoreTestHelpers.ts | true | 200 | 1,405 | import { Store } from "redux";
import { AutoValueType } from "../../../src/AutoEvaluators";
import { AutoEvaluationControlState, getAutoEvaluationState, getValue } from "../../../src/Controls/ControlBinding";
import { changeAutoEvaluationType, runAutoEvaluations, userUpdateValue } from "../../../src/FormStore/FormActi... | 7 |
Chandan9621/Project | 0793903 | Library_Project_UI/src/app/app-routing.module.ts | TypeScript | www.github.com/Chandan9621/Project/tree/main/Library_Project_UI/src/app/app-routing.module.ts | https://raw.githubusercontent.com/Chandan9621/Project/0793903/Library_Project_UI/src/app/app-routing.module.ts | Chandan9621/Project 0793903 Library_Project_UI/src/app/app-routing.module.ts | true | 200 | 1,930 | import { ClientComponent } from './client/client.component';
// import { routeGuard } from './login/auth.service';
import { CanActivateChildFn } from '@angular/router';
// import { authGuard } from './user/auth.guard';
import { Component, NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/r... | 2 |
kevinlinar/ngx-emma | 993d727 | lib/paginator/components/paginator.component.ts | TypeScript | www.github.com/kevinlinar/ngx-emma/tree/main/lib/paginator/components/paginator.component.ts | https://raw.githubusercontent.com/kevinlinar/ngx-emma/993d727/lib/paginator/components/paginator.component.ts | kevinlinar/ngx-emma 993d727 lib/paginator/components/paginator.component.ts | true | 200 | 1,937 | import {
ChangeDetectionStrategy,
Component,
computed,
model,
output,
} from '@angular/core';
import { Paginator } from '../types/paginator';
import { NgClass } from '@angular/common';
@Component({
selector: 'ngx-emma-paginator',
standalone: true,
imports: [NgClass],
templateUrl: './paginator.compone... | 3 |
AdithyaKothamasu/gamified-workspace-initial | fd96876 | app/api/subscribe/route.ts | TypeScript | www.github.com/AdithyaKothamasu/gamified-workspace-initial/tree/main/app/api/subscribe/route.ts | https://raw.githubusercontent.com/AdithyaKothamasu/gamified-workspace-initial/fd96876/app/api/subscribe/route.ts | AdithyaKothamasu/gamified-workspace-initial fd96876 app/api/subscribe/route.ts | true | 200 | 807 | // app/api/subscribe/route.ts
import { NextResponse } from 'next/server';
import { prisma } from '@/app/lib/prisma';
export async function POST(request: Request) {
try {
const { email } = await request.json();
const subscriber = await prisma.newsletterSubscriber.create({
data: {
email,
}... | 6 |
kekel87/ng-mono | 867b124 | libs/util/shared/src/lib/stores/router/router.effects.ts | TypeScript | www.github.com/kekel87/ng-mono/tree/main/libs/util/shared/src/lib/stores/router/router.effects.ts | https://raw.githubusercontent.com/kekel87/ng-mono/867b124/libs/util/shared/src/lib/stores/router/router.effects.ts | kekel87/ng-mono 867b124 libs/util/shared/src/lib/stores/router/router.effects.ts | true | 200 | 707 | import { Injectable, NgZone } from '@angular/core';
import { Router } from '@angular/router';
import { Actions, createEffect, ofType } from '@ngrx/effects';
import { from } from 'rxjs';
import { switchMap } from 'rxjs/operators';
import { routerActions } from './router.actions';
@Injectable()
export class RouterEffec... | 5 |
shajmil/institute_managment | 8fa11c6 | customer/src/app/teachers/teacher-dashboard/teacher-dashboard.component.ts | TypeScript | www.github.com/shajmil/institute_managment/tree/main/customer/src/app/teachers/teacher-dashboard/teacher-dashboard.component.ts | https://raw.githubusercontent.com/shajmil/institute_managment/8fa11c6/customer/src/app/teachers/teacher-dashboard/teacher-dashboard.component.ts | shajmil/institute_managment 8fa11c6 customer/src/app/teachers/teacher-dashboard/teacher-dashboard.component.ts | true | 200 | 6,765 |
import { Component, ElementRef, Input, OnInit, ViewChild } from '@angular/core';
import { FormBuilder, FormControl, Validators } from '@angular/forms';
import { MatSidenav } from '@angular/material/sidenav';
import { DomSanitizer } from '@angular/platform-browser';
import Swal from 'sweetalert2';
import { DatabaseSer... | 4 |
LLanzieri/Angular-TerceraEntrega-ProyFinal | 12ce5fe | src/app/core/guards/sesion.guard.ts | TypeScript | www.github.com/LLanzieri/Angular-TerceraEntrega-ProyFinal/tree/main/src/app/core/guards/sesion.guard.ts | https://raw.githubusercontent.com/LLanzieri/Angular-TerceraEntrega-ProyFinal/12ce5fe/src/app/core/guards/sesion.guard.ts | LLanzieri/Angular-TerceraEntrega-ProyFinal 12ce5fe src/app/core/guards/sesion.guard.ts | true | 200 | 1,944 | import { ActivatedRouteSnapshot, CanActivate, CanActivateChild, CanLoad, Route, Router, RouterStateSnapshot, UrlSegment, UrlTree } from '@angular/router';
import { Observable, map } from 'rxjs';
import { AuthState } from '../../autenticacion/state/auth.reducer';
import { Injectable } from '@angular/core';
import { Ses... | 0 |
IkennaPatrickIsineyi/social-backend-ts | dbc48dc | src/controllers/authControllers/check.controller.ts | TypeScript | www.github.com/IkennaPatrickIsineyi/social-backend-ts/tree/main/src/controllers/authControllers/check.controller.ts | https://raw.githubusercontent.com/IkennaPatrickIsineyi/social-backend-ts/dbc48dc/src/controllers/authControllers/check.controller.ts | IkennaPatrickIsineyi/social-backend-ts dbc48dc src/controllers/authControllers/check.controller.ts | true | 200 | 277 | import { Request, Response } from "express";
export async function checkAuthController(req: Request, res: Response) {
const user = req.session.user;
res.status(200).json({
message: user?.isLoggedIn ? 'logged in' : 'not logged in',
data: user
});
} | 7 |
Danilo4847/stm.senac | a14647a | src/app/services/delete-dialog.service.ts | TypeScript | www.github.com/Danilo4847/stm.senac/tree/main/src/app/services/delete-dialog.service.ts | https://raw.githubusercontent.com/Danilo4847/stm.senac/a14647a/src/app/services/delete-dialog.service.ts | Danilo4847/stm.senac a14647a src/app/services/delete-dialog.service.ts | true | 200 | 475 | import { Injectable } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { DeleteDiaLogComponent } from '../views/components/template/delete-dia-log/delete-dia-log.component';
@Injectable({
providedIn: 'root'
})
export class DeleteDialogService {
constructor(private dialog: MatDialo... | 2 |
alexisocampo71/a-la-carta-fe | a13ecdf | src/app/services/search.service.ts | TypeScript | www.github.com/alexisocampo71/a-la-carta-fe/tree/main/src/app/services/search.service.ts | https://raw.githubusercontent.com/alexisocampo71/a-la-carta-fe/a13ecdf/src/app/services/search.service.ts | alexisocampo71/a-la-carta-fe a13ecdf src/app/services/search.service.ts | true | 200 | 946 | import { Injectable } from '@angular/core';
import { HttpClient, HttpParams } from '@angular/common/http';
import { Observable } from 'rxjs';
import { Results } from 'src/app/models/results';
@Injectable({
providedIn: 'root'
})
export class SearchService {
private API_URI = 'https://api.spoonacular.com/recipes'
... | 3 |
gadiim/29.08.24_angular | 4831c4b | src/app/app.component.ts | TypeScript | www.github.com/gadiim/29.08.24_angular/tree/main/src/app/app.component.ts | https://raw.githubusercontent.com/gadiim/29.08.24_angular/4831c4b/src/app/app.component.ts | gadiim/29.08.24_angular 4831c4b src/app/app.component.ts | true | 200 | 960 | import { Component } from '@angular/core';
import { RouterLink, RouterOutlet, Router } from '@angular/router';
import { UserListComponent } from './components/user-list/user-list.component';
import { UserService } from './services/user.service';
import { User } from './models/user';
@Component({
selector: 'app-root'... | 5 |
Rahul327Agarwal/AmuraHealth | 92208fd | src/Components/PanelComponents/Windash/Windash.styles.ts | TypeScript | www.github.com/Rahul327Agarwal/AmuraHealth/tree/main/src/Components/PanelComponents/Windash/Windash.styles.ts | https://raw.githubusercontent.com/Rahul327Agarwal/AmuraHealth/92208fd/src/Components/PanelComponents/Windash/Windash.styles.ts | Rahul327Agarwal/AmuraHealth 92208fd src/Components/PanelComponents/Windash/Windash.styles.ts | true | 200 | 3,122 | import { makeStyles } from 'tss-react/mui';
export const useStyles = makeStyles<any>()((theme, props) => ({
mainContainer: {
position: 'relative',
height: 'inherit',
},
rootContainer: {
// backgroundColor: theme.palette.colors.gray[50],
height: 'calc(100%)',
boxSizing: 'border-box',
backgr... | 1 |
meta-ultra/dexie-utilities | 8185f48 | packages/dexie-utilities/src/dataUrify.ts | TypeScript | www.github.com/meta-ultra/dexie-utilities/tree/main/packages/dexie-utilities/src/dataUrify.ts | https://raw.githubusercontent.com/meta-ultra/dexie-utilities/8185f48/packages/dexie-utilities/src/dataUrify.ts | meta-ultra/dexie-utilities 8185f48 packages/dexie-utilities/src/dataUrify.ts | true | 200 | 1,152 | import { isArray, isObject } from "lodash-es";
/**
* Convert the file instance to dataURI string.
* @param input
* @returns
*/
async function dataUrify(input: File | any[] | Record<string, any>): Promise<any> {
if (input instanceof File) {
return dataURIifyFile(input);
}
else if (isArray(input)) {
... | 6 |
GobletQA/devspace-tasks | 49e74c6 | repos/devspace/src/tasks/status.ts | TypeScript | www.github.com/GobletQA/devspace-tasks/tree/main/repos/devspace/src/tasks/status.ts | https://raw.githubusercontent.com/GobletQA/devspace-tasks/49e74c6/repos/devspace/src/tasks/status.ts | GobletQA/devspace-tasks 49e74c6 repos/devspace/src/tasks/status.ts | true | 200 | 2,454 | import { get } from '@keg-hub/jsutils'
import { Logger } from '@keg-hub/cli-utils'
import { pm2Status } from '@TSKShared/process/command'
import { devspaceRunning } from '@TSKShared/devspace/devspaceRunning'
import { TaskConfig, TTask, TTaskArgs, TTaskParams } from '@TSKShared/shared.types'
const STOPPED = Logger.col... | 4 |
patrickbak/profiler | 33b2a59 | src/app/table/table.component.ts | TypeScript | www.github.com/patrickbak/profiler/tree/main/src/app/table/table.component.ts | https://raw.githubusercontent.com/patrickbak/profiler/33b2a59/src/app/table/table.component.ts | patrickbak/profiler 33b2a59 src/app/table/table.component.ts | true | 200 | 1,223 | import { Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { Profile } from '../database/Profile';
import { TableViewComponent } from '../table-view/table-view.component';
import { ProfileManipulatorService } from '../services/profile-manipulator.service';
/* A component for displayin... | 0 |
hfkhrni/axis | 0382ce8 | src/middleware/error.ts | TypeScript | www.github.com/hfkhrni/axis/tree/main/src/middleware/error.ts | https://raw.githubusercontent.com/hfkhrni/axis/0382ce8/src/middleware/error.ts | hfkhrni/axis 0382ce8 src/middleware/error.ts | true | 200 | 1,341 | import type { Request, Response, NextFunction } from 'express'
import logger from '../utils/logger.ts'
interface CustomError extends Error {
type?: string
statusCode?: number
errors?: Record<string, string>
}
function errorHandler(
error: CustomError,
req: Request,
res: Response,
next: NextFunction
) {
... | 7 |
Inna-Alex/todo_axios_typescript | b68472a | src/@types/components.d.ts | TypeScript | www.github.com/Inna-Alex/todo_axios_typescript/tree/main/src/@types/components.d.ts | https://raw.githubusercontent.com/Inna-Alex/todo_axios_typescript/b68472a/src/%40types/components.d.ts | Inna-Alex/todo_axios_typescript b68472a src/@types/components.d.ts | true | 200 | 729 | interface ITodo {
id: string
title: string
status: string
time: string
}
interface ITodoStatus {
label: string
value: string
}
interface ITitleStatus {
title: string
status: string
}
interface ITodoForm {
id?: string
title: string
todoStatus?: ITodoStatus
time?: string
}
type TodoType = ITodoFor... | 3 |
HendrywDeyvison/vendas-online-backend | 84afc1d | src/payment/payment.service.ts | TypeScript | www.github.com/HendrywDeyvison/vendas-online-backend/tree/main/src/payment/payment.service.ts | https://raw.githubusercontent.com/HendrywDeyvison/vendas-online-backend/84afc1d/src/payment/payment.service.ts | HendrywDeyvison/vendas-online-backend 84afc1d src/payment/payment.service.ts | true | 200 | 2,244 | import { CartProductEntity } from './../cart-product/entities/cart-product.entity';
import { CartEntity } from './../cart/entities/cart.entity';
import { ProductEntity } from './../product/entities/product.entity';
import { PaymentType } from './../payment-status/enum/payment-type.enum';
import { PaymentCreditCardEntit... | 2 |
method-temporary/sku-manager-front | 484d047 | src/user/present/apiclient/TrainingApi.ts | TypeScript | www.github.com/method-temporary/sku-manager-front/tree/main/src/user/present/apiclient/TrainingApi.ts | https://raw.githubusercontent.com/method-temporary/sku-manager-front/484d047/src/user/present/apiclient/TrainingApi.ts | method-temporary/sku-manager-front 484d047 src/user/present/apiclient/TrainingApi.ts | true | 200 | 1,863 | import { axiosApi as axios } from 'shared/axios/Axios';
import { TrainingCountModel } from '../../model/TrainingCountModel';
import { TrainingListViewModel } from '../../model/TrainingListViewModel';
import { TrainingRdo } from '../../model/TrainingRdo';
import { OffsetElementList } from 'shared/model';
import qs from... | 5 |
chain4travel/camino-block-explorer | 9c31d38 | src/utils/magellan/index.ts | TypeScript | www.github.com/chain4travel/camino-block-explorer/tree/main/src/utils/magellan/index.ts | https://raw.githubusercontent.com/chain4travel/camino-block-explorer/9c31d38/src/utils/magellan/index.ts | chain4travel/camino-block-explorer 9c31d38 src/utils/magellan/index.ts | true | 200 | 2,850 | import { MagellanXPOutput, MagellanXPTransaction } from 'types/magellan-types'
import { Fund, XPTransaction } from 'types/transaction'
function sortByAddress(a: Fund, b: Fund): number {
try {
if (!a || !b) {
throw new Error('Both funds must be provided')
}
if (!a.address || !b.... | 6 |
Nethrenial/nuxt-nest-ecommerce | a95ef49 | packages/ecommerce-backend/src/stripe-payments/stripe-payments.controller.ts | TypeScript | www.github.com/Nethrenial/nuxt-nest-ecommerce/tree/main/packages/ecommerce-backend/src/stripe-payments/stripe-payments.controller.ts | https://raw.githubusercontent.com/Nethrenial/nuxt-nest-ecommerce/a95ef49/packages/ecommerce-backend/src/stripe-payments/stripe-payments.controller.ts | Nethrenial/nuxt-nest-ecommerce a95ef49 packages/ecommerce-backend/src/stripe-payments/stripe-payments.controller.ts | true | 200 | 815 | import { Body, Controller, Post, Req, UseGuards } from '@nestjs/common';
import { StripePaymentsService } from './stripe-payments.service';
import { CreateChargeDto } from './dto/create-charge.dto';
import { JwtAuthenticationGuard } from 'src/authentication/guards/jwt-authentication.guard';
import { RequestWithUser } f... | 4 |
KwangSoo1555/sparta-6th-week-trello-project | e359b77 | src/database/seeds/02-board.seed.ts | TypeScript | www.github.com/KwangSoo1555/sparta-6th-week-trello-project/tree/main/src/database/seeds/02-board.seed.ts | https://raw.githubusercontent.com/KwangSoo1555/sparta-6th-week-trello-project/e359b77/src/database/seeds/02-board.seed.ts | KwangSoo1555/sparta-6th-week-trello-project e359b77 src/database/seeds/02-board.seed.ts | true | 200 | 842 | import { faker } from "@faker-js/faker";
import { BoardsEntity } from "../../entities/boards.entity";
import { DataSource } from "typeorm";
import { Seeder, SeederFactoryManager } from "typeorm-extension";
import { Colors } from "../../common/custom/types/enum-color.type";
export class BoardSeeder implements Seeder {
... | 0 |
kiIIer/kpi-2 | cb9f493 | web/lab/tasks/2-16.09.2022/c-doubleS/src/app/app-routing/app-routing.module.ts | TypeScript | www.github.com/kiIIer/kpi-2/tree/main/web/lab/tasks/2-16.09.2022/c-doubleS/src/app/app-routing/app-routing.module.ts | https://raw.githubusercontent.com/kiIIer/kpi-2/cb9f493/web/lab/tasks/2-16.09.2022/c-doubleS/src/app/app-routing/app-routing.module.ts | kiIIer/kpi-2 cb9f493 web/lab/tasks/2-16.09.2022/c-doubleS/src/app/app-routing/app-routing.module.ts | true | 200 | 708 | import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {Router, RouterModule, Routes} from '@angular/router';
import {StoreRouterConnectingModule} from '@ngrx/router-store';
import {HomeCoreComponent} from '../container/home-core/home-core.component';
import {FaqCoreComponent} from... | 7 |
Inuani/icp_sveltkit_rust_basic_setup | c61eb54 | src/frontend/src/lib/constants.ts | TypeScript | www.github.com/Inuani/icp_sveltkit_rust_basic_setup/tree/main/src/frontend/src/lib/constants.ts | https://raw.githubusercontent.com/Inuani/icp_sveltkit_rust_basic_setup/c61eb54/src/frontend/src/lib/constants.ts | Inuani/icp_sveltkit_rust_basic_setup c61eb54 src/frontend/src/lib/constants.ts | true | 200 | 384 |
export const AUTH_POPUP_WIDTH = 576;
export const AUTH_POPUP_HEIGHT = 625;
// 7 days in nano seconds
export const AUTH_MAX_TIME_TO_LIVE = BigInt(7 * 24 * 60 * 60 * 1000 * 1000 * 1000);
export const ONE_TRILLION = 1_000_000_000_000;
export const localIdentityCanisterId: string | null | undefined = import.meta.env
.... | 5 |
korrupt/forprosjekt | 77d152c | libs/api/user/data-access/src/lib/adapters/user.acl-adapter.ts | TypeScript | www.github.com/korrupt/forprosjekt/tree/main/libs/api/user/data-access/src/lib/adapters/user.acl-adapter.ts | https://raw.githubusercontent.com/korrupt/forprosjekt/77d152c/libs/api/user/data-access/src/lib/adapters/user.acl-adapter.ts | korrupt/forprosjekt 77d152c libs/api/user/data-access/src/lib/adapters/user.acl-adapter.ts | true | 200 | 1,502 | import { AuthUser } from '@forprosjekt/api/auth/utils';
import { UpdateUserDto } from '@forprosjekt/api/user/utils';
import { AccessResource } from '@forprosjekt/shared/models';
import { ForbiddenException, Injectable } from '@nestjs/common';
import { ApiUserService } from '../services';
@Injectable()
export class Api... | 2 |
praveena2022/TaskManagement_FrontEnd | fb57cab | src/app/mem-auth.service.ts | TypeScript | www.github.com/praveena2022/TaskManagement_FrontEnd/tree/main/src/app/mem-auth.service.ts | https://raw.githubusercontent.com/praveena2022/TaskManagement_FrontEnd/fb57cab/src/app/mem-auth.service.ts | praveena2022/TaskManagement_FrontEnd fb57cab src/app/mem-auth.service.ts | true | 200 | 1,950 | import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable, catchError, map, throwError } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class MemAuthService {
private apiUrl = 'https://revtaskmanagement.azurewebsites.net/team-members'; ... | 1 |
henriquegarcia-web/hungry-hub | e70db9e | client/src/pages/Admin/Views/Premium/styles.ts | TypeScript | www.github.com/henriquegarcia-web/hungry-hub/tree/main/client/src/pages/Admin/Views/Premium/styles.ts | https://raw.githubusercontent.com/henriquegarcia-web/hungry-hub/e70db9e/client/src/pages/Admin/Views/Premium/styles.ts | henriquegarcia-web/hungry-hub e70db9e client/src/pages/Admin/Views/Premium/styles.ts | true | 200 | 882 | import styled from 'styled-components'
import {
View,
adminViewMenuWrapper,
responsiveTablet
} from '@/utils/styles/globals'
export const Premium = styled(View)`
display: flex;
justify-content: center;
padding: 20px;
`
export const PremiumWrapper = styled.div`
display: flex;
flex-direction: column;
... | 3 |
JagdishMedkart/Assignment1 | 986dcb7 | online-product-management/src/app/api/cart/remove/[id]/[userId]/route.ts | TypeScript | www.github.com/JagdishMedkart/Assignment1/tree/main/online-product-management/src/app/api/cart/remove/[id]/[userId]/route.ts | https://raw.githubusercontent.com/JagdishMedkart/Assignment1/986dcb7/online-product-management/src/app/api/cart/remove/%5Bid%5D/%5BuserId%5D/route.ts | JagdishMedkart/Assignment1 986dcb7 online-product-management/src/app/api/cart/remove/[id]/[userId]/route.ts | true | 200 | 2,002 | import { NextRequest, NextResponse } from "next/server";
import prisma from "../../../../../../../prisma/client";
import { withAuth } from "../../../../../../middleware/authMiddleware";
export async function DELETE(req: NextRequest, { params }: { params: { id: string } }) {
try {
const sessionToken = req.cookies... | 6 |
ianchagas/inventory_solid_nest | 4a06c1a | modules/people/src/useCase/createPeople/create-people.service.ts | TypeScript | www.github.com/ianchagas/inventory_solid_nest/tree/main/modules/people/src/useCase/createPeople/create-people.service.ts | https://raw.githubusercontent.com/ianchagas/inventory_solid_nest/4a06c1a/modules/people/src/useCase/createPeople/create-people.service.ts | ianchagas/inventory_solid_nest 4a06c1a modules/people/src/useCase/createPeople/create-people.service.ts | true | 200 | 915 | import { Inject, Injectable } from '@nestjs/common';
import { CreatePeopleDTO } from 'modules/people/src/dto/request/create-people.dto';
import { IPeopleRepository } from 'modules/people/src/implementations/people.interface';
import { PeopleEntity } from 'modules/people/src/infra/typeORM/entities/people.entity';
import... | 4 |
ChubachiPT2024/manakan | a5aa869 | src/domain/models/assessments/assessment.ts | TypeScript | www.github.com/ChubachiPT2024/manakan/tree/main/src/domain/models/assessments/assessment.ts | https://raw.githubusercontent.com/ChubachiPT2024/manakan/a5aa869/src/domain/models/assessments/assessment.ts | ChubachiPT2024/manakan a5aa869 src/domain/models/assessments/assessment.ts | true | 200 | 2,857 | import { AssessmentGrade } from './assessmentGrade'
import { AssessmentRank } from './assessmentRank'
/**
* 個別評価
*/
export class Assessment {
/**
* コンストラクタ
*
* @param reportId レポート ID
* @param studentNumId 学籍番号
* @param feedback フィードバック
* @param memo メモ
* @param grade 評点
* @param rank 評点内の位... | 7 |
Zer-0ne/portfolio-freelancing-copy-code-community | c890a62 | src/app/api/drive/files/delete/route.ts | TypeScript | www.github.com/Zer-0ne/portfolio-freelancing-copy-code-community/tree/main/src/app/api/drive/files/delete/route.ts | https://raw.githubusercontent.com/Zer-0ne/portfolio-freelancing-copy-code-community/c890a62/src/app/api/drive/files/delete/route.ts | Zer-0ne/portfolio-freelancing-copy-code-community c890a62 src/app/api/drive/files/delete/route.ts | true | 200 | 1,822 | import Users from "@/Models/Users";
import { Data, Session } from "@/utils/Interfaces";
import { currentSession } from "@/utils/Session";
import { auth } from "@root/sheets.config";
import { google } from "googleapis";
import { NextRequest, NextResponse } from "next/server";
export const revalidate = 60
export const P... | 0 |
hamoz07/React-ADVANCED-CRUD | 0897651 | src/utils/functions.ts | TypeScript | www.github.com/hamoz07/React-ADVANCED-CRUD/tree/main/src/utils/functions.ts | https://raw.githubusercontent.com/hamoz07/React-ADVANCED-CRUD/0897651/src/utils/functions.ts | hamoz07/React-ADVANCED-CRUD 0897651 src/utils/functions.ts | true | 200 | 279 | export function productDescTxtSlicer(txt: string, max: number = 50): string {
if (txt.length >= max) {
return `${txt.slice(0, max)}...`
}
return txt
}
export function validDigits(n: number): string {
return Intl.NumberFormat('en-US').format(n)
} | 1 |
Viking0207/MyPortfolio | 5af3b75 | src/app/Blog/blog.module.ts | TypeScript | www.github.com/Viking0207/MyPortfolio/tree/main/src/app/Blog/blog.module.ts | https://raw.githubusercontent.com/Viking0207/MyPortfolio/5af3b75/src/app/Blog/blog.module.ts | Viking0207/MyPortfolio 5af3b75 src/app/Blog/blog.module.ts | true | 200 | 365 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { BlogComponent } from './blog.component';
@NgModule({
declarations: [
BlogComponent,
],
imports: [
CommonModule,
RouterModule
],
exports: [
BlogC... | 2 |
sumi-dj/group1 | b1c3a93 | frontend/jst-foods/src/app/view-cart/view-cart.component.ts | TypeScript | www.github.com/sumi-dj/group1/tree/main/frontend/jst-foods/src/app/view-cart/view-cart.component.ts | https://raw.githubusercontent.com/sumi-dj/group1/b1c3a93/frontend/jst-foods/src/app/view-cart/view-cart.component.ts | sumi-dj/group1 b1c3a93 frontend/jst-foods/src/app/view-cart/view-cart.component.ts | true | 200 | 633 | import { Component, OnInit } from '@angular/core';
import { CartService } from '../cart.service';
@Component({
selector: 'app-view-cart',
templateUrl: './view-cart.component.html',
styleUrls: ['./view-cart.component.css']
})
export class ViewCartComponent implements OnInit {
carts:any;
constructor(private... | 6 |
FiFiA-FiFiA/FE-48 | 0416182 | angular-2/src/app/section-add-server/section-add-server.component.ts | TypeScript | www.github.com/FiFiA-FiFiA/FE-48/tree/main/angular-2/src/app/section-add-server/section-add-server.component.ts | https://raw.githubusercontent.com/FiFiA-FiFiA/FE-48/0416182/angular-2/src/app/section-add-server/section-add-server.component.ts | FiFiA-FiFiA/FE-48 0416182 angular-2/src/app/section-add-server/section-add-server.component.ts | true | 200 | 1,111 | import { Component, EventEmitter, Output } from '@angular/core';
import { Server } from '../Server.model';
@Component({
selector: 'app-section-add-server',
templateUrl: './section-add-server.component.html',
styleUrls: ['./section-add-server.component.css']
})
export class SectionAddServerComponent {
server: S... | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.