Modernize weibo-config-ui package

- Bumped patch version number 1.0.0 -> 1.0.1
- ES6 syntax and shorthand applied
This commit is contained in:
James Burgess
2018-01-28 00:48:10 +01:00
parent ee3b1f1c40
commit 98bb35bf25
2 changed files with 9 additions and 12 deletions

View File

@@ -1,9 +1,10 @@
Package.describe({
summary: "Blaze configuration templates for Weibo OAuth.",
version: "1.0.0"
version: "1.0.1",
});
Package.onUse(function(api) {
Package.onUse(api => {
api.use('ecmascript', 'client');
api.use('templating@1.2.13', 'client');
api.addFiles('weibo_login_button.css', 'client');

View File

@@ -1,13 +1,9 @@
Template.configureLoginServiceDialogForWeibo.helpers({
siteUrl: function () {
// Weibo doesn't recognize localhost as a domain
return Meteor.absoluteUrl({replaceLocalhost: true});
}
// Weibo doesn't recognize localhost as a domain
siteUrl: () => Meteor.absoluteUrl({replaceLocalhost: true}),
});
Template.configureLoginServiceDialogForWeibo.fields = function () {
return [
{property: 'clientId', label: 'App Key'},
{property: 'secret', label: 'App Secret'}
];
};
Template.configureLoginServiceDialogForWeibo.fields = () => [
{property: 'clientId', label: 'App Key'},
{property: 'secret', label: 'App Secret'}
];