Browse Source

Commit 9-5-3: Removed package from development tree.

Frederic G. MARAND 9 years ago
parent
commit
2f0ef23a4d

+ 0 - 1
.meteor/packages

@@ -12,4 +12,3 @@ sacha:spin
 ian:accounts-ui-bootstrap-3
 accounts-password
 audit-argument-checks
-fgm:errors

+ 0 - 2
.meteor/versions

@@ -15,7 +15,6 @@ deps@1.0.7
 ejson@1.0.6
 email@1.0.6
 fastclick@1.0.3
-fgm:errors@0.0.1
 geojson-utils@1.0.3
 html-tools@1.0.4
 htmljs@1.0.4
@@ -42,7 +41,6 @@ minifiers@1.1.5
 minimongo@1.0.8
 mobile-status-bar@1.0.3
 mongo@1.1.0
-mongo-livedata@1.0.8
 npm-bcrypt@0.7.8_2
 observe-sequence@1.0.6
 ordered-dict@1.0.3

+ 0 - 1
packages/.gitignore

@@ -1 +0,0 @@
-.build*

+ 0 - 1
packages/fgm:errors/README.md

@@ -1 +0,0 @@
-This is the errors package from chapter 9.5 of _Discover Meteor_.

+ 0 - 19
packages/fgm:errors/errors.js

@@ -1,19 +0,0 @@
-/**
- * @file
- *
- *
- * User: marand
- * Date: 03/09/15
- * Time: 16:46
- */
-
-// Local client-only collection.
-Errors = {
-  collection: new Mongo.Collection(null),
-
-  throw : function(message) {
-    Errors.collection.insert({ message: message });
-  },
-
-  delay: 3000,
-};

+ 0 - 14
packages/fgm:errors/errors_list.html

@@ -1,14 +0,0 @@
-<template name="meteorErrors">
-  <div class="errors">
-    {{#each errors}}
-      {{> meteorError }}
-    {{/each}}
-  </div>
-</template>
-
-<template name="meteorError">
-  <div class="alert alert-danger" role="alert">
-    <button type="button" class="close" data-dismiss="alert">&times;</button>
-    {{ message }}
-  </div>
-</template>

+ 0 - 21
packages/fgm:errors/errors_list.js

@@ -1,21 +0,0 @@
-/**
- * @file
- *
- *
- * User: marand
- * Date: 03/09/15
- * Time: 20:51
- */
-
-Template.meteorErrors.helpers({
-  errors: function () {
-    return Errors.collection.find();
-  }
-});
-
-Template.meteorError.rendered = function () {
-  var error = this.data;
-  Meteor.setTimeout(function () {
-    Errors.collection.remove(error._id);
-  }, Errors.delay);
-};

+ 0 - 24
packages/fgm:errors/errors_tests.js

@@ -1,24 +0,0 @@
-
-Tinytest.add('Errors - collection', function (test) {
-  // Collection is local, hence empty on start.
-  test.equal(Errors.collection.find({}).count(), 0);
-
-  Errors.throw('A new error');
-  test.equal(Errors.collection.find({}).count(), 1);
-
-  Errors.collection.remove({});
-});
-
-Tinytest.addAsync('Errors - template', function (test, done) {
-  Errors.throw('A new error');
-  test.equal(Errors.collection.find({}).count(), 1);
-
-  // Render the template.
-  UI.insert(UI.render(Template.meteorErrors), document.body);
-
-  // Make sure the error collection is emptied after
-  Meteor.setTimeout(function () {
-    test.equal(Errors.collection.find({}).count(), 0);
-    done();
-  }, Errors.delay + 200);
-});

+ 0 - 35
packages/fgm:errors/package.js

@@ -1,35 +0,0 @@
-Package.describe({
-  name: 'fgm:errors',
-  version: '0.0.1',
-
-  // Brief, one-line summary of the package.
-  summary: 'A pattern to display application errors to the user',
-
-  // URL to the Git repository containing the source code for this package.
-  // git: '',
-
-  // By default, Meteor will default to using README.md for documentation.
-  // To avoid submitting documentation, set this field to null.
-  documentation: 'README.md'
-});
-
-Package.onUse(function(api) {
-  var where = 'client';
-
-  api.versionsFrom('1.1.0.3');
-  api.use(['minimongo', 'mongo-livedata', 'templating'], where);
-  api.addFiles(['errors.js', 'errors_list.html', 'errors_list.js'], where);
-
-  if (api.export) {
-    api.export('Errors');
-  }
-});
-
-Package.onTest(function(api) {
-  var where = 'client';
-
-  api.use('fgm:errors', where);
-  api.use(['tinytest', 'test-helpers'], where);
-
-  api.addFiles('errors_tests.js', where);
-});