Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
17c268c
Moved from webpack to nwb
easeq Mar 11, 2019
7c64e16
Changed from FlutterTable to ReduxDatatable
easeq Mar 13, 2019
c7b7b55
Demo setup (incomplete)
easeq Mar 13, 2019
11cdf7f
Update dependencies
easeq Mar 13, 2019
99d021c
Fixed Pagination shown when no results
easeq Mar 13, 2019
43aea2f
Updated demo
easeq Mar 13, 2019
97d5ddd
Updates
easeq Mar 14, 2019
6df3e93
Update dependencies
easeq Mar 14, 2019
54e3918
Updated demo
easeq Mar 14, 2019
14b0981
Update dependencies
easeq Mar 16, 2019
ea2fc48
Update
easeq Mar 16, 2019
319dc07
Added pagination styles
easeq Mar 17, 2019
990f3f0
Added styled bootstrap components
easeq Mar 17, 2019
25d972f
Updated toolbar to styled
easeq Mar 17, 2019
b8847b8
Update
easeq Mar 18, 2019
4129616
Update
easeq Mar 19, 2019
a80d78e
Update with working Body
easeq Mar 19, 2019
b85dd4e
Pagination update.
easeq Mar 20, 2019
4bc2377
Removed redundant code.
easeq Mar 20, 2019
8a27ba4
Fixed Limiter
easeq Mar 20, 2019
ac07795
Added default limit.
easeq Mar 20, 2019
c1735fe
Fixed shouldComponentUpdate
easeq Mar 20, 2019
33b5616
Removed usage of withTableConfig HOC in Toolbar
easeq Mar 20, 2019
30e2313
Completed Pagination, Toolbar (connect removal remaining)
easeq Mar 21, 2019
2ba3391
Update
easeq Mar 21, 2019
50f28b1
Update
easeq Mar 21, 2019
d66015f
Removed redundant code
easeq Mar 23, 2019
62999d2
Update
easeq Mar 23, 2019
b535c51
Fixed table styling
easeq Mar 24, 2019
78e203c
Removed object.assign
easeq Mar 24, 2019
197f83e
Fixed windowing
easeq Mar 24, 2019
f7129b3
Fixed default limit and added margin to Pagination
easeq Mar 24, 2019
abdd3dc
Added padding between number type filters
easeq Mar 24, 2019
71e007b
Added background style to row
easeq Mar 24, 2019
d24f391
Customizable table cell width
easeq Mar 24, 2019
81d09fb
Added even row boolean attribute to Row element
easeq Mar 24, 2019
3a8f637
Fixed header sorter and remove redundant code
easeq Mar 24, 2019
85e7617
Fixed filterer
easeq Mar 25, 2019
94703d0
Removed redundant code
easeq Mar 25, 2019
7a86c07
Send selected extra props to row elements.
easeq Mar 25, 2019
cf9ea78
Update utils.js
easeq Mar 25, 2019
de1fa88
Fixed row selection
easeq Mar 25, 2019
e6369e4
Handle actions using redux-thunk (experimental)
easeq Mar 26, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .babelrc

This file was deleted.

6 changes: 6 additions & 0 deletions .gitignore
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/coverage
/demo/dist
/es
/lib
/node_modules
/umd
npm-debug.log*
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
sudo: false

language: node_js
node_js:
- 8

before_install:
- npm install codecov.io coveralls

after_success:
- cat ./coverage/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

branches:
only:
- master
22 changes: 22 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Prerequisites

[Node.js](http://nodejs.org/) >= 6 must be installed.

## Installation

- Running `npm install` in the component's root directory will install everything you need for development.

## Demo Development Server

- `npm start` will run a development server with the component's demo app at [http://localhost:3000](http://localhost:3000) with hot module reloading.

## Running Tests

- `npm test` will run the tests once.
- `npm run test:coverage` will run the tests and produce a coverage report in `coverage/`.
- `npm run test:watch` will run the tests on every change.

## Building

- `npm run build` will build the component for publishing to npm and also bundle the demo app.
- `npm run clean` will delete built resources.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# @flipbyte/redux-datatable

[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]
[![Coveralls][coveralls-badge]][coveralls]

Describe @flipbyte/redux-datatable here.

[build-badge]: https://img.shields.io/travis/user/repo/master.png?style=flat-square
[build]: https://travis-ci.org/user/repo

[npm-badge]: https://img.shields.io/npm/v/npm-package.png?style=flat-square
[npm]: https://www.npmjs.org/package/npm-package

[coveralls-badge]: https://img.shields.io/coveralls/user/repo/master.png?style=flat-square
[coveralls]: https://coveralls.io/github/user/repo
2,610 changes: 0 additions & 2,610 deletions build/index.js

This file was deleted.

197 changes: 0 additions & 197 deletions build/main.css

This file was deleted.

12 changes: 12 additions & 0 deletions demo/src/ExampleTableContainer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React, { Component } from 'react';
import { render } from 'react-dom';
import ReduxDatatable from '../../src';
import config from './config';

const ExampleTableContainer = ({ title, className, id, ...tableProps }) =>
<div id={ id } className="form-container">
<h5 className="card-title">{ title }</h5>
<ReduxDatatable reducerName={ config.tableReducerName } { ...tableProps } />
</div>

export default ExampleTableContainer;
12 changes: 12 additions & 0 deletions demo/src/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { reducer, epics } from '../../src';

export default {
tableReducerName: 'reduxDatatable',
reducers: {
reduxDatatable: reducer
},
epics: {
pageTableFetchDataEpic: epics.fetchDataEpic,
pageTableSetParamsEpic: epics.setParamsEpic
}
}
71 changes: 71 additions & 0 deletions demo/src/css/simple-sidebar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/*!
* Start Bootstrap - Simple Sidebar (https://startbootstrap.com/template-overviews/simple-sidebar)
* Copyright 2013-2019 Start Bootstrap
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-simple-sidebar/blob/master/LICENSE)
*/
body {
overflow-x: hidden;
}

#sidebar-wrapper {
min-height: 100vh;
margin-left: -15rem;
-webkit-transition: margin .25s ease-out;
-moz-transition: margin .25s ease-out;
-o-transition: margin .25s ease-out;
transition: margin .25s ease-out;
height: 100%;
position: fixed;
z-index: 1;
top: 0;
left: 0;
overflow-x: hidden;
}

#sidebar-wrapper .sidebar-heading {
padding: 0.875rem 1.25rem;
font-size: 1.2rem;
}

#sidebar-wrapper .list-group {
width: 15rem;
}

#page-content-wrapper {
min-width: 100vw;
margin-left: 0;
}

.content {
position: fixed;
overflow: scroll;
height: 100%;
top: 60px;
}

#wrapper.toggled #sidebar-wrapper {
margin-left: 0;
}

@media (min-width: 768px) {
#sidebar-wrapper {
margin-left: 0;
}

#page-content-wrapper {
min-width: 0;
width: 100%;
margin-left: 15rem;
}

.content {
position: relative;
height: auto;
overflow: none;
top: auto;
}

#wrapper.toggled #sidebar-wrapper {
margin-left: -15rem;
}
}
Loading