Modernize meteor-developer-config-ui package

- Bumped patch version number 1.0.0 -> 1.0.1
- ES6 syntax and shorthand applied
- Adjusted configuration instructions
This commit is contained in:
James Burgess
2018-01-28 00:07:43 +01:00
parent 49d42ec093
commit 85aeb67c15
3 changed files with 10 additions and 13 deletions

View File

@@ -6,13 +6,13 @@
<ol>
<li> Visit <a href="https://www.meteor.com/account-settings" target="_blank">https://www.meteor.com/account-settings</a> and sign in.
</li>
<li> Click "New app" in the "Meteor developer account apps" section
<li> Click "NEW APPLICATION" in the "Meteor Account Services" section
and give your app a name.</li>
<li> Add
<span class="url">
{{siteUrl}}_oauth/meteor-developer
</span>
as an Allowed Redirect URL.
as the Redirect URL.
</li>
</ol>
</template>

View File

@@ -1,12 +1,8 @@
Template.configureLoginServiceDialogForMeteorDeveloper.helpers({
siteUrl: function () {
return Meteor.absoluteUrl();
}
siteUrl: () => Meteor.absoluteUrl(),
});
Template.configureLoginServiceDialogForMeteorDeveloper.fields = function () {
return [
{property: 'clientId', label: 'App ID'},
{property: 'secret', label: 'App secret'}
];
};
Template.configureLoginServiceDialogForMeteorDeveloper.fields = () => [
{property: 'clientId', label: 'App ID'},
{property: 'secret', label: 'App secret'}
];

View File

@@ -1,9 +1,10 @@
Package.describe({
summary: 'Blaze configuration templates for the Meteor developer accounts 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('meteor_developer_login_button.css', 'client');
api.addFiles(