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
33 changes: 4 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# [Now UI Dashboard Angular](https://creativetimofficial.github.io/now-ui-dashboard-angular) [![version][version-badge]][CHANGELOG] [![license][license-badge]][LICENSE]
# [NewAgility] [![version][version-badge]][CHANGELOG] [![license][license-badge]][LICENSE]

![alt text](https://s3.amazonaws.com/creativetim_bucket/products/85/original/opt_nud_angular_thumbnail.jpg)

**[Now UI Dashboard Angular](https://creativetimofficial.github.io/now-ui-dashboard-angular)** is a responsive Bootstrap 4 kit provided for free by [Invision](https://www.invisionapp.com/) and [Creative Tim](https://www.creative-tim.com/). It combines colors that are easy on the eye, spacious cards, beautiful typography, and graphics. Now UI Dashboard comes packed with all plugins that you might need inside a project and documentation on how to get started. It is light and easy to use, and also very powerful.
**[NewAgility]** is a responsive Bootstrap 4 kit provided for free by [Invision](https://www.invisionapp.com/) and [Creative Tim](https://www.creative-tim.com/). It combines colors that are easy on the eye, spacious cards, beautiful typography, and graphics. Now UI Dashboard comes packed with all plugins that you might need inside a project and documentation on how to get started. It is light and easy to use, and also very powerful.

Now UI Dashboard Angular has the same design characteristics as Now UI Kit Angular, so it is quite convenient to use them together. Or you can choose between them depending on the project at hand. If you love Now UI Kit Angular, you'll love Now UI Dashboard Angular.
NewAgility has the same design characteristics as Now UI Kit Angular, so it is quite convenient to use them together. Or you can choose between them depending on the project at hand. If you love Now UI Kit Angular, you'll love NewAgility.
Create awesome, lifelike prototypes with InVision and Now so your users can experience and give feedback on your vision!


**Bootstrap 4 Support**
Now UI Dashboard Angular is built on top of the much awaited Bootstrap 4. This makes starting a new project very simple. It also provides benefits if you are already working on a Bootstrap 4 project; you can just import the Now UI Dashboard Angular style over it. Most of the elements have been redesigned; but if you are using an element we have not touched, it will fall back to the Bootstrap default.
NewAgility is built on top of the much awaited Bootstrap 4. This makes starting a new project very simple. It also provides benefits if you are already working on a Bootstrap 4 project; you can just import the NewAgility style over it. Most of the elements have been redesigned; but if you are using an element we have not touched, it will fall back to the Bootstrap default.

**Example Pages**
We wanted to fully display the power of this dashboard, so the kit comes packed with examples showing you how to use the components. Inside the product you will find:
Expand All @@ -18,9 +18,6 @@ We wanted to fully display the power of this dashboard, so the kit comes packed

+ [Live Preview](https://creativetimofficial.github.io/now-ui-dashboard-angular)

**Tutorial**
In order for you to easily be able to use the Now UI Dashboard Angular, we have created a tutorial page in our documentation. It shows the structure for the files inside the archive and how to import them. It then features every components with a description and example how to use it. You can see the details [here](https://creativetimofficial.github.io/now-ui-dashboard-angular/documentation/tutorial).

## Terminal Commands

1. Install NodeJs from [NodeJs Official Page](https://nodejs.org/en).
Expand Down Expand Up @@ -136,28 +133,6 @@ Now Ui Dashboard
└── typings
```

## Useful Links

More products from Creative Tim: <http://www.creative-tim.com/bootstrap-themes>

Tutorials: <https://www.youtube.com/channel/UCVyTG4sCw-rOvB9oHkzZD1w>

Freebies: <http://www.creative-tim.com/products>

Affiliate Program (earn money): <http://www.creative-tim.com/affiliates/new>

Social Media:

Twitter: <https://twitter.com/CreativeTim>

Facebook: <https://www.facebook.com/CreativeTim>

Dribbble: <https://dribbble.com/creativetim>

Google+: <https://plus.google.com/+CreativetimPage>

Instagram: <https://instagram.com/creativetimofficial>

[CHANGELOG]: ./CHANGELOG.md
[LICENSE]: ./LICENSE
[version-badge]: https://img.shields.io/badge/version-1.4.0-blue.svg
Expand Down
8,243 changes: 8,242 additions & 1 deletion documentation/css/bootstrap.min.css

Large diffs are not rendered by default.

5,400 changes: 5,397 additions & 3 deletions documentation/js/jquery-3.2.1.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"start": "ng serve -o",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
Expand Down
14 changes: 14 additions & 0 deletions src/app/Clases/actividad.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Cliente } from "./cliente"
import { Empleado } from "./empleado"
import { Precio } from "./precio"

export class Actividad {
id_actividad:number
descripcion_acti:string
fecha_inicio_acti:Date
fecha_fin_acti:Date
cliente:Cliente
empleado:Empleado
precio:Precio

}
7 changes: 7 additions & 0 deletions src/app/Clases/cliente.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export class Cliente {
nrodoc_cli:string
nombre_cli:string
apellidos_cli:string
correo_cli:string
contra_cli:string;
}
9 changes: 9 additions & 0 deletions src/app/Clases/empleado.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export class Empleado {
cod_emp: number
nombre_emp: string
nro_doc_emp: string
cargo_emp: string
correo_emp: string
contra_emp: string

}
6 changes: 6 additions & 0 deletions src/app/Clases/precio.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export class Precio {
id_precio:number
cantidad_precio:number
categoria_precio:number

}
26 changes: 26 additions & 0 deletions src/app/Servicio/actividad.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { Actividad } from '../Clases/actividad';
import { HttpClient } from '@angular/common/http';

@Injectable({
providedIn: 'root'
})
export class ActividadService {
urlBase="http://localhost:8080/gestor-app/"

constructor(private clienteHttp:HttpClient) { }

obtenerActividadLista():Observable<Actividad[]>{
return this.clienteHttp.get<Actividad[]>(`${this.urlBase}/actividades`);
}
obtenerActividad(id:number):Observable<Actividad>{
return this.clienteHttp.get<Actividad>(`${this.urlBase}/actividades/${id}`);
}
agregarActividad(actividad:Actividad):Observable<Actividad>{
return this.clienteHttp.post<Actividad>(`${this.urlBase}/actividades`, actividad);
}
actualizarActividad(actividad:Actividad):Observable<Actividad>{
return this.clienteHttp.put<Actividad>(`${this.urlBase}/actividades/${actividad.id_actividad}`, actividad);
}
}
28 changes: 28 additions & 0 deletions src/app/Servicio/cliente.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { Cliente } from '../Clases/cliente';

@Injectable({
providedIn: 'root'
})
export class ClienteService {


urlBase="http://localhost:8080/gestor-app/"

constructor(private clienteHttp:HttpClient) { }

obtenerClienteLista():Observable<Cliente[]>{
return this.clienteHttp.get<Cliente[]>(`${this.urlBase}/clientes`);
}
obtenerCliente(id:number):Observable<Cliente>{
return this.clienteHttp.get<Cliente>(`${this.urlBase}/clientes/${id}`);
}
agregarCliente(cliente:Cliente):Observable<Cliente>{
return this.clienteHttp.post<Cliente>(`${this.urlBase}/clientes`, cliente);
}
actualizarCliente(cliente:Cliente):Observable<Cliente>{
return this.clienteHttp.put<Cliente>(`${this.urlBase}/clientes/${cliente.nrodoc_cli}`, cliente);
}
}
27 changes: 27 additions & 0 deletions src/app/Servicio/empleado.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { Empleado } from '../Clases/empleado';

@Injectable({
providedIn: 'root'
})
export class EmpleadoService {

urlBase="http://localhost:8080/gestor-app/"

constructor(private clienteHttp:HttpClient) { }

obtenerEmpleadoLista():Observable<Empleado[]>{
return this.clienteHttp.get<Empleado[]>(`${this.urlBase}/empleados`);
}
obtenerEmpleado(id:number):Observable<Empleado>{
return this.clienteHttp.get<Empleado>(`${this.urlBase}/empleados/${id}`);
}
agregarEmpleado(empleado:Empleado):Observable<Empleado>{
return this.clienteHttp.post<Empleado>(`${this.urlBase}/empleados`, empleado);
}
actualizarEmpleado(empleado:Empleado):Observable<Empleado>{
return this.clienteHttp.put<Empleado>(`${this.urlBase}/empleados/${empleado.cod_emp}`, empleado);
}
}
35 changes: 35 additions & 0 deletions src/app/Servicio/precio.service.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { Cliente } from '../Clases/cliente';
import { Precio } from '../Clases/precio';

@Injectable({
providedIn: 'root'
})
export class PrecioService {

urlBase="http://localhost:8080/gestor-app/"

constructor(private clienteHttp:HttpClient) { }

obtenerPrecioLista():Observable<Precio[]>{
return this.clienteHttp.get<Precio[]>(`${this.urlBase}/precios`);
}
obtenerPrecio(id:number):Observable<Precio>{
return this.clienteHttp.get<Precio>(`${this.urlBase}/precios/${id}`);
}
agregarPrecio(precio:Precio):Observable<Precio>{
return this.clienteHttp.post<Precio>(`${this.urlBase}/precios`, precio);
}
actualizarPrecio(precio:Precio):Observable<Precio>{
return this.clienteHttp.put<Precio>(`${this.urlBase}/precios/${precio.id_precio}`, precio);
}







}
53 changes: 27 additions & 26 deletions src/app/app.routing.ts
Original file line number Diff line number Diff line change
@@ -1,36 +1,37 @@
import { NgModule } from '@angular/core';
import { CommonModule, } from '@angular/common';
import { BrowserModule } from '@angular/platform-browser';
import { Routes, RouterModule } from '@angular/router';
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { BrowserModule } from "@angular/platform-browser";
import { Routes, RouterModule } from "@angular/router";

import { AdminLayoutComponent } from './layouts/admin-layout/admin-layout.component';
import { AdminLayoutComponent } from "./layouts/admin-layout/admin-layout.component";

const routes: Routes =[
const routes: Routes = [
{
path: '',
redirectTo: 'dashboard',
pathMatch: 'full',
}, {
path: '',
path: "",
redirectTo: "dashboard",
pathMatch: "full",
},
{
path: "",
component: AdminLayoutComponent,
children: [
{
path: '',
loadChildren: () => import('./layouts/admin-layout/admin-layout.module').then(x=>x.AdminLayoutModule)
}]},
{
path: "",
loadChildren: () =>
import("./layouts/admin-layout/admin-layout.module").then(
(x) => x.AdminLayoutModule
),
},
],
},
{
path: '**',
redirectTo: 'dashboard'
}
path: "**",
redirectTo: "dashboard",
},
];

@NgModule({
imports: [
CommonModule,
BrowserModule,
RouterModule.forRoot(routes)
],
exports: [
],
imports: [CommonModule, BrowserModule, RouterModule.forRoot(routes)],
exports: [],
})
export class AppRoutingModule { }
export class AppRoutingModule {}
6 changes: 6 additions & 0 deletions src/app/components/sidebar/sidebar.component.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.sidebar-wrapper{
background-color: black;
}
.logo{
background-color: black;
}
4 changes: 2 additions & 2 deletions src/app/components/sidebar/sidebar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<div class="logo">
<a href="https://www.creative-tim.com" class="simple-text logo-mini">
<div class="logo-img">
<img src="./assets/img/angular2-logo-white.png"/>
<img src="./assets/img/sidebar_logo.jpeg"/>
</div>
</a>
<a href="https://www.creative-tim.com" class="simple-text logo-normal">
Creative Tim
New Agility
</a>
</div>
<div class="sidebar-wrapper">
Expand Down
Binary file added src/assets/img/NewAgility_logo.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/Theme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/assets/img/favicon.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/sidebar_logo.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.