repo stringlengths 7 64 | file_url stringlengths 81 338 | file_path stringlengths 5 257 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:25:31 2026-01-05 01:50:38 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/enable-implicit-conversion.e2e-spec.ts | test/enable-implicit-conversion.e2e-spec.ts | import { INestApplication } from '@nestjs/common';
import { NestFastifyApplication } from '@nestjs/platform-fastify';
import * as request from 'supertest';
import path from 'path';
import { createTestModule } from './helpers/create-test-module';
describe('Express - transform enableImplicitConversion', () => {
let ap... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/validator-mime.e2e-spec.ts | test/validator-mime.e2e-spec.ts | import { INestApplication } from '@nestjs/common';
import { NestFastifyApplication } from '@nestjs/platform-fastify';
import * as request from 'supertest';
import path from 'path';
import { createTestModule } from './helpers/create-test-module';
describe('Express - Mime-type validator', () => {
let app: INestApplica... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/array-files-upload.e2e-spec.ts | test/array-files-upload.e2e-spec.ts | import { INestApplication } from '@nestjs/common';
import { NestFastifyApplication } from '@nestjs/platform-fastify';
import * as request from 'supertest';
import path from 'path';
import { createTestModule } from './helpers/create-test-module';
describe('Express - Array files uploads', () => {
let app: INestApplica... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/custom-error-message.e2e-spec.ts | test/custom-error-message.e2e-spec.ts | import { INestApplication } from '@nestjs/common';
import { NestFastifyApplication } from '@nestjs/platform-fastify';
import * as request from 'supertest';
import path from 'path';
import { createTestModule } from './helpers/create-test-module';
describe('Express - Array files uploads', () => {
let app: INestApplica... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/exposed-optional-upload.e2e-spec.ts | test/exposed-optional-upload.e2e-spec.ts | import { INestApplication } from '@nestjs/common';
import { NestFastifyApplication } from '@nestjs/platform-fastify';
import * as request from 'supertest';
import { createTestModule } from './helpers/create-test-module';
// https://github.com/dmitriy-nz/nestjs-form-data/issues/55
describe('Express - Exposed optional ... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/single-upload.e2e-spec.ts | test/single-upload.e2e-spec.ts | import { INestApplication } from '@nestjs/common';
import { NestFastifyApplication } from '@nestjs/platform-fastify';
import * as request from 'supertest';
import path from 'path';
import { createTestModule } from './helpers/create-test-module';
describe('Express - Single file uploads', () => {
let app: INestApplica... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/allow-in-submodules.e2e-spec.ts | test/allow-in-submodules.e2e-spec.ts | import { INestApplication } from '@nestjs/common';
import { NestFastifyApplication } from '@nestjs/platform-fastify';
import * as request from 'supertest';
import path from 'path';
import { createTestModule } from './helpers/create-test-module';
describe('Express - Submodule', () => {
let appWithGlobal: INestApplica... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/optional-file-upload.e2e-spec.ts | test/optional-file-upload.e2e-spec.ts | import { INestApplication } from '@nestjs/common';
import { NestFastifyApplication } from '@nestjs/platform-fastify';
import * as request from 'supertest';
import { createTestModule } from './helpers/create-test-module';
describe('Express - Optional file uploads', () => {
let app: INestApplication;
beforeEach(asy... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/validator-ext.e2e-spec.ts | test/validator-ext.e2e-spec.ts | import { INestApplication } from '@nestjs/common';
import { NestFastifyApplication } from '@nestjs/platform-fastify';
import * as request from 'supertest';
import path from 'path';
import { createTestModule } from './helpers/create-test-module';
describe('Express - Extension validator', () => {
let app: INestApplica... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/helpers/create-test-module.ts | test/helpers/create-test-module.ts | import { Test, TestingModule } from '@nestjs/testing';
import { INestApplication, ValidationPipe } from '@nestjs/common';
import {
FastifyAdapter,
NestFastifyApplication,
} from '@nestjs/platform-fastify';
import { TestModule } from '../test-module/test.module';
import { ValidationPipeOptions } from '@nestjs/common... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/test-module/test.module.ts | test/test-module/test.module.ts | import { DynamicModule, Module } from '@nestjs/common';
import { TestController } from './controllers/test.controller';
import { NestjsFormDataModule } from '../../src';
import { TestSubmoduleModule } from './modules/test-submodule/test.module';
import { FormDataInterceptorConfig } from '../../src/interfaces';
@Module... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/test-module/dto/UploadSingleFile.dto.ts | test/test-module/dto/UploadSingleFile.dto.ts | import { MemoryStoredFile } from '../../../src/classes/storage';
import { HasMimeType, IsFile, MaxFileSize, MinFileSize } from '../../../src/decorators';
export class UploadSingleFileDto {
@IsFile()
@HasMimeType(['text/plain'])
@MaxFileSize(5)
@MinFileSize(3)
file: MemoryStoredFile;
} | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/test-module/dto/UploadSingleFileFSStorage.dto.ts | test/test-module/dto/UploadSingleFileFSStorage.dto.ts | import { HasMimeType, IsFile, MaxFileSize, MinFileSize } from '../../../src/decorators';
import { FileSystemStoredFile } from '../../../src/classes/storage';
import { ValidationArguments } from 'class-validator';
export class UploadSingleFileFSStorageDto {
@IsFile()
@HasMimeType(['text/plain'])
@MaxFileSize(5,... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/test-module/dto/MimeTypeValidator.dto.ts | test/test-module/dto/MimeTypeValidator.dto.ts | import { MemoryStoredFile } from '../../../src/classes/storage';
import { IsFile, HasMimeType, IsFiles } from '../../../src/decorators';
import { MetaSource } from '../../../src/interfaces/MetaFieldSource';
import { IsOptional } from 'class-validator';
export class MimeTypeValidatorDto {
@IsOptional()
@IsFile()
... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/test-module/dto/UploadOptionalFile.dto.ts | test/test-module/dto/UploadOptionalFile.dto.ts | import { MemoryStoredFile } from '../../../src/classes/storage';
import { HasMimeType, IsFile, MaxFileSize, MinFileSize } from '../../../src/decorators';
import { IsOptional } from 'class-validator';
export class UploadOptionalFileDto {
@IsFile()
@HasMimeType(['text/plain'])
@MaxFileSize(5)
@MinFileSize(3)
... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/test-module/dto/UploadOptionalExposedFieldSingleFile.dto.ts | test/test-module/dto/UploadOptionalExposedFieldSingleFile.dto.ts | import { MemoryStoredFile } from '../../../src/classes/storage';
import { HasMimeType, IsFile, MaxFileSize, MinFileSize } from '../../../src/decorators';
import { IsOptional } from 'class-validator';
import { Expose } from 'class-transformer';
export class UploadOptionalExposedFieldSingleFileDto {
@Expose()
@IsFi... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/test-module/dto/CustomErrorSingle.dto.ts | test/test-module/dto/CustomErrorSingle.dto.ts | import { MemoryStoredFile } from '../../../src/classes/storage';
import { IsFile } from '../../../src/decorators';
export class CustomErrorSingleDto {
@IsFile({message: 'Custom message'})
file: MemoryStoredFile;
}
| typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/test-module/dto/UploadOptionalExposedFieldArrayFile.dto.ts | test/test-module/dto/UploadOptionalExposedFieldArrayFile.dto.ts | import { MemoryStoredFile } from '../../../src/classes/storage';
import { HasMimeType, IsFiles, MaxFileSize, MinFileSize } from '../../../src/decorators';
import { IsOptional } from 'class-validator';
import { Expose } from 'class-transformer';
export class UploadOptionalExposedFieldArrayFileDto {
@Expose()
@IsFi... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/test-module/dto/UploadArrayFiles.dto.ts | test/test-module/dto/UploadArrayFiles.dto.ts | import { MemoryStoredFile } from '../../../src/classes/storage';
import { HasMimeType, IsFiles, MaxFileSize, MinFileSize } from '../../../src/decorators';
export class UploadArrayFilesDto {
@HasMimeType(['text/plain'], { each: true })
@MaxFileSize(5, { each: true })
@MinFileSize(3, { each: true })
@IsFiles()
... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/test-module/dto/ExtValidator.dto.ts | test/test-module/dto/ExtValidator.dto.ts | import { MemoryStoredFile } from '../../../src/classes/storage';
import { IsFile } from '../../../src/decorators';
import { HasExtension } from '../../../src';
import { MetaSource } from '../../../src/interfaces/MetaFieldSource';
import { IsOptional } from 'class-validator';
export class ExtValidatorDto {
@IsOption... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/test-module/dto/CustomErrorArray.dto.ts | test/test-module/dto/CustomErrorArray.dto.ts | import { MemoryStoredFile } from '../../../src/classes/storage';
import { IsFile } from '../../../src/decorators';
export class CustomErrorArrayDto {
@IsFile({ message: 'Custom message', each: true })
files: MemoryStoredFile[];
}
| typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/test-module/controllers/test.controller.ts | test/test-module/controllers/test.controller.ts | import { Body, Controller, HttpCode, HttpStatus, Post, UsePipes, ValidationPipe } from '@nestjs/common';
import { UploadSingleFileDto } from '../dto/UploadSingleFile.dto';
import { FormDataRequest } from '../../../src/decorators';
import { UploadArrayFilesDto } from '../dto/UploadArrayFiles.dto';
import { UploadSingleF... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/test-module/modules/test-submodule/test.module.ts | test/test-module/modules/test-submodule/test.module.ts | import { Module } from '@nestjs/common';
import { TestSubmoduleController } from './controllers/test-submodule.controller';
@Module({
controllers: [
TestSubmoduleController,
],
providers: [],
exports: [],
})
export class TestSubmoduleModule {
}
| typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
dmitriy-nz/nestjs-form-data | https://github.com/dmitriy-nz/nestjs-form-data/blob/d06e07aaa6fe64eb523286033583a9039f9b22eb/test/test-module/modules/test-submodule/controllers/test-submodule.controller.ts | test/test-module/modules/test-submodule/controllers/test-submodule.controller.ts | import { Body, Controller, HttpCode, HttpStatus, Post, UsePipes, ValidationPipe } from '@nestjs/common';
import { UploadSingleFileDto } from '../../../dto/UploadSingleFile.dto';
import { FormDataRequest } from '../../../../../src/decorators';
@Controller('/submodule')
export class TestSubmoduleController {
@Post('... | typescript | MIT | d06e07aaa6fe64eb523286033583a9039f9b22eb | 2026-01-05T05:01:06.610027Z | false |
tsukumijima/youtube-live-chat-flow | https://github.com/tsukumijima/youtube-live-chat-flow/blob/b9e0c86a24a3b749b5604e4224f1d7b259585dea/src/content-script-iframe.ts | src/content-script-iframe.ts | import FlowController from '~/utils/flow-controller'
import chat from '~/assets/chat.svg'
import downArrow from '~/assets/down-arrow.svg'
import refresh from '~/assets/refresh.svg'
import { querySelectorAsync } from '~/utils/dom-helper'
const controller = new FlowController()
let observer: MutationObserver | undefined... | typescript | MIT | b9e0c86a24a3b749b5604e4224f1d7b259585dea | 2026-01-05T05:00:56.823086Z | false |
tsukumijima/youtube-live-chat-flow | https://github.com/tsukumijima/youtube-live-chat-flow/blob/b9e0c86a24a3b749b5604e4224f1d7b259585dea/src/options.ts | src/options.ts | import Vue from 'vue'
import App from '~/components/App.vue'
import '~/plugins/vue-composition-api'
import vuetify from '~/plugins/vuetify'
new Vue({
el: '#app',
render: (createElement) => createElement(App),
vuetify,
})
| typescript | MIT | b9e0c86a24a3b749b5604e4224f1d7b259585dea | 2026-01-05T05:00:56.823086Z | false |
tsukumijima/youtube-live-chat-flow | https://github.com/tsukumijima/youtube-live-chat-flow/blob/b9e0c86a24a3b749b5604e4224f1d7b259585dea/src/background.ts | src/background.ts | import { readyStore } from '~/store'
import iconOff from '~/assets/icon-off.png'
import iconOn from '~/assets/icon-on.png'
interface TabState {
enabled: boolean
following: boolean
}
const initialState = { enabled: true, following: true }
let tabStates: { [tabId: number]: TabState } = {}
const getSettings = async... | typescript | MIT | b9e0c86a24a3b749b5604e4224f1d7b259585dea | 2026-01-05T05:00:56.823086Z | false |
tsukumijima/youtube-live-chat-flow | https://github.com/tsukumijima/youtube-live-chat-flow/blob/b9e0c86a24a3b749b5604e4224f1d7b259585dea/src/popup.ts | src/popup.ts | import Vue from 'vue'
import App from '~/components/App.vue'
import '~/plugins/vue-composition-api'
import vuetify from '~/plugins/vuetify'
new Vue({
el: '#app',
render: (createElement) => createElement(App),
vuetify,
})
| typescript | MIT | b9e0c86a24a3b749b5604e4224f1d7b259585dea | 2026-01-05T05:00:56.823086Z | false |
tsukumijima/youtube-live-chat-flow | https://github.com/tsukumijima/youtube-live-chat-flow/blob/b9e0c86a24a3b749b5604e4224f1d7b259585dea/src/content-script.ts | src/content-script.ts | import { Settings } from '~/models'
import { querySelectorAsync } from '~/utils/dom-helper'
let settings: Settings
const isVideoUrl = () => new URL(location.href).pathname === '/watch'
const waitCollapsed = async () => {
const iframe = await querySelectorAsync('ytd-live-chat-frame')
return new Promise<boolean>((... | typescript | MIT | b9e0c86a24a3b749b5604e4224f1d7b259585dea | 2026-01-05T05:00:56.823086Z | false |
tsukumijima/youtube-live-chat-flow | https://github.com/tsukumijima/youtube-live-chat-flow/blob/b9e0c86a24a3b749b5604e4224f1d7b259585dea/src/store/settings.ts | src/store/settings.ts | import { Module, VuexModule, Mutation } from 'vuex-module-decorators'
import {
AuthorType,
EmojiStyle,
HeightType,
MessageType,
Overflow,
Settings,
StackDirection,
Style,
} from '~/models'
const initialState: Settings = {
background: false,
backgroundOpacity: 0.4,
bottomChatInputEnabled: true,
... | typescript | MIT | b9e0c86a24a3b749b5604e4224f1d7b259585dea | 2026-01-05T05:00:56.823086Z | false |
tsukumijima/youtube-live-chat-flow | https://github.com/tsukumijima/youtube-live-chat-flow/blob/b9e0c86a24a3b749b5604e4224f1d7b259585dea/src/store/index.ts | src/store/index.ts | import Vue from 'vue'
import Vuex from 'vuex'
import VuexPersistence from 'vuex-persist'
import { getModule } from 'vuex-module-decorators'
import settings from '~/store/settings'
Vue.use(Vuex)
const vuexPersist = new VuexPersistence({
storage: chrome.storage.local as any, // eslint-disable-line @typescript-eslint/... | typescript | MIT | b9e0c86a24a3b749b5604e4224f1d7b259585dea | 2026-01-05T05:00:56.823086Z | false |
tsukumijima/youtube-live-chat-flow | https://github.com/tsukumijima/youtube-live-chat-flow/blob/b9e0c86a24a3b749b5604e4224f1d7b259585dea/src/models/message.ts | src/models/message.ts | export type Message = {
author?: string
authorType?: string
message?: string
messageType?: string
html?: string
avatarUrl?: string
stickerUrl?: string
backgroundColor?: string
purchaseAmount?: string
}
| typescript | MIT | b9e0c86a24a3b749b5604e4224f1d7b259585dea | 2026-01-05T05:00:56.823086Z | false |
tsukumijima/youtube-live-chat-flow | https://github.com/tsukumijima/youtube-live-chat-flow/blob/b9e0c86a24a3b749b5604e4224f1d7b259585dea/src/models/settings.ts | src/models/settings.ts | export type AuthorType = 'guest' | 'member' | 'moderator' | 'owner' | 'you'
export type MessageType = 'super-chat' | 'super-sticker' | 'membership'
export type EmojiStyle = 'image' | 'text' | 'none'
export type HeightType = 'flexible' | 'fixed'
export type StackDirection = 'top_to_bottom' | 'bottom_to_top'
export type ... | typescript | MIT | b9e0c86a24a3b749b5604e4224f1d7b259585dea | 2026-01-05T05:00:56.823086Z | false |
tsukumijima/youtube-live-chat-flow | https://github.com/tsukumijima/youtube-live-chat-flow/blob/b9e0c86a24a3b749b5604e4224f1d7b259585dea/src/models/index.ts | src/models/index.ts | export * from '~/models/message'
export * from '~/models/settings'
| typescript | MIT | b9e0c86a24a3b749b5604e4224f1d7b259585dea | 2026-01-05T05:00:56.823086Z | false |
tsukumijima/youtube-live-chat-flow | https://github.com/tsukumijima/youtube-live-chat-flow/blob/b9e0c86a24a3b749b5604e4224f1d7b259585dea/src/utils/message-settings.ts | src/utils/message-settings.ts | import Color from 'color'
import { AuthorType, Message, Settings } from '~/models'
export default class MessageSettings {
private message: Message
private settings: Settings
constructor(message: Message, settings: Settings) {
this.message = message
this.settings = settings
}
private get yourName() ... | typescript | MIT | b9e0c86a24a3b749b5604e4224f1d7b259585dea | 2026-01-05T05:00:56.823086Z | false |
tsukumijima/youtube-live-chat-flow | https://github.com/tsukumijima/youtube-live-chat-flow/blob/b9e0c86a24a3b749b5604e4224f1d7b259585dea/src/utils/dom-helper.ts | src/utils/dom-helper.ts | export const querySelectorAsync = <T extends Element = Element>(
selector: string,
interval = 100,
timeout = 1000
) => {
return new Promise<T | null>((resolve) => {
const expireTime = Date.now() + timeout
const timer = window.setInterval(() => {
const e = document.querySelector<T>(selector)
... | typescript | MIT | b9e0c86a24a3b749b5604e4224f1d7b259585dea | 2026-01-05T05:00:56.823086Z | false |
tsukumijima/youtube-live-chat-flow | https://github.com/tsukumijima/youtube-live-chat-flow/blob/b9e0c86a24a3b749b5604e4224f1d7b259585dea/src/utils/flow-controller.ts | src/utils/flow-controller.ts | import { semaphore } from '@fiahfy/semaphore'
import { Message, Settings } from '~/models'
import { querySelectorAsync, waitAllImagesLoaded } from '~/utils/dom-helper'
import MessageSettings from '~/utils/message-settings'
import { parse } from '~/utils/message-parser'
import { render } from '~/utils/message-renderer'
... | typescript | MIT | b9e0c86a24a3b749b5604e4224f1d7b259585dea | 2026-01-05T05:00:56.823086Z | false |
tsukumijima/youtube-live-chat-flow | https://github.com/tsukumijima/youtube-live-chat-flow/blob/b9e0c86a24a3b749b5604e4224f1d7b259585dea/src/utils/message-parser.ts | src/utils/message-parser.ts | import { getImageSourceAsync } from '~/utils/dom-helper'
const getBackgroundColor = (el: HTMLElement) => {
return getComputedStyle(el).backgroundColor
}
const parseCommonElements = async (el: HTMLElement) => {
const author = el.querySelector('#author-name')?.textContent ?? undefined
const authorType = el.getAtt... | typescript | MIT | b9e0c86a24a3b749b5604e4224f1d7b259585dea | 2026-01-05T05:00:56.823086Z | false |
tsukumijima/youtube-live-chat-flow | https://github.com/tsukumijima/youtube-live-chat-flow/blob/b9e0c86a24a3b749b5604e4224f1d7b259585dea/src/utils/message-renderer.ts | src/utils/message-renderer.ts | import Color from 'color'
import { EmojiStyle } from '~/models'
// e.g. https://yt3.ggpht.com/-TusVtXdhftI/AAAAAAAAAAI/AAAAAAAAAAA/OCgsPx8gmAk/s32-c-k-no-mo-rj-c0xffffff/photo.jpg
const resizeAvatarUrl = (url: string, size: number) => {
return url.replace(/(\/s)\d+([^/]+\/photo\.jpg)$/, `$1${Math.ceil(size)}$2`)
}
... | typescript | MIT | b9e0c86a24a3b749b5604e4224f1d7b259585dea | 2026-01-05T05:00:56.823086Z | false |
tsukumijima/youtube-live-chat-flow | https://github.com/tsukumijima/youtube-live-chat-flow/blob/b9e0c86a24a3b749b5604e4224f1d7b259585dea/src/plugins/vue-composition-api.ts | src/plugins/vue-composition-api.ts | import Vue from 'vue'
import VueCompositionApi from '@vue/composition-api'
Vue.use(VueCompositionApi)
| typescript | MIT | b9e0c86a24a3b749b5604e4224f1d7b259585dea | 2026-01-05T05:00:56.823086Z | false |
tsukumijima/youtube-live-chat-flow | https://github.com/tsukumijima/youtube-live-chat-flow/blob/b9e0c86a24a3b749b5604e4224f1d7b259585dea/src/plugins/vuetify.ts | src/plugins/vuetify.ts | import Vue from 'vue'
import Vuetify from 'vuetify/lib'
Vue.use(Vuetify)
export default new Vuetify()
| typescript | MIT | b9e0c86a24a3b749b5604e4224f1d7b259585dea | 2026-01-05T05:00:56.823086Z | false |
tsukumijima/youtube-live-chat-flow | https://github.com/tsukumijima/youtube-live-chat-flow/blob/b9e0c86a24a3b749b5604e4224f1d7b259585dea/src/@types/global.d.ts | src/@types/global.d.ts | // @see https://github.com/vuejs/vue-class-component/issues/219
declare module '*.vue' {
import Vue from 'vue'
export default Vue
}
// @see https://github.com/microsoft/TypeScript-React-Starter/issues/12
declare module '*.png' {
const content: string
export default content
}
declare module '*.svg' {
const c... | typescript | MIT | b9e0c86a24a3b749b5604e4224f1d7b259585dea | 2026-01-05T05:00:56.823086Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/vite.config.ts | frontend/vite.config.ts | import { defineConfig } from "vite";
import viteReact from "@vitejs/plugin-react";
import { resolve } from "node:path";
import { fileURLToPath } from "node:url";
import { TanStackRouterVite } from "@tanstack/router-plugin/vite";
import tailwindcss from "@tailwindcss/vite";
// Fix __dirname for ESM
const __filename = ... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/reportWebVitals.ts | frontend/src/reportWebVitals.ts | const reportWebVitals = (onPerfEntry?: () => void) => {
if (onPerfEntry && onPerfEntry instanceof Function) {
import('web-vitals').then(({onCLS, onINP, onFCP, onLCP, onTTFB}) => {
onCLS(onPerfEntry)
onINP(onPerfEntry)
onFCP(onPerfEntry)
onLCP(onPerfEntry)
... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/routeTree.gen.ts | frontend/src/routeTree.gen.ts | /* eslint-disable */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// This file was automatically generated by TanStack Router.
// You should NOT make any changes in this file as it will be overwritten.
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from bei... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/main.tsx | frontend/src/main.tsx | import {StrictMode} from 'react'
import ReactDOM from 'react-dom/client'
import {RouterProvider, createRouter} from '@tanstack/react-router'
import {routeTree} from './routeTree.gen.ts'
import './styles.css'
import reportWebVitals from './reportWebVitals.ts'
const router = createRouter({
routeTree,
context: ... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/hooks/use-mobile.ts | frontend/src/hooks/use-mobile.ts | import * as React from "react"
const MOBILE_BREAKPOINT = 768
export function useIsMobile() {
const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined)
React.useEffect(() => {
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)
const onChange = () => {
setIs... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/routes/__root.tsx | frontend/src/routes/__root.tsx | import {Outlet, createRootRoute} from '@tanstack/react-router'
import {ThemeProvider} from "../components/ThemeProvider";
export const Route = createRootRoute({
component: () => (
<ThemeProvider defaultTheme="dark" storageKey="vite-ui-theme">
<Outlet/>
</ThemeProvider>
),
}) | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/routes/index.tsx | frontend/src/routes/index.tsx | import {createFileRoute} from '@tanstack/react-router'
import { useNavigate } from '@tanstack/react-router';
import { useEffect } from 'react';
export const Route = createFileRoute('/')({
component: App,
})
function App() {
const navigate = useNavigate();
useEffect(() => {
navigate({ to: '/docker/... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/routes/terms-of-service.tsx | frontend/src/routes/terms-of-service.tsx | import {ThemeProvider} from '../components/ThemeProvider';
import {createFileRoute} from '@tanstack/react-router'
import {SidebarUI} from "../components/SidebarUI";
import {Card, CardContent} from "../components/ui/card";
import {Separator} from "../components/ui/separator";
export const Route = createFileRoute('/term... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/routes/privacy.tsx | frontend/src/routes/privacy.tsx | import {ThemeProvider} from '../components/ThemeProvider';
import {createFileRoute} from '@tanstack/react-router'
import {SidebarUI} from "../components/SidebarUI";
import {Card, CardContent} from "../components/ui/card";
import {Separator} from "../components/ui/separator";
export const Route = createFileRoute('/priv... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | true |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/routes/docker/compose-builder.tsx | frontend/src/routes/docker/compose-builder.tsx | import { useState, useEffect, useRef, useLayoutEffect } from "react";
import { createFileRoute } from "@tanstack/react-router";
import { ThemeProvider } from "../../components/ThemeProvider";
import { CodeEditor } from "../../components/CodeEditor";
import { SidebarUI } from "../../components/SidebarUI";
import { Card ... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | true |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/CodeEditor.tsx | frontend/src/components/CodeEditor.tsx | import React, { useState } from "react";
import CodeMirror from "@uiw/react-codemirror";
import { hyperLink } from '@uiw/codemirror-extensions-hyper-link';
import {yaml} from "@codemirror/lang-yaml";
import { Button } from "./ui/button";
import { monokaiDimmed } from '@uiw/codemirror-theme-monokai-dimmed';
interface C... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/ThemeProvider.tsx | frontend/src/components/ThemeProvider.tsx | import { createContext, useContext, useEffect, useState } from "react";
type Theme = "dark" | "light" | "system";
type ThemeProviderProps = {
children: React.ReactNode;
defaultTheme?: Theme;
storageKey?: string;
};
type ThemeProviderState = {
theme: Theme;
setTheme: (theme: Theme) => void;
};
const initia... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/SidebarUI.tsx | frontend/src/components/SidebarUI.tsx | import {
ChevronDown,
Container,
AlertCircleIcon,
CheckCircle2Icon,
} from "lucide-react";
import { useNavigate, useRouter } from "@tanstack/react-router";
import {
SidebarContent,
SidebarGroup,
SidebarGroupContent,
SidebarGroupLabel,
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
SidebarHea... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/ui/form.tsx | frontend/src/components/ui/form.tsx | import * as React from "react"
import * as LabelPrimitive from "@radix-ui/react-label"
import { Slot } from "@radix-ui/react-slot"
import {
Controller,
FormProvider,
useFormContext,
useFormState,
type ControllerProps,
type FieldPath,
type FieldValues,
} from "react-hook-form"
import { cn } from "../../li... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/ui/collapsible.tsx | frontend/src/components/ui/collapsible.tsx | import * as CollapsiblePrimitive from "@radix-ui/react-collapsible"
function Collapsible({
...props
}: React.ComponentProps<typeof CollapsiblePrimitive.Root>) {
return <CollapsiblePrimitive.Root data-slot="collapsible" {...props} />
}
function CollapsibleTrigger({
...props
}: React.ComponentProps<typeof Collaps... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/ui/dialog.tsx | frontend/src/components/ui/dialog.tsx | import * as React from "react"
import * as DialogPrimitive from "@radix-ui/react-dialog"
import { XIcon } from "lucide-react"
import { cn } from "../../lib/utils"
function Dialog({
...props
}: React.ComponentProps<typeof DialogPrimitive.Root>) {
return <DialogPrimitive.Root data-slot="dialog" {...props} />
}
fun... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/ui/label.tsx | frontend/src/components/ui/label.tsx | import * as React from "react"
import * as LabelPrimitive from "@radix-ui/react-label"
import { cn } from "../../lib/utils"
function Label({
className,
...props
}: React.ComponentProps<typeof LabelPrimitive.Root>) {
return (
<LabelPrimitive.Root
data-slot="label"
className={cn(
"flex ite... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/ui/toggle.tsx | frontend/src/components/ui/toggle.tsx | import * as React from "react"
import * as TogglePrimitive from "@radix-ui/react-toggle"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "../../lib/utils"
const toggleVariants = cva(
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hov... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/ui/button.tsx | frontend/src/components/ui/button.tsx | import * as React from "react"
import {Slot} from "@radix-ui/react-slot"
import {cva, type VariantProps} from "class-variance-authority"
import {cn} from "../../lib/utils"
const buttonVariants = cva(
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all dis... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/ui/sidebar.tsx | frontend/src/components/ui/sidebar.tsx | import * as React from "react";
import { Slot } from "@radix-ui/react-slot";
import { cva } from "class-variance-authority";
import type { VariantProps } from "class-variance-authority";
import { PanelLeftIcon } from "lucide-react";
import { useIsMobile } from "../../hooks/use-mobile";
import { cn } from "../../lib/ut... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/ui/textarea.tsx | frontend/src/components/ui/textarea.tsx | import * as React from "react"
import { cn } from "../../lib/utils"
function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
return (
<textarea
data-slot="textarea"
className={cn(
"border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ri... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/ui/dropdown-menu.tsx | frontend/src/components/ui/dropdown-menu.tsx | import * as React from "react"
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react"
import { cn } from "../../lib/utils"
function DropdownMenu({
...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {
return <D... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/ui/separator.tsx | frontend/src/components/ui/separator.tsx | "use client"
import * as React from "react"
import * as SeparatorPrimitive from "@radix-ui/react-separator"
import {cn} from "../../lib/utils"
function Separator({
className,
orientation = "horizontal",
decorative = true,
...... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/ui/sheet.tsx | frontend/src/components/ui/sheet.tsx | import * as React from "react"
import * as SheetPrimitive from "@radix-ui/react-dialog"
import {XIcon} from "lucide-react"
import {cn} from "../../lib/utils"
function Sheet({...props}: React.ComponentProps<typeof SheetPrimitive.Root>) {
return <SheetPrimitive.Root data-slot="sheet" {...props} />
}
function Sheet... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/ui/card.tsx | frontend/src/components/ui/card.tsx | import * as React from "react"
import { cn } from "../../lib/utils"
function Card({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card"
className={cn(
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
className
... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/ui/alert.tsx | frontend/src/components/ui/alert.tsx | import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "../../lib/utils"
const alertVariants = cva(
"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 ... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/ui/skeleton.tsx | frontend/src/components/ui/skeleton.tsx | import {cn} from "../../lib/utils"
function Skeleton({className, ...props}: React.ComponentProps<"div">) {
return (
<div
data-slot="skeleton"
className={cn("bg-accent animate-pulse rounded-md", className)}
{...props}
/>
)
}
export {Skeleton}
| typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/ui/tooltip.tsx | frontend/src/components/ui/tooltip.tsx | "use client"
import * as React from "react"
import * as TooltipPrimitive from "@radix-ui/react-tooltip"
import {cn} from "../../lib/utils"
function TooltipProvider({
delayDuration = 0,
...props
}: React.ComponentProps<typeof TooltipPr... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/components/ui/input.tsx | frontend/src/components/ui/input.tsx | import * as React from "react"
import {cn} from "../../lib/utils"
function Input({className, type, ...props}: React.ComponentProps<"input">) {
return (
<input
type={type}
data-slot="input"
className={cn(
"file:text-foreground placeholder:text-muted-foreg... | typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
shantnudon/Dashix | https://github.com/shantnudon/Dashix/blob/bdf375b1484099cefc22888021c60240cdf6e45b/frontend/src/lib/utils.ts | frontend/src/lib/utils.ts | import { clsx, type ClassValue } from 'clsx'
import { twMerge } from 'tailwind-merge'
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
| typescript | MIT | bdf375b1484099cefc22888021c60240cdf6e45b | 2026-01-05T05:01:14.177794Z | false |
luisrudge/prisma-generator-fake-data | https://github.com/luisrudge/prisma-generator-fake-data/blob/39e0ee81fdc2f184b0e409a482bb0f15909600d9/vitest.config.ts | vitest.config.ts | import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
forceRerunTriggers: [
'**/package.json/**',
'**/vitest.config.*/**',
'**/vite.config.*/**',
'src/__tests__/sample.prisma',
],
},
});
| typescript | MIT | 39e0ee81fdc2f184b0e409a482bb0f15909600d9 | 2026-01-05T05:01:14.249400Z | false |
luisrudge/prisma-generator-fake-data | https://github.com/luisrudge/prisma-generator-fake-data/blob/39e0ee81fdc2f184b0e409a482bb0f15909600d9/src/generator.ts | src/generator.ts | import { generatorHandler, GeneratorOptions } from '@prisma/generator-helper';
import { GENERATOR_NAME } from './constants';
import { createMethods } from './helpers/createMethods';
import { extractClientPath } from './utils/generatorUtils';
import { writeFileSafely } from './utils/writeFileSafely';
import invariant fr... | typescript | MIT | 39e0ee81fdc2f184b0e409a482bb0f15909600d9 | 2026-01-05T05:01:14.249400Z | false |
luisrudge/prisma-generator-fake-data | https://github.com/luisrudge/prisma-generator-fake-data/blob/39e0ee81fdc2f184b0e409a482bb0f15909600d9/src/constants.ts | src/constants.ts | export const GENERATOR_NAME = 'prisma-generator-fake-data';
| typescript | MIT | 39e0ee81fdc2f184b0e409a482bb0f15909600d9 | 2026-01-05T05:01:14.249400Z | false |
luisrudge/prisma-generator-fake-data | https://github.com/luisrudge/prisma-generator-fake-data/blob/39e0ee81fdc2f184b0e409a482bb0f15909600d9/src/bin.ts | src/bin.ts | #!/usr/bin/env node
import './generator';
| typescript | MIT | 39e0ee81fdc2f184b0e409a482bb0f15909600d9 | 2026-01-05T05:01:14.249400Z | false |
luisrudge/prisma-generator-fake-data | https://github.com/luisrudge/prisma-generator-fake-data/blob/39e0ee81fdc2f184b0e409a482bb0f15909600d9/src/helpers/createMethods.ts | src/helpers/createMethods.ts | import { faker } from '@faker-js/faker';
import { DMMF } from '@prisma/generator-helper';
import { logger } from '@prisma/internals';
const MAX_INT = 2147483647;
function getFieldDefinition(
models: DMMF.Datamodel['models'],
model: DMMF.Datamodel['models'][number],
field: DMMF.Datamodel['models'][number]['field... | typescript | MIT | 39e0ee81fdc2f184b0e409a482bb0f15909600d9 | 2026-01-05T05:01:14.249400Z | false |
luisrudge/prisma-generator-fake-data | https://github.com/luisrudge/prisma-generator-fake-data/blob/39e0ee81fdc2f184b0e409a482bb0f15909600d9/src/utils/writeFileSafely.ts | src/utils/writeFileSafely.ts | import fs from 'fs';
import path from 'path';
export const writeFileSafely = async (writeLocation: string, content: any) => {
fs.mkdirSync(path.dirname(writeLocation), {
recursive: true,
});
fs.writeFileSync(writeLocation, content);
};
| typescript | MIT | 39e0ee81fdc2f184b0e409a482bb0f15909600d9 | 2026-01-05T05:01:14.249400Z | false |
luisrudge/prisma-generator-fake-data | https://github.com/luisrudge/prisma-generator-fake-data/blob/39e0ee81fdc2f184b0e409a482bb0f15909600d9/src/utils/generatorUtils.ts | src/utils/generatorUtils.ts | import { GeneratorOptions } from '@prisma/generator-helper';
import { relative, dirname, sep } from 'path';
export function extractClientPath(options: GeneratorOptions) {
const targetPath = options.generator.output?.value!;
const clientPath = options.otherGenerators.find((g) =>
g?.provider?.value?.includes('pr... | typescript | MIT | 39e0ee81fdc2f184b0e409a482bb0f15909600d9 | 2026-01-05T05:01:14.249400Z | false |
luisrudge/prisma-generator-fake-data | https://github.com/luisrudge/prisma-generator-fake-data/blob/39e0ee81fdc2f184b0e409a482bb0f15909600d9/src/__tests__/testUtils.ts | src/__tests__/testUtils.ts | import { getDMMF, getSchemaWithPath } from '@prisma/internals';
import path from 'path';
export async function getSampleDMMF() {
const { schemas } = await getSchemaWithPath(
path.join(__dirname, './sample.prisma'),
);
return getDMMF({
datamodel: schemas,
});
}
| typescript | MIT | 39e0ee81fdc2f184b0e409a482bb0f15909600d9 | 2026-01-05T05:01:14.249400Z | false |
luisrudge/prisma-generator-fake-data | https://github.com/luisrudge/prisma-generator-fake-data/blob/39e0ee81fdc2f184b0e409a482bb0f15909600d9/src/__tests__/generatorUtils.test.ts | src/__tests__/generatorUtils.test.ts | import { test, expect, vi } from 'vitest';
import { GeneratorOptions } from '@prisma/generator-helper';
import { extractClientPath } from '../utils/generatorUtils';
test('extractClientPath returns @prisma/client for Unix node_modules path', () => {
const options = {
generator: {
name: 'test-generator',
... | typescript | MIT | 39e0ee81fdc2f184b0e409a482bb0f15909600d9 | 2026-01-05T05:01:14.249400Z | false |
luisrudge/prisma-generator-fake-data | https://github.com/luisrudge/prisma-generator-fake-data/blob/39e0ee81fdc2f184b0e409a482bb0f15909600d9/src/__tests__/createMethods.test.ts | src/__tests__/createMethods.test.ts | import { test, expect } from 'vitest';
import { createMethods } from '../helpers/createMethods';
import { getSampleDMMF } from './testUtils';
test('createMethods with extraImport', async () => {
const sampleDMMF = await getSampleDMMF();
const extraImport = "import {myCustomFunction} from '../utils/fakeImports'";
... | typescript | MIT | 39e0ee81fdc2f184b0e409a482bb0f15909600d9 | 2026-01-05T05:01:14.249400Z | false |
luisrudge/prisma-generator-fake-data | https://github.com/luisrudge/prisma-generator-fake-data/blob/39e0ee81fdc2f184b0e409a482bb0f15909600d9/example/index.ts | example/index.ts | import { fakeProfileComplete } from './prisma/fake-data';
import { fakeUser } from './prisma/fake-data';
console.log(fakeUser());
console.log(fakeProfileComplete());
| typescript | MIT | 39e0ee81fdc2f184b0e409a482bb0f15909600d9 | 2026-01-05T05:01:14.249400Z | false |
luisrudge/prisma-generator-fake-data | https://github.com/luisrudge/prisma-generator-fake-data/blob/39e0ee81fdc2f184b0e409a482bb0f15909600d9/example/prisma/fakeData.utils.ts | example/prisma/fakeData.utils.ts | import { faker } from '@faker-js/faker';
export function fakeSettings() {
return {
notificationsEnabled: faker.datatype.boolean(),
preferredColor: faker.color.rgb(),
};
}
| typescript | MIT | 39e0ee81fdc2f184b0e409a482bb0f15909600d9 | 2026-01-05T05:01:14.249400Z | false |
codemodsquad/astx | https://github.com/codemodsquad/astx/blob/c76c2219fd40bdbd1c75dc8aa0ac13da14a56910/src/Astx.ts | src/Astx.ts | import {
Expression,
Statement,
Node,
NodePath,
ImportDeclaration,
} from './types'
import { Backend } from './backend/Backend'
import find, { Match, convertWithCaptures, createMatch } from './find'
import replace from './replace'
import compileMatcher, { CompiledMatcher, MatchResult } from './compileMatcher'... | typescript | MIT | c76c2219fd40bdbd1c75dc8aa0ac13da14a56910 | 2026-01-05T05:01:15.024820Z | false |
codemodsquad/astx | https://github.com/codemodsquad/astx/blob/c76c2219fd40bdbd1c75dc8aa0ac13da14a56910/src/chooseGetBackend.ts | src/chooseGetBackend.ts | import getBabelAutoBackend from './babel/getBabelAutoBackend'
import getBabelBackend from './babel/getBabelBackend'
import { Backend, GetBackend } from './backend/Backend'
import getRecastBackend from './recast/getRecastBackend'
export default function chooseGetBackend(
parser: string | Backend | null | undefined
):... | typescript | MIT | c76c2219fd40bdbd1c75dc8aa0ac13da14a56910 | 2026-01-05T05:01:15.024820Z | false |
codemodsquad/astx | https://github.com/codemodsquad/astx/blob/c76c2219fd40bdbd1c75dc8aa0ac13da14a56910/src/types.ts | src/types.ts | import * as b from '@babel/types'
import * as t from 'ast-types'
import * as k from 'ast-types/gen/kinds'
type ArrayElement<A> = A extends readonly (infer T)[] ? T : never
export type AstxMatchInfo = {
/**
* Used for cases like when capturing only the name of an identifier with a type annotation
* like `$a: n... | typescript | MIT | c76c2219fd40bdbd1c75dc8aa0ac13da14a56910 | 2026-01-05T05:01:15.024820Z | false |
codemodsquad/astx | https://github.com/codemodsquad/astx/blob/c76c2219fd40bdbd1c75dc8aa0ac13da14a56910/src/replace.ts | src/replace.ts | import { Node, NodePath } from './types'
import { Match } from './find'
import compileReplacement, { CompiledReplacement } from './compileReplacement'
import createReplacementConverter, { bulkConvert } from './convertReplacement'
import { Backend } from './backend/Backend'
import pipeline from './util/pipeline'
import ... | typescript | MIT | c76c2219fd40bdbd1c75dc8aa0ac13da14a56910 | 2026-01-05T05:01:15.024820Z | false |
codemodsquad/astx | https://github.com/codemodsquad/astx/blob/c76c2219fd40bdbd1c75dc8aa0ac13da14a56910/src/index.ts | src/index.ts | export {
default as Astx,
type Transform,
type TransformFunction,
type TransformOptions,
type TransformResult,
type ParsePattern,
type GetReplacement,
} from './Astx'
export { default as find, type Match, type FindOptions } from './find'
export {
default as compileMatcher,
type CompiledMatcher,
} from... | typescript | MIT | c76c2219fd40bdbd1c75dc8aa0ac13da14a56910 | 2026-01-05T05:01:15.024820Z | false |
codemodsquad/astx | https://github.com/codemodsquad/astx/blob/c76c2219fd40bdbd1c75dc8aa0ac13da14a56910/src/AstxConfig.ts | src/AstxConfig.ts | import { Backend } from './backend/Backend'
import z from 'zod'
import debug from 'debug'
export const debugConfig = debug('astx:config')
export const AstxConfigType = z.strictObject({
parser: z
.union([
z.literal('babel'),
z.literal('babel/auto'),
z.literal('recast/babel'),
z.literal('r... | typescript | MIT | c76c2219fd40bdbd1c75dc8aa0ac13da14a56910 | 2026-01-05T05:01:15.024820Z | false |
codemodsquad/astx | https://github.com/codemodsquad/astx/blob/c76c2219fd40bdbd1c75dc8aa0ac13da14a56910/src/find.ts | src/find.ts | import { NodeType, NodePath, Node, Statement, Block } from './types'
import { mapValues } from 'lodash'
import compileMatcher, {
CompiledMatcher,
MatchResult,
mergeCaptures,
} from './compileMatcher'
import { Backend } from './backend/Backend'
import ensureArray from './util/ensureArray'
import forEachNode from '... | typescript | MIT | c76c2219fd40bdbd1c75dc8aa0ac13da14a56910 | 2026-01-05T05:01:15.024820Z | false |
codemodsquad/astx | https://github.com/codemodsquad/astx/blob/c76c2219fd40bdbd1c75dc8aa0ac13da14a56910/src/util/removeImports.ts | src/util/removeImports.ts | import { ImportDeclaration } from '@babel/types'
import Astx from '../Astx'
import { Node, NodePath } from '../types'
import * as t from '@babel/types'
import { stripImportKind } from './imports'
export default function removeImports(
astx: Astx,
pattern: readonly NodePath<Node, any>[]
): boolean {
for (const { ... | typescript | MIT | c76c2219fd40bdbd1c75dc8aa0ac13da14a56910 | 2026-01-05T05:01:15.024820Z | false |
codemodsquad/astx | https://github.com/codemodsquad/astx/blob/c76c2219fd40bdbd1c75dc8aa0ac13da14a56910/src/util/SimpleReplacementCollector.ts | src/util/SimpleReplacementCollector.ts | import { Backend } from '../backend/Backend'
import { Node } from '../types'
import { replaceRanges } from './replaceRanges'
export interface SimpleReplacementInterface {
replace(target: Node, replacement: Node): void
bail(): void
}
export class SimpleReplacementCollector implements SimpleReplacementInterface {
... | typescript | MIT | c76c2219fd40bdbd1c75dc8aa0ac13da14a56910 | 2026-01-05T05:01:15.024820Z | false |
codemodsquad/astx | https://github.com/codemodsquad/astx/blob/c76c2219fd40bdbd1c75dc8aa0ac13da14a56910/src/util/countLines.ts | src/util/countLines.ts | export default function countLines(
source: string,
until: number = source.length
): number {
if (!source) return 0
let lines = 1
const eolRegex = /\r\n?|\n/gm
while (eolRegex.exec(source) && eolRegex.lastIndex <= until) lines++
return lines
}
| typescript | MIT | c76c2219fd40bdbd1c75dc8aa0ac13da14a56910 | 2026-01-05T05:01:15.024820Z | false |
codemodsquad/astx | https://github.com/codemodsquad/astx/blob/c76c2219fd40bdbd1c75dc8aa0ac13da14a56910/src/util/cloneAstWithOriginals.ts | src/util/cloneAstWithOriginals.ts | import { Node } from '../types'
import { original, source, rangeWithWhitespace } from './symbols'
import { makeWhitespaceMap } from './makeWhitespaceMap'
export function cloneAstWithOriginals<T extends Node>(ast: T, src: string): T {
const clones: Map<Node, Node> = new Map()
const { starts, ends } = makeWhitespace... | typescript | MIT | c76c2219fd40bdbd1c75dc8aa0ac13da14a56910 | 2026-01-05T05:01:15.024820Z | false |
codemodsquad/astx | https://github.com/codemodsquad/astx/blob/c76c2219fd40bdbd1c75dc8aa0ac13da14a56910/src/util/transferComments.ts | src/util/transferComments.ts | import { Comment, Node } from '../types'
type Commentable = {
comments?: (Comment & { leading?: boolean; trailing?: boolean })[]
leadingComments?: Comment[]
trailingComments?: Comment[]
}
export default function transferComments(
_from: Node | undefined,
_to: Node | Node[] | undefined,
options: { leading?... | typescript | MIT | c76c2219fd40bdbd1c75dc8aa0ac13da14a56910 | 2026-01-05T05:01:15.024820Z | false |
codemodsquad/astx | https://github.com/codemodsquad/astx/blob/c76c2219fd40bdbd1c75dc8aa0ac13da14a56910/src/util/formatMatches.ts | src/util/formatMatches.ts | import chalk from 'chalk'
import countLines from './countLines'
import { Match } from '../find'
import { Location, Node } from '../types'
import { IpcMatch, IpcNode } from '../node/ipc'
const captureColors = [
chalk.green,
chalk.yellow,
chalk.blue,
chalk.cyan,
chalk.magenta,
chalk.red,
]
function deriveLi... | typescript | MIT | c76c2219fd40bdbd1c75dc8aa0ac13da14a56910 | 2026-01-05T05:01:15.024820Z | false |
codemodsquad/astx | https://github.com/codemodsquad/astx/blob/c76c2219fd40bdbd1c75dc8aa0ac13da14a56910/src/util/normalizeJSXTextValue.ts | src/util/normalizeJSXTextValue.ts | export default function normalizeJSXTextValue(value: string): string {
return value
.replace(/^\s+|\s+$/g, (match) => (/\n/.test(match) ? '' : ' '))
.replace(/\s+/gm, ' ')
}
| typescript | MIT | c76c2219fd40bdbd1c75dc8aa0ac13da14a56910 | 2026-01-05T05:01:15.024820Z | false |
codemodsquad/astx | https://github.com/codemodsquad/astx/blob/c76c2219fd40bdbd1c75dc8aa0ac13da14a56910/src/util/CompilePathError.ts | src/util/CompilePathError.ts | import { NodePath } from '../types'
export default class CompilePathError extends Error {
path: NodePath
source: string | undefined
constructor(message: string, path: NodePath, source?: string) {
super(message)
this.path = path
this.source = source
}
}
| typescript | MIT | c76c2219fd40bdbd1c75dc8aa0ac13da14a56910 | 2026-01-05T05:01:15.024820Z | false |
codemodsquad/astx | https://github.com/codemodsquad/astx/blob/c76c2219fd40bdbd1c75dc8aa0ac13da14a56910/src/util/forEachNode.ts | src/util/forEachNode.ts | import * as AstTypes from 'ast-types'
import { NodeType, NodePath } from '../types'
AstTypes.PathVisitor
export default function forEachNode(
t: typeof AstTypes,
paths: readonly NodePath[],
nodeTypes: readonly NodeType[],
iteratee: (path: NodePath) => void
): void {
const visited = new Set()
function visi... | typescript | MIT | c76c2219fd40bdbd1c75dc8aa0ac13da14a56910 | 2026-01-05T05:01:15.024820Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.