1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-23 19:53:43 +00:00

[TypeScript] Settings module (#398)

* Convert settings to TypeScript.

* Simplify loadSettings using await.

* Re-write save feature settings.

* Minor fixes.
This commit is contained in:
Oscar Hinton
2017-11-26 14:35:49 +01:00
committed by Kyle Spearrin
parent 7c525d3f3a
commit 78c4ea7ecb
38 changed files with 915 additions and 876 deletions

View File

@@ -0,0 +1,19 @@
import * as template from './about.component.html';
class AboutController {
version: string;
year: number;
i18n: any;
constructor(i18nService: any) {
this.i18n = i18nService;
this.year = (new Date()).getFullYear();
this.version = chrome.runtime.getManifest().version;
}
}
export const AboutComponent = {
bindings: {},
controller: AboutController,
template,
};