working on release notes

This commit is contained in:
Sacha Greif 2014-12-30 19:14:44 +09:00
parent 778c08d544
commit ed03fa38a1
8 changed files with 67 additions and 0 deletions

View file

@ -0,0 +1,7 @@
<template name="currentVersion">
{{#with currentVersion}}
<div class='current-version'>
{{#markdown}}{{notes}}{{/markdown}}
</div>
{{/with}}
</template>

View file

@ -0,0 +1,11 @@
Template[getTemplate('currentVersion')].helpers({
currentVersion: function () {
return Versions.find({read: false}).fetch()[0];
}
});
Meteor.startup(function () {
heroModules.push({
template: 'currentVersion'
});
});

1
collections/versions.js Normal file
View file

@ -0,0 +1 @@
Versions = new Meteor.Collection('versions');

View file

@ -2,6 +2,7 @@ Router.setTemplateNameConverter(function (str) { return str; });
preloadSubscriptions.push('settings'); preloadSubscriptions.push('settings');
preloadSubscriptions.push('currentUser'); preloadSubscriptions.push('currentUser');
preloadSubscriptions.push('currentVersion');
Router.configure({ Router.configure({
layoutTemplate: getTemplate('layout'), layoutTemplate: getTemplate('layout'),

View file

@ -0,0 +1,16 @@
## v0.11.0 “AvatarScope”
* Added new `userCreatedCallbacks` callback hook.
* Added new setting to subscribe new user to mailing list automatically.
* Added new `debug` setting.
* `siteUrl` setting now affects `Meteor.absoluteUrl()`.
* Added new `clog` function that only logs if `debug` setting is true.
* Simplified post module system, modules are not split in three zones anymore.
* Added new `postThumbnail` hook to show Embedly thumbnail.
* Simplified Hubble theme CSS for both desktop and mobile.
* Many CSS tweaks for Hubble mobile.
* Show author and commenters avatars on post item.
* Adding description to post list pages and showing them in menus.
* Improved Russian translation (thanks @Viktorminator!).
* Now using `editorconfig` (thanks @erasaur!).
* Upgraded to `useraccounts:unstyled@1.4.0` (thanks @splendido!).

View file

@ -0,0 +1,8 @@
## v0.11.1 “FeedScope”
* Post submit and edit forms now submit to their respective methods directly.
* Removed `postSubmitRenderedCallbacks` and `postEditRenderedCallbacks`.
* `telescope-post-by-feed` package now lets you import posts from RSS feeds.
* Adding limit of 200 posts to post list request.
* Refactoring post and comment submit to fix latency compensation issues.
* Tags package now using Autoform.

View file

@ -0,0 +1,6 @@
Meteor.publish('currentVersion', function() {
if(isAdminById(this.userId)){
return Versions.find({}, {sort: {createdAt: -1}, limit: 1});
}
return [];
});

17
server/versions.js Normal file
View file

@ -0,0 +1,17 @@
registerVersion = function (number) {
if (!Versions.findOne({number: number})) {
var versionNotes = Assets.getText("versions/" + number + ".md");
version = {
number: number,
notes: versionNotes,
createdAt: new Date(),
read: false
}
Versions.insert(version);
}
};
Meteor.startup(function () {
registerVersion('0.11.0');
registerVersion('0.11.1');
});