repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
webhintio/webhintio.github.io
https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/docs/static/scripts/telemetry-4fb08e8fc8.js
docs/static/scripts/telemetry-4fb08e8fc8.js
"use strict";!function(){const t="webhint-activity",e=window.localStorage;let a=null,n=[],s=15e3,i={};const o=async()=>{a&&(clearTimeout(a),a=null);const t=JSON.stringify({product:"webhint-online-scanner",data:n});n=[];try{(async(t,e)=>await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:e}))("...
javascript
Apache-2.0
aa7c5de146fbd2cd131d9f501feb6292d9c131b0
2026-01-05T03:44:49.451963Z
false
webhintio/webhintio.github.io
https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/docs/static/scripts/i18n-3dae8fbb70.js
docs/static/scripts/i18n-3dae8fbb70.js
window.getMessage=function(r,n){var e=window.localeStrings&&window.localeStrings[r];return e?function(r,n){if(void 0===n)return r;var e=Array.isArray(n)?n:[n];return r.replace(/(\$(\d+))|(\${2,})/g,(function(r,n,t,i){return void 0!==t?e[parseInt(t,10)-1]:void 0!==i?"".padStart(i.length-1,"$"):r}))}(e.message,n):r};
javascript
Apache-2.0
aa7c5de146fbd2cd131d9f501feb6292d9c131b0
2026-01-05T03:44:49.451963Z
false
webhintio/webhintio.github.io
https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/docs/static/scripts/scanner-b71ef8cf4f.js
docs/static/scripts/scanner-b71ef8cf4f.js
!function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement}...
javascript
Apache-2.0
aa7c5de146fbd2cd131d9f501feb6292d9c131b0
2026-01-05T03:44:49.451963Z
false
webhintio/webhintio.github.io
https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/docs/static/scripts/scanner-finish-566bedc13e.js
docs/static/scripts/scanner-finish-566bedc13e.js
!function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement}...
javascript
Apache-2.0
aa7c5de146fbd2cd131d9f501feb6292d9c131b0
2026-01-05T03:44:49.451963Z
false
webhintio/webhintio.github.io
https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/docs/static/scripts/partials-0712985534.js
docs/static/scripts/partials-0712985534.js
window.ejsPartials=window.ejsPartials||{},window.ejsPartials["scan-result-item"]=function anonymous(locals,escapeFn,include,rethrow){escapeFn=escapeFn||function(e){return null==e?"":String(e).replace(_MATCH_HTML,encode_char)};var _ENCODE_HTML_RULES={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},_MATCH_HTML...
javascript
Apache-2.0
aa7c5de146fbd2cd131d9f501feb6292d9c131b0
2026-01-05T03:44:49.451963Z
false
webhintio/webhintio.github.io
https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/docs/static/scripts/common-0cfb479c53.js
docs/static/scripts/common-0cfb479c53.js
!function(){for(var e=document.querySelectorAll(".navbar__navitem .navitem__button.expandable"),t=document.querySelectorAll(".navbar__navitem .navbar__submenu"),n=function(e,t,n){for(var r=0;r<e.length;r++)e[r].setAttribute(t,n)},r=function(r){var a,i;r?(a=r.querySelectorAll(r.tagName.toLowerCase()+" .navbar__navitem ....
javascript
Apache-2.0
aa7c5de146fbd2cd131d9f501feb6292d9c131b0
2026-01-05T03:44:49.451963Z
false
webhintio/webhintio.github.io
https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/docs/static/scripts/highlight-dbd685f644.js
docs/static/scripts/highlight-dbd685f644.js
/*! highlight.js v9.12.0 | BSD3 License | git.io/hljslicense */
javascript
Apache-2.0
aa7c5de146fbd2cd131d9f501feb6292d9c131b0
2026-01-05T03:44:49.451963Z
true
webhintio/webhintio.github.io
https://github.com/webhintio/webhintio.github.io/blob/aa7c5de146fbd2cd131d9f501feb6292d9c131b0/docs/static/scripts/locales/en/messages-16f2452b17.js
docs/static/scripts/locales/en/messages-16f2452b17.js
window.localeStrings={backToTop:{description:"Aria label for the button to go top",message:"back to top"},capitalizedHints:{description:"Text for hints",message:"Hints"},closeAll:{description:"Close all button text",message:"close all"},configuartionJSON:{description:"Text for the link to the configuration used for the...
javascript
Apache-2.0
aa7c5de146fbd2cd131d9f501feb6292d9c131b0
2026-01-05T03:44:49.451963Z
false
mcollina/on-exit-leak-free
https://github.com/mcollina/on-exit-leak-free/blob/ee12087a620301825793e5258eb16545a30a10d5/index.js
index.js
'use strict' const refs = { exit: [], beforeExit: [] } const functions = { exit: onExit, beforeExit: onBeforeExit } let registry function ensureRegistry () { if (registry === undefined) { registry = new FinalizationRegistry(clear) } } function install (event) { if (refs[event].length > 0) { re...
javascript
MIT
ee12087a620301825793e5258eb16545a30a10d5
2026-01-05T03:44:49.154639Z
false
mcollina/on-exit-leak-free
https://github.com/mcollina/on-exit-leak-free/blob/ee12087a620301825793e5258eb16545a30a10d5/test/event-emitter-leak.test.js
test/event-emitter-leak.test.js
'use strict' const t = require('tap') const { register, unregister } = require('..') process.on('warning', () => { t.fail('warning emitted') }) const objs = [] for (let i = 0; i < 20; i++) { const obj = { i } objs.push(obj) register(obj, shutdown) } for (const obj of objs) { unregister(obj) } t.pass('com...
javascript
MIT
ee12087a620301825793e5258eb16545a30a10d5
2026-01-05T03:44:49.154639Z
false
mcollina/on-exit-leak-free
https://github.com/mcollina/on-exit-leak-free/blob/ee12087a620301825793e5258eb16545a30a10d5/test/base.test.js
test/base.test.js
'use strict' const { test } = require('tap') const { fork } = require('child_process') const { join } = require('path') const { once } = require('events') const { register } = require('..') const files = [ 'close.js', 'beforeExit', 'gc-not-close.js', 'unregister.js' ] for (const file of files) { test(file,...
javascript
MIT
ee12087a620301825793e5258eb16545a30a10d5
2026-01-05T03:44:49.154639Z
false
mcollina/on-exit-leak-free
https://github.com/mcollina/on-exit-leak-free/blob/ee12087a620301825793e5258eb16545a30a10d5/test/fixtures/beforeExit.js
test/fixtures/beforeExit.js
'use strict' const { unregister, registerBeforeExit } = require('../..') const assert = require('assert') function setup () { const obj = { foo: 'bar' } registerBeforeExit(obj, shutdown) } let shutdownCalled = false let timeoutFinished = false function shutdown (obj, event) { shutdownCalled = true if (event ...
javascript
MIT
ee12087a620301825793e5258eb16545a30a10d5
2026-01-05T03:44:49.154639Z
false
mcollina/on-exit-leak-free
https://github.com/mcollina/on-exit-leak-free/blob/ee12087a620301825793e5258eb16545a30a10d5/test/fixtures/unregister.js
test/fixtures/unregister.js
'use strict' const { register, unregister } = require('../..') const assert = require('assert') function setup () { const obj = { foo: 'bar' } register(obj, shutdown) setImmediate(function () { unregister(obj) unregister(obj) // twice, this should not throw }) } let shutdownCalled = false function sh...
javascript
MIT
ee12087a620301825793e5258eb16545a30a10d5
2026-01-05T03:44:49.154639Z
false
mcollina/on-exit-leak-free
https://github.com/mcollina/on-exit-leak-free/blob/ee12087a620301825793e5258eb16545a30a10d5/test/fixtures/close.js
test/fixtures/close.js
'use strict' const { register } = require('../..') const assert = require('assert') function setup () { const obj = { foo: 'bar' } register(obj, shutdown) } let shutdownCalled = false function shutdown (obj) { shutdownCalled = true assert.strictEqual(obj.foo, 'bar') } setup() process.on('exit', function ()...
javascript
MIT
ee12087a620301825793e5258eb16545a30a10d5
2026-01-05T03:44:49.154639Z
false
mcollina/on-exit-leak-free
https://github.com/mcollina/on-exit-leak-free/blob/ee12087a620301825793e5258eb16545a30a10d5/test/fixtures/gc-not-close.js
test/fixtures/gc-not-close.js
'use strict' const { register } = require('../..') const assert = require('assert') function setup () { let obj = { foo: 'bar' } register(obj, shutdown) setImmediate(function () { obj = undefined gc() // eslint-disable-line }) } let shutdownCalled = false function shutdown (obj) { shutdownCalled = ...
javascript
MIT
ee12087a620301825793e5258eb16545a30a10d5
2026-01-05T03:44:49.154639Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/.stylelintrc.js
.stylelintrc.js
module.exports = { extends: ['stylelint-config-recommended'], rules: { indentation: 2, 'max-empty-lines': 2, 'no-empty-first-line': true, }, }
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/.eslintrc.js
.eslintrc.js
module.exports = { env: { browser: true, es6: true, node: true, jest: true, mocha: true, }, extends: [ 'eslint:recommended', 'plugin:react/recommended', 'plugin:prettier/recommended', 'plugin:jest/recommended', 'plugin:wdio/recommended', ], globals: { Atomics: 'read...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/babel.config.js
babel.config.js
module.exports = { presets: ['@babel/preset-env', '@babel/react'], plugins: ['@babel/transform-runtime'], }
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/.prettierrc.js
.prettierrc.js
module.exports = { trailingComma: 'es5', tabWidth: 2, semi: false, singleQuote: true, jsxBracketSameLine: true, jsxSingleQuote: true, }
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/rollup.config.js
rollup.config.js
import peerDepsExternal from 'rollup-plugin-peer-deps-external' import babel from '@rollup/plugin-babel' import { terser } from 'rollup-plugin-terser' export default { external: [ 'react', 'react-dom', 'prop-types', 'material-design-icons', 'bulma', ], input: 'src/index.js', output: { f...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/jest.config.js
jest.config.js
module.exports = { coverageDirectory: 'coverage', collectCoverage: true, setupFilesAfterEnv: ['./setupTests.js'], testMatch: ['**/__tests__/**/*spec.js?(x)'], testPathIgnorePatterns: ['/node_modules/', '/example/'], verbose: true, }
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/setupTests.js
setupTests.js
import { configure } from 'enzyme' import Adapter from 'enzyme-adapter-react-16' configure({ adapter: new Adapter() })
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/index.js
src/index.js
import React from 'react' import PropTypes from 'prop-types' import PDF from './components/RenderPdf' import Navigation from './components/NavigationBar' import Loader from './components/Loader' class PDFViewer extends React.Component { constructor(props) { super(props) this.state = { page: this.props....
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/RenderPdf.js
src/components/RenderPdf.js
import React, { useState, useEffect, useRef } from 'react' import PropTypes from 'prop-types' import * as pdfjs from 'pdfjs-dist' import pdfjsWorker from 'pdfjs-dist/build/pdf.worker.entry' import Alert from './Alert' pdfjs.GlobalWorkerOptions.workerSrc = pdfjsWorker function usePrevious(value) { const ref = useRe...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/Loader.js
src/components/Loader.js
import React from 'react' const loader = { display: 'inline-block', verticalAlign: 'text-bottom', backgroundColor: 'currentColor', borderRadius: '50%', width: '0.5rem', height: '0.5rem', } const Loader = () => ( <div className='m-4 is-flex is-flex-direction-row is-justify-content-center is-align-content...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/Alert.js
src/components/Alert.js
import React from 'react' import PropTypes from 'prop-types' const Alert = ({ message }) => ( <div className='columns has-text-danger mt-2 is-mobile'> <div className='column is-4 has-text-right p-2'> <span className='icon'> <i className='material-icons'>error_outline</i> </span> </div> ...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/NavigationBar.js
src/components/NavigationBar.js
import React from 'react' import PropTypes from 'prop-types' import NextPageButton from './navigationComponents/NextPageButton' import PageIndicator from './navigationComponents/PageIndicator' import PreviousPageButton from './navigationComponents/PreviousPageButton' import ZoomIn from './navigationComponents/ZoomIn' i...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/navigationComponents/RotateRight.js
src/components/navigationComponents/RotateRight.js
import React from 'react' import PropTypes from 'prop-types' const RotateRight = ({ css, rotationAngle, handleRotateRight }) => { const rotateRightClass = css || 'button is-black my-0 mx-3' if (rotationAngle === 90) { return ( <button className={rotateRightClass} disabled> <span className='icon ...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/navigationComponents/ResetZoom.js
src/components/navigationComponents/ResetZoom.js
import React from 'react' import PropTypes from 'prop-types' const ResetZoom = ({ css, scale, defaultScale, handleResetZoom }) => { const resetZoomClass = css || 'button is-black my-0 mx-3' if (scale.toFixed(2) === defaultScale.toFixed(2)) { return ( <button className={resetZoomClass} disabled> ...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/navigationComponents/RotateLeft.js
src/components/navigationComponents/RotateLeft.js
import React from 'react' import PropTypes from 'prop-types' const RotateLeft = ({ css, rotationAngle, handleRotateLeft }) => { const rotateLeftClass = css || 'button is-black my-0 mx-3' if (rotationAngle === -90) { return ( <button className={rotateLeftClass} disabled> <span className='icon is-...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/navigationComponents/ZoomIn.js
src/components/navigationComponents/ZoomIn.js
import React from 'react' import PropTypes from 'prop-types' const ZoomIn = ({ css, scale, defaultScale, maxScale, handleZoomIn }) => { const zoomInClass = css || 'button is-black my-0 mx-3' let checkScale = maxScale if (defaultScale > maxScale) { checkScale = defaultScale } if (scale.toFixed(2) === ch...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/navigationComponents/ResetRotation.js
src/components/navigationComponents/ResetRotation.js
import React from 'react' import PropTypes from 'prop-types' const ResetRotation = ({ css, rotationAngle, handleResetRotation }) => { const resetRotationClass = css || 'button is-black my-0 mx-3' if (rotationAngle === 0) { return ( <button className={resetRotationClass} disabled> <span className...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/navigationComponents/PageIndicator.js
src/components/navigationComponents/PageIndicator.js
import React from 'react' import PropTypes from 'prop-types' const PageIndicator = ({ css, page, pages }) => { const pagesClass = css || 'is-size-7 has-text-centered my-0 mx-3' return <span className={pagesClass}>{`Page ${page} / ${pages}`}</span> } PageIndicator.propTypes = { css: PropTypes.string, page: Pr...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/navigationComponents/NextPageButton.js
src/components/navigationComponents/NextPageButton.js
import React from 'react' import PropTypes from 'prop-types' const NextPageButton = ({ css, page, pages, handleNextClick }) => { const nextClass = css || 'button is-black my-0 mx-3' if (page === pages) { return ( <button className={nextClass} disabled> <span className='icon is-small'> ...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/navigationComponents/ZoomOut.js
src/components/navigationComponents/ZoomOut.js
import React from 'react' import PropTypes from 'prop-types' const ZoomOut = ({ css, scale, defaultScale, minScale, handleZoomOut }) => { const zoomOutClass = css || 'button is-black my-0 mx-3' let checkScale = minScale if (defaultScale < minScale) { checkScale = defaultScale } if (scale.toFixed(2) ===...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/navigationComponents/PreviousPageButton.js
src/components/navigationComponents/PreviousPageButton.js
import React from 'react' import PropTypes from 'prop-types' const PreviousPageButton = ({ css, page, handlePrevClick }) => { const prevClass = css || 'button is-black my-0 mx-3' if (page === 1) { return ( <button className={prevClass} disabled> <span className='icon is-small'> <i clas...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/navigationComponents/__tests__/ZoomOut.spec.js
src/components/navigationComponents/__tests__/ZoomOut.spec.js
import React from 'react' import { shallow } from 'enzyme' import ZoomOut from '../ZoomOut' describe('Zoom Out Button', () => { const scale = 5 const minScale = 1 const css = 'custom-class' const mockFn = jest.fn() it('Should display the "Zoom Out" Icon', () => { const btn = shallow( <ZoomOut ...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/navigationComponents/__tests__/ResetRotation.spec.js
src/components/navigationComponents/__tests__/ResetRotation.spec.js
import React from 'react' import { shallow } from 'enzyme' import ResetRotation from '../ResetRotation' describe('Reset Rotation Button', () => { const rotationAngle = 10 const css = 'custom-class' const mockFn = jest.fn() it('Should display the "Reset" Icon', () => { const btn = shallow( <ResetRota...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/navigationComponents/__tests__/PreviousPageButton.spec.js
src/components/navigationComponents/__tests__/PreviousPageButton.spec.js
import React from 'react' import { shallow } from 'enzyme' import PreviousPageButton from '../PreviousPageButton' describe('Previous Page Button', () => { const page = 10 const css = 'custom-class' const mockFn = jest.fn() it('Should display the "Left Arrow" Icon', () => { const btn = shallow( <Prev...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/navigationComponents/__tests__/ResetZoom.spec.js
src/components/navigationComponents/__tests__/ResetZoom.spec.js
import React from 'react' import { shallow } from 'enzyme' import ResetZoom from '../ResetZoom' describe('Reset Zoom Button', () => { const scale = 10 const defaultScale = 5 const css = 'custom-class' const mockFn = jest.fn() it('Should display the "Reset" Icon', () => { const btn = shallow( <Rese...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/navigationComponents/__tests__/ZoomIn.spec.js
src/components/navigationComponents/__tests__/ZoomIn.spec.js
import React from 'react' import { shallow } from 'enzyme' import ZoomIn from '../ZoomIn' describe('Zoom In Button', () => { const scale = 5 const maxScale = 10 const css = 'custom-class' const mockFn = jest.fn() it('Should display the "Zoom In" Icon', () => { const btn = shallow( <ZoomIn ...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/navigationComponents/__tests__/RotateRight.spec.js
src/components/navigationComponents/__tests__/RotateRight.spec.js
import React from 'react' import { shallow } from 'enzyme' import RotateRight from '../RotateRight' describe('Rotate Left Button', () => { const rotationAngle = 10 const css = 'custom-class' const mockFn = jest.fn() it('Should display the "Rotate Right" Icon', () => { const btn = shallow( <RotateRi...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/navigationComponents/__tests__/PageIndicator.spec.js
src/components/navigationComponents/__tests__/PageIndicator.spec.js
import React from 'react' import { shallow } from 'enzyme' import PageIndicator from '../PageIndicator' describe('Page Indicator', () => { const page = 10 const css = 'custom-class' it('Should display page details', () => { const indicator = shallow(<PageIndicator page={page} pages={page} />) expect(ind...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/navigationComponents/__tests__/RotateLeft.spec.js
src/components/navigationComponents/__tests__/RotateLeft.spec.js
import React from 'react' import { shallow } from 'enzyme' import RotateLeft from '../RotateLeft' describe('Rotate Left Button', () => { const rotationAngle = 10 const css = 'custom-class' const mockFn = jest.fn() it('Should display the "Rotate Left" Icon', () => { const btn = shallow( <RotateLeft ...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/navigationComponents/__tests__/NextPageButton.spec.js
src/components/navigationComponents/__tests__/NextPageButton.spec.js
import React from 'react' import { shallow } from 'enzyme' import NextPageButton from '../NextPageButton' describe('Next Page Button', () => { const page = 1 const pages = 10 const css = 'custom-class' const mockFn = jest.fn() it('Should display the "Right Arrow" Icon', () => { const btn = shallow( ...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/__tests__/Loader.spec.js
src/components/__tests__/Loader.spec.js
import React from 'react' import renderer from 'react-test-renderer' import { shallow } from 'enzyme' import Loader from '../Loader' describe('Loader', () => { it('Should render correctly', () => { const tree = renderer.create(<Loader />).toJSON() expect(tree).toMatchSnapshot() }) it('Should display the...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/__tests__/NavigationBar.spec.js
src/components/__tests__/NavigationBar.spec.js
import React from 'react' import renderer from 'react-test-renderer' import { shallow } from 'enzyme' import Navigation from '../NavigationBar' describe('Navigation Bar', () => { const mockFn = jest.fn() it('Should render correctly', () => { const tree = renderer .create( <Navigation p...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/src/components/__tests__/Alert.spec.js
src/components/__tests__/Alert.spec.js
import React from 'react' import { shallow } from 'enzyme' import Alert from '../Alert' describe('Alert', () => { const errMsg = 'error msg for alert' it('Should display the Error Message', () => { const alert = shallow(<Alert message={errMsg} />) expect(alert.text()).toEqual(`error_outline${errMsg}`) }...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/example/wdio.conf.local.js
example/wdio.conf.local.js
exports.config = { runner: 'local', specs: ['./test/specs/**/*.js'], exclude: [], maxInstances: 10, capabilities: [ { maxInstances: 5, browserName: 'chrome', acceptInsecureCerts: true, }, ], logLevel: 'warn', // Level of logging verbosity: trace | debug | info | warn | error | si...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/example/wdio.conf.js
example/wdio.conf.js
exports.config = { user: process.env.BROWSERSTACK_USERNAME, key: process.env.BROWSERSTACK_ACCESS_KEY, runner: 'local', specs: ['./test/specs/**/*.js'], exclude: [], maxInstances: 10, capabilities: [ { 'bstack:options': { projectName: 'PDF-Viewer-reactjs example test', os: 'Window...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/example/src/Navigation.js
example/src/Navigation.js
import React from 'react' import PropTypes from 'prop-types' export const CustomPrevButton = (props) => { const { page, handlePrevClick } = props if (page === 1) return <div /> return ( <h3 style={{ cursor: 'pointer', display: 'inline-block', marginRight: 24, marginTop:...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/example/src/index.js
example/src/index.js
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import App from './App' import registerServiceWorker from './registerServiceWorker' ReactDOM.render(<App />, document.getElementById('root')) registerServiceWorker()
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/example/src/Sources.js
example/src/Sources.js
export default { url: 'https://arxiv.org/pdf/quant-ph/0410100.pdf', base64: 'JVBERi0xLjMNJeLjz9MNCjcgMCBvYmoNPDwvTGluZWFyaXplZCAxL0wgNzk0NS9PIDkvRSAzNTI0L04gMS9UIDc2NTYvSCBbIDQ1MSAxMzddPj4NZW5kb2JqDSAgICAgICAgICAgICAgICAgICAgICAgDQoxMyAwIG9iag08PC9EZWNvZGVQYXJtczw8L0NvbHVtbnMgNC9QcmVkaWN0b3IgMTI+Pi9GaWx0ZXIvRmx...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/example/src/App.js
example/src/App.js
import React, { useState } from 'react' import PDFViewer from 'pdf-viewer-reactjs' import CustomNavigation from './Navigation' import sources from './Sources' import './App.css' const minScale = 0.5 const maxScale = 3 const FromUrl = () => ( <div className='column has-text-centered' id='url'> <div className='...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/example/src/registerServiceWorker.js
example/src/registerServiceWorker.js
// In production, we register a service worker to serve assets from local cache. // This lets the app load faster on subsequent visits in production, and gives // it offline capabilities. However, it also means that developers (and users) // will only see deployed updates on the "N+1" visit to a page, since previously...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/example/src/__tests__/App.spec.js
example/src/__tests__/App.spec.js
import React from 'react' import renderer from 'react-test-renderer' import App from '../App' describe('App', () => { it('Should render correctly', () => { const tree = renderer.create(<App />).toJSON() expect(tree).toMatchSnapshot() }) })
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/example/test/pageobjects/app.page.js
example/test/pageobjects/app.page.js
class AppPage { constructor() { this.title = 'pdf-viewer-reactjs example' } open() { browser.url('/') } wait(second) { browser.pause(second * 1000) } /** * @param {string} id */ set section(id) { this.selectedSection = `#${id}` } get section() { return $(this.selectedSe...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/example/test/specs/app.e2e.js
example/test/specs/app.e2e.js
const AppPage = require('../pageobjects/app.page') describe('Example App for "pdf-viewer-reactjs"', () => { before(() => { AppPage.open() }) describe('"Custom loader element" section', () => { before(() => { AppPage.section = 'cl' }) it('Should be displayed', () => { expect(AppPage....
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
ansu5555/pdf-viewer-reactjs
https://github.com/ansu5555/pdf-viewer-reactjs/blob/3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba/dist/pdf-viewer-reactjs.js
dist/pdf-viewer-reactjs.js
"use strict";var e=require("@babel/runtime/helpers/typeof"),t=require("@babel/runtime/helpers/classCallCheck"),a=require("@babel/runtime/helpers/createClass"),n=require("@babel/runtime/helpers/assertThisInitialized"),l=require("@babel/runtime/helpers/inherits"),s=require("@babel/runtime/helpers/possibleConstructorRetur...
javascript
MIT
3907cc4de70b9c20acf5f2eac40fc4bdbf20f9ba
2026-01-05T03:44:48.875764Z
false
coreh/hookshot
https://github.com/coreh/hookshot/blob/65df5b5ba3422736cf0d5dce9a8b9828c4705ae8/lib/index.js
lib/index.js
var bodyParser = require('body-parser'); var normalize = require('path').normalize; var spawn = require('child_process').spawn; var express = require('express'); module.exports = function (ref, action) { // create express instance var hookshot = express(); // middleware hookshot.use(bodyParser.urlencoded({ e...
javascript
MIT
65df5b5ba3422736cf0d5dce9a8b9828c4705ae8
2026-01-05T03:44:59.085822Z
false
mykola-mokhnach/Appium-iOS-Inspector
https://github.com/mykola-mokhnach/Appium-iOS-Inspector/blob/0a3c6992477a12958273f61ffb9cc29a724c8f74/iOS Inspector_files/prettify.js
iOS Inspector_files/prettify.js
!function(){var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; (function(){function S(a){function d(e){var b=e.charCodeAt(0);if(b!==92)return b;var a=e.charAt(1);return(b=r[a])?b:"0"<=a&&a<="7"?parseInt(e.substring(1),8):a==="u"||a==="x"?parseInt(e.substring(2),16):e.charCodeAt(1)}function g(e){if(e<32)return(e<16?"\\x0"...
javascript
Apache-2.0
0a3c6992477a12958273f61ffb9cc29a724c8f74
2026-01-05T03:44:59.942213Z
false
mykola-mokhnach/Appium-iOS-Inspector
https://github.com/mykola-mokhnach/Appium-iOS-Inspector/blob/0a3c6992477a12958273f61ffb9cc29a724c8f74/iOS Inspector_files/ide.js
iOS Inspector_files/ide.js
/* * Copyright 2012-2014 eBay Software Foundation, ios-driver and selendroid committers. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the Licence at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
javascript
Apache-2.0
0a3c6992477a12958273f61ffb9cc29a724c8f74
2026-01-05T03:44:59.942213Z
false
mykola-mokhnach/Appium-iOS-Inspector
https://github.com/mykola-mokhnach/Appium-iOS-Inspector/blob/0a3c6992477a12958273f61ffb9cc29a724c8f74/iOS Inspector_files/inspector1.js
iOS Inspector_files/inspector1.js
/* * Copyright 2012-2014 eBay Software Foundation, ios-driver and selendroid committers. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
javascript
Apache-2.0
0a3c6992477a12958273f61ffb9cc29a724c8f74
2026-01-05T03:44:59.942213Z
false
mykola-mokhnach/Appium-iOS-Inspector
https://github.com/mykola-mokhnach/Appium-iOS-Inspector/blob/0a3c6992477a12958273f61ffb9cc29a724c8f74/iOS Inspector_files/jquery_003.js
iOS Inspector_files/jquery_003.js
/* * jQuery XPath plugin v0.2.3 * https://github.com/ilinsky/jquery-xpath * Copyright 2013, Sergey Ilinsky * Dual licensed under the MIT and GPL licenses. * * Includes xpath.js - XPath 2.0 implementation in JavaScript * https://github.com/ilinsky/xpath.js * Copyright 2013, Sergey Ilinsky * Dual licensed under ...
javascript
Apache-2.0
0a3c6992477a12958273f61ffb9cc29a724c8f74
2026-01-05T03:44:59.942213Z
true
mykola-mokhnach/Appium-iOS-Inspector
https://github.com/mykola-mokhnach/Appium-iOS-Inspector/blob/0a3c6992477a12958273f61ffb9cc29a724c8f74/iOS Inspector_files/Logger.js
iOS Inspector_files/Logger.js
/* * Copyright 2012-2014 eBay Software Foundation, ios-driver and selendroid committers. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
javascript
Apache-2.0
0a3c6992477a12958273f61ffb9cc29a724c8f74
2026-01-05T03:44:59.942213Z
false
mykola-mokhnach/Appium-iOS-Inspector
https://github.com/mykola-mokhnach/Appium-iOS-Inspector/blob/0a3c6992477a12958273f61ffb9cc29a724c8f74/iOS Inspector_files/jquery-ui-1.js
iOS Inspector_files/jquery-ui-1.js
/*! jQuery UI - v1.10.2 - 2013-03-28 * http://jqueryui.com * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.accordion.js, jquery.ui.autocomplete...
javascript
Apache-2.0
0a3c6992477a12958273f61ffb9cc29a724c8f74
2026-01-05T03:44:59.942213Z
true
mykola-mokhnach/Appium-iOS-Inspector
https://github.com/mykola-mokhnach/Appium-iOS-Inspector/blob/0a3c6992477a12958273f61ffb9cc29a724c8f74/iOS Inspector_files/jquery.js
iOS Inspector_files/jquery.js
/* jquery.layout 1.3.0 - Release Candidate 30.79 $Date: 2013-01-01 08:00:00 (Tue, 1 Jan 2013) $ $Rev: 303007 $ Copyright (c) 2013 Kevin Dalman (http://allpro.net) Based on work by Fabrizio Balliano (http://www.fabrizioballiano.net) Dual licensed under the GPL (http://www.gnu.org/licenses/gpl.html) and MIT (htt...
javascript
Apache-2.0
0a3c6992477a12958273f61ffb9cc29a724c8f74
2026-01-05T03:44:59.942213Z
true
mykola-mokhnach/Appium-iOS-Inspector
https://github.com/mykola-mokhnach/Appium-iOS-Inspector/blob/0a3c6992477a12958273f61ffb9cc29a724c8f74/iOS Inspector_files/uiactions.js
iOS Inspector_files/uiactions.js
/* * Copyright 2012-2014 eBay Software Foundation, ios-driver and selendroid committers. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
javascript
Apache-2.0
0a3c6992477a12958273f61ffb9cc29a724c8f74
2026-01-05T03:44:59.942213Z
false
mykola-mokhnach/Appium-iOS-Inspector
https://github.com/mykola-mokhnach/Appium-iOS-Inspector/blob/0a3c6992477a12958273f61ffb9cc29a724c8f74/iOS Inspector_files/inspector.js
iOS Inspector_files/inspector.js
/* * Copyright 2012-2014 eBay Software Foundation, ios-driver and selendroid committers. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
javascript
Apache-2.0
0a3c6992477a12958273f61ffb9cc29a724c8f74
2026-01-05T03:44:59.942213Z
false
mykola-mokhnach/Appium-iOS-Inspector
https://github.com/mykola-mokhnach/Appium-iOS-Inspector/blob/0a3c6992477a12958273f61ffb9cc29a724c8f74/iOS Inspector_files/jquery_002.js
iOS Inspector_files/jquery_002.js
/* * jsTree 1.0-rc3 * http://jstree.com/ * * Copyright (c) 2010 Ivan Bozhanov (vakata.com) * * Licensed same as jquery - under the terms of either the MIT License or the GPL Version 2 License * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * $Date: 2011-02-09 ...
javascript
Apache-2.0
0a3c6992477a12958273f61ffb9cc29a724c8f74
2026-01-05T03:44:59.942213Z
true
mykola-mokhnach/Appium-iOS-Inspector
https://github.com/mykola-mokhnach/Appium-iOS-Inspector/blob/0a3c6992477a12958273f61ffb9cc29a724c8f74/iOS Inspector_files/jquery-1.js
iOS Inspector_files/jquery-1.js
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { // Can't do t...
javascript
Apache-2.0
0a3c6992477a12958273f61ffb9cc29a724c8f74
2026-01-05T03:44:59.942213Z
true
sindresorhus/username
https://github.com/sindresorhus/username/blob/81eb6d86579592969e32d798d3fd660720450d3b/test-fallback.js
test-fallback.js
import process from 'node:process'; import os from 'node:os'; import test from 'ava'; import {username, usernameSync} from './index.js'; // Remove `os.userInfo()` and reset ENV flags to avoid them taking precedence delete os.userInfo; process.env.LOGNAME = ''; process.env.USER = ''; process.env.LNAME = ''; process.env...
javascript
MIT
81eb6d86579592969e32d798d3fd660720450d3b
2026-01-05T03:45:04.894143Z
false
sindresorhus/username
https://github.com/sindresorhus/username/blob/81eb6d86579592969e32d798d3fd660720450d3b/index.js
index.js
import process from 'node:process'; import os from 'node:os'; import {execa, execaSync} from 'execa'; import memoize from 'memoize'; const getEnvironmentVariable = () => { const {env} = process; return ( env.SUDO_USER || env.C9_USER // Cloud9 || env.LOGNAME || env.USER || env.LNAME || env.USERNAME ); }...
javascript
MIT
81eb6d86579592969e32d798d3fd660720450d3b
2026-01-05T03:45:04.894143Z
false
sindresorhus/username
https://github.com/sindresorhus/username/blob/81eb6d86579592969e32d798d3fd660720450d3b/test.js
test.js
import process from 'node:process'; import test from 'ava'; import {username, usernameSync} from './index.js'; test.serial('username()', async t => { process.env.LOGNAME = 'unicorn'; t.is(await username(), 'unicorn'); }); test.serial('username.sync()', t => { process.env.LOGNAME = 'unicorn2'; t.is(usernameSync(),...
javascript
MIT
81eb6d86579592969e32d798d3fd660720450d3b
2026-01-05T03:45:04.894143Z
false
sindresorhus/username
https://github.com/sindresorhus/username/blob/81eb6d86579592969e32d798d3fd660720450d3b/test-userinfo.js
test-userinfo.js
import process from 'node:process'; import os from 'node:os'; import test from 'ava'; import {username, usernameSync} from './index.js'; process.env.LOGNAME = ''; process.env.USER = ''; process.env.LNAME = ''; process.env.USERNAME = ''; test.serial('username()', async t => { os.userInfo = () => ({username: 'unicorn'...
javascript
MIT
81eb6d86579592969e32d798d3fd660720450d3b
2026-01-05T03:45:04.894143Z
false
vukicevic/crunch
https://github.com/vukicevic/crunch/blob/1ce63424bea66ff4df2dccb51e0fcb605269a9ce/crunch.js
crunch.js
/** * Crunch - Arbitrary-precision integer arithmetic library * Copyright (C) 2014 Nenad Vukicevic crunch.secureroom.net/license */ /** * @module Crunch * Radix: 28 bits * Endianness: Big * * @param {boolean} rawIn - expect 28-bit arrays * @param {boolean} rawOut - return 28-bit arrays */ function Crunch ...
javascript
MIT
1ce63424bea66ff4df2dccb51e0fcb605269a9ce
2026-01-05T03:45:06.638710Z
false
vukicevic/crunch
https://github.com/vukicevic/crunch/blob/1ce63424bea66ff4df2dccb51e0fcb605269a9ce/test/crunch.js
test/crunch.js
var should = require("should"), crunch = require("../crunch"); describe("#compare", function () { it("Should confirm equality", function () { var x = [5, 57, 84, 76], y = [5, 57, 84, 76]; crunch.compare(x, y).should.equal(0); x.should.eql([5, 57, 84, 76]); y.should.eql([5, 57, 84, 76])...
javascript
MIT
1ce63424bea66ff4df2dccb51e0fcb605269a9ce
2026-01-05T03:45:06.638710Z
true
MariaNattestad/Assemblytics
https://github.com/MariaNattestad/Assemblytics/blob/c4f503faba0b42a3d68631dbdaf4b1ca6d73eddc/public/js/jquery.min.js
public/js/jquery.min.js
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
javascript
MIT
c4f503faba0b42a3d68631dbdaf4b1ca6d73eddc
2026-01-05T03:44:56.953480Z
true
MariaNattestad/Assemblytics
https://github.com/MariaNattestad/Assemblytics/blob/c4f503faba0b42a3d68631dbdaf4b1ca6d73eddc/public/js/dropzone.js
public/js/dropzone.js
/* * * More info at [www.dropzonejs.com](http://www.dropzonejs.com) * * Copyright (c) 2012, Matias Meno * * 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, includi...
javascript
MIT
c4f503faba0b42a3d68631dbdaf4b1ca6d73eddc
2026-01-05T03:44:56.953480Z
true
MariaNattestad/Assemblytics
https://github.com/MariaNattestad/Assemblytics/blob/c4f503faba0b42a3d68631dbdaf4b1ca6d73eddc/public/js/analysis_page_script.js
public/js/analysis_page_script.js
var analysis_path="analysis.php?code="; ////////////////////////////////////////////////////////////// /////// For analysis page: ////////////////////////////////////////////////////////////// function showProgress() { var run_id_code=getUrlVars()["code"]; var prog=0; // Check for progress and show it to...
javascript
MIT
c4f503faba0b42a3d68631dbdaf4b1ca6d73eddc
2026-01-05T03:44:56.953480Z
false
MariaNattestad/Assemblytics
https://github.com/MariaNattestad/Assemblytics/blob/c4f503faba0b42a3d68631dbdaf4b1ca6d73eddc/public/js/d3.v3.min.js
public/js/d3.v3.min.js
!function(){function n(n){return n&&(n.ownerDocument||n.document||n).documentElement}function t(n){return n&&(n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView)}function e(n,t){return t>n?-1:n>t?1:n>=t?0:0/0}function r(n){return null===n?0/0:+n}function u(n){return!isNaN(n)}function i(n){return...
javascript
MIT
c4f503faba0b42a3d68631dbdaf4b1ca6d73eddc
2026-01-05T03:44:56.953480Z
true
MariaNattestad/Assemblytics
https://github.com/MariaNattestad/Assemblytics/blob/c4f503faba0b42a3d68631dbdaf4b1ca6d73eddc/public/js/interactive_dotplot.js
public/js/interactive_dotplot.js
function getUrlVars() { var vars = {}; var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) { vars[key] = value; }); return vars; } var run_id_code=getUrlVars()["code"]; var directory="user_data/" + run_id_code + "/"; var nickname=getUrlVars()["nickname"...
javascript
MIT
c4f503faba0b42a3d68631dbdaf4b1ca6d73eddc
2026-01-05T03:44:56.953480Z
false
MariaNattestad/Assemblytics
https://github.com/MariaNattestad/Assemblytics/blob/c4f503faba0b42a3d68631dbdaf4b1ca6d73eddc/public/js/front_page_script.js
public/js/front_page_script.js
var analysis_path="analysis.php?code=" ////////////////////////////////////////////////////////////// /////// For index page: ////////////////////////////////////////////////////////////// function makeid() { var text = ""; var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; ...
javascript
MIT
c4f503faba0b42a3d68631dbdaf4b1ca6d73eddc
2026-01-05T03:44:56.953480Z
false
MariaNattestad/Assemblytics
https://github.com/MariaNattestad/Assemblytics/blob/c4f503faba0b42a3d68631dbdaf4b1ca6d73eddc/public/js/bootstrap.min.js
public/js/bootstrap.min.js
/*! * Bootstrap v3.2.0 (http://getbootstrap.com) * Copyright 2011-2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";function b(){var a=document.createEle...
javascript
MIT
c4f503faba0b42a3d68631dbdaf4b1ca6d73eddc
2026-01-05T03:44:56.953480Z
false
MariaNattestad/Assemblytics
https://github.com/MariaNattestad/Assemblytics/blob/c4f503faba0b42a3d68631dbdaf4b1ca6d73eddc/public/js/render_queue.js
public/js/render_queue.js
var renderQueue = (function(func) { var _queue = [], // data to be rendered _rate = 1000, // number of calls per frame _invalidate = function() {}, // invalidate last render queue _clear = function() {}; // clearing function var rq = function(data) { if...
javascript
MIT
c4f503faba0b42a3d68631dbdaf4b1ca6d73eddc
2026-01-05T03:44:56.953480Z
false
iondrimba/pwa-music-player
https://github.com/iondrimba/pwa-music-player/blob/2c0ae3151a963241c165e08c0f118ca720ac3b7e/workbox-config.js
workbox-config.js
module.exports = { globDirectory: 'public/', globPatterns: [ '**/*.{png,xml,ico,html,json,txt,svg,js}' ], swDest: 'public/service-worker.js', ignoreURLParametersMatching: [ /^utm_/, /^fbclid$/ ] };
javascript
MIT
2c0ae3151a963241c165e08c0f118ca720ac3b7e
2026-01-05T03:45:09.977208Z
false
iondrimba/pwa-music-player
https://github.com/iondrimba/pwa-music-player/blob/2c0ae3151a963241c165e08c0f118ca720ac3b7e/src/index.js
src/index.js
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app'; import * as serviceWorker from './serviceWorker'; window.AudioContext = window.AudioContext || window.webkitAudioContext; if (window.AudioContext) { window.audioContext = new window.AudioContext(); } ReactDOM.render(<App audioCon...
javascript
MIT
2c0ae3151a963241c165e08c0f118ca720ac3b7e
2026-01-05T03:45:09.977208Z
false
iondrimba/pwa-music-player
https://github.com/iondrimba/pwa-music-player/blob/2c0ae3151a963241c165e08c0f118ca720ac3b7e/src/serviceWorker.js
src/serviceWorker.js
// This optional code is used to register a service worker. // register() is not called by default. // This lets the app load faster on subsequent visits in production, and gives // it offline capabilities. However, it also means that developers (and users) // will only see deployed updates on subsequent visits to a p...
javascript
MIT
2c0ae3151a963241c165e08c0f118ca720ac3b7e
2026-01-05T03:45:09.977208Z
false
iondrimba/pwa-music-player
https://github.com/iondrimba/pwa-music-player/blob/2c0ae3151a963241c165e08c0f118ca720ac3b7e/src/setupTests.js
src/setupTests.js
import { configure } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; configure({ adapter: new Adapter() });
javascript
MIT
2c0ae3151a963241c165e08c0f118ca720ac3b7e
2026-01-05T03:45:09.977208Z
false
iondrimba/pwa-music-player
https://github.com/iondrimba/pwa-music-player/blob/2c0ae3151a963241c165e08c0f118ca720ac3b7e/src/app/index.spec.js
src/app/index.spec.js
import React from 'react'; import ReactDOM from 'react-dom'; import { shallow } from 'enzyme'; import Audio from '../helpers/audio'; import App from './index.js'; import mockTracks from '../data/mockTracks'; import mockPlaylistResponse from '../data/mockPlaylistResponse'; import { audioContext } from '../helpers/audio/...
javascript
MIT
2c0ae3151a963241c165e08c0f118ca720ac3b7e
2026-01-05T03:45:09.977208Z
false
iondrimba/pwa-music-player
https://github.com/iondrimba/pwa-music-player/blob/2c0ae3151a963241c165e08c0f118ca720ac3b7e/src/app/index.js
src/app/index.js
import React, { PureComponent, Suspense, lazy } from 'react'; import { createBrowserHistory } from 'history' import Home from '../pages/Home'; import percent from '../helpers/percent'; import Menu from '../components/Menu'; import Page from '../components/Page'; import Loader from '../components/Loader'; import Audio f...
javascript
MIT
2c0ae3151a963241c165e08c0f118ca720ac3b7e
2026-01-05T03:45:09.977208Z
false
iondrimba/pwa-music-player
https://github.com/iondrimba/pwa-music-player/blob/2c0ae3151a963241c165e08c0f118ca720ac3b7e/src/helpers/sleep/index.js
src/helpers/sleep/index.js
export default function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }
javascript
MIT
2c0ae3151a963241c165e08c0f118ca720ac3b7e
2026-01-05T03:45:09.977208Z
false
iondrimba/pwa-music-player
https://github.com/iondrimba/pwa-music-player/blob/2c0ae3151a963241c165e08c0f118ca720ac3b7e/src/helpers/classList/index.js
src/helpers/classList/index.js
const addClass = (elmnt, className) => { elmnt.classList.add(className) }; const removeClass = (elmnt, className) => { elmnt.classList.remove(className) }; export { addClass, removeClass }
javascript
MIT
2c0ae3151a963241c165e08c0f118ca720ac3b7e
2026-01-05T03:45:09.977208Z
false
iondrimba/pwa-music-player
https://github.com/iondrimba/pwa-music-player/blob/2c0ae3151a963241c165e08c0f118ca720ac3b7e/src/helpers/audio/index.spec.js
src/helpers/audio/index.spec.js
import Audio from '.'; import { audioContext } from './mock'; const buildAudio = () => new Audio(document.createElement('audio'), audioContext()); describe('Audio', () => { describe('constructor', () => { it('defines audio element', () => { const audio = buildAudio(); expect(audio.element).toBeDefi...
javascript
MIT
2c0ae3151a963241c165e08c0f118ca720ac3b7e
2026-01-05T03:45:09.977208Z
false
iondrimba/pwa-music-player
https://github.com/iondrimba/pwa-music-player/blob/2c0ae3151a963241c165e08c0f118ca720ac3b7e/src/helpers/audio/mock.js
src/helpers/audio/mock.js
const audioContext = () => { return { destination: {}, createAnalyser: () => { return { connect: () => { } } }, createMediaElementSource: (element) => { return { connect: () => { } } } }; }; export { audioContext };
javascript
MIT
2c0ae3151a963241c165e08c0f118ca720ac3b7e
2026-01-05T03:45:09.977208Z
false
iondrimba/pwa-music-player
https://github.com/iondrimba/pwa-music-player/blob/2c0ae3151a963241c165e08c0f118ca720ac3b7e/src/helpers/audio/index.js
src/helpers/audio/index.js
export default class Audio { constructor(element, audioCtx) { this.element = element; this.context = audioCtx; this.repeatPlayback = false; this._ended = this._ended.bind(this); this.stopHandler = () => {}; } _createAnalyser() { this.analyser = this.context.createAnalyser(); } _crea...
javascript
MIT
2c0ae3151a963241c165e08c0f118ca720ac3b7e
2026-01-05T03:45:09.977208Z
false
iondrimba/pwa-music-player
https://github.com/iondrimba/pwa-music-player/blob/2c0ae3151a963241c165e08c0f118ca720ac3b7e/src/helpers/timer/index.spec.js
src/helpers/timer/index.spec.js
import timer from '.'; describe('timer', () => { it('returns formatted time min:sec as string', () => { const seconds = 360; const result = timer(seconds); expect(result).toBe('06:00'); }); });
javascript
MIT
2c0ae3151a963241c165e08c0f118ca720ac3b7e
2026-01-05T03:45:09.977208Z
false
iondrimba/pwa-music-player
https://github.com/iondrimba/pwa-music-player/blob/2c0ae3151a963241c165e08c0f118ca720ac3b7e/src/helpers/timer/index.js
src/helpers/timer/index.js
const timer = (totalSeconds) => { const sec_num = parseInt(totalSeconds, 10); let hours = Math.floor(sec_num / 3600); let minutes = Math.floor((sec_num - (hours * 3600)) / 60); let seconds = sec_num - (hours * 3600) - (minutes * 60); if (minutes < 10) { minutes = "0" + minutes; } if (seconds < 10) { second...
javascript
MIT
2c0ae3151a963241c165e08c0f118ca720ac3b7e
2026-01-05T03:45:09.977208Z
false
iondrimba/pwa-music-player
https://github.com/iondrimba/pwa-music-player/blob/2c0ae3151a963241c165e08c0f118ca720ac3b7e/src/helpers/percent/index.spec.js
src/helpers/percent/index.spec.js
import percent from '.'; describe('percent', () => { it('calculates percentage value', () => { const current = 24.5; const total = 245; const result = percent(current, total); expect(result).toBe(10); }); });
javascript
MIT
2c0ae3151a963241c165e08c0f118ca720ac3b7e
2026-01-05T03:45:09.977208Z
false
iondrimba/pwa-music-player
https://github.com/iondrimba/pwa-music-player/blob/2c0ae3151a963241c165e08c0f118ca720ac3b7e/src/helpers/percent/index.js
src/helpers/percent/index.js
const percentage = (current, total) => { return (current / total) * 100 }; export default percentage;
javascript
MIT
2c0ae3151a963241c165e08c0f118ca720ac3b7e
2026-01-05T03:45:09.977208Z
false