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 |
|---|---|---|---|---|---|---|---|---|
coinbase/onchain-app-template | https://github.com/coinbase/onchain-app-template/blob/eb51bf7e335ac34bb305393ac3802da534094aa7/src/components/Footer.tsx | src/components/Footer.tsx | 'use client';
import {
DISCORD_LINK,
FIGMA_LINK,
GITHUB_LINK,
ONCHAINKIT_LINK,
TWITTER_LINK,
} from '../links';
import ArrowSvg from '../svg/ArrowSvg';
const docLinks = [
{ href: ONCHAINKIT_LINK, title: 'Docs' },
{ href: GITHUB_LINK, title: 'Github' },
{ href: DISCORD_LINK, title: 'Discord' },
{ hre... | typescript | MIT | eb51bf7e335ac34bb305393ac3802da534094aa7 | 2026-01-05T05:00:15.425330Z | false |
coinbase/onchain-app-template | https://github.com/coinbase/onchain-app-template/blob/eb51bf7e335ac34bb305393ac3802da534094aa7/src/svg/ArrowSvg.tsx | src/svg/ArrowSvg.tsx | export default function ArrowSvg() {
return (
<svg
width="14"
height="14"
viewBox="0 0 16 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
className="pb-1"
>
<title>Arrow SVG</title>
<path
d="M3.25586 2.99992H11.9106L1.33325 13.5773L2.51176 14.7558L13.... | typescript | MIT | eb51bf7e335ac34bb305393ac3802da534094aa7 | 2026-01-05T05:00:15.425330Z | false |
coinbase/onchain-app-template | https://github.com/coinbase/onchain-app-template/blob/eb51bf7e335ac34bb305393ac3802da534094aa7/src/svg/OnchainkitSvg.tsx | src/svg/OnchainkitSvg.tsx | export default function OnchainkitSvg() {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="155"
height="26"
viewBox="0 0 155 26"
fill="none"
>
<title>Onchainkit SVG</title>
<path
d="M155.002 10.7364H151.783V20.0258C151.783 21.9709 152.722 22.2056 155.00... | typescript | MIT | eb51bf7e335ac34bb305393ac3802da534094aa7 | 2026-01-05T05:00:15.425330Z | false |
coinbase/onchain-app-template | https://github.com/coinbase/onchain-app-template/blob/eb51bf7e335ac34bb305393ac3802da534094aa7/src/svg/BaseSvg.tsx | src/svg/BaseSvg.tsx | export default function BaseSvg() {
return (
<svg
width="20"
height="20"
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<title>Base SVG</title>
<circle cx="10" cy="10" r="10" fill="#0052FF" />
<path
d="M10.0437 16.9488C13.9196 16.94... | typescript | MIT | eb51bf7e335ac34bb305393ac3802da534094aa7 | 2026-01-05T05:00:15.425330Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/init.ts | src/init.ts | 'use strict';
import fs from 'fs-extra';
import path from 'path';
fs.copySync(
path.join(__dirname, '../../theme.js'),
path.join(process.cwd(), 'theme.js'),
);
| typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/Provider.tsx | src/Provider.tsx | import * as React from 'react';
import { theme } from '../theme';
export const UtilityThemeContext = React.createContext(theme);
interface IProps {
theme?: any;
}
export const UtilityThemeProvider = (
props: React.PropsWithChildren<IProps>,
) => {
return (
<UtilityThemeContext.Provider value={props.theme ... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/index.ts | src/index.ts | import Box, { UtilityBoxProps } from './components/Box';
import Text, { UtilityTextProps } from './components/Text';
import { UtilityThemeProvider } from './Provider';
export { Box, UtilityThemeProvider, Text, UtilityBoxProps, UtilityTextProps };
| typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/components/Box.tsx | src/components/Box.tsx | import * as React from 'react';
import {
View,
StyleSheet,
ViewProps,
ViewStyle,
StyleProp,
DimensionValue,
} from 'react-native';
import get from 'lodash.get';
import { spaceUtils } from '../utils/space';
import { SpaceType } from '../types/Space';
import { boxAlignUtils } from '../utils/box/align';
impor... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/components/WrappedComponent.tsx | src/components/WrappedComponent.tsx | import * as React from 'react';
import { UtilityThemeContext } from '../Provider';
export const useThemeContext = () => {
return React.useContext(UtilityThemeContext);
};
| typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/components/Text.tsx | src/components/Text.tsx | import * as React from 'react';
import {
Text as RnText,
StyleSheet,
TextProps,
TextStyle,
StyleProp,
} from 'react-native';
import { spaceUtils } from '../utils/space';
import { textSizeUtils } from '../utils/text/size';
import { weightUtils } from '../utils/text/weight';
import { colorUtils } from '../util... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/space.ts | src/utils/space.ts | import get from 'lodash.get';
import { ITheme } from '../types/ITheme';
type Props = {
theme: ITheme;
} & Partial<{
m: number | string;
mb: number | string;
mt: number | string;
mr: number | string;
ml: number | string;
my: number | string;
mx: number | string;
p: number | string;
pb: number | st... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/border.ts | src/utils/border.ts | import get from 'lodash.get';
import { ITheme } from '../types/ITheme';
interface IProps {
theme: ITheme;
border?: number;
}
export const borderUtils = (props: IProps) => {
let _style: {
borderWidth?: number;
} = {};
const border = get(props, 'border');
if (border === null) {
_style.borderWidth... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/opacity.ts | src/utils/opacity.ts | import get from 'lodash.get';
import { ITheme } from '../types/ITheme';
import { OpacityType } from '../types/OpacityType';
interface IProps {
theme: ITheme;
o?: number | OpacityType | string;
}
export const opacityUtils = (props: IProps) => {
let _style: {
opacity?: number;
} = {};
const opacity = ge... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/flattenStyle.ts | src/utils/flattenStyle.ts | import { StyleProp, ViewStyle, TextStyle } from 'react-native';
export const flattenStyle = (
style?: StyleProp<ViewStyle> | StyleProp<TextStyle>,
) => {
if (style === null || typeof style !== 'object') {
return undefined;
}
if (!Array.isArray(style)) {
return style;
}
const result = {};
for (l... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/position.ts | src/utils/position.ts | import get from 'lodash.get';
import { PositionType } from '../types/Position';
interface IProps {
position?: PositionType;
top?: number;
bottom?: number;
left?: number;
right?: number;
}
export const positionUtils = (props: IProps) => {
let _style: {
position?: PositionType;
top?: number;
bo... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/text/align.ts | src/utils/text/align.ts | import get from 'lodash.get';
import { ITheme } from '../../types/ITheme';
interface IProps {
theme: ITheme;
center?: boolean;
right?: boolean;
left?: boolean;
}
export const textAlignUtils = (props: IProps) => {
const _style: {
textAlign?: string;
} = {};
const center = get(props, 'center');
i... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/text/color.ts | src/utils/text/color.ts | import get from 'lodash.get';
import { ITheme } from '../../types/ITheme';
interface IProps {
color?: string;
theme: ITheme;
}
export const colorUtils = (props: IProps) => {
const _style: {
color?: string;
} = {};
const themeColor = get(props, ['theme', 'color']);
const color = get(props, 'color');... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/text/manipulation.ts | src/utils/text/manipulation.ts | import get from 'lodash.get';
import React from 'react';
const capitalizeText = (str: string) =>
str.charAt(0).toUpperCase() + str.slice(1);
const capitalizeEachWords = (str: string) =>
str
.split(' ')
.map(capitalizeText)
.join(' ')
.trim();
const thousandSeparator = (str: string | number) =>
... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/text/lineHeight.ts | src/utils/text/lineHeight.ts | import get from 'lodash.get';
import { ITheme } from '../../types/ITheme';
import { LineHeightType } from '../../types/LineHeight';
interface IProps {
theme: ITheme;
lineH?: LineHeightType | string | number;
}
export const lineHeightUtils = (props: IProps, fontSize?: number) => {
const _style: {
lineHeight... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/text/fontStyle.ts | src/utils/text/fontStyle.ts | import get from 'lodash.get';
interface IProps {
italic?: boolean;
}
export const fontStyleUtils = (props: IProps) => {
const _style: {
fontStyle?: 'normal' | 'italic';
} = {};
const italic = get(props, 'italic');
if (italic) {
_style.fontStyle = 'italic';
}
return _style;
};
| typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/text/letterSpacing.ts | src/utils/text/letterSpacing.ts | import get from 'lodash.get';
import { LetterSpacingType } from '../../types/LetterSpacing';
import { ITheme } from '../../types/ITheme';
interface IProps {
ls?: LetterSpacingType | number | string;
theme: ITheme;
}
export const letterSpacingUtils = (props: IProps) => {
const _style: {
letterSpacing?: numb... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/text/size.ts | src/utils/text/size.ts | import get from 'lodash.get';
import { ITheme } from '../../types/ITheme';
import { FontSizeType } from '../../types/FontSize';
interface IProps {
theme: ITheme;
size?: number | FontSizeType | string;
}
export const textSizeUtils = (props: IProps) => {
const _style: {
fontSize?: number;
} = {};
const ... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/text/fontFamily.ts | src/utils/text/fontFamily.ts | import get from 'lodash.get';
import { ITheme } from '../../types/ITheme';
interface IProps {
font?: string;
theme: ITheme;
}
export const fontFamilyUtils = (props: IProps) => {
const _style: {
fontFamily?: string;
} = {};
const themeFamily = get(props, ['theme', 'text', 'fonts']);
if (themeFamily)... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/text/weight.ts | src/utils/text/weight.ts | import get from 'lodash.get';
import { ITheme } from '../../types/ITheme';
interface IProps {
theme: ITheme;
light?: boolean;
bold?: boolean;
normal?: boolean;
weight?: string;
}
export const weightUtils = (props: IProps) => {
const _style: {
fontWeight?: string;
} = {};
const lightWeight = get(... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/text/deco.ts | src/utils/text/deco.ts | import get from 'lodash.get';
import { TextDecoType } from '../../types/TextDeco';
interface IProps {
deco?: TextDecoType;
}
export const decoUtils = (props: IProps) => {
const _style: {
textDecorationLine?:
| 'none'
| 'underline'
| 'line-through'
| 'underline line-through';
} = {};
... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/box/align.ts | src/utils/box/align.ts | import get from 'lodash.get';
interface IProps {
center?: boolean;
}
export const boxAlignUtils = (props: IProps) => {
const _style: {
justifyContent?: 'center' | 'flex-start' | 'flex-end';
alignItems?: 'center' | 'flex-start' | 'flex-end';
} = {};
const center = get(props, 'center');
if (center) ... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/box/rows.ts | src/utils/box/rows.ts | import get from 'lodash.get';
import * as React from 'react';
interface IProps {
rows?: number[];
children?: React.ReactNode;
}
export const boxRowsUtils = (props: IProps) => {
let newChild = props.children;
const rows = get(props, 'rows');
if (rows && Array.isArray(rows)) {
newChild = React.Children.... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/box/shadow.ts | src/utils/box/shadow.ts | import get from 'lodash.get';
import { ITheme } from '../../types/ITheme';
interface IProps {
theme: ITheme;
shadow?: number;
}
export const shadowUtils = (props: IProps) => {
let _style = {};
const shadow = get(props, 'shadow');
if (typeof shadow === 'number') {
const themeShadows = get(props, ['the... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/box/size.ts | src/utils/box/size.ts | import get from 'lodash.get';
import { DimensionValue } from 'react-native';
interface IProps {
h?: DimensionValue;
w?: DimensionValue;
}
export const boxSizeUtils = (props: IProps) => {
const _style: {
height?: DimensionValue;
width?: DimensionValue;
} = {};
const h = get(props, 'h');
if (h) {
... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/box/flex.ts | src/utils/box/flex.ts | import { FlexAlignType } from 'react-native';
import get from 'lodash.get';
import {
JustifyContentType,
FlexDirectionType,
DirType,
AlignType,
JustifyType,
AlignSelfType,
SelfType,
FlexWrapType,
} from '../../types/Flex';
interface IProps {
f?: number;
dir?: DirType;
align?: AlignType;
justif... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/utils/box/radius.ts | src/utils/box/radius.ts | // TODO: Update this code
import get from 'lodash.get';
import { DimensionValue, Image } from 'react-native';
import * as React from 'react';
import { ITheme } from '../../types/ITheme';
import { RadiusType } from '../../types/Radius';
interface IProps {
radius?: RadiusType;
theme: ITheme;
circle?: number;
s... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/types/Radius.ts | src/types/Radius.ts | export type RadiusType =
| 'xs'
| 'sm'
| 'base'
| 'lg'
| 'xl'
| 'rounded'
| number
| boolean
| string;
| typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/types/TextAlign.ts | src/types/TextAlign.ts | export type TextAlignType = 'center' | 'left' | 'right';
| typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/types/OpacityType.ts | src/types/OpacityType.ts | import { ITheme } from './ITheme';
export type OpacityType = keyof ITheme['opacity'];
| typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/types/Space.ts | src/types/Space.ts | import { ITheme } from './ITheme';
export type SpaceType = keyof ITheme['space'] | string | number;
| typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/types/Flex.ts | src/types/Flex.ts | export type JustifyContentType =
| 'flex-start'
| 'flex-end'
| 'center'
| 'space-between'
| 'space-around'
| 'space-evenly';
export type FlexDirectionType =
| 'row'
| 'column'
| 'row-reverse'
| 'column-reverse';
export type DirType = 'col' | 'col-reverse' | 'row' | 'row-reverse';
export type Alig... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/types/LetterSpacing.ts | src/types/LetterSpacing.ts | import { ITheme } from './ITheme';
export type LetterSpacingType = keyof ITheme['text']['spacing'];
| typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/types/TextDeco.ts | src/types/TextDeco.ts | export type TextDecoType =
| 'underline'
| 'none'
| 'through'
| 'underline-through';
| typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/types/FontSize.ts | src/types/FontSize.ts | import { ITheme } from './ITheme';
export type FontSizeType = keyof ITheme['text']['size'];
| typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/types/ITheme.ts | src/types/ITheme.ts | export interface ITheme {
space: {
xs: number;
sm: number;
md: number;
lg: number;
xl: number;
};
color: { [key: string]: string };
text: {
size: {
sm: number;
base: number;
md: number;
lg: number;
xl: number;
};
weight: {
light: string;
... | typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/types/Position.ts | src/types/Position.ts | export type PositionType = 'absolute' | 'relative';
| typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
AppAndFlow/react-native-design-utility | https://github.com/AppAndFlow/react-native-design-utility/blob/f827dad88caae053d6ff1799203fcc53ac253479/src/types/LineHeight.ts | src/types/LineHeight.ts | export type LineHeightType = 'none' | 'tight' | 'normal' | 'large';
| typescript | MIT | f827dad88caae053d6ff1799203fcc53ac253479 | 2026-01-05T05:00:21.389411Z | false |
mgechev/ngworld | https://github.com/mgechev/ngworld/blob/da17457b463b1ba92c22504dddbd5c045961895d/index.ts | index.ts | import * as minimist from 'minimist';
import { bgRed } from 'chalk';
import { writeFileSync, existsSync } from 'fs';
import { join } from 'path';
import { parse } from './parser';
import { emit } from './emitter';
import { ncp } from 'ncp';
const error = message => {
console.error(bgRed.white(message));
};
const p... | typescript | MIT | da17457b463b1ba92c22504dddbd5c045961895d | 2026-01-05T05:00:22.053153Z | false |
mgechev/ngworld | https://github.com/mgechev/ngworld/blob/da17457b463b1ba92c22504dddbd5c045961895d/tools/cleanup.ts | tools/cleanup.ts | import { writeFileSync, readFileSync } from 'fs';
const packageJson = JSON.parse(readFileSync('./dist/package.json').toString());
delete packageJson.devDependencies;
delete packageJson.scripts;
writeFileSync('./dist/package.json', JSON.stringify(packageJson, null, 2));
| typescript | MIT | da17457b463b1ba92c22504dddbd5c045961895d | 2026-01-05T05:00:22.053153Z | false |
mgechev/ngworld | https://github.com/mgechev/ngworld/blob/da17457b463b1ba92c22504dddbd5c045961895d/emitter/renderer.ts | emitter/renderer.ts | import { render } from 'mustache';
import { cyan, green } from 'chalk';
import { Module, Component } from '../parser/formatters';
import {
WorldLayout,
GardenLayout,
WallThickness,
TreeLayout,
TreeWidth,
LeaveSet,
LeafType,
Position,
Size
} from './layout';
const Header = `<!DOCTYPE html>
<html lang... | typescript | MIT | da17457b463b1ba92c22504dddbd5c045961895d | 2026-01-05T05:00:22.053153Z | false |
mgechev/ngworld | https://github.com/mgechev/ngworld/blob/da17457b463b1ba92c22504dddbd5c045961895d/emitter/layout.ts | emitter/layout.ts | import { cyan, green } from 'chalk';
import { Module, Component, Node, NodeType } from '../parser/formatters';
export const GardenHeight = 1.5;
export const TreeWidth = 3;
export const TreeDepth = 3;
export const TreeMargin = 4;
export const GardenMargin = 5;
export const WallThickness = 0.1;
export const GroundY = 0... | typescript | MIT | da17457b463b1ba92c22504dddbd5c045961895d | 2026-01-05T05:00:22.053153Z | false |
mgechev/ngworld | https://github.com/mgechev/ngworld/blob/da17457b463b1ba92c22504dddbd5c045961895d/emitter/index.ts | emitter/index.ts | import { createWorldLayout } from './layout';
import { renderWorld } from './renderer';
export const emit = (data: any) => renderWorld(createWorldLayout(data))
| typescript | MIT | da17457b463b1ba92c22504dddbd5c045961895d | 2026-01-05T05:00:22.053153Z | false |
mgechev/ngworld | https://github.com/mgechev/ngworld/blob/da17457b463b1ba92c22504dddbd5c045961895d/parser/index.ts | parser/index.ts | import { WorkspaceSymbols } from 'ngast';
import { formatContext } from './formatters';
export const parse = (projectPath: string) => {
const project = new WorkspaceSymbols(
projectPath
);
return formatContext(project);
};
| typescript | MIT | da17457b463b1ba92c22504dddbd5c045961895d | 2026-01-05T05:00:22.053153Z | false |
mgechev/ngworld | https://github.com/mgechev/ngworld/blob/da17457b463b1ba92c22504dddbd5c045961895d/parser/formatters.ts | parser/formatters.ts | import { NgModuleSymbol, ComponentSymbol, WorkspaceSymbols } from 'ngast';
import {
TmplAstNode,
TmplAstElement,
TmplAstTemplate,
} from '@angular/compiler';
import { cyan, green } from 'chalk';
export interface Module {
name: string;
components: Component[];
}
export interface Component {
name: string;
... | typescript | MIT | da17457b463b1ba92c22504dddbd5c045961895d | 2026-01-05T05:00:22.053153Z | false |
mxschmitt/playwright-test-coverage | https://github.com/mxschmitt/playwright-test-coverage/blob/794b49150c501691055121974e751d1456feaab6/playwright.config.ts | playwright.config.ts | import { defineConfig } from '@playwright/test';
export default defineConfig({
webServer: {
command: 'npm run dev',
port: 5173,
env: {
USE_BABEL_PLUGIN_ISTANBUL: '1',
},
},
projects: [
{
name: 'Chrome',
use: {
browserName: 'chromium',
},
},
],
});
| typescript | MIT | 794b49150c501691055121974e751d1456feaab6 | 2026-01-05T05:00:26.712909Z | false |
mxschmitt/playwright-test-coverage | https://github.com/mxschmitt/playwright-test-coverage/blob/794b49150c501691055121974e751d1456feaab6/vite.config.ts | vite.config.ts | import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import IstanbulPlugin from 'vite-plugin-istanbul';
// https://vitejs.dev/config/
export default defineConfig({
build: {
sourcemap: true,
},
plugins: [
react(),
...(process.env.USE_BABEL_PLUGIN_ISTANBUL ? [IstanbulPlugin({
... | typescript | MIT | 794b49150c501691055121974e751d1456feaab6 | 2026-01-05T05:00:26.712909Z | false |
mxschmitt/playwright-test-coverage | https://github.com/mxschmitt/playwright-test-coverage/blob/794b49150c501691055121974e751d1456feaab6/src/App.tsx | src/App.tsx | import React from 'react';
import logo from './logo.svg';
import './App.css';
const App = () => {
const [backgroundColor, setBackgroundColor] = React.useState("#1abc9c")
const handleMakeTurquoise = () => {
setBackgroundColor("#1abc9c")
}
const handleMakeRed = () => {
setBackgroundColor("#e74c3c")
}
... | typescript | MIT | 794b49150c501691055121974e751d1456feaab6 | 2026-01-05T05:00:26.712909Z | false |
mxschmitt/playwright-test-coverage | https://github.com/mxschmitt/playwright-test-coverage/blob/794b49150c501691055121974e751d1456feaab6/src/index.tsx | src/index.tsx | import './index.css';
import App from './App';
import { createRoot } from 'react-dom/client';
const container = document.getElementById('root')!;
const root = createRoot(container); // createRoot(container!) if you use TypeScript
root.render(<App/>);
| typescript | MIT | 794b49150c501691055121974e751d1456feaab6 | 2026-01-05T05:00:26.712909Z | false |
mxschmitt/playwright-test-coverage | https://github.com/mxschmitt/playwright-test-coverage/blob/794b49150c501691055121974e751d1456feaab6/src/vite-env.d.ts | src/vite-env.d.ts | /// <reference types="vite/client" />
| typescript | MIT | 794b49150c501691055121974e751d1456feaab6 | 2026-01-05T05:00:26.712909Z | false |
mxschmitt/playwright-test-coverage | https://github.com/mxschmitt/playwright-test-coverage/blob/794b49150c501691055121974e751d1456feaab6/e2e/baseFixtures.ts | e2e/baseFixtures.ts | import * as fs from 'fs';
import * as path from 'path';
import * as crypto from 'crypto';
import { test as baseTest } from '@playwright/test';
const istanbulCLIOutput = path.join(process.cwd(), '.nyc_output');
export function generateUUID(): string {
return crypto.randomBytes(16).toString('hex');
}
export const te... | typescript | MIT | 794b49150c501691055121974e751d1456feaab6 | 2026-01-05T05:00:26.712909Z | false |
mxschmitt/playwright-test-coverage | https://github.com/mxschmitt/playwright-test-coverage/blob/794b49150c501691055121974e751d1456feaab6/e2e/App.test.ts | e2e/App.test.ts | import { test } from './baseFixtures';
test.beforeEach(async ({ page }) => {
await page.goto("/")
})
test('use Turquoise as a default background color', async ({ page }) => {
await page.waitForSelector("text=#1abc9c")
});
test('use Red as a background color', async ({ page }) => {
await page.click("text=Red")
... | typescript | MIT | 794b49150c501691055121974e751d1456feaab6 | 2026-01-05T05:00:26.712909Z | false |
mxschmitt/playwright-test-coverage | https://github.com/mxschmitt/playwright-test-coverage/blob/794b49150c501691055121974e751d1456feaab6/e2e/App2.test.ts | e2e/App2.test.ts | import { test } from './baseFixtures';
test.beforeEach(async ({ page }) => {
await page.goto("/")
})
test('use Turquoise as a background color', async ({ page }) => {
await page.click("text=Turquoise")
await page.waitForSelector("text=#1abc9c")
});
| typescript | MIT | 794b49150c501691055121974e751d1456feaab6 | 2026-01-05T05:00:26.712909Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/config.example.ts | src/config.example.ts | import { transformLoginDataGuilds } from '#root/transformers/loginDataGuilds';
import { LogLevel } from '@sapphire/framework';
import { GatewayIntentBits, OAuth2Scopes, Partials, type ClientOptions } from 'discord.js';
export const DEV = process.env.NODE_ENV !== 'production';
export const CLIENT_ID = '';
export const... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/RTByte.ts | src/RTByte.ts | import { RTByteClient } from '#lib/RTByteClient';
import '#lib/setup';
import { TOKENS } from '#root/config';
const client = new RTByteClient;
const main = async () => {
try {
await client.login(TOKENS.BOT_TOKEN);
} catch (error) {
client.logger.fatal(error);
client.destroy();
process.exit(1);
}
};
void m... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/commands/Developer/stats.ts | src/commands/Developer/stats.ts | import { RTByteEmbed } from '#lib/extensions/RTByteEmbed';
import { ApplyOptions } from '@sapphire/decorators';
import { Command } from '@sapphire/framework';
import { memoryUsage } from 'node:process';
@ApplyOptions<Command.Options>({
description: 'See statistics about the Bot.'
})
export class UserCommand extends C... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/commands/Standard/quote.ts | src/commands/Standard/quote.ts | import { RTByteCommand } from '#lib/extensions/RTByteCommand';
import { RTByteEmbed } from '#lib/extensions/RTByteEmbed';
import { Colors } from "#utils/constants";
import { ApplyOptions } from '@sapphire/decorators';
import { type ChatInputCommand, type ContextMenuCommand } from '@sapphire/framework';
import { Applica... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/commands/Standard/roles.ts | src/commands/Standard/roles.ts | /*
--- Temporarily disabling this command while I think about probably just doing reaction/interaction embeds instead ---
import { RTByteSubCommand } from '#lib/extensions/RTByteCommand';
import { RTByteEmbed } from '#lib/extensions/RTByteEmbed';
import { Emojis } from '#utils/constants';
import { ApplyOptions } from... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/commands/Standard/weather.ts | src/commands/Standard/weather.ts | import { RTByteCommand } from "#lib/extensions/RTByteCommand";
import { RTByteEmbed } from "#lib/extensions/RTByteEmbed";
import { API_KEYS } from "#root/config";
import { ApplyOptions } from "@sapphire/decorators";
import { FetchResultTypes, fetch } from '@sapphire/fetch';
import type { ChatInputCommand } from "@sapph... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/commands/Standard/ping.ts | src/commands/Standard/ping.ts | import { RTByteCommand } from '#lib/extensions/RTByteCommand';
import { Emojis } from '#utils/constants';
import { ApplyOptions } from '@sapphire/decorators';
import { isMessageInstance } from '@sapphire/discord.js-utilities';
import { type ChatInputCommand } from '@sapphire/framework';
@ApplyOptions<ChatInputCommand.... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/commands/Moderation/roleinfo.ts | src/commands/Moderation/roleinfo.ts | import { RTByteCommand } from '#lib/extensions/RTByteCommand';
import { RTByteEmbed } from '#lib/extensions/RTByteEmbed';
import { Emojis } from '#utils/constants';
import { ApplyOptions } from '@sapphire/decorators';
import { type ChatInputCommand } from '@sapphire/framework';
import { inlineCodeBlock } from '@sapphir... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/commands/Moderation/send.ts | src/commands/Moderation/send.ts | import { RTByteCommand } from '#lib/extensions/RTByteCommand';
import { Emojis } from '#utils/constants';
import { ApplyOptions } from '@sapphire/decorators';
import { type ChatInputCommand } from '@sapphire/framework';
import { inlineCodeBlock } from '@sapphire/utilities';
import { ChannelType, PermissionFlagsBits } f... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/commands/Moderation/userinfo.ts | src/commands/Moderation/userinfo.ts | import { RTByteCommand } from '#lib/extensions/RTByteCommand';
import { RTByteEmbed } from '#lib/extensions/RTByteEmbed';
import { Colors, Emojis } from '#utils/constants';
import { ApplyOptions } from '@sapphire/decorators';
import { type ChatInputCommand } from '@sapphire/framework';
import { inlineCodeBlock } from '... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/commands/Moderation/channelinfo.ts | src/commands/Moderation/channelinfo.ts | import { RTByteCommand } from '#lib/extensions/RTByteCommand';
import { RTByteEmbed } from '#lib/extensions/RTByteEmbed';
import { minutes, seconds } from '#utils/common/times';
import { Emojis } from '#utils/constants';
import { ApplyOptions } from '@sapphire/decorators';
import { type ChatInputCommand } from '@sapphi... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/routes/guilds/settings/guildSettingsInfoLogs.ts | src/routes/guilds/settings/guildSettingsInfoLogs.ts | import { authenticated } from '#root/lib/util/decorators/routeAuthenticated';
import { initializeGuild } from '#utils/functions/initialize';
import type { GuildSettingsInfoLogs } from '@prisma/client';
import { ApplyOptions } from '@sapphire/decorators';
import { HttpCodes, Route, methods, type ApiRequest, type ApiResp... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/routes/guilds/settings/guildSettingsModActions.ts | src/routes/guilds/settings/guildSettingsModActions.ts | import { authenticated } from '#root/lib/util/decorators/routeAuthenticated';
import { initializeGuild } from '#utils/functions/initialize';
import type { GuildSettingsModActions } from '@prisma/client';
import { ApplyOptions } from '@sapphire/decorators';
import { HttpCodes, Route, methods, type ApiRequest, type ApiRe... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/routes/guilds/settings/settings.ts | src/routes/guilds/settings/settings.ts | import { authenticated } from '#root/lib/util/decorators/routeAuthenticated';
import { initializeGuild } from '#utils/functions/initialize';
import type { GuildSettings } from '@prisma/client';
import { ApplyOptions } from '@sapphire/decorators';
import { HttpCodes, Route, methods, type ApiRequest, type ApiResponse } f... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/routes/guilds/channels/channel.ts | src/routes/guilds/channels/channel.ts | import { authenticated } from '#root/lib/util/decorators/routeAuthenticated';
import { ApplyOptions } from '@sapphire/decorators';
import { HttpCodes, Route, methods, type ApiRequest, type ApiResponse } from '@sapphire/plugin-api';
import { PermissionsBitField } from 'discord.js';
@ApplyOptions<Route.Options>({
name:... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/routes/guilds/channels/channels.ts | src/routes/guilds/channels/channels.ts | import { authenticated } from '#root/lib/util/decorators/routeAuthenticated';
import { ApplyOptions } from '@sapphire/decorators';
import { HttpCodes, Route, methods, type ApiRequest, type ApiResponse } from '@sapphire/plugin-api';
import { isNullishOrEmpty } from '@sapphire/utilities';
import { PermissionsBitField } f... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/routes/oauth/refresh.ts | src/routes/oauth/refresh.ts | import { ApplyOptions } from '@sapphire/decorators';
import { fetch, FetchResultTypes } from '@sapphire/fetch';
import { HttpCodes, methods, MimeTypes, Route, type ApiRequest, type ApiResponse } from '@sapphire/plugin-api';
import { Time } from '@sapphire/time-utilities';
import { OAuth2Routes, type RESTPostOAuth2Acces... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/routes/users/settings.ts | src/routes/users/settings.ts | import { authenticated } from '#root/lib/util/decorators/routeAuthenticated';
import { initializeUser } from '#utils/functions/initialize';
import type { UserSettings } from '@prisma/client';
import { ApplyOptions } from '@sapphire/decorators';
import { HttpCodes, Route, methods, type ApiRequest, type ApiResponse } fro... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/transformers/loginDataGuilds.ts | src/transformers/loginDataGuilds.ts | import { container } from '@sapphire/framework';
import type { LoginData } from '@sapphire/plugin-api';
import { type RESTAPIPartialCurrentUserGuild } from 'discord.js';
interface TransformedLoginData extends LoginData {
transformedGuilds?: (RESTAPIPartialCurrentUserGuild & { botInGuild: boolean })[] | null;
}
expor... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/lib/RTByteClient.ts | src/lib/RTByteClient.ts | import { CLIENT_OPTIONS } from "#root/config";
import { PrismaClient } from "@prisma/client";
import { SapphireClient } from '@sapphire/framework';
export class RTByteClient extends SapphireClient {
public constructor() {
super(CLIENT_OPTIONS);
}
public async login(token?: string) {
this.logger.info('Connectin... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/lib/setup.ts | src/lib/setup.ts | // Unless explicitly defined, set NODE_ENV as development:
process.env.NODE_ENV ??= 'development';
import '#utils/Sanitizer/initClean';
import { PrismaClient } from '@prisma/client';
import { container } from '@sapphire/framework';
import '@sapphire/plugin-api/register';
import '@sapphire/plugin-logger/register';
impo... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/lib/util/util.ts | src/lib/util/util.ts | import { container } from "@sapphire/framework";
import { inlineCodeBlock } from "@sapphire/utilities";
import { PermissionFlagsBits, StageChannel, VoiceChannel, type AuditLogEvent, type Guild, type Message } from "discord.js";
/**
* Get the executor user from the last audit log entry of specific type
* @param actio... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/lib/util/constants.ts | src/lib/util/constants.ts | export const ZeroWidthSpace = '\u200B';
export const enum Colors {
Green = '#2DC770',
Red = '#F23A38',
White = '#FEFEFE',
Yellow = '#F0A431'
}
export const enum Emojis {
Bullet = '<:bulletPoint:1127188144803041320>',
Check = '<:checkMark:1127182446971072643>',
ToggleOff = '<:toggleOff:1127185093379751976>',
T... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/lib/util/decorators/routeAuthenticated.ts | src/lib/util/decorators/routeAuthenticated.ts | import { createFunctionPrecondition } from '@sapphire/decorators';
import { ApiRequest, ApiResponse, HttpCodes } from '@sapphire/plugin-api';
export const authenticated = () =>
createFunctionPrecondition(
(request: ApiRequest) => Boolean(request.auth?.token),
(_request: ApiRequest, response: ApiResponse) => respo... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/lib/util/common/times.ts | src/lib/util/common/times.ts | import { Time } from '@sapphire/time-utilities';
/**
* Converts a number of seconds to milliseconds.
* @param seconds The amount of seconds
* @returns The amount of milliseconds `seconds` equals to.
*/
export function seconds(seconds: number): number {
return seconds * Time.Second;
}
/**
* Converts a number of ... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/lib/util/Sanitizer/clean.ts | src/lib/util/Sanitizer/clean.ts | /**
* @license
* MIT License
*
* Copyright (c) 2017-2019 dirigeants
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* t... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/lib/util/Sanitizer/initClean.ts | src/lib/util/Sanitizer/initClean.ts | import { TOKENS } from '#root/config';
import { initClean } from '#utils/Sanitizer/clean';
import { isNullishOrEmpty } from '@sapphire/utilities';
const secrets = new Set<string>();
for (const [value] of Object.entries(TOKENS)) {
if (isNullishOrEmpty(value)) continue;
secrets.add(value);
}
initClean([...secrets])... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/lib/util/functions/initialize.ts | src/lib/util/functions/initialize.ts | import { container } from '@sapphire/framework';
import { bold, gray } from 'colorette';
import { Guild, User } from "discord.js";
export async function initializeGuild(guild: Guild) {
const { logger, prisma } = container;
const clientSettings = await prisma.clientSettings.findFirst();
if (clientSettings?.guildBla... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/lib/util/functions/permissions.ts | src/lib/util/functions/permissions.ts | import { getPermissionString } from "#utils/util";
import { GuildMember, PermissionsBitField } from "discord.js";
export function isModerator(member: GuildMember) {
return isGuildOwner(member) || checkModerator(member) || checkAdministrator(member);
}
export function isAdmin(member: GuildMember) {
return isGuildOwn... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/lib/extensions/RTByteEmbed.ts | src/lib/extensions/RTByteEmbed.ts | import { Colors, ZeroWidthSpace } from "#utils/constants";
import { EmbedBuilder, type APIEmbedField } from "discord.js";
export class RTByteEmbed extends EmbedBuilder {
public constructor() {
super();
this.setColor(Colors.White)
this.setTimestamp()
}
public addBlankField(fields?: APIEmbedField) {
if (!fie... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/lib/extensions/GuildLogEmbed.ts | src/lib/extensions/GuildLogEmbed.ts | import { RTByteEmbed } from "#lib/extensions/RTByteEmbed";
import { Colors } from "#utils/constants";
import { Events } from "@sapphire/framework";
export class GuildLogEmbed extends RTByteEmbed {
public setType(type: string) {
switch(type) {
case Events.AutoModerationRuleCreate:
case Events.ChannelCreate:
... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/lib/extensions/RTByteCommand.ts | src/lib/extensions/RTByteCommand.ts | import { Command } from '@sapphire/framework';
import { Subcommand } from '@sapphire/plugin-subcommands';
import { PermissionFlagsBits, PermissionsBitField } from 'discord.js';
export abstract class RTByteCommand extends Command {
public constructor(context: Command.Context, options: Command.Options) {
const res... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/lib/extensions/index.ts | src/lib/extensions/index.ts | export * from '#lib/extensions/RTByteCommand';
export * from '#lib/extensions/RTByteEmbed';
| typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/listeners/ready.ts | src/listeners/ready.ts | import { CONTROL_GUILD, DEV, INIT_ALL_MEMBERS, INIT_ALL_USERS, TOKENS, VERSION } from '#root/config';
import { initializeGuild, initializeMember, initializeUser } from '#utils/functions/initialize';
import type { ListenerOptions, PieceContext } from '@sapphire/framework';
import { Listener, Store } from '@sapphire/fram... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/listeners/guilds/guildUpdateLog.ts | src/listeners/guilds/guildUpdateLog.ts | import { GuildLogEmbed } from '#lib/extensions/GuildLogEmbed';
import { seconds } from '#utils/common/times';
import { Emojis } from '#utils/constants';
import { getAuditLogExecutor } from '#utils/util';
import { ApplyOptions } from '@sapphire/decorators';
import { Events, Listener, type ListenerOptions } from '@sapphi... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/listeners/guilds/guildCreate.ts | src/listeners/guilds/guildCreate.ts | import { initializeGuild } from '#utils/functions/initialize';
import { ApplyOptions } from '@sapphire/decorators';
import { Events, Listener, type ListenerOptions } from '@sapphire/framework';
import { bold, gray } from 'colorette';
import { Guild } from 'discord.js';
@ApplyOptions<ListenerOptions>({ event: Events.Gu... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/listeners/guilds/initializeMember.ts | src/listeners/guilds/initializeMember.ts | /*
Temporarily disabing this listener while I evaluate whether it's redundant now that we have #util/functions/initialize/initializeMember()
import { ApplyOptions } from '@sapphire/decorators';
import { Listener, type ListenerOptions } from '@sapphire/framework';
import { bold, gray } from 'colorette';
import { Guild... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/listeners/guilds/guildLogCreate.ts | src/listeners/guilds/guildLogCreate.ts | import type { GuildLogEmbed } from '#lib/extensions/GuildLogEmbed';
import { ApplyOptions } from '@sapphire/decorators';
import { Listener, type ListenerOptions } from '@sapphire/framework';
import { isNullish } from '@sapphire/utilities';
import type { BaseGuildTextChannel } from 'discord.js';
@ApplyOptions<ListenerO... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/listeners/guilds/invites/inviteCreateLog.ts | src/listeners/guilds/invites/inviteCreateLog.ts | import { GuildLogEmbed } from '#lib/extensions/GuildLogEmbed';
import { Emojis } from '#utils/constants';
import { ApplyOptions } from '@sapphire/decorators';
import { Events, Listener, type ListenerOptions } from '@sapphire/framework';
import { inlineCodeBlock, isNullish } from '@sapphire/utilities';
import { BaseGuil... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/listeners/guilds/invites/inviteDeleteLog.ts | src/listeners/guilds/invites/inviteDeleteLog.ts | import { GuildLogEmbed } from '#lib/extensions/GuildLogEmbed';
import { Emojis } from '#utils/constants';
import { ApplyOptions } from '@sapphire/decorators';
import { Events, Listener, type ListenerOptions } from '@sapphire/framework';
import { inlineCodeBlock, isNullish } from '@sapphire/utilities';
import { BaseGuil... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/listeners/guilds/threads/threadCreateLog.ts | src/listeners/guilds/threads/threadCreateLog.ts | import { GuildLogEmbed } from '#lib/extensions/GuildLogEmbed';
import { getAuditLogExecutor } from '#utils/util';
import { ApplyOptions } from '@sapphire/decorators';
import { Events, Listener, type ListenerOptions } from '@sapphire/framework';
import { inlineCodeBlock, isNullish } from '@sapphire/utilities';
import { ... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/listeners/guilds/threads/threadUpdateLog.ts | src/listeners/guilds/threads/threadUpdateLog.ts | import { GuildLogEmbed } from '#lib/extensions/GuildLogEmbed';
import { minutes, seconds } from '#utils/common/times';
import { Emojis } from '#utils/constants';
import { getAuditLogExecutor } from '#utils/util';
import { ApplyOptions } from '@sapphire/decorators';
import { Events, Listener, type ListenerOptions } from... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
RTByte/rtbyte | https://github.com/RTByte/rtbyte/blob/d195fd0f86164291ddb2b44af0a37d57fe9c8105/src/listeners/guilds/threads/threadDeleteLog.ts | src/listeners/guilds/threads/threadDeleteLog.ts | import { GuildLogEmbed } from '#lib/extensions/GuildLogEmbed';
import { getAuditLogExecutor } from '#utils/util';
import { ApplyOptions } from '@sapphire/decorators';
import { Events, Listener, type ListenerOptions } from '@sapphire/framework';
import { inlineCodeBlock, isNullish } from '@sapphire/utilities';
import { ... | typescript | MIT | d195fd0f86164291ddb2b44af0a37d57fe9c8105 | 2026-01-05T05:00:24.049783Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.