ember-cli

Ember Engines inside Rails Engines via ember-cli-rails

别说谁变了你拦得住时间么 提交于 2019-12-12 19:50:54
问题 We have a high modular rails5 app, which is splitted in rails engines over serveral repositories and integrated as ruby gems. Now we want to introduce EmberJS by using ember-cli-rails . The main rails application contains the main ember application in the frontend directory while each of the rails engines contain an ember engine (via ember-engine ) in a frontend directory. How to mount the ember engines of the modules into the main ember engine? 回答1: Due the fact that I've found no other

Could not start watchman; falling back to NodeWatcher for file system events

此生再无相见时 提交于 2019-12-12 19:40:20
问题 I get the below error message while I switch between my ember applications: version: 2.4.2 Could not start watchman; falling back to NodeWatcher for file system events. Visit ember-cli.com for more info. Livereload server on http://localhost:49153 Could not serve on http://localhost:4200. It is either in use or you do not have permission. Here are the packages that I have setup on my machine: npm --version 2.14.20 bower --version 1.7.7 ember --version 2.4.2 node: 4.4.0 os: linux x64 回答1:

How to select radio button and select option with ember integration tests?

不打扰是莪最后的温柔 提交于 2019-12-12 15:02:13
问题 How to select a radio button in and a particular select option with ember integration tests? I know how to use the click one and the fillIn for inputs. http://guides.emberjs.com/v1.10.0/testing/test-helpers/ 回答1: Radio button: click('css selector'); For the select say you have: <select> <option>red pill</option> <option>blue pill</option> </select> In your test: fillIn('css selector', 'red pill'); 来源: https://stackoverflow.com/questions/29303120/how-to-select-radio-button-and-select-option

Ember passing a model to transitionToRoute

我们两清 提交于 2019-12-12 13:33:46
问题 I'm using Ember-cli with ember 1.11 I'm trying to use the transitionToRoute method in a controller to transition to a route and feed it a dynamically generated object as the model. Here's my controller: import Ember from 'ember'; export default Ember.Controller.extend({ actions: { launch_scanner: function(){ console.log('launch_scanner'); var model = {name: "Edward", phone: "123", email: "email@test.com"}; //the final app will pull the model variable from a QR scanner this.transitionToRoute(

Ember.handlebars boundIf didn't call calculated property

左心房为你撑大大i 提交于 2019-12-12 10:16:17
问题 I try to migrate project form Ember cli 0.1.2 to 0.1.15. Current problem is next: I have can-helper. It works fine at older ember but at newer version all can-blocks are absent. Can-helper use calculated property in model, so i try to set debugger into calculation function - it work on 0.1.2 and didn't work at 0.1.15 Original ember - 1.7.0-beta.1 Try migrate to ember - 1.9.1 As i found implementation of boundIf helper was changed. Have anybody some ideas / experience with such trouble? P.S.

Ember CLI Server Over HTTPS

删除回忆录丶 提交于 2019-12-12 08:39:58
问题 Is it possible to enable HTTPS protocol on Ember's CLI server? Our corporate OAuth system only allows redirects over HTTPS, so I'm in a bit of a bind without this. 回答1: Please note that as of ember-cli 0.2.6, Your app can be served over https. You just need to add your server.key and server.crt files in the ssl/ folder. In your ember-cli file add { ..., "ssl": true } You can also pass it as a command line argument ember s --ssl=true You can create self-signed certificates by following these

Promise based property Ember

 ̄綄美尐妖づ 提交于 2019-12-12 07:59:40
问题 I've got a controller that has a searchQuery and suggestions property. The suggestions come from an AJAX request. How can I make the suggestions property a promise in my Controller? app/controllers/application.js import Ember from 'ember'; const { computed, $ } = Ember; export default Ember.Controller.extend({ searchQuery: '', suggestions: computed('searchQuery', function() { return $.getJSON(`songs/search.json?q=${this.get('searchQuery')}`); }) }); 回答1: I assume you mean, how can I get the

How do I deploy Ember.js app developed with ember-cli on github pages?

不问归期 提交于 2019-12-12 07:06:38
问题 I have successfully created a small application using ember-cli. I tried pushing it to gh-pages branch of my github repo but it shows error in browser console Uncaught ReferenceError: require is not defined loading of vendor.js and vendor.js files from dist/assets is also failing. I'm not able to run standalone ember app from dist folder in local machine as well, same errors. has anyone tried it. if yes how to do it correctly? 回答1: Since December 2014 there is also an ember-cli addon for this

prefix assets for production with static path

試著忘記壹切 提交于 2019-12-12 05:53:21
问题 for assets such as /assets/image.png, that I call in stylesheets, javascript etc... I need to prefix or prepend a path to server. so that /assets/image.png becomes /static/ember/memory/dist/assets/image.png for production. where it will be served as ie: http://domain.com/static/ember/memory/dist/assets/image.png i need to pass and use a STATIC_PATH variable when compiled/built for production that will be prefixed, or compile it so that it does it automatically. I have checked ember-cli docs

how to use third party javascript from ember-cli route

二次信任 提交于 2019-12-12 04:50:02
问题 I work on an ember-cli project. I want to use a javascript library in the route. It is called CarrotSearchFoamTree. In order that it will work i added in Brocfile.js app.import('vendor/foamtree/carrotsearch.foamtree.js'); When i write in my route var foamtree = new CarrotSearchFoamTree({ id: "visualization", pixelRatio: window.devicePixelRatio || 1, initializer: "treemap", relaxationVisible: false, relaxationQualityThreshold: 5, rolloutDuration: 0, pullbackDuration: 0,