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
import React, { Component } from "react"; | |
import logo from "./logo.svg"; | |
import "./App.css"; | |
import ToDO from "./pages/todo"; | |
import { Provider as ReduxProvider } from "react-redux"; | |
import configureStore from "./modules/store"; | |
const reduxStore = configureStore(window.REDUX_INITIAL_DATA); | |
class App extends Component { |
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
import React, { Component } from "react"; | |
import { | |
withStyles, | |
List, | |
ListItem, | |
ListItemSecondaryAction, | |
ListItemText, | |
IconButton, | |
Grid, | |
TextField, |
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
import { createStore, applyMiddleware } from "redux"; | |
// Logger with default options | |
import logger from "redux-logger"; | |
import reducer from "./reducer"; | |
export default function configureStore(initialState) { | |
const store = createStore(reducer, initialState, applyMiddleware(logger)); | |
return store; |
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
import ACTIONS from "./action"; | |
import _ from "lodash"; | |
const defaultState = { | |
items: [] | |
}; | |
const todoReducer = (state = defaultState, action) => { | |
switch (action.type) { | |
case ACTIONS.Types.CREATE_ITEM: { |
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
// types of action | |
const Types = { | |
CREATE_ITEM: "CREATE_ITEM", | |
DELETE_ITEM: "DELETE_ITEM" | |
}; | |
// actions | |
const createItem = task => ({ | |
type: Types.CREATE_ITEM, | |
payload: task | |
}); |
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
import { Switch, Route, Redirect } from "react-router-dom"; | |
export const PrivateRoute = ({ component: Component, ...rest }) => ( | |
<Route | |
{...rest} | |
render={props => | |
props.isLoggedIn === true ? ( | |
<Component {...props} /> | |
) : ( | |
<Redirect |
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
// This file is released under the 3-clause BSD license. See COPYING-BSD. | |
function builder_gw_c() | |
includes_src_c = ilib_include_flag(get_absolute_file_path("builder_gateway_c.sce") + "../../src/c"); | |
// PutLhsVar managed by user in sci_sum and in sci_sub | |
// if you do not this variable, PutLhsVar is added | |
// in gateway generated (default mode in scilab 4.x and 5.x) | |
WITHOUT_AUTO_PUTLHSVAR = %t; |
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
addinter(libbuild_lib_path + filesep() + 'libbuild_lib' + getdynlibext(), 'libbuild_lib', list_functions); | |
Link failed for dynamic library '/home/dhanraj/gsoc/scilab/scilab/scilab/modules/sha256//libbuild_lib.so'. | |
An error occurred: /home/dhanraj/gsoc/scilab/scilab/scilab/modules/sha256//libbuild_lib.so: undefined symbol: sha256 | |
Link failed for dynamic library '/home/dhanraj/gsoc/scilab/scilab/scilab/modules/sha256//libbuild_lib.so'. | |
An error occurred: /home/dhanraj/gsoc/scilab/scilab/scilab/modules/sha256//libbuild_lib.so: undefined symbol: sha256 | |
at line 15 of executed file /home/dhanraj/gsoc/scilab/scilab/scilab/modules/sha256/loader.sce | |
addinter: The shared archive was not loaded: (null) |