funny time trying bootstrap
This commit is contained in:
parent
d6bb18c431
commit
169173c933
@ -23,6 +23,8 @@
|
|||||||
"src/assets"
|
"src/assets"
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
|
"./node_modules/bootstrap/dist/css/bootstrap.min.css",
|
||||||
|
"./node_modules/ngx-bootstrap/datepicker/bs-datepicker.css",
|
||||||
"src/styles.css"
|
"src/styles.css"
|
||||||
],
|
],
|
||||||
"scripts": []
|
"scripts": []
|
||||||
@ -79,6 +81,8 @@
|
|||||||
"tsConfig": "src/tsconfig.spec.json",
|
"tsConfig": "src/tsconfig.spec.json",
|
||||||
"karmaConfig": "src/karma.conf.js",
|
"karmaConfig": "src/karma.conf.js",
|
||||||
"styles": [
|
"styles": [
|
||||||
|
"./node_modules/bootstrap/dist/css/bootstrap.min.css",
|
||||||
|
"./node_modules/ngx-bootstrap/datepicker/bs-datepicker.css",
|
||||||
"src/styles.css"
|
"src/styles.css"
|
||||||
],
|
],
|
||||||
"scripts": [],
|
"scripts": [],
|
||||||
|
|||||||
1920
models/Home.jsp
Normal file
1920
models/Home.jsp
Normal file
File diff suppressed because it is too large
Load Diff
3195
package-lock.json
generated
3195
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -19,7 +19,11 @@
|
|||||||
"@angular/platform-browser": "~7.1.0",
|
"@angular/platform-browser": "~7.1.0",
|
||||||
"@angular/platform-browser-dynamic": "~7.1.0",
|
"@angular/platform-browser-dynamic": "~7.1.0",
|
||||||
"@angular/router": "~7.1.0",
|
"@angular/router": "~7.1.0",
|
||||||
|
"bootstrap": "^4.3.1",
|
||||||
"core-js": "^2.5.4",
|
"core-js": "^2.5.4",
|
||||||
|
"jquery": "^3.3.1",
|
||||||
|
"ngx-bootstrap": "^3.2.0",
|
||||||
|
"popper": "^1.0.1",
|
||||||
"rxjs": "~6.3.3",
|
"rxjs": "~6.3.3",
|
||||||
"tslib": "^1.9.0",
|
"tslib": "^1.9.0",
|
||||||
"zone.js": "~0.8.26"
|
"zone.js": "~0.8.26"
|
||||||
|
|||||||
@ -1,10 +1,21 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
import { HomePageComponent } from './home-page/home-page.component';
|
||||||
|
|
||||||
const routes: Routes = [];
|
const routes: Routes =
|
||||||
|
[
|
||||||
|
{ path : 'home', component: HomePageComponent },
|
||||||
|
{ path : '', redirectTo: 'home', pathMatch: 'full'}
|
||||||
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forRoot(routes)],
|
imports:
|
||||||
exports: [RouterModule]
|
[
|
||||||
|
RouterModule.forRoot(routes)
|
||||||
|
],
|
||||||
|
exports:
|
||||||
|
[
|
||||||
|
RouterModule
|
||||||
|
]
|
||||||
})
|
})
|
||||||
export class AppRoutingModule { }
|
export class AppRoutingModule { }
|
||||||
|
|||||||
@ -1,21 +1 @@
|
|||||||
<!--The content below is only a placeholder and can be replaced.-->
|
|
||||||
<div style="text-align:center">
|
|
||||||
<h1>
|
|
||||||
Welcome toto {{ title }}!
|
|
||||||
</h1>
|
|
||||||
<img width="300" alt="Angular Logo" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgMzBMMzEuOSA2My4ybDE0LjIgMTIzLjFMMTI1IDIzMGw3OC45LTQzLjcgMTQuMi0xMjMuMXoiIC8+CiAgICA8cGF0aCBmaWxsPSIjQzMwMDJGIiBkPSJNMTI1IDMwdjIyLjItLjFWMjMwbDc4LjktNDMuNyAxNC4yLTEyMy4xTDEyNSAzMHoiIC8+CiAgICA8cGF0aCAgZmlsbD0iI0ZGRkZGRiIgZD0iTTEyNSA1Mi4xTDY2LjggMTgyLjZoMjEuN2wxMS43LTI5LjJoNDkuNGwxMS43IDI5LjJIMTgzTDEyNSA1Mi4xem0xNyA4My4zaC0zNGwxNy00MC45IDE3IDQwLjl6IiAvPgogIDwvc3ZnPg==">
|
|
||||||
</div>
|
|
||||||
<h2>Here are some links to help you start: </h2>
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<h2><a target="_blank" rel="noopener" href="https://angular.io/tutorial">Tour of Heroes</a></h2>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<h2><a target="_blank" rel="noopener" href="https://angular.io/cli">CLI Documentation</a></h2>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<h2><a target="_blank" rel="noopener" href="https://blog.angular.io/">Angular blog</a></h2>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
|
|||||||
@ -3,14 +3,24 @@ import { NgModule } from '@angular/core';
|
|||||||
|
|
||||||
import { AppRoutingModule } from './app-routing.module';
|
import { AppRoutingModule } from './app-routing.module';
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
|
import { HomePageComponent } from './home-page/home-page.component';
|
||||||
|
|
||||||
|
import { AlertModule } from 'ngx-bootstrap/alert';
|
||||||
|
import { BsDatepickerModule } from 'ngx-bootstrap/datepicker';
|
||||||
|
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent
|
AppComponent,
|
||||||
|
HomePageComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
AppRoutingModule
|
AppRoutingModule,
|
||||||
|
AlertModule.forRoot(),
|
||||||
|
BsDatepickerModule.forRoot(),
|
||||||
|
BsDropdownModule.forRoot()
|
||||||
|
|
||||||
],
|
],
|
||||||
providers: [],
|
providers: [],
|
||||||
bootstrap: [AppComponent]
|
bootstrap: [AppComponent]
|
||||||
|
|||||||
0
src/app/home-page/home-page.component.css
Normal file
0
src/app/home-page/home-page.component.css
Normal file
26
src/app/home-page/home-page.component.html
Normal file
26
src/app/home-page/home-page.component.html
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<alert class=".alert-success" type="success">
|
||||||
|
<strong>Weedzll done!</strong> You successfully read this important alert message.
|
||||||
|
</alert>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12 col-12 col-md-4 form-group">
|
||||||
|
<bs-datepicker-inline [bsValue]="bsInlineValue"></bs-datepicker-inline>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="btn-group" dropdown>
|
||||||
|
<button id="button-basic" dropdownToggle type="button" class="btn btn-primary dropdown-toggle"
|
||||||
|
aria-controls="dropdown-basic">
|
||||||
|
Button dropdown <span class="caret"></span>
|
||||||
|
</button>
|
||||||
|
<ul id="dropdown-basic" *dropdownMenu class="dropdown-menu"
|
||||||
|
role="menu" aria-labelledby="button-basic">
|
||||||
|
<li role="menuitem"><a class="dropdown-item" href="#">Action</a></li>
|
||||||
|
<li role="menuitem"><a class="dropdown-item" href="#">Another action</a></li>
|
||||||
|
<li role="menuitem"><a class="dropdown-item" href="#">Something else here</a></li>
|
||||||
|
<li class="divider dropdown-divider"></li>
|
||||||
|
<li role="menuitem"><a class="dropdown-item" href="#">Separated link</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
25
src/app/home-page/home-page.component.spec.ts
Normal file
25
src/app/home-page/home-page.component.spec.ts
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { HomePageComponent } from './home-page.component';
|
||||||
|
|
||||||
|
describe('HomePageComponent', () => {
|
||||||
|
let component: HomePageComponent;
|
||||||
|
let fixture: ComponentFixture<HomePageComponent>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ HomePageComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(HomePageComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
18
src/app/home-page/home-page.component.ts
Normal file
18
src/app/home-page/home-page.component.ts
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
import { Router } from '@angular/router'
|
||||||
|
import { $ } from 'protractor';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-home-page',
|
||||||
|
templateUrl: './home-page.component.html',
|
||||||
|
styleUrls: ['./home-page.component.css']
|
||||||
|
})
|
||||||
|
export class HomePageComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -1,5 +1,6 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>MyControlPanel</title>
|
<title>MyControlPanel</title>
|
||||||
@ -7,6 +8,8 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||||
|
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="https://unpkg.com/ngx-bootstrap/datepicker/bs-datepicker.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<app-root></app-root>
|
<app-root></app-root>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user