Skip to content

Commit 720fabf

Browse files
authored
2.3.3 - Update to latest changes
2 parents d257fa1 + 17cdb7f commit 720fabf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+2113
-2598
lines changed

.angular-cli.json

-60
This file was deleted.

README.md

+20-11
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
<p align="center">
2-
Check
3-
<a href="https://quead.github.io/demo/" title="YouTube Player Demo">Demo</a>
4-
or
5-
<a href="https://youtu.be/KB803dWQM-o/" title="Video Presentation">Video Presentation</a>
6-
<img alt="Angular YouTube Player Logo" src="https://i.imgur.com/EKqK4ip.png" style="height: auto; max-width:100%;" />
2+
<a href="https://quead.github.io/demo/" target="_blank" title="YouTube Player Demo">
3+
Demo
4+
</a>
5+
<a href="https://quead.github.io/demo/" target="_blank" title="YouTube Player">
6+
<img alt="Angular YouTube Player Logo" src="https://i.imgur.com/THnmBnz.png" style="height: auto; max-width:100%;" />
7+
</a>
78
</p>
89

910
# About Player
10-
[![Version](https://img.shields.io/badge/Current%20version-v2.3-brightgreen.svg?style=flat)](https://github.com/quead/angular2-yt-player)
11+
[![Version](https://img.shields.io/badge/Current%20version-v2.3.3-brightgreen.svg?style=flat)](https://github.com/quead/angular2-yt-player)
1112

1213
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/quead/angular2-yt-player/master/LICENSE)
1314
[![GitHub forks](https://img.shields.io/github/forks/quead/angular2-yt-player.svg)](https://github.com/quead/angular2-yt-player/network)
1415
[![GitHub stars](https://img.shields.io/github/stars/quead/angular2-yt-player.svg)](https://github.com/quead/angular2-yt-player/stargazers)
1516

16-
This is a simple youtube web player and desktop player based on [angular-cli](https://github.com/angular/angular-cli "Angular Cli") 1.7.3, [ngx-youtube-player](https://github.com/orizens/ng2-youtube-player "ngx youtube player") 6.0.0 (used for youtube iFrame API), SCSS (CSS3), HTML5.
17+
This is a simple youtube web player and desktop player based on [angular-cli](https://github.com/angular/angular-cli "Angular Cli") 7.0.3, [@angular/fire](https://github.com/angular/angularfire2), [ngx-youtube-player](https://github.com/orizens/ng2-youtube-player "ngx youtube player") 6.0.0 (used for youtube iFrame API), SCSS (CSS3), HTML5.
1718

1819
This player is compatible only with Chrome/webkit browsers.
1920

@@ -37,6 +38,8 @@ This player is compatible only with Chrome/webkit browsers.
3738

3839
5. Add your youtube api key in settings.json or in the app
3940

41+
6. To make available firebase (for session feature upload/download) update `environments.prod.ts` and `environments.ts`
42+
4043
**For SASS development**
4144

4245
1. Install [Sass](http://sass-lang.com/install "Sass website")
@@ -50,6 +53,13 @@ This player is compatible only with Chrome/webkit browsers.
5053
4. Edit files from src/assets/scss
5154

5255
## Changelog
56+
Angular YouTube Player 2.3.3
57+
- Fixed bugs after refactoring
58+
- Added session key for playlist which you can upload to cloud and download from cloud (integrated with firebase)
59+
- Layout update
60+
- Updated from angular 5.2.0 to 7.0.1
61+
- Carousel added for related videos (used [ngu-carousel](https://github.com/sheikalthaf/ngu-carousel))
62+
5363
Angular YouTube Player 2.3
5464
- Updating to LTS angular
5565
- Refactoring entire app services and components
@@ -152,15 +162,14 @@ Angular YouTube Player 1.0.0
152162
## Future features
153163
#### Backlog
154164
- iOS 8+ / android 5+ app **(unversioned)**
155-
- Change and create theme **(unversioned)**
156165

157166
**Rooms**
158167
- *Room chat **(unversioned)***
159168

160169
#### Roadmap to 3.0
161-
- Keep your playlist and settings in cloud **(in v2.4)**
162-
- Implemented session key to keep playlist in cloud (without account) **(in v2.4)**
163-
- Integrating ngrx store **(in v2.5)**
170+
- Responsive layout **(in v2.4)**
171+
- Sync player between session **(in v2.4)**
172+
- Keep your settings in cloud **(in v2.8)**
164173
- Integrating YouTube subscriptions/playlist **(in v2.9)**
165174

166175
**Rooms**

angular.json

+132
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"a2-youtube": {
7+
"root": "",
8+
"sourceRoot": "src",
9+
"projectType": "application",
10+
"architect": {
11+
"build": {
12+
"builder": "@angular-devkit/build-angular:browser",
13+
"options": {
14+
"outputPath": "dist",
15+
"index": "src/index.html",
16+
"main": "src/main.ts",
17+
"tsConfig": "src/tsconfig.app.json",
18+
"polyfills": "src/polyfills.ts",
19+
"assets": [
20+
"src/assets",
21+
"src/favicon.ico"
22+
],
23+
"styles": [
24+
"src/assets/scss/main.scss"
25+
],
26+
"scripts": []
27+
},
28+
"configurations": {
29+
"production": {
30+
"optimization": true,
31+
"outputHashing": "all",
32+
"sourceMap": false,
33+
"extractCss": true,
34+
"namedChunks": false,
35+
"aot": true,
36+
"extractLicenses": true,
37+
"vendorChunk": false,
38+
"buildOptimizer": true,
39+
"fileReplacements": [
40+
{
41+
"replace": "src/environments/environment.ts",
42+
"with": "src/environments/environment.prod.ts"
43+
}
44+
]
45+
}
46+
}
47+
},
48+
"serve": {
49+
"builder": "@angular-devkit/build-angular:dev-server",
50+
"options": {
51+
"browserTarget": "a2-youtube:build"
52+
},
53+
"configurations": {
54+
"production": {
55+
"browserTarget": "a2-youtube:build:production"
56+
}
57+
}
58+
},
59+
"extract-i18n": {
60+
"builder": "@angular-devkit/build-angular:extract-i18n",
61+
"options": {
62+
"browserTarget": "a2-youtube:build"
63+
}
64+
},
65+
"test": {
66+
"builder": "@angular-devkit/build-angular:karma",
67+
"options": {
68+
"main": "src/test.ts",
69+
"karmaConfig": "./karma.conf.js",
70+
"polyfills": "src/polyfills.ts",
71+
"tsConfig": "src/tsconfig.spec.json",
72+
"scripts": [],
73+
"styles": [
74+
"src/assets/scss/main.scss"
75+
],
76+
"assets": [
77+
"src/assets",
78+
"src/favicon.ico"
79+
]
80+
}
81+
},
82+
"lint": {
83+
"builder": "@angular-devkit/build-angular:tslint",
84+
"options": {
85+
"tsConfig": [
86+
"src/tsconfig.app.json",
87+
"src/tsconfig.spec.json"
88+
],
89+
"exclude": [
90+
"**/node_modules/**"
91+
]
92+
}
93+
}
94+
}
95+
},
96+
"a2-youtube-e2e": {
97+
"root": "e2e",
98+
"sourceRoot": "e2e",
99+
"projectType": "application",
100+
"architect": {
101+
"e2e": {
102+
"builder": "@angular-devkit/build-angular:protractor",
103+
"options": {
104+
"protractorConfig": "./protractor.conf.js",
105+
"devServerTarget": "a2-youtube:serve"
106+
}
107+
},
108+
"lint": {
109+
"builder": "@angular-devkit/build-angular:tslint",
110+
"options": {
111+
"tsConfig": [
112+
"e2e/tsconfig.e2e.json"
113+
],
114+
"exclude": [
115+
"**/node_modules/**"
116+
]
117+
}
118+
}
119+
}
120+
}
121+
},
122+
"defaultProject": "a2-youtube",
123+
"schematics": {
124+
"@schematics/angular:component": {
125+
"prefix": "app",
126+
"styleext": "scss"
127+
},
128+
"@schematics/angular:directive": {
129+
"prefix": "app"
130+
}
131+
}
132+
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { AppPage } from './app.po';
22

3-
describe('angular-youtube-player App', () => {
3+
describe('workspace-project App', () => {
44
let page: AppPage;
55

66
beforeEach(() => {
@@ -9,6 +9,6 @@ describe('angular-youtube-player App', () => {
99

1010
it('should display welcome message', () => {
1111
page.navigateTo();
12-
expect(page.getParagraphText()).toEqual('Welcome to app!');
12+
expect(page.getParagraphText()).toEqual('Welcome to a-youtube-player!');
1313
});
1414
});
File renamed without changes.

e2e/tsconfig.e2e.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"extends": "../tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "../out-tsc/e2e",
5-
"baseUrl": "./",
4+
"outDir": "../out-tsc/app",
65
"module": "commonjs",
76
"target": "es5",
87
"types": [
@@ -11,4 +10,4 @@
1110
"node"
1211
]
1312
}
14-
}
13+
}

karma.conf.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,22 @@
44
module.exports = function (config) {
55
config.set({
66
basePath: '',
7-
frameworks: ['jasmine', '@angular/cli'],
7+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
88
plugins: [
99
require('karma-jasmine'),
1010
require('karma-chrome-launcher'),
1111
require('karma-jasmine-html-reporter'),
1212
require('karma-coverage-istanbul-reporter'),
13-
require('@angular/cli/plugins/karma')
13+
require('@angular-devkit/build-angular/plugins/karma')
1414
],
1515
client:{
1616
clearContext: false // leave Jasmine Spec Runner output visible in browser
1717
},
1818
coverageIstanbulReporter: {
19-
reports: [ 'html', 'lcovonly' ],
19+
dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ],
2020
fixWebpackSourcePaths: true
2121
},
22-
angularCli: {
23-
environment: 'dev'
24-
},
22+
2523
reporters: ['progress', 'kjhtml'],
2624
port: 9876,
2725
colors: true,

0 commit comments

Comments
 (0)