repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
rsuite/rsuite-icons
src/icons/legacy/Slack.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import SlackSvg from '@rsuite/icon-font/lib/legacy/Slack'; const Slack = createSvgIcon({ as: SlackSvg, ariaLabel: 'slack', category: 'legacy', displayName: 'Slack' }); export default Slack;
rsuite/rsuite-icons
src/icons/legacy/PlayCircle.tsx
<reponame>rsuite/rsuite-icons // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import PlayCircleSvg from '@rsuite/icon-font/lib/legacy/PlayCircle'; const PlayCircle = createSvgIcon({ as: PlayCircleSvg, ariaLabel: 'play circle', category: 'legacy', displayName: 'Pla...
rsuite/rsuite-icons
src/icons/legacy/Laptop.tsx
<filename>src/icons/legacy/Laptop.tsx // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import LaptopSvg from '@rsuite/icon-font/lib/legacy/Laptop'; const Laptop = createSvgIcon({ as: LaptopSvg, ariaLabel: 'laptop', category: 'legacy', displayName: 'Laptop' }); exp...
rsuite/rsuite-icons
src/icons/legacy/Btc.tsx
<gh_stars>1-10 // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import BtcSvg from '@rsuite/icon-font/lib/legacy/Btc'; const Btc = createSvgIcon({ as: BtcSvg, ariaLabel: 'btc', category: 'legacy', displayName: 'Btc' }); export default Btc;
rsuite/rsuite-icons
src/icons/legacy/Columns.tsx
<reponame>rsuite/rsuite-icons<gh_stars>1-10 // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import ColumnsSvg from '@rsuite/icon-font/lib/legacy/Columns'; const Columns = createSvgIcon({ as: ColumnsSvg, ariaLabel: 'columns', category: 'legacy', displayName: 'Colum...
rsuite/rsuite-icons
src/icons/legacy/Film.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import FilmSvg from '@rsuite/icon-font/lib/legacy/Film'; const Film = createSvgIcon({ as: FilmSvg, ariaLabel: 'film', category: 'legacy', displayName: 'Film' }); export default Film;
rsuite/rsuite-icons
src/icons/legacy/Pagelines.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import PagelinesSvg from '@rsuite/icon-font/lib/legacy/Pagelines'; const Pagelines = createSvgIcon({ as: PagelinesSvg, ariaLabel: 'pagelines', category: 'legacy', displayName: 'Pagelines' }); export default Pageline...
rsuite/rsuite-icons
src/icons/legacy/AngleDown.tsx
<filename>src/icons/legacy/AngleDown.tsx // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import AngleDownSvg from '@rsuite/icon-font/lib/legacy/AngleDown'; const AngleDown = createSvgIcon({ as: AngleDownSvg, ariaLabel: 'angle down', category: 'legacy', displayName...
rsuite/rsuite-icons
src/icons/UserChange.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../createSvgIcon'; import UserChangeSvg from '@rsuite/icon-font/lib/people/UserChange'; const UserChange = createSvgIcon({ as: UserChangeSvg, ariaLabel: 'user change', category: 'people', displayName: 'UserChange' }); export default User...
rsuite/rsuite-icons
src/icons/legacy/CollaspedO.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import CollaspedOSvg from '@rsuite/icon-font/lib/legacy/CollaspedO'; const CollaspedO = createSvgIcon({ as: CollaspedOSvg, ariaLabel: 'collasped o', category: 'legacy', displayName: 'CollaspedO' }); export default C...
rsuite/rsuite-icons
src/icons/legacy/Print.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import PrintSvg from '@rsuite/icon-font/lib/legacy/Print'; const Print = createSvgIcon({ as: PrintSvg, ariaLabel: 'print', category: 'legacy', displayName: 'Print' }); export default Print;
rsuite/rsuite-icons
src/icons/legacy/Diamond.tsx
<filename>src/icons/legacy/Diamond.tsx // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import DiamondSvg from '@rsuite/icon-font/lib/legacy/Diamond'; const Diamond = createSvgIcon({ as: DiamondSvg, ariaLabel: 'diamond', category: 'legacy', displayName: 'Diamond' }...
rsuite/rsuite-icons
src/icons/legacy/Group.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import GroupSvg from '@rsuite/icon-font/lib/legacy/Group'; const Group = createSvgIcon({ as: GroupSvg, ariaLabel: 'group', category: 'legacy', displayName: 'Group' }); export default Group;
rsuite/rsuite-icons
src/icons/legacy/PencilSquare.tsx
<reponame>rsuite/rsuite-icons<gh_stars>1-10 // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import PencilSquareSvg from '@rsuite/icon-font/lib/legacy/PencilSquare'; const PencilSquare = createSvgIcon({ as: PencilSquareSvg, ariaLabel: 'pencil square', category: 'lega...
rsuite/rsuite-icons
src/icons/legacy/Shirtsinbulk.tsx
<reponame>rsuite/rsuite-icons // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import ShirtsinbulkSvg from '@rsuite/icon-font/lib/legacy/Shirtsinbulk'; const Shirtsinbulk = createSvgIcon({ as: ShirtsinbulkSvg, ariaLabel: 'shirtsinbulk', category: 'legacy', displayN...
rsuite/rsuite-icons
src/icons/legacy/Git.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import GitSvg from '@rsuite/icon-font/lib/legacy/Git'; const Git = createSvgIcon({ as: GitSvg, ariaLabel: 'git', category: 'legacy', displayName: 'Git' }); export default Git;
rsuite/rsuite-icons
src/icons/legacy/Angellist.tsx
<filename>src/icons/legacy/Angellist.tsx // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import AngellistSvg from '@rsuite/icon-font/lib/legacy/Angellist'; const Angellist = createSvgIcon({ as: AngellistSvg, ariaLabel: 'angellist', category: 'legacy', displayName:...
rsuite/rsuite-icons
src/icons/legacy/ChevronRight.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import ChevronRightSvg from '@rsuite/icon-font/lib/legacy/ChevronRight'; const ChevronRight = createSvgIcon({ as: ChevronRightSvg, ariaLabel: 'chevron right', category: 'legacy', displayName: 'ChevronRight' }); expo...
rsuite/rsuite-icons
src/icons/legacy/CcDinersClub.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import CcDinersClubSvg from '@rsuite/icon-font/lib/legacy/CcDinersClub'; const CcDinersClub = createSvgIcon({ as: CcDinersClubSvg, ariaLabel: 'cc diners club', category: 'legacy', displayName: 'CcDinersClub' }); exp...
rsuite/rsuite-icons
src/icons/legacy/CharacterArea.tsx
<gh_stars>1-10 // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import CharacterAreaSvg from '@rsuite/icon-font/lib/legacy/CharacterArea'; const CharacterArea = createSvgIcon({ as: CharacterAreaSvg, ariaLabel: 'character area', category: 'legacy', displayName: 'Cha...
rsuite/rsuite-icons
src/icons/legacy/CircleO.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import CircleOSvg from '@rsuite/icon-font/lib/legacy/CircleO'; const CircleO = createSvgIcon({ as: CircleOSvg, ariaLabel: 'circle o', category: 'legacy', displayName: 'CircleO' }); export default CircleO;
rsuite/rsuite-icons
src/icons/InfoOutline.tsx
<filename>src/icons/InfoOutline.tsx // Generated by script, don't edit it please. import createSvgIcon from '../createSvgIcon'; import InfoOutlineSvg from '@rsuite/icon-font/lib/status/InfoOutline'; const InfoOutline = createSvgIcon({ as: InfoOutlineSvg, ariaLabel: 'info outline', category: 'status', displayNa...
rsuite/rsuite-icons
src/icons/legacy/FreeCodeCamp.tsx
<gh_stars>1-10 // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import FreeCodeCampSvg from '@rsuite/icon-font/lib/legacy/FreeCodeCamp'; const FreeCodeCamp = createSvgIcon({ as: FreeCodeCampSvg, ariaLabel: 'free code camp', category: 'legacy', displayName: 'FreeCod...
rsuite/rsuite-icons
src/icons/legacy/QuestionCircle.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import QuestionCircleSvg from '@rsuite/icon-font/lib/legacy/QuestionCircle'; const QuestionCircle = createSvgIcon({ as: QuestionCircleSvg, ariaLabel: 'question circle', category: 'legacy', displayName: 'QuestionCircl...
rsuite/rsuite-icons
src/icons/legacy/StepBackward.tsx
<reponame>rsuite/rsuite-icons<filename>src/icons/legacy/StepBackward.tsx // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import StepBackwardSvg from '@rsuite/icon-font/lib/legacy/StepBackward'; const StepBackward = createSvgIcon({ as: StepBackwardSvg, ariaLabel: 'step...
rsuite/rsuite-icons
src/icons/legacy/Coffee.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import CoffeeSvg from '@rsuite/icon-font/lib/legacy/Coffee'; const Coffee = createSvgIcon({ as: CoffeeSvg, ariaLabel: 'coffee', category: 'legacy', displayName: 'Coffee' }); export default Coffee;
rsuite/rsuite-icons
src/icons/legacy/Remind.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import RemindSvg from '@rsuite/icon-font/lib/legacy/Remind'; const Remind = createSvgIcon({ as: RemindSvg, ariaLabel: 'remind', category: 'legacy', displayName: 'Remind' }); export default Remind;
rsuite/rsuite-icons
src/icons/legacy/IdCardO.tsx
<filename>src/icons/legacy/IdCardO.tsx // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import IdCardOSvg from '@rsuite/icon-font/lib/legacy/IdCardO'; const IdCardO = createSvgIcon({ as: IdCardOSvg, ariaLabel: 'id card o', category: 'legacy', displayName: 'IdCardO'...
rsuite/rsuite-icons
src/icons/legacy/ShoppingBasket.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import ShoppingBasketSvg from '@rsuite/icon-font/lib/legacy/ShoppingBasket'; const ShoppingBasket = createSvgIcon({ as: ShoppingBasketSvg, ariaLabel: 'shopping basket', category: 'legacy', displayName: 'ShoppingBaske...
rsuite/rsuite-icons
src/icons/legacy/Eraser.tsx
<filename>src/icons/legacy/Eraser.tsx // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import EraserSvg from '@rsuite/icon-font/lib/legacy/Eraser'; const Eraser = createSvgIcon({ as: EraserSvg, ariaLabel: 'eraser', category: 'legacy', displayName: 'Eraser' }); exp...
rsuite/rsuite-icons
src/icons/legacy/LemonO.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import LemonOSvg from '@rsuite/icon-font/lib/legacy/LemonO'; const LemonO = createSvgIcon({ as: LemonOSvg, ariaLabel: 'lemon o', category: 'legacy', displayName: 'LemonO' }); export default LemonO;
rsuite/rsuite-icons
src/icons/legacy/LogoAnalytics.tsx
<reponame>rsuite/rsuite-icons<filename>src/icons/legacy/LogoAnalytics.tsx // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import LogoAnalyticsSvg from '@rsuite/icon-font/lib/legacy/LogoAnalytics'; const LogoAnalytics = createSvgIcon({ as: LogoAnalyticsSvg, ariaLabel: ...
rsuite/rsuite-icons
src/icons/legacy/FortAwesome.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import FortAwesomeSvg from '@rsuite/icon-font/lib/legacy/FortAwesome'; const FortAwesome = createSvgIcon({ as: FortAwesomeSvg, ariaLabel: 'fort awesome', category: 'legacy', displayName: 'FortAwesome' }); export def...
rsuite/rsuite-icons
src/icons/legacy/Gears2.tsx
<reponame>rsuite/rsuite-icons<gh_stars>1-10 // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import Gears2Svg from '@rsuite/icon-font/lib/legacy/Gears2'; const Gears2 = createSvgIcon({ as: Gears2Svg, ariaLabel: 'gears 2', category: 'legacy', displayName: 'Gears2' }...
rsuite/rsuite-icons
src/icons/PeopleSpeaker.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../createSvgIcon'; import PeopleSpeakerSvg from '@rsuite/icon-font/lib/people/PeopleSpeaker'; const PeopleSpeaker = createSvgIcon({ as: PeopleSpeakerSvg, ariaLabel: 'people speaker', category: 'people', displayName: 'PeopleSpeaker' }); e...
rsuite/rsuite-icons
src/icons/legacy/AlignRight.tsx
<reponame>rsuite/rsuite-icons<gh_stars>1-10 // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import AlignRightSvg from '@rsuite/icon-font/lib/legacy/AlignRight'; const AlignRight = createSvgIcon({ as: AlignRightSvg, ariaLabel: 'align right', category: 'legacy', dis...
rsuite/rsuite-icons
src/icons/legacy/Github.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import GithubSvg from '@rsuite/icon-font/lib/legacy/Github'; const Github = createSvgIcon({ as: GithubSvg, ariaLabel: 'github', category: 'legacy', displayName: 'Github' }); export default Github;
rsuite/rsuite-icons
src/icons/legacy/CalendarCheckO.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import CalendarCheckOSvg from '@rsuite/icon-font/lib/legacy/CalendarCheckO'; const CalendarCheckO = createSvgIcon({ as: CalendarCheckOSvg, ariaLabel: 'calendar check o', category: 'legacy', displayName: 'CalendarChec...
rsuite/rsuite-icons
src/icons/ArrowDownLine.tsx
<reponame>rsuite/rsuite-icons // Generated by script, don't edit it please. import createSvgIcon from '../createSvgIcon'; import ArrowDownLineSvg from '@rsuite/icon-font/lib/direction/ArrowDownLine'; const ArrowDownLine = createSvgIcon({ as: ArrowDownLineSvg, ariaLabel: 'arrow down line', category: 'direction', ...
rsuite/rsuite-icons
src/icons/legacy/Thermometer2.tsx
<filename>src/icons/legacy/Thermometer2.tsx // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import Thermometer2Svg from '@rsuite/icon-font/lib/legacy/Thermometer2'; const Thermometer2 = createSvgIcon({ as: Thermometer2Svg, ariaLabel: 'thermometer 2', category: 'lega...
rsuite/rsuite-icons
src/icons/legacy/PauseCircleO.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import PauseCircleOSvg from '@rsuite/icon-font/lib/legacy/PauseCircleO'; const PauseCircleO = createSvgIcon({ as: PauseCircleOSvg, ariaLabel: 'pause circle o', category: 'legacy', displayName: 'PauseCircleO' }); exp...
rsuite/rsuite-icons
src/icons/legacy/TrashO.tsx
<filename>src/icons/legacy/TrashO.tsx // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import TrashOSvg from '@rsuite/icon-font/lib/legacy/TrashO'; const TrashO = createSvgIcon({ as: TrashOSvg, ariaLabel: 'trash o', category: 'legacy', displayName: 'TrashO' }); ex...
rsuite/rsuite-icons
src/icons/legacy/StopCircleO.tsx
<reponame>rsuite/rsuite-icons // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import StopCircleOSvg from '@rsuite/icon-font/lib/legacy/StopCircleO'; const StopCircleO = createSvgIcon({ as: StopCircleOSvg, ariaLabel: 'stop circle o', category: 'legacy', displayName...
rsuite/rsuite-icons
src/icons/legacy/Tree.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import TreeSvg from '@rsuite/icon-font/lib/legacy/Tree'; const Tree = createSvgIcon({ as: TreeSvg, ariaLabel: 'tree', category: 'legacy', displayName: 'Tree' }); export default Tree;
rsuite/rsuite-icons
src/icons/legacy/StopCircle.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import StopCircleSvg from '@rsuite/icon-font/lib/legacy/StopCircle'; const StopCircle = createSvgIcon({ as: StopCircleSvg, ariaLabel: 'stop circle', category: 'legacy', displayName: 'StopCircle' }); export default S...
rsuite/rsuite-icons
src/icons/PeoplesUploaded.tsx
<gh_stars>1-10 // Generated by script, don't edit it please. import createSvgIcon from '../createSvgIcon'; import PeoplesUploadedSvg from '@rsuite/icon-font/lib/people/PeoplesUploaded'; const PeoplesUploaded = createSvgIcon({ as: PeoplesUploadedSvg, ariaLabel: 'peoples uploaded', category: 'people', displayNam...
rsuite/rsuite-icons
src/icons/legacy/Yoast.tsx
<reponame>rsuite/rsuite-icons<gh_stars>1-10 // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import YoastSvg from '@rsuite/icon-font/lib/legacy/Yoast'; const Yoast = createSvgIcon({ as: YoastSvg, ariaLabel: 'yoast', category: 'legacy', displayName: 'Yoast' }); exp...
rsuite/rsuite-icons
src/icons/legacy/Gamepad.tsx
<filename>src/icons/legacy/Gamepad.tsx // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import GamepadSvg from '@rsuite/icon-font/lib/legacy/Gamepad'; const Gamepad = createSvgIcon({ as: GamepadSvg, ariaLabel: 'gamepad', category: 'legacy', displayName: 'Gamepad' }...
rsuite/rsuite-icons
src/icons/legacy/Hourglass1.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import Hourglass1Svg from '@rsuite/icon-font/lib/legacy/Hourglass1'; const Hourglass1 = createSvgIcon({ as: Hourglass1Svg, ariaLabel: 'hourglass 1', category: 'legacy', displayName: 'Hourglass1' }); export default H...
rsuite/rsuite-icons
src/icons/legacy/LineChart.tsx
<gh_stars>1-10 // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import LineChartSvg from '@rsuite/icon-font/lib/legacy/LineChart'; const LineChart = createSvgIcon({ as: LineChartSvg, ariaLabel: 'line chart', category: 'legacy', displayName: 'LineChart' }); export ...
rsuite/rsuite-icons
src/icons/legacy/CalendarPlusO.tsx
<reponame>rsuite/rsuite-icons // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import CalendarPlusOSvg from '@rsuite/icon-font/lib/legacy/CalendarPlusO'; const CalendarPlusO = createSvgIcon({ as: CalendarPlusOSvg, ariaLabel: 'calendar plus o', category: 'legacy', d...
rsuite/rsuite-icons
src/icons/legacy/Eject.tsx
<reponame>rsuite/rsuite-icons // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import EjectSvg from '@rsuite/icon-font/lib/legacy/Eject'; const Eject = createSvgIcon({ as: EjectSvg, ariaLabel: 'eject', category: 'legacy', displayName: 'Eject' }); export default Ej...
rsuite/rsuite-icons
src/icons/legacy/Gavel.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import GavelSvg from '@rsuite/icon-font/lib/legacy/Gavel'; const Gavel = createSvgIcon({ as: GavelSvg, ariaLabel: 'gavel', category: 'legacy', displayName: 'Gavel' }); export default Gavel;
rsuite/rsuite-icons
src/icons/legacy/Strikethrough.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import StrikethroughSvg from '@rsuite/icon-font/lib/legacy/Strikethrough'; const Strikethrough = createSvgIcon({ as: StrikethroughSvg, ariaLabel: 'strikethrough', category: 'legacy', displayName: 'Strikethrough' }); ...
rsuite/rsuite-icons
src/icons/legacy/CcPaypal.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import CcPaypalSvg from '@rsuite/icon-font/lib/legacy/CcPaypal'; const CcPaypal = createSvgIcon({ as: CcPaypalSvg, ariaLabel: 'cc paypal', category: 'legacy', displayName: 'CcPaypal' }); export default CcPaypal;
rsuite/rsuite-icons
src/icons/legacy/FacebookSquare.tsx
<filename>src/icons/legacy/FacebookSquare.tsx<gh_stars>1-10 // Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import FacebookSquareSvg from '@rsuite/icon-font/lib/legacy/FacebookSquare'; const FacebookSquare = createSvgIcon({ as: FacebookSquareSvg, ariaLabel: 'facebook ...
rsuite/rsuite-icons
src/icons/Dragable.tsx
// Generated by script, don't edit it please. import createSvgIcon from '../createSvgIcon'; import DragableSvg from '@rsuite/icon-font/lib/action/Dragable'; const Dragable = createSvgIcon({ as: DragableSvg, ariaLabel: 'dragable', category: 'action', displayName: 'Dragable' }); export default Dragable;
dex4er/js-null-writable
examples/test-null-writable-ts.ts
#!/usr/bin/env ts-node import fs from "fs" import NullWritable from "../src/null-writable" function main(): void { const filename = process.argv[1] || "/etc/hosts" const readableStream = fs.createReadStream(filename) const writableStream = new NullWritable() readableStream.on("end", () => { console.inf...
dex4er/js-null-writable
test/null-writable.ts
<gh_stars>1-10 import chai, {expect} from "chai" import dirtyChai from "dirty-chai" chai.use(dirtyChai) import {And, Feature, Given, Scenario, Then, When} from "./lib/steps" import NullWritable from "../src/null-writable" import MyReadable from "./lib/my-readable" Feature("Test null-writable module", () => { Sce...
dex4er/js-null-writable
src/null-writable.ts
<reponame>dex4er/js-null-writable /// <reference types="node" /> import {Writable} from "stream" export class NullWritable extends Writable { _write(_chunk: any, _encoding: string, callback: (error?: Error | null) => void): void { callback() } _writev(_chunks: Array<{chunk: any; encoding: string}>, callback...
dex4er/js-null-writable
test/lib/my-readable.ts
<filename>test/lib/my-readable.ts<gh_stars>1-10 import {Readable, ReadableOptions} from "stream" interface MyReadableOptions extends ReadableOptions { lines: number name: string withError?: boolean } export default class MyReadable extends Readable { private n = 0 constructor(private options: MyReadableOpt...
CeaneC/foundryvtt-compactBeyond5eSheet
src/module/settings.ts
<gh_stars>0 import { MySettings, MODULE_ID } from '../constants'; export const registerSettings = function () { CONFIG[MODULE_ID] = { debug: false }; // Register any custom module settings here game.settings.register(MODULE_ID, MySettings.expandedLimited, { name: 'CB5ES.settings.expandedLimited.Label...
CeaneC/foundryvtt-compactBeyond5eSheet
src/global.d.ts
<filename>src/global.d.ts declare module '*/dnd5e/module/actor/sheets/character.js' { export default class ActorSheet5eCharacter extends ActorSheet {} } declare namespace Game { interface Module { api?: any; } }
CeaneC/foundryvtt-compactBeyond5eSheet
src/foundryvtt-compactBeyond5eSheet.ts
// Import TypeScript modules import { registerSettings } from './module/settings.js'; import { log } from './helpers'; import { preloadTemplates } from './module/preloadTemplates.js'; import { MODULE_ID, MySettings } from './constants.js'; import ActorSheet5eCharacter from '../../systems/dnd5e/module/actor/sheets/...
pavhov/youtube-test
src/lib/youtube.ts
<filename>src/lib/youtube.ts import request, { Response } from "request"; import videos from "../config/videos.json"; import Debug, { IDebugger } from "debug"; let debug: IDebugger = Debug(`${process.env.NODE_NAME}`); export interface YoutubeVideoInfo { kind: string, etag: string, pageInfo: { tota...
pavhov/youtube-test
src/module/video.ts
import { Db } from "mongodb"; import { YoutubeVideoInfo } from "../lib/youtube"; import { Context } from "koa"; export const save = async (db: Db, videosInfo: YoutubeVideoInfo) => { return videosInfo.items.forEach((item) => { return db.collection("video-info").updateOne({_id: item.id,}, { $set:...
pavhov/youtube-test
src/lib/mongodb.ts
<reponame>pavhov/youtube-test import { Db } from "mongodb"; const MongoClient = require('mongodb').MongoClient; import Debug, { IDebugger } from "debug"; let debug: IDebugger = Debug(`${process.env.NODE_NAME}`); const url = process.env.MONGODB; const dbName = 'youtube'; const client = new MongoClient(url, { useNe...
pavhov/youtube-test
src/app.ts
<reponame>pavhov/youtube-test import { config } from "dotenv"; config({path: `${__dirname}/../../.env`}); import { Run } from "./lib/decorators"; import Debug, { IDebugger } from "debug"; import { Db } from "mongodb"; import Koa, { Context } from "koa"; import { GetVideosInfo, YoutubeVideoInfo } from "./lib/youtube...
frecoverg/WaltsWorldMainPage
src/components/TokenSymbol/TokenSymbol.tsx
import React from 'react'; import styled from 'styled-components' import USDTLogo from '../../assets/tokensymbol/USDT@2x.png'; import BUSDLogo from '../../assets/tokensymbol/BUSD@2x.png' import BUNNYLogo from '../../assets/tokensymbol/bunny@2x.png' import BTCBLogo from '../../assets/tokensymbol/BTCB@2x.png' import BN...
frecoverg/WaltsWorldMainPage
src/helpers/AllBonds.ts
<filename>src/helpers/AllBonds.ts<gh_stars>0 import { StableBond, LPBond, NetworkID, CustomBond } from "src/lib/Bond"; import { addresses } from "src/constants"; import { ReactComponent as BUSDImg } from "src/assets/tokens/BUSD.svg"; import { abi as PairContract } from "src/abi/PairContract.json"; import { abi as BUSDB...
frecoverg/WaltsWorldMainPage
src/constants.ts
export const THE_GRAPH_URL = 'http://localhost:8000/subgraphs/name/Factory'; export const EPOCH_INTERVAL = 9600; // NOTE could get this from an outside source since it changes slightly over time export const BLOCK_RATE_SECONDS = 3; export const TOKEN_DECIMALS = 9; export const POOL_GRAPH_URLS = { 4: 'https://api.t...
BroKun/molax-demo
examples/umi-demo/src/countdown-todo/countdown-todo-item.ts
import { inject, injectable, postConstruct } from "inversify"; import { prop } from 'molax/lib/observable'; import { DefaultToDoItem, ToDoName } from '../todo-list/default-todo-item/todo-item'; @injectable() export class CountdownToDoItem extends DefaultToDoItem { @prop() public failed: boolean = false; @prop() p...
BroKun/molax-demo
examples/umi-demo/src/todo-list/todo-view/index.tsx
import React from 'react'; import { useInstance } from 'molax/lib/use'; import { Card } from 'antd'; import { ToDoManager } from '../manager'; import { TodoAdd } from './todo-add'; import { ToDoCount } from './count'; import styles from './index.less'; export const ToDo: React.FC = () => { const manager = useInstanc...
BroKun/molax-demo
examples/umi-demo/src/pages/index.tsx
<filename>examples/umi-demo/src/pages/index.tsx import React from 'react'; import styles from './index.less'; import { container } from '../ioc'; import { Provider } from 'molax/lib/provider'; import { ToDo } from '../todo-list/todo-view'; import { CounterView } from '@/counter/counter-view'; export default function...
BroKun/molax-demo
examples/umi-demo/src/countdown-todo/countdown-todo-item-contribution.ts
import { injectable, inject } from 'inversify'; import { ToDoItemContribution, ToDoItemRegistry, ToDoItemFactory, ToDoItem } from '../todo-list/todo-item-registry'; import { CountdownToDoItemView } from './countdown-todo-item-view'; import { CountdownToDoItem } from './countdown-todo-item'; export const CountdownToDoF...
BroKun/molax-demo
packages/molax/src/core.spec.ts
<reponame>BroKun/molax-demo<filename>packages/molax/src/core.spec.ts import * as assert from 'power-assert'; import { setTarget, setProp, ObservePropMeta, notify } from './core'; describe('core', () => { const a = new Object(); it('#set prop', () => { setProp(a, a, 'myProps1') const metas = Reflect....
BroKun/molax-demo
examples/umi-demo/src/todo-list/default-todo-item/todo-item.ts
import { inject, injectable } from "inversify"; import { prop } from 'molax/lib/observable'; import uuid from 'uuid/v4' import { ToDoItem } from '../todo-item-registry'; export const ToDoName = Symbol("ToDoName"); export const defaultToDoName = "默认"; @injectable() export class DefaultToDoItem implements ToDoItem { ...
BroKun/molax-demo
examples/umi-demo/src/todo-list/todo-view/count.tsx
<filename>examples/umi-demo/src/todo-list/todo-view/count.tsx import React from 'react'; import { useInstance } from 'molax/lib/use'; import { ToDoManager } from '../manager'; export const ToDoCount: React.FC = () => { const manager = useInstance<ToDoManager>(ToDoManager); return ( <div>count: {manager.count}<...
BroKun/molax-demo
packages/molax-app/src/module.ts
import { ContainerModule } from "inversify"; import { bindContributionProvider } from './contribution'; import { ApplicationContribution, Application } from './application'; export const CoreModule = new ContainerModule((bind)=>{ bind(Application).toSelf().inSingletonScope(); bindContributionProvider(bind, Applic...
BroKun/molax-demo
packages/molax-app/src/application.ts
<filename>packages/molax-app/src/application.ts import { injectable, inject, named, postConstruct } from 'inversify'; import { ContributionProvider } from './contribution'; export const ApplicationContribution = Symbol('ApplicationContribution'); export interface ApplicationContribution { onStart(app: Application): ...
BroKun/molax-demo
examples/umi-demo/src/todo-list/manager.ts
import { inject, injectable } from "inversify"; import { prop } from 'molax/lib/observable'; import { ToDoItemRegistry, ToDoItem, ToDoItemProvider } from './todo-item-registry'; @injectable() export class ToDoManager { @prop() test:Boolean|undefined = undefined; @prop() collection: ToDoItem[] = []; @prop(...
BroKun/molax-demo
packages/molax/src/observable.spec.ts
import * as assert from 'power-assert'; import { prop } from './observable'; import { setTarget } from './core'; describe('observable', () => { class ClassA { @prop() name:string; } const instanceA = new ClassA(); it('#basic usage', () => { let changed = false; setTarget(instanceA)('name')(()=...
BroKun/molax-demo
examples/umi-demo/src/todo-list/default-todo-item/todo-item-view/index.tsx
<reponame>BroKun/molax-demo import React from 'react'; import { Checkbox, Tooltip, Tag, List, Button } from "antd"; import { DefaultToDoItem } from '../todo-item'; import { bindToArray, useInstance } from 'molax/lib/use'; import { CheckboxChangeEvent } from 'antd/lib/checkbox'; import { ToDoManager } from '../../manage...
BroKun/molax-demo
examples/umi-demo/src/typings/index.d.ts
declare module '*.less' declare module '*.css'
BroKun/molax-demo
examples/umi-demo/src/counter/counter-view/index.tsx
import React from 'react'; import { useInstance } from 'molax/lib/use'; import { Counter } from '../counter'; import styles from './index.less'; import { Button } from 'antd'; export const CounterView: React.FC = () => { const counter = useInstance<Counter>(Counter); return ( <div className={styles.todo}> ...
BroKun/molax-demo
examples/umi-demo/src/counter/module.ts
<reponame>BroKun/molax-demo<gh_stars>1-10 import { ContainerModule } from "inversify"; import { Counter } from './counter'; export const CounterModule = new ContainerModule((bind)=>{ bind(Counter).toSelf().inSingletonScope(); })
BroKun/molax-demo
packages/molax/src/provider.tsx
import * as React from 'react'; import { Container } from 'inversify'; export const InversifyContext = React.createContext<{ container: Container | null }>({ container: null }); type Props = { container: Container; }; export const Provider: React.FC<Props> = (props) =>( <InversifyContext.Provider value={{ c...
BroKun/molax-demo
packages/molax/src/observable.ts
<filename>packages/molax/src/observable.ts import 'reflect-metadata'; import { notify } from './core'; export const Observable = {}; export const PrePropertySet = Symbol('PrePropertySet'); const methodsToPatch = [ 'push', 'pop', 'shift', 'unshift', 'splice', 'sort', 'reverse' ] // tslint:disable-next-l...
BroKun/molax-demo
examples/umi-demo/src/countdown-todo/module.ts
import { ContainerModule } from "inversify"; import { ToDoName } from "../todo-list/default-todo-item/todo-item"; import { ToDoItemContribution, ToDoItem } from '../todo-list/todo-item-registry'; import { CountdownToDoFactory, CountdownToDoItemContribution } from './countdown-todo-item-contribution'; import { Countdown...
BroKun/molax-demo
examples/umi-demo/src/todo-list/default-todo-item/default-todo-item-contribution.ts
import { injectable, inject } from 'inversify'; import { ToDoItemContribution, ToDoItemRegistry, ToDoItemFactory, ToDoItem } from '../todo-item-registry'; import { ToDoItemView } from './todo-item-view'; export const DefaultToDoFactory = Symbol("DefaultToDoFactory"); const DefaultToDoItemType = 'default'; @injectable...
BroKun/molax-demo
packages/molax/src/use.ts
<filename>packages/molax/src/use.ts<gh_stars>1-10 import { useContext, useReducer } from 'react'; import { interfaces } from 'inversify'; import { InversifyContext } from './provider'; import { setTarget, ObjectSelf, ObservePropMeta } from './core'; import { Observable, PrePropertySet } from './observable'; Reflect.d...
BroKun/molax-demo
examples/umi-demo/src/todo-list/todo-view/todo-add.tsx
<reponame>BroKun/molax-demo import React from "react"; import { Form, Input, Select, message, Button } from "antd"; import { ToDoManager } from '../manager'; import { useInstance } from 'molax/lib/use'; import { ValidateErrorEntity } from 'rc-field-form/lib/interface'; export const TodoAdd = () => { const manager =...
BroKun/molax-demo
examples/umi-demo/src/todo-list/todo-item-registry.ts
<reponame>BroKun/molax-demo import { injectable, inject, named } from 'inversify'; import { ContributionProvider } from 'molax-app/lib/contribution'; import { Disposable } from 'molax-app/lib/disposable'; import { ApplicationContribution } from 'molax-app/lib/application'; export interface ToDoItem { id: string; n...
BroKun/molax-demo
examples/umi-demo/src/ioc.ts
<reponame>BroKun/molax-demo import "reflect-metadata"; import 'molax/lib/use'; import { Container } from "inversify"; import { ToDoModule } from '@/todo-list/module'; import { CoreModule } from 'molax-app/lib/module'; import { CountdownToDoModule } from './countdown-todo/module'; import { Application } from 'molax-app...
BroKun/molax-demo
packages/molax-app/src/contribution.ts
// This file is inspired by Theia: /packages/core/src/common/contribution-provider.ts import { interfaces } from 'inversify'; export const ContributionProvider = Symbol('ContributionProvider'); export interface ContributionProvider<T extends object> { /** * @param recursive if the contributions should be col...
BroKun/molax-demo
packages/molax-app/src/disposable.ts
export interface Disposable { /** * Dispose this object. */ dispose(): void; } export namespace Disposable { // tslint:disable-next-line:no-any export function is(arg: any): arg is Disposable { return !!arg && typeof arg === 'object' && 'dispose' in arg && typeof arg['dispose'] === 'function'; } ...
BroKun/molax-demo
examples/umi-demo/src/counter/counter.ts
<reponame>BroKun/molax-demo import { injectable } from "inversify"; import { prop } from 'molax/lib/observable'; @injectable() export class Counter { @prop() value: number = 0; constructor () { console.log('Counter, constructor') } public add(delta: number = 1): void { this.value+=delta; } }
BroKun/molax-demo
packages/molax/src/core.ts
export const ObservePropMeta = Symbol("ObservePropMeta"); export const ObjectSelf = Symbol('ObjectSelf'); export function setProp(context: object,target: object, propertyKey: string|symbol):void { const propMetas = Reflect.getMetadata(ObservePropMeta, context, propertyKey); if (!propMetas) { Reflect.defineMeta...
BroKun/molax-demo
examples/umi-demo/src/todo-list/module.ts
import { ContainerModule } from "inversify"; import { defaultToDoName, ToDoName, DefaultToDoItem } from "./default-todo-item/todo-item"; import { ToDoManager } from "./manager"; import { bindContributionProvider } from 'molax-app/lib/contribution'; import { ToDoItemContribution, ToDoItemRegistry, ToDoItem } from './tod...
hyoshioka0128/azure-samples-js-management
samples/locks/locks_example.ts
<filename>samples/locks/locks_example.ts import { DefaultAzureCredential } from "@azure/identity"; import { GenericResource, ResourceManagementClient, } from "@azure/arm-resources"; import { ManagementLockClient } from "@azure/arm-locks"; const subscriptionId = process.env.subscriptionId; const credential = new De...