Skip to content

Commit 8361b2d

Browse files
committed
2.3 - Fixed lint stuff
1 parent 29a696c commit 8361b2d

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

src/app/components/category/category.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class CategoryComponent implements OnInit {
101101
(done) => {
102102
this.thumbnails = this._shared.settings.form_settings[0].value;
103103
this.listGrid = this._shared.settings.form_settings[1].value;
104-
this._shared.setApiSettings();
104+
this._shared.setApiSettings();
105105
this.getCategories();
106106
}
107107
);

src/app/components/youtube-search.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ export class SearchComponent implements OnInit {
3636
ngOnInit() {
3737
console.log('search');
3838
this.setSettings();
39-
this.searchFunction();
39+
this.searchFunction();
4040
}
4141

4242
async setSettings() {
4343
if (!this._shared.settings) {
4444
setTimeout(() => {
45-
this.thumbnails = this._shared.settings.form_settings[0].value;
45+
this.thumbnails = this._shared.settings.form_settings[0].value;
4646
}, 1000);
4747
} else {
4848
this.thumbnails = this._shared.settings.form_settings[0].value;

src/app/components/youtube-settings.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export class SettingsComponent implements OnInit {
105105

106106
getDefaultSettings() {
107107
if (!this._shared.settings) {
108-
this._shared.setApiSettings();
108+
this._shared.setApiSettings();
109109
}
110110
this.internal_settings = this._shared.settings.form_settings;
111111
this.external_settings = this._shared.settings.api_settings;

src/app/services/auth.service.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ export class AuthService {
4949
console.log(authData.user.uid);
5050
this.itemsRef = this.db2.list('users/' + authData.user.uid);
5151
this.itemsRef.valueChanges().subscribe(data => {
52-
this.db2.list('users/' + authData.user.uid).valueChanges().subscribe(data => {
53-
console.log(data);
54-
if (data.length === 0) {
55-
console.log('First time login')
52+
this.db2.list('users/' + authData.user.uid).valueChanges().subscribe(userData => {
53+
console.log(userData);
54+
if (userData.length === 0) {
55+
console.log('First time login');
5656
// First time login create user and session
5757
const profile = authData.additionalUserInfo.profile;
5858
const defaultUser = {
@@ -61,14 +61,14 @@ export class AuthService {
6161
settings: this.shared.settings,
6262
session: localStorage.getItem('session_key'),
6363
};
64-
64+
6565
const afList = this.db2.list('users/');
66-
66+
6767
afList.set(authData.user.uid, defaultUser);
6868
this.initSession(currentDetails);
6969
} else {
7070
// Get session and settings from logged user
71-
console.log('Normal login')
71+
console.log('Normal login');
7272
localStorage.removeItem('session_key');
7373
localStorage.setItem('session_key', data['2']);
7474
this.db2.list('sessions/' + data['2']).valueChanges().subscribe((sessionData) => {

src/app/services/db-crud.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class DbCrudService {
1414
update(section: string, title: string, value: any) {
1515
const sessionKey = localStorage.getItem('session_key');
1616
this.afAuth.auth.onAuthStateChanged((user) => {
17-
switch(section) {
17+
switch (section) {
1818
case 'sessions': {
1919
this.db2.database.ref(`${section}/${sessionKey}/${title}`).set(value);
2020
break;

src/app/shared/lists.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class SharedService {
3434
const code = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
3535
const length = 16;
3636
let rtn = '';
37-
for (var i = 0; i < length; i++) {
37+
for (let i = 0; i < length; i++) {
3838
rtn += code.charAt(Math.floor(Math.random() * code.length));
3939
}
4040
return rtn;

0 commit comments

Comments
 (0)