Skip to content

Commit c29e920

Browse files
committed
Initial public release
1 parent 7462fc3 commit c29e920

File tree

134 files changed

+9736
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+9736
-0
lines changed

Diff for: .appveyor.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 1.0.{build}
2+
environment:
3+
COVERALLS_REPO_TOKEN: ab4LZQwXbVRwQIn0MEHqaaOjidqu78RFQ
4+
COVERALLS_SERVICE_NAME: appveyor
5+
shallow_clone: true
6+
build_script:
7+
- ps: >-
8+
Install-Product node 0.12.0 x64
9+
10+
npm install -g gulp
11+
12+
npm cache clean
13+
14+
npm install
15+
16+
gulp flow-win
17+
18+
gulp test --release
19+
20+
gulp coveralls

Diff for: .eslintrc

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"node": true
5+
},
6+
"rules": {
7+
"new-cap": false,
8+
"quotes": false,
9+
"no-underscore-dangle": false,
10+
"no-multi-str": false,
11+
"no-use-before-define": false,
12+
"no-unused-vars": [2, "all"],
13+
"no-mixed-requires": [1, true],
14+
"max-len": [1, 80, 4]
15+
}
16+
}

Diff for: .flowconfig

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[include]
2+
./node_modules/immutable
3+
./node_modules/react
4+
./src

Diff for: .gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
bower_components
3+
lib
4+
**/build
5+
test/reports
6+
dist

Diff for: .npmignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
src
2+
**/build
3+
webpack.config.js
4+
LICENSE
5+
.eslintrc
6+
test
7+
gulp
8+
examples
9+
coveralls.yml
10+
gulpfile.js
11+
config

Diff for: LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2014 Prometheus Research
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

Diff for: addons.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("./dist/ReactGridWithAddons");

Diff for: bower.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "adazzle-react-grid",
3+
"main": "index.js",
4+
"version": "0.12.7",
5+
"homepage": "https://github.com/adazzle/react-grid",
6+
"authors": [
7+
"malonecj <[email protected]>"
8+
],
9+
"description": "Excel-like grid component built with React, with editors, keyboard navigation, copy & paste, and the like",
10+
"license": "MIT",
11+
"ignore": [
12+
"gulp",
13+
"node_modules",
14+
"bower_components",
15+
"test",
16+
"tests",
17+
"src",
18+
"coveralls.yml",
19+
"gulpfile.js",
20+
"webpack.config.js",
21+
".npmignore",
22+
".gitignore",
23+
".eslintrc",
24+
"examples",
25+
"config"
26+
]
27+
}

