index
int64
0
0
repo_id
stringlengths
16
181
file_path
stringlengths
28
270
content
stringlengths
1
11.6M
__index_level_0__
int64
0
10k
0
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src/third-party/collection-card.tsx
import * as React from 'react' import { ImageBlock } from 'notion-types' import { getTextContent } from 'notion-utils' import { LazyImage } from '../components/lazy-image' import { NotionContextProvider, dummyLink, useNotionContext } from '../context' import { CollectionCardProps } from '../types' import { cs } from ...
1,400
0
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src/third-party/collection-column-title.tsx
import * as React from 'react' import { CollectionPropertySchema } from 'notion-types' import { PropertyIcon } from '../icons/property-icon' export const CollectionColumnTitle: React.FC<{ schema: CollectionPropertySchema }> = ({ schema }) => { return ( <div className='notion-collection-column-title'> <...
1,401
0
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src/third-party/collection-group.tsx
import * as React from 'react' import { CollectionGroupProps } from '../types' import { Property } from './property' export const CollectionGroup: React.FC<CollectionGroupProps> = ({ collectionViewComponent: CollectionViewComponent, collection, collectionGroup, schema, value, hidden, summaryProps, det...
1,402
0
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src/third-party/collection-row.tsx
import * as React from 'react' import { PageBlock } from 'notion-types' import { useNotionContext } from '../context' import { cs } from '../utils' import { CollectionColumnTitle } from './collection-column-title' import { Property } from './property' export const CollectionRow: React.FC<{ block: PageBlock pageH...
1,403
0
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src/third-party/collection-utils.ts
import format from 'date-fns/format/index.js' export function getCollectionGroups( collection: any, collectionView: any, collectionData: any, ...rest ) { const elems = collectionView?.format?.collection_groups || [] return elems?.map(({ property, hidden, value: { value, type } }) => { const isUncategor...
1,404
0
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src/third-party/collection-view-board.tsx
import * as React from 'react' import { PageBlock } from 'notion-types' import { useNotionContext } from '../context' import { EmptyIcon } from '../icons/empty-icon' import { CollectionViewProps } from '../types' import { cs } from '../utils' import { CollectionCard } from './collection-card' import { CollectionGroup...
1,405
0
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src/third-party/collection-view-gallery.tsx
import * as React from 'react' import { PageBlock } from 'notion-types' import { useNotionContext } from '../context' import { CollectionViewProps } from '../types' import { cs } from '../utils' import { CollectionCard } from './collection-card' import { CollectionGroup } from './collection-group' import { getCollect...
1,406
0
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src/third-party/collection-view-list.tsx
import * as React from 'react' import { PageBlock } from 'notion-types' import { useNotionContext } from '../context' import { CollectionViewProps } from '../types' import { CollectionGroup } from './collection-group' import { getCollectionGroups } from './collection-utils' import { Property } from './property' cons...
1,407
0
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src/third-party/collection-view-table.tsx
import * as React from 'react' import { useNotionContext } from '../context' import { CollectionViewProps } from '../types' import { cs } from '../utils' import { CollectionColumnTitle } from './collection-column-title' import { CollectionGroup } from './collection-group' import { getCollectionGroups } from './collect...
1,408
0
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src/third-party/collection-view.tsx
import * as React from 'react' import { CollectionViewProps } from '../types' import { CollectionViewBoard } from './collection-view-board' import { CollectionViewGallery } from './collection-view-gallery' import { CollectionViewList } from './collection-view-list' import { CollectionViewTable } from './collection-vie...
1,409
0
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src/third-party/collection.tsx
import * as React from 'react' import * as types from 'notion-types' import { getBlockCollectionId, getBlockParentPage, getTextContent } from 'notion-utils' import { useLocalStorage, useWindowSize } from 'react-use' import { PageIcon } from '../components/page-icon' import { NotionContext, NotionContextProv...
1,410
0
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src/third-party/collections.md
# Collection Notes ## TODO - support row popup - support row popup and selected view URL params - `?v=` and `?p=` - board and table views scrollable but not necessarily 100% width - test hiding various properties - test more advanced collection views - hash block id in URL should highlight that block - iframe asse...
1,411
0
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src/third-party/equation.tsx
import * as React from 'react' import Katex from '@matejmazur/react-katex' import { EquationBlock } from 'notion-types' import { getBlockTitle } from 'notion-utils' import { useNotionContext } from '../context' import { cs } from '../utils' const katexSettings = { throwOnError: false, strict: false } export con...
1,412
0
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src/third-party/eval-formula.ts
import * as types from 'notion-types' import add from 'date-fns/add/index.js' import format from 'date-fns/format/index.js' import getDate from 'date-fns/getDate/index.js' import getDay from 'date-fns/getDay/index.js' import getHours from 'date-fns/getHours/index.js' import getMinutes from 'date-fns/getMinutes/index.js...
1,413
0
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src/third-party/modal.tsx
import Modal from 'react-modal' Modal.setAppElement('.notion-frame') export { Modal }
1,414
0
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src/third-party/pdf.tsx
import * as React from 'react' import { Document, Page, pdfjs } from 'react-pdf' // ensure pdfjs can find its worker script regardless of how react-notion-x is bundled pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/legacy/build/pdf.worker.min.js` export const Pdf: React.FC<{ file: str...
1,415
0
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src/third-party/property.tsx
import * as React from 'react' import * as types from 'notion-types' import format from 'date-fns/format/index.js' import formatNumber from 'format-number' import { FormulaResult } from 'notion-types' import { Checkbox } from '../components/checkbox' import { GracefulImage } from '../components/graceful-image' import...
1,416
0
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src
petrpan-code/NotionX/react-notion-x/packages/react-notion-x/src/third-party/readme.md
# react-notion-x third-party modules All of the modules in this folder contain large, optional, third-party dependencies. To guarantee a minimal bundle size, they must be imported separately from the rest of `react-notion-x`. ## License MIT © [Travis Fischer](https://transitivebullsh.it) Support my OSS work by <a ...
1,417
0
petrpan-code/hustcc
petrpan-code/hustcc/echarts-for-react/.commitlintrc.js
module.exports = { extends: ['@commitlint/config-angular'], rules: { 'type-enum': [ 2, 'always', ['build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test', 'wip'], ], }, };
1,418
0
petrpan-code/hustcc
petrpan-code/hustcc/echarts-for-react/.editorconfig
# EditorConfig is awesome: http://EditorConfig.org # top-most EditorConfig file root = true # Unix-style newlines with a newline ending every file [*] end_of_line = lf charset = utf-8 insert_final_newline = true trim_trailing_whitespace = true indent_style = space indent_size = 2 [Makefile] indent_style = tab inden...
1,419
0
petrpan-code/hustcc
petrpan-code/hustcc/echarts-for-react/.eslintignore
node_modules dist/ test build/
1,420
0
petrpan-code/hustcc
petrpan-code/hustcc/echarts-for-react/.eslintrc
{ "extends": [ "eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/eslint-recommended", "prettier" ], "parser": "@typescript-eslint/parser", "plugins": ["prettier", "@typescript-eslint", "import"], "parserOptions": { "ecmaVersion": 6, "sourceType":...
1,421
0
petrpan-code/hustcc
petrpan-code/hustcc/echarts-for-react/.lintmdrc
{ "rules": { "no-long-code": 1 } }
1,422
0
petrpan-code/hustcc
petrpan-code/hustcc/echarts-for-react/.prettierignore
stats.json .cache dist .umi
1,423
0
petrpan-code/hustcc
petrpan-code/hustcc/echarts-for-react/.prettierrc
{ "semi": true, "singleQuote": true, "trailingComma": "es5", "bracketSpacing": true, "printWidth": 120, "arrowParens": "always", "endOfLine": "auto" }
1,424
0
petrpan-code/hustcc
petrpan-code/hustcc/echarts-for-react/.umirc.js
import { defineConfig } from 'dumi'; export default defineConfig({ mode: 'site', title: '\b', base: '/', exportStatic: {}, publicPath: process.env.NODE_ENV === 'production' ? '/echarts-for-react/' : '/', base: process.env.NODE_ENV === 'production' ? '/echarts-for-react/' : '/', logo: 'https://cdn.jsdeliv...
1,425
0
petrpan-code/hustcc
petrpan-code/hustcc/echarts-for-react/LICENSE
MIT License Copyright (c) 2018 AntV team 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 to use, copy, modify, merge, publish, distrib...
1,426
0
petrpan-code/hustcc
petrpan-code/hustcc/echarts-for-react/README.md
# echarts-for-react The simplest, and the best React wrapper for [Apache ECharts](https://github.com/apache/incubator-echarts). [![npm](https://img.shields.io/npm/v/echarts-for-react.svg)](https://www.npmjs.com/package/echarts-for-react) [![Build Status](https://github.com/hustcc/echarts-for-react/workflows/build/ba...
1,427
0
petrpan-code/hustcc
petrpan-code/hustcc/echarts-for-react/package.json
{ "name": "echarts-for-react", "version": "3.0.2", "description": " Apache Echarts components for React.", "main": "lib/index.js", "module": "esm/index.js", "types": "lib/index.d.ts", "files": [ "lib", "esm", "src" ], "scripts": { "docs:dev": "NODE_ENV=development dumi dev", "docs:...
1,428
0
petrpan-code/hustcc
petrpan-code/hustcc/echarts-for-react/tsconfig.json
{ "compilerOptions": { "jsx": "react", "module": "commonjs", "sourceMap": true, "inlineSources": true, "target": "es5", "outDir": "lib", "declaration": true, "importHelpers": true, "moduleResolution": "node", "allowSyntheticDefaultImports": true, "esModuleInterop": true, ...
1,429
0
petrpan-code/hustcc/echarts-for-react/__tests__
petrpan-code/hustcc/echarts-for-react/__tests__/charts/simple-spec.tsx
import React from 'react'; import ReactECharts from '../../src/'; import { render, destroy, createDiv, removeDom } from '../utils'; const options = { xAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], }, yAxis: { type: 'value', }, series: [ { data: [820,...
1,430
0
petrpan-code/hustcc/echarts-for-react/__tests__
petrpan-code/hustcc/echarts-for-react/__tests__/helper/is-equal-spec.ts
import { isEqual } from '../../src/helper/is-equal'; describe('is-equal', () => { it('isEqual', () => { expect(isEqual({}, {})).toBe(true); }); });
1,431
0
petrpan-code/hustcc/echarts-for-react/__tests__
petrpan-code/hustcc/echarts-for-react/__tests__/helper/is-fucntion-spec.ts
import { isFunction } from '../../src/helper/is-function'; describe('is-function', () => { it('isFunction', () => { expect(isFunction(1)).toBe(false); expect(isFunction('')).toBe(false); expect(isFunction(true)).toBe(false); expect(isFunction(() => {})).toBe(true); }); });
1,432
0
petrpan-code/hustcc/echarts-for-react/__tests__
petrpan-code/hustcc/echarts-for-react/__tests__/helper/is-string-spec.ts
import { isString } from '../../src/helper/is-string'; describe('is-function', () => { it('isFunction', () => { expect(isString(1)).toBe(false); expect(isString('')).toBe(true); expect(isString(true)).toBe(false); expect(isString(() => {})).toBe(false); }); });
1,433
0
petrpan-code/hustcc/echarts-for-react/__tests__
petrpan-code/hustcc/echarts-for-react/__tests__/helper/pick-spec.ts
import { pick } from '../../src/helper/pick'; describe('pick', () => { it('pick', () => { expect(pick({ a: 1 }, [])).toEqual({}); expect(pick({ a: 1 }, ['b'])).toEqual({}); expect(pick({ a: 1 }, ['a'])).toEqual({ a: 1 }); expect(pick({ a: 1 }, ['a', 'b'])).toEqual({ a: 1 }); }); });
1,434
0
petrpan-code/hustcc/echarts-for-react/__tests__
petrpan-code/hustcc/echarts-for-react/__tests__/utils/index.ts
import ReactDOM from 'react-dom'; /** * 渲染组件 * @param comp * @param container */ export function render(comp: any, container: HTMLElement) { ReactDOM.render(comp, container); } /** * 卸载组件 * @param container */ export function destroy(container: HTMLElement) { ReactDOM.unmountComponentAtNode(container); } ...
1,435
0
petrpan-code/hustcc/echarts-for-react
petrpan-code/hustcc/echarts-for-react/docs/index.md
--- title: ECharts for React - 全网开发者下载量最高的 ECharts 的 React 组件封装 order: 1 hero: title: ECharts for React desc: 全网开发者下载量最高的 ECharts 的 React 组件封装 actions: - text: 在线实例 link: /examples/dynamic - text: 开源地址 link: https://github.com/hustcc/echarts-for-react footer: Open-source MIT Licensed | Copyrig...
1,436
0
petrpan-code/hustcc/echarts-for-react/docs
petrpan-code/hustcc/echarts-for-react/docs/examples/api.md
--- title: ECharts API order: 2 --- ## ECharts API ```tsx import React, { useRef } from 'react'; import ReactECharts from 'echarts-for-react'; const Page: React.FC = () => { const option = { title: { text: '漏斗图', subtext: '纯属虚构' }, tooltip: { trigger: 'item', formatter: "{a} <br...
1,437
0
petrpan-code/hustcc/echarts-for-react/docs
petrpan-code/hustcc/echarts-for-react/docs/examples/dynamic.md
--- title: Dynamic order: 6 --- ## Dynamic ```tsx import React, { useState, useEffect } from 'react'; import ReactECharts from 'echarts-for-react'; import cloneDeep from 'lodash.clonedeep'; const Page: React.FC = () => { const DEFAULT_OPTION = { title: { text:'Hello Echarts-for-react.', }, toolti...
1,438
0
petrpan-code/hustcc/echarts-for-react/docs
petrpan-code/hustcc/echarts-for-react/docs/examples/event.md
--- title: Event order: 4 --- ## Event ```tsx import React, { useState } from 'react'; import ReactECharts from 'echarts-for-react'; const Page: React.FC = () => { const option = { title : { text: '某站点用户访问来源', subtext: '纯属虚构', x:'center' }, tooltip : { trigger: 'item', for...
1,439
0
petrpan-code/hustcc/echarts-for-react/docs
petrpan-code/hustcc/echarts-for-react/docs/examples/gl.md
--- title: Web GL order: 7 --- ## Web GL ```tsx import React from 'react'; import ReactECharts from 'echarts-for-react'; import 'echarts-gl'; const Page: React.FC = () => { const option = { grid3D: {}, xAxis3D: {}, yAxis3D: {}, zAxis3D: {}, series: [{ type: 'scatter3D', symbolSize: ...
1,440
0
petrpan-code/hustcc/echarts-for-react/docs
petrpan-code/hustcc/echarts-for-react/docs/examples/graph.md
--- title: Graph order: 9 --- ## Graph ```tsx import React from 'react'; import ReactECharts from 'echarts-for-react'; const Page: React.FC = () => { const webkitDep = {"type":"force","categories":[{"name":"HTMLElement","keyword":{},"base":"HTMLElement"},{"name":"WebGL","keyword":{},"base":"WebGLRenderingContext"}...
1,441
0
petrpan-code/hustcc/echarts-for-react/docs
petrpan-code/hustcc/echarts-for-react/docs/examples/loading.md
--- title: Loading order: 5 --- ## Loading ```tsx import React, { useState, useEffect } from 'react'; import ReactECharts from 'echarts-for-react'; const Page: React.FC = () => { const option = { title: { text: '基础雷达图' }, tooltip: {}, legend: { data: ['预算分配(Allocated Budget)', '实际开销(Act...
1,442
0
petrpan-code/hustcc/echarts-for-react/docs
petrpan-code/hustcc/echarts-for-react/docs/examples/locale.md
--- title: Locale order: 8 --- ## Locale ```tsx import React from 'react'; import ReactECharts from 'echarts-for-react'; import "echarts/i18n/langFR"; const Page: React.FC = () => { const option = { title: { text: 'ECharts 入门示例' }, toolbox: { feature: { saveAsImage: {}, ...
1,443
0
petrpan-code/hustcc/echarts-for-react/docs
petrpan-code/hustcc/echarts-for-react/docs/examples/simple.md
--- title: Simple order: 1 --- ## 简单堆积面积图 ```tsx import React from 'react'; import ReactECharts from 'echarts-for-react'; const Page: React.FC = () => { const option = { title: { text: '堆叠区域图' }, tooltip : { trigger: 'axis' }, legend: { data:['邮件营销','联盟广告','视频广告'] }, t...
1,444
0
petrpan-code/hustcc/echarts-for-react/docs
petrpan-code/hustcc/echarts-for-react/docs/examples/svg.md
--- title: SVG order: 8 --- ## SVG ```tsx import React from 'react'; import ReactECharts from 'echarts-for-react'; const Page: React.FC = () => { const option = { title: { text: 'ECharts 入门示例' }, tooltip: {}, legend: { data:['销量'] }, xAxis: { data: ['衬衫', '羊毛衫', '雪纺衫', '裤子...
1,445
0
petrpan-code/hustcc/echarts-for-react/docs
petrpan-code/hustcc/echarts-for-react/docs/examples/theme.md
--- title: Theme order: 3 --- ## Theme ```tsx import React, { useState } from 'react'; import * as echarts from 'echarts'; import ReactECharts from 'echarts-for-react'; echarts.registerTheme('my_theme', { backgroundColor: '#f4cccc' }); echarts.registerTheme('another_theme', { backgroundColor: '#eee' }); const P...
1,446
0
petrpan-code/hustcc/echarts-for-react
petrpan-code/hustcc/echarts-for-react/src/core.tsx
import type { ECharts } from 'echarts'; import React, { PureComponent } from 'react'; import { bind, clear } from 'size-sensor'; import { pick } from './helper/pick'; import { isFunction } from './helper/is-function'; import { isString } from './helper/is-string'; import { isEqual } from './helper/is-equal'; import { E...
1,447
0
petrpan-code/hustcc/echarts-for-react
petrpan-code/hustcc/echarts-for-react/src/index.ts
import * as echarts from 'echarts'; import { EChartsReactProps, EChartsOption, EChartsInstance } from './types'; import EChartsReactCore from './core'; export type { EChartsReactProps, EChartsOption, EChartsInstance }; // export the Component the echarts Object. export default class EChartsReact extends EChartsReactC...
1,448
0
petrpan-code/hustcc/echarts-for-react
petrpan-code/hustcc/echarts-for-react/src/types.ts
import { CSSProperties } from 'react'; export type EChartsOption = any; export type EChartsInstance = any; export type Opts = { readonly devicePixelRatio?: number; readonly renderer?: 'canvas' | 'svg'; readonly width?: number | null | undefined | 'auto'; readonly height?: number | null | undefined | 'auto'; ...
1,449
0
petrpan-code/hustcc/echarts-for-react/src
petrpan-code/hustcc/echarts-for-react/src/helper/is-equal.ts
import isEqual from 'fast-deep-equal'; export { isEqual };
1,450
0
petrpan-code/hustcc/echarts-for-react/src
petrpan-code/hustcc/echarts-for-react/src/helper/is-function.ts
export function isFunction(v: any): boolean { return typeof v === 'function'; }
1,451
0
petrpan-code/hustcc/echarts-for-react/src
petrpan-code/hustcc/echarts-for-react/src/helper/is-string.ts
export function isString(v: any): boolean { return typeof v === 'string'; }
1,452
0
petrpan-code/hustcc/echarts-for-react/src
petrpan-code/hustcc/echarts-for-react/src/helper/pick.ts
/** * 保留 object 中的部分内容 * @param obj * @param keys */ export function pick(obj: Record<string, unknown>, keys: string[]): Record<string, unknown> { const r = {}; keys.forEach((key) => { r[key] = obj[key]; }); return r; }
1,453
0
petrpan-code/tapexyz
petrpan-code/tapexyz/tape/.deepsource.toml
version = 1 exclude_patterns = [ "node_modules", ".next", ".github", ".vscode", ".husky", "packages/lens/generated.ts", "yarn.lock" ] [[analyzers]] name = "javascript" enabled = true [analyzers.meta] plugins = ["react"] [[transformers]] name = "prettier" enabled = true
1,454
0
petrpan-code/tapexyz
petrpan-code/tapexyz/tape/.eslintrc.js
module.exports = { root: true, settings: { next: { rootDir: ['apps/*/'] } } }
1,455
0
petrpan-code/tapexyz
petrpan-code/tapexyz/tape/.nvmrc
18
1,456
0
petrpan-code/tapexyz
petrpan-code/tapexyz/tape/.prettierignore
node_modules out .next .turbo .github
1,457
0
petrpan-code/tapexyz
petrpan-code/tapexyz/tape/.prettierrc
{ "arrowParens": "always", "semi": false, "useTabs": false, "trailingComma": "none", "singleQuote": true, "tabWidth": 2, "plugins": ["prettier-plugin-tailwindcss"] }
1,458
0
petrpan-code/tapexyz
petrpan-code/tapexyz/tape/CODE_OF_CONDUCT.md
# Code of Conduct ## Our Pledge We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, educatio...
1,459
0
petrpan-code/tapexyz
petrpan-code/tapexyz/tape/LICENSE
GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. ...
1,460
0
petrpan-code/tapexyz
petrpan-code/tapexyz/tape/README.md
<div align="center"> <img src="https://static.tape.xyz/brand/og.png" alt="banner"> <br/> <br/> <p>Talk, Amplify, Post, Explore</p> <a href="https://tape.xyz">tape.xyz</a> </div> <br> <div align="center"> <a href="https://tape.xyz/u/sasicodes"> <img src="https://lens-badge.vercel.app/api/...
1,461
0
petrpan-code/tapexyz
petrpan-code/tapexyz/tape/package.json
{ "name": "tape.xyz", "description": "Talk, Amplify, Post, Explore", "version": "2.0.0-beta", "private": true, "workspaces": [ "apps/*", "packages/*", "packages/workers/*", "packages/helpers/*" ], "scripts": { "build": "turbo run build --parallel", "dev": "turbo run dev --parallel"...
1,462
0
petrpan-code/tapexyz
petrpan-code/tapexyz/tape/turbo.json
{ "$schema": "https://turbo.build/schema.json", "pipeline": { "build": { "dependsOn": ["^build"], "outputs": ["dist/**", ".next/**"] }, "export": { "dependsOn": ["build"], "outputs": ["out/**"] }, "extract": { "outputs": [] }, "start": { "cache": false }, "typeche...
1,463
0
petrpan-code/tapexyz
petrpan-code/tapexyz/tape/yarn.lock
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. # yarn lockfile v1 "@0no-co/graphql.web@^1.0.1": version "1.0.4" resolved "https://registry.yarnpkg.com/@0no-co/graphql.web/-/graphql.web-1.0.4.tgz#9606eb651955499525d068ce0ad8bea596286ce2" integrity sha512-W3ezhHGfO0MS1PtGloaTpg0PbaT8aZSmmaerL7id...
1,464
0
petrpan-code/tapexyz/tape
petrpan-code/tapexyz/tape/.husky/pre-commit
#!/bin/sh . "$(dirname "$0")/_/husky.sh" yarn lint yarn typecheck
1,465
0
petrpan-code/tapexyz/tape
petrpan-code/tapexyz/tape/.vscode/settings.json
{ "editor.formatOnSave": false, "editor.defaultFormatter": "esbenp.prettier-vscode", "git.autofetch": true, "git.confirmSync": false, "git.enableSmartCommit": true, "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, "[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode"...
1,466
0
petrpan-code/tapexyz/tape/apps
petrpan-code/tapexyz/tape/apps/api/.eslintrc.js
module.exports = { extends: [require.resolve('@tape.xyz/config/eslint/index.js')] }
1,467
0
petrpan-code/tapexyz/tape/apps
petrpan-code/tapexyz/tape/apps/api/next-env.d.ts
/// <reference types="next" /> /// <reference types="next/image-types/global" /> // NOTE: This file should not be edited // see https://nextjs.org/docs/basic-features/typescript for more information.
1,468
0
petrpan-code/tapexyz/tape/apps
petrpan-code/tapexyz/tape/apps/api/next.config.js
/** @type {import('next').NextConfig} */ const nextConfig = { transpilePackages: [ '@tape.xyz/browser', '@tape.xyz/generic', '@tape.xyz/lens' ], reactStrictMode: true, async rewrites() { return [{ source: '/:path*', destination: '/api/:path*' }] }, async headers() { return [ { ...
1,469
0
petrpan-code/tapexyz/tape/apps
petrpan-code/tapexyz/tape/apps/api/package.json
{ "name": "@tape.xyz/api", "version": "0.0.0", "private": true, "scripts": { "dev": "next dev --port 4002", "export": "next export", "build": "next build", "start": "yarn build && next start --port 4002", "typecheck": "tsc --pretty", "lint": "eslint . --ext .js,.ts,.tsx" }, "dependen...
1,470
0
petrpan-code/tapexyz/tape/apps
petrpan-code/tapexyz/tape/apps/api/tsconfig.json
{ "extends": "@tape.xyz/config/react.tsconfig.json", "compilerOptions": { "baseUrl": ".", "noEmit": true, "isolatedModules": true }, "include": ["**/*.ts"] }
1,471
0
petrpan-code/tapexyz/tape/apps/api
petrpan-code/tapexyz/tape/apps/api/lib/getProfileMeta.ts
import { getMetaTags } from '@tape.xyz/browser' import { LENS_NAMESPACE_PREFIX, OG_IMAGE, TAPE_APP_DESCRIPTION, TAPE_APP_NAME } from '@tape.xyz/constants' import { getProfile, getProfilePicture } from '@tape.xyz/generic' import type { Profile, ProfileRequest } from '@tape.xyz/lens' import { ProfileDocument } fr...
1,472
0
petrpan-code/tapexyz/tape/apps/api
petrpan-code/tapexyz/tape/apps/api/lib/getPublicationMeta.ts
import { getMetaTags } from '@tape.xyz/browser' import { OG_IMAGE, TAPE_APP_DESCRIPTION, TAPE_APP_NAME } from '@tape.xyz/constants' import { getPublication, getPublicationData, getThumbnailUrl, imageCdn, truncate } from '@tape.xyz/generic' import type { AnyPublication, PublicationRequest } from '@tape.x...
1,473
0
petrpan-code/tapexyz/tape/apps/api
petrpan-code/tapexyz/tape/apps/api/lib/getPublicationOembed.ts
import { OG_IMAGE, TAPE_APP_NAME, TAPE_EMBED_URL, TAPE_WEBSITE_URL } from '@tape.xyz/constants' import { getProfile, getPublicationData, getThumbnailUrl, imageCdn, truncate } from '@tape.xyz/generic' import type { AnyPublication, MirrorablePublication, PublicationRequest } from '@tape.xyz/lens' ...
1,474
0
petrpan-code/tapexyz/tape/apps/api/pages
petrpan-code/tapexyz/tape/apps/api/pages/api/metatags.ts
import { getMetaTags } from '@tape.xyz/browser' import { OG_IMAGE, TAPE_APP_DESCRIPTION, TAPE_APP_NAME } from '@tape.xyz/constants' import getProfileMeta from 'lib/getProfileMeta' import getPublicationMeta from 'lib/getPublicationMeta' import type { NextApiRequest, NextApiResponse } from 'next' const handler = a...
1,475
0
petrpan-code/tapexyz/tape/apps/api/pages
petrpan-code/tapexyz/tape/apps/api/pages/api/oembed.ts
import getPublicationOembed from 'lib/getPublicationOembed' import type { NextApiRequest, NextApiResponse } from 'next' const handler = async (req: NextApiRequest, res: NextApiResponse) => { if (req.method !== 'GET') { return res.status(405).json({ success: false }) } const format = req.query.format as stri...
1,476
0
petrpan-code/tapexyz/tape/apps
petrpan-code/tapexyz/tape/apps/embed/.eslintrc.js
module.exports = { extends: [require.resolve('@tape.xyz/config/eslint/index.js')] }
1,477
0
petrpan-code/tapexyz/tape/apps
petrpan-code/tapexyz/tape/apps/embed/next-env.d.ts
/// <reference types="next" /> /// <reference types="next/image-types/global" /> // NOTE: This file should not be edited // see https://nextjs.org/docs/basic-features/typescript for more information.
1,478
0
petrpan-code/tapexyz/tape/apps
petrpan-code/tapexyz/tape/apps/embed/next.config.js
/** @type {import('next').NextConfig} */ const nextConfig = { transpilePackages: [ '@tape.xyz/lens', '@tape.xyz/browser', '@tape.xyz/generic', '@tape.xyz/config', '@tape.xyz/ui' ], reactStrictMode: true, async headers() { return [ { source: '/(.*)', headers: [{ key:...
1,479
0
petrpan-code/tapexyz/tape/apps
petrpan-code/tapexyz/tape/apps/embed/package.json
{ "name": "@tape.xyz/embed", "description": "Embed Player", "version": "0.0.0", "private": true, "scripts": { "dev": "next dev --port 4001", "build": "next build", "export": "next export", "start": "yarn build && next start --port 4001", "typecheck": "tsc --pretty", "lint": "eslint . -...
1,480
0
petrpan-code/tapexyz/tape/apps
petrpan-code/tapexyz/tape/apps/embed/postcss.config.js
module.exports = { plugins: { tailwindcss: {}, autoprefixer: {} } }
1,481
0
petrpan-code/tapexyz/tape/apps
petrpan-code/tapexyz/tape/apps/embed/tailwind.config.js
const base = require('@tape.xyz/ui/tailwind-preset') /** @type {import('tailwindcss').Config} */ module.exports = { ...base, content: [ './src/pages/**/*.{js,ts,jsx,tsx}', './src/components/**/*.{js,ts,jsx,tsx}', '../../packages/**/*.{ts,tsx}' ], plugins: [require('@tailwindcss/aspect-ratio')] }
1,482
0
petrpan-code/tapexyz/tape/apps
petrpan-code/tapexyz/tape/apps/embed/tsconfig.json
{ "extends": "@tape.xyz/config/react.tsconfig.json", "compilerOptions": { "baseUrl": ".", "noEmit": true, "paths": { "@components*": ["src/components*"], "@lib*": ["src/lib*"] }, "isolatedModules": true }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "src/styles/index.css"...
1,483
0
petrpan-code/tapexyz/tape/apps/embed/src
petrpan-code/tapexyz/tape/apps/embed/src/components/Audio.tsx
import { useAverageColor } from '@tape.xyz/browser' import { STATIC_ASSETS, TAPE_APP_NAME, TAPE_WEBSITE_URL } from '@tape.xyz/constants' import { EVENTS, getPublicationData, getThumbnailUrl, imageCdn, sanitizeDStorageUrl, Tower, truncate } from '@tape.xyz/generic' import type { PrimaryPublication } ...
1,484
0
petrpan-code/tapexyz/tape/apps/embed/src
petrpan-code/tapexyz/tape/apps/embed/src/components/MetaTags.tsx
import { OG_IMAGE, TAPE_APP_DESCRIPTION, TAPE_APP_NAME, TAPE_WEBSITE_URL } from '@tape.xyz/constants' import Head from 'next/head' import { useRouter } from 'next/router' import type { FC } from 'react' import React from 'react' type Props = { title?: string description?: string image?: string } const M...
1,485
0
petrpan-code/tapexyz/tape/apps/embed/src
petrpan-code/tapexyz/tape/apps/embed/src/components/Publication.tsx
import { getPublication, isListenable } from '@tape.xyz/generic' import type { AnyPublication } from '@tape.xyz/lens' import type { FC } from 'react' import React from 'react' import Audio from './Audio' import Video from './Video' type Props = { publication: AnyPublication } const Publication: FC<Props> = ({ publ...
1,486
0
petrpan-code/tapexyz/tape/apps/embed/src
petrpan-code/tapexyz/tape/apps/embed/src/components/TopOverlay.tsx
import { useCopyToClipboard } from '@tape.xyz/browser' import { STATIC_ASSETS, TAPE_APP_NAME, TAPE_WEBSITE_URL } from '@tape.xyz/constants' import { EVENTS, getProfile, getProfilePicture, getPublicationData, Tower } from '@tape.xyz/generic' import type { PrimaryPublication } from '@tape.xyz/lens' import...
1,487
0
petrpan-code/tapexyz/tape/apps/embed/src
petrpan-code/tapexyz/tape/apps/embed/src/components/Video.tsx
import { useAverageColor } from '@tape.xyz/browser' import { LENSTUBE_BYTES_APP_ID } from '@tape.xyz/constants' import { EVENTS, getPublicationData, getPublicationMediaUrl, getThumbnailUrl, imageCdn, sanitizeDStorageUrl, Tower, truncate } from '@tape.xyz/generic' import type { PrimaryPublication } from ...
1,488
0
petrpan-code/tapexyz/tape/apps/embed/src/components
petrpan-code/tapexyz/tape/apps/embed/src/components/icons/CopyOutline.tsx
import type { SVGProps } from 'react' import React from 'react' const CopyOutline = (props: SVGProps<SVGSVGElement>) => ( <svg {...props} viewBox="0 0 20 22" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fillRule="evenodd" clipRule="evenodd" d="M13 0.25H8.94358C7.1058...
1,489
0
petrpan-code/tapexyz/tape/apps/embed/src/components
petrpan-code/tapexyz/tape/apps/embed/src/components/icons/PauseOutline.tsx
import type { SVGProps } from 'react' import React from 'react' const PauseOutline = (props: SVGProps<SVGSVGElement>) => ( <svg {...props} viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill="currentColor" d="M4.948.25h.104c.898 0 1.648 0 2.242.08.628.084...
1,490
0
petrpan-code/tapexyz/tape/apps/embed/src/components
petrpan-code/tapexyz/tape/apps/embed/src/components/icons/PlayOutline.tsx
import type { SVGProps } from 'react' import React from 'react' const PlayOutline = (props: SVGProps<SVGSVGElement>) => ( <svg {...props} viewBox="0 0 20 22" fill="none" xmlns="http://www.w3.org/2000/svg" > <path fill="currentColor" d="m9.498 2.214.067.034c.843.427 1.663.865 2.392 1...
1,491
0
petrpan-code/tapexyz/tape/apps/embed/src
petrpan-code/tapexyz/tape/apps/embed/src/pages/[pubId].tsx
import Publication from '@components/Publication' import { getPublication, isListenable, isWatchable } from '@tape.xyz/generic' import type { AnyPublication, PublicationRequest } from '@tape.xyz/lens' import { PublicationDocument } from '@tape.xyz/lens' import { apolloClient } from '@tape.xyz/lens/apollo' import type {...
1,492
0
petrpan-code/tapexyz/tape/apps/embed/src
petrpan-code/tapexyz/tape/apps/embed/src/pages/_app.tsx
import '../styles/index.css' import { LivepeerConfig } from '@livepeer/react' import { getLivepeerClient, setFingerprint, videoPlayerTheme } from '@tape.xyz/browser' import { tapeFont } from '@tape.xyz/browser/font' import type { AppProps } from 'next/app' import React, { useEffect } from 'react' const MyApp = ...
1,493
0
petrpan-code/tapexyz/tape/apps/embed/src
petrpan-code/tapexyz/tape/apps/embed/src/pages/_document.tsx
import { getCssText } from '@livepeer/react' import { default as NextDocument, Head, Html, Main, NextScript } from 'next/document' import * as React from 'react' class Document extends NextDocument { render() { return ( <Html lang="en"> <Head> <style id="stitches" ...
1,494
0
petrpan-code/tapexyz/tape/apps/embed/src
petrpan-code/tapexyz/tape/apps/embed/src/styles/index.css
@tailwind base; @tailwind components; @tailwind utilities; body { @apply min-h-screen bg-white antialiased; } .livepeer-aspect-ratio-container, .livepeer-contents-container { height: inherit !important; } button:active { animation: button-pop 0.25s ease-out; } @keyframes button-pop { 0% { transform: scal...
1,495
0
petrpan-code/tapexyz/tape/apps
petrpan-code/tapexyz/tape/apps/mobile/.eslintrc.js
module.exports = { extends: [require.resolve('@tape.xyz/config/eslint/index.js')] }
1,496
0
petrpan-code/tapexyz/tape/apps
petrpan-code/tapexyz/tape/apps/mobile/app.config.ts
import type { ConfigContext, ExpoConfig } from 'expo/config' const config = ({ config }: ConfigContext): Partial<ExpoConfig> => { if (process.env.LENS_ENV === 'mainnet') { /* production config */ return { ...config } } else { /* development config */ return { ...config } } } ...
1,497
0
petrpan-code/tapexyz/tape/apps
petrpan-code/tapexyz/tape/apps/mobile/app.json
{ "expo": { "name": "Tape", "slug": "tape", "version": "0.0.1", "orientation": "portrait", "owner": "sasicodes", "scheme": "tape", "icon": "./assets/icon.png", "userInterfaceStyle": "dark", "assetBundlePatterns": ["assets/**"], "backgroundColor": "#000000", "splash": { ...
1,498
0
petrpan-code/tapexyz/tape/apps
petrpan-code/tapexyz/tape/apps/mobile/babel.config.js
module.exports = function (api) { api.cache(true) return { presets: ['babel-preset-expo'], plugins: [ [ '@babel/plugin-transform-react-jsx', { runtime: 'automatic' } ], [ 'module-resolver', { root: ['./'], alias: { ...
1,499