This repository has been archived by the owner on Oct 2, 2021. It is now read-only.
forked from adazzle/react-data-grid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
134 changed files
with
9,736 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: 1.0.{build} | ||
environment: | ||
COVERALLS_REPO_TOKEN: ab4LZQwXbVRwQIn0MEHqaaOjidqu78RFQ | ||
COVERALLS_SERVICE_NAME: appveyor | ||
shallow_clone: true | ||
build_script: | ||
- ps: >- | ||
Install-Product node 0.12.0 x64 | ||
npm install -g gulp | ||
npm cache clean | ||
npm install | ||
gulp flow-win | ||
gulp test --release | ||
gulp coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"node": true | ||
}, | ||
"rules": { | ||
"new-cap": false, | ||
"quotes": false, | ||
"no-underscore-dangle": false, | ||
"no-multi-str": false, | ||
"no-use-before-define": false, | ||
"no-unused-vars": [2, "all"], | ||
"no-mixed-requires": [1, true], | ||
"max-len": [1, 80, 4] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[include] | ||
./node_modules/immutable | ||
./node_modules/react | ||
./src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
node_modules | ||
bower_components | ||
lib | ||
**/build | ||
test/reports | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
src | ||
**/build | ||
webpack.config.js | ||
LICENSE | ||
.eslintrc | ||
test | ||
gulp | ||
examples | ||
coveralls.yml | ||
gulpfile.js | ||
config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014 Prometheus Research | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require("./dist/ReactGridWithAddons"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "adazzle-react-grid", | ||
"main": "index.js", | ||
"version": "0.12.7", | ||
"homepage": "https://github.com/adazzle/react-grid", | ||
"authors": [ | ||
"malonecj <[email protected]>" | ||
], | ||
"description": "Excel-like grid component built with React, with editors, keyboard navigation, copy & paste, and the like", | ||
"license": "MIT", | ||
"ignore": [ | ||
"gulp", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests", | ||
"src", | ||
"coveralls.yml", | ||
"gulpfile.js", | ||
"webpack.config.js", | ||
".npmignore", | ||
".gitignore", | ||
".eslintrc", | ||
"examples", | ||
"config" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
|
||
/*! | ||
* Facebook React Starter Kit | https://github.com/kriasoft/react-starter-kit | ||
* Copyright (c) KriaSoft, LLC. All rights reserved. See LICENSE.txt | ||
*/ | ||
|
||
/* | ||
* Karma configuration. For more information visit | ||
* http://karma-runner.github.io/0.12/config/configuration-file.html | ||
*/ | ||
|
||
'use strict'; | ||
|
||
var webpackConfig = require('../webpack.config.js'); | ||
var RewirePlugin = require("rewire-webpack"); | ||
var path = require('path'); | ||
var argv = require('minimist')(process.argv.slice(2)); | ||
var RELEASE = !!argv.release; | ||
|
||
|
||
module.exports = function (config) { | ||
config.set({ | ||
|
||
basePath: __dirname, | ||
|
||
files: [ | ||
'../node_modules/es5-shim/es5-shim.js', | ||
'../node_modules/es5-shim/es5-sham.js', | ||
'../node_modules/es6-shim/es6-shim.js', | ||
'../test/Grid.spec.js' | ||
], | ||
|
||
preprocessors: { | ||
'../test/Grid.spec.js': ['webpack'] | ||
}, | ||
|
||
webpack: { | ||
cache: true, | ||
module: { | ||
loaders: webpackConfig.module.loaders, | ||
postLoaders: RELEASE === true ? [ { // Do coverage for postloader | ||
test: /\.(js|jsx)$/, | ||
exclude: /node_modules/, | ||
loader: 'istanbul-instrumenter' | ||
} ] : [] | ||
}, | ||
plugins: [ | ||
new RewirePlugin() | ||
] | ||
}, | ||
|
||
browserNoActivityTimeout: 1000000, | ||
|
||
// coverage reporter generates the coverage | ||
reporters: ['junit', 'progress', 'coverage'], | ||
|
||
coverageReporter: { | ||
// specify a common output directory | ||
dir: '../test/reports/coverage', | ||
reporters: [ | ||
// reporters not supporting the `file` property | ||
{ type: 'html', subdir: 'report-html' }, | ||
{ type: 'lcov', subdir: 'report-lcov' } | ||
] | ||
}, | ||
|
||
// the default configuration | ||
junitReporter: { | ||
outputFile: '../test/reports/test-results.xml', | ||
suite: '' | ||
}, | ||
|
||
webpackServer: { | ||
stats: { | ||
colors: true | ||
} | ||
}, | ||
|
||
autoWatch: false, | ||
|
||
singleRun: true, | ||
|
||
frameworks: ['jasmine'], | ||
|
||
browsers: ['Chrome'], | ||
|
||
plugins: [ | ||
'karma-chrome-launcher', | ||
'karma-firefox-launcher', | ||
'karma-phantomjs-launcher', | ||
'karma-jasmine', | ||
'karma-webpack', | ||
'karma-coverage', | ||
'karma-junit-reporter' | ||
] | ||
|
||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
var path = require("path"); | ||
var webpack = require('webpack'); | ||
var release = false; | ||
var path = require("path"); | ||
|
||
module.exports = { | ||
entry: { | ||
'ReactGrid' : './src/index', | ||
'ReactGridWithAddons' : './src/addons/index' | ||
}, | ||
output: { | ||
path: path.join(__dirname, "../dist"), | ||
filename: "[name].js", | ||
library: ["ReactGrid"], | ||
libraryTarget: "umd" | ||
}, | ||
externals: { | ||
"react/addons": { | ||
root : 'React', | ||
commonjs : 'react/addons', | ||
commonjs2 : 'react/addons', | ||
amd : 'react/addons' | ||
}, | ||
"moment" : "moment" | ||
}, | ||
module: { | ||
loaders: [ | ||
{ test: /\.js$/, loader: 'jsx-loader?stripTypes&harmony' } // loaders can take parameters as a querystring | ||
] | ||
}, | ||
plugins: [ | ||
new webpack.optimize.DedupePlugin(), | ||
new webpack.optimize.OccurenceOrderPlugin(), | ||
new webpack.optimize.AggressiveMergingPlugin() | ||
], | ||
postLoaders: [ | ||
{ | ||
test: /\.js$/, | ||
exclude: /node_modules|testData/, | ||
loader: 'jshint' | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
repo_token: ab4LZQwXbVRwQIn0MEHqaaOjidqu78RFQ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
/*******************************/ | ||
/* Navigatioin */ | ||
/*******************************/ | ||
.navbar-inverse { border-radius: 0; background:rgba(0, 0, 0, .8); border-bottom:1px solid rgba(255, 255, 255, 0.15); min-height:100px; padding-top:25px; margin-bottom:0;} | ||
.navbar-inverse *:focus { outline: 0; } | ||
@media (max-width: 767px) { | ||
.navbar-inverse { background:rgba(0,0,0,.9); } | ||
} | ||
|
||
.navbar-inverse .navbar-nav > li > a, | ||
.navbar-inverse .navbar-nav > .open ul > a { color:rgba(255, 255, 255, .4); } | ||
|
||
.navbar-inverse .navbar-nav > .active > a, | ||
.navbar-inverse .navbar-nav > .active > a:hover, | ||
.navbar-inverse .navbar-nav > .active > a:focus { color: #fff; background:none ; } | ||
.navbar-inverse .navbar-nav > .open > a{ background:none; color:white; } | ||
|
||
.navbar-inverse .navbar-nav>li>a:hover, | ||
.navbar-inverse .navbar-nav>li>a:focus, | ||
.navbar-inverse .navbar-nav>.open>a:hover, | ||
.navbar-inverse .navbar-nav>.open>a:focus { background:none; color:white; } | ||
|
||
.navbar-inverse .navbar-nav > .active > a { background:none; color:white; } | ||
|
||
.navbar-inverse .navbar-brand { font-family: "Open sans", helvetica, arial; font-size: 24px; color:white; padding:0 0 0 15px; margin:12px 0 0 0; } | ||
.navbar-inverse .navbar-brand img { margin-top:-8px;} | ||
|
||
.navbar-nav .dropdown-menu { | ||
left:-5px; | ||
font-size: 13px; | ||
background-color: rgba(0, 0, 0, .7); | ||
border: 0px none; | ||
-webkit-border-radius: 0px; -moz-border-radius: 0px; border-radius: 0px; | ||
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); | ||
} | ||
.navbar-nav .dropdown-menu > li > a { color:rgba(255, 255, 255, .7); padding:7px 20px; } | ||
.navbar-nav .dropdown-menu > li > a:hover, | ||
.navbar-nav .dropdown-menu > li > a:focus, | ||
.navbar-nav .dropdown-menu > .active > a:hover{ background: rgba(255, 255, 255, .1); color:white; } | ||
|
||
.navbar-nav .dropdown-menu > .active > a, | ||
.navbar-nav .dropdown-menu > .active > a:focus { background: none; color:#fff; } | ||
|
||
.navbar-nav .btn { border:1px solid rgba(255, 255, 255, .2); margin-left:5px; margin-top:5px; padding-top:10px; padding-bottom:10px; } | ||
|
||
.navbar-nav a.btn:focus, | ||
.navbar-nav a.btn:hover { border:1px solid rgba(255,255,255,.6); } | ||
|
||
.navbar-collapse { border:0 none; border-top:0 none; box-shadow: none; } | ||
@media (max-width: 767px) { | ||
.navbar-collapse ul { text-align: center; width:100%; padding-bottom:10px; } | ||
.navbar-collapse ul .btn{ max-width:50%; margin:0 auto; } | ||
} | ||
|
||
.navbar-static-top, | ||
.navbar-fixed-top, | ||
.navbar-fixed-bottom { border-radius: 0; } | ||
|
||
|
||
|
||
|
||
/*******************************/ | ||
/* Buttons */ | ||
/*******************************/ | ||
.btn-default, .btn-primary, .btn-success, .btn-action | ||
.btn-info, .btn-warning, .btn-danger { | ||
text-shadow: 0 2px 1px rgba(0, 0, 0, .2); | ||
} | ||
|
||
.btn { padding: 10px 40px; font-weight: bold; border:0 none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } | ||
.btn-lg { padding: 15px 65px; font-size: 14px; font-weight:bold; } | ||
.btn-default { text-shadow: none; background:transparent; color:rgba(50,50,50,.5); -webkit-box-shadow:inset 0px 0px 0px 3px rgba(50,50,50,.5); -moz-box-shadow:inset 0px 0px 0px 3px rgba(50,50,50,.5); box-shadow:inset 0px 0px 0px 3px rgba(50,50,50,.5); } | ||
.btn-default:hover, | ||
.btn-default:focus { color:rgba(50,50,50,.8); -webkit-box-shadow:inset 0px 0px 0px 3px rgba(50,50,50,.8); -moz-box-shadow:inset 0px 0px 0px 3px rgba(50,50,50,.8); box-shadow:inset 0px 0px 0px 3px rgba(50,50,50,.8); background: transparent; } | ||
.btn-default:active, | ||
.btn-default.active { color:#333; -webkit-box-shadow:inset 0px 0px 0px 3px #333; -moz-box-shadow:inset 0px 0px 0px 3px #333; box-shadow:inset 0px 0px 0px 3px #333; background: transparent; } | ||
|
||
.btn-action, | ||
.btn-primary { color:#FFEFD7; background-image: -webkit-linear-gradient(top, #FF9B22 0%, #FF8C00 100%); background-image: linear-gradient(to bottom, #FF9B22 0%, #FF8C00 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffFF9B22', endColorstr='#ffFF8C00', GradientType=0); filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); background-repeat: repeat-x; border:0 none; } | ||
.btn-action:hover, | ||
.btn-action:focus { color:#fff; background: #FF9B22; } | ||
.btn-action:active { background: #FF8C00; } | ||
|
||
|
||
/*******************************/ | ||
/* Jumbotron */ | ||
/*******************************/ | ||
.jumbotron { color: inherit; background-color: #F7F5F4; padding-top:30px; padding-bottom:30px; margin-bottom:0; } | ||
.container .jumbotron { -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; padding-left:40px; padding-right:40px; } | ||
.jumbotron p { font-size:inherit; } | ||
.jumbotron h2, .jumbotron h3, .jumbotron h4, | ||
.jumbotron h5, .jumbotron h6 { line-height: 1.3em; } | ||
|
||
|
||
/*******************************/ | ||
/* Images */ | ||
/*******************************/ | ||
.img-rounded { -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.