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 |
|---|---|---|---|---|---|---|---|---|
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/lib/MPR/changeView.js | src/lib/MPR/changeView.js | import { computeSlicingMode } from './computeSlicingMode.js';
import { computeCamera } from './computeCamera.js';
// TODO: More than a few undefined here, and renderer is defined twice?
// NOTE: switched internal `renderer` to `rendererPrime` so eslint can parse
export function changeView(renderer, imageMapper, viewOr... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/lib/MPR/computeSlicingMode.js | src/lib/MPR/computeSlicingMode.js | import vtkImageMapper from 'vtk.js/Sources/Rendering/Core/ImageMapper';
function computeSlicingModeForAP(viewOrientation) {
switch (viewOrientation) {
case 'A':
case 'P':
return vtkImageMapper.SlicingMode.Y;
case 'I':
case 'S':
return vtkImageMapper.SlicingMode.Z;
case 'L':
case '... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/lib/MPR/index.js | src/lib/MPR/index.js | import { computeCamera } from './computeCamera.js';
import { computeSlicingMode } from './computeSlicingMode.js';
import { changeView } from './changeView.js';
import { computeIPP } from './computeIPP.js';
const MPR = {
computeCamera,
computeSlicingMode,
changeView,
computeIPP,
};
export { MPR };
| javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/lib/MPR/computeIPP.js | src/lib/MPR/computeIPP.js | /**
* Compute imagePositionPatient in each direction for each step along
* the x, y, and z directions in a volume.
*
* @param imageDataObject
* @return {{x: Array, y: Array, z: Array}}
*/
export function computeIPP(imageDataObject) {
const { metaData0, spacing, dimensions } = imageDataObject;
const x = [];
... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/lib/MPR/computeCamera.js | src/lib/MPR/computeCamera.js | function computeCameraForAP(viewOrientation, camera) {
switch (viewOrientation) {
case 'A':
case 'P':
camera.elevation(-90);
break;
case 'I':
case 'S':
camera.azimuth(180);
camera.roll(180);
break;
case 'L':
case 'R':
camera.azimuth(90);
camera.roll(-... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/VTKViewport/createLabelPipeline.js | src/VTKViewport/createLabelPipeline.js | import vtkImageData from 'vtk.js/Sources/Common/DataModel/ImageData';
import vtkDataArray from 'vtk.js/Sources/Common/Core/DataArray';
import vtkVolume from 'vtk.js/Sources/Rendering/Core/Volume';
import vtkVolumeMapper from 'vtk.js/Sources/Rendering/Core/VolumeMapper';
import vtkColorTransferFunction from 'vtk.js/Sour... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/VTKViewport/setGlobalOpacity.js | src/VTKViewport/setGlobalOpacity.js | export const setGlobalOpacity = (labelmap, colorLUT, opacity) => {
if (colorLUT) {
// TODO -> It seems to crash if you set it higher than 256??
const numColors = Math.min(256, colorLUT.length);
for (let i = 0; i < numColors; i++) {
//for (let i = 0; i < colorLUT.length; i++) {
const color = c... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/VTKViewport/vtkInteractorStyleMPRRotate.js | src/VTKViewport/vtkInteractorStyleMPRRotate.js | import macro from 'vtk.js/Sources/macro';
import vtkInteractorStyleMPRSlice from './vtkInteractorStyleMPRSlice.js';
import vtkCoordinate from 'vtk.js/Sources/Rendering/Core/Coordinate';
import Constants from 'vtk.js/Sources/Rendering/Core/InteractorStyle/Constants';
const { States } = Constants;
// ------------------... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/VTKViewport/View3D.js | src/VTKViewport/View3D.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import vtkGenericRenderWindow from 'vtk.js/Sources/Rendering/Misc/GenericRenderWindow';
import vtkWidgetManager from 'vtk.js/Sources/Widgets/Core/WidgetManager';
import vtkPaintFilter from 'vtk.js/Sources/Filters/General/PaintFilter';
import ... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/VTKViewport/vtkInteractorStyleRotatableMPRCrosshairs.js | src/VTKViewport/vtkInteractorStyleRotatableMPRCrosshairs.js | import macro from 'vtk.js/Sources/macro';
import vtkInteractorStyleMPRSlice from './vtkInteractorStyleMPRSlice.js';
import Constants from 'vtk.js/Sources/Rendering/Core/InteractorStyle/Constants';
import vtkCoordinate from 'vtk.js/Sources/Rendering/Core/Coordinate';
import vtkMatrixBuilder from 'vtk.js/Sources/Common/C... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/VTKViewport/vtkInteractorStyleMPRCrosshairs.js | src/VTKViewport/vtkInteractorStyleMPRCrosshairs.js | import macro from 'vtk.js/Sources/macro';
import vtkInteractorStyleMPRSlice from './vtkInteractorStyleMPRSlice.js';
import Constants from 'vtk.js/Sources/Rendering/Core/InteractorStyle/Constants';
import vtkCoordinate from 'vtk.js/Sources/Rendering/Core/Coordinate';
const { States } = Constants;
// ------------------... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/VTKViewport/View2D.js | src/VTKViewport/View2D.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import cornerstoneTools from 'cornerstone-tools';
import vtkGenericRenderWindow from 'vtk.js/Sources/Rendering/Misc/GenericRenderWindow';
import vtkRenderer from 'vtk.js/Sources/Rendering/Core/Renderer';
import vtkWidgetManager from 'vtk.js/S... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/VTKViewport/ViewportData.js | src/VTKViewport/ViewportData.js | import { vec3, mat4, quat } from 'gl-matrix';
import { degrees2radians } from '../lib/math/angles.js';
import EVENTS from '../events.js';
function validateNumber(numberValue) {
if (
typeof numberValue === 'number' &&
numberValue === Number(numberValue) &&
Number.isFinite(numberValue)
) {
return;
... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/VTKViewport/vtkSVGCrosshairsWidget.js | src/VTKViewport/vtkSVGCrosshairsWidget.js | import macro from 'vtk.js/Sources/macro';
import vtkMatrixBuilder from 'vtk.js/Sources/Common/Core/MatrixBuilder';
import vtkCoordinate from 'vtk.js/Sources/Rendering/Core/Coordinate';
let instanceId = 1;
function getWidgetNode(svgContainer, widgetId) {
let node = svgContainer.querySelector(`#${widgetId}`);
if (!... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/VTKViewport/vtkInteractorStyleMPRSlice.js | src/VTKViewport/vtkInteractorStyleMPRSlice.js | import macro from 'vtk.js/Sources/macro';
import vtkMath from 'vtk.js/Sources/Common/Core/Math';
import vtkMatrixBuilder from 'vtk.js/Sources/Common/Core/MatrixBuilder';
import vtkInteractorStyleManipulator from 'vtk.js/Sources/Interaction/Style/InteractorStyleManipulator';
import vtkMouseCameraTrackballRotateManipulat... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/VTKViewport/vtkInteractorStyleMPRWindowLevel.js | src/VTKViewport/vtkInteractorStyleMPRWindowLevel.js | import macro from 'vtk.js/Sources/macro';
import vtkInteractorStyleMPRSlice from './vtkInteractorStyleMPRSlice.js';
import Constants from 'vtk.js/Sources/Rendering/Core/InteractorStyle/Constants';
import {
toWindowLevel,
toLowHighRange,
} from '../lib/windowLevelRangeConverter';
const { States } = Constants;
// -... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/VTKViewport/vtkSVGWidgetManager.js | src/VTKViewport/vtkSVGWidgetManager.js | import macro from 'vtk.js/Sources/macro';
const { vtkErrorMacro } = macro;
let instanceId = 1;
function createSVGRoot(id) {
const el = document.createElement('svg');
el.setAttribute('id', id);
el.setAttribute(
'style',
'position: absolute; top: 0; left: 0; width: 100%; height: 100%;'
);
el.setAttrib... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/VTKViewport/vtkSVGRotatableCrosshairsWidget.js | src/VTKViewport/vtkSVGRotatableCrosshairsWidget.js | import macro from 'vtk.js/Sources/macro';
import vtkMatrixBuilder from 'vtk.js/Sources/Common/Core/MatrixBuilder';
import vtkCoordinate from 'vtk.js/Sources/Rendering/Core/Coordinate';
import liangBarksyClip from '../helpers/liangBarksyClip';
import { vec2, vec3 } from 'gl-matrix';
import { projectVector2D } from 'vtk.... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/src/VTKViewport/Manipulators/vtkMouseRangeRotateManipulator.js | src/VTKViewport/Manipulators/vtkMouseRangeRotateManipulator.js | import macro from 'vtk.js/Sources/macro';
import vtkMouseRangeManipulator from 'vtk.js/Sources/Interaction/Manipulators/MouseRangeManipulator';
const MAX_SAFE_INTEGER = 2147483647;
// ----------------------------------------------------------------------------
// vtkMouseRangeManipulator methods
// ------------------... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/examples/initCornerstone.js | examples/initCornerstone.js | import dicomParser from 'dicom-parser';
import cornerstone from 'cornerstone-core';
import cornerstoneMath from 'cornerstone-math';
import cornerstoneWADOImageLoader from 'cornerstone-wado-image-loader';
import cornerstoneTools from 'cornerstone-tools';
import Hammer from 'hammerjs';
cornerstoneTools.external.cornerst... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/examples/index.js | examples/index.js | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App.js';
ReactDOM.render(<App />, document.getElementById('root'));
| javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/examples/VTKFusionExample.js | examples/VTKFusionExample.js | import React from 'react';
import { Component } from 'react';
import { getImageData, loadImageData, View2D, View3D } from '@vtk-viewport';
import vtkVolume from 'vtk.js/Sources/Rendering/Core/Volume';
import vtkVolumeMapper from 'vtk.js/Sources/Rendering/Core/VolumeMapper';
import { api } from 'dicomweb-client';
import... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/examples/VTKRotatableCrosshairsExample.js | examples/VTKRotatableCrosshairsExample.js | import React from 'react';
import { Component } from 'react';
import {
View2D,
getImageData,
loadImageData,
vtkSVGRotatableCrosshairsWidget,
vtkInteractorStyleRotatableMPRCrosshairs,
vtkInteractorStyleMPRWindowLevel,
} from '@vtk-viewport';
import { api as dicomwebClientApi } from 'dicomweb-client';
import ... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/examples/App.js | examples/App.js | /* eslint-disable react/prop-types */
import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Link, Switch } from 'react-router-dom';
import VTKBasicExample from './VTKBasicExample.js';
import VTKFusionExample from './VTKFusionExample.js';
import VTKMPRPaintingExample from './VTKMPRPaintingEx... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/examples/VTKBasicExample.js | examples/VTKBasicExample.js | import React from 'react';
import { Component } from 'react';
import {
View2D,
vtkInteractorStyleMPRWindowLevel,
invertVolume,
} from '@vtk-viewport';
import vtkHttpDataSetReader from 'vtk.js/Sources/IO/Core/HttpDataSetReader';
import vtkVolume from 'vtk.js/Sources/Rendering/Core/Volume';
import vtkVolumeMapper f... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/examples/VTKMPRPaintingExample.js | examples/VTKMPRPaintingExample.js | import React from 'react';
import { Component } from 'react';
import PropTypes from 'prop-types';
import { View2D, View3D } from '@vtk-viewport';
import vtkHttpDataSetReader from 'vtk.js/Sources/IO/Core/HttpDataSetReader';
import vtkVolume from 'vtk.js/Sources/Rendering/Core/Volume';
import vtkVolumeMapper from 'vtk.j... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/examples/VTKVolumeRenderingExample.js | examples/VTKVolumeRenderingExample.js | import React from 'react';
import { Component } from 'react';
import { getImageData, loadImageData, View3D } from '@vtk-viewport';
import vtkVolume from 'vtk.js/Sources/Rendering/Core/Volume';
import vtkVolumeMapper from 'vtk.js/Sources/Rendering/Core/VolumeMapper';
import { api } from 'dicomweb-client';
import corners... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/examples/presets.js | examples/presets.js | const presets = [
{
name: 'CT-AAA',
gradientOpacity: '4 0 1 255 1',
specularPower: '10',
scalarOpacity:
'12 -3024 0 143.556 0 166.222 0.686275 214.389 0.696078 419.736 0.833333 3071 0.803922',
id: 'vtkMRMLVolumePropertyNode1',
specular: '0.2',
shade: '1',
ambient: '0.1',
colo... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/examples/VTKCornerstonePaintingSyncExample.js | examples/VTKCornerstonePaintingSyncExample.js | import React from 'react';
import { Component } from 'react';
import { View2D, getImageData, loadImageData } from '@vtk-viewport';
import CornerstoneViewport from 'react-cornerstone-viewport';
import vtkImageData from 'vtk.js/Sources/Common/DataModel/ImageData';
import vtkDataArray from 'vtk.js/Sources/Common/Core/Dat... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/examples/VTKCrosshairsExample.js | examples/VTKCrosshairsExample.js | import React from 'react';
import { Component } from 'react';
import {
View2D,
getImageData,
loadImageData,
vtkInteractorStyleMPRCrosshairs,
vtkSVGCrosshairsWidget,
} from '@vtk-viewport';
import { api as dicomwebClientApi } from 'dicomweb-client';
import vtkVolume from 'vtk.js/Sources/Rendering/Core/Volume';... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/examples/VTKMPRRotateExample.js | examples/VTKMPRRotateExample.js | import React from 'react';
import { Component } from 'react';
import { View2D, vtkInteractorStyleMPRRotate } from '@vtk-viewport';
import vtkHttpDataSetReader from 'vtk.js/Sources/IO/Core/HttpDataSetReader';
import vtkVolume from 'vtk.js/Sources/Rendering/Core/Volume';
import vtkVolumeMapper from 'vtk.js/Sources/Render... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/examples/VTKLoadImageDataExample.js | examples/VTKLoadImageDataExample.js | import React from 'react';
import { Component } from 'react';
import { View2D, getImageData, loadImageData } from '@vtk-viewport';
import cornerstone from 'cornerstone-core';
import cornerstoneTools from 'cornerstone-tools';
import './initCornerstone.js';
import vtkVolumeMapper from 'vtk.js/Sources/Rendering/Core/Volu... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/.webpack/webpack.config.js | .webpack/webpack.config.js | const path = require('path');
const webpack = require('webpack');
const autoprefixer = require('autoprefixer');
// Plugins
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
.BundleAnalyzerPlugin;
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const ENTRY_VTK_EXT = path.join(__dirname, ... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
OHIF/react-vtkjs-viewport | https://github.com/OHIF/react-vtkjs-viewport/blob/e5824538fcecf77e75d31589a2712c3558463468/.webpack/webpack.dev.js | .webpack/webpack.dev.js | /**
* vtkRules contains three rules:
*
* - shader-loader
* - babel-loader
* - worker-loader
*
* The defaults work fine for us here, but it's worth noting that for a UMD build,
* we would like likely want to inline web workers. An application consuming this package
* will likely want to use a non-default loader... | javascript | MIT | e5824538fcecf77e75d31589a2712c3558463468 | 2026-01-05T03:39:07.567611Z | false |
zry656565/heaven-blog | https://github.com/zry656565/heaven-blog/blob/c891272e09de90cb1dbbe26230a0f2ab03b58c13/Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
copy: {
includes: {
src: '_includes/head.raw.html',
dest: '_includes/head.html'
}
},
less: {
... | javascript | MIT | c891272e09de90cb1dbbe26230a0f2ab03b58c13 | 2026-01-05T03:39:48.134909Z | false |
zry656565/heaven-blog | https://github.com/zry656565/heaven-blog/blob/c891272e09de90cb1dbbe26230a0f2ab03b58c13/pages/articles.js | pages/articles.js | (function($) {
/* prepare for the data
=====================================*/
var i, tags = {
"显示全部": 999999
};
for (i = 0; i < $J.labels.length; i++) {
var t = tags[$J.labels[i]];
tags[$J.labels[i]] = t ? t+1 : 1;
}
$J.labels = [];
for (var tag in tags) {
... | javascript | MIT | c891272e09de90cb1dbbe26230a0f2ab03b58c13 | 2026-01-05T03:39:48.134909Z | false |
zry656565/heaven-blog | https://github.com/zry656565/heaven-blog/blob/c891272e09de90cb1dbbe26230a0f2ab03b58c13/assets/js/lib/jquery/jquery-1.11.1.min.js | assets/js/lib/jquery/jquery-1.11.1.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 | c891272e09de90cb1dbbe26230a0f2ab03b58c13 | 2026-01-05T03:39:48.134909Z | true |
zry656565/heaven-blog | https://github.com/zry656565/heaven-blog/blob/c891272e09de90cb1dbbe26230a0f2ab03b58c13/assets/js/lib/react/JSXTransformer.js | assets/js/lib/react/JSXTransformer.js | /**
* JSXTransformer v0.13.2
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g... | javascript | MIT | c891272e09de90cb1dbbe26230a0f2ab03b58c13 | 2026-01-05T03:39:48.134909Z | true |
zry656565/heaven-blog | https://github.com/zry656565/heaven-blog/blob/c891272e09de90cb1dbbe26230a0f2ab03b58c13/assets/js/lib/react/react.js | assets/js/lib/react/react.js | /**
* React v0.13.2
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}els... | javascript | MIT | c891272e09de90cb1dbbe26230a0f2ab03b58c13 | 2026-01-05T03:39:48.134909Z | true |
zry656565/heaven-blog | https://github.com/zry656565/heaven-blog/blob/c891272e09de90cb1dbbe26230a0f2ab03b58c13/assets/js/lib/react/react.min.js | assets/js/lib/react/react.min.js | /**
* React v0.13.2
*
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*... | javascript | MIT | c891272e09de90cb1dbbe26230a0f2ab03b58c13 | 2026-01-05T03:39:48.134909Z | true |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/js/jquery.fileupload-angular.js | jfu/static/js/jquery.fileupload-angular.js | /*
* jQuery File Upload AngularJS Plugin 2.2.0
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* jshint nomen:false */
/* global define, angular */
(function (factory) {... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | false |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/js/jquery.fileupload-jquery-ui.js | jfu/static/js/jquery.fileupload-jquery-ui.js | /*
* jQuery File Upload jQuery UI Plugin 8.7.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* jshint nomen:false */
/* global define, window */
(function (factory) {
... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | false |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/js/main.js | jfu/static/js/main.js | /*
* jQuery File Upload Plugin JS Example 8.9.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* global $, window */
$(function () {
'use strict';
// Initializ... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | false |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/js/jquery.fileupload-image.js | jfu/static/js/jquery.fileupload-image.js | /*
* jQuery File Upload Image Preview & Resize Plugin 1.7.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* jshint nomen:false */
/* global define, window, Blob */
(fu... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | false |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/js/app.js | jfu/static/js/app.js | /*
* jQuery File Upload Plugin Angular JS Example 1.2.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* jshint nomen:false */
/* global window, angular */
(function ()... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | false |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/js/jquery.fileupload.js | jfu/static/js/jquery.fileupload.js | /*
* jQuery File Upload Plugin 5.40.0
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* jshint nomen:false */
/* global define, window, document, location, Blob, FormData... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | true |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/js/jquery.fileupload-process.js | jfu/static/js/jquery.fileupload-process.js | /*
* jQuery File Upload Processing Plugin 1.3.0
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2012, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* jshint nomen:false */
/* global define, window */
(function (factory) {... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | false |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/js/jquery.fileupload-audio.js | jfu/static/js/jquery.fileupload-audio.js | /*
* jQuery File Upload Audio Preview Plugin 1.0.3
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* jshint nomen:false */
/* global define, window, document */
(functio... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | false |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/js/jquery.fileupload-video.js | jfu/static/js/jquery.fileupload-video.js | /*
* jQuery File Upload Video Preview Plugin 1.0.3
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* jshint nomen:false */
/* global define, window, document */
(functio... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | false |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/js/jquery.fileupload-validate.js | jfu/static/js/jquery.fileupload-validate.js | /*
* jQuery File Upload Validation Plugin 1.1.2
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* global define, window */
(function (factory) {
'use strict';
if... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | false |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/js/jquery.fileupload-ui.js | jfu/static/js/jquery.fileupload-ui.js | /*
* jQuery File Upload User Interface Plugin 9.5.2
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* jshint nomen:false */
/* global define, window */
(function (factor... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | false |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/js/jquery.iframe-transport.js | jfu/static/js/jquery.iframe-transport.js | /*
* jQuery Iframe Transport Plugin 1.8.2
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2011, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* global define, window, document */
(function (factory) {
'use strict';
... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | false |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/js/vendor/jquery.ui.widget.js | jfu/static/js/vendor/jquery.ui.widget.js | /*!
* jQuery UI Widget 1.10.4+amd
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2014 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/jQuery.widget/
*/
(function (factory) {
if (typeof define === "function" &... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | false |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/js/cors/jquery.postmessage-transport.js | jfu/static/js/cors/jquery.postmessage-transport.js | /*
* jQuery postMessage Transport Plugin 1.1.1
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2011, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/* global define, window, document */
(function (factory) {
'use strict... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | false |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/js/cors/jquery.xdr-transport.js | jfu/static/js/cors/jquery.xdr-transport.js | /*
* jQuery XDomainRequest Transport Plugin 1.1.3
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2011, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*
* Based on Julian Aubourg's ajaxHooks xdr.js:
* https://github.com/jaubou... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | false |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/demo/tmpl.min.js | jfu/static/demo/tmpl.min.js | !function(a){"use strict";var b=function(a,c){var d=/[^\w\-\.:]/.test(a)?new Function(b.arg+",tmpl","var _e=tmpl.encode"+b.helper+",_s='"+a.replace(b.regexp,b.func)+"';return _s;"):b.cache[a]=b.cache[a]||b(b.load(a));return c?d(c,b):function(a){return d(a,b)}};b.cache={},b.load=function(a){return document.getElementByI... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | false |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/demo/load-image.min.js | jfu/static/demo/load-image.min.js | !function(a){"use strict";var b=function(a,c,d){var e,f,g=document.createElement("img");if(g.onerror=c,g.onload=function(){!f||d&&d.noRevoke||b.revokeObjectURL(f),c&&c(b.scale(g,d))},b.isInstanceOf("Blob",a)||b.isInstanceOf("File",a))e=f=b.createObjectURL(a),g._type=a.type;else{if("string"!=typeof a)return!1;e=a,d&&d.c... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | false |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/demo/canvas-to-blob.min.js | jfu/static/demo/canvas-to-blob.min.js | !function(a){"use strict";var b=a.HTMLCanvasElement&&a.HTMLCanvasElement.prototype,c=a.Blob&&function(){try{return Boolean(new Blob)}catch(a){return!1}}(),d=c&&a.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(a){return!1}}(),e=a.BlobBuilder||a.WebKitBlobBuilder||a.MozBlobBuilder||a.M... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | false |
Alem/django-jfu | https://github.com/Alem/django-jfu/blob/f45025f0a6d4cbc8d7f4933a77da8468cd296159/jfu/static/demo/jquery.blueimp-gallery.min.js | jfu/static/demo/jquery.blueimp-gallery.min.js | !function(a){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper"],a):(window.blueimp=window.blueimp||{},window.blueimp.Gallery=a(window.blueimp.helper||window.jQuery))}(function(a){"use strict";function b(a,c){return a&&a.length&&void 0!==document.body.style.maxHeight?this&&this.options===b.pr... | javascript | BSD-3-Clause | f45025f0a6d4cbc8d7f4933a77da8468cd296159 | 2026-01-05T03:39:56.218450Z | false |
messutied/colors.sh | https://github.com/messutied/colors.sh/blob/5c821ae468a4883486a000e9700a5530662c3883/webpack.config.js | webpack.config.js | const path = require('path');
const fs = require('fs');
const webpack = require('webpack');
const AssetsPlugin = require('assets-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const CompressionPlugin = require('compression-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-... | javascript | MIT | 5c821ae468a4883486a000e9700a5530662c3883 | 2026-01-05T03:39:56.989930Z | false |
messutied/colors.sh | https://github.com/messutied/colors.sh/blob/5c821ae468a4883486a000e9700a5530662c3883/src/index.js | src/index.js | import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import RootContainer from './containers/RootContainer/RootContainer';
class ErrorReporter extends React.Component {
render() {
return (
<div className="unrecoverable-error">
<b>Unrecoverabl... | javascript | MIT | 5c821ae468a4883486a000e9700a5530662c3883 | 2026-01-05T03:39:56.989930Z | false |
messutied/colors.sh | https://github.com/messutied/colors.sh/blob/5c821ae468a4883486a000e9700a5530662c3883/src/components/HomeScreen/Output.js | src/components/HomeScreen/Output.js | import React from 'react';
import './Output.scss';
const Line = ({ children, type = 'default' }) =>
<div className={`line line-${type}`}>{children}</div>;
export default ({ lines }) => (
<div className="output">
<Line type="comment"># How to implement it</Line>
{lines.map((l, i) => <Line key={i}>{l}</Line... | javascript | MIT | 5c821ae468a4883486a000e9700a5530662c3883 | 2026-01-05T03:39:56.989930Z | false |
messutied/colors.sh | https://github.com/messutied/colors.sh/blob/5c821ae468a4883486a000e9700a5530662c3883/src/components/HomeScreen/colors-256.js | src/components/HomeScreen/colors-256.js | export default [
// [Name, Xterm ID, HEX]
['Black', 0, '#000000'],
['Maroon', 1, '#800000'],
['Green', 2, '#008000'],
['Olive', 3, '#808000'],
['Navy', 4, '#000080'],
['Purple', 5, '#800080'],
['Teal', 6, '#008080'],
['Silver', 7, '#c0c0c0'],
['Grey', 8, '#808080'],
['Red', 9, '#ff0000'],
['Lime... | javascript | MIT | 5c821ae468a4883486a000e9700a5530662c3883 | 2026-01-05T03:39:56.989930Z | false |
messutied/colors.sh | https://github.com/messutied/colors.sh/blob/5c821ae468a4883486a000e9700a5530662c3883/src/components/HomeScreen/HomeScreen.js | src/components/HomeScreen/HomeScreen.js | /* eslint no-octal-escape: 0 */
import React from 'react';
import { autorun } from 'mobx';
import { observer } from 'mobx-react';
import Store from './store';
import Terminal from './Terminal';
import './HomeScreen.scss';
import Output from './Output';
import Controls from './Controls';
const setupUrlPersistedStore =... | javascript | MIT | 5c821ae468a4883486a000e9700a5530662c3883 | 2026-01-05T03:39:56.989930Z | false |
messutied/colors.sh | https://github.com/messutied/colors.sh/blob/5c821ae468a4883486a000e9700a5530662c3883/src/components/HomeScreen/Controls.js | src/components/HomeScreen/Controls.js | import React from 'react';
import allFormats from './formats';
import ColorChooser from './ColorChooser';
import './Controls.scss';
const themes = ['light', 'dark'];
const escapeChars = ['\\033', '\\e', '\\x1B'];
const FormatField = ({ formats, setFormat, format }) => (
<label>
<input
type="checkbox"
... | javascript | MIT | 5c821ae468a4883486a000e9700a5530662c3883 | 2026-01-05T03:39:56.989930Z | false |
messutied/colors.sh | https://github.com/messutied/colors.sh/blob/5c821ae468a4883486a000e9700a5530662c3883/src/components/HomeScreen/ColorChooser.js | src/components/HomeScreen/ColorChooser.js | import React from 'react';
import colors from './colors-256';
import './ColorChooser.scss';
const ColorBtn = ({ color: [name, id, hex], callback, selected }) => (
<button
className={`color ${selected ? 'selected' : ''}`}
onClick={() => callback(id)}
title={name}
style={{ background: hex }}
/>
);
e... | javascript | MIT | 5c821ae468a4883486a000e9700a5530662c3883 | 2026-01-05T03:39:56.989930Z | false |
messutied/colors.sh | https://github.com/messutied/colors.sh/blob/5c821ae468a4883486a000e9700a5530662c3883/src/components/HomeScreen/Terminal.js | src/components/HomeScreen/Terminal.js | import React from 'react';
import './Terminal.scss';
export default ({ text, color, bgColor, formats, theme }) => {
const inverted = formats.includes('Invert');
const dimmed = formats.includes('Dim');
const finalFgColor = inverted ? bgColor : color;
const finalBgColor = inverted ? color : bgColor;
const styl... | javascript | MIT | 5c821ae468a4883486a000e9700a5530662c3883 | 2026-01-05T03:39:56.989930Z | false |
messutied/colors.sh | https://github.com/messutied/colors.sh/blob/5c821ae468a4883486a000e9700a5530662c3883/src/components/HomeScreen/store.js | src/components/HomeScreen/store.js | import { observable, action, computed } from 'mobx';
import colors from './colors-256';
import formats from './formats';
const TEXTS = [
'Color me, surprised',
'Put some color on me',
'Roses are red',
'Violets are blue',
'Lorem ipsum dolor sit amet',
];
const TEXT = TEXTS[Math.floor(Math.random() * TEXTS.len... | javascript | MIT | 5c821ae468a4883486a000e9700a5530662c3883 | 2026-01-05T03:39:56.989930Z | false |
messutied/colors.sh | https://github.com/messutied/colors.sh/blob/5c821ae468a4883486a000e9700a5530662c3883/src/components/HomeScreen/formats.js | src/components/HomeScreen/formats.js | export default [
{ name: 'Bold', code: 1 },
{ name: 'Dim', code: 2 },
{ name: 'Underlined', code: 4 },
{ name: 'Invert', code: 7 },
{ name: 'Hidden', code: 8 },
];
| javascript | MIT | 5c821ae468a4883486a000e9700a5530662c3883 | 2026-01-05T03:39:56.989930Z | false |
messutied/colors.sh | https://github.com/messutied/colors.sh/blob/5c821ae468a4883486a000e9700a5530662c3883/src/containers/RootContainer/RootContainer.js | src/containers/RootContainer/RootContainer.js | import React from 'react';
import HomeScreen from '../../components/HomeScreen/HomeScreen';
import './RootContainer.scss';
export default class RootContainer extends React.Component {
render() {
return (
<div>
<span className="logo">🌈💻 Colors.sh</span>
<HomeScreen />
<footer>
... | javascript | MIT | 5c821ae468a4883486a000e9700a5530662c3883 | 2026-01-05T03:39:56.989930Z | false |
azuqua/react-dnd-scrollzone | https://github.com/azuqua/react-dnd-scrollzone/blob/334066a1b079aa6e4b0130008f0519942ab27723/src/index.js | src/index.js | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import throttle from 'lodash.throttle';
import raf from 'raf';
import getDisplayName from 'react-display-name';
import hoist from 'hoist-non-react-statics';
import { noop, intBetween, getCoords } from ... | javascript | MIT | 334066a1b079aa6e4b0130008f0519942ab27723 | 2026-01-05T03:40:11.667842Z | false |
azuqua/react-dnd-scrollzone | https://github.com/azuqua/react-dnd-scrollzone/blob/334066a1b079aa6e4b0130008f0519942ab27723/src/util.js | src/util.js |
export function noop() {
}
export function intBetween(min, max, val) {
return Math.floor(
Math.min(max, Math.max(min, val))
);
}
export function getCoords(evt) {
if (evt.type === 'touchmove') {
return { x: evt.changedTouches[0].clientX, y: evt.changedTouches[0].clientY };
}
return { x: evt.clien... | javascript | MIT | 334066a1b079aa6e4b0130008f0519942ab27723 | 2026-01-05T03:40:11.667842Z | false |
azuqua/react-dnd-scrollzone | https://github.com/azuqua/react-dnd-scrollzone/blob/334066a1b079aa6e4b0130008f0519942ab27723/test/setup.js | test/setup.js | import chai from 'chai';
import sinon from 'sinon';
import sinonChai from "sinon-chai";
chai.should();
chai.use(sinonChai);
global.expect = chai.expect;
global.sinon = sinon;
| javascript | MIT | 334066a1b079aa6e4b0130008f0519942ab27723 | 2026-01-05T03:40:11.667842Z | false |
azuqua/react-dnd-scrollzone | https://github.com/azuqua/react-dnd-scrollzone/blob/334066a1b079aa6e4b0130008f0519942ab27723/test/strength-creators-test.js | test/strength-creators-test.js | import { createHorizontalStrength, createVerticalStrength } from '../src';
describe('strength functions', function() {
let hFn = createHorizontalStrength(150);
let vFn = createVerticalStrength(150);
let box = { x: 0, y: 0, w: 600, h: 600 };
let lilBox = { x: 0, y: 0, w: 100, h: 100 };
describe('horizontalSt... | javascript | MIT | 334066a1b079aa6e4b0130008f0519942ab27723 | 2026-01-05T03:40:11.667842Z | false |
azuqua/react-dnd-scrollzone | https://github.com/azuqua/react-dnd-scrollzone/blob/334066a1b079aa6e4b0130008f0519942ab27723/test/intBetween.js | test/intBetween.js | import { intBetween } from '../src/util';
describe('private intBetween()', () => {
it('should return val if it is an int between min and max', () => {
expect(intBetween(0, 2, 1)).to.equal(1);
});
it('should floor the val if it not an int', () => {
expect(intBetween(0, 2, .5)).to.equal(0);
});
it('... | javascript | MIT | 334066a1b079aa6e4b0130008f0519942ab27723 | 2026-01-05T03:40:11.667842Z | false |
azuqua/react-dnd-scrollzone | https://github.com/azuqua/react-dnd-scrollzone/blob/334066a1b079aa6e4b0130008f0519942ab27723/examples/mobile-backend/src/DragPreview.js | examples/mobile-backend/src/DragPreview.js | import React, { PureComponent } from 'react';
import { DragLayer } from 'react-dnd';
import './DragPreview.css';
class DragPreview extends PureComponent {
render() {
const {
item,
offset,
} = this.props;
return (
<div className="DragPreview">
{item && (
<div
... | javascript | MIT | 334066a1b079aa6e4b0130008f0519942ab27723 | 2026-01-05T03:40:11.667842Z | false |
azuqua/react-dnd-scrollzone | https://github.com/azuqua/react-dnd-scrollzone/blob/334066a1b079aa6e4b0130008f0519942ab27723/examples/mobile-backend/src/DragItem.js | examples/mobile-backend/src/DragItem.js | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { DragSource } from 'react-dnd';
import './DragItem.css';
class DragItem extends PureComponent {
static propTypes = {
label: PropTypes.string.isRequired,
};
render() {
return this.props.dragSource(
<div class... | javascript | MIT | 334066a1b079aa6e4b0130008f0519942ab27723 | 2026-01-05T03:40:11.667842Z | false |
azuqua/react-dnd-scrollzone | https://github.com/azuqua/react-dnd-scrollzone/blob/334066a1b079aa6e4b0130008f0519942ab27723/examples/mobile-backend/src/index.js | examples/mobile-backend/src/index.js | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
| javascript | MIT | 334066a1b079aa6e4b0130008f0519942ab27723 | 2026-01-05T03:40:11.667842Z | false |
azuqua/react-dnd-scrollzone | https://github.com/azuqua/react-dnd-scrollzone/blob/334066a1b079aa6e4b0130008f0519942ab27723/examples/mobile-backend/src/App.js | examples/mobile-backend/src/App.js | import React, { Component } from 'react';
import TouchBackend from 'react-dnd-touch-backend';
import { DragDropContextProvider } from 'react-dnd';
import withScrolling from 'react-dnd-scrollzone';
import DragItem from './DragItem';
import DragPreview from './DragPreview';
import './App.css';
const ScrollingComponent =... | javascript | MIT | 334066a1b079aa6e4b0130008f0519942ab27723 | 2026-01-05T03:40:11.667842Z | false |
azuqua/react-dnd-scrollzone | https://github.com/azuqua/react-dnd-scrollzone/blob/334066a1b079aa6e4b0130008f0519942ab27723/examples/basic/src/DragItem.js | examples/basic/src/DragItem.js | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { DragSource } from 'react-dnd';
import './DragItem.css';
class DragItem extends PureComponent {
static propTypes = {
label: PropTypes.string.isRequired,
};
render() {
return this.props.dragSource(
<div class... | javascript | MIT | 334066a1b079aa6e4b0130008f0519942ab27723 | 2026-01-05T03:40:11.667842Z | false |
azuqua/react-dnd-scrollzone | https://github.com/azuqua/react-dnd-scrollzone/blob/334066a1b079aa6e4b0130008f0519942ab27723/examples/basic/src/index.js | examples/basic/src/index.js | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
| javascript | MIT | 334066a1b079aa6e4b0130008f0519942ab27723 | 2026-01-05T03:40:11.667842Z | false |
azuqua/react-dnd-scrollzone | https://github.com/azuqua/react-dnd-scrollzone/blob/334066a1b079aa6e4b0130008f0519942ab27723/examples/basic/src/App.js | examples/basic/src/App.js | import React, { Component } from 'react';
import HTML5Backend from 'react-dnd-html5-backend';
import { DragDropContextProvider } from 'react-dnd';
import withScrolling from 'react-dnd-scrollzone';
import DragItem from './DragItem';
import './App.css';
const ScrollingComponent = withScrolling('div');
const ITEMS = [1,... | javascript | MIT | 334066a1b079aa6e4b0130008f0519942ab27723 | 2026-01-05T03:40:11.667842Z | false |
nsanta/openoverflow | https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/vendor/plugins/jrails/javascripts/jquery.js | vendor/plugins/jrails/javascripts/jquery.js | /*
* jQuery JavaScript Library v1.3
* http://jquery.com/
*
* Copyright (c) 2009 John Resig
* Dual licensed under the MIT and GPL licenses.
* http://docs.jquery.com/License
*
* Date: 2009-01-13 12:50:31 -0500 (Tue, 13 Jan 2009)
* Revision: 6104
*/
(function(){var l=this,g,x=l.jQuery,o=l.$,n=l.jQuery=l.$=functi... | javascript | MIT | 8a7f4e4ca0cb2d055f816391af65a899fef6861e | 2026-01-05T03:40:15.038440Z | true |
nsanta/openoverflow | https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/vendor/plugins/jrails/javascripts/jquery-ui.js | vendor/plugins/jrails/javascripts/jquery-ui.js | (function(B){var H=B.fn.remove,D=B.browser.mozilla&&(parseFloat(B.browser.version)<1.9);B.ui={version:"1.6rc5",plugin:{add:function(K,J,N){var M=B.ui[K].prototype;for(var L in N){M.plugins[L]=M.plugins[L]||[];M.plugins[L].push([J,N[L]])}},call:function(J,L,K){var N=J.plugins[L];if(!N){return }for(var M=0;M<N.length;M++... | javascript | MIT | 8a7f4e4ca0cb2d055f816391af65a899fef6861e | 2026-01-05T03:40:15.038440Z | true |
nsanta/openoverflow | https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/vendor/plugins/jrails/javascripts/jrails.js | vendor/plugins/jrails/javascripts/jrails.js | (function($){$.ajaxSettings.accepts._default = "text/javascript, text/html, application/xml, text/xml, */*"})(jQuery);(function($){$.fn.reset=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};$.fn.enable=function(){return this.... | javascript | MIT | 8a7f4e4ca0cb2d055f816391af65a899fef6861e | 2026-01-05T03:40:15.038440Z | false |
nsanta/openoverflow | https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/vendor/plugins/jrails/javascripts/sources/jrails.js | vendor/plugins/jrails/javascripts/sources/jrails.js | /*
*
* jRails ajax extras
* version 0.1
* <aaron@ennerchi.com> | http://www.ennerchi.com
*
*/
(function($) {
$.ajaxSettings.accepts._default = "text/javascript, text/html, application/xml, text/xml, */*";
})(jQuery);
/*
*
* jRails form extras
* <aaron@ennerchi.com> | http://www.ennerchi.com
*
*/
(function($) {
/... | javascript | MIT | 8a7f4e4ca0cb2d055f816391af65a899fef6861e | 2026-01-05T03:40:15.038440Z | false |
nsanta/openoverflow | https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/vendor/plugins/newrelic_rpm/ui/views/newrelic/javascript/transaction_sample.js | vendor/plugins/newrelic_rpm/ui/views/newrelic/javascript/transaction_sample.js |
function show_request_params()
{
$('params_link').hide();
$('request_params').show();
}
function show_view(page_id){
['show_sample_summary', 'show_sample_sql', 'show_sample_detail'].each(Element.hide);
$(page_id).show();
}
function toggle_row_class(theLink)
{
var image = theLink.firstChild;
var visible = toggl... | javascript | MIT | 8a7f4e4ca0cb2d055f816391af65a899fef6861e | 2026-01-05T03:40:15.038440Z | false |
nsanta/openoverflow | https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/controls.js | public/javascripts/controls.js | // Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// (c) 2005-2008 Ivan Krstic (http://blogs.law.harvard.edu/ivan)
// (c) 2005-2008 Jon Tirsen (http://www.tirsen.com)
// Contributors:
// Richard Livsey
// Rahul Bhargava
// Rob Wills
//
// script.aculo.us is fre... | javascript | MIT | 8a7f4e4ca0cb2d055f816391af65a899fef6861e | 2026-01-05T03:40:15.038440Z | true |
nsanta/openoverflow | https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/effects.js | public/javascripts/effects.js | // Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// Contributors:
// Justin Palmer (http://encytemedia.com/)
// Mark Pilgrim (http://diveintomark.org/)
// Martin Bialasinki
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see ... | javascript | MIT | 8a7f4e4ca0cb2d055f816391af65a899fef6861e | 2026-01-05T03:40:15.038440Z | true |
nsanta/openoverflow | https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/application.js | public/javascripts/application.js | // Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
| javascript | MIT | 8a7f4e4ca0cb2d055f816391af65a899fef6861e | 2026-01-05T03:40:15.038440Z | false |
nsanta/openoverflow | https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/jquery.js | public/javascripts/jquery.js | /*
* jQuery JavaScript Library v1.3
* http://jquery.com/
*
* Copyright (c) 2009 John Resig
* Dual licensed under the MIT and GPL licenses.
* http://docs.jquery.com/License
*
* Date: 2009-01-13 12:50:31 -0500 (Tue, 13 Jan 2009)
* Revision: 6104
*/
(function(){var l=this,g,x=l.jQuery,o=l.$,n=l.jQuery=l.$=functi... | javascript | MIT | 8a7f4e4ca0cb2d055f816391af65a899fef6861e | 2026-01-05T03:40:15.038440Z | true |
nsanta/openoverflow | https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/prototype.js | public/javascripts/prototype.js | /* Prototype JavaScript framework, version 1.6.0.3
* (c) 2005-2008 Sam Stephenson
*
* Prototype is freely distributable under the terms of an MIT-style license.
* For details, see the Prototype web site: http://www.prototypejs.org/
*
*--------------------------------------------------------------------------*... | javascript | MIT | 8a7f4e4ca0cb2d055f816391af65a899fef6861e | 2026-01-05T03:40:15.038440Z | true |
nsanta/openoverflow | https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/jquery-ui.js | public/javascripts/jquery-ui.js | (function(B){var H=B.fn.remove,D=B.browser.mozilla&&(parseFloat(B.browser.version)<1.9);B.ui={version:"1.6rc5",plugin:{add:function(K,J,N){var M=B.ui[K].prototype;for(var L in N){M.plugins[L]=M.plugins[L]||[];M.plugins[L].push([J,N[L]])}},call:function(J,L,K){var N=J.plugins[L];if(!N){return }for(var M=0;M<N.length;M++... | javascript | MIT | 8a7f4e4ca0cb2d055f816391af65a899fef6861e | 2026-01-05T03:40:15.038440Z | true |
nsanta/openoverflow | https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/jrails.js | public/javascripts/jrails.js | (function($){$.ajaxSettings.accepts._default = "text/javascript, text/html, application/xml, text/xml, */*"})(jQuery);(function($){$.fn.reset=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};$.fn.enable=function(){return this.... | javascript | MIT | 8a7f4e4ca0cb2d055f816391af65a899fef6861e | 2026-01-05T03:40:15.038440Z | false |
nsanta/openoverflow | https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/dragdrop.js | public/javascripts/dragdrop.js | // Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
// (c) 2005-2008 Sammi Williams (http://www.oriontransfer.co.nz, sammi@oriontransfer.co.nz)
//
// script.aculo.us is freely distributable under the terms of an MIT-style license.
// For details, see the script.aculo.us web s... | javascript | MIT | 8a7f4e4ca0cb2d055f816391af65a899fef6861e | 2026-01-05T03:40:15.038440Z | false |
nsanta/openoverflow | https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/facebox_init.js | public/javascripts/facebox_init.js | // Making facebox all links with 'protected=true'
jQuery(document).ready( function() {
$("a[rel='facebox']").facebox();
$(document).bind('reveal.facebox', function() { $("a[protected='true']").facebox(); })
})
| javascript | MIT | 8a7f4e4ca0cb2d055f816391af65a899fef6861e | 2026-01-05T03:40:15.038440Z | false |
nsanta/openoverflow | https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/vote/question.js | public/javascripts/vote/question.js | jQuery(document).ready(function(){
$("a.vote_link").click(function(){
$.ajax({
type : 'post' ,
url : $(this).attr('href') ,
dataType: "script"
})
return false;
})
})
| javascript | MIT | 8a7f4e4ca0cb2d055f816391af65a899fef6861e | 2026-01-05T03:40:15.038440Z | false |
nsanta/openoverflow | https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/favorite/call.js | public/javascripts/favorite/call.js | $(document).ready(function(){
$('a.favorite_link').click(function(){
$.ajax({url : $(this).attr('href'),
type : $(this).attr('rel'),
dataType: "script"
});
return false;
});
})
| javascript | MIT | 8a7f4e4ca0cb2d055f816391af65a899fef6861e | 2026-01-05T03:40:15.038440Z | false |
nsanta/openoverflow | https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/comment/create.js | public/javascripts/comment/create.js | javascript | MIT | 8a7f4e4ca0cb2d055f816391af65a899fef6861e | 2026-01-05T03:40:15.038440Z | false | |
nsanta/openoverflow | https://github.com/nsanta/openoverflow/blob/8a7f4e4ca0cb2d055f816391af65a899fef6861e/public/javascripts/comment/new.js | public/javascripts/comment/new.js | javascript | MIT | 8a7f4e4ca0cb2d055f816391af65a899fef6861e | 2026-01-05T03:40:15.038440Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.