mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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:
@@ -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');
|
||||
|
||||
@@ -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'}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user