Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
21 changes: 21 additions & 0 deletions Juan Manuel Abraciano/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.DS_Store
node_modules
/dist

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw*
26 changes: 26 additions & 0 deletions Juan Manuel Abraciano/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# tp7

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Run your tests
```
npm run test
```

### Lints and fixes files
```
npm run lint
```
5 changes: 5 additions & 0 deletions Juan Manuel Abraciano/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/app'
]
}
12,271 changes: 12,271 additions & 0 deletions Juan Manuel Abraciano/package-lock.json

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions Juan Manuel Abraciano/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "tp7",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"vue": "^2.5.17"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.0.4",
"@vue/cli-plugin-eslint": "^3.0.4",
"@vue/cli-service": "^3.0.4",
"vue-template-compiler": "^2.5.17"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"rules": {},
"parserOptions": {
"parser": "babel-eslint"
}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}
17 changes: 17 additions & 0 deletions Juan Manuel Abraciano/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>TP7</title>
</head>
<body>
<noscript>
<strong>We're sorry but TP7 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
46 changes: 46 additions & 0 deletions Juan Manuel Abraciano/src/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<template>
<div id="app">
<el-row>
<el-col :span="4">
<div class="margen">&nbsp;</div>
</el-col>
<el-col :span="4">
<el-menu
default-active="1"
class="el-menu-vertical-demo"
style="height:100vh">
<el-menu-item index="1" style="margin-top:60px">
<i class=""></i>
<router-link to="/"><span class="menu-item">Home</span></router-link>
</el-menu-item>

<el-menu-item index="1">
<i class=""></i>
<router-link to="/lista"><span class="menu-item">Personas</span></router-link>
</el-menu-item>

<el-menu-item index="1">
<i class=""></i>
<router-link :to="{ name: 'formPersona', params: { id: -1 }}"><span class="menu-item">Crear persona</span></router-link>
</el-menu-item>
</el-menu>
</el-col>
<el-col :span="12" style="margin-bottom:25px; margin-top: 60px;">
<router-view/>
</el-col>
<el-col :span="4">
<div class="margen">&nbsp;</div>
</el-col>
</el-row>
</div>
</template>

<script>
import '@/assets/styles.css'
export default {
name: 'app',
data(){
return{}
}
}
</script>
Binary file added Juan Manuel Abraciano/src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
84 changes: 84 additions & 0 deletions Juan Manuel Abraciano/src/assets/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/*Begin TEMPLATES*/
#app {
display: table;
position: absolute;
height: 100%;
width: 100%;
vertical-align: middle;
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
}
.el-card{
margin-bottom: 20px;
margin-left: auto;
margin-right: auto;
width: 600px;
}
.margen{
background-color:#409EFF;
height:100vh
}
/*End TEMPLATES*/

/*Begin CARDS*/
.el-card h2{
margin: 0px 10px 0px 0px;
display: inline;
}
.el-card__body{
padding: 5px !important;
height: 28px;
}
.el-card button{
padding: 6px 20px;
}
/*End CARDS*/

.el-menu-item {
border-bottom:1px solid grey;
margin:0px 20px 0px 20px;
}
.menu-item{
text-decoration: none;
font-weight: bold;
font-size:20px;
color:black;
}
.menu-item:hover{
color:rgb(28, 166, 247);
}
a {
text-decoration: none;
}

.el-form-item__label{
font-weight: bold;
}

/*Begin CONTROLS*/
.control-link{
color:blue;
font-weight: bold;
text-decoration:none;
}
.control-link:hover{
color:lightseagreen;
text-decoration:none;
cursor: pointer;
}
.control-link:visited{
color:blue;
text-decoration:none;
}
.control-link:visited:hover{
color:lightseagreen;
text-decoration:none;
}

.description-link{
font-style: italic;
}
/*End CONTROLS*/
13 changes: 13 additions & 0 deletions Juan Manuel Abraciano/src/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.config.productionTip = false
Vue.use(ElementUI);

new Vue({
router,
render: h => h(App)
}).$mount('#app')
38 changes: 38 additions & 0 deletions Juan Manuel Abraciano/src/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "tp7",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"vue": "^2.5.17"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.0.4",
"@vue/cli-plugin-eslint": "^3.0.4",
"@vue/cli-service": "^3.0.4",
"vue-template-compiler": "^2.5.17"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"rules": {},
"parserOptions": {
"parser": "babel-eslint"
}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}
35 changes: 35 additions & 0 deletions Juan Manuel Abraciano/src/router.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/home.vue'
import Lista from './views/lista.vue'
import FormPersona from './views/form-persona.vue'
import EliminarPersona from './views/eliminar-persona.vue'

Vue.use(Router)

export default new Router({
mode: 'history',
base: process.env.BASE_URL,
routes: [
{
path: '/',
name: 'home',
component: Home
},
{
path: '/lista',
name: 'lista',
component: Lista
},
{
path: '/form-persona/:id',
name: 'formPersona',
component: FormPersona
},
{
path: '/eliminar-persona/:id',
name: 'eliminarPersona',
component: EliminarPersona
}
]
})
Loading