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
mvdicarlo/postybirb-plus
https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/electron-app/src/server/description-template/models/description-template.entity.ts
electron-app/src/server/description-template/models/description-template.entity.ts
import Entity from 'src/server/database/models/entity.model'; import { DescriptionTemplate } from 'postybirb-commons'; import { IsString, IsNotEmpty, IsOptional } from 'class-validator'; export default class DescriptionTemplateEntity extends Entity implements DescriptionTemplate { @IsString() @IsNotEmpty() title...
typescript
BSD-3-Clause
ed123978cf852f5313fdeffd4e8774ca2d08f690
2026-01-05T05:00:46.928660Z
false
mvdicarlo/postybirb-plus
https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/electron-app/src/server/description-template/models/description-template.entity.spec.ts
electron-app/src/server/description-template/models/description-template.entity.spec.ts
import { validateOrReject } from 'class-validator'; import { classToPlain, plainToClass } from 'class-transformer'; import { DescriptionTemplate } from 'postybirb-commons'; import DescriptionTemplateEntity from './description-template.entity'; describe('DescriptionTemplateEntity', () => { let plain: DescriptionTempl...
typescript
BSD-3-Clause
ed123978cf852f5313fdeffd4e8774ca2d08f690
2026-01-05T05:00:46.928660Z
false
mvdicarlo/postybirb-plus
https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/electron-app/src/server/database/database.factory.ts
electron-app/src/server/database/database.factory.ts
import PersistedDatabase from './databases/persisted.database'; import MemoryDatabase from './databases/memory.database'; import Entity from './models/entity.model'; import { EntityIntf } from 'postybirb-commons'; import NedbDatabase from './databases/nedb.database'; import { Provider } from '@nestjs/common/interfaces/...
typescript
BSD-3-Clause
ed123978cf852f5313fdeffd4e8774ca2d08f690
2026-01-05T05:00:46.928660Z
false
mvdicarlo/postybirb-plus
https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/electron-app/src/server/database/database.abstract.ts
electron-app/src/server/database/database.abstract.ts
import Entity from './models/entity.model'; import { EntityIntf } from 'postybirb-commons'; export abstract class Database<T extends Entity, K extends EntityIntf> { constructor( protected readonly clazz: new (...args: any[]) => T, protected readonly classDescriminatorFn?: (entity: K) => new (...args: any[]) ...
typescript
BSD-3-Clause
ed123978cf852f5313fdeffd4e8774ca2d08f690
2026-01-05T05:00:46.928660Z
false
mvdicarlo/postybirb-plus
https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/electron-app/src/server/database/databases/nedb.database.ts
electron-app/src/server/database/databases/nedb.database.ts
import { BadRequestException, NotFoundException } from '@nestjs/common'; import Datastore from 'nedb'; import * as util from 'util'; import { validateOrReject } from 'class-validator'; import { classToPlain } from 'class-transformer'; import Entity from '../models/entity.model'; import { EntityIntf } from 'postybirb-co...
typescript
BSD-3-Clause
ed123978cf852f5313fdeffd4e8774ca2d08f690
2026-01-05T05:00:46.928660Z
false
mvdicarlo/postybirb-plus
https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/electron-app/src/server/database/databases/persisted.database.ts
electron-app/src/server/database/databases/persisted.database.ts
import { Injectable } from '@nestjs/common'; import { DATABASE_DIRECTORY } from 'src/server/directories'; import path from 'path'; import Entity from '../models/entity.model'; import { EntityIntf } from 'postybirb-commons'; import NedbDatabase from './nedb.database'; @Injectable() export default class PersistedDatabas...
typescript
BSD-3-Clause
ed123978cf852f5313fdeffd4e8774ca2d08f690
2026-01-05T05:00:46.928660Z
false
mvdicarlo/postybirb-plus
https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/electron-app/src/server/database/databases/memory.database.ts
electron-app/src/server/database/databases/memory.database.ts
import Entity from '../models/entity.model'; import { EntityIntf } from 'postybirb-commons'; import NedbDatabase from './nedb.database'; import { Injectable } from '@nestjs/common'; @Injectable() export default class MemoryDatabase<T extends Entity, K extends EntityIntf> extends NedbDatabase< T, K > { constructo...
typescript
BSD-3-Clause
ed123978cf852f5313fdeffd4e8774ca2d08f690
2026-01-05T05:00:46.928660Z
false
mvdicarlo/postybirb-plus
https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/electron-app/src/server/database/models/entity.model.ts
electron-app/src/server/database/models/entity.model.ts
import { EntityIntf } from 'postybirb-commons'; import { IsNotEmpty, IsString, IsNumber, IsOptional } from 'class-validator'; import _ from 'lodash'; import uuid from 'uuid/v1'; import { classToPlain } from 'class-transformer'; export default class Entity implements EntityIntf { @IsNotEmpty() @IsString() _id: st...
typescript
BSD-3-Clause
ed123978cf852f5313fdeffd4e8774ca2d08f690
2026-01-05T05:00:46.928660Z
false
mvdicarlo/postybirb-plus
https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/electron-app/src/server/http/http.util.ts
electron-app/src/server/http/http.util.ts
import { Logger } from '@nestjs/common'; import { BrowserWindow, LoadURLOptions, session } from 'electron'; import _ from 'lodash'; import lowdb from 'lowdb'; import { Settings } from 'postybirb-commons'; import request from 'request'; import setCookie from 'set-cookie-parser'; import CookieConverter from 'src/server/u...
typescript
BSD-3-Clause
ed123978cf852f5313fdeffd4e8774ca2d08f690
2026-01-05T05:00:46.928660Z
false
mvdicarlo/postybirb-plus
https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/electron-app/test/common.ts
electron-app/test/common.ts
import { EventsGateway } from 'src/server/events/events.gateway'; export const mockEventEmitterProvider = { provide: EventsGateway, useValue: { emit(event: string, data: any) { return; }, async emitOnComplete(event: string, promise: Promise<any>) { return; }, }, };
typescript
BSD-3-Clause
ed123978cf852f5313fdeffd4e8774ca2d08f690
2026-01-05T05:00:46.928660Z
false
mvdicarlo/postybirb-plus
https://github.com/mvdicarlo/postybirb-plus/blob/ed123978cf852f5313fdeffd4e8774ca2d08f690/electron-app/test/app.e2e-spec.ts
electron-app/test/app.e2e-spec.ts
import { Test, TestingModule } from '@nestjs/testing'; import request from 'supertest'; import { AppModule } from './../src/server/app.module'; describe('AppController (e2e)', () => { let app; beforeEach(async () => { const moduleFixture: TestingModule = await Test.createTestingModule({ imports: [AppMod...
typescript
BSD-3-Clause
ed123978cf852f5313fdeffd4e8774ca2d08f690
2026-01-05T05:00:46.928660Z
false
matsuoka-601/Splash
https://github.com/matsuoka-601/Splash/blob/3df5d621e6f153d7269037cbd8606bd83796f3fd/camera.ts
camera.ts
import { mat4 } from 'wgpu-matrix' export const renderUniformsValues = new ArrayBuffer(272); export const renderUniformsViews = { texelSize: new Float32Array(renderUniformsValues, 0, 2), sphereSize: new Float32Array(renderUniformsValues, 8, 2), invProjectionMatrix: new Float32Array(renderUniformsValues, 16, 16),...
typescript
MIT
3df5d621e6f153d7269037cbd8606bd83796f3fd
2026-01-05T05:00:45.766583Z
false
matsuoka-601/Splash
https://github.com/matsuoka-601/Splash/blob/3df5d621e6f153d7269037cbd8606bd83796f3fd/main.ts
main.ts
import { Camera } from './camera' import { mlsmpmParticleStructSize, MLSMPMSimulator } from './mls-mpm/mls-mpm' import { renderUniformsViews, renderUniformsValues } from './camera' import { FluidRenderer } from './render/fluidRender' import GUI from 'lil-gui'; /// <reference types="@webgpu/types" /> async function i...
typescript
MIT
3df5d621e6f153d7269037cbd8606bd83796f3fd
2026-01-05T05:00:45.766583Z
false
matsuoka-601/Splash
https://github.com/matsuoka-601/Splash/blob/3df5d621e6f153d7269037cbd8606bd83796f3fd/vite.config.ts
vite.config.ts
import { defineConfig } from 'vite'; import glsl from 'vite-plugin-glsl'; export default defineConfig({ plugins: [glsl()], });
typescript
MIT
3df5d621e6f153d7269037cbd8606bd83796f3fd
2026-01-05T05:00:45.766583Z
false
matsuoka-601/Splash
https://github.com/matsuoka-601/Splash/blob/3df5d621e6f153d7269037cbd8606bd83796f3fd/mls-mpm/mls-mpm.ts
mls-mpm/mls-mpm.ts
import clearGrid from './clearGrid.wgsl' import p2g_1 from './p2g_1.wgsl' import p2g_2 from './p2g_2.wgsl' import updateGrid from './updateGrid.wgsl' import g2p from './g2p.wgsl' import copyPosition from './copyPosition.wgsl' import p2gDensity from './p2gDensity.wgsl' import clearDensityGrid from './clearDensityGrid.wg...
typescript
MIT
3df5d621e6f153d7269037cbd8606bd83796f3fd
2026-01-05T05:00:45.766583Z
false
matsuoka-601/Splash
https://github.com/matsuoka-601/Splash/blob/3df5d621e6f153d7269037cbd8606bd83796f3fd/types/global.d.ts
types/global.d.ts
declare module '*.wgsl' { const value: string; export default value; }
typescript
MIT
3df5d621e6f153d7269037cbd8606bd83796f3fd
2026-01-05T05:00:45.766583Z
false
matsuoka-601/Splash
https://github.com/matsuoka-601/Splash/blob/3df5d621e6f153d7269037cbd8606bd83796f3fd/render/fluidRender.ts
render/fluidRender.ts
import depthFilter from './narrowRangeFilter.wgsl' import fluid from './fluid.wgsl' import fullScreen from './fullScreen.wgsl' import thicknessMap from './thicknessMap.wgsl' import gaussian from './gaussian.wgsl' import depthMap from './depthMap.wgsl' import sphere from './sphere.wgsl' import bgColor from './bgColor.wg...
typescript
MIT
3df5d621e6f153d7269037cbd8606bd83796f3fd
2026-01-05T05:00:45.766583Z
false
alanwalk/markdown-toc
https://github.com/alanwalk/markdown-toc/blob/37da719b7f8eccab590953dca6e42f584601f513/src/extension.ts
src/extension.ts
// The module 'vscode' contains the VS Code extensibility API // Import the necessary extensibility types to use in your code below import { window, commands, Disposable, ExtensionContext, StatusBarAlignment, StatusBarItem, TextDocument, workspace, Position, Range, TextEditor...
typescript
MIT
37da719b7f8eccab590953dca6e42f584601f513
2026-01-05T05:00:56.062819Z
false
alanwalk/markdown-toc
https://github.com/alanwalk/markdown-toc/blob/37da719b7f8eccab590953dca6e42f584601f513/typings/vscode-typings.d.ts
typings/vscode-typings.d.ts
/// <reference path="../node_modules/vscode/typings/index.d.ts" />
typescript
MIT
37da719b7f8eccab590953dca6e42f584601f513
2026-01-05T05:00:56.062819Z
false
alanwalk/markdown-toc
https://github.com/alanwalk/markdown-toc/blob/37da719b7f8eccab590953dca6e42f584601f513/typings/node.d.ts
typings/node.d.ts
/// <reference path="../node_modules/vscode/typings/node.d.ts" />
typescript
MIT
37da719b7f8eccab590953dca6e42f584601f513
2026-01-05T05:00:56.062819Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/vite.config.ts
code/vite.config.ts
import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // https://vite.dev/config/ export default defineConfig({ plugins: [react()], base: './', build: { outDir: 'dist', minify: 'esbuild', rollupOptions: { output: { manualChunks: { 'react-vendor': ['react...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/App.tsx
code/src/App.tsx
import { useState, useRef, useEffect } from 'react'; import type { AcceleratorCard } from './types'; import cardsData from './data/generated/cards.json'; import './App.css'; import { FluentProvider, webLightTheme, Button, Title1, Body1, Input, Menu, MenuTrigger, MenuPopover, MenuList, Menu...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/global.d.ts
code/src/global.d.ts
declare module "*.css" { const content: string; export default content; }
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/main.tsx
code/src/main.tsx
import { StrictMode } from 'react' import { createRoot } from 'react-dom/client' import './index.css' import App from './App.tsx' createRoot(document.getElementById('root')!).render( <StrictMode> <App /> </StrictMode>, )
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/vite-env.d.ts
code/src/vite-env.d.ts
/// <reference types="vite/client" />
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/hooks/useSimpleUrlUpdate.ts
code/src/hooks/useSimpleUrlUpdate.ts
import { useState, useEffect, useCallback } from 'react'; import { SECTION_MAPPING } from '../utils/sectionMapping'; export const useNavigationWithUrl = () => { const [currentSection, setCurrentSection] = useState<string>('home'); // Simple section detection - just like Microsoft Teams const getCurrentVisibleSe...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/hooks/useUrlState.ts
code/src/hooks/useUrlState.ts
import { useState, useEffect, useCallback, useRef } from 'react'; import { SECTION_MAPPING } from '../utils/sectionMapping'; interface UseUrlStateOptions { defaultSection?: string; scrollOffset?: number; sectionMapping?: Record<string, string>; } export const useUrlState = (options: UseUrlStateOptions = {}) => ...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/hooks/useIntersectionObserver.ts
code/src/hooks/useIntersectionObserver.ts
import { useState, useEffect, useRef } from 'react'; interface UseIntersectionObserverOptions { threshold?: number; rootMargin?: string; onSectionChange?: (sectionId: string) => void; debounceMs?: number; } export const useIntersectionObserver = ( sectionIds: string[], options: UseIntersectionObserverOpti...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/hooks/useSortDeepLink.ts
code/src/hooks/useSortDeepLink.ts
import { useState, useEffect, useCallback } from 'react'; import { getSortFromUrl, updateUrlWithSort, isValidSortParam } from '../utils/sortDeepLink'; export const useSortDeepLink = (defaultSort: string = "releaseNewest") => { const [sortBy, setSortBy] = useState<string>(() => { const urlSort = getSortFromUrl();...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/hooks/useNavigationWithUrl.ts
code/src/hooks/useNavigationWithUrl.ts
import { useState, useEffect, useCallback, useRef } from 'react'; import { SECTION_MAPPING } from '../utils/sectionMapping'; import { getSectionFromUrl, updateUrlWithSection } from '../utils/sortDeepLink'; export const useNavigationWithUrl = () => { const [currentSection, setCurrentSection] = useState<string>('home'...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/hooks/useNavigation.ts
code/src/hooks/useNavigation.ts
import { useState, useEffect, useCallback } from 'react'; interface UseNavigationOptions { scrollOffset?: number; sectionMapping?: Record<string, string>; } export const useNavigation = (options: UseNavigationOptions = {}) => { const { scrollOffset = 60, sectionMapping = { 'featured': 'featured',...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/hooks/index.ts
code/src/hooks/index.ts
export { useIntersectionObserver } from './useIntersectionObserver'; export { useUrlState } from './useUrlState'; export { useNavigation } from './useNavigation';
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/hooks/useScrollNavigation.ts
code/src/hooks/useScrollNavigation.ts
import { useState, useEffect, useCallback } from 'react'; import { getSectionFromUrl, updateUrlWithSection } from '../utils/sortDeepLink'; import { SECTION_MAPPING } from '../utils/sectionMapping'; interface UseScrollNavigationOptions { defaultSection?: string; scrollOffset?: number; sectionMapping?: Recor...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/hooks/useSearchDeepLink.ts
code/src/hooks/useSearchDeepLink.ts
import { useState, useEffect, useCallback } from 'react'; import { getKeywordFromUrl, updateUrlWithKeyword, isValidKeyword } from '../utils/sortDeepLink'; export const useSearchDeepLink = (defaultKeyword: string = "") => { const [searchQuery, setSearchQuery] = useState<string>(() => { const urlKeyword =...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/hooks/useFilterDeepLink.ts
code/src/hooks/useFilterDeepLink.ts
import { useState, useEffect, useCallback } from 'react'; import { getFiltersFromUrl, updateUrlWithFilters } from '../utils/sortDeepLink'; export const useFilterDeepLink = (dynamicFilterOptions: Record<string, string[]>) => { const [selectedItems, setSelectedItems] = useState<Record<string, boolean>>(() => { ...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/TagRow/TagRow.tsx
code/src/components/TagRow/TagRow.tsx
import React, { useRef, useState, useEffect } from "react"; import { Caption1Strong, Tag, Tooltip, InteractionTag, InteractionTagPrimary, Button, } from "@fluentui/react-components"; import { Link16Regular, Open20Regular, ChevronLeft16Regular, ChevronRight16Regular, } from "@fluentui/react-icons"; i...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/TextSection/TextSection.tsx
code/src/components/TextSection/TextSection.tsx
import React from 'react'; import { Title1, Subtitle1, Button } from '@fluentui/react-components'; import { REVERSE_SECTION_MAPPING } from '../../utils/sectionMapping'; import './TextSection.css'; export interface LinkConfig { text: string; url: string; target?: '_blank' | '_self'; } export interface TextSectio...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/TextSection/index.ts
code/src/components/TextSection/index.ts
export { default } from './TextSection'; export type { TextSectionProps, LinkConfig } from './TextSection';
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/SuccessStoriesSection/SuccessStoriesSection.tsx
code/src/components/SuccessStoriesSection/SuccessStoriesSection.tsx
import { Title1, Text, makeStyles, tokens } from '@fluentui/react-components'; import type { SuccessStoriesSectionProps } from '../../types'; import './SuccessStoriesSection.css'; const useStyles = makeStyles({ successGradient: { background: 'linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%)', }, testimonial...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/SuccessStoriesSection/index.ts
code/src/components/SuccessStoriesSection/index.ts
export { default } from './SuccessStoriesSection'; export type { SuccessStoriesSectionProps } from '../../types';
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/CustomerTrustSection/CustomerTrustSection.tsx
code/src/components/CustomerTrustSection/CustomerTrustSection.tsx
import React from 'react'; import { Title1, Subtitle1, Button } from '@fluentui/react-components'; import type { SuccessStoriesSectionProps } from '../../types'; import './CustomerTrustSection.css'; export interface LinkConfig { text: string; url: string; target?: '_blank' | '_self'; } export interface Customer...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/CustomerTrustSection/index.ts
code/src/components/CustomerTrustSection/index.ts
export { default } from './CustomerTrustSection'; export type { CustomerTrustSectionProps, LinkConfig } from './CustomerTrustSection';
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/Footer/index.ts
code/src/components/Footer/index.ts
export { default } from './Footer'; export type { FooterProps, FooterLink } from './Footer';
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/Footer/Footer.tsx
code/src/components/Footer/Footer.tsx
import React from 'react'; import { Title2, Text, Link } from '@fluentui/react-components'; import './Footer.css'; export interface FooterLink { text: string; url: string; target?: '_blank' | '_self' | '_parent' | '_top'; } export interface FooterProps { /** Main headline text (left-aligned) */ headline: st...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/DifferentiatorSection/DifferentiatorSection.tsx
code/src/components/DifferentiatorSection/DifferentiatorSection.tsx
import React, { useState } from 'react'; import { Title1, Text, Accordion, AccordionHeader, AccordionItem, AccordionPanel, makeStyles } from '@fluentui/react-components'; import { ChevronUp20Regular, ChevronDown20Regular } from '@fluentui/react-icons'; import './DifferentiatorSection.css'; export interfa...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/DifferentiatorSection/index.ts
code/src/components/DifferentiatorSection/index.ts
export { default } from './DifferentiatorSection'; export type { DifferentiatorSectionProps, DifferentiatorAccordionItem } from './DifferentiatorSection';
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/HowItWorksSection/index.ts
code/src/components/HowItWorksSection/index.ts
export { default as HowItWorksSection } from './HowItWorksSection'; export type { HowItWorksSectionProps, HowItWorksStep } from './HowItWorksSection';
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/HowItWorksSection/HowItWorksSection.tsx
code/src/components/HowItWorksSection/HowItWorksSection.tsx
import React from 'react'; import { Title1, Title3, Text, makeStyles, tokens } from '@fluentui/react-components'; export interface HowItWorksStep { icon: string; // URL to icon image label: string; // Step title (e.g., "Step 1: Browse") content: string; // Step description } export interface HowItWork...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/GsaCard/GsaCard.tsx
code/src/components/GsaCard/GsaCard.tsx
import { useState, useRef } from "react"; import { Body1, Button, Caption1, Caption1Strong, Subtitle2, } from "@fluentui/react-components"; import { OpenRegular, ShieldCheckmarkRegular } from "@fluentui/react-icons"; import "./GsaCard.css"; import type { AcceleratorCard, AcceleratorAsset } from "../../types";...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/VideoPlayer/VideoPlayer.tsx
code/src/components/VideoPlayer/VideoPlayer.tsx
import React from 'react'; import './VideoPlayer.css'; export interface VideoPlayerProps { /** YouTube video URL (supports embed, watch, and short URLs) */ videoUrl: string; /** Whether the video should autoplay when loaded */ autoplay?: boolean; /** Additional CSS classes */ className?: string; /** Opti...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/VideoPlayer/index.ts
code/src/components/VideoPlayer/index.ts
export { default } from './VideoPlayer'; export type { VideoPlayerProps } from './VideoPlayer';
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/Navigation/NavigationSection.tsx
code/src/components/Navigation/NavigationSection.tsx
import { useEffect, useRef, useState } from 'react'; import { Button, TabList, Tab, Menu, MenuTrigger, MenuPopover, MenuList, MenuItem } from '@fluentui/react-components'; import { LineHorizontal3Regular } from '@fluentui/react-icons'; import './Navigation.css'; import './NavigationSection.css'; export...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/Navigation/Navigation.tsx
code/src/components/Navigation/Navigation.tsx
import { useState } from 'react'; import { Button, TabList, Tab, Menu, MenuTrigger, MenuPopover, MenuList, MenuItem } from '@fluentui/react-components'; import { LineHorizontal3Regular } from '@fluentui/react-icons'; import './Navigation.css'; export interface NavigationTab { value: string; lab...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/Navigation/index.ts
code/src/components/Navigation/index.ts
export { default } from './Navigation'; export type { NavigationTab, NavigationProps } from './Navigation'; export { default as NavigationSection } from './NavigationSection'; export type { NavigationSectionProps } from './NavigationSection';
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/HeroSection/HeroSection.tsx
code/src/components/HeroSection/HeroSection.tsx
import React from 'react'; import { Subtitle1, Button } from '@fluentui/react-components'; import VideoPlayer from '../VideoPlayer'; import { REVERSE_SECTION_MAPPING } from '../../utils/sectionMapping'; import './HeroSection.css'; export interface LinkConfig { text: string; url: string; target?: '_blank' | '_sel...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/HeroSection/index.ts
code/src/components/HeroSection/index.ts
export { default } from './HeroSection'; export type { HeroSectionProps, LinkConfig } from './HeroSection';
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/FeaturedSection/FeaturedSection.tsx
code/src/components/FeaturedSection/FeaturedSection.tsx
import { useState, useEffect } from 'react'; import { Button, Title1 } from '@fluentui/react-components'; import { OpenRegular } from '@fluentui/react-icons'; import type { AcceleratorCard } from '../../types'; import './FeaturedSection.css'; interface FeaturedSectionProps { title?: string; acceleratorNames: strin...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/FeaturedSection/index.ts
code/src/components/FeaturedSection/index.ts
export { default } from './FeaturedSection';
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/Header/index.ts
code/src/components/Header/index.ts
export { default } from './Header'; export type { HeaderProps } from './Header';
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/components/Header/Header.tsx
code/src/components/Header/Header.tsx
import React from 'react'; import { Text } from '@fluentui/react-components'; import './Header.css'; export interface HeaderProps { /** Logo component or image URL */ logo: React.ReactNode; /** Main title text */ title: string; /** Subtitle text (optional) */ subtitle?: string; /** Additional CSS classes...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/utils/validateCardData.ts
code/src/utils/validateCardData.ts
type CardData = { accelerator: string; solutionPlays: string[]; solutionAreas: string[]; productsAndServices: string[]; assets?: { label: string; href: string }[]; }; export const validateCardData = (data: CardData) => { // Validate required fields if (!data.accelerator) { throw new Error('Card data ...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/utils/sectionMapping.ts
code/src/utils/sectionMapping.ts
export const SECTION_MAPPING: Record<string, string> = { 'featured': 'featured', 'accelerators': 'accelerators', 'differentiators': 'differentiators', 'how-it-works': 'how-it-works', 'success-stories': 'customer-trust' }; export const REVERSE_SECTION_MAPPING: Record<string, string> = { 'featured': 'feature...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/utils/getLinkIcon.ts
code/src/utils/getLinkIcon.ts
const fileTypeIconMap: Record<string, string | null> = { pptx: "/csa-sas-ext-landingpage/icons/PowerPoint.svg", ppt: "/csa-sas-ext-landingpage/icons/PowerPoint.svg", xlsx: "/csa-sas-ext-landingpage/icons/Excel.svg", xls: "/csa-sas-ext-landingpage/icons/Excel.svg", docx: "/csa-sas-ext-landingpage/icons/Word.sv...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/utils/sortDeepLink.ts
code/src/utils/sortDeepLink.ts
export const sortParamMapping: Record<string, string> = { releaseNewest: "newest", releaseOldest: "oldest", accelerator: "az", acceleratorDesc: "za", }; export const reverseSortParamMapping: Record<string, string> = { newest: "releaseNewest", oldest: "releaseOldest", az: "accelerator", za: "accelerator...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/types/index.ts
code/src/types/index.ts
// Asset type for card resources export interface AcceleratorAsset { label: string; href: string; fileType?: string; } // Main accelerator card interface export interface AcceleratorCard { solutionPlays: string[]; solutionAreas: string[]; keys: string[]; stability: string; accelerator: string; excerp...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/assets/bundleicons.tsx
code/src/assets/bundleicons.tsx
//DEV NOTES: //It's recommended to create bundleIcons for icons that nest within Fluent components and then import them into your project. // See full catalog of icons at https://react.fluentui.dev/?path=/docs/icons-catalog--docs. import { ArrowExitFilled, ArrowExitRegular, BeakerFilled, BeakerRegular, Bookm...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/assets/MicrosoftLogo.tsx
code/src/assets/MicrosoftLogo.tsx
export const MicrosoftLogo = () => ( <svg width="20" height="20" viewBox="0 0 23 23" xmlns="http://www.w3.org/2000/svg"> <path fill="#F25022" d="M1 1h10v10H1z"/> <path fill="#00A4EF" d="M1 12h10v10H1z"/> <path fill="#7FBA00" d="M12 1h10v10H12z"/> <path fill="#FFB900" d="M12 12h10v10H12z"/> </svg> );...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/assets/MsftColor.tsx
code/src/assets/MsftColor.tsx
import React from 'react'; const MicrosoftLogo: React.FC = () => { return ( <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M5.04349 5.04349H15.4783V15.4783H5.04349V5.04349Z" fill="#F35325" /> <path d="M16.521...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/assets/BeautyMark.tsx
code/src/assets/BeautyMark.tsx
import React from "react"; const CindyCrawford: React.FC = () => { return ( <svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M0 24C13.2548 24 24 13.2548 24 0C24 13.2548 34.7452 24 48 24C34.7452 24 24 34.7452 ...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
microsoft/Solution-Accelerators
https://github.com/microsoft/Solution-Accelerators/blob/2dfc72fadd17cb0b248e358c4375d9795ffb9051/code/src/assets/GoldenStandardLogo.tsx
code/src/assets/GoldenStandardLogo.tsx
export const GoldenStandardLogo = () => ( <svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M48 16C34.745 16 24 26.745 24 40C24 48.284 28.291 55.622 35 59.798C28.291 63.974 24 71.312 24 79.596C24 80.374 24.044 81.142 24.13 81.897C24.639 85.85 26.15 89.5...
typescript
MIT
2dfc72fadd17cb0b248e358c4375d9795ffb9051
2026-01-05T05:00:43.314465Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/next-env.d.ts
next-env.d.ts
/// <reference types="next" /> /// <reference types="next/image-types/global" /> // NOTE: This file should not be edited // see https://nextjs.org/docs/basic-features/typescript for more information.
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/interfaces/index.ts
interfaces/index.ts
// You can include shared interfaces/types in a separate file // and then use them in any component by importing them. For // example, to import the interface below do: // // import User from 'path/to/interfaces'; import { ReactNode } from "react"; export type User = { id: number; name: string; }; export type Po...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/_app.tsx
pages/_app.tsx
import React, { useEffect } from "react"; import { AppProps } from "next/app"; import "../styles/styles.css"; import { useRouter } from "next/dist/client/router"; import * as gtag from "../functions/gtag"; import CookieBanner from "../components/CookieBanner"; import { H } from "highlight.run"; if (typeof window !== "...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/[[...params]].tsx
pages/[[...params]].tsx
import Layout from "../components/Layout"; import { zipObject } from "lodash"; import Cookies from "cookies"; import MidCard from "../components/home-page/MidCard"; import { Dropdown, MidContainer } from "../components/common"; import { GetServerSideProps } from "next"; import { getPopularPosts, getPopularPostsCli...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/_document.tsx
pages/_document.tsx
import Document, { Html, Head, Main, NextScript } from "next/document"; import { GA4_ID, GA_TRACKING_ID } from "../functions/gtag"; export default class MyDocument extends Document { render() { return ( <Html> <Head> {/* Global Site Tag (gtag.js) - Google Analytics */} <script ...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/notice.tsx
pages/notice.tsx
import TitleHead from "../components/TitleHead"; import { DOMAIN } from "../functions/constants"; const LandingPage = () => { return ( <div> <TitleHead title="Reddium – Medium-themed Reddit client"> <meta name="description" content="The Reddit client for Silicon Valley. " ...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/login/index.tsx
pages/login/index.tsx
import { GetServerSideProps } from "next"; import React from "react"; import Cookies from "cookies"; import { CLIENT_ID, REDIRECT_URI } from "../../functions/constants"; export const getServerSideProps: GetServerSideProps = async ({ req, res, query, }) => { const cookies = new Cookies(req, res); if (query.ha...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/me/index.tsx
pages/me/index.tsx
import { GetServerSideProps } from "next"; import { getProfile, getUserInfo, getUserPosts, getUserPostsClient, } from "../../functions/service"; import React, { useState } from "react"; import TitleHead from "../../components/TitleHead"; import { NavMenu } from "../../components/common"; import UserPost from "....
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/r/[subreddit]/[[...params]].tsx
pages/r/[subreddit]/[[...params]].tsx
import Subpage from "../../../components/Subpage"; import { zipObject } from "lodash"; import { Dropdown } from "../../../components/common"; import { GetServerSideProps } from "next"; import { getPopularPosts, getPopularPostsClient, getSubredditInfo, } from "../../../functions/service"; import { POPULAR_PARAM...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/r/[subreddit]/comments/[postid]/[[...params]].tsx
pages/r/[subreddit]/comments/[postid]/[[...params]].tsx
import { GetServerSideProps } from "next"; import React, { useEffect, useState } from "react"; import PostLayout from "../../../../../components/PostLayout"; import PostHeader from "../../../../../components/post-page/PostHeader"; import PostContent from "../../../../../components/post-page/PostContent"; import PostCom...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/user/[username]/[[...params]].tsx
pages/user/[username]/[[...params]].tsx
import { GetServerSideProps } from "next"; import { getUserInfo, getUserPosts, getUserPostsClient, } from "../../../functions/service"; import React, { useState } from "react"; import TitleHead from "../../../components/TitleHead"; import { NavMenu } from "../../../components/common"; import UserPost from "../../...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/api/vote/index.ts
pages/api/vote/index.ts
import type { NextApiRequest, NextApiResponse } from "next"; export default async function handler( req: NextApiRequest, res: NextApiResponse ) { const { postid, token, dir = 1 } = JSON.parse(req.body); const headerOptions = { method: "POST", headers: { Authorization: `Bearer ${token}` } }; try { ...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/api/save/index.ts
pages/api/save/index.ts
import type { NextApiRequest, NextApiResponse } from "next"; export default async function handler( req: NextApiRequest, res: NextApiResponse ) { const { postid, token } = JSON.parse(req.body); const headerOptions = { method: "POST", headers: { Authorization: `Bearer ${token}` } }; try { await ...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/api/morecomments/index.ts
pages/api/morecomments/index.ts
import type { NextApiRequest, NextApiResponse } from "next"; export default async function handler( req: NextApiRequest, res: NextApiResponse ) { const { link_id, children, token = "" } = JSON.parse(req.body); const url = `https://oauth.reddit.com/api/morechildren?api_type=json&link_id=${link_id}&children=${ch...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/api/unsave/index.ts
pages/api/unsave/index.ts
import type { NextApiRequest, NextApiResponse } from "next"; export default async function handler( req: NextApiRequest, res: NextApiResponse ) { const { postid, token } = JSON.parse(req.body); const headerOptions = { method: "POST", headers: { Authorization: `Bearer ${token}` } }; try { await ...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/api/user/posts/index.ts
pages/api/user/posts/index.ts
import type { NextApiRequest, NextApiResponse } from "next"; export default async function handler( req: NextApiRequest, res: NextApiResponse ) { const { username, sort = "new", category = "", t = "day", token = "", after = "" } = JSON.parse(req.body); const url = `https://www.reddit....
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/api/subscribe/index.ts
pages/api/subscribe/index.ts
import type { NextApiRequest, NextApiResponse } from "next"; export default async function handler( req: NextApiRequest, res: NextApiResponse ) { const { sub, token, action } = JSON.parse(req.body); const headerOptions = { method: "POST", headers: { Authorization: `Bearer ${token}` } }; try { a...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/api/posts/index.ts
pages/api/posts/index.ts
import type { NextApiRequest, NextApiResponse } from "next"; export default async function handler( req: NextApiRequest, res: NextApiResponse ) { const { subreddit = "popular", sort_type = "hot", t = "day", limit = 25, after = "", token = "", home = false } = JSON.parse(req.body); ...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/api/search/index.ts
pages/api/search/index.ts
import type { NextApiRequest, NextApiResponse } from "next"; export default async function handler( req: NextApiRequest, res: NextApiResponse ) { const { q, sort = "relevance", t = "all", type = "", after = "", token = "" } = JSON.parse(req.body); const url = token != "" ? `...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/logout/index.tsx
pages/logout/index.tsx
import { GetServerSideProps } from "next"; import React from "react"; import Cookies from "cookies"; export const getServerSideProps: GetServerSideProps = async ({ req, res }) => { const cookies = new Cookies(req, res); cookies.set("token", ""); res.statusCode = 302; res.setHeader("Location", `/`); res.end()...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/pages/search/index.tsx
pages/search/index.tsx
import { GetServerSideProps } from "next"; import React, { useState } from "react"; import TitleHead from "../../components/TitleHead"; import { Dropdown, NavMenu, SubredditCard, UserCard } from "../../components/common"; import SearchPost from "../../components/search-page/SearchPost"; import { DOMAIN, SEA...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/components/PostLayout.tsx
components/PostLayout.tsx
import React from "react"; import { getIntFromString } from "../functions/common"; import { DOMAIN, PLACEHOLDER_IMAGES } from "../functions/constants"; import { Props } from "../interfaces"; import { NavMenu } from "./common"; import TitleHead from "./TitleHead"; const PostLayout = ({ children, title, permalink, thumb...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/components/Subpage.tsx
components/Subpage.tsx
import React from "react"; import { DOMAIN } from "../functions/constants"; import { Props } from "../interfaces"; import { NavMenu } from "./common"; import TitleHead from "./TitleHead"; const Subpage = ({ children, title, subreddit, token, backgroundColor = "white" }: Props) => ( <div> <TitleHead tit...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/components/Layout.tsx
components/Layout.tsx
import React from "react"; import { getTimeOfDay } from "../functions/common"; import { DOMAIN } from "../functions/constants"; import { Props } from "../interfaces"; import { NavMenu } from "./common"; import TitleHead from "./TitleHead"; const Layout = ({ children, title, token }: Props) => ( <div> <TitleHead ...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/components/TitleHead.tsx
components/TitleHead.tsx
import React from "react"; import Head from "next/head"; import { Props } from "../interfaces"; const TitleHead = ({ title, children }: Props) => { return ( <Head> <title>{title}</title> <meta charSet="utf-8" /> <meta name="viewport" content="initial-scale=1.0, width=device-width" /> <met...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/components/CookieBanner.tsx
components/CookieBanner.tsx
import { useEffect, useState } from "react"; const CookieBanner = () => { const [seenBanner, setSeenBanner] = useState("yes"); useEffect(() => { if (typeof window !== "undefined") { setSeenBanner(window.sessionStorage.getItem("reddiumCookieSeen") || "no"); } }); const clickBanner = () => { s...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/components/subreddit-page/SubredditInfo.tsx
components/subreddit-page/SubredditInfo.tsx
import React from "react"; const SubredditInfo = (subredditInfo: any) => subredditInfo.hasOwnProperty("display_name") ? ( <div> <div className="flex flex-row items-center"> <div className="rounded" style={{ backgroundImage: "url(" + (subre...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/components/subreddit-page/SubHeadCard.tsx
components/subreddit-page/SubHeadCard.tsx
import React from "react"; import { getIntFromString } from "../../functions/common"; import { PLACEHOLDER_IMAGES } from "../../functions/constants"; import { Post } from "../../interfaces"; import { PostMetadata } from "../common"; const SubHeadCard = (post: Post) => post.hasOwnProperty("title") ? ( <div classN...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/components/subreddit-page/SubGridCard.tsx
components/subreddit-page/SubGridCard.tsx
import React from "react"; import { getIntFromString, limitText } from "../../functions/common"; import { PLACEHOLDER_IMAGES, TITLE_MAX } from "../../functions/constants"; import { Post } from "../../interfaces"; import { PostMetadata } from "../common"; const SubGridCard = (post: Post) => post.hasOwnProperty("title...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false
eightants/reddium
https://github.com/eightants/reddium/blob/e5fe29847a11b88efed693a7a22f67723d3873b5/components/subreddit-page/SubWideCard.tsx
components/subreddit-page/SubWideCard.tsx
import React from "react"; import { getIntFromString, limitText } from "../../functions/common"; import { DESC_MAX, PLACEHOLDER_IMAGES, TITLE_MAX } from "../../functions/constants"; import { Post } from "../../interfaces"; import { PostMetadata } from "../common"; const SubWideCard = ({ title, created_utc, ...
typescript
MIT
e5fe29847a11b88efed693a7a22f67723d3873b5
2026-01-05T05:00:56.854133Z
false