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/PaulLeCam/react-leaflet/packages/core
petrpan-code/PaulLeCam/react-leaflet/packages/core/src/dom.ts
import { DomUtil } from 'leaflet' function splitClassName(className: string): string[] { return className.split(' ').filter(Boolean) } export function addClassName(element: HTMLElement, className: string) { splitClassName(className).forEach((cls) => { DomUtil.addClass(element, cls) }) } export function rem...
9,300
0
petrpan-code/PaulLeCam/react-leaflet/packages/core
petrpan-code/PaulLeCam/react-leaflet/packages/core/src/element.ts
import { type MutableRefObject, useEffect, useRef } from 'react' import type { LeafletContextInterface } from './context.js' export type LeafletElement<T, C = any> = Readonly<{ instance: T context: LeafletContextInterface container?: C | null }> export function createElementObject<T, C = any>( instance: T, ...
9,301
0
petrpan-code/PaulLeCam/react-leaflet/packages/core
petrpan-code/PaulLeCam/react-leaflet/packages/core/src/events.ts
import type { Evented, LeafletEventHandlerFnMap } from 'leaflet' import { useEffect, useRef } from 'react' import type { LeafletElement } from './element.js' export type EventedProps = { eventHandlers?: LeafletEventHandlerFnMap } export function useEventHandlers( element: LeafletElement<Evented>, eventHandlers...
9,302
0
petrpan-code/PaulLeCam/react-leaflet/packages/core
petrpan-code/PaulLeCam/react-leaflet/packages/core/src/generic.ts
import type { Control, ControlOptions, FeatureGroup, Layer, Path, } from 'leaflet' import { type PropsWithChildren, createContainerComponent, createDivOverlayComponent, createLeafComponent, } from './component.js' import type { LeafletContextInterface } from './context.js' import { createControlHook ...
9,303
0
petrpan-code/PaulLeCam/react-leaflet/packages/core
petrpan-code/PaulLeCam/react-leaflet/packages/core/src/grid-layer.ts
import type { GridLayer, GridLayerOptions } from 'leaflet' export function updateGridLayer< E extends GridLayer, P extends GridLayerOptions, >(layer: E, props: P, prevProps: P) { const { opacity, zIndex } = props if (opacity != null && opacity !== prevProps.opacity) { layer.setOpacity(opacity) } if (zI...
9,304
0
petrpan-code/PaulLeCam/react-leaflet/packages/core
petrpan-code/PaulLeCam/react-leaflet/packages/core/src/index.ts
export { useAttribution } from './attribution.js' export { type CircleMarkerProps, type CircleProps, updateCircle, } from './circle.js' export { createContainerComponent, createDivOverlayComponent, createLeafComponent, } from './component.js' export { CONTEXT_VERSION, type LeafletContextInterface, Lea...
9,305
0
petrpan-code/PaulLeCam/react-leaflet/packages/core
petrpan-code/PaulLeCam/react-leaflet/packages/core/src/layer.ts
import type { InteractiveLayerOptions, Layer, LayerOptions } from 'leaflet' import { useEffect } from 'react' import { useAttribution } from './attribution.js' import { type LeafletContextInterface, useLeafletContext } from './context.js' import type { LeafletElement, ElementHook } from './element.js' import { type Ev...
9,306
0
petrpan-code/PaulLeCam/react-leaflet/packages/core
petrpan-code/PaulLeCam/react-leaflet/packages/core/src/media-overlay.ts
import { LatLngBounds, type LatLngBoundsExpression, type ImageOverlay as LeafletImageOverlay, type ImageOverlayOptions, type SVGOverlay as LeafletSVGOverlay, type VideoOverlay as LeafletVideoOverlay, } from 'leaflet' import type { InteractiveLayerProps } from './layer.js' export interface MediaOverlayProp...
9,307
0
petrpan-code/PaulLeCam/react-leaflet/packages/core
petrpan-code/PaulLeCam/react-leaflet/packages/core/src/pane.ts
import type { LayerOptions } from 'leaflet' import type { LeafletContextInterface } from './context.js' export function withPane<P extends LayerOptions>( props: P, context: LeafletContextInterface, ): P { const pane = props.pane ?? context.pane return pane ? { ...props, pane } : props }
9,308
0
petrpan-code/PaulLeCam/react-leaflet/packages/core
petrpan-code/PaulLeCam/react-leaflet/packages/core/src/path.ts
import type { FeatureGroup, Path, PathOptions } from 'leaflet' import { useEffect, useRef } from 'react' import { useLeafletContext } from './context.js' import type { LeafletElement, ElementHook } from './element.js' import { useEventHandlers } from './events.js' import { type InteractiveLayerProps, useLayerLifecycle...
9,309
0
petrpan-code/PaulLeCam/react-leaflet/packages
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/LICENSE.md
react-leaflet Copyright 2020 Paul Le Cam and contributors (“Licensor”) Hippocratic License Version Number: 2.1. Purpose. The purpose of this License is for the Licensor named above to permit the Licensee (as defined below) broad permission, if consistent with Human Rights Laws and Human Rights Principles (as each is ...
9,310
0
petrpan-code/PaulLeCam/react-leaflet/packages
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/README.md
# React Leaflet [Documentation](https://react-leaflet.js.org/)
9,311
0
petrpan-code/PaulLeCam/react-leaflet/packages
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/package.json
{ "name": "react-leaflet", "version": "4.2.1", "description": "React components for Leaflet maps", "repository": { "type": "git", "url": "https://github.com/PaulLeCam/react-leaflet.git" }, "keywords": [ "react-component", "react", "leaflet", "map" ], "author": "Paul Le Cam <paul@...
9,312
0
petrpan-code/PaulLeCam/react-leaflet/packages
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/tsconfig.json
{ "extends": "../../tsconfig.build.json", "compilerOptions": { "outDir": "./lib" }, "include": ["./src/**/*"] }
9,313
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/__tests__/AttributionControl.tsx
import { render } from '@testing-library/react' import React from 'react' import { AttributionControl, MapContainer } from '../src' describe('AttributionControl', () => { test('renders and unmounts', () => { const { container, unmount } = render( <MapContainer center={[0, 0]} zoom={10}> <Attributi...
9,314
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/__tests__/MapContainer.tsx
import { render } from '@testing-library/react' import { type LatLngExpression, Map } from 'leaflet' import React, { StrictMode, useEffect, useRef } from 'react' import { MapContainer, useMap } from '../src' describe('MapContainer', () => { test('renders the containing div', () => { const { container } = render...
9,315
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/__tests__/Pane.tsx
import { render } from '@testing-library/react' import React, { StrictMode, useEffect, useRef } from 'react' import { MapContainer, Pane, TileLayer } from '../src' describe('Pane', () => { test('renders', () => { const { container } = render( <MapContainer center={[0, 0]} zoom={10}> <Pane name="fo...
9,316
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/__tests__/ScaleControl.tsx
import { render } from '@testing-library/react' import React from 'react' import { ScaleControl, MapContainer } from '../src' describe('ScaleControl', () => { test('renders and unmounts', () => { const { container, unmount } = render( <MapContainer center={[0, 0]} zoom={10}> <ScaleControl position...
9,317
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/__tests__/TileLayer.tsx
import { render } from '@testing-library/react' import React from 'react' import { MapContainer, TileLayer } from '../src' describe('TileLayer', () => { test('renders', () => { const { container, rerender } = render( <MapContainer center={[0, 0]} zoom={10}> <TileLayer attribution="tiles attributio...
9,318
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/__tests__/ZoomControl.tsx
import { render } from '@testing-library/react' import React from 'react' import { ZoomControl, MapContainer } from '../src' describe('ZoomControl', () => { test('renders and unmounts', () => { const { container, unmount } = render( <MapContainer center={[0, 0]} zoom={10}> <ZoomControl position="b...
9,319
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/__tests__
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/__tests__/__snapshots__/AttributionControl.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`AttributionControl renders and unmounts 1`] = ` <div> <div class="leaflet-container leaflet-touch leaflet-grab leaflet-touch-drag leaflet-touch-zoom" style="position: relative;" tabindex="0" > <div class="leaflet-pane leaflet-map-pane" ...
9,320
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/__tests__
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/__tests__/__snapshots__/MapContainer.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`MapContainer re-renders the containing div 1`] = ` <div> <div class="leaflet-container leaflet-touch leaflet-grab leaflet-touch-drag leaflet-touch-zoom" style="position: relative;" tabindex="0" > <div class="leaflet-pane leaflet-map-pane" ...
9,321
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/__tests__
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/__tests__/__snapshots__/Pane.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Pane can unmount and remount with the same name 1`] = ` <div> <div class="leaflet-container leaflet-touch leaflet-grab leaflet-touch-drag leaflet-touch-zoom" style="position: relative;" tabindex="0" > <div class="leaflet-pane leaflet-map-pan...
9,322
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/__tests__
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/__tests__/__snapshots__/ScaleControl.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`ScaleControl renders and unmounts 1`] = ` <div> <div class="leaflet-container leaflet-touch leaflet-grab leaflet-touch-drag leaflet-touch-zoom" style="position: relative;" tabindex="0" > <div class="leaflet-pane leaflet-map-pane" style...
9,323
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/__tests__
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/__tests__/__snapshots__/TileLayer.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`TileLayer renders 1`] = ` <div> <div class="leaflet-container leaflet-touch leaflet-grab leaflet-touch-drag leaflet-touch-zoom" style="position: relative;" tabindex="0" > <div class="leaflet-pane leaflet-map-pane" style="left: 0px; top...
9,324
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/__tests__
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/__tests__/__snapshots__/ZoomControl.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`ZoomControl renders and unmounts 1`] = ` <div> <div class="leaflet-container leaflet-touch leaflet-grab leaflet-touch-drag leaflet-touch-zoom" style="position: relative;" tabindex="0" > <div class="leaflet-pane leaflet-map-pane" style=...
9,325
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/AttributionControl.tsx
import { createControlComponent } from '@react-leaflet/core' import { Control } from 'leaflet' export type AttributionControlProps = Control.AttributionOptions export const AttributionControl = createControlComponent< Control.Attribution, AttributionControlProps >(function createAttributionControl(props) { retu...
9,326
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/Circle.tsx
import { type CircleProps, createElementObject, createPathComponent, extendContext, updateCircle, } from '@react-leaflet/core' import { Circle as LeafletCircle } from 'leaflet' export type { CircleProps } from '@react-leaflet/core' export const Circle = createPathComponent<LeafletCircle, CircleProps>( fun...
9,327
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/CircleMarker.tsx
import { type CircleMarkerProps, createElementObject, createPathComponent, extendContext, updateCircle, } from '@react-leaflet/core' import { CircleMarker as LeafletCircleMarker } from 'leaflet' export type { CircleMarkerProps } from '@react-leaflet/core' export const CircleMarker = createPathComponent< L...
9,328
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/FeatureGroup.tsx
import { type PathProps, createElementObject, createPathComponent, extendContext, } from '@react-leaflet/core' import { FeatureGroup as LeafletFeatureGroup } from 'leaflet' import type { LayerGroupProps } from './LayerGroup.js' export interface FeatureGroupProps extends LayerGroupProps, PathProps {} export c...
9,329
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/GeoJSON.tsx
import { type PathProps, createElementObject, createPathComponent, extendContext, } from '@react-leaflet/core' import type { GeoJsonObject } from 'geojson' import { GeoJSON as LeafletGeoJSON, type GeoJSONOptions } from 'leaflet' import type { LayerGroupProps } from './LayerGroup.js' export interface GeoJSONPr...
9,330
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/ImageOverlay.tsx
import { type MediaOverlayProps, createElementObject, createLayerComponent, extendContext, updateMediaOverlay, } from '@react-leaflet/core' import { LatLngBounds, ImageOverlay as LeafletImageOverlay } from 'leaflet' import type { ReactNode } from 'react' export interface ImageOverlayProps extends MediaOverla...
9,331
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/LayerGroup.tsx
import { type EventedProps, createElementObject, createLayerComponent, extendContext, } from '@react-leaflet/core' import { LayerGroup as LeafletLayerGroup, type LayerOptions } from 'leaflet' import type { ReactNode } from 'react' export interface LayerGroupProps extends LayerOptions, EventedProps { children...
9,332
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/LayersControl.tsx
import { LeafletProvider, createContainerComponent, createControlHook, createElementHook, createElementObject, extendContext, useLeafletContext, } from '@react-leaflet/core' import { Control, type Layer } from 'leaflet' import React, { type ForwardRefExoticComponent, type FunctionComponent, type Rea...
9,333
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/MapContainer.tsx
import { LeafletProvider, type LeafletContextInterface, createLeafletContext, } from '@react-leaflet/core' import { type FitBoundsOptions, type LatLngBoundsExpression, Map as LeafletMap, type MapOptions, } from 'leaflet' import React, { type CSSProperties, type ReactNode, type Ref, forwardRef, u...
9,334
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/Marker.tsx
import { type EventedProps, createElementObject, createLayerComponent, extendContext, } from '@react-leaflet/core' import { type LatLngExpression, Marker as LeafletMarker, type MarkerOptions, } from 'leaflet' import type { ReactNode } from 'react' export interface MarkerProps extends MarkerOptions, Event...
9,335
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/Pane.tsx
import { type LeafletContextInterface, LeafletProvider, addClassName, useLeafletContext, } from '@react-leaflet/core' import React, { type CSSProperties, type ReactNode, type Ref, forwardRef, useState, useEffect, useImperativeHandle, useMemo, } from 'react' import { createPortal } from 'react-do...
9,336
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/Polygon.tsx
import { type PathProps, createElementObject, createPathComponent, extendContext, } from '@react-leaflet/core' import { type LatLngExpression, type PolylineOptions, Polygon as LeafletPolygon, } from 'leaflet' import type { ReactNode } from 'react' export interface PolygonProps extends PolylineOptions, Pa...
9,337
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/Polyline.tsx
import { type PathProps, createElementObject, createPathComponent, extendContext, } from '@react-leaflet/core' import { type LatLngExpression, Polyline as LeafletPolyline, type PolylineOptions, } from 'leaflet' import type { ReactNode } from 'react' export interface PolylineProps extends PolylineOptions,...
9,338
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/Popup.tsx
import { type EventedProps, type LeafletContextInterface, type LeafletElement, type SetOpenFunc, createElementObject, createOverlayComponent, } from '@react-leaflet/core' import { type LatLngExpression, Popup as LeafletPopup, type PopupEvent, type PopupOptions, } from 'leaflet' import { type ReactNo...
9,339
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/Rectangle.tsx
import { type PathProps, createElementObject, createPathComponent, extendContext, } from '@react-leaflet/core' import { type LatLngBoundsExpression, Rectangle as LeafletRectangle, type PathOptions, } from 'leaflet' import type { ReactNode } from 'react' export interface RectangleProps extends PathOptions...
9,340
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/SVGOverlay.tsx
import { type MediaOverlayProps, createElementHook, createElementObject, createLayerHook, updateMediaOverlay, } from '@react-leaflet/core' import { SVGOverlay as LeafletSVGOverlay } from 'leaflet' import { type ReactNode, type Ref, forwardRef, useImperativeHandle, } from 'react' import { createPortal ...
9,341
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/ScaleControl.tsx
import { createControlComponent } from '@react-leaflet/core' import { Control } from 'leaflet' export type ScaleControlProps = Control.ScaleOptions export const ScaleControl = createControlComponent< Control.Scale, ScaleControlProps >(function createScaleControl(props) { return new Control.Scale(props) })
9,342
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/TileLayer.tsx
import { type LayerProps, createElementObject, createTileLayerComponent, updateGridLayer, withPane, } from '@react-leaflet/core' import { TileLayer as LeafletTileLayer, type TileLayerOptions } from 'leaflet' export interface TileLayerProps extends TileLayerOptions, LayerProps { url: string } export const ...
9,343
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/Tooltip.tsx
import { type EventedProps, type LeafletContextInterface, type LeafletElement, type SetOpenFunc, createElementObject, createOverlayComponent, } from '@react-leaflet/core' import { type LatLngExpression, Tooltip as LeafletTooltip, type TooltipEvent, type TooltipOptions, } from 'leaflet' import { type...
9,344
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/VideoOverlay.tsx
import { type MediaOverlayProps, createElementObject, createLayerComponent, extendContext, updateMediaOverlay, } from '@react-leaflet/core' import { VideoOverlay as LeafletVideoOverlay, type VideoOverlayOptions, } from 'leaflet' import type { ReactNode } from 'react' export interface VideoOverlayProps ...
9,345
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/WMSTileLayer.tsx
import { type LayerProps, createElementObject, createTileLayerComponent, updateGridLayer, withPane, } from '@react-leaflet/core' import { TileLayer, type WMSOptions, type WMSParams } from 'leaflet' export interface WMSTileLayerProps extends WMSOptions, LayerProps { params?: WMSParams url: string } expor...
9,346
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/ZoomControl.tsx
import { createControlComponent } from '@react-leaflet/core' import { Control } from 'leaflet' export type ZoomControlProps = Control.ZoomOptions export const ZoomControl = createControlComponent< Control.Zoom, ZoomControlProps >(function createZoomControl(props) { return new Control.Zoom(props) })
9,347
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/hooks.ts
import { useLeafletContext } from '@react-leaflet/core' import type { LeafletEventHandlerFnMap, Map } from 'leaflet' import { useEffect } from 'react' export function useMap(): Map { return useLeafletContext().map } export function useMapEvent<T extends keyof LeafletEventHandlerFnMap>( type: T, handler: Leaflet...
9,348
0
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet
petrpan-code/PaulLeCam/react-leaflet/packages/react-leaflet/src/index.ts
export { useMap, useMapEvent, useMapEvents } from './hooks.js' export { AttributionControl, type AttributionControlProps, } from './AttributionControl.js' export { Circle, type CircleProps } from './Circle.js' export { CircleMarker, type CircleMarkerProps } from './CircleMarker.js' export { FeatureGroup, type Feat...
9,349
0
petrpan-code/xitanggg
petrpan-code/xitanggg/open-resume/.dockerignore
node_modules .next .vscode .git
9,350
0
petrpan-code/xitanggg
petrpan-code/xitanggg/open-resume/.eslintrc.json
{ "extends": "next/core-web-vitals", "rules": { "react/no-unescaped-entities": "off" } }
9,351
0
petrpan-code/xitanggg
petrpan-code/xitanggg/open-resume/.prettierignore
.next public/fonts/fonts.css
9,352
0
petrpan-code/xitanggg
petrpan-code/xitanggg/open-resume/Dockerfile
FROM node:18-alpine as builder WORKDIR /app COPY . . RUN npm install --include=dev RUN npm run build FROM node:18-alpine AS runner WORKDIR /app COPY --from=builder /app/.next/standalone . COPY --from=builder /app/public ./public COPY --from=builder /app/.next/static ./.next/static EXPOSE 3000 CMD ["node", "server.js"...
9,353
0
petrpan-code/xitanggg
petrpan-code/xitanggg/open-resume/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. ...
9,354
0
petrpan-code/xitanggg
petrpan-code/xitanggg/open-resume/README.md
# OpenResume OpenResume is a powerful open-source resume builder and resume parser. The goal of OpenResume is to provide everyone with free access to a modern professional resume design and enable anyone to apply for jobs with confidence. Official site: [https://open-resume.com](https://open-resume.com) ## ⚒️ Resum...
9,355
0
petrpan-code/xitanggg
petrpan-code/xitanggg/open-resume/jest.config.mjs
import nextJest from "next/jest.js"; const createJestConfig = nextJest({ // Provide the path to your Next.js app to load next.config.js and .env files in your test environment dir: "./", }); // Add any custom config to be passed to Jest /** @type {import('jest').Config} */ const config = { // Add more setup opt...
9,356
0
petrpan-code/xitanggg
petrpan-code/xitanggg/open-resume/next.config.js
/** @type {import('next').NextConfig} */ const nextConfig = { // Nextjs has an issue with pdfjs-dist which optionally uses the canvas package // for Node.js compatibility. This causes a "Module parse failed" error when // building the app. Since pdfjs-dist is only used on client side, we disable // the canvas p...
9,357
0
petrpan-code/xitanggg
petrpan-code/xitanggg/open-resume/package-lock.json
{ "name": "open-resume", "version": "0.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "open-resume", "version": "0.1.0", "dependencies": { "@heroicons/react": "^2.0.18", "@react-pdf/renderer": "^3.1.10", "@reduxjs/toolkit": "^1.9.5", ...
9,358
0
petrpan-code/xitanggg
petrpan-code/xitanggg/open-resume/package.json
{ "name": "open-resume", "version": "0.1.0", "private": true, "scripts": { "dev": "next dev", "build": "next build", "start": "next start", "lint": "next lint", "test": "jest --watch", "test:ci": "jest --ci" }, "dependencies": { "@heroicons/react": "^2.0.18", "@react-pdf/rend...
9,359
0
petrpan-code/xitanggg
petrpan-code/xitanggg/open-resume/postcss.config.js
module.exports = { plugins: { tailwindcss: {}, autoprefixer: {}, }, }
9,360
0
petrpan-code/xitanggg
petrpan-code/xitanggg/open-resume/prettier.config.js
module.exports = { // Repo: https://github.com/tailwindlabs/prettier-plugin-tailwindcss plugins: [require("prettier-plugin-tailwindcss")], };
9,361
0
petrpan-code/xitanggg
petrpan-code/xitanggg/open-resume/prettierignore
public/fonts/*.css
9,362
0
petrpan-code/xitanggg
petrpan-code/xitanggg/open-resume/tailwind.config.js
/** @type {import('tailwindcss').Config} */ module.exports = { content: ["./src/app/**/*.{ts,tsx,mdx}"], theme: { extend: { backgroundImage: { dot: "url('/assets/dots.svg')", }, }, }, corePlugins: { aspectRatio: false, }, plugins: [ require("tailwind-scrollbar")({ nocompa...
9,363
0
petrpan-code/xitanggg
petrpan-code/xitanggg/open-resume/tsconfig.json
{ "compilerOptions": { "target": "es5", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "strict": true, "forceConsistentCasingInFileNames": true, "noEmit": true, "esModuleInterop": true, "module": "esnext", "moduleResolution": "node", "resol...
9,364
0
petrpan-code/xitanggg/open-resume
petrpan-code/xitanggg/open-resume/public/logo.svg
<svg width="257" height="54" viewBox="0 0 257 54" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M59.672 38.384C57.432 38.384 55.4693 37.8933 53.784 36.912C52.12 35.9307 50.808 34.576 49.848 32.848C48.9093 31.0987 48.44 29.0827 48.44 26.8C48.44 24.5173 48.9093 22.512 49.848 20.784C50.808 19.0347 52.12 17.6693...
9,365
0
petrpan-code/xitanggg/open-resume/public
petrpan-code/xitanggg/open-resume/public/assets/add-pdf.svg
<svg width="86" height="99" viewBox="0 0 86 99" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M61.9332 25.2996H13.8804V29.341H61.9332V25.2996Z" fill="#9ca3af"/> <path d="M61.9332 31.8589H13.8804V35.9003H61.9332V31.8589Z" fill="#9ca3af"/> <path d="M61.9332 38.4397H13.8804V42.4811H61.9332V38.4397Z" fill="#9ca3...
9,366
0
petrpan-code/xitanggg/open-resume/public
petrpan-code/xitanggg/open-resume/public/assets/dots.svg
<svg width="1920" height="2558" viewBox="0 0 1920 2558" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g style="mix-blend-mode:darken" opacity="0.3"> <rect width="1920" height="2558" fill="url(#pattern0)"/> </g> <defs> <pattern id="pattern0" patternContentUnits="objectBoundi...
9,367
0
petrpan-code/xitanggg/open-resume/public
petrpan-code/xitanggg/open-resume/public/assets/feature-free.svg
<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0_478_898)"> <path d="M46.5719 28.225L46.1406 28.6413C44.2009 30.5137 43.2028 33.157 43.4207 35.8441L43.4706 36.4593C43.5247 37.1229 43.1076 37.7302 42.4733 37.9157L41.9392 38.0707C39.334 38.8268 37.20...
9,368
0
petrpan-code/xitanggg/open-resume/public
petrpan-code/xitanggg/open-resume/public/assets/feature-open-source.svg
<svg width="51" height="50" viewBox="0 0 51 50" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M29.9118 25.1355C24.6 26.9939 24.6 21.817 22.5 21.1533M37.4471 29L37.3235 23.1444C37.3235 21.817 37.4471 21.286 36.7059 20.4895C40.1647 20.0913 43.5 18.6312 43.5 12.5251C43.4985 10.9388 42.9226 9.41535 41.8941 8.277...
9,369
0
petrpan-code/xitanggg/open-resume/public
petrpan-code/xitanggg/open-resume/public/assets/feature-privacy.svg
<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M8.2 21.4914C5.7535 22.1833 4 24.0555 4 26.2543V42.9491C4 45.7389 6.8203 48 10.3 48C17.5723 48 32.4277 48 39.7 48C43.1797 48 46 45.7389 46 42.9491V26.2543C46 24.0555 44.2465 2...
9,370
0
petrpan-code/xitanggg/open-resume/public
petrpan-code/xitanggg/open-resume/public/assets/feature-us.svg
<svg width="50" height="51" viewBox="0 0 50 51" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M36.3201 31.833C36.264 31.833 36.2079 31.8238 36.1518 31.8044L33.8844 31.0157C33.6181 30.9228 33.4783 30.632 33.5701 30.3657C33.662 30.0993 33.9538 29.9595 34.2201 30.0514L36.4875 30.8402C36.7538 30.933 36.8936 31.2...
9,371
0
petrpan-code/xitanggg/open-resume/public
petrpan-code/xitanggg/open-resume/public/assets/heart.svg
<svg width="29" height="26" viewBox="0 0 29 26" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M20.9444 9.30558e-08C19.6939 9.30558e-08 18.4604 0.293677 17.3419 0.857774C16.2233 1.42187 15.2504 2.24089 14.5 3.24998C13.4856 1.88575 12.0713 0.878036 10.4575 0.369575C8.84365 -0.138885 7.11212 -0.122313 5.50816 0...
9,372
0
petrpan-code/xitanggg/open-resume/public
petrpan-code/xitanggg/open-resume/public/assets/logo-amazon.svg
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="603" height="182" style="fill:#221f1f" id="svg1936"> <path d="m 374.00642,142.18404 c -34.9...
9,373
0
petrpan-code/xitanggg/open-resume/public
petrpan-code/xitanggg/open-resume/public/assets/logo-columbia.svg
<svg xmlns="http://www.w3.org/2000/svg" height="54.522" viewBox="0 0 356.5976 54.522259" width="356.6"><g fill="#000d74" transform="translate(-2.6886 -2.8515)"><path d="m50.001 30.593c-2.526-2.218-3.196-5.104-3.196-7.604 0-1.753 0.541-4.794 3.016-7.063 1.855-1.702 4.304-2.733 8.145-2.733 1.598 0 2.552 0.103 3.737 0.258...
9,374
0
petrpan-code/xitanggg/open-resume/public
petrpan-code/xitanggg/open-resume/public/assets/logo-cornell.svg
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 26.5.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 539.1 137.2" style="enable-background:new 0 0...
9,375
0
petrpan-code/xitanggg/open-resume/public
petrpan-code/xitanggg/open-resume/public/assets/logo-dropbox.svg
<?xml version="1.0" encoding="utf-8"?> <!-- Generator: Adobe Illustrator 20.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 196.9" style="enable-background:new 0 0 ...
9,376
0
petrpan-code/xitanggg/open-resume/public
petrpan-code/xitanggg/open-resume/public/assets/logo-google.svg
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 272 92" width="272" height="92"><path fill="#EA4335" d="M115.75 47.18c0 12.77-9.99 22.18-22.25 22.18s-22.25-9.41-22.25-22.18C71.25 34.32 81.24 25 93.5 25s22.25 9.32 22.25 22.18zm-9.74 0c0-7.98-5.79-13.44-12.51-13...
9,377
0
petrpan-code/xitanggg/open-resume/public
petrpan-code/xitanggg/open-resume/public/assets/logo-northeastern.svg
<svg xmlns="http://www.w3.org/2000/svg" width="247" height="78.865" viewBox="0 0 247 78.865"> <g transform="matrix(1.3333 0 0 -1.3333 -197.8 153.27)"> <g transform="matrix(.4204 0 0 .4204 139.98 49.182)"> <path d="m21.681 154.7v-3.4292c8.017-0.857 12.792-3.085 24.39-14.395l4.4341-4.2847v-30.687h3.9229v27.431l109....
9,378
0
petrpan-code/xitanggg/open-resume/public
petrpan-code/xitanggg/open-resume/public/fonts/OFL.txt
Copyright (c), Christian Robertson (https://fonts.google.com/specimen/Roboto/about?query=Roboto), with Reserved Font Name Roboto. Copyright (c), Łukasz Dziedzic (https://fonts.google.com/specimen/Lato?query=lato), with Reserved Font Name Lato. Copyright (c), Julieta Ulanovsky, Sol Matas, Juan Pablo del Peral, Jacques...
9,379
0
petrpan-code/xitanggg/open-resume/public
petrpan-code/xitanggg/open-resume/public/fonts/fonts-zh.css
@font-face {font-family: "NotoSansSC"; src: url("/fonts/NotoSansSC-Regular.ttf");} @font-face {font-family: "NotoSansSC"; src: url("/fonts/NotoSansSC-Bold.ttf"); font-weight: bold;}
9,380
0
petrpan-code/xitanggg/open-resume/public
petrpan-code/xitanggg/open-resume/public/fonts/fonts.css
/* Adding a new English font family needs to keep "public\fonts\fonts.ts" in sync */ /* Sans Serif Fonts */ @font-face {font-family: "Roboto"; src: url("/fonts/Roboto-Regular.ttf");} @font-face {font-family: "Roboto"; src: url("/fonts/Roboto-Bold.ttf"); font-weight: bold;} @font-face {font-family: "Lato"; src: url("/fo...
9,381
0
petrpan-code/xitanggg/open-resume/src
petrpan-code/xitanggg/open-resume/src/app/globals-css.ts
export const CSS_VARIABLES = { "--top-nav-bar-height": "3.5rem", "--resume-control-bar-height": "3rem", "--resume-padding": "1.5rem", } as const;
9,382
0
petrpan-code/xitanggg/open-resume/src
petrpan-code/xitanggg/open-resume/src/app/globals.css
@import url("/fonts/fonts.css"); @tailwind base; @tailwind components; @tailwind utilities; @layer components { .btn-primary { @apply bg-primary outline-theme-purple inline-block rounded-full px-6 py-2 font-semibold shadow-sm; } .text-primary { @apply bg-gradient-to-r from-[color:var(--theme-purple)] to-...
9,383
0
petrpan-code/xitanggg/open-resume/src
petrpan-code/xitanggg/open-resume/src/app/layout.tsx
import "globals.css"; import { TopNavBar } from "components/TopNavBar"; import { Analytics } from "@vercel/analytics/react"; export const metadata = { title: "OpenResume - Free Open-source Resume Builder and Parser", description: "OpenResume is a free, open-source, and powerful resume builder that allows anyon...
9,384
0
petrpan-code/xitanggg/open-resume/src
petrpan-code/xitanggg/open-resume/src/app/page.tsx
import { Hero } from "home/Hero"; import { Steps } from "home/Steps"; import { Features } from "home/Features"; import { Testimonials } from "home/Testimonials"; import { QuestionsAndAnswers } from "home/QuestionsAndAnswers"; export default function Home() { return ( <main className="mx-auto max-w-screen-2xl bg-...
9,385
0
petrpan-code/xitanggg/open-resume/src/app
petrpan-code/xitanggg/open-resume/src/app/components/Button.tsx
import { cx } from "lib/cx"; import { Tooltip } from "components/Tooltip"; type ReactButtonProps = React.ComponentProps<"button">; type ReactAnchorProps = React.ComponentProps<"a">; type ButtonProps = ReactButtonProps | ReactAnchorProps; const isAnchor = (props: ButtonProps): props is ReactAnchorProps => { return "...
9,386
0
petrpan-code/xitanggg/open-resume/src/app
petrpan-code/xitanggg/open-resume/src/app/components/ExpanderWithHeightTransition.tsx
/** * ExpanderWithHeightTransition is a div wrapper with built-in transition animation based on height. * If expanded is true, it slowly expands its content and vice versa. * * Note: There is no easy way to animate height transition in CSS: https://github.com/w3c/csswg-drafts/issues/626. * This is a clever solutio...
9,387
0
petrpan-code/xitanggg/open-resume/src/app
petrpan-code/xitanggg/open-resume/src/app/components/FlexboxSpacer.tsx
/** * FlexboxSpacer can be used to create empty space in flex. * It is a div that grows to fill the available space specified by maxWidth. * You can also set a minimum width with minWidth. */ export const FlexboxSpacer = ({ maxWidth, minWidth = 0, className = "", }: { maxWidth: number; minWidth?: number; ...
9,388
0
petrpan-code/xitanggg/open-resume/src/app
petrpan-code/xitanggg/open-resume/src/app/components/ResumeDropzone.tsx
import { useState } from "react"; import { LockClosedIcon } from "@heroicons/react/24/solid"; import { XMarkIcon } from "@heroicons/react/24/outline"; import { parseResumeFromPdf } from "lib/parse-resume-from-pdf"; import { getHasUsedAppBefore, saveStateToLocalStorage, } from "lib/redux/local-storage"; import { typ...
9,389
0
petrpan-code/xitanggg/open-resume/src/app
petrpan-code/xitanggg/open-resume/src/app/components/Tooltip.tsx
"use client"; import { useEffect, useRef, useState } from "react"; import { createPortal } from "react-dom"; /** * A simple Tooltip component that shows tooltip text center below children on hover and on focus * * @example * <Tooltip text="Tooltip Text"> * <div>Hello</div> * </Tooltip> */ export const Tooltip...
9,390
0
petrpan-code/xitanggg/open-resume/src/app
petrpan-code/xitanggg/open-resume/src/app/components/TopNavBar.tsx
"use client"; import { usePathname } from "next/navigation"; import Link from "next/link"; import Image from "next/image"; import logoSrc from "public/logo.svg"; import { cx } from "lib/cx"; export const TopNavBar = () => { const pathName = usePathname(); const isHomePage = pathName === "/"; return ( <heade...
9,391
0
petrpan-code/xitanggg/open-resume/src/app/components
petrpan-code/xitanggg/open-resume/src/app/components/Resume/ResumeControlBar.tsx
"use client"; import { useEffect } from "react"; import { useSetDefaultScale } from "components/Resume/hooks"; import { MagnifyingGlassIcon, ArrowDownTrayIcon, } from "@heroicons/react/24/outline"; import { usePDF } from "@react-pdf/renderer"; import dynamic from "next/dynamic"; const ResumeControlBar = ({ scale...
9,392
0
petrpan-code/xitanggg/open-resume/src/app/components
petrpan-code/xitanggg/open-resume/src/app/components/Resume/ResumeIFrame.tsx
"use client"; import { useMemo } from "react"; import Frame from "react-frame-component"; import { A4_HEIGHT_PX, A4_WIDTH_PX, A4_WIDTH_PT, LETTER_HEIGHT_PX, LETTER_WIDTH_PX, LETTER_WIDTH_PT, } from "lib/constants"; import dynamic from "next/dynamic"; import { getAllFontFamiliesToLoad } from "components/font...
9,393
0
petrpan-code/xitanggg/open-resume/src/app/components
petrpan-code/xitanggg/open-resume/src/app/components/Resume/hooks.tsx
import { useEffect, useState } from "react"; import { A4_HEIGHT_PX, LETTER_HEIGHT_PX } from "lib/constants"; import { getPxPerRem } from "lib/get-px-per-rem"; import { CSS_VARIABLES } from "globals-css"; /** * useSetDefaultScale sets the default scale of the resume on load. * * It computes the scale based on curren...
9,394
0
petrpan-code/xitanggg/open-resume/src/app/components
petrpan-code/xitanggg/open-resume/src/app/components/Resume/index.tsx
"use client"; import { useState, useMemo } from "react"; import { ResumeIframeCSR } from "components/Resume/ResumeIFrame"; import { ResumePDF } from "components/Resume/ResumePDF"; import { ResumeControlBarCSR, ResumeControlBarBorder, } from "components/Resume/ResumeControlBar"; import { FlexboxSpacer } from "compon...
9,395
0
petrpan-code/xitanggg/open-resume/src/app/components/Resume
petrpan-code/xitanggg/open-resume/src/app/components/Resume/ResumePDF/ResumePDFCustom.tsx
import { View } from "@react-pdf/renderer"; import { ResumePDFSection, ResumePDFBulletList, } from "components/Resume/ResumePDF/common"; import { styles } from "components/Resume/ResumePDF/styles"; import type { ResumeCustom } from "lib/redux/types"; export const ResumePDFCustom = ({ heading, custom, themeCo...
9,396
0
petrpan-code/xitanggg/open-resume/src/app/components/Resume
petrpan-code/xitanggg/open-resume/src/app/components/Resume/ResumePDF/ResumePDFEducation.tsx
import { View } from "@react-pdf/renderer"; import { ResumePDFBulletList, ResumePDFSection, ResumePDFText, } from "components/Resume/ResumePDF/common"; import { styles, spacing } from "components/Resume/ResumePDF/styles"; import type { ResumeEducation } from "lib/redux/types"; export const ResumePDFEducation = (...
9,397
0
petrpan-code/xitanggg/open-resume/src/app/components/Resume
petrpan-code/xitanggg/open-resume/src/app/components/Resume/ResumePDF/ResumePDFProfile.tsx
import { View } from "@react-pdf/renderer"; import { ResumePDFIcon, type IconType, } from "components/Resume/ResumePDF/common/ResumePDFIcon"; import { styles, spacing } from "components/Resume/ResumePDF/styles"; import { ResumePDFLink, ResumePDFSection, ResumePDFText, } from "components/Resume/ResumePDF/commo...
9,398
0
petrpan-code/xitanggg/open-resume/src/app/components/Resume
petrpan-code/xitanggg/open-resume/src/app/components/Resume/ResumePDF/ResumePDFProject.tsx
import { View } from "@react-pdf/renderer"; import { ResumePDFSection, ResumePDFBulletList, ResumePDFText, } from "components/Resume/ResumePDF/common"; import { styles, spacing } from "components/Resume/ResumePDF/styles"; import type { ResumeProject } from "lib/redux/types"; export const ResumePDFProject = ({ ...
9,399