-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add about tab with version number. Closes #28
- Loading branch information
Showing
6 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<dom-module is="keysav-about"> | ||
<link rel="import" type="css" href="../../styles/paper-material.css"> | ||
<style> | ||
</style> | ||
<template> | ||
<paper-material> | ||
<h1>KeySAV<sup>e</sup></h1> | ||
<h3>{{version}}</h3> | ||
|
||
<div> | ||
<a href="https://github.com/Cu3PO42/KeySAVe/issues">GitHub Issues</a> | ||
</div> | ||
</paper-material> | ||
</template> | ||
<script src="./keysav-about.js"></script> | ||
</dom-module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/// <reference path="../../../bower_components/polymer-ts/polymer-ts.ts"/> | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); | ||
switch (arguments.length) { | ||
case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); | ||
case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0); | ||
case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc); | ||
} | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
(function () { | ||
var KeysavAbout = (function (_super) { | ||
__extends(KeysavAbout, _super); | ||
function KeysavAbout() { | ||
_super.call(this); | ||
this.version = require("../package.json").version; | ||
} | ||
__decorate([ | ||
property({ type: String }), | ||
__metadata('design:type', String) | ||
], KeysavAbout.prototype, "version"); | ||
KeysavAbout = __decorate([ | ||
component("keysav-about"), | ||
__metadata('design:paramtypes', []) | ||
], KeysavAbout); | ||
return KeysavAbout; | ||
})(polymer.Base); | ||
polymer.createElement(KeysavAbout); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/// <reference path="../../../bower_components/polymer-ts/polymer-ts.ts"/> | ||
|
||
(() => { | ||
@component("keysav-about") | ||
class KeysavAbout extends polymer.Base { | ||
@property({type: String}) | ||
version: string; | ||
|
||
constructor() { | ||
super(); | ||
this.version = require("../package.json").version; | ||
} | ||
} | ||
polymer.createElement(KeysavAbout); | ||
})() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters