diff --git a/rpg-docs/.meteor/packages b/rpg-docs/.meteor/packages index 1a814021..eace2a3a 100644 --- a/rpg-docs/.meteor/packages +++ b/rpg-docs/.meteor/packages @@ -42,3 +42,5 @@ spacebars check useraccounts:iron-routing wizonesolutions:canonical +meteorhacks:fast-render +appcache diff --git a/rpg-docs/.meteor/versions b/rpg-docs/.meteor/versions index 3ff621d4..4e029baf 100644 --- a/rpg-docs/.meteor/versions +++ b/rpg-docs/.meteor/versions @@ -6,6 +6,7 @@ accounts-ui@1.1.6 accounts-ui-unstyled@1.1.8 aldeed:collection2@2.5.0 aldeed:simple-schema@1.3.3 +appcache@1.0.6 autoupdate@1.2.3 babel-compiler@5.8.24_1 babel-runtime@0.1.4 @@ -19,6 +20,7 @@ caching-compiler@1.0.0 caching-html-compiler@1.0.2 callback-hook@1.0.4 check@1.0.6 +chuangbo:cookie@1.1.0 chuangbo:marked@0.3.5_1 coffeescript@1.0.10 dburles:collection-helpers@1.0.3 @@ -62,8 +64,11 @@ logging@1.0.8 matb33:collection-hooks@0.8.1 meteor@1.1.9 meteor-base@1.0.1 +meteorhacks:fast-render@2.10.0 +meteorhacks:inject-data@1.4.1 meteorhacks:kadira@2.23.4 meteorhacks:meteorx@1.3.1 +meteorhacks:picker@1.0.3 meteorhacks:subs-manager@1.6.2 minifiers@1.1.7 minimongo@1.0.10 diff --git a/rpg-docs/Model/Character/Actions.js b/rpg-docs/Model/Character/Actions.js index b3224009..a4e2e236 100644 --- a/rpg-docs/Model/Character/Actions.js +++ b/rpg-docs/Model/Character/Actions.js @@ -7,6 +7,7 @@ Schemas.Action = new SimpleSchema({ charId: { type: String, regEx: SimpleSchema.RegEx.Id, + index: 1, }, name: { type: String, diff --git a/rpg-docs/Model/Character/Attacks.js b/rpg-docs/Model/Character/Attacks.js index 9b00c6bf..2450439a 100644 --- a/rpg-docs/Model/Character/Attacks.js +++ b/rpg-docs/Model/Character/Attacks.js @@ -7,6 +7,7 @@ Schemas.Attack = new SimpleSchema({ charId: { type: String, regEx: SimpleSchema.RegEx.Id, + index: 1, }, name: { type: String, diff --git a/rpg-docs/Model/Character/Buffs.js b/rpg-docs/Model/Character/Buffs.js index 61d471b1..3d8c41c5 100644 --- a/rpg-docs/Model/Character/Buffs.js +++ b/rpg-docs/Model/Character/Buffs.js @@ -4,6 +4,7 @@ Schemas.Buff = new SimpleSchema({ charId: { type: String, regEx: SimpleSchema.RegEx.Id, + index: 1, }, name: { type: String, diff --git a/rpg-docs/Model/Character/Classes.js b/rpg-docs/Model/Character/Classes.js index cd42a99e..ac036230 100644 --- a/rpg-docs/Model/Character/Classes.js +++ b/rpg-docs/Model/Character/Classes.js @@ -1,7 +1,7 @@ Classes = new Mongo.Collection("classes"); Schemas.Class = new SimpleSchema({ - charId: {type: String, regEx: SimpleSchema.RegEx.Id}, + charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1}, name: {type: String, trim: false}, level: {type: Number}, createdAt: { diff --git a/rpg-docs/Model/Character/Effects.js b/rpg-docs/Model/Character/Effects.js index 6a6edeff..44cc8036 100644 --- a/rpg-docs/Model/Character/Effects.js +++ b/rpg-docs/Model/Character/Effects.js @@ -8,6 +8,7 @@ Schemas.Effect = new SimpleSchema({ charId: { type: String, regEx: SimpleSchema.RegEx.Id, + index: 1, }, name: { type: String, diff --git a/rpg-docs/Model/Character/Experience.js b/rpg-docs/Model/Character/Experience.js index ee3c1d3e..ff6d5932 100644 --- a/rpg-docs/Model/Character/Experience.js +++ b/rpg-docs/Model/Character/Experience.js @@ -1,7 +1,7 @@ Experiences = new Mongo.Collection("experience"); Schemas.Experience = new SimpleSchema({ - charId: {type: String, regEx: SimpleSchema.RegEx.Id}, + charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1}, name: {type: String, defaultValue: "New Experience", trim: false}, description: {type: String, optional: true, trim: false}, value: {type: Number, defaultValue: 0}, diff --git a/rpg-docs/Model/Character/Features.js b/rpg-docs/Model/Character/Features.js index 29568563..24a2b5e9 100644 --- a/rpg-docs/Model/Character/Features.js +++ b/rpg-docs/Model/Character/Features.js @@ -1,7 +1,7 @@ Features = new Mongo.Collection("features"); Schemas.Feature = new SimpleSchema({ - charId: {type: String, regEx: SimpleSchema.RegEx.Id}, + charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1}, name: {type: String, trim: false}, description: {type: String, optional: true, trim: false}, uses: {type: String, optional: true, trim: false}, diff --git a/rpg-docs/Model/Character/Notes.js b/rpg-docs/Model/Character/Notes.js index 48fb509e..8d1afdf5 100644 --- a/rpg-docs/Model/Character/Notes.js +++ b/rpg-docs/Model/Character/Notes.js @@ -1,7 +1,7 @@ Notes = new Mongo.Collection("notes"); Schemas.Note = new SimpleSchema({ - charId: {type: String, regEx: SimpleSchema.RegEx.Id}, + charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1}, name: {type: String, trim: false}, description: {type: String, optional: true, trim: false}, color: { diff --git a/rpg-docs/Model/Character/Proficiencies.js b/rpg-docs/Model/Character/Proficiencies.js index 2d8001e2..22c6851f 100644 --- a/rpg-docs/Model/Character/Proficiencies.js +++ b/rpg-docs/Model/Character/Proficiencies.js @@ -4,6 +4,7 @@ Schemas.Proficiency = new SimpleSchema({ charId: { type: String, regEx: SimpleSchema.RegEx.Id, + index: 1, }, name: { type: String, diff --git a/rpg-docs/Model/Character/SpellLists.js b/rpg-docs/Model/Character/SpellLists.js index 4624365b..16aa2dab 100644 --- a/rpg-docs/Model/Character/SpellLists.js +++ b/rpg-docs/Model/Character/SpellLists.js @@ -1,7 +1,7 @@ SpellLists = new Mongo.Collection("spellLists"); Schemas.SpellLists = new SimpleSchema({ - charId: {type: String, regEx: SimpleSchema.RegEx.Id}, + charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1}, name: {type: String, trim: false}, description: {type: String, optional: true, trim: false}, saveDC: {type: String, optional: true, trim: false}, diff --git a/rpg-docs/Model/Character/Spells.js b/rpg-docs/Model/Character/Spells.js index 43e5e388..f04e2fa7 100644 --- a/rpg-docs/Model/Character/Spells.js +++ b/rpg-docs/Model/Character/Spells.js @@ -1,7 +1,7 @@ Spells = new Mongo.Collection("spells"); Schemas.Spell = new SimpleSchema({ - charId: {type: String, regEx: SimpleSchema.RegEx.Id}, + charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1}, prepared: { type: String, defaultValue: "prepared", diff --git a/rpg-docs/Model/Character/TemporaryHitPoints.js b/rpg-docs/Model/Character/TemporaryHitPoints.js index 5f47f0b2..65b2a44b 100644 --- a/rpg-docs/Model/Character/TemporaryHitPoints.js +++ b/rpg-docs/Model/Character/TemporaryHitPoints.js @@ -1,7 +1,7 @@ TemporaryHitPoints = new Mongo.Collection("temporaryHitPoints"); Schemas.TemporaryHitPoints = new SimpleSchema({ - charId: {type: String, regEx: SimpleSchema.RegEx.Id}, + charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1}, name: {type: String, optional: true}, maximum: {type: Number, defaultValue: 0, min: 0, max: 500}, used: {type: Number, defaultValue: 0, min: 0, max: 500}, diff --git a/rpg-docs/Model/Inventory/Containers.js b/rpg-docs/Model/Inventory/Containers.js index 8ee69416..94761c58 100644 --- a/rpg-docs/Model/Inventory/Containers.js +++ b/rpg-docs/Model/Inventory/Containers.js @@ -3,7 +3,7 @@ Containers = new Mongo.Collection("containers"); Schemas.Container = new SimpleSchema({ name: {type: String, trim: false}, - charId: {type: String, regEx: SimpleSchema.RegEx.Id}, + charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1}, isCarried: {type: Boolean}, weight: {type: Number, min: 0, defaultValue: 0, decimal: true}, value: {type: Number, min: 0, defaultValue: 0, decimal: true}, diff --git a/rpg-docs/Model/Inventory/Items.js b/rpg-docs/Model/Inventory/Items.js index 872d4eb0..c3a590a9 100644 --- a/rpg-docs/Model/Inventory/Items.js +++ b/rpg-docs/Model/Inventory/Items.js @@ -4,7 +4,7 @@ Schemas.Item = new SimpleSchema({ name: {type: String, defaultValue: "New Item", trim: false}, plural: {type: String, optional: true, trim: false}, description:{type: String, optional: true, trim: false}, - charId: {type: String, regEx: SimpleSchema.RegEx.Id}, //id of owner + charId: {type: String, regEx: SimpleSchema.RegEx.Id, index: 1}, //id of owner quantity: {type: Number, min: 0, defaultValue: 1}, weight: {type: Number, min: 0, defaultValue: 0, decimal: true}, value: {type: Number, min: 0, defaultValue: 0, decimal: true}, diff --git a/rpg-docs/Routes/Routes.js b/rpg-docs/Routes/Routes.js index 31b11fda..f3fe9fdd 100644 --- a/rpg-docs/Routes/Routes.js +++ b/rpg-docs/Routes/Routes.js @@ -34,6 +34,7 @@ Router.map(function() { onAfterAction: function() { document.title = appName; }, + fastRender: true, }); this.route("characterSheet", { @@ -63,6 +64,7 @@ Router.map(function() { window.ga && window.ga("send", "pageview", "/character"); this.next(); }, + fastRender: true, }); this.route("loading", { @@ -91,6 +93,7 @@ Router.map(function() { onAfterAction: function() { document.title = appName; }, + fastRender: true, }); this.route("/guide", { diff --git a/rpg-docs/private/changeLogs/changeLogs.js b/rpg-docs/private/changeLogs/changeLogs.js index 1f74c8bb..1f7af4b3 100644 --- a/rpg-docs/private/changeLogs/changeLogs.js +++ b/rpg-docs/private/changeLogs/changeLogs.js @@ -286,3 +286,12 @@ ChangeLogs.insert({ "Fixed errors loggin in with Google", ], }); + +ChangeLogs.insert({ + version: "0.9.0", + changes: [ + "Added fast render support, direct links to characters should load instantly", + "Added extra indexes to the database to improve performance", + "Added appcache support to improve load times on return visits", + ], +});