Diff for: config/karma.js

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
2+
/*!
3+
* Facebook React Starter Kit | https://github.com/kriasoft/react-starter-kit
4+
* Copyright (c) KriaSoft, LLC. All rights reserved. See LICENSE.txt
5+
*/
6+
7+
/*
8+
* Karma configuration. For more information visit
9+
* http://karma-runner.github.io/0.12/config/configuration-file.html
10+
*/
11+
12+
'use strict';
13+
14+
var webpackConfig = require('../webpack.config.js');
15+
var RewirePlugin = require("rewire-webpack");
16+
var path = require('path');
17+
var argv = require('minimist')(process.argv.slice(2));
18+
var RELEASE = !!argv.release;
19+
20+
21+
module.exports = function (config) {
22+
config.set({
23+
24+
basePath: __dirname,
25+
26+
files: [
27+
'../node_modules/es5-shim/es5-shim.js',
28+
'../node_modules/es5-shim/es5-sham.js',
29+
'../node_modules/es6-shim/es6-shim.js',
30+
'../test/Grid.spec.js'
31+
],
32+
33+
preprocessors: {
34+
'../test/Grid.spec.js': ['webpack']
35+
},
36+
37+
webpack: {
38+
cache: true,
39+
module: {
40+
loaders: webpackConfig.module.loaders,
41+
postLoaders: RELEASE === true ? [ { // Do coverage for postloader
42+
test: /\.(js|jsx)$/,
43+
exclude: /node_modules/,
44+
loader: 'istanbul-instrumenter'
45+
} ] : []
46+
},
47+
plugins: [
48+
new RewirePlugin()
49+
]
50+
},
51+
52+
browserNoActivityTimeout: 1000000,
53+
54+
// coverage reporter generates the coverage
55+
reporters: ['junit', 'progress', 'coverage'],
56+
57+
coverageReporter: {
58+
// specify a common output directory
59+
dir: '../test/reports/coverage',
60+
reporters: [
61+
// reporters not supporting the `file` property
62+
{ type: 'html', subdir: 'report-html' },
63+
{ type: 'lcov', subdir: 'report-lcov' }
64+
]
65+
},
66+
67+
// the default configuration
68+
junitReporter: {
69+
outputFile: '../test/reports/test-results.xml',
70+
suite: ''
71+
},
72+
73+
webpackServer: {
74+
stats: {
75+
colors: true
76+
}
77+
},
78+
79+
autoWatch: false,
80+
81+
singleRun: true,
82+
83+
frameworks: ['jasmine'],
84+
85+
browsers: ['Chrome'],
86+
87+
plugins: [
88+
'karma-chrome-launcher',
89+
'karma-firefox-launcher',
90+
'karma-phantomjs-launcher',
91+
'karma-jasmine',
92+
'karma-webpack',
93+
'karma-coverage',
94+
'karma-junit-reporter'
95+
]
96+
97+
});
98+
};

Diff for: config/webpack.config.js

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
var path = require("path");
2+
var webpack = require('webpack');
3+
var release = false;
4+
var path = require("path");
5+
6+
module.exports = {
7+
entry: {
8+
'ReactGrid' : './src/index',
9+
'ReactGridWithAddons' : './src/addons/index'
10+
},
11+
output: {
12+
path: path.join(__dirname, "../dist"),
13+
filename: "[name].js",
14+
library: ["ReactGrid"],
15+
libraryTarget: "umd"
16+
},
17+
externals: {
18+
"react/addons": {
19+
root : 'React',
20+
commonjs : 'react/addons',
21+
commonjs2 : 'react/addons',
22+
amd : 'react/addons'
23+
},
24+
"moment" : "moment"
25+
},
26+
module: {
27+
loaders: [
28+
{ test: /\.js$/, loader: 'jsx-loader?stripTypes&harmony' } // loaders can take parameters as a querystring
29+
]
30+
},
31+
plugins: [
32+
new webpack.optimize.DedupePlugin(),
33+
new webpack.optimize.OccurenceOrderPlugin(),
34+
new webpack.optimize.AggressiveMergingPlugin()
35+
],
36+
postLoaders: [
37+
{
38+
test: /\.js$/,
39+
exclude: /node_modules|testData/,
40+
loader: 'jshint'
41+
}]
42+
}

Diff for: coveralls.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
repo_token: ab4LZQwXbVRwQIn0MEHqaaOjidqu78RFQ

