Giter VIP home page Giter VIP logo

ember-cli-history-mixin's Introduction

ember-cli-history-mixin's People

Contributors

gordonbisnor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ember-cli-history-mixin's Issues

isSingleResource, `model.get` is not a function

currently the following regex is used to determine if a route is a single resource:

  isSingleResource: Ember.computed.match('currentPath', /(?:^(?!.*s\b))(?:^(?!index)).*$/),

this regex checks if one of the following conditions is true:

  • currentRouteName is not equal to index
  • currentRouteName isn't plural (only checks if it doesn't end with an 'S')

however this regex breaks on routes such as: not-found because it
a. isn't equal to index
b. isn't plural

a simple check in the activeRoute computed property on the presence of the id property is a possible workaround that I'll implement soon.

goBack after refreshing page

as reported by @sn3p from LearningSpaces:

considering the following routes:

this.resource('learning_space', {
  path: '/spaces/:learning_space_id'
}, function () {
  this.resource('chapters', function () {
    this.resource('chapter', {
      path: '/:chapter_id'
    }, function () {
      this.resource('submissions', function () {
        this.resource('submission', {
          path: '/:submission_id'
        });
      });
      this.route('edit');
    });
  });
});

Go to a chapter and refresh.
Edit the chapter and press goBack.

results in the following error:

Uncaught Error: Assertion Failed: The route learning_space.chapters.chapter.index was not found

Uncaught Error: More context objects were passed than there are dynamic segments for the route:

I'm getting an error that I have not yet been able to resolve, where I have a link to either another route, or a nested route, for example, either:

{{#link-to 'info.authors' class="item-link" eventName="tap"}}

or

{{#link-to 'authors' class="item-link" eventName="tap"}}

in this scenario, I'm getting the error:

Uncaught Error: More context objects were passed than there are dynamic segments for the route:

Deprecation Warning

In the latest version of Ember and Ember-CLI, the following deprecation warning shows up during a build:

DEPRECATION: Addon files were detected in /home/mconaway/NetBeansProjects/undertow-client/node_modules/ember-cli-history-mixin/addon, but no JavaScript preprocessors were found for ember-cli-history-mixin. Please make sure to add a preprocessor (most likely ember-cli-babel) to in dependencies (NOT devDependencies) in ember-cli-history-mixin's package.json.

This should be fixable by just modifying the package.json.

Thanks for making this addon!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.