-
Notifications
You must be signed in to change notification settings - Fork 397
feat(license): add license component to display full license #598
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<div class="license-content"> | ||
<p class="license-title">The MIT License</p> | ||
<p>Copyright (c) 2010-2019 Google LLC. <a href="license">http://material.angular.io/license</a></p> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would be a good idea to use |
||
<p>Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions:</p> | ||
<p>The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software.</p> | ||
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE.</p> | ||
</div> | ||
|
||
<app-footer></app-footer> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@import '../../../styles/constants'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file should be indented with 2 spaces instead of 4. |
||
|
||
:host { | ||
display: flex; | ||
flex-direction: column; | ||
flex-grow: 1; | ||
} | ||
|
||
.license-content { | ||
flex-grow: 1; | ||
margin: $content-padding-side; | ||
|
||
@media (max-width: $small-breakpoint-width) { | ||
margin: 0; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Component, NgModule } from "@angular/core"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file should be indented with 2 spaces instead of 4 and use single quotes instead of double quotes as well as removing the spaces from your import statements. |
||
import { FooterModule } from "../../shared/footer/footer"; | ||
|
||
@Component({ | ||
selector: 'app-license', | ||
templateUrl: './license.html', | ||
styleUrls: ['./license.scss'] | ||
}) | ||
export class License {} | ||
|
||
@NgModule({ | ||
imports: [FooterModule], | ||
exports: [License], | ||
declarations: [License], | ||
}) | ||
export class LicenseModule {} |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,5 +1,7 @@ | ||||||
import {Component, NgModule} from '@angular/core'; | ||||||
import {materialVersion} from '../version/version'; | ||||||
import { RouterModule } from '@angular/router'; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove the spaces surrounding the import.
Suggested change
|
||||||
import { MATERIAL_DOCS_ROUTES } from '../../routes'; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove the spaces surrounding the import.
Suggested change
|
||||||
|
||||||
@Component({ | ||||||
selector: 'app-footer', | ||||||
|
@@ -14,6 +16,7 @@ export class Footer { | |||||
|
||||||
|
||||||
@NgModule({ | ||||||
imports: [RouterModule.forRoot(MATERIAL_DOCS_ROUTES)], | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use
Suggested change
|
||||||
exports: [Footer], | ||||||
declarations: [Footer], | ||||||
}) | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the spaces surrounding the import.