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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
sundayonah/PeeTwoPee | 15ac8be | p2p/src/pages/account/myAds/AdsType.ts | TypeScript | www.github.com/sundayonah/PeeTwoPee/tree/main/p2p/src/pages/account/myAds/AdsType.ts | https://raw.githubusercontent.com/sundayonah/PeeTwoPee/15ac8be/p2p/src/pages/account/myAds/AdsType.ts | sundayonah/PeeTwoPee 15ac8be p2p/src/pages/account/myAds/AdsType.ts | true | 200 | 909 | export type ICryptoCurrency = {
address: string;
coin: string;
};
export type IFiatCurrency = {
symbol: string;
nationality: string;
};
export type AdsObj = {
type: string;
asset: string;
token_address: string;
token_decimal: number;
token_logo: string;
fiat: { currency: string; name: string; logo:... | 6 |
HissLi/PicSelect | 2cf2944 | src/main.ts | TypeScript | www.github.com/HissLi/PicSelect/tree/main/src/main.ts | https://raw.githubusercontent.com/HissLi/PicSelect/2cf2944/src/main.ts | HissLi/PicSelect 2cf2944 src/main.ts | true | 200 | 335 | import { createApp } from 'vue'
import { createPinia } from 'pinia'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import App from './App.vue'
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
app.use(createPinia())
app... | 7 |
huyhtranse/airbnb-nestjs | 54ddf76 | src/prisma/prisma.service.ts | TypeScript | www.github.com/huyhtranse/airbnb-nestjs/tree/main/src/prisma/prisma.service.ts | https://raw.githubusercontent.com/huyhtranse/airbnb-nestjs/54ddf76/src/prisma/prisma.service.ts | huyhtranse/airbnb-nestjs 54ddf76 src/prisma/prisma.service.ts | true | 200 | 531 | import { INestApplication, Injectable, OnModuleDestroy, OnModuleInit } from '@nestjs/common';
import { PrismaClient } from '@prisma/client';
@Injectable()
export class PrismaService extends PrismaClient implements OnModuleInit, OnModuleDestroy {
async onModuleInit(): Promise<void> {
await this.$connect();
}
... | 2 |
codebyfredrik/task-tracker | d28deff | src/types.ts | TypeScript | www.github.com/codebyfredrik/task-tracker/tree/main/src/types.ts | https://raw.githubusercontent.com/codebyfredrik/task-tracker/d28deff/src/types.ts | codebyfredrik/task-tracker d28deff src/types.ts | true | 200 | 349 | export type Priority = 'low' | 'medium' | 'high'
export type Status = 'not started' | 'in progress' | 'completed' | 'all'
export type Task = {
id: string
title: string
description: string
date?: string
status: Status
priority?: Priority
category?: Array<string>
}
export type TaskWithOptionalId = Omit<T... | 6 |
kzadd/CCS-Mantenedores | 2dc2b0f | src/app/features/user/application/user.feature.ts | TypeScript | www.github.com/kzadd/CCS-Mantenedores/tree/main/src/app/features/user/application/user.feature.ts | https://raw.githubusercontent.com/kzadd/CCS-Mantenedores/2dc2b0f/src/app/features/user/application/user.feature.ts | kzadd/CCS-Mantenedores 2dc2b0f src/app/features/user/application/user.feature.ts | true | 200 | 1,734 | import { createFeature, createReducer, on } from '@ngrx/store'
import { AppError } from '@app/shared/types/exception.types'
import { UserState } from '../domain/user.entity'
import { userActions } from './user.actions'
const initialState: UserState = {
error: null,
loading: false,
user: null,
users: []
}
con... | 2 |
dbeilin/Maple-Compass | 8aa7bc3 | src/lib/api.ts | TypeScript | www.github.com/dbeilin/Maple-Compass/tree/main/src/lib/api.ts | https://raw.githubusercontent.com/dbeilin/Maple-Compass/8aa7bc3/src/lib/api.ts | dbeilin/Maple-Compass 8aa7bc3 src/lib/api.ts | true | 200 | 1,677 | import axios from 'axios'
import type { MapDetails, MapInfo, WorldMapInfo } from '../types/map'
const api = axios.create({
baseURL: 'https://maplestory.io/api/GMS/83',
})
export async function getAllMaps(): Promise<MapInfo[]> {
const response = await api.get('/map')
// Validate the response data
if (!Array... | 4 |
KelvinPichinini/KBank | 2a5c745 | Frontend/Kelbank/src/app/app.component.ts | TypeScript | www.github.com/KelvinPichinini/KBank/tree/main/Frontend/Kelbank/src/app/app.component.ts | https://raw.githubusercontent.com/KelvinPichinini/KBank/2a5c745/Frontend/Kelbank/src/app/app.component.ts | KelvinPichinini/KBank 2a5c745 Frontend/Kelbank/src/app/app.component.ts | true | 200 | 952 | import {Component, OnInit, inject} from '@angular/core';
import { RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router';
import { HeaderComponent } from './components/header/header.component';
import { CommonModule } from '@angular/common';
import { AuthService } from './services/auth.service';
import { R... | 7 |
tpereletegui404/chatbot-backoffice | 999e103 | webapp/src/ui/services/security/Session.ts | TypeScript | www.github.com/tpereletegui404/chatbot-backoffice/tree/main/webapp/src/ui/services/security/Session.ts | https://raw.githubusercontent.com/tpereletegui404/chatbot-backoffice/999e103/webapp/src/ui/services/security/Session.ts | tpereletegui404/chatbot-backoffice 999e103 webapp/src/ui/services/security/Session.ts | true | 200 | 918 | import { Nullable } from '../../../core/common/base/lang/Nullable'
import { User } from '../../../core/security/model/User'
export class Session {
private _user: Nullable<User> = null
private _isAuthenticated = false
get isAuthenticated() { return this._isAuthenticated }
get user() { return this._use... | 0 |
labs4apps/labs4apps | fd72acc | middleware.ts | TypeScript | www.github.com/labs4apps/labs4apps/tree/main/middleware.ts | https://raw.githubusercontent.com/labs4apps/labs4apps/fd72acc/middleware.ts | labs4apps/labs4apps fd72acc middleware.ts | true | 200 | 1,341 | import { NextResponse } from "next/server";
import { match } from "@formatjs/intl-localematcher";
import Negotiator from "negotiator";
let locales = ["en", "pl"];
// Get the preferred locale, similar to the above or using a library
function getLocale(request) {
const cookieLocale = request.cookies.get("locale");
... | 3 |
angelca21/RegistrAPP_Conuenao_004D | 86576d0 | src/app/app.component.ts | TypeScript | www.github.com/angelca21/RegistrAPP_Conuenao_004D/tree/main/src/app/app.component.ts | https://raw.githubusercontent.com/angelca21/RegistrAPP_Conuenao_004D/86576d0/src/app/app.component.ts | angelca21/RegistrAPP_Conuenao_004D 86576d0 src/app/app.component.ts | true | 200 | 835 | import { Component } from '@angular/core';
interface Componente{
icon:string;
name:string;
redirecTo:string;
}
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.scss'],
})
export class AppComponent {
constructor() {}
componentes: Componente[] = [
{... | 6 |
oexos/cloud-web | 095f851 | src/app/components/home/home.component.ts | TypeScript | www.github.com/oexos/cloud-web/tree/main/src/app/components/home/home.component.ts | https://raw.githubusercontent.com/oexos/cloud-web/095f851/src/app/components/home/home.component.ts | oexos/cloud-web 095f851 src/app/components/home/home.component.ts | true | 200 | 1,890 | import { CommonModule } from '@angular/common';
import { Component, ViewChild } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';
import { MatListModule } from '@angular/material/list';
import { MatProgressBarModule } from '@angular... | 2 |
iziClon/iziclone | c2b2a13 | server/src/migration/1655464887216-CreateTableProducts.ts | TypeScript | www.github.com/iziClon/iziclone/tree/main/server/src/migration/1655464887216-CreateTableProducts.ts | https://raw.githubusercontent.com/iziClon/iziclone/c2b2a13/server/src/migration/1655464887216-CreateTableProducts.ts | iziClon/iziclone c2b2a13 server/src/migration/1655464887216-CreateTableProducts.ts | true | 200 | 1,091 | import { MigrationInterface, QueryRunner } from 'typeorm';
export class CreateTableProducts1655464887216 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
CREATE TABLE IF NOT EXISTS Products (
id INT PRIMARY KEY ... | 4 |
rafaelspindola/PokedexAPI | e025ce1 | frontend/angular/src/app/berries/berries.module.ts | TypeScript | www.github.com/rafaelspindola/PokedexAPI/tree/main/frontend/angular/src/app/berries/berries.module.ts | https://raw.githubusercontent.com/rafaelspindola/PokedexAPI/e025ce1/frontend/angular/src/app/berries/berries.module.ts | rafaelspindola/PokedexAPI e025ce1 frontend/angular/src/app/berries/berries.module.ts | true | 200 | 553 | import { SharedModule } from './../shared/shared.module';
import { AppMaterialModule } from './../shared/app-material/app-material.module';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { BerriesRoutingModule } from './berries-routing.module';
import { BerriesComponen... | 7 |
Bjoern-AS/PowerPals_WebApp_Beta | d5f5e0d | apps/api/src/news-stickers/news-stickers.module.ts | TypeScript | www.github.com/Bjoern-AS/PowerPals_WebApp_Beta/tree/main/apps/api/src/news-stickers/news-stickers.module.ts | https://raw.githubusercontent.com/Bjoern-AS/PowerPals_WebApp_Beta/d5f5e0d/apps/api/src/news-stickers/news-stickers.module.ts | Bjoern-AS/PowerPals_WebApp_Beta d5f5e0d apps/api/src/news-stickers/news-stickers.module.ts | true | 200 | 515 | import { Module } from '@nestjs/common';
import { NewsStickersService } from './news-stickers.service';
import { NewsStickersController } from './news-stickers.controller';
import { DatabaseModule } from '../database/database.module';
import { newsStickerProviders } from './news-stickers.providers';
@Module({
import... | 1 |
QuadAI-Framework/quad-agent-framework | 5243984 | src/deepseek.ts | TypeScript | www.github.com/QuadAI-Framework/quad-agent-framework/tree/main/src/deepseek.ts | https://raw.githubusercontent.com/QuadAI-Framework/quad-agent-framework/5243984/src/deepseek.ts | QuadAI-Framework/quad-agent-framework 5243984 src/deepseek.ts | true | 200 | 3,254 | import { CompletionParams, IDeepSeekProvider } from "./types";
import OpenAI from "openai";
import {
ChatCompletionCreateParamsBase,
ChatCompletionDeveloperMessageParam,
ChatCompletionMessageParam,
} from "openai/resources/chat/completions";
export class DeepSeekProvider implements IDeepSeekProvider {
private ... | 5 |
Protokollmaker/NoteToRailPlan | af6cb18 | src/lib/functions/Rail/rail.ts | TypeScript | www.github.com/Protokollmaker/NoteToRailPlan/tree/main/src/lib/functions/Rail/rail.ts | https://raw.githubusercontent.com/Protokollmaker/NoteToRailPlan/af6cb18/src/lib/functions/Rail/rail.ts | Protokollmaker/NoteToRailPlan af6cb18 src/lib/functions/Rail/rail.ts | true | 200 | 842 | export type railTerminal = {
from: Contact,
to: Contact,
terminal: number
};
export class Rail{
m_name: string;
m_terminalcount: number;
m_extraData: Array<Raildata>;
m_terminals: Array<railTerminal>;
constructor(t_name:string, t_terminalcount:number){
this.m_name = t_name;
... | 2 |
Musta-Pollo/simple-habit-tracking-app-nextjs-supabase | c0cbac2 | middleware.ts | TypeScript | www.github.com/Musta-Pollo/simple-habit-tracking-app-nextjs-supabase/tree/main/middleware.ts | https://raw.githubusercontent.com/Musta-Pollo/simple-habit-tracking-app-nextjs-supabase/c0cbac2/middleware.ts | Musta-Pollo/simple-habit-tracking-app-nextjs-supabase c0cbac2 middleware.ts | true | 200 | 2,262 | import { createServerClient, type CookieOptions } from "@supabase/ssr";
import { NextResponse, type NextRequest } from "next/server";
export async function middleware(req: NextRequest) {
const res = NextResponse.next();
let response = NextResponse.next({
request: {
headers: req.headers,
},
});
... | 6 |
GatitoAzul23/proyecto | 341e1e2 | src/app/productospub/productospub.component.ts | TypeScript | www.github.com/GatitoAzul23/proyecto/tree/main/src/app/productospub/productospub.component.ts | https://raw.githubusercontent.com/GatitoAzul23/proyecto/341e1e2/src/app/productospub/productospub.component.ts | GatitoAzul23/proyecto 341e1e2 src/app/productospub/productospub.component.ts | true | 200 | 685 | import { Component, OnInit } from '@angular/core';
import { ProductosService } from '../servicios/productos.service';
@Component({
selector: 'app-productospub',
templateUrl: './productospub.component.html',
styleUrls: ['./productospub.component.css']
})
export class ProductospubComponent implements OnInit{
co... | 4 |
m-jonathan-g/E-commerce-project | 8b8f19b | server/src/Routes/ProductRoute.ts | TypeScript | www.github.com/m-jonathan-g/E-commerce-project/tree/main/server/src/Routes/ProductRoute.ts | https://raw.githubusercontent.com/m-jonathan-g/E-commerce-project/8b8f19b/server/src/Routes/ProductRoute.ts | m-jonathan-g/E-commerce-project 8b8f19b server/src/Routes/ProductRoute.ts | true | 200 | 332 | import express from 'express'
import { createProduct, getProducts, upload } from '../Controllers/Product'
import { adminMiddleware } from '../middleware/userMiddleware'
const router = express.Router()
router.post('/products', upload.array('images', 12), createProduct)
router.get('/products', getProducts)
export de... | 7 |
TusharBhatt1/instapayment | 02fc41f | Others/validations/userSchema.ts | TypeScript | www.github.com/TusharBhatt1/instapayment/tree/main/Others/validations/userSchema.ts | https://raw.githubusercontent.com/TusharBhatt1/instapayment/02fc41f/Others/validations/userSchema.ts | TusharBhatt1/instapayment 02fc41f Others/validations/userSchema.ts | true | 200 | 885 | import * as yup from "yup";
export const userSchema = yup
.object({
name: yup
.string()
.min(5)
.max(30)
.required()
.matches(/^[a-zA-Z\s]+$/, 'Name must only contain alphabets and spaces.'),
email: yup.string().email().required(),
address: yup.string()
.min(10, 'Address ... | 3 |
alifilm/wy-music | a6de2c5 | src/api/servers/api.ts | TypeScript | www.github.com/alifilm/wy-music/tree/main/src/api/servers/api.ts | https://raw.githubusercontent.com/alifilm/wy-music/a6de2c5/src/api/servers/api.ts | alifilm/wy-music a6de2c5 src/api/servers/api.ts | true | 200 | 13,092 | import { service } from '../index'
// 首页轮播图
const getBanner = () => { return service.get('/banner', {}) }
// 首页icon入口
const iconMenu = () => { return service.get('/homepage/dragon/ball') }
// 获取每日推荐歌曲
const getRecommendSongs = () => { return service.get('/recommend/songs').then((res) => {
document.cookie = "MUSIC_U=2... | 1 |
martinteoharov/tiny-track | b59343b | server/src/schema.ts | TypeScript | www.github.com/martinteoharov/tiny-track/tree/main/server/src/schema.ts | https://raw.githubusercontent.com/martinteoharov/tiny-track/b59343b/server/src/schema.ts | martinteoharov/tiny-track b59343b server/src/schema.ts | true | 200 | 498 | import { sqliteTable, text, integer } from "drizzle-orm/sqlite-core";
import { UserEvent } from "@tiny-track/common";
export const userEvent = sqliteTable("user_event", {
id: integer("id").primaryKey(),
type: text("type").notNull(),
timestamp: text("timestamp").notNull(),
url: text("url").notNull(),
elementT... | 6 |
MonkMatto/RebelMint | 817875f | src/contract/helpers/findValueByKey.ts | TypeScript | www.github.com/MonkMatto/RebelMint/tree/main/src/contract/helpers/findValueByKey.ts | https://raw.githubusercontent.com/MonkMatto/RebelMint/817875f/src/contract/helpers/findValueByKey.ts | MonkMatto/RebelMint 817875f src/contract/helpers/findValueByKey.ts | true | 200 | 349 | const findValueByKey = (obj: any, keyName: string) => {
for (let key in obj) {
if (obj.hasOwnProperty(key) && key.startsWith(keyName)) {
const keyPrefix = key.split('j')[0]
if (keyPrefix === keyName) {
return obj[key]
}
}
}
return null
}
e... | 2 |
lightshiftdev/roadsync | 6ad06da | croquet/src/utils/coredTestnet.ts | TypeScript | www.github.com/lightshiftdev/roadsync/tree/main/croquet/src/utils/coredTestnet.ts | https://raw.githubusercontent.com/lightshiftdev/roadsync/6ad06da/croquet/src/utils/coredTestnet.ts | lightshiftdev/roadsync 6ad06da croquet/src/utils/coredTestnet.ts | true | 200 | 568 | import { Chain } from "@wagmi/core";
export const coreTestnet = {
id: 1115,
name: "Core Testnet",
network: "core-testnet",
nativeCurrency: {
decimals: 18,
name: "tCore",
symbol: "TCORE",
},
rpcUrls: {
public: { http: ["https://rpc.test.btcs.network"] },
default: { http: ["https://rpc.te... | 0 |
JasonSooter/plugin-segment | 0ebc852 | serverless/segment/src/functions/segment/send-event.ts | TypeScript | www.github.com/JasonSooter/plugin-segment/tree/main/serverless/segment/src/functions/segment/send-event.ts | https://raw.githubusercontent.com/JasonSooter/plugin-segment/0ebc852/serverless/segment/src/functions/segment/send-event.ts | JasonSooter/plugin-segment 0ebc852 serverless/segment/src/functions/segment/send-event.ts | true | 200 | 2,530 | // Imports global types
import "@twilio-labs/serverless-runtime-types";
// Fetches specific types
import {
Context,
ServerlessCallback,
ServerlessFunctionSignature,
} from "@twilio-labs/serverless-runtime-types/types";
import fetch from "node-fetch";
type MyEvent = {
userId?: string;
eventName?: string;
a... | 4 |
raulquintero-info/ng-spring-security-jwt | 1a8a733 | src/app/services/user.service.ts | TypeScript | www.github.com/raulquintero-info/ng-spring-security-jwt/tree/main/src/app/services/user.service.ts | https://raw.githubusercontent.com/raulquintero-info/ng-spring-security-jwt/1a8a733/src/app/services/user.service.ts | raulquintero-info/ng-spring-security-jwt 1a8a733 src/app/services/user.service.ts | true | 200 | 458 | import { Injectable } from '@angular/core';
import {HttpClient} from '@angular/common/http';
import baseUrl from './helper';
@Injectable({
providedIn: 'root'
})
export class UserService {
constructor(private httpClient: HttpClient) { }
public registrarUsuario(user: any){
return this.httpClient.post(`${bas... | 7 |
ferrumgate/manage | 6b8883e | ui.portal/src/app/modules/shared/fileupload/fileupload.component.spec.ts | TypeScript | www.github.com/ferrumgate/manage/tree/main/ui.portal/src/app/modules/shared/fileupload/fileupload.component.spec.ts | https://raw.githubusercontent.com/ferrumgate/manage/6b8883e/ui.portal/src/app/modules/shared/fileupload/fileupload.component.spec.ts | ferrumgate/manage 6b8883e ui.portal/src/app/modules/shared/fileupload/fileupload.component.spec.ts | true | 200 | 2,561 | import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
import { MatIconTestingModule } from '@angular/material/icon/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { RouterTestingModule } from '@angular/router/testing';
import { TranslateModule ... | 3 |
soundarrajan/MSAL | c1bc447 | v2/shiptech/libs/core/src/lib/interceptors/logging-http-interceptor.service.ts | TypeScript | www.github.com/soundarrajan/MSAL/tree/main/v2/shiptech/libs/core/src/lib/interceptors/logging-http-interceptor.service.ts | https://raw.githubusercontent.com/soundarrajan/MSAL/c1bc447/v2/shiptech/libs/core/src/lib/interceptors/logging-http-interceptor.service.ts | soundarrajan/MSAL c1bc447 v2/shiptech/libs/core/src/lib/interceptors/logging-http-interceptor.service.ts | true | 200 | 1,951 | import { Injectable } from '@angular/core';
import {
HttpEvent,
HttpHandler,
HttpInterceptor,
HttpRequest
} from '@angular/common/http';
import { tap } from 'rxjs/operators';
import { Observable } from 'rxjs';
import { LoggerFactory } from '../logging/logger-factory.service';
import { ILogger } from '../logging... | 1 |
abhijeetsatpute/asmoclinic-fe | f609d05 | src/store/authStore.ts | TypeScript | www.github.com/abhijeetsatpute/asmoclinic-fe/tree/main/src/store/authStore.ts | https://raw.githubusercontent.com/abhijeetsatpute/asmoclinic-fe/f609d05/src/store/authStore.ts | abhijeetsatpute/asmoclinic-fe f609d05 src/store/authStore.ts | true | 200 | 291 | // Create a file for your store, e.g., authStore.js
import create from "zustand";
// Define your store
const useAuthStore = create((set) => ({
adminLogged: false, // Initial state
setAdminLogged: (loggedIn: boolean) => set({ adminLogged: loggedIn }),
}));
export default useAuthStore;
| 5 |
FreePhoenix888/prepend-file | 52ca0ff | src/cli.ts | TypeScript | www.github.com/FreePhoenix888/prepend-file/tree/main/src/cli.ts | https://raw.githubusercontent.com/FreePhoenix888/prepend-file/52ca0ff/src/cli.ts | FreePhoenix888/prepend-file 52ca0ff src/cli.ts | true | 200 | 577 | import { program } from 'commander';
import fsExtra from 'fs-extra';
import { prependFile } from './prepend-file';
main();
async function main() {
program
.option('--content <content>', 'Content')
.option('--file-path <filePath>', 'File path');
program.parse(process.argv);
const { content: contentToPr... | 6 |
loksblnine/cuddly-barnacle | aaf7814 | src/database/models/imageToPortfolio.ts | TypeScript | www.github.com/loksblnine/cuddly-barnacle/tree/main/src/database/models/imageToPortfolio.ts | https://raw.githubusercontent.com/loksblnine/cuddly-barnacle/aaf7814/src/database/models/imageToPortfolio.ts | loksblnine/cuddly-barnacle aaf7814 src/database/models/imageToPortfolio.ts | true | 200 | 2,252 | import * as Sequelize from 'sequelize';
import { DataTypes, Model } from 'sequelize';
import type { Images, ImagesId } from './images';
import type { Portfolios, PortfoliosId } from './portfolios';
export interface ImageToPortfolioAttributes {
image_id: number;
portfolio_id: number;
}
export type ImageToPortfolio... | 2 |
phamchautu/redux_base | 0664784 | src/Products/ducks/ProductSlice.ts | TypeScript | www.github.com/phamchautu/redux_base/tree/main/src/Products/ducks/ProductSlice.ts | https://raw.githubusercontent.com/phamchautu/redux_base/0664784/src/Products/ducks/ProductSlice.ts | phamchautu/redux_base 0664784 src/Products/ducks/ProductSlice.ts | true | 200 | 911 | import {createSlice} from '@reduxjs/toolkit';
import {fetchData} from './ProductThunk';
import {Product} from '../type';
export interface ProductState {
products: Product[];
status: 'loading' | 'finished' | 'error';
}
const initialState: ProductState = {
products: [],
status: 'finished',
};
export const produ... | 7 |
zehra4747/45-qs-assignment | a36c21c | main.ts | TypeScript | www.github.com/zehra4747/45-qs-assignment/tree/main/main.ts | https://raw.githubusercontent.com/zehra4747/45-qs-assignment/a36c21c/main.ts | zehra4747/45-qs-assignment a36c21c main.ts | true | 200 | 18,020 | //1st Question
console.log("Hello, World!!")
import { features } from "process";
//2nd question
let personName:string = "Eric"
console.log(`hello ${personName}, would you like to learn some python today?`)
//3rd question
let personName:string = "moona";
console.log("uppercase is:", personName.toUpperCase... | 3 |
DoanChiQuang/schedule | f3d0b62 | client/src/stores/auth/actions/authenticated.ts | TypeScript | www.github.com/DoanChiQuang/schedule/tree/main/client/src/stores/auth/actions/authenticated.ts | https://raw.githubusercontent.com/DoanChiQuang/schedule/f3d0b62/client/src/stores/auth/actions/authenticated.ts | DoanChiQuang/schedule f3d0b62 client/src/stores/auth/actions/authenticated.ts | true | 200 | 584 | import { createAsyncThunk } from '@reduxjs/toolkit';
import axiosInstance from '@/utils/axios';
import { TAuthenticatedData } from '@/stores/auth/types/auth';
const authenticatedAction = createAsyncThunk(
'auth/authenticated',
async (payload, { rejectWithValue }) => {
try {
const result = a... | 1 |
NoBdr07/plateforme-owod | 80f4711 | plateforme-front/src/app/photo-dialog/photo-dialog.component.spec.ts | TypeScript | www.github.com/NoBdr07/plateforme-owod/tree/main/plateforme-front/src/app/photo-dialog/photo-dialog.component.spec.ts | https://raw.githubusercontent.com/NoBdr07/plateforme-owod/80f4711/plateforme-front/src/app/photo-dialog/photo-dialog.component.spec.ts | NoBdr07/plateforme-owod 80f4711 plateforme-front/src/app/photo-dialog/photo-dialog.component.spec.ts | true | 200 | 1,078 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PhotoDialogComponent } from './photo-dialog.component';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { TranslateModule } from '@ngx-translate/core';
describe('PhotoDialogComponent', () => {
let component:... | 5 |
quang-pham-dev/meta-careers-form-challenge | 96b663c | e2e/root.test.ts | TypeScript | www.github.com/quang-pham-dev/meta-careers-form-challenge/tree/main/e2e/root.test.ts | https://raw.githubusercontent.com/quang-pham-dev/meta-careers-form-challenge/96b663c/e2e/root.test.ts | quang-pham-dev/meta-careers-form-challenge 96b663c e2e/root.test.ts | true | 200 | 365 | import { test, expect } from '@playwright/test'
const baseUrl = process.env.NEXT_PUBLIC_URL
test('RootPage', async ({ page }) => {
await page.goto(baseUrl as string)
await expect(page).toHaveTitle('Meta career form challenge')
const heading = page.getByRole('heading', {
name: 'Sign up for Career Profile',
... | 6 |
juanS22/appnoticias3600 | 6fa1e65 | src/app/services/storage.service.ts | TypeScript | www.github.com/juanS22/appnoticias3600/tree/main/src/app/services/storage.service.ts | https://raw.githubusercontent.com/juanS22/appnoticias3600/6fa1e65/src/app/services/storage.service.ts | juanS22/appnoticias3600 6fa1e65 src/app/services/storage.service.ts | true | 200 | 1,291 | import { Injectable } from '@angular/core';
import { Storage } from '@ionic/storage';
import { Article } from '../interfaces';
@Injectable({
providedIn: 'root'
})
export class StorageService {
private _storage: Storage | null = null;
private _localArticles:Article[] = [];
constructor(private storage:S... | 0 |
mannals/angular_fundamentals | 1e0fbf7 | part3/pipes/src/app/string-pipe/string-pipe.component.ts | TypeScript | www.github.com/mannals/angular_fundamentals/tree/main/part3/pipes/src/app/string-pipe/string-pipe.component.ts | https://raw.githubusercontent.com/mannals/angular_fundamentals/1e0fbf7/part3/pipes/src/app/string-pipe/string-pipe.component.ts | mannals/angular_fundamentals 1e0fbf7 part3/pipes/src/app/string-pipe/string-pipe.component.ts | true | 200 | 602 | import { Component } from '@angular/core';
import { StringTransformPipe } from '../string-transform.pipe';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
@Component({
selector: 'app-string-pipe',
imports: [StringTransformPipe,FormsModule, CommonModule],
templateUrl:... | 2 |
dmorozzz/userrhub | 595c427 | src/app/shared/components/users/update-user-dialog/update-user-dialog.component.ts | TypeScript | www.github.com/dmorozzz/userrhub/tree/main/src/app/shared/components/users/update-user-dialog/update-user-dialog.component.ts | https://raw.githubusercontent.com/dmorozzz/userrhub/595c427/src/app/shared/components/users/update-user-dialog/update-user-dialog.component.ts | dmorozzz/userrhub 595c427 src/app/shared/components/users/update-user-dialog/update-user-dialog.component.ts | true | 200 | 1,735 | import {
ChangeDetectionStrategy,
Component,
OnInit,
inject,
} from '@angular/core';
import { FormBuilder, ReactiveFormsModule, Validators } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
import {
MAT_DIALOG_DATA,
MatDialogModule,
MatDialogRef,
} from '@angular/material... | 3 |
AlineAreda/e2e_burguer_backend | 2775f99 | src/services/order/DetailOrderService.ts | TypeScript | www.github.com/AlineAreda/e2e_burguer_backend/tree/main/src/services/order/DetailOrderService.ts | https://raw.githubusercontent.com/AlineAreda/e2e_burguer_backend/2775f99/src/services/order/DetailOrderService.ts | AlineAreda/e2e_burguer_backend 2775f99 src/services/order/DetailOrderService.ts | true | 200 | 1,021 | import prismaClient from "../../prisma";
interface DetailRequest {
order_id: string;
}
class DetailOrderService {
async execute({ order_id }: DetailRequest) {
if (!order_id) {
throw new Error("ID do pedido é necessário.");
}
try {
const orderExists = await pris... | 7 |
pankajkrbansal/twitter-clone-nestjs | 415a5cd | src/users/users.service.ts | TypeScript | www.github.com/pankajkrbansal/twitter-clone-nestjs/tree/main/src/users/users.service.ts | https://raw.githubusercontent.com/pankajkrbansal/twitter-clone-nestjs/415a5cd/src/users/users.service.ts | pankajkrbansal/twitter-clone-nestjs 415a5cd src/users/users.service.ts | true | 200 | 404 | import { Injectable } from '@nestjs/common';
import { UserEntity } from './user.entity';
import { UserRepository } from './users.repository';
@Injectable()
export class UsersService {
constructor(private userRepository: UserRepository) {}
public async getUserbyUserName(userName: string): Promise<UserEntity> {
... | 4 |
Websane/Blockchain | 2742110 | src/components/Transaction/Transaction.ts | TypeScript | www.github.com/Websane/Blockchain/tree/main/src/components/Transaction/Transaction.ts | https://raw.githubusercontent.com/Websane/Blockchain/2742110/src/components/Transaction/Transaction.ts | Websane/Blockchain 2742110 src/components/Transaction/Transaction.ts | true | 200 | 1,683 | import { sha256 } from '../../utils/sha256';
import elliptic from 'elliptic';
import { SmartContract } from '../SmartContract/SmartContract';
const EC = elliptic.ec;
const ec = new EC('secp256k1');
export type TransactionCounstructor = {
from: string | null;
to: string | null;
amount?: number;
asset?: any; // чт... | 1 |
lbland94/stigid | 2db5b96 | src/utilities/cron.ts | TypeScript | www.github.com/lbland94/stigid/tree/main/src/utilities/cron.ts | https://raw.githubusercontent.com/lbland94/stigid/2db5b96/src/utilities/cron.ts | lbland94/stigid 2db5b96 src/utilities/cron.ts | true | 200 | 571 | import Bree from 'bree';
import tsWorker from '@breejs/ts-worker';
import later from '@breejs/later';
import ms from 'ms';
Bree.extend(tsWorker);
const sched = later.parse.recur().on('00:00:00').time();
const cron = new Bree({
acceptedExtensions: ['js', 'ts'],
defaultExtension: process.env.NODE_ENV === 'producti... | 5 |
Saxxan/Learning-TypeScript | 90932df | advancedTypes/optionalChaining.ts | TypeScript | www.github.com/Saxxan/Learning-TypeScript/tree/main/advancedTypes/optionalChaining.ts | https://raw.githubusercontent.com/Saxxan/Learning-TypeScript/90932df/advancedTypes/optionalChaining.ts | Saxxan/Learning-TypeScript 90932df advancedTypes/optionalChaining.ts | true | 200 | 624 | // OPTIONAL CHAINING
// Si tenemos datos como por ejemplo este objeto, que viene de una petición o de una estructura que Typescript no controla
// Puede que los campos que queremos acceder no existan y por tanto, si intentamos acceder a ellos, nos de un error
const fetchedUserData = {
id: "u1",
name: "Max",
job:... | 6 |
GuineaCoding/FullStack2 | 6a31996 | Lab_react_Basics/src/stories/samples/02-component.stories.ts | TypeScript | www.github.com/GuineaCoding/FullStack2/tree/main/Lab_react_Basics/src/stories/samples/02-component.stories.ts | https://raw.githubusercontent.com/GuineaCoding/FullStack2/6a31996/Lab_react_Basics/src/stories/samples/02-component.stories.ts | GuineaCoding/FullStack2 6a31996 Lab_react_Basics/src/stories/samples/02-component.stories.ts | true | 200 | 533 | import type { Meta, StoryObj } from '@storybook/react';
import JSXEnbeddedVars from '../../components/samples/02_embeddedVars';
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
const meta: Meta<typeof JSXEnbeddedVars> = {
title: 'Sample/02 - TSX embedded variable',
... | 2 |
ncpa0cpl/rc-simple-carousel | 990c5c2 | src/utils/resolve-animation-duration.ts | TypeScript | www.github.com/ncpa0cpl/rc-simple-carousel/tree/main/src/utils/resolve-animation-duration.ts | https://raw.githubusercontent.com/ncpa0cpl/rc-simple-carousel/990c5c2/src/utils/resolve-animation-duration.ts | ncpa0cpl/rc-simple-carousel 990c5c2 src/utils/resolve-animation-duration.ts | true | 200 | 390 | import type { AnimationDurationProp } from "../types";
export const resolveAnimationDuration = (
duration: AnimationDurationProp | undefined,
lastOffset: number,
currentOffset: number
) => {
if (!duration) return 500;
if (typeof duration === "number") {
return duration;
}
const nextScrollBy = Math.... | 4 |
Kallepan/reagent-management | c6a3b82 | frontend/src/app/core/components/header-global-search/header-global-search.component.ts | TypeScript | www.github.com/Kallepan/reagent-management/tree/main/frontend/src/app/core/components/header-global-search/header-global-search.component.ts | https://raw.githubusercontent.com/Kallepan/reagent-management/c6a3b82/frontend/src/app/core/components/header-global-search/header-global-search.component.ts | Kallepan/reagent-management c6a3b82 frontend/src/app/core/components/header-global-search/header-global-search.component.ts | true | 200 | 5,125 | /**
* Dynamic component which depending on the activated route displays a search bar
* or nothing.
**/
import { CommonModule } from '@angular/common';
import { Component, DestroyRef, OnInit, inject } from '@angular/core';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { FormControl, Reactive... | 7 |
visakhr1998/onepercentclub | 5f53b14 | my-app/src/routes/pricing/pricing_plans.ts | TypeScript | www.github.com/visakhr1998/onepercentclub/tree/main/my-app/src/routes/pricing/pricing_plans.ts | https://raw.githubusercontent.com/visakhr1998/onepercentclub/5f53b14/my-app/src/routes/pricing/pricing_plans.ts | visakhr1998/onepercentclub 5f53b14 my-app/src/routes/pricing/pricing_plans.ts | true | 200 | 1,048 | export const defaultPlanId = "free"
export const pricingPlans = [
{
id: "free",
name: "Free",
description: "A free plan to get you started!",
price: "$0",
priceIntervalName: "per month",
stripe_price_id: null,
features: ["Limited swiping", "Match with people", "Chat with people"],
},
... | 1 |
UKForeignOffice/notarial-api | f32e692 | api/src/routes/forms/router.ts | TypeScript | www.github.com/UKForeignOffice/notarial-api/tree/main/api/src/routes/forms/router.ts | https://raw.githubusercontent.com/UKForeignOffice/notarial-api/f32e692/api/src/routes/forms/router.ts | UKForeignOffice/notarial-api f32e692 api/src/routes/forms/router.ts | true | 200 | 565 | import { Router } from "express";
import * as formsHandlers from "../../handlers/forms";
import * as caseEmailHandlers from "../../handlers/forms/emails/case";
import * as userEmailHandlers from "../../handlers/forms/emails/user";
import { validationHandler } from "../../middlewares/validate";
export const formRouter ... | 3 |
k8s-er/ticketing | 59d27e1 | orders/src/events/listeners/__test__/ticketUpdatedListener.test.ts | TypeScript | www.github.com/k8s-er/ticketing/tree/main/orders/src/events/listeners/__test__/ticketUpdatedListener.test.ts | https://raw.githubusercontent.com/k8s-er/ticketing/59d27e1/orders/src/events/listeners/__test__/ticketUpdatedListener.test.ts | k8s-er/ticketing 59d27e1 orders/src/events/listeners/__test__/ticketUpdatedListener.test.ts | true | 200 | 2,622 | import { TicketUpdatedEvent } from '@hrdev/common';
import mongoose from 'mongoose';
import { Message } from 'node-nats-streaming';
import { Ticket } from '../../../models/ticket';
import { natsWrapper } from '../../../natsWrapper';
import { TicketUpdatedListener } from '../ticketUpdatedListener';
const setup = async... | 0 |
Brigith17/project-api | 5f19733 | src/modules/user/schemas/user.schema.ts | TypeScript | www.github.com/Brigith17/project-api/tree/main/src/modules/user/schemas/user.schema.ts | https://raw.githubusercontent.com/Brigith17/project-api/5f19733/src/modules/user/schemas/user.schema.ts | Brigith17/project-api 5f19733 src/modules/user/schemas/user.schema.ts | true | 200 | 350 | import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
export type UserDocument = User & Document;
@Schema()
export class User {
@Prop()
login: string;
@Prop()
id: string;
@Prop()
avatar_url: string;
@Prop()
url: string;
}
export const UserSchema = Schema... | 5 |
LeonSuckow/nlw-spacetime-server | 58386d4 | src/modules/auth/auth.service.ts | TypeScript | www.github.com/LeonSuckow/nlw-spacetime-server/tree/main/src/modules/auth/auth.service.ts | https://raw.githubusercontent.com/LeonSuckow/nlw-spacetime-server/58386d4/src/modules/auth/auth.service.ts | LeonSuckow/nlw-spacetime-server 58386d4 src/modules/auth/auth.service.ts | true | 200 | 1,376 | import axios from "axios";
import { z } from "zod";
import { prisma } from "../../lib/prisma";
export class AuthService {
async register(code: string): Promise<string> {
const accessTokenResponse = await axios.post(
"https://github.com/login/oauth/access_token",
null,
{
params: {
... | 6 |
ousshsn/AngularCoursera | a928c6b | src/app/menu/menu.component.ts | TypeScript | www.github.com/ousshsn/AngularCoursera/tree/main/src/app/menu/menu.component.ts | https://raw.githubusercontent.com/ousshsn/AngularCoursera/a928c6b/src/app/menu/menu.component.ts | ousshsn/AngularCoursera a928c6b src/app/menu/menu.component.ts | true | 200 | 783 | import { Component, OnInit , Inject} from '@angular/core';
import {Dish} from '../shared/dish';
import {DishService} from '../services/dish.service';
import {flyInOut, expand} from '../animations/app.animations';
@Component({
selector: 'app-menu',
templateUrl: './menu.component.html',
styleUrls: ['./menu.compone... | 2 |
Skycader/ng-bookshelf | 31c91c2 | src/app/components/toolbar/toolbar.component.ts | TypeScript | www.github.com/Skycader/ng-bookshelf/tree/main/src/app/components/toolbar/toolbar.component.ts | https://raw.githubusercontent.com/Skycader/ng-bookshelf/31c91c2/src/app/components/toolbar/toolbar.component.ts | Skycader/ng-bookshelf 31c91c2 src/app/components/toolbar/toolbar.component.ts | true | 200 | 2,423 | import { Component, inject } from '@angular/core';
import { ButtonModule } from 'primeng/button';
import { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';
import { IconField } from 'primeng/iconfield';
import { InputIcon } from 'primeng/inputicon';
import { InputTextModule } from 'primeng/inputtext';
im... | 7 |
Jahomme/ampara-next | 65e29aa | src/styles/global-styles.ts | TypeScript | www.github.com/Jahomme/ampara-next/tree/main/src/styles/global-styles.ts | https://raw.githubusercontent.com/Jahomme/ampara-next/65e29aa/src/styles/global-styles.ts | Jahomme/ampara-next 65e29aa src/styles/global-styles.ts | true | 200 | 1,618 | import styled, { createGlobalStyle } from 'styled-components';
import breakpoints from './breakpoints';
export default createGlobalStyle`
*{
margin: 0;
padding: 0;
outline: none;
box-sizing: border-box;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
// primary = white | pri... | 4 |
quangtudng/nemo-ai-core | d1b9cc1 | src/app/user/index.entity.ts | TypeScript | www.github.com/quangtudng/nemo-ai-core/tree/main/src/app/user/index.entity.ts | https://raw.githubusercontent.com/quangtudng/nemo-ai-core/d1b9cc1/src/app/user/index.entity.ts | quangtudng/nemo-ai-core d1b9cc1 src/app/user/index.entity.ts | true | 200 | 1,190 | import { AuthIdentity } from "@app/auth/index.entity";
import { Role } from "@app/role/index.entity";
import UserStatus from "@app/user/data/user-status";
import { BaseTimeStampEntity } from "@core/utils/crud/base-entity";
import {
Column,
Entity,
ManyToOne,
OneToOne,
PrimaryGeneratedColumn,
} from "typeorm";... | 1 |
mybricks/coder | 748c01e | src/types/copilot.ts | TypeScript | www.github.com/mybricks/coder/tree/main/src/types/copilot.ts | https://raw.githubusercontent.com/mybricks/coder/748c01e/src/types/copilot.ts | mybricks/coder 748c01e src/types/copilot.ts | true | 200 | 1,152 | import { type EditorInlineCompletion } from "./editor";
export enum LanguageMapToSuffix {
typescript = ".ts",
javascript = ".js",
html = ".html",
css = ".css",
markdown = ".md",
plaintext = ".txt",
json = ".json",
xml = ".xml",
sql = ".sql",
python = ".py",
java = ".java",
kotlin = ".kt",
csha... | 3 |
YasinChan/typing | 66200f0 | vite.config.ts | TypeScript | www.github.com/YasinChan/typing/tree/main/vite.config.ts | https://raw.githubusercontent.com/YasinChan/typing/66200f0/vite.config.ts | YasinChan/typing 66200f0 vite.config.ts | true | 200 | 1,088 | import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import vueJsx from '@vitejs/plugin-vue-jsx';
import svgLoader from 'vite-svg-loader';
import legacy from '@vitejs/plugin-legacy';
// https://vitejs.dev/config/
export default defineConfig({
plug... | 5 |
lantanagroup/link | b5e888c | web/src/app/app.component.ts | TypeScript | www.github.com/lantanagroup/link/tree/main/web/src/app/app.component.ts | https://raw.githubusercontent.com/lantanagroup/link/b5e888c/web/src/app/app.component.ts | lantanagroup/link b5e888c web/src/app/app.component.ts | true | 200 | 1,432 | import { Component, Renderer2 } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { NavigationEnd, Router, Event as RouterEvent, RouterOutlet } from '@angular/router';
import { HeaderComponent } from './shared/header/header.component';... | 0 |
appeltje-c/rant | 2aaa052 | src/middlewares/validate.ts | TypeScript | www.github.com/appeltje-c/rant/tree/main/src/middlewares/validate.ts | https://raw.githubusercontent.com/appeltje-c/rant/2aaa052/src/middlewares/validate.ts | appeltje-c/rant 2aaa052 src/middlewares/validate.ts | true | 200 | 1,382 | /**
* MIT License
*
* Copyright (c) 2025 Martijn Benjamin <hello@martijn-benjamin.com>
*
* This source code is part of the Rest Api on Node with Typescript
* "Rant" boilerplate and is free to modify and use as-is.
*
* See LICENSE in the root of this distribution.
*
* This copyright header must be includ... | 6 |
AxelNoHeart/album-app | 46e107e | src/app/album.service.ts | TypeScript | www.github.com/AxelNoHeart/album-app/tree/main/src/app/album.service.ts | https://raw.githubusercontent.com/AxelNoHeart/album-app/46e107e/src/app/album.service.ts | AxelNoHeart/album-app 46e107e src/app/album.service.ts | true | 200 | 575 | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { Album, Foto } from './album-details/album';
@Injectable({
providedIn: 'root'
})
export class AlbumService {
constructor(private http: HttpClient){}
searchAlbum(): Observabl... | 2 |
DuarteJD/fundamentos-nodejs | 7326fb3 | src/routes/transaction.routes.ts | TypeScript | www.github.com/DuarteJD/fundamentos-nodejs/tree/main/src/routes/transaction.routes.ts | https://raw.githubusercontent.com/DuarteJD/fundamentos-nodejs/7326fb3/src/routes/transaction.routes.ts | DuarteJD/fundamentos-nodejs 7326fb3 src/routes/transaction.routes.ts | true | 200 | 1,287 | import { Router } from 'express';
import TransactionsRepository from '../repositories/TransactionsRepository';
import CreateTransactionService from '../services/CreateTransactionService';
import Transaction from '../models/Transaction';
const transactionRouter = Router();
const transactionsRepository = new Transacti... | 7 |
donexfience/MIni_EcoM_k8s_Clean_arch | 902b752 | auth-service/src/config/database/database.ts | TypeScript | www.github.com/donexfience/MIni_EcoM_k8s_Clean_arch/tree/main/auth-service/src/config/database/database.ts | https://raw.githubusercontent.com/donexfience/MIni_EcoM_k8s_Clean_arch/902b752/auth-service/src/config/database/database.ts | donexfience/MIni_EcoM_k8s_Clean_arch 902b752 auth-service/src/config/database/database.ts | true | 200 | 401 | import dotenv from "dotenv";
dotenv.config();
console.log(process.env.MONGO_CLUTSER_PASS);
export const dbConfig = {
host: process.env.MONGO_URI || "localhost",
port: Number(process.env.DB_PORT) || 27017,
database: process.env.DB_NAME || "Authdatabase",
uri: `mongodb+srv://donex6fience:${process.env.MONGO_CLU... | 4 |
arjunchib/ollie-board | fb8a2f5 | site/src/app/home/home.component.ts | TypeScript | www.github.com/arjunchib/ollie-board/tree/main/site/src/app/home/home.component.ts | https://raw.githubusercontent.com/arjunchib/ollie-board/fb8a2f5/site/src/app/home/home.component.ts | arjunchib/ollie-board fb8a2f5 site/src/app/home/home.component.ts | true | 200 | 4,370 | import {
Component,
ElementRef,
NgZone,
ViewChild,
afterNextRender,
inject,
} from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { HttpClient } from '@angular/common/http';
import { NgIconComponent, provideIcons } from '@ng-icons/core';... | 1 |
fra1m/cs2_helper | b26f6cf | backend/src/modules/role/role.module.ts | TypeScript | www.github.com/fra1m/cs2_helper/tree/main/backend/src/modules/role/role.module.ts | https://raw.githubusercontent.com/fra1m/cs2_helper/b26f6cf/backend/src/modules/role/role.module.ts | fra1m/cs2_helper b26f6cf backend/src/modules/role/role.module.ts | true | 200 | 488 | import { Module } from '@nestjs/common';
import { RoleService } from './role.service';
import { RoleController } from './role.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { RoleEntity } from '@entities/Role.entity';
@Module({
controllers: [RoleController],
providers: [RoleService],
import... | 3 |
silongtan/e-commerce | 2e12fca | server/@types/express/index.d.ts | TypeScript | www.github.com/silongtan/e-commerce/tree/main/server/@types/express/index.d.ts | https://raw.githubusercontent.com/silongtan/e-commerce/2e12fca/server/%40types/express/index.d.ts | silongtan/e-commerce 2e12fca server/@types/express/index.d.ts | true | 200 | 640 | import { UserRole } from '../../enums/UserRole';
import mongoose from 'mongoose';
import { IUserModel } from '../../models/User';
import { Session } from 'express-session';
import { CartItem } from '../../models/Order';
export {};
// export = session;
declare global {
namespace Express {
interface User {
... | 5 |
MaxAntony/vanile-back | e321433 | src/user/user.controller.ts | TypeScript | www.github.com/MaxAntony/vanile-back/tree/main/src/user/user.controller.ts | https://raw.githubusercontent.com/MaxAntony/vanile-back/e321433/src/user/user.controller.ts | MaxAntony/vanile-back e321433 src/user/user.controller.ts | true | 200 | 985 | import { Body, Controller, Delete, Get, Param, Patch, Post } from '@nestjs/common';
import { CreateUserDto } from './dto/create-user.dto';
import { UpdateUserDto } from './dto/update-user.dto';
import { User } from './entities/user.entity';
import { UserService } from './user.service';
@Controller('user')
export class... | 0 |
mauriisai/fullstack-sistema-evaluaciones | 1b7c2e5 | sistema-evaluaciones-frontend/src/app/services/normal.guard.ts | TypeScript | www.github.com/mauriisai/fullstack-sistema-evaluaciones/tree/main/sistema-evaluaciones-frontend/src/app/services/normal.guard.ts | https://raw.githubusercontent.com/mauriisai/fullstack-sistema-evaluaciones/1b7c2e5/sistema-evaluaciones-frontend/src/app/services/normal.guard.ts | mauriisai/fullstack-sistema-evaluaciones 1b7c2e5 sistema-evaluaciones-frontend/src/app/services/normal.guard.ts | true | 200 | 756 | import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot, UrlTree } from '@angular/router';
import { Observable } from 'rxjs';
import { LoginService } from './login.service';
@Injectable({
providedIn:'root'
})
export class NormalGuard implements CanActivat... | 2 |
TylorS/typed-io | ff63883 | src/Decoder/withFallback.ts | TypeScript | www.github.com/TylorS/typed-io/tree/main/src/Decoder/withFallback.ts | https://raw.githubusercontent.com/TylorS/typed-io/ff63883/src/Decoder/withFallback.ts | TylorS/typed-io ff63883 src/Decoder/withFallback.ts | true | 200 | 876 | import { pipe } from 'hkt-ts'
import { Both, Right, match } from 'hkt-ts/These'
import { Decoder } from './Decoder'
import { length, pluralWithLength } from '@/SchemaError/Debug'
import { NamedError } from '@/SchemaError/SchemaError'
/**
* Decoder combinator for providing a default value in the case of failures. In... | 7 |
t4sty-it/accord | 497e2d3 | src/lib/multiplayer/connection.ts | TypeScript | www.github.com/t4sty-it/accord/tree/main/src/lib/multiplayer/connection.ts | https://raw.githubusercontent.com/t4sty-it/accord/497e2d3/src/lib/multiplayer/connection.ts | t4sty-it/accord 497e2d3 src/lib/multiplayer/connection.ts | true | 200 | 3,445 | import { DataConnection, Peer } from 'peerjs'
const appPrefix = 'poidas'
const id = (...tokens: string[]) => [appPrefix, ...tokens].join('-')
const msg = (...tokens: string[]) => tokens.join(' ')
export type ConnectionEvent = 'mate:new' | 'mate:adieu' | 'mate:data'
export type MessageHandler = (user: string, message:... | 4 |
osamaeshmilh/biadgo | 8450090 | src/main/webapp/app/entities/cuisine/delete/cuisine-delete-dialog.component.ts | TypeScript | www.github.com/osamaeshmilh/biadgo/tree/main/src/main/webapp/app/entities/cuisine/delete/cuisine-delete-dialog.component.ts | https://raw.githubusercontent.com/osamaeshmilh/biadgo/8450090/src/main/webapp/app/entities/cuisine/delete/cuisine-delete-dialog.component.ts | osamaeshmilh/biadgo 8450090 src/main/webapp/app/entities/cuisine/delete/cuisine-delete-dialog.component.ts | true | 200 | 880 | import {Component} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {NgbActiveModal} from '@ng-bootstrap/ng-bootstrap';
import SharedModule from 'app/shared/shared.module';
import {ICuisine} from '../cuisine.model';
import {CuisineService} from '../service/cuisine.service';
import {ITEM_DELETED... | 3 |
JPuente25/cloned-kings-league | 2d62935 | src/components/BestPlayerCard/index.styled.ts | TypeScript | www.github.com/JPuente25/cloned-kings-league/tree/main/src/components/BestPlayerCard/index.styled.ts | https://raw.githubusercontent.com/JPuente25/cloned-kings-league/2d62935/src/components/BestPlayerCard/index.styled.ts | JPuente25/cloned-kings-league 2d62935 src/components/BestPlayerCard/index.styled.ts | true | 200 | 1,694 | import styled from "styled-components";
export const Container = styled.article<{bg_img: string}>`
width: 100%;
aspect-ratio: 1.4 / 1;
display: flex;
align-items: center;
justify-content: space-between;
background-image: url(${props => props.bg_img});
background-position: center;
background-rep... | 6 |
omer0909/website_pong_game | 40a3280 | requirements/webapi/conf/src/main.ts | TypeScript | www.github.com/omer0909/website_pong_game/tree/main/requirements/webapi/conf/src/main.ts | https://raw.githubusercontent.com/omer0909/website_pong_game/40a3280/requirements/webapi/conf/src/main.ts | omer0909/website_pong_game 40a3280 requirements/webapi/conf/src/main.ts | true | 200 | 309 | import { INestApplication } from '@nestjs/common';
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
export let app: INestApplication;
async function bootstrap() {
app = await NestFactory.create(AppModule);
app.enableCors();
await app.listen(3000);
}
bootstrap();
| 5 |
edcampossouza/prisma-designer-back | f2f8cd3 | src/schema/schema.service.ts | TypeScript | www.github.com/edcampossouza/prisma-designer-back/tree/main/src/schema/schema.service.ts | https://raw.githubusercontent.com/edcampossouza/prisma-designer-back/f2f8cd3/src/schema/schema.service.ts | edcampossouza/prisma-designer-back f2f8cd3 src/schema/schema.service.ts | true | 200 | 6,031 | import {
ConflictException,
Injectable,
NotFoundException,
} from '@nestjs/common';
import { SerializedSchema } from './SchemaValidator';
import { PrismaService } from '../prisma/prisma.service';
import { format } from 'prettier';
import * as ppp from 'prettier-plugin-prisma';
import { Prisma, DataType, DataField... | 0 |
cimilala/exercitation | ee037ca | exercitation-after/src/role_menu/role_menu.module.ts | TypeScript | www.github.com/cimilala/exercitation/tree/main/exercitation-after/src/role_menu/role_menu.module.ts | https://raw.githubusercontent.com/cimilala/exercitation/ee037ca/exercitation-after/src/role_menu/role_menu.module.ts | cimilala/exercitation ee037ca exercitation-after/src/role_menu/role_menu.module.ts | true | 200 | 454 | import { Module } from '@nestjs/common';
import { RoleMenuService } from './role_menu.service';
import { RoleMenuController } from './role_menu.controller';
import { RoleMenu } from './entities/role_menu.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
@Module({
imports:[TypeOrmModule.forFeature([RoleMenu])... | 7 |
rashmikaviba/slpd-web-app | efccab4 | src/app/modules/user/add-new-user/add-new-user-form/add-new-user-form.component.spec.ts | TypeScript | www.github.com/rashmikaviba/slpd-web-app/tree/main/src/app/modules/user/add-new-user/add-new-user-form/add-new-user-form.component.spec.ts | https://raw.githubusercontent.com/rashmikaviba/slpd-web-app/efccab4/src/app/modules/user/add-new-user/add-new-user-form/add-new-user-form.component.spec.ts | rashmikaviba/slpd-web-app efccab4 src/app/modules/user/add-new-user/add-new-user-form/add-new-user-form.component.spec.ts | true | 200 | 658 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { AddNewUserFormComponent } from './add-new-user-form.component';
describe('AddNewUserFormComponent', () => {
let component: AddNewUserFormComponent;
let fixture: ComponentFixture<AddNewUserFormComponent>;
beforeEach(async () => {
aw... | 2 |
rafhael-art/sistemaExamenesFrontend | 667f7bb | src/app/components/navbar/navbar.component.ts | TypeScript | www.github.com/rafhael-art/sistemaExamenesFrontend/tree/main/src/app/components/navbar/navbar.component.ts | https://raw.githubusercontent.com/rafhael-art/sistemaExamenesFrontend/667f7bb/src/app/components/navbar/navbar.component.ts | rafhael-art/sistemaExamenesFrontend 667f7bb src/app/components/navbar/navbar.component.ts | true | 200 | 397 | import { Component } from '@angular/core';
import { LoginService } from 'src/app/services/login.service';
@Component({
selector: 'app-navbar',
templateUrl: './navbar.component.html',
styleUrls: ['./navbar.component.css']
})
export class NavbarComponent {
constructor(
public login : LoginService
){}
p... | 4 |
mickaelrebeau/Meetdev | 743683e | constants/Messages.ts | TypeScript | www.github.com/mickaelrebeau/Meetdev/tree/main/constants/Messages.ts | https://raw.githubusercontent.com/mickaelrebeau/Meetdev/743683e/constants/Messages.ts | mickaelrebeau/Meetdev 743683e constants/Messages.ts | true | 200 | 3,746 | import { User as UserInterface, IMessage } from "react-native-gifted-chat";
export const Messages = [
{
id: 1,
name: "L'équipe Meetdev",
imgUrl: require("../assets/images/meetdev.png"),
chat: [
{
sender: "L'équipe Meetdev",
content: "Hello there! Welcome to Meetdev !",
date: new Date("2024-01-0... | 1 |
wouterds/wouterds.be | 2ff5e21 | src/lib/datocms.server.spec.ts | TypeScript | www.github.com/wouterds/wouterds.be/tree/main/src/lib/datocms.server.spec.ts | https://raw.githubusercontent.com/wouterds/wouterds.be/2ff5e21/src/lib/datocms.server.spec.ts | wouterds/wouterds.be 2ff5e21 src/lib/datocms.server.spec.ts | true | 200 | 3,088 | import type { StructuredText } from 'datocms-structured-text-utils';
import { describe, expect, it } from 'vitest';
import { excerptFromContent, imagesFromContent, plainTextFromContent } from './datocms.server';
describe('datocms', () => {
describe('plainTextFromContent', () => {
it('should return plain text fr... | 3 |
Momen-G-Ar/pseu-point-of-sale-api | 09d96b7 | middlewares/collection-validation.middleware.ts | TypeScript | www.github.com/Momen-G-Ar/pseu-point-of-sale-api/tree/main/middlewares/collection-validation.middleware.ts | https://raw.githubusercontent.com/Momen-G-Ar/pseu-point-of-sale-api/09d96b7/middlewares/collection-validation.middleware.ts | Momen-G-Ar/pseu-point-of-sale-api 09d96b7 middlewares/collection-validation.middleware.ts | true | 200 | 1,014 | import express from 'express';
import { Collection } from '../models';
const validateCollection = async (req: express.Request, res: express.Response, next: express.NextFunction) => {
const collection = req.body;
if (!collection.name) {
return res.status(400).send({ message: "collection's name is requir... | 6 |
ericstefano/tis-tem-perigo | 62b2df8 | test/vitest/e2e/test.spec.ts | TypeScript | www.github.com/ericstefano/tis-tem-perigo/tree/main/test/vitest/e2e/test.spec.ts | https://raw.githubusercontent.com/ericstefano/tis-tem-perigo/62b2df8/test/vitest/e2e/test.spec.ts | ericstefano/tis-tem-perigo 62b2df8 test/vitest/e2e/test.spec.ts | true | 200 | 689 | import { describe, it } from 'vitest'
import { createPage, setup, url } from '@nuxt/test-utils/e2e'
import { expect } from '@nuxt/test-utils/playwright'
await setup({
browser: true,
dev: true,
server: true,
browserOptions: {
type: 'chromium',
launch: {
headless: false,
},
},
})
describe('m... | 0 |
Sthror/Chat | 14753b7 | src/data/AddMessage.ts | TypeScript | www.github.com/Sthror/Chat/tree/main/src/data/AddMessage.ts | https://raw.githubusercontent.com/Sthror/Chat/14753b7/src/data/AddMessage.ts | Sthror/Chat 14753b7 src/data/AddMessage.ts | true | 200 | 340 | import { addDoc, collection, Firestore, serverTimestamp } from "firebase/firestore";
export const AddNewMessage = (
db: Firestore,
userId: number,
userName: string,
message: string
) => {
addDoc(collection(db, "messages"), {
date: serverTimestamp(),
userId: userId,
userName: userName,
message... | 7 |
pgrimaldo24/uni.expedientes | 8bf231f | Web/ClientApp/src/app/core/unir-validators.ts | TypeScript | www.github.com/pgrimaldo24/uni.expedientes/tree/main/Web/ClientApp/src/app/core/unir-validators.ts | https://raw.githubusercontent.com/pgrimaldo24/uni.expedientes/8bf231f/Web/ClientApp/src/app/core/unir-validators.ts | pgrimaldo24/uni.expedientes 8bf231f Web/ClientApp/src/app/core/unir-validators.ts | true | 200 | 2,044 | import {
AbstractControl,
FormControl,
FormGroup,
ValidationErrors,
ValidatorFn,
Validators
} from '@angular/forms';
export class UnirValidators {
static requiredAtLeastOne(controls: string[]): ValidatorFn {
return (form: FormGroup): ValidationErrors | null => {
let isInvalid = true;
for ... | 1 |
superdangerbro/fieldhive-3.0 | e668b6c | packages/web/src/app/globalHooks/usePropertyQueries.ts | TypeScript | www.github.com/superdangerbro/fieldhive-3.0/tree/main/packages/web/src/app/globalHooks/usePropertyQueries.ts | https://raw.githubusercontent.com/superdangerbro/fieldhive-3.0/e668b6c/packages/web/src/app/globalHooks/usePropertyQueries.ts | superdangerbro/fieldhive-3.0 e668b6c packages/web/src/app/globalHooks/usePropertyQueries.ts | true | 200 | 3,448 | 'use client';
import { useQuery, useQueryClient, useQueryClientProvider } from '@tanstack/react-query';
import { ENV_CONFIG } from '../config/environment';
import type { PropertyWithLocation } from '../globalTypes/property';
import { useMemo } from 'react';
import { useRef } from 'react';
interface PropertyQueryOptio... | 2 |
lmstudio-ai/lmstudio.js | ee31b64 | packages/lms-common/src/Cleaner.ts | TypeScript | www.github.com/lmstudio-ai/lmstudio.js/tree/main/packages/lms-common/src/Cleaner.ts | https://raw.githubusercontent.com/lmstudio-ai/lmstudio.js/ee31b64/packages/lms-common/src/Cleaner.ts | lmstudio-ai/lmstudio.js ee31b64 packages/lms-common/src/Cleaner.ts | true | 200 | 1,200 | export class Cleaner {
private eagerCleaned = false;
private readonly disposed = false;
private readonly cleanups: Array<() => void> = [];
public register(fn: () => void) {
if (this.eagerCleaned) {
throw new Error("Cannot register a cleanup after eagerClean() was called.");
}
if (this.disposed... | 3 |
Meen-Anusak/Shopping-Cart | aded7d5 | src/app/sidenav/sidenav.component.ts | TypeScript | www.github.com/Meen-Anusak/Shopping-Cart/tree/main/src/app/sidenav/sidenav.component.ts | https://raw.githubusercontent.com/Meen-Anusak/Shopping-Cart/aded7d5/src/app/sidenav/sidenav.component.ts | Meen-Anusak/Shopping-Cart aded7d5 src/app/sidenav/sidenav.component.ts | true | 200 | 841 | import { Component, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
import { MediaMatcher } from "@angular/cdk/layout";
@Component({
selector: 'app-sidenav',
templateUrl: './sidenav.component.html',
styleUrls: ['./sidenav.component.css']
})
export class SidenavComponent implements OnInit ,OnDestroy ... | 6 |
GabrieleGarlaschelli/weeks | 326e7e6 | weeks-frontend/src/routes/(main)/teams/[teamId]/edit/+page.ts | TypeScript | www.github.com/GabrieleGarlaschelli/weeks/tree/main/weeks-frontend/src/routes/(main)/teams/[teamId]/edit/+page.ts | https://raw.githubusercontent.com/GabrieleGarlaschelli/weeks/326e7e6/weeks-frontend/src/routes/%28main%29/teams/%5BteamId%5D/edit/%2Bpage.ts | GabrieleGarlaschelli/weeks 326e7e6 weeks-frontend/src/routes/(main)/teams/[teamId]/edit/+page.ts | true | 200 | 369 | import type { PageLoad } from './$types'
import TeamsService from '$lib/services/teams/teams.service'
export const load = (async ({ fetch, parent, params }) => {
let parentData = await parent()
let service = new TeamsService({ fetch, token: parentData.token })
let team = await service.show({ id: Number(params.team... | 0 |
t4khosu/JS13K-2023 | 021018a | src/entities/enemies/pope.ts | TypeScript | www.github.com/t4khosu/JS13K-2023/tree/main/src/entities/enemies/pope.ts | https://raw.githubusercontent.com/t4khosu/JS13K-2023/021018a/src/entities/enemies/pope.ts | t4khosu/JS13K-2023 021018a src/entities/enemies/pope.ts | true | 200 | 2,916 | import {getSpriteById} from "../../utils/sprite";
import {Staff} from "../weapons/staffs";
import {Mage} from "./mage";
import ShotgunSpell from "../weapons/spells/shotgunSpell";
import SpellCaster from "../weapons/spells/spellCaster";
import {
blueParticleType,
orangeParticleType,
redParticleType,
yell... | 4 |
MahbubulHasanSakib/emp-eval | bb3ab78 | src/main.ts | TypeScript | www.github.com/MahbubulHasanSakib/emp-eval/tree/main/src/main.ts | https://raw.githubusercontent.com/MahbubulHasanSakib/emp-eval/bb3ab78/src/main.ts | MahbubulHasanSakib/emp-eval bb3ab78 src/main.ts | true | 200 | 1,215 | import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { ConfigService } from '@nestjs/config';
import { VersioningType } from '@nestjs/common';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import { globalValidationPipe } from './utils/global-validation';
impor... | 7 |
flavio0567/torrenegra-tsc | c7a7951 | src/modules/appointments/infra/typeorm/repositories/AppointmentsRepository.ts | TypeScript | www.github.com/flavio0567/torrenegra-tsc/tree/main/src/modules/appointments/infra/typeorm/repositories/AppointmentsRepository.ts | https://raw.githubusercontent.com/flavio0567/torrenegra-tsc/c7a7951/src/modules/appointments/infra/typeorm/repositories/AppointmentsRepository.ts | flavio0567/torrenegra-tsc c7a7951 src/modules/appointments/infra/typeorm/repositories/AppointmentsRepository.ts | true | 200 | 1,683 | import { getRepository, Repository } from 'typeorm';
import IAppointmentsRepository from '@modules/appointments/repositories/IAppointmentsRepository';
import ICreateAppointmentDTO from '@modules/appointments/dtos/ICreateAppointmentDTO';
import Appointment from '../entities/Appointment';
class AppointmentsRepository ... | 2 |
m4theuspereira-maker/streams | 8d19c93 | src/process-file.ts | TypeScript | www.github.com/m4theuspereira-maker/streams/tree/main/src/process-file.ts | https://raw.githubusercontent.com/m4theuspereira-maker/streams/8d19c93/src/process-file.ts | m4theuspereira-maker/streams 8d19c93 src/process-file.ts | true | 200 | 3,462 | import fs from "fs";
import readline from "readline";
import { IInputOrOutputValidation, IInvoice } from "./interfaces/interfaces";
export class ProcessFile {
readTextFile(
inputFile: string,
outputFile: string
): void | IInputOrOutputValidation {
const streamFile = fs.createReadStream(inputFile, "utf-... | 3 |
avalserg/ClinicFrontend | 6e68c2b | src/Entities/ApplicationUser/Model/types/applicationUser.ts | TypeScript | www.github.com/avalserg/ClinicFrontend/tree/main/src/Entities/ApplicationUser/Model/types/applicationUser.ts | https://raw.githubusercontent.com/avalserg/ClinicFrontend/6e68c2b/src/Entities/ApplicationUser/Model/types/applicationUser.ts | avalserg/ClinicFrontend 6e68c2b src/Entities/ApplicationUser/Model/types/applicationUser.ts | true | 200 | 621 | import { FeatureFlags } from "@/Shared/Types/featureFlags";
import { JsonSettings } from "./jsonSettings";
import { ApplicationUserRole } from "../consts/applicationUserConsts";
export interface ApplicationUser {
applicationUserId: string;
login: string;
// applicationUserRoleId: string;
applicationUserRole... | 6 |
viki-98/Vacation-Project | d619f23 | Backend/src/routes/csv-router.ts | TypeScript | www.github.com/viki-98/Vacation-Project/tree/main/Backend/src/routes/csv-router.ts | https://raw.githubusercontent.com/viki-98/Vacation-Project/d619f23/Backend/src/routes/csv-router.ts | viki-98/Vacation-Project d619f23 Backend/src/routes/csv-router.ts | true | 200 | 333 | import { Router } from 'express'
import { authenticateToken } from '../middlewares/auth-middleware'
import { getAllVacationsForChart } from '../services/chart-service'
import { getFollowersForCsv } from '../services/csv-service'
const router = Router()
router.get('/', authenticateToken, getFollowersForCsv)
export de... | 0 |
PickleSoda/side-kick | 4f3ac4e | src/utils/requests.ts | TypeScript | www.github.com/PickleSoda/side-kick/tree/main/src/utils/requests.ts | https://raw.githubusercontent.com/PickleSoda/side-kick/4f3ac4e/src/utils/requests.ts | PickleSoda/side-kick 4f3ac4e src/utils/requests.ts | true | 200 | 1,423 | import { request } from "../lib/axios";
import { HabitDuration } from "../types";
export const loginRequest = async (login: string, password: string) => {
return request({
url: "/auth/login",
method: "POST",
data: {
username: login,
password: password,
},
});
};
export const registerRe... | 7 |
CN-M/full-blog | 021378e | backend/routes/categoryRoute.ts | TypeScript | www.github.com/CN-M/full-blog/tree/main/backend/routes/categoryRoute.ts | https://raw.githubusercontent.com/CN-M/full-blog/021378e/backend/routes/categoryRoute.ts | CN-M/full-blog 021378e backend/routes/categoryRoute.ts | true | 200 | 573 | const router = require("express").Router();
const {
showCategories,
showOneCategory,
createCategory,
updateCategory,
deleteCategory,
} = require("../controllers/categoryController");
const { showPostsPerCategory } = require("../controllers/postController");
const { guard } = require("../middleware/authMidd... | 4 |
TAILBONE-jp/openai-api-client | 1527be0 | examples/backend/src/createEdit.ts | TypeScript | www.github.com/TAILBONE-jp/openai-api-client/tree/main/examples/backend/src/createEdit.ts | https://raw.githubusercontent.com/TAILBONE-jp/openai-api-client/1527be0/examples/backend/src/createEdit.ts | TAILBONE-jp/openai-api-client 1527be0 examples/backend/src/createEdit.ts | true | 200 | 278 | import { openAI } from './openAIClient.js'
const createEdit = await openAI.createEdit({
requestBody: {
model: 'text-davinci-edit-001',
input: 'What day of the wek is it?',
instruction: 'Fix the spelling mistakes',
},
})
console.log(createEdit.choices[0].text)
| 3 |
Moon3301/ABYGA | 160f4e1 | src/app/cuenta-usuario/cuenta-usuario.page.spec.ts | TypeScript | www.github.com/Moon3301/ABYGA/tree/main/src/app/cuenta-usuario/cuenta-usuario.page.spec.ts | https://raw.githubusercontent.com/Moon3301/ABYGA/160f4e1/src/app/cuenta-usuario/cuenta-usuario.page.spec.ts | Moon3301/ABYGA 160f4e1 src/app/cuenta-usuario/cuenta-usuario.page.spec.ts | true | 200 | 495 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { CuentaUsuarioPage } from './cuenta-usuario.page';
describe('CuentaUsuarioPage', () => {
let component: CuentaUsuarioPage;
let fixture: ComponentFixture<CuentaUsuarioPage>;
beforeEach(async(() => {
fixture = TestBed.createComponent(C... | 6 |
vonzweigbergksamuel/1dv613-project-javajoy | 4cec5ec | src/server/actions/actions.ts | TypeScript | www.github.com/vonzweigbergksamuel/1dv613-project-javajoy/tree/main/src/server/actions/actions.ts | https://raw.githubusercontent.com/vonzweigbergksamuel/1dv613-project-javajoy/4cec5ec/src/server/actions/actions.ts | vonzweigbergksamuel/1dv613-project-javajoy 4cec5ec src/server/actions/actions.ts | true | 200 | 1,316 | 'use server'
import { type CartProps } from '@/components/client/cart-context'
import db from '@/server/db/db'
import Stripe from 'stripe'
export async function CreatePaymentIntent(cartItems: CartProps[]) {
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY as string)
try {
let totalAmount = 0
cart... | 1 |
hcenteno/RegistroVehicularIU | c02b571 | src/app/serviciosRegistro/serviciosGETMaster.service.ts | TypeScript | www.github.com/hcenteno/RegistroVehicularIU/tree/main/src/app/serviciosRegistro/serviciosGETMaster.service.ts | https://raw.githubusercontent.com/hcenteno/RegistroVehicularIU/c02b571/src/app/serviciosRegistro/serviciosGETMaster.service.ts | hcenteno/RegistroVehicularIU c02b571 src/app/serviciosRegistro/serviciosGETMaster.service.ts | true | 200 | 714 | import { inject, Injectable } from "@angular/core";
import { HttpClient } from "@angular/common/http";
import { IResponse } from '../../complementos/interfaces/IResponse.interface';
import { environment } from '../variablesEntorno/environment';
@Injectable({ providedIn: "root", })
export class swMasterService {
... | 2 |
TimurKastemirov/dessert-calculator | d9b34a0 | src/app/content/recipes/view/components/route/product-list/product-list.component.ts | TypeScript | www.github.com/TimurKastemirov/dessert-calculator/tree/main/src/app/content/recipes/view/components/route/product-list/product-list.component.ts | https://raw.githubusercontent.com/TimurKastemirov/dessert-calculator/d9b34a0/src/app/content/recipes/view/components/route/product-list/product-list.component.ts | TimurKastemirov/dessert-calculator d9b34a0 src/app/content/recipes/view/components/route/product-list/product-list.component.ts | true | 200 | 1,693 | import { Component, OnInit } from '@angular/core';
import { Product } from '../../../../domain/models/product';
import { ActivatedRoute, Router } from '@angular/router';
import { switchMap, take, tap } from 'rxjs';
import { ProductsService } from '@content/recipes/domain/services/products.service';
import { Ingredient ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.