mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
working on release notes
This commit is contained in:
parent
778c08d544
commit
ed03fa38a1
8 changed files with 67 additions and 0 deletions
7
client/views/admin/currentVersion.html
Normal file
7
client/views/admin/currentVersion.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<template name="currentVersion">
|
||||
{{#with currentVersion}}
|
||||
<div class='current-version'>
|
||||
{{#markdown}}{{notes}}{{/markdown}}
|
||||
</div>
|
||||
{{/with}}
|
||||
</template>
|
11
client/views/admin/currentVersion.js
Normal file
11
client/views/admin/currentVersion.js
Normal 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
1
collections/versions.js
Normal file
|
@ -0,0 +1 @@
|
|||
Versions = new Meteor.Collection('versions');
|
|
@ -2,6 +2,7 @@ Router.setTemplateNameConverter(function (str) { return str; });
|
|||
|
||||
preloadSubscriptions.push('settings');
|
||||
preloadSubscriptions.push('currentUser');
|
||||
preloadSubscriptions.push('currentVersion');
|
||||
|
||||
Router.configure({
|
||||
layoutTemplate: getTemplate('layout'),
|
||||
|
|
16
private/versions/0.11.0.md
Normal file
16
private/versions/0.11.0.md
Normal 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!).
|
8
private/versions/0.11.1.md
Normal file
8
private/versions/0.11.1.md
Normal 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.
|
6
server/publications/versions.js
Normal file
6
server/publications/versions.js
Normal 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
17
server/versions.js
Normal 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');
|
||||
});
|
Loading…
Add table
Reference in a new issue