Diff for: examples/assets/css/bootstrap-theme.css

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
/*******************************/
2+
/* Navigatioin */
3+
/*******************************/
4+
.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;}
5+
.navbar-inverse *:focus { outline: 0; }
6+
@media (max-width: 767px) {
7+
.navbar-inverse { background:rgba(0,0,0,.9); }
8+
}
9+
10+
.navbar-inverse .navbar-nav > li > a,
11+
.navbar-inverse .navbar-nav > .open ul > a { color:rgba(255, 255, 255, .4); }
12+
13+
.navbar-inverse .navbar-nav > .active > a,
14+
.navbar-inverse .navbar-nav > .active > a:hover,
15+
.navbar-inverse .navbar-nav > .active > a:focus { color: #fff; background:none ; }
16+
.navbar-inverse .navbar-nav > .open > a{ background:none; color:white; }
17+
18+
.navbar-inverse .navbar-nav>li>a:hover,
19+
.navbar-inverse .navbar-nav>li>a:focus,
20+
.navbar-inverse .navbar-nav>.open>a:hover,
21+
.navbar-inverse .navbar-nav>.open>a:focus { background:none; color:white; }
22+
23+
.navbar-inverse .navbar-nav > .active > a { background:none; color:white; }
24+
25+
.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; }
26+
.navbar-inverse .navbar-brand img { margin-top:-8px;}
27+
28+
.navbar-nav .dropdown-menu {
29+
left:-5px;
30+
font-size: 13px;
31+
background-color: rgba(0, 0, 0, .7);
32+
border: 0px none;
33+
-webkit-border-radius: 0px; -moz-border-radius: 0px; border-radius: 0px;
34+
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
35+
}
36+
.navbar-nav .dropdown-menu > li > a { color:rgba(255, 255, 255, .7); padding:7px 20px; }
37+
.navbar-nav .dropdown-menu > li > a:hover,
38+
.navbar-nav .dropdown-menu > li > a:focus,
39+
.navbar-nav .dropdown-menu > .active > a:hover{ background: rgba(255, 255, 255, .1); color:white; }
40+
41+
.navbar-nav .dropdown-menu > .active > a,
42+
.navbar-nav .dropdown-menu > .active > a:focus { background: none; color:#fff; }
43+
44+
.navbar-nav .btn { border:1px solid rgba(255, 255, 255, .2); margin-left:5px; margin-top:5px; padding-top:10px; padding-bottom:10px; }
45+
46+
.navbar-nav a.btn:focus,
47+
.navbar-nav a.btn:hover { border:1px solid rgba(255,255,255,.6); }
48+
49+
.navbar-collapse { border:0 none; border-top:0 none; box-shadow: none; }
50+
@media (max-width: 767px) {
51+
.navbar-collapse ul { text-align: center; width:100%; padding-bottom:10px; }
52+
.navbar-collapse ul .btn{ max-width:50%; margin:0 auto; }
53+
}
54+
55+
.navbar-static-top,
56+
.navbar-fixed-top,
57+
.navbar-fixed-bottom { border-radius: 0; }
58+
59+
60+
61+
62+
/*******************************/
63+
/* Buttons */
64+
/*******************************/
65+
.btn-default, .btn-primary, .btn-success, .btn-action
66+
.btn-info, .btn-warning, .btn-danger {
67+
text-shadow: 0 2px 1px rgba(0, 0, 0, .2);
68+
}
69+
70+
.btn { padding: 10px 40px; font-weight: bold; border:0 none; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; }
71+
.btn-lg { padding: 15px 65px; font-size: 14px; font-weight:bold; }
72+
.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); }
73+
.btn-default:hover,
74+
.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; }
75+
.btn-default:active,
76+
.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; }
77+
78+
.btn-action,
79+
.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; }
80+
.btn-action:hover,
81+
.btn-action:focus { color:#fff; background: #FF9B22; }
82+
.btn-action:active { background: #FF8C00; }
83+
84+
85+
/*******************************/
86+
/* Jumbotron */
87+
/*******************************/
88+
.jumbotron { color: inherit; background-color: #F7F5F4; padding-top:30px; padding-bottom:30px; margin-bottom:0; }
89+
.container .jumbotron { -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; padding-left:40px; padding-right:40px; }
90+
.jumbotron p { font-size:inherit; }
91+
.jumbotron h2, .jumbotron h3, .jumbotron h4,
92+
.jumbotron h5, .jumbotron h6 { line-height: 1.3em; }
93+
94+
95+
/*******************************/
96+
/* Images */
97+
/*******************************/
98+
.img-rounded { -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; }

Diff for: examples/assets/css/bootstrap.min.css

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)