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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
anxueling/ewshop | eb66234 | src/router/modules/dashboard.ts | TypeScript | www.github.com/anxueling/ewshop/tree/main/src/router/modules/dashboard.ts | https://raw.githubusercontent.com/anxueling/ewshop/eb66234/src/router/modules/dashboard.ts | anxueling/ewshop eb66234 src/router/modules/dashboard.ts | true | 200 | 1,725 | //控制台路由
//拿的数据模型
import {RouteRecordRaw} from "vue-router";
import Layout from "@/layout/index.vue";
import {renderIcon} from "@/utils"
import {Browsers} from "@vicons/ionicons5"
//定义一个routeName dashboard控制台
const routeName = "dashboard";
/**
* @param name 路由名称, 必须设置,且不能重名
* @param meta 路由元信息(路由附带扩展信息)
* @param red... | 6 |
jukbq/breakfake | 16b5492 | src/app/admin/add-events/add-events.component.ts | TypeScript | www.github.com/jukbq/breakfake/tree/main/src/app/admin/add-events/add-events.component.ts | https://raw.githubusercontent.com/jukbq/breakfake/16b5492/src/app/admin/add-events/add-events.component.ts | jukbq/breakfake 16b5492 src/app/admin/add-events/add-events.component.ts | true | 200 | 7,980 | import { Component } from '@angular/core';
import { EventResponse } from '../../shared/interfaces/events';
import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
import { CommonModule, ViewportScroller } from '@angular/common';
import { EditorModule } from '@tinymce/tinymce-angular';
... | 5 |
cunba/dista_frontend | 332326d | src/viewmodels/agenda/AddEventViewModel.ts | TypeScript | www.github.com/cunba/dista_frontend/tree/main/src/viewmodels/agenda/AddEventViewModel.ts | https://raw.githubusercontent.com/cunba/dista_frontend/332326d/src/viewmodels/agenda/AddEventViewModel.ts | cunba/dista_frontend 332326d src/viewmodels/agenda/AddEventViewModel.ts | true | 200 | 1,407 | import { EventDTO } from "client/disheap/models/EventDTO"
import { EventRepository } from "data/repository/disheap/impl/EventRepository"
import { SessionStoreFactory } from "infrastructure/data/SessionStoreFactory"
import { action, makeAutoObservable, observable } from "mobx"
export class AddEventViewModel {
even... | 4 |
rawlin08/sunnyside-agency-landing | 02e506e | src/app/components/home.component.ts | TypeScript | www.github.com/rawlin08/sunnyside-agency-landing/tree/main/src/app/components/home.component.ts | https://raw.githubusercontent.com/rawlin08/sunnyside-agency-landing/02e506e/src/app/components/home.component.ts | rawlin08/sunnyside-agency-landing 02e506e src/app/components/home.component.ts | true | 200 | 429 | import { Component } from '@angular/core';
@Component({
selector: 'app-home',
template: `
<header>
<app-heading></app-heading>
</header>
<main>
<app-hero></app-hero>
<app-main-slides></app-main-slides>
<app-testimonials></app-testimonials>
<app-bottom-images></app-bottom-images>
</main>... | 3 |
SabaKveladze/angular-5 | 89d5dcc | src/app/step2/step2.component.ts | TypeScript | www.github.com/SabaKveladze/angular-5/tree/main/src/app/step2/step2.component.ts | https://raw.githubusercontent.com/SabaKveladze/angular-5/89d5dcc/src/app/step2/step2.component.ts | SabaKveladze/angular-5 89d5dcc src/app/step2/step2.component.ts | true | 200 | 1,367 | import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
@Component({
selector: 'app-step2',
templateUrl: './step2.component.html',
styleUrls: ['./step2.component.scss'],
})
export class Step2Component implements OnInit {
stepTwoForm: FormGroup;
c... | 1 |
haudnn/instagram-clone | a72e1be | .history/models/postModel_20220731141719.ts | TypeScript | www.github.com/haudnn/instagram-clone/tree/main/.history/models/postModel_20220731141719.ts | https://raw.githubusercontent.com/haudnn/instagram-clone/a72e1be/.history/models/postModel_20220731141719.ts | haudnn/instagram-clone a72e1be .history/models/postModel_20220731141719.ts | true | 200 | 974 | import mongoose, { Types, Document } from "mongoose";
export interface postDocument extends Document {
_id: string;
description: string;
attachment: string;
location: string;
slug: string;
author: Types.ObjectId;
comment: Types.ObjectId;
liked: Array<Types.ObjectId>;
}
const schema: mongoose.Schema<post... | 7 |
ronja-p/library-fullstack-project | 025f306 | client/src/validation/AuthorValidation.ts | TypeScript | www.github.com/ronja-p/library-fullstack-project/tree/main/client/src/validation/AuthorValidation.ts | https://raw.githubusercontent.com/ronja-p/library-fullstack-project/025f306/client/src/validation/AuthorValidation.ts | ronja-p/library-fullstack-project 025f306 client/src/validation/AuthorValidation.ts | true | 200 | 1,181 | import * as yup from 'yup';
// image upload restrictions
const FILE_SIZE = 1024 * 1024 * 2;
const SUPPORTED_FORMATS = ['image/jpg', 'image/jpeg', 'image/png'];
// get current date
const getMaxDate = () => {
return new Date();
};
export const authorValidationSchemas = {
// author schema
authorSchema: yup.object... | 2 |
jcalleorbis/papaya-backend | f924ced | src/grade/grade.module.ts | TypeScript | www.github.com/jcalleorbis/papaya-backend/tree/main/src/grade/grade.module.ts | https://raw.githubusercontent.com/jcalleorbis/papaya-backend/f924ced/src/grade/grade.module.ts | jcalleorbis/papaya-backend f924ced src/grade/grade.module.ts | true | 200 | 454 | import { Module } from '@nestjs/common';
import { GradeService } from './grade.service';
import { GradeController } from './grade.controller';
import { MongooseModule } from '@nestjs/mongoose';
import { Grade, GradeSchema } from './schemas/grade.schema';
@Module({
imports: [
MongooseModule.forFeature([{ name: Gr... | 0 |
SabineLo/Jupyter_Extension | 82152bf | src/index.ts | TypeScript | www.github.com/SabineLo/Jupyter_Extension/tree/main/src/index.ts | https://raw.githubusercontent.com/SabineLo/Jupyter_Extension/82152bf/src/index.ts | SabineLo/Jupyter_Extension 82152bf src/index.ts | true | 200 | 433 | import {
JupyterFrontEnd,
JupyterFrontEndPlugin
} from '@jupyterlab/application';
/**
* Initialization data for the jupyterlab_apod extension.
*/
const plugin: JupyterFrontEndPlugin<void> = {
id: ' jupyterlab_apod:plugin',
description: 'NASA daily Pictures',
autoStart: true,
activate: (app: JupyterFront... | 5 |
duartePinia/carwash_ddd | baa6ded | src/shared/infrastructure/server/Server.ts | TypeScript | www.github.com/duartePinia/carwash_ddd/tree/main/src/shared/infrastructure/server/Server.ts | https://raw.githubusercontent.com/duartePinia/carwash_ddd/baa6ded/src/shared/infrastructure/server/Server.ts | duartePinia/carwash_ddd baa6ded src/shared/infrastructure/server/Server.ts | true | 200 | 934 | import express, { Router } from 'express';
import { config } from '../../../../config';
import swaggerCarWash from '../../../../swagger_output.json';
import swaggerUi from 'swagger-ui-express';
export class Server {
private readonly express: express.Application;
private swaggerUiOptions = {
explorer... | 6 |
moncefplastin07/tweend-api | d557d96 | main.ts | TypeScript | www.github.com/moncefplastin07/tweend-api/tree/main/main.ts | https://raw.githubusercontent.com/moncefplastin07/tweend-api/d557d96/main.ts | moncefplastin07/tweend-api d557d96 main.ts | true | 200 | 398 | import { serve } from "http/server.ts";
import { getTrendList } from "./getTrends.ts";
serve(async (_req) => {
const pathName = new URL(_req.url).pathname
return new Response(`${JSON.stringify(await getTrendList(pathName, 10))}`, {
headers: new Headers({
"Content-Type": "application/json",
... | 3 |
Ninjeneer/astral-bot | ce54cd5 | test/infrastructure/apod/nasa.api.test.ts | TypeScript | www.github.com/Ninjeneer/astral-bot/tree/main/test/infrastructure/apod/nasa.api.test.ts | https://raw.githubusercontent.com/Ninjeneer/astral-bot/ce54cd5/test/infrastructure/apod/nasa.api.test.ts | Ninjeneer/astral-bot ce54cd5 test/infrastructure/apod/nasa.api.test.ts | true | 200 | 428 | import NasaAPODAPI from "../../../src/infrastructure/apod/nasa.api";
describe("NASA API", () => {
let nasaApi: NasaAPODAPI;
beforeEach(() => {
nasaApi = new NasaAPODAPI();
});
it("should call the NASA APOD API", async () => {
const apod = await nasaApi.getAPOD();
expect(apod).... | 4 |
adisreyaj/flagsy | 4fa3516 | projects/ui/src/lib/components/table/table.util.ts | TypeScript | www.github.com/adisreyaj/flagsy/tree/main/projects/ui/src/lib/components/table/table.util.ts | https://raw.githubusercontent.com/adisreyaj/flagsy/4fa3516/projects/ui/src/lib/components/table/table.util.ts | adisreyaj/flagsy 4fa3516 projects/ui/src/lib/components/table/table.util.ts | true | 200 | 1,978 | import { isNil, isNumber, isString } from 'lodash-es';
import { TableColumnConfig } from './table.types';
export abstract class TableUtil {
public static getGridTemplateColumns(
columns: TableColumnConfig[],
tableWidthInPx: number,
): string {
const widthsMap = new Map<string, string>();
let avail... | 1 |
kotayam/notah | f9ddf95 | frontend/src/Classes.ts | TypeScript | www.github.com/kotayam/notah/tree/main/frontend/src/Classes.ts | https://raw.githubusercontent.com/kotayam/notah/f9ddf95/frontend/src/Classes.ts | kotayam/notah f9ddf95 frontend/src/Classes.ts | true | 200 | 1,637 | export class CanvasElement {
id: string;
x: number;
y: number;
innerHtml: string;
constructor(id: string, x: number, y: number, innerHtml: string) {
this.id = id;
this.x = x;
this.y = y;
this.innerHtml = innerHtml;
}
}
export class TextBoxElement extends Can... | 7 |
Thais-Mont/gestaoTarefas | 75a2754 | src/app/pages/register/register.component.ts | TypeScript | www.github.com/Thais-Mont/gestaoTarefas/tree/main/src/app/pages/register/register.component.ts | https://raw.githubusercontent.com/Thais-Mont/gestaoTarefas/75a2754/src/app/pages/register/register.component.ts | Thais-Mont/gestaoTarefas 75a2754 src/app/pages/register/register.component.ts | true | 200 | 4,074 | import { HttpClient } from '@angular/common/http';
import { Component, inject } from '@angular/core';
import { AbstractControl, FormBuilder, ReactiveFormsModule, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { AuthService } from '../../services/auth.service';
import { CommonModule... | 2 |
smtp2go-oss/nodejs | 4f68619 | src/lib/mailService.ts | TypeScript | www.github.com/smtp2go-oss/nodejs/tree/main/src/lib/mailService.ts | https://raw.githubusercontent.com/smtp2go-oss/nodejs/4f68619/src/lib/mailService.ts | smtp2go-oss/nodejs 4f68619 src/lib/mailService.ts | true | 200 | 6,221 | import MailAttachment from "./mailAttachment";
import SMTP2GOService from "./service";
import Address from "./types/address";
import { AddressCollection } from "./types/addressCollection";
import { AddressType } from "./types/addressType";
import Attachment from "./types/attachment";
import { AttachmentCollection } fro... | 0 |
ordero-team/ordero-portal-v2 | 20b914b | src/app/shared/components/form-message/form-message.component.spec.ts | TypeScript | www.github.com/ordero-team/ordero-portal-v2/tree/main/src/app/shared/components/form-message/form-message.component.spec.ts | https://raw.githubusercontent.com/ordero-team/ordero-portal-v2/20b914b/src/app/shared/components/form-message/form-message.component.spec.ts | ordero-team/ordero-portal-v2 20b914b src/app/shared/components/form-message/form-message.component.spec.ts | true | 200 | 658 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { FormMessageComponent } from './form-message.component';
describe('FormMessageComponent', () => {
let component: FormMessageComponent;
let fixture: ComponentFixture<FormMessageComponent>;
beforeEach(async(() => {
TestBed.conf... | 5 |
safeplace12345/Real-Estate-Listings-Management-FE-App | 15a4aac | src/services/@redux/userReducer.ts | TypeScript | www.github.com/safeplace12345/Real-Estate-Listings-Management-FE-App/tree/main/src/services/@redux/userReducer.ts | https://raw.githubusercontent.com/safeplace12345/Real-Estate-Listings-Management-FE-App/15a4aac/src/services/%40redux/userReducer.ts | safeplace12345/Real-Estate-Listings-Management-FE-App 15a4aac src/services/@redux/userReducer.ts | true | 200 | 1,745 | import { createAction, createReducer } from "@reduxjs/toolkit";
export interface IFav {
brokerTitle: string;
type: string;
address: string;
}
export interface IUser {
uid: string;
name: string;
email: string;
token: string;
favorites?: any[];
}
export const loginAction = createAction<IUser>("user/log... | 3 |
axiomhq/axiom-js | ef1fa79 | e2e/nextjs-app/src/app/api/edge/route.ts | TypeScript | www.github.com/axiomhq/axiom-js/tree/main/e2e/nextjs-app/src/app/api/edge/route.ts | https://raw.githubusercontent.com/axiomhq/axiom-js/ef1fa79/e2e/nextjs-app/src/app/api/edge/route.ts | axiomhq/axiom-js ef1fa79 e2e/nextjs-app/src/app/api/edge/route.ts | true | 200 | 800 | import { AxiomWithoutBatching } from '@axiomhq/js';
import { NextResponse } from 'next/server';
export const runtime = 'edge';
export const dynamic = 'force-dynamic'; // disable prerendering
export async function GET() {
const axiom = new AxiomWithoutBatching({
token: process.env.AXIOM_TOKEN || '',
orgId: p... | 4 |
Carln02/TurboDOMBuilder | 0a44463 | src/eventHandling/events/basic/turboKeyEvent.ts | TypeScript | www.github.com/Carln02/TurboDOMBuilder/tree/main/src/eventHandling/events/basic/turboKeyEvent.ts | https://raw.githubusercontent.com/Carln02/TurboDOMBuilder/0a44463/src/eventHandling/events/basic/turboKeyEvent.ts | Carln02/TurboDOMBuilder 0a44463 src/eventHandling/events/basic/turboKeyEvent.ts | true | 200 | 1,193 | import {TurboEvent} from "../turboEvent";
import {ClickMode} from "../../turboEventManager/turboEventManager.types";
import {TurboEventName, TurboEventNameEntry} from "../../eventNaming";
import {Point} from "../../../utils/datatypes/point/point";
/**
* @class TurboKeyEvent
* @extends TurboEvent
* @description Cust... | 1 |
roackb2/express-trpc | 1793ade | client-cli/index.ts | TypeScript | www.github.com/roackb2/express-trpc/tree/main/client-cli/index.ts | https://raw.githubusercontent.com/roackb2/express-trpc/1793ade/client-cli/index.ts | roackb2/express-trpc 1793ade client-cli/index.ts | true | 200 | 389 | import { createTRPCProxyClient, httpBatchLink } from '@trpc/client'
import { AppRouter } from '@server/app'
import './polyfill'
const trpc = createTRPCProxyClient<AppRouter>({
links: [
httpBatchLink({
url: 'http://localhost:3000/trpc'
})
]
})
async function main() {
const user = await trpc.user.g... | 7 |
DashaMyagkova/WEB-backend | 92c15e1 | Lab3/src/modules/emails/services/emails.service.ts | TypeScript | www.github.com/DashaMyagkova/WEB-backend/tree/main/Lab3/src/modules/emails/services/emails.service.ts | https://raw.githubusercontent.com/DashaMyagkova/WEB-backend/92c15e1/Lab3/src/modules/emails/services/emails.service.ts | DashaMyagkova/WEB-backend 92c15e1 Lab3/src/modules/emails/services/emails.service.ts | true | 200 | 352 | import {Injectable} from '@nestjs/common';
import {MailerService, ISendMailOptions} from '@nestjs-modules/mailer';
@Injectable()
export class EmailsService {
constructor(
private readonly mailerService: MailerService,
) {
}
public send(options: ISendMailOptions) {
return this.mailerSer... | 2 |
bjornth2004/FullStackProjectHerexamen | 7342198 | back-end/controller/reactie.route.ts | TypeScript | www.github.com/bjornth2004/FullStackProjectHerexamen/tree/main/back-end/controller/reactie.route.ts | https://raw.githubusercontent.com/bjornth2004/FullStackProjectHerexamen/7342198/back-end/controller/reactie.route.ts | bjornth2004/FullStackProjectHerexamen 7342198 back-end/controller/reactie.route.ts | true | 200 | 7,984 | /**
* @swagger
* components:
* schemas:
* Reactie:
* type: object
* properties:
* id:
* type: number
* format: int64
* reviewtekst:
* type: string
* score:
* type: number
* format: float
* titel:
* ... | 0 |
MrJim-Dev/SyncUp | b60dfa0 | pages/api/roles/insert.ts | TypeScript | www.github.com/MrJim-Dev/SyncUp/tree/main/pages/api/roles/insert.ts | https://raw.githubusercontent.com/MrJim-Dev/SyncUp/b60dfa0/pages/api/roles/insert.ts | MrJim-Dev/SyncUp b60dfa0 pages/api/roles/insert.ts | true | 200 | 717 | // pages/api/roles/insert.ts
import { NextApiRequest, NextApiResponse } from "next";
import { RoleService } from "@/services/RoleService";
import { Role } from "@/models/Role";
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
if (req.method !== "POST") {
return res.status(405).... | 6 |
ww1659/cptc-bar | 8762a67 | pages/api/drinks.ts | TypeScript | www.github.com/ww1659/cptc-bar/tree/main/pages/api/drinks.ts | https://raw.githubusercontent.com/ww1659/cptc-bar/8762a67/pages/api/drinks.ts | ww1659/cptc-bar 8762a67 pages/api/drinks.ts | true | 200 | 726 | import type { NextApiRequest, NextApiResponse } from "next";
import { Drink } from "../../interfaces/Drink";
import { fetchDrinks } from "../../lib/drinks";
import { getAuth } from "@clerk/nextjs/server";
interface ErrorMessage {
message: string;
}
type DrinksResponse = Drink[] | ErrorMessage;
export default async... | 5 |
jiayinkong/mini-vue3 | e3cfdf7 | packages/runtime-core/src/apiWatch.ts | TypeScript | www.github.com/jiayinkong/mini-vue3/tree/main/packages/runtime-core/src/apiWatch.ts | https://raw.githubusercontent.com/jiayinkong/mini-vue3/e3cfdf7/packages/runtime-core/src/apiWatch.ts | jiayinkong/mini-vue3 e3cfdf7 packages/runtime-core/src/apiWatch.ts | true | 200 | 565 | import { ReactiveEffect } from '@mini-vue3/reactivity';
import { queuePreFlushCb } from './scheduler';
export function watchEffect(source) {
function job() {
effect.run();
}
let cleanup;
const onCleanup = function(fn) {
cleanup = effect.onStop = () => {
fn();
}
}
function getter() {
... | 1 |
Volodymyr-Mishyn/russian-losses-core | 649a930 | tests/data-scrapping/parameters/oryx-scrapping-parameters.spec.ts | TypeScript | www.github.com/Volodymyr-Mishyn/russian-losses-core/tree/main/tests/data-scrapping/parameters/oryx-scrapping-parameters.spec.ts | https://raw.githubusercontent.com/Volodymyr-Mishyn/russian-losses-core/649a930/tests/data-scrapping/parameters/oryx-scrapping-parameters.spec.ts | Volodymyr-Mishyn/russian-losses-core 649a930 tests/data-scrapping/parameters/oryx-scrapping-parameters.spec.ts | true | 200 | 1,120 | import { OryxTypes, OutputTypes } from 'src/_models/scrapping/scrapping-parameters';
import { OryxScrappingParametersImpl } from 'src/data-scrapping/parameters/oryx-scrapping-parameters';
describe('OryxScrappingParametersImpl', () => {
describe('getParameters', () => {
it('should return the correct parameters wi... | 2 |
JensDll/vscode-link-detection | 0d83f1f | src/providers/linkProvider.ts | TypeScript | www.github.com/JensDll/vscode-link-detection/tree/main/src/providers/linkProvider.ts | https://raw.githubusercontent.com/JensDll/vscode-link-detection/0d83f1f/src/providers/linkProvider.ts | JensDll/vscode-link-detection 0d83f1f src/providers/linkProvider.ts | true | 200 | 1,858 | import * as vscode from 'vscode'
export class LinkProvider implements vscode.DocumentLinkProvider {
provideDocumentLinks(
document: vscode.TextDocument
): vscode.ProviderResult<vscode.DocumentLink[]> {
const result: vscode.DocumentLink[] = []
const workspaceFolder = vscode.workspace.getWorkspaceFolder... | 3 |
jaymakes11/prompts4all | e75cf1d | src/utils.ts | TypeScript | www.github.com/jaymakes11/prompts4all/tree/main/src/utils.ts | https://raw.githubusercontent.com/jaymakes11/prompts4all/e75cf1d/src/utils.ts | jaymakes11/prompts4all e75cf1d src/utils.ts | true | 200 | 2,238 | import { marked } from 'marked'
import { mangle } from 'marked-mangle'
import { gfmHeadingId } from 'marked-gfm-heading-id'
marked.use(mangle(), gfmHeadingId())
export function wrapLinesInPTags(text: String) {
const lines = text.trim().split('\n')
const wrappedLines = lines.map((line) => `<p>${line.trim()}</p>`)
r... | 7 |
useTermite/useTermite | 9f0d16f | hooks/useList.ts | TypeScript | www.github.com/useTermite/useTermite/tree/main/hooks/useList.ts | https://raw.githubusercontent.com/useTermite/useTermite/9f0d16f/hooks/useList.ts | useTermite/useTermite 9f0d16f hooks/useList.ts | true | 200 | 1,576 | import { useState } from 'react';
import LinkedList from '../lib/linked-list';
// Initialize a new LinkedList
const list = new LinkedList();
// Define the custom hook
const useList = () => {
// Use a state variable to manage the list data
const [data, setData] = useState<Array<any>>(list.toArray());
// Helper ... | 0 |
ZachRauch/Grocery-App-FE | 7ca8754 | src/app/components/shoppinglist-add-item/shoppinglist-add-item.component.ts | TypeScript | www.github.com/ZachRauch/Grocery-App-FE/tree/main/src/app/components/shoppinglist-add-item/shoppinglist-add-item.component.ts | https://raw.githubusercontent.com/ZachRauch/Grocery-App-FE/7ca8754/src/app/components/shoppinglist-add-item/shoppinglist-add-item.component.ts | ZachRauch/Grocery-App-FE 7ca8754 src/app/components/shoppinglist-add-item/shoppinglist-add-item.component.ts | true | 200 | 1,197 | import { Component, OnInit } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { Item } from 'src/app/dataModels/Items';
import { UiService } from 'src/app/services/ui.service';
@Component({
selector: 'app-shoppinglist-add-item',
templateUrl: './shoppinglist-add-item.component.html... | 6 |
Lil-Kr/blog-system-single | 563d119 | react18-blog-admin/src/store/sys/orgStore.ts | TypeScript | www.github.com/Lil-Kr/blog-system-single/tree/main/react18-blog-admin/src/store/sys/orgStore.ts | https://raw.githubusercontent.com/Lil-Kr/blog-system-single/563d119/react18-blog-admin/src/store/sys/orgStore.ts | Lil-Kr/blog-system-single 563d119 react18-blog-admin/src/store/sys/orgStore.ts | true | 200 | 4,310 | import { create } from 'zustand'
import { TreeDataNode } from 'antd/lib'
import { OrgTableType, SysOrgListResp, SysOrgApi } from '@/types/apis/sys/org/orgType'
import { TablePageInfoType } from '@/types/base'
import { Key } from 'antd/lib/table/interface'
import { OptionType } from '@/types/apis'
import { orgApi } from... | 4 |
buithiendev/r8ckie_backend | 62a7841 | src/databases/init.mongodb.ts | TypeScript | www.github.com/buithiendev/r8ckie_backend/tree/main/src/databases/init.mongodb.ts | https://raw.githubusercontent.com/buithiendev/r8ckie_backend/62a7841/src/databases/init.mongodb.ts | buithiendev/r8ckie_backend 62a7841 src/databases/init.mongodb.ts | true | 200 | 1,020 | import mongoose from 'mongoose'
import configsApplication from '../configs/configs.application'
const { database } = configsApplication
const connectString: string = database.mongodb.host
class Database {
static instance: Database
constructor() {
this.connect()
}
connect() {
if (1 ==... | 1 |
wanoo21/ngb.email | 44a6506 | libs/tailwind-email-builder/src/lib/settings/image-upload/image-upload.component.ts | TypeScript | www.github.com/wanoo21/ngb.email/tree/main/libs/tailwind-email-builder/src/lib/settings/image-upload/image-upload.component.ts | https://raw.githubusercontent.com/wanoo21/ngb.email/44a6506/libs/tailwind-email-builder/src/lib/settings/image-upload/image-upload.component.ts | wanoo21/ngb.email 44a6506 libs/tailwind-email-builder/src/lib/settings/image-upload/image-upload.component.ts | true | 200 | 898 | import { ChangeDetectionStrategy, Component, input } from '@angular/core';
import { coerceBooleanProperty } from '@angular/cdk/coercion';
import { formViewProvider } from '../../directives/form-providers';
import {
FormInputDirective,
FormLabelDirective,
} from '../../directives/form/form-input.directive';
import ... | 7 |
int128/workflow-run-summary-action | 21e7933 | src/github.ts | TypeScript | www.github.com/int128/workflow-run-summary-action/tree/main/src/github.ts | https://raw.githubusercontent.com/int128/workflow-run-summary-action/21e7933/src/github.ts | int128/workflow-run-summary-action 21e7933 src/github.ts | true | 200 | 1,014 | import assert from 'assert'
import * as fs from 'fs/promises'
import { Octokit } from '@octokit/action'
import { WebhookEvent } from '@octokit/webhooks-types'
import { retry } from '@octokit/plugin-retry'
export const getOctokit = () => new (Octokit.plugin(retry))()
export type Context = {
repo: {
owner: string... | 2 |
RepComm/yarr-old | ceeee57 | pb_public/src/db.ts | TypeScript | www.github.com/RepComm/yarr-old/tree/main/pb_public/src/db.ts | https://raw.githubusercontent.com/RepComm/yarr-old/ceeee57/pb_public/src/db.ts | RepComm/yarr-old ceeee57 pb_public/src/db.ts | true | 200 | 5,154 |
import PocketBase, { RecordAuthResponse, RecordSubscription } from "pocketbase";
import { state } from "./state.js";
export interface DBState {
dbUrl?: string;
db?: PocketBase;
}
export const dbState: DBState = {
};
export async function db_init () {
dbState.dbUrl = `${state.ssl ? "https" : "http"}://${sta... | 3 |
gustavomorinaga/copyscotch | 28a7e37 | src/lib/utils/parallel/parallel.util.ts | TypeScript | www.github.com/gustavomorinaga/copyscotch/tree/main/src/lib/utils/parallel/parallel.util.ts | https://raw.githubusercontent.com/gustavomorinaga/copyscotch/28a7e37/src/lib/utils/parallel/parallel.util.ts | gustavomorinaga/copyscotch 28a7e37 src/lib/utils/parallel/parallel.util.ts | true | 200 | 485 | /* eslint-disable ts/no-explicit-any */
/**
* Executes an array of functions in parallel and returns an array of their results.
*
* @param functions - An array of functions to execute in parallel.
* @returns A promise that resolves to an array of the results of the executed functions.
*/
export function executePa... | 5 |
vaibhav-sarwade-404/vs-schema-validator | 74b3342 | src/utils/validations.ts | TypeScript | www.github.com/vaibhav-sarwade-404/vs-schema-validator/tree/main/src/utils/validations.ts | https://raw.githubusercontent.com/vaibhav-sarwade-404/vs-schema-validator/74b3342/src/utils/validations.ts | vaibhav-sarwade-404/vs-schema-validator 74b3342 src/utils/validations.ts | true | 200 | 7,497 | import { Logger } from "@vs-org/logger";
import {
GenericObject,
Properties,
PropetyType
} from "../types/SchemaValidator.types";
const logger = Logger.getInstance();
const fileName = "validations";
const emailRegex =
/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^... | 0 |
helton-evambi/karapinha-xpto-front-angular17 | e8a44b6 | src/app/pages/confirm-booking/confirm-booking.component.ts | TypeScript | www.github.com/helton-evambi/karapinha-xpto-front-angular17/tree/main/src/app/pages/confirm-booking/confirm-booking.component.ts | https://raw.githubusercontent.com/helton-evambi/karapinha-xpto-front-angular17/e8a44b6/src/app/pages/confirm-booking/confirm-booking.component.ts | helton-evambi/karapinha-xpto-front-angular17 e8a44b6 src/app/pages/confirm-booking/confirm-booking.component.ts | true | 200 | 2,405 | import { Component, OnInit, inject } from '@angular/core';
import { BookingComponent } from '../booking/booking.component';
import { AsyncPipe, NgIf } from '@angular/common';
import { BookingService } from '../../services/booking.service';
import { Booking } from '../../models/booking.model';
import { Observable } from... | 1 |
Clingling111/vue3_ts_cms | c513788 | src/store/login/login.ts | TypeScript | www.github.com/Clingling111/vue3_ts_cms/tree/main/src/store/login/login.ts | https://raw.githubusercontent.com/Clingling111/vue3_ts_cms/c513788/src/store/login/login.ts | Clingling111/vue3_ts_cms c513788 src/store/login/login.ts | true | 200 | 2,954 | import { defineStore } from 'pinia'
import {
accountLoginRequest,
getUserMenusByRoleId,
getUserInfoById
} from '@/service/login/login'
import {
mapMenuslistToPermission,
mapMenuToRoute
} from '@/utlis/mapMenuToRoute'
import type { IAccount } from '@/views/login/types'
import router from '@/router'
import { us... | 6 |
Aeroplani-di-carta/petitepatisserie | 248ade7 | nuxt.config.ts | TypeScript | www.github.com/Aeroplani-di-carta/petitepatisserie/tree/main/nuxt.config.ts | https://raw.githubusercontent.com/Aeroplani-di-carta/petitepatisserie/248ade7/nuxt.config.ts | Aeroplani-di-carta/petitepatisserie 248ade7 nuxt.config.ts | true | 200 | 1,111 | // https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: false,
nitro: {
preset: "netlify-static",
},
routeRules: {
"/**": { isr: 86400 },
},
devtools: { enabled: true },
css: ["~~/assets/css/app.css", "~~/assets/css/tailwind.pcss"],
postcss: {
plugins:... | 4 |
sgaluza/fs-whatsapp-bot | 7764bb9 | clients/twilioClient.ts | TypeScript | www.github.com/sgaluza/fs-whatsapp-bot/tree/main/clients/twilioClient.ts | https://raw.githubusercontent.com/sgaluza/fs-whatsapp-bot/7764bb9/clients/twilioClient.ts | sgaluza/fs-whatsapp-bot 7764bb9 clients/twilioClient.ts | true | 200 | 367 | import Twilio from 'twilio';
// Load your Twilio credentials from environment variables or a configuration file
const accountSid = process.env.TWILIO_SID; // Your Twilio Account SID
const authToken = process.env.TWILIO_SECRET; // Your Twilio Auth Token
// Initialize the Twilio client
const twilioClient = Twilio(acc... | 7 |
goodeats/nestjs-task-management | ecc1755 | src/auth/auth.module.ts | TypeScript | www.github.com/goodeats/nestjs-task-management/tree/main/src/auth/auth.module.ts | https://raw.githubusercontent.com/goodeats/nestjs-task-management/ecc1755/src/auth/auth.module.ts | goodeats/nestjs-task-management ecc1755 src/auth/auth.module.ts | true | 200 | 1,118 | import { Module } from '@nestjs/common';
import { AuthService } from './auth.service';
import { AuthController } from './auth.controller';
import { User } from './user.entity';
import {
TypeOrmModule,
getDataSourceToken,
getRepositoryToken,
} from '@nestjs/typeorm';
import { DataSource } from 'typeorm';
import { ... | 2 |
R1013-T/kyobyonikki | 621336b | app/api/db/create-record-content-table/route.ts | TypeScript | www.github.com/R1013-T/kyobyonikki/tree/main/app/api/db/create-record-content-table/route.ts | https://raw.githubusercontent.com/R1013-T/kyobyonikki/621336b/app/api/db/create-record-content-table/route.ts | R1013-T/kyobyonikki 621336b app/api/db/create-record-content-table/route.ts | true | 200 | 761 | import { sql } from '@vercel/postgres'
import { NextResponse } from 'next/server'
export async function GET(request: Request) {
try {
await sql`CREATE EXTENSION IF NOT EXISTS "uuid-ossp"`
const create_table = await sql`
CREATE TABLE IF NOT EXISTS record_content (
id UUID DEFAULT uuid_generate_v... | 3 |
ecorreialourenco/blog-app | 5267e8e | frontent/src/queries/post.ts | TypeScript | www.github.com/ecorreialourenco/blog-app/tree/main/frontent/src/queries/post.ts | https://raw.githubusercontent.com/ecorreialourenco/blog-app/5267e8e/frontent/src/queries/post.ts | ecorreialourenco/blog-app 5267e8e frontent/src/queries/post.ts | true | 200 | 1,556 | import { gql } from "@apollo/client";
export const LIST_POST = gql`
query listPosts($userId: ID!, $page: Int) {
listPosts(userId: $userId, page: $page) {
posts {
id
title
text
createdAt
updatedAt
}
totalPages
}
}
`;
export const CREATE_POST_SUBSCRI... | 5 |
bryanmonterom/pcstore | 7df2044 | lib/actions/user.actions.ts | TypeScript | www.github.com/bryanmonterom/pcstore/tree/main/lib/actions/user.actions.ts | https://raw.githubusercontent.com/bryanmonterom/pcstore/7df2044/lib/actions/user.actions.ts | bryanmonterom/pcstore 7df2044 lib/actions/user.actions.ts | true | 200 | 6,290 | 'use server';
import {
paymentMethodSchema,
shippingAddressSchema,
signInFormShema,
signUpFormShema,
updateUserSchema,
} from '../validators';
import { auth, signIn } from '@/auth';
import { isRedirectError } from 'next/dist/client/components/redirect-error';
import { hashSync } from 'bcrypt-ts-edge';
import... | 0 |
digital-codes/datencafe | b159133 | src/classes/DataInfo.ts | TypeScript | www.github.com/digital-codes/datencafe/tree/main/src/classes/DataInfo.ts | https://raw.githubusercontent.com/digital-codes/datencafe/b159133/src/classes/DataInfo.ts | digital-codes/datencafe b159133 src/classes/DataInfo.ts | true | 200 | 4,117 | // csv node class, extends DcNode
import { DcNode } from "./DcNode"
import { SigPort } from "./DcNode"
import { NodeSpec } from '@/services/GlobalDefs';
import { DelayTimer } from "@/services/DelayTimer"
import { StorageTypes } from "@/services/GlobalDefs";
export class DataInfo extends DcNode {
// propert... | 1 |
tapioca24/glicko2-simulation | 6590ae6 | src/main.ts | TypeScript | www.github.com/tapioca24/glicko2-simulation/tree/main/src/main.ts | https://raw.githubusercontent.com/tapioca24/glicko2-simulation/6590ae6/src/main.ts | tapioca24/glicko2-simulation 6590ae6 src/main.ts | true | 200 | 439 | import Chart from "chart.js/auto";
const ctx = document.getElementById("myChart") as HTMLCanvasElement;
const chart = new Chart(ctx, {
type: "bar",
data: {
labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
datasets: [
{
label: "# of Votes",
data: [12, 19, 3, 5, 2, 3],
... | 6 |
Ogkpos/social-causes-and-contributions | 3bb4397 | src/controllers/update-a-cause.ts | TypeScript | www.github.com/Ogkpos/social-causes-and-contributions/tree/main/src/controllers/update-a-cause.ts | https://raw.githubusercontent.com/Ogkpos/social-causes-and-contributions/3bb4397/src/controllers/update-a-cause.ts | Ogkpos/social-causes-and-contributions 3bb4397 src/controllers/update-a-cause.ts | true | 200 | 737 | import express, { Request, Response } from "express";
import prisma from "../services/prisma-client";
export const updateACause = async (req: Request, res: Response) => {
try {
const { id } = req.params;
const { name, category, description } = req.body;
const existingCause = await prisma.cause.findUnique... | 4 |
Vladislavkapusta/Pipes-ANGULAR | 6f7a1e6 | src/app/components/pipe-example/pipe-example.component.ts | TypeScript | www.github.com/Vladislavkapusta/Pipes-ANGULAR/tree/main/src/app/components/pipe-example/pipe-example.component.ts | https://raw.githubusercontent.com/Vladislavkapusta/Pipes-ANGULAR/6f7a1e6/src/app/components/pipe-example/pipe-example.component.ts | Vladislavkapusta/Pipes-ANGULAR 6f7a1e6 src/app/components/pipe-example/pipe-example.component.ts | true | 200 | 544 | import { CurrencyPipe, DatePipe, LowerCasePipe, PercentPipe } from '@angular/common';
import { Component } from '@angular/core';
import { initCapPipe } from '../../pipes/initPipe.pipe';
@Component({
selector: 'app-pipe-example',
standalone: true,
imports: [LowerCasePipe, DatePipe, CurrencyPipe, PercentPipe, init... | 7 |
typedoc2md/typedoc-plugin-markdown | db7188a | packages/typedoc-plugin-markdown/src/theme/context/partials/type.literal.ts | TypeScript | www.github.com/typedoc2md/typedoc-plugin-markdown/tree/main/packages/typedoc-plugin-markdown/src/theme/context/partials/type.literal.ts | https://raw.githubusercontent.com/typedoc2md/typedoc-plugin-markdown/db7188a/packages/typedoc-plugin-markdown/src/theme/context/partials/type.literal.ts | typedoc2md/typedoc-plugin-markdown db7188a packages/typedoc-plugin-markdown/src/theme/context/partials/type.literal.ts | true | 200 | 328 | import { MarkdownThemeContext } from '@plugin/theme/index.js';
import { LiteralType } from 'typedoc';
export function literalType(
this: MarkdownThemeContext,
model: LiteralType,
): string {
if (typeof model.value === 'bigint') {
return `\`${model.value}n\``;
}
return `\`\`${JSON.stringify(model.value)}\... | 2 |
Shivasaicmi/tasktrackerangular | d4e05a3 | src/app/component/add-task/add-task.component.ts | TypeScript | www.github.com/Shivasaicmi/tasktrackerangular/tree/main/src/app/component/add-task/add-task.component.ts | https://raw.githubusercontent.com/Shivasaicmi/tasktrackerangular/d4e05a3/src/app/component/add-task/add-task.component.ts | Shivasaicmi/tasktrackerangular d4e05a3 src/app/component/add-task/add-task.component.ts | true | 200 | 810 | import { Component, EventEmitter, OnInit, Output } from '@angular/core';
import { Task } from 'src/app/types/tasks';
@Component({
selector: 'app-add-task',
templateUrl: './add-task.component.html',
styleUrls: ['./add-task.component.css']
})
export class AddTaskComponent implements OnInit {
taskName!:string
d... | 3 |
paulfears/origamiAPI | 2b0586d | netlify/functions/createaccount.ts | TypeScript | www.github.com/paulfears/origamiAPI/tree/main/netlify/functions/createaccount.ts | https://raw.githubusercontent.com/paulfears/origamiAPI/2b0586d/netlify/functions/createaccount.ts | paulfears/origamiAPI 2b0586d netlify/functions/createaccount.ts | true | 200 | 3,808 | import {Keypair} from 'stellar-base';
import { returnResponse } from '../../functionUtils';
import nacl from 'tweetnacl';
import { Handler, HandlerEvent, HandlerContext } from '@netlify/functions';
async function postData(url, data = {}) {
// Default options are marked with *
console.log("token is");
cons... | 5 |
munimulinfo/University-Management-Backend | cccc5d6 | src/app/modules/academicDepertment/academicDepertment.contolars.ts | TypeScript | www.github.com/munimulinfo/University-Management-Backend/tree/main/src/app/modules/academicDepertment/academicDepertment.contolars.ts | https://raw.githubusercontent.com/munimulinfo/University-Management-Backend/cccc5d6/src/app/modules/academicDepertment/academicDepertment.contolars.ts | munimulinfo/University-Management-Backend cccc5d6 src/app/modules/academicDepertment/academicDepertment.contolars.ts | true | 200 | 1,932 | import httpStatus from 'http-status';
import catchAsync from '../../utils/catchAsync';
import sendResponse from '../../utils/sendResponse';
import { AcademicDepertmentServices } from './academicDepertment.service';
const createAcademicDepertMent = catchAsync(async (req, res) => {
const depertmentData = req.body;
c... | 0 |
cpf23333/file-note | 4bd160f | src/utils/utils.ts | TypeScript | www.github.com/cpf23333/file-note/tree/main/src/utils/utils.ts | https://raw.githubusercontent.com/cpf23333/file-note/4bd160f/src/utils/utils.ts | cpf23333/file-note 4bd160f src/utils/utils.ts | true | 200 | 10,018 | import * as vscode from "vscode";
import * as fs from "fs";
import * as Path from "path";
import { defaultFileName, fileName, setFileName } from "../config/index";
import { eventr } from "./eventer";
/**
* 备注提示注册器
*/
export class NoteDecorationProvider {
public disposables;
constructor() {
this.disposables = ... | 1 |
jaskuen/site-constructor | 9754baa | Application/Web/src/app/app.routes.ts | TypeScript | www.github.com/jaskuen/site-constructor/tree/main/Application/Web/src/app/app.routes.ts | https://raw.githubusercontent.com/jaskuen/site-constructor/9754baa/Application/Web/src/app/app.routes.ts | jaskuen/site-constructor 9754baa Application/Web/src/app/app.routes.ts | true | 200 | 421 | import { Routes } from '@angular/router';
import {MainComponent} from "./blocks/main/main.component";
import {LoginComponent} from "./blocks/auth/login/login.component";
import {RegisterComponent} from "./blocks/auth/register/register.component";
export const routes: Routes = [
{path: "login", component: LoginCompon... | 6 |
awesomecuber/the-crew | 0ca9adf | back/src/task.ts | TypeScript | www.github.com/awesomecuber/the-crew/tree/main/back/src/task.ts | https://raw.githubusercontent.com/awesomecuber/the-crew/0ca9adf/back/src/task.ts | awesomecuber/the-crew 0ca9adf back/src/task.ts | true | 200 | 767 | import { Card } from "./card";
import { TaskToken } from "./header";
export class Task {
card: Card; // the card that you must win to complete the task
isComplete: boolean; // whether the task is completed
token: TaskToken; // the task token applied to the card
constructor(card: Card, token: TaskToke... | 4 |
edwardsmale/string-tools-react | 76b6cf9 | src/services/commands/replace-command.ts | TypeScript | www.github.com/edwardsmale/string-tools-react/tree/main/src/services/commands/replace-command.ts | https://raw.githubusercontent.com/edwardsmale/string-tools-react/76b6cf9/src/services/commands/replace-command.ts | edwardsmale/string-tools-react 76b6cf9 src/services/commands/replace-command.ts | true | 200 | 2,469 | import { Explanation, IndividualLineCommand } from '../../interfaces/CommandInterfaces';
import { Context } from '../../interfaces/Context';
export class ReplaceCommand extends IndividualLineCommand {
Name = "replace"
Help = {
Desc: "Replaces text that matches the current regex or search string",
... | 2 |
amar74/trajdim | 5e21d8b | src/router_controller/teams/controller/schedule_get_controller.ts | TypeScript | www.github.com/amar74/trajdim/tree/main/src/router_controller/teams/controller/schedule_get_controller.ts | https://raw.githubusercontent.com/amar74/trajdim/5e21d8b/src/router_controller/teams/controller/schedule_get_controller.ts | amar74/trajdim 5e21d8b src/router_controller/teams/controller/schedule_get_controller.ts | true | 200 | 592 | import prisma from "../../../config/helper";
import { Request, Response } from "express";
interface AuthenticatedRequest extends Request {
user?: any;
}
export const teamsGetSchdule = async (
req: AuthenticatedRequest,
res: Response
): Promise<any> => {
try {
const teams = await prisma.schedule.update({
... | 7 |
radoslawbiesek/aoc2022 | 42aca81 | day23/index.ts | TypeScript | www.github.com/radoslawbiesek/aoc2022/tree/main/day23/index.ts | https://raw.githubusercontent.com/radoslawbiesek/aoc2022/42aca81/day23/index.ts | radoslawbiesek/aoc2022 42aca81 day23/index.ts | true | 200 | 4,673 | type Position = [x: number, y: number];
type DirectionFns = [
findAll: (pos: Position) => Position[],
findDirection: (pos: Position) => Position
];
function parseInput(list: string[]): Position[] {
const positions: Position[] = [];
list.forEach((line, y) => {
line.split('').forEach((char, x) => {
if... | 3 |
Raju-Pinnam/exam-frontend | 9f35b25 | src/app/app.module.ts | TypeScript | www.github.com/Raju-Pinnam/exam-frontend/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/Raju-Pinnam/exam-frontend/9f35b25/src/app/app.module.ts | Raju-Pinnam/exam-frontend 9f35b25 src/app/app.module.ts | true | 200 | 1,146 | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { MainModule } from './main/main.module';
import { AuthModule } from './auth/auth.module';
import { Routes, RouterModule } from '@angular/router';
import { HttpCli... | 5 |
Woosyun/taggit-tauri | 2a7d16c | src/prosemirror/official/keymap.ts | TypeScript | www.github.com/Woosyun/taggit-tauri/tree/main/src/prosemirror/official/keymap.ts | https://raw.githubusercontent.com/Woosyun/taggit-tauri/2a7d16c/src/prosemirror/official/keymap.ts | Woosyun/taggit-tauri 2a7d16c src/prosemirror/official/keymap.ts | true | 200 | 4,692 | import { base, keyName } from "w3c-keyname"
import { Plugin, Command } from "prosemirror-state"
import { EditorView } from "prosemirror-view"
const mac = typeof navigator != "undefined" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : false
function normalizeKeyName(name: string) {
let parts = name.split(/-(?!$)... | 0 |
xlaobai/multi-components | 2061202 | build/vite.config.ts | TypeScript | www.github.com/xlaobai/multi-components/tree/main/build/vite.config.ts | https://raw.githubusercontent.com/xlaobai/multi-components/2061202/build/vite.config.ts | xlaobai/multi-components 2061202 build/vite.config.ts | true | 200 | 1,787 | import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
// // https://vitejs.dev/config/
export default defineConfig(({ command, mode, ssrBuild }):any => {
console.log("🚀 ~ file: vite.config.ts:6 ~ defineConfig ~ ssrBuild:", ssrBuild)
console.log("🚀 ~ file: vite.config.ts:6 ~ defineConf... | 1 |
ferrumgate/manage | 6b8883e | ui.portal/src/app/modules/manage/settings/ipintelligence/config-ip-intelligence-routing.module.ts | TypeScript | www.github.com/ferrumgate/manage/tree/main/ui.portal/src/app/modules/manage/settings/ipintelligence/config-ip-intelligence-routing.module.ts | https://raw.githubusercontent.com/ferrumgate/manage/6b8883e/ui.portal/src/app/modules/manage/settings/ipintelligence/config-ip-intelligence-routing.module.ts | ferrumgate/manage 6b8883e ui.portal/src/app/modules/manage/settings/ipintelligence/config-ip-intelligence-routing.module.ts | true | 200 | 415 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ConfigIpIntelligenceComponent } from './config-ip-intelligence.component';
const routes: Routes = [
{
path: '',
component: ConfigIpIntelligenceComponent
}
];
@NgModule({
imports: [RouterModule.forC... | 4 |
sdornel/goal-tracker | 7a2d370 | frontend-goal-tracker/src/app/login/user-register/user-register.component.spec.ts | TypeScript | www.github.com/sdornel/goal-tracker/tree/main/frontend-goal-tracker/src/app/login/user-register/user-register.component.spec.ts | https://raw.githubusercontent.com/sdornel/goal-tracker/7a2d370/frontend-goal-tracker/src/app/login/user-register/user-register.component.spec.ts | sdornel/goal-tracker 7a2d370 frontend-goal-tracker/src/app/login/user-register/user-register.component.spec.ts | true | 200 | 755 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { UserRegisterComponent } from './user-register.component';
import { HttpClientTestingModule } from '@angular/common/http/testing';
describe('UserRegisterComponent', () => {
let component: UserRegisterComponent;
let fixture: ComponentFixtur... | 6 |
ggonpereira/my-time-capsule-backend | 4f1c25e | src/routes/auth.ts | TypeScript | www.github.com/ggonpereira/my-time-capsule-backend/tree/main/src/routes/auth.ts | https://raw.githubusercontent.com/ggonpereira/my-time-capsule-backend/4f1c25e/src/routes/auth.ts | ggonpereira/my-time-capsule-backend 4f1c25e src/routes/auth.ts | true | 200 | 1,787 | import { FastifyInstance } from 'fastify'
import axios from 'axios'
import { z } from 'zod'
import { prisma } from '../lib/prisma'
const GITHUB_CLIENT_ID = process.env.GITHUB_CLIENT_ID || ''
const GITHUB_CLIENT_SECRET = process.env.GITHUB_CLIENT_SECRET || ''
const bodySchema = z.object({
code: z.string(),
... | 7 |
MaddoxGraham/TimeToToast | e817ce1 | TimeToToastApp/src/app/core/interceptor/index.ts | TypeScript | www.github.com/MaddoxGraham/TimeToToast/tree/main/TimeToToastApp/src/app/core/interceptor/index.ts | https://raw.githubusercontent.com/MaddoxGraham/TimeToToast/e817ce1/TimeToToastApp/src/app/core/interceptor/index.ts | MaddoxGraham/TimeToToast e817ce1 TimeToToastApp/src/app/core/interceptor/index.ts | true | 200 | 297 | import { HTTP_INTERCEPTORS } from '@angular/common/http';
import { retry } from 'rxjs';
import { AuthInterceptor } from './auth-interceptor/auth-interceptor.service';
export const httpInterceptorProviders = [
{ provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true },
retry
];
| 2 |
Geo-Query/GeoQuery | e363137 | frontend/src/content/services/fileCopierService.ts | TypeScript | www.github.com/Geo-Query/GeoQuery/tree/main/frontend/src/content/services/fileCopierService.ts | https://raw.githubusercontent.com/Geo-Query/GeoQuery/e363137/frontend/src/content/services/fileCopierService.ts | Geo-Query/GeoQuery e363137 frontend/src/content/services/fileCopierService.ts | true | 200 | 1,229 | import fs from 'fs/promises';
import path from 'path';
// Helper function to copy files
async function copyFiles(files, targetDirectory) {
for (const file of files) {
const targetPath = path.join(targetDirectory, path.basename(file));
console.info(`Copying file ${file} to ${targetPath}`);
await fs.copyFi... | 3 |
santos-alisson/angular-pokemon-search | 42577b6 | src/app/shared/services/pokemon-sharing.service.spec.ts | TypeScript | www.github.com/santos-alisson/angular-pokemon-search/tree/main/src/app/shared/services/pokemon-sharing.service.spec.ts | https://raw.githubusercontent.com/santos-alisson/angular-pokemon-search/42577b6/src/app/shared/services/pokemon-sharing.service.spec.ts | santos-alisson/angular-pokemon-search 42577b6 src/app/shared/services/pokemon-sharing.service.spec.ts | true | 200 | 398 | import { TestBed } from '@angular/core/testing';
import { PokemonSharingService } from './pokemon-sharing.service';
describe('PokemonSharingService', () => {
let service: PokemonSharingService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(PokemonSharingService);
});
... | 5 |
ClayenKitten/notes | 411ad69 | src/index.ts | TypeScript | www.github.com/ClayenKitten/notes/tree/main/src/index.ts | https://raw.githubusercontent.com/ClayenKitten/notes/411ad69/src/index.ts | ClayenKitten/notes 411ad69 src/index.ts | true | 200 | 322 | import { Telegraf } from "telegraf";
import createApp from "./app";
import startBot from "./tg";
let { bot, oauth } = await startBot({ token: process.env.TG_BOT_TOKEN! });
let app = await createApp({ oauth });
app.listen(3000);
console.log(
`🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}`
);
| 1 |
celestialmachine/ssb_webapp | 2394664 | src/app/components/item-list-components/budget-item/budget-item.component.ts | TypeScript | www.github.com/celestialmachine/ssb_webapp/tree/main/src/app/components/item-list-components/budget-item/budget-item.component.ts | https://raw.githubusercontent.com/celestialmachine/ssb_webapp/2394664/src/app/components/item-list-components/budget-item/budget-item.component.ts | celestialmachine/ssb_webapp 2394664 src/app/components/item-list-components/budget-item/budget-item.component.ts | true | 200 | 2,683 | import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';
import { BudgetItemDto } from '../budget-item/budget-item-dto';
import { FormBuilder, FormGroup, FormControl } from '@angular/forms';
import { DayDisplayServiceService } from '../../../day-display-service.service';
@Component({
selector:... | 4 |
Housseem-Kouki/frontelearning | 62a50cc | src/app/componentss/+3USERS/link-password/link-password.component.ts | TypeScript | www.github.com/Housseem-Kouki/frontelearning/tree/main/src/app/componentss/+3USERS/link-password/link-password.component.ts | https://raw.githubusercontent.com/Housseem-Kouki/frontelearning/62a50cc/src/app/componentss/%2B3USERS/link-password/link-password.component.ts | Housseem-Kouki/frontelearning 62a50cc src/app/componentss/+3USERS/link-password/link-password.component.ts | true | 200 | 3,088 | import { Component, OnInit } from '@angular/core';
import { UserService } from '../../../services/user.service';
import { Router } from '@angular/router';
import { ActivatedRoute } from '@angular/router';
@Component({
selector: 'app-link-password',
templateUrl: './link-password.component.html',
styleUrl: './link... | 6 |
PolGubau/pol-ui | 115acc6 | packages/ui/vitest.setup.ts | TypeScript | www.github.com/PolGubau/pol-ui/tree/main/packages/ui/vitest.setup.ts | https://raw.githubusercontent.com/PolGubau/pol-ui/115acc6/packages/ui/vitest.setup.ts | PolGubau/pol-ui 115acc6 packages/ui/vitest.setup.ts | true | 200 | 390 | import "@testing-library/jest-dom";
import * as matchers from "@testing-library/jest-dom/matchers";
import { expect, vi } from "vitest";
expect.extend(matchers);
// Mock the ResizeObserver
const ResizeObserverMock = vi.fn(() => ({
observe: vi.fn(),
unobserve: vi.fn(),
disconnect: vi.fn(),
}));
// Stub the globa... | 2 |
thiagoSalaberry/test-guemes-uno | af6f6b1 | src/state.ts | TypeScript | www.github.com/thiagoSalaberry/test-guemes-uno/tree/main/src/state.ts | https://raw.githubusercontent.com/thiagoSalaberry/test-guemes-uno/af6f6b1/src/state.ts | thiagoSalaberry/test-guemes-uno af6f6b1 src/state.ts | true | 200 | 1,648 | // const API_BASE_URL = "http://localhost:4444";
import { API_BASE_URL } from "./rtdb";
import {rtdb} from "./rtdb";
const state = {
data: {},
listeners: [],
getState() {
return this.data;
},
setState(newState) {
this.data = newState;
this.listeners.forEach(listener => liste... | 7 |
AwesomeDev123/EduardoGuevara124 | efa3cdc | FrontCMS-develop/src/app/appuploads/services/appupload.service.ts | TypeScript | www.github.com/AwesomeDev123/EduardoGuevara124/tree/main/FrontCMS-develop/src/app/appuploads/services/appupload.service.ts | https://raw.githubusercontent.com/AwesomeDev123/EduardoGuevara124/efa3cdc/FrontCMS-develop/src/app/appuploads/services/appupload.service.ts | AwesomeDev123/EduardoGuevara124 efa3cdc FrontCMS-develop/src/app/appuploads/services/appupload.service.ts | true | 200 | 1,035 | import {Injectable} from '@angular/core';
import {HttpClient, HttpHeaders, HttpRequest, HttpEvent} from '@angular/common/http';
import {Observable} from 'rxjs';
import {map} from 'rxjs/operators';
@Injectable({
providedIn: 'root'
})
export class AppUploadService {
private baseUrl = 'http://localhost:8080';
... | 3 |
xuanthao18122000/ecommerce-crm-react | 923f193 | src/features/employee/constant.ts | TypeScript | www.github.com/xuanthao18122000/ecommerce-crm-react/tree/main/src/features/employee/constant.ts | https://raw.githubusercontent.com/xuanthao18122000/ecommerce-crm-react/923f193/src/features/employee/constant.ts | xuanthao18122000/ecommerce-crm-react 923f193 src/features/employee/constant.ts | true | 200 | 1,131 | import { COLOR, EMPLOYEE_PATH } from '@/data/constant';
export const EMPLOYEE_NAME = 'nhân viên';
export const EMPLOYEE_BREADCRUMBS = {
list: [
{
title: `Danh sách ${EMPLOYEE_NAME}`,
},
],
listPath: {
title: `Danh sách ${EMPLOYEE_NAME}`,
url: EMPLOYEE_PATH,
},
detail: () => [
EMPLOY... | 5 |
Manar-sayed/angularTask | 11c8488 | src/app/student/student-list/student-list.component.ts | TypeScript | www.github.com/Manar-sayed/angularTask/tree/main/src/app/student/student-list/student-list.component.ts | https://raw.githubusercontent.com/Manar-sayed/angularTask/11c8488/src/app/student/student-list/student-list.component.ts | Manar-sayed/angularTask 11c8488 src/app/student/student-list/student-list.component.ts | true | 200 | 1,049 | import { Component,Output,EventEmitter } from '@angular/core';
import { Student } from 'src/app/_models/student';
import { StudentService } from 'src/app/_services/student.service';
@Component({
selector: 'app-student-list',
templateUrl: './student-list.component.html',
styleUrls: ['./student-list.component.css'... | 1 |
BollesMedia/graphql-request | 8c618bc | src/index.ts | TypeScript | www.github.com/BollesMedia/graphql-request/tree/main/src/index.ts | https://raw.githubusercontent.com/BollesMedia/graphql-request/8c618bc/src/index.ts | BollesMedia/graphql-request 8c618bc src/index.ts | true | 200 | 1,044 | import type { TypedDocumentNode } from "@graphql-typed-document-node/core";
import { print } from "graphql";
export function createClient(url: string, options?: RequestInit) {
const { headers, ...rest } = options || {};
async function request<TResult, TVariables>(
document: TypedDocumentNode<TResult, TVariabl... | 4 |
Mike-Camus223/NovaCapital | 55ede33 | src/app/features/public/components/doblepage/doblepage.component.ts | TypeScript | www.github.com/Mike-Camus223/NovaCapital/tree/main/src/app/features/public/components/doblepage/doblepage.component.ts | https://raw.githubusercontent.com/Mike-Camus223/NovaCapital/55ede33/src/app/features/public/components/doblepage/doblepage.component.ts | Mike-Camus223/NovaCapital 55ede33 src/app/features/public/components/doblepage/doblepage.component.ts | true | 200 | 803 | import { Component, Input, input, OnInit } from '@angular/core';
import { DataGeneralService } from '../../../../core/services/data-general.service';
import { PageDoubleDataInter } from '../../../../core/models/doblePage.interface';
@Component({
selector: 'app-doblepage',
templateUrl: './doblepage.component.html',... | 6 |
eresearchqut/monocle | 48522c4 | packages/form-compiler/src/inputCompiler/markdownInputCompiler.ts | TypeScript | www.github.com/eresearchqut/monocle/tree/main/packages/form-compiler/src/inputCompiler/markdownInputCompiler.ts | https://raw.githubusercontent.com/eresearchqut/monocle/48522c4/packages/form-compiler/src/inputCompiler/markdownInputCompiler.ts | eresearchqut/monocle 48522c4 packages/form-compiler/src/inputCompiler/markdownInputCompiler.ts | true | 200 | 807 | import { InputCompiler } from '../interfaces';
import { JsonSchema, UISchemaElement } from '@jsonforms/core';
import { Form, Input, MarkdownInput, Section } from '@eresearchqut/form-definition';
import { AbstractInputCompiler } from './abstractInputCompiler';
export class MarkdownInputCompiler extends AbstractInputCom... | 3 |
MarioCesarCF/microservice_notifications_Ignite_Lab | e40f72d | src/app/use-cases/unread-notification.spec.ts | TypeScript | www.github.com/MarioCesarCF/microservice_notifications_Ignite_Lab/tree/main/src/app/use-cases/unread-notification.spec.ts | https://raw.githubusercontent.com/MarioCesarCF/microservice_notifications_Ignite_Lab/e40f72d/src/app/use-cases/unread-notification.spec.ts | MarioCesarCF/microservice_notifications_Ignite_Lab e40f72d src/app/use-cases/unread-notification.spec.ts | true | 200 | 1,315 | import { makeNotification } from '@test/factories/notification-factory';
import { InMemoryNotificationRepository } from '@test/repositories/in-memory-repositorei';
import { NotificationNotFound } from './errors/notification-not-found';
import { ReadNotification } from './read-notification';
import { UnreadNotification ... | 2 |
maggie-xun/xun-mini-vue | c7886ac | src/runtime-core/componentEmit.ts | TypeScript | www.github.com/maggie-xun/xun-mini-vue/tree/main/src/runtime-core/componentEmit.ts | https://raw.githubusercontent.com/maggie-xun/xun-mini-vue/c7886ac/src/runtime-core/componentEmit.ts | maggie-xun/xun-mini-vue c7886ac src/runtime-core/componentEmit.ts | true | 200 | 339 | import {cemalize,toHandlerKey} from '../shared/index'
export function emit(instance, event, ...args) {
console.log('event ' + event)
const { props } = instance
console.log(props)
//TPP 先去写一个特定行为,再重构成通用行为
const handler = props[cemalize(toHandlerKey(event))]
handler && handler(...args)
}
| 7 |
LogicmanGitHub/angular-basicos-repaso | a89b2e5 | src/app/heroes/heroe/heroe.component.ts | TypeScript | www.github.com/LogicmanGitHub/angular-basicos-repaso/tree/main/src/app/heroes/heroe/heroe.component.ts | https://raw.githubusercontent.com/LogicmanGitHub/angular-basicos-repaso/a89b2e5/src/app/heroes/heroe/heroe.component.ts | LogicmanGitHub/angular-basicos-repaso a89b2e5 src/app/heroes/heroe/heroe.component.ts | true | 200 | 473 | import { Component } from '@angular/core';
@Component({
selector: 'app-heroe',
templateUrl: 'heroe.component.html'
})
export class HeroeComponent{
nombre: string = 'Ironman';
edad: number = 45
get nombreCapitalizado(): string {
return this.nombre.toUpperCase();
}
obtenerNombre(): string{
retur... | 5 |
paulo-vitor212/GoBarber | d29883c | web/src/pages/Signin/styles.ts | TypeScript | www.github.com/paulo-vitor212/GoBarber/tree/main/web/src/pages/Signin/styles.ts | https://raw.githubusercontent.com/paulo-vitor212/GoBarber/d29883c/web/src/pages/Signin/styles.ts | paulo-vitor212/GoBarber d29883c web/src/pages/Signin/styles.ts | true | 200 | 1,238 | import styled from 'styled-components';
import { shade } from 'polished';
import signInBackgroundImg from '../../assets/sign-in-background.png';
export const Container = styled.div`
height:100vh;
display:flex;
align-items:stretch;
`;
export const Content = styled.div`
display:flex;
flex-direction... | 1 |
rahulsya/traveling-backend | 69003fd | src/hotels/services/facility/facility.service.ts | TypeScript | www.github.com/rahulsya/traveling-backend/tree/main/src/hotels/services/facility/facility.service.ts | https://raw.githubusercontent.com/rahulsya/traveling-backend/69003fd/src/hotels/services/facility/facility.service.ts | rahulsya/traveling-backend 69003fd src/hotels/services/facility/facility.service.ts | true | 200 | 1,390 | import { HttpException, HttpStatus, Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Facility } from 'src/utils/entity/facilities.entity';
import { ValidateCreateFacility } from 'src/utils/types';
import { Repository } from 'typeorm';
@Injectable()
export class FacilityS... | 6 |
aqel1984/aqel | 18b56b7 | src/utils/payment-certificates.ts | TypeScript | www.github.com/aqel1984/aqel/tree/main/src/utils/payment-certificates.ts | https://raw.githubusercontent.com/aqel1984/aqel/18b56b7/src/utils/payment-certificates.ts | aqel1984/aqel 18b56b7 src/utils/payment-certificates.ts | true | 200 | 2,173 | import fs from 'fs';
import path from 'path';
import { paymentConfig } from '@/config/payment.config';
export class PaymentCertificates {
private static instance: PaymentCertificates;
private certificates: Map<string, Buffer> = new Map();
private constructor() {
this.loadCertificates();
}
public static... | 3 |
kroners/scoreboard | 3e06278 | src/context/MatchesContext.ts | TypeScript | www.github.com/kroners/scoreboard/tree/main/src/context/MatchesContext.ts | https://raw.githubusercontent.com/kroners/scoreboard/3e06278/src/context/MatchesContext.ts | kroners/scoreboard 3e06278 src/context/MatchesContext.ts | true | 200 | 631 | import { createContext, useContext } from 'react';
import { MatchModel } from '../models/scoreboard';
export type MatchesContextType = {
matches: MatchModel[];
addMatch: (homeTeam: string, awayTeam: string) => void;
updateScore: (matchId: string, homeScore: number, awayScore: number) => void;
finishMatch: (mat... | 5 |
model-10A/HotelControl | e575dea | src/api/problem/ability.ts | TypeScript | www.github.com/model-10A/HotelControl/tree/main/src/api/problem/ability.ts | https://raw.githubusercontent.com/model-10A/HotelControl/e575dea/src/api/problem/ability.ts | model-10A/HotelControl e575dea src/api/problem/ability.ts | true | 200 | 721 | import service from '@/utils/request'
export const useAbilityApi = (id: Number) => {
return service.get('problem/ability/' + id)
}
export const useAbilitySubmitApi = (dataForm: any) => {
if (dataForm.id) {
return service.put('problem/ability', dataForm)
} else {
return service.post('problem/ability', dataForm)... | 4 |
donghoonlee94/onebite-ts | cc7501f | section4/src/chapter4.ts | TypeScript | www.github.com/donghoonlee94/onebite-ts/tree/main/section4/src/chapter4.ts | https://raw.githubusercontent.com/donghoonlee94/onebite-ts/cc7501f/section4/src/chapter4.ts | donghoonlee94/onebite-ts cc7501f section4/src/chapter4.ts | true | 200 | 792 | /**
* 사용자 정의 타입가드
*/
type Dog = {
name: string;
isBark: boolean;
};
type Cat = {
name: string;
isScratch: boolean;
};
type Animal = Dog | Cat;
// before
// function warning (animal: Animal) {
// if('isBark' in animal) {
// // Dob
// }else if ('isScratch' in animal) {
// // Cat
// ... | 1 |
tinguyen1107/dMart_fe | 90a1644 | apis/account.api.ts | TypeScript | www.github.com/tinguyen1107/dMart_fe/tree/main/apis/account.api.ts | https://raw.githubusercontent.com/tinguyen1107/dMart_fe/90a1644/apis/account.api.ts | tinguyen1107/dMart_fe 90a1644 apis/account.api.ts | true | 200 | 5,097 | import { BN } from 'bn.js';
import { parseNearAmount } from 'near-api-js/lib/utils/format';
import { getContainer } from '../core';
import { TransactionAction } from '../core/types';
import { parseToUsername } from '../core/utils';
import { AccountDto, AccountInfoDto, NftDto } from '../dtos';
import { mapToNftDto } fro... | 3 |
aliasofeaa/projectswc | 6302774 | src/app/listname/listname.page.spec.ts | TypeScript | www.github.com/aliasofeaa/projectswc/tree/main/src/app/listname/listname.page.spec.ts | https://raw.githubusercontent.com/aliasofeaa/projectswc/6302774/src/app/listname/listname.page.spec.ts | aliasofeaa/projectswc 6302774 src/app/listname/listname.page.spec.ts | true | 200 | 464 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ListnamePage } from './listname.page';
describe('ListnamePage', () => {
let component: ListnamePage;
let fixture: ComponentFixture<ListnamePage>;
beforeEach(async(() => {
fixture = TestBed.createComponent(ListnamePage);
componen... | 6 |
azad-xyz/L2-Assignment2 | f07016c | src/app.ts | TypeScript | www.github.com/azad-xyz/L2-Assignment2/tree/main/src/app.ts | https://raw.githubusercontent.com/azad-xyz/L2-Assignment2/f07016c/src/app.ts | azad-xyz/L2-Assignment2 f07016c src/app.ts | true | 200 | 626 | import express, { Application, Request, Response } from 'express';
import cors from 'cors';
// import { StudentRoutes } from './app/modules/student/student.route'
import { StationaryRoutes } from './app/modules/stationary/stationary.router';
import { OrderRoutes } from './app/modules/order/order.router';
const app: Ap... | 5 |
neo773/student-grading-dapp | c55a9d8 | contracts/contract-types/ethers/ResultDapp.ts | TypeScript | www.github.com/neo773/student-grading-dapp/tree/main/contracts/contract-types/ethers/ResultDapp.ts | https://raw.githubusercontent.com/neo773/student-grading-dapp/c55a9d8/contracts/contract-types/ethers/ResultDapp.ts | neo773/student-grading-dapp c55a9d8 contracts/contract-types/ethers/ResultDapp.ts | true | 200 | 4,608 | import { ContractTransaction } from 'ethers';
import { Arrayish, BigNumber, BigNumberish, Interface } from 'ethers/utils';
import { EthersContractContext } from 'ethereum-abi-types-generator';
export type ContractContext = EthersContractContext<
ResultDapp,
ResultDappEventsContext,
ResultDappEvents
>;
export de... | 4 |
yshak-ashok/Angular_user_management_app | 3ac4f39 | client/src/app/Store/Associate/associate.effects.ts | TypeScript | www.github.com/yshak-ashok/Angular_user_management_app/tree/main/client/src/app/Store/Associate/associate.effects.ts | https://raw.githubusercontent.com/yshak-ashok/Angular_user_management_app/3ac4f39/client/src/app/Store/Associate/associate.effects.ts | yshak-ashok/Angular_user_management_app 3ac4f39 client/src/app/Store/Associate/associate.effects.ts | true | 200 | 3,307 | import { Injectable } from '@angular/core';
import { Actions, createEffect, ofType } from '@ngrx/effects';
import {
addAssociate,
addAssociateSuccess,
deleteUser,
deleteUserSuccess,
getEditUser,
getEditUserSuccess,
loadAssociate,
loadAssociateFail,
loadAssociateSuccess,
updateUser,
updateUserSucce... | 1 |
logicparadise-rayyan/TypeSafe-AuthCRUD-Insights | 205455a | src/services/Auth.Services.ts | TypeScript | www.github.com/logicparadise-rayyan/TypeSafe-AuthCRUD-Insights/tree/main/src/services/Auth.Services.ts | https://raw.githubusercontent.com/logicparadise-rayyan/TypeSafe-AuthCRUD-Insights/205455a/src/services/Auth.Services.ts | logicparadise-rayyan/TypeSafe-AuthCRUD-Insights 205455a src/services/Auth.Services.ts | true | 200 | 3,710 | import { Request, Response, NextFunction } from 'express';
import { AppDataSource } from '../Database/database';
import { Users } from '../migrations/entities/Users';
import { isEmpty } from 'class-validator';
import * as jwt from 'jsonwebtoken';
import HttpException from '../exceptions/HttpException';
require('dotenv'... | 3 |
teintinu/archol | a63e6af | builder/typesDecl.ts | TypeScript | www.github.com/teintinu/archol/tree/main/builder/typesDecl.ts | https://raw.githubusercontent.com/teintinu/archol/a63e6af/builder/typesDecl.ts | teintinu/archol a63e6af builder/typesDecl.ts | true | 200 | 4,382 | import { MethodDeclaration } from 'ts-morph'
export interface Application {
name: string
description: I18N,
icon: Icon,
uses: PackageUses,
packages: {
[uri in PackageURI]: Package
},
langs: Lang[]
builders: {
[builderName: string]: BuilderConfig
}
mappings: AppMappings
getMapped (uri: str... | 4 |
lsh940131/nestjs-boilerplate | 8035bdb | src/common/interceptor/response.interceptor.ts | TypeScript | www.github.com/lsh940131/nestjs-boilerplate/tree/main/src/common/interceptor/response.interceptor.ts | https://raw.githubusercontent.com/lsh940131/nestjs-boilerplate/8035bdb/src/common/interceptor/response.interceptor.ts | lsh940131/nestjs-boilerplate 8035bdb src/common/interceptor/response.interceptor.ts | true | 200 | 491 | import { Injectable, NestInterceptor, ExecutionContext, CallHandler } from '@nestjs/common';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { ResponsePayload } from '../payload/response.payload';
@Injectable()
export class ResponseInterceptor implements NestInterceptor {
intercept(con... | 5 |
gurovic/linkedin | 96ddfe9 | web_frontend/src/app/services/events_list.service.ts | TypeScript | www.github.com/gurovic/linkedin/tree/main/web_frontend/src/app/services/events_list.service.ts | https://raw.githubusercontent.com/gurovic/linkedin/96ddfe9/web_frontend/src/app/services/events_list.service.ts | gurovic/linkedin 96ddfe9 web_frontend/src/app/services/events_list.service.ts | true | 200 | 442 | import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import {environment} from '../../environments/environment';
@Injectable({
providedIn: 'root',
})
export class Event_List_Service {
private baseUrl = environment.apiUrl + 'api/event';
... | 6 |
yue7872/leetcode-ts | 8079078 | src/lc80.ts | TypeScript | www.github.com/yue7872/leetcode-ts/tree/main/src/lc80.ts | https://raw.githubusercontent.com/yue7872/leetcode-ts/8079078/src/lc80.ts | yue7872/leetcode-ts 8079078 src/lc80.ts | true | 200 | 697 | // 给你一个有序数组 nums ,请你 原地 删除重复出现的元素,使得出现次数超过两次的元素只出现两次 ,返回删除后数组的新长度。
// 不要使用额外的数组空间,你必须在 原地 修改输入数组 并在使用 O(1) 额外空间的条件下完成。
// const nums1 = [1, 1, 1, 1, 2, 2, 2, 2, 3, 3];
// return 6 => [1, 1, 2, 2, 3, 3];
export const removeDuplicates = (nums: number[]): number => {
let slow = 2;
let fast = 2;
if (nums.length <=... | 3 |
huntereathan/blogapp | 2f27cff | Frontend/src/app/views/articles/detailarticle/comments/comments.component.ts | TypeScript | www.github.com/huntereathan/blogapp/tree/main/Frontend/src/app/views/articles/detailarticle/comments/comments.component.ts | https://raw.githubusercontent.com/huntereathan/blogapp/2f27cff/Frontend/src/app/views/articles/detailarticle/comments/comments.component.ts | huntereathan/blogapp 2f27cff Frontend/src/app/views/articles/detailarticle/comments/comments.component.ts | true | 200 | 3,361 | import { Component, OnInit, Input, ViewChild, Output, EventEmitter} from '@angular/core';
import { NgForm } from '@angular/forms';
import {CommentService} from 'src/app/services/comments/comment.service'
import { Router } from '@angular/router';
@Component({
selector: 'app-comments',
templateUrl: './comments.comp... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.