Skip to content

Commit 393316a

Browse files
authored
fix: resolve linting issues
1 parent f3c4db3 commit 393316a

File tree

4 files changed

+11
-25
lines changed

4 files changed

+11
-25
lines changed

src/app/library/services/settings.service.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,4 @@ export class InkSettingsService {
4545
private _set(value) {
4646
localStorage.setItem(`inkapp.settings`, JSON.stringify(value));
4747
}
48-
49-
async addAll(settings: InkAppSettings) {
50-
const db = await this._db.getDatabase();
51-
try {
52-
for (const item of settings) {
53-
await db.settings.insert({ key: item.key, value: item.value });
54-
}
55-
return db.settings.find().exec();
56-
} catch (error) {
57-
console.error('Error while adding settings!', error);
58-
}
59-
}
6048
}

src/app/library/store/actions/settings.action.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@ export class PopulateDefaultSettings {
1010
constructor(public settings: InkAppSettings) {}
1111
}
1212

13-
export class FetchSettings {
14-
static readonly type = '[Settings] fetch settings';
15-
constructor(public settings: InkAppSettings) {}
16-
}
17-
18-
export class PopulateDefaultSettings {
19-
static readonly type = '[Settings] populate default settings';
20-
constructor(public settings: InkAppSettings) {}
21-
}
22-
2313
export class PopulateSettings {
2414
static readonly type = '[Settings] load all settings';
2515
constructor(public settings: InkAppSettings) {}

src/environments/environment.prod.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
import { githubClientID, githubClientSecret } from './secrets';
1+
import { firebaseApiKey, githubClientID, githubClientSecret } from './secrets';
22

33
export const environment = {
44
production: true,
55
githubClientSecret,
6-
githubClientID
6+
githubClientID,
7+
firebase: {
8+
apiKey: firebaseApiKey,
9+
authDomain: 'inkbucket-56716.firebaseapp.com',
10+
databaseURL: 'https://inkbucket-56716.firebaseio.com',
11+
projectId: 'inkbucket-56716',
12+
storageBucket: 'inkbucket-56716.appspot.com',
13+
messagingSenderId: '557604305533'
14+
}
715
};

src/jest-global-mocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
global['CSS'] = null;
1+
window['CSS'] = null;
22

33
const mock = () => {
44
let storage = {};

0 commit comments

Comments
 (0)