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 logo from './logo.svg'; | |
import './App.css'; | |
import AgregarTareaContainer from './containers/agregarTareaContainer' | |
function App() { | |
return ( | |
<div className="App"> | |
<header className="App-header"> | |
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 from 'react' | |
const agregarTareaPresentational = ({ fusion_agregarTarea }) => { | |
let input | |
return ( | |
<div> | |
<form onSubmit={e => { | |
e.preventDefault() |
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 { connect } from 'react-redux' | |
import { agregarTarea } from '../actions' | |
import agregarTareaPresentational from '../presentationals/agregarTareaPresentational' | |
const mapDispatchToProps = dispatch => ({ | |
fusion_agregarTarea: text => dispatch(agregarTarea(text)) | |
}) | |
export default connect( | |
null |
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 from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
import App from './App'; | |
import reportWebVitals from './reportWebVitals'; | |
import { createStore } from 'redux' | |
import rootReducer from './reducers' | |
import { Provider } from 'react-redux' |
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
let nextTodoId = 0 | |
export const agregarTarea = tarea => ({ | |
type: "AGREGAR_TAREA" | |
, id: nextTodoId++ | |
, text: tarea | |
}) |
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 from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
import App from './App'; | |
import reportWebVitals from './reportWebVitals'; | |
import { createStore } from 'redux' | |
import rootReducer from './reducers' | |
import {agregarTarea} from './actions' |
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 from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
import App from './App'; | |
import reportWebVitals from './reportWebVitals'; | |
import { createStore } from 'redux' | |
import rootReducer from './reducers' | |
// Creamos el store al pasar el reducer raiz |
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
const tareas = (state = [], action) => { | |
switch (action.type) { | |
case 'AGREGAR_TAREA': | |
return [ | |
...state, | |
{ | |
id: action.id, | |
text: action.text | |
} | |
] |
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 part of IVRE. | |
# Copyright 2011 - 2019 Pierre LALET <pierre.lalet@cea.fr> | |
# | |
# IVRE is free software: you can redistribute it and/or modify it | |
# under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# IVRE is distributed in the hope that it will be useful, but WITHOUT | |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
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
version: '3' | |
services: | |
ms: | |
restart: always | |
image: metasploitframework/metasploit-framework:latest | |
environment: | |
DATABASE_URL: postgres://postgres@db:5432/msf?pool=200&timeout=5 | |
links: | |
- db | |
ports: |