Skip to content

Commit

Permalink
fix(backward-compat): fix angular12 backward compat
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanAyaz committed Nov 30, 2021
1 parent 70ff578 commit d4ddcaa
Show file tree
Hide file tree
Showing 13 changed files with 13,169 additions and 44,163 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build
on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Use Node.js 12.8
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies
run: npm install
- name: Lint and Test
run: npm run test && npm run lint
- name: Build
run: npm run build:ci && cp -R dist/demo/browser ./docs/demo
- name: GitHub Pages action
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
publish_dir: ./docs
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ speed-measure-plugin*.json
.history/*

# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage
Expand Down
18 changes: 18 additions & 0 deletions CHANGE_LOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# [2.2.0](https://github.com/KoderLabs/ngx-device-detector/compare/v2.1.1...v2.2.0) (2021-11-25)


### Bug Fixes

* **lint:** fix lint issues ([255617a](https://github.com/KoderLabs/ngx-device-detector/commit/255617adfc3b84708c3ab1df4e76d466be7cc1ec))



# [2.2.0](https://github.com/KoderLabs/ngx-device-detector/compare/v2.1.1...v2.2.0) (2021-11-25)


### Bug Fixes

* **lint:** fix lint issues ([255617a](https://github.com/KoderLabs/ngx-device-detector/commit/255617adfc3b84708c3ab1df4e76d466be7cc1ec))



## [2.1.1](https://github.com/KoderLabs/ngx-device-detector/compare/v2.1.0...v2.1.1) (2021-05-26)


Expand Down
5 changes: 3 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ An Angular 6+ powered AOT compatible device detector that helps to identify brow
</p>

<p align="center">
<a href="https://travis-ci.org/KoderLabs/ngx-device-detector"><img src="https://img.shields.io/travis/koderlabs/ngx-device-detector?style=flat" alt="travis build status" ></a>
<a href="https://github.com/KoderLabs/ngx-device-detector/actions"><img src="https://github.com/Koderlabs/ngx-device-detector/actions/workflows/main.yml/badge.svg" alt="build status" ></a>
<a href="https://www.npmjs.com/package/ngx-device-detector"><img src="https://img.shields.io/npm/v/ngx-device-detector.svg" alt="npm version" ></a>
<a href="https://www.npmjs.com/package/ngx-device-detector"><img src="https://img.shields.io/github/stars/KoderLabs/ngx-device-detector.svg?style=social&label=Star&style=flat-square" alt="github stars" ></a>
<a href="https://www.npmjs.com/package/ngx-device-detector"><img src="https://img.shields.io/github/license/koderlabs/ngx-device-detector?style=flat" alt="license" ></a>
<a href="https://www.npmjs.com/package/ngx-device-detector"><img src="https://badgen.net/github/stars/KoderLabs/ngx-device-detector" alt="stars" ></a>

</p>
<p align="center">
<a href="https://www.npmjs.com/package/ng2-device-detector">Deprecated package :</a>
Expand Down
22 changes: 0 additions & 22 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@
"tsConfig": "projects/ngx-device-detector/tsconfig.lib.prod.json"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/ngx-device-detector/tsconfig.lib.json",
"projects/ngx-device-detector/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
},
Expand Down Expand Up @@ -109,18 +99,6 @@
"browserTarget": "demo:build"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/demo/tsconfig.app.json",
"projects/demo/tsconfig.spec.json",
"projects/demo/e2e/tsconfig.json",
"projects/demo/tsconfig.server.json"
],
"exclude": ["**/node_modules/**"]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
Expand Down
60 changes: 60 additions & 0 deletions docs/js/menu-wc_es5.js

Large diffs are not rendered by default.

117 changes: 117 additions & 0 deletions docs/styles/dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
body.dark {
background: #212121;
color: #fafafa;
}

.dark code {
color: #e09393;
}

.dark a,
.dark .menu ul.list li a.active {
color: #7fc9ff;
}

.dark .menu {
background: #212121;
border-right: 1px solid #444;
}

.dark .menu ul.list li a {
color: #fafafa;
}

.dark .menu ul.list li.divider {
background: #444;
}

.dark .xs-menu ul.list li:nth-child(2) {
margin: 0;
background: none;
}

.dark .menu ul.list li:nth-child(2) {
margin: 0;
background: none;
}

.dark #book-search-input {
background: #212121;
border-top: 1px solid #444;
border-bottom: 1px solid #444;
color: #fafafa;
}

.dark .table.metadata > tbody > tr:hover {
color: #555;
}

.dark .table-bordered {
border: 1px solid #444;
}

.dark .table-bordered > tbody > tr > td,
.dark .table-bordered > tbody > tr > th,
.dark .table-bordered > tfoot > tr > td,
.dark .table-bordered > tfoot > tr > th,
.dark .table-bordered > thead > tr > td,
.dark .table-bordered > thead > tr > th {
border: 1px solid #444;
}

.dark .coverage a,
.dark .coverage-count {
color: #fafafa;
}

.dark .coverage-header {
color: black;
}

.dark .routes svg text,
.dark .routes svg a {
fill: white;
}
.dark .routes svg rect {
fill: #212121 !important;
}

.dark .navbar-default,
.dark .btn-default {
background-color: black;
border-color: #444;
color: #fafafa;
}

.dark .navbar-default .navbar-brand {
color: #fafafa;
}

.dark .overview .card,
.dark .modules .card {
background: #171717;
color: #fafafa;
border: 1px solid #444;
}
.dark .overview .card a {
color: #fafafa;
}

.dark .modules .card-header {
background: none;
border-bottom: 1px solid #444;
}

.dark .module .list-group-item {
background: none;
border: 1px solid #444;
}

.dark .container-fluid.module h3 a {
color: #337ab7;
}

.dark table.params thead {
background: #484848;
color: #fafafa;
}
Loading

0 comments on commit d4ddcaa

Please sign in to comment.