Last active
May 25, 2025 12:25
-
-
Save herzzanu/f6a0df40a7252d9a573edca8b65af5de to your computer and use it in GitHub Desktop.
Reviews
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle' | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Model from "ember-data/model"; | |
| import attr from "ember-data/attr"; | |
| import { belongsTo, hasMany } from "ember-data/relationships"; | |
| export default Model.extend({ | |
| rating: DS.attr(), | |
| comment: DS.attr(), | |
| studentId: belongsTo('user', { inverse: null }), | |
| teacherId: belongsTo('user', { inverse: null }), | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Model from "ember-data/model"; | |
| import attr from "ember-data/attr"; | |
| import { belongsTo, hasMany } from "ember-data/relationships"; | |
| export default Model.extend({ | |
| name: attr(), | |
| reviewsByMe: hasMany('review', { inverse: null }), | |
| reviewsAboutMe: hasMany('review', { inverse: null }) | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Ember from 'ember'; | |
| import config from './config/environment'; | |
| const Router = Ember.Router.extend({ | |
| location: 'none', | |
| rootURL: config.rootURL | |
| }); | |
| Router.map(function() { | |
| this.route('reviews'); | |
| this.route('users'); | |
| }); | |
| export default Router; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Ember from 'ember'; | |
| export default Ember.Route.extend({ | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Ember from 'ember'; | |
| var reviews = [ | |
| { | |
| id: 1, | |
| teacher_id: 2, | |
| student_id: 1, | |
| rating: "5", | |
| comment: "hello world" | |
| }, | |
| { | |
| id: 2, | |
| teacher_id: 1, | |
| student_id: 2, | |
| rating: "5", | |
| comment: "another great review" | |
| }, | |
| ]; | |
| export default Ember.Route.extend({ | |
| model() { | |
| return reviews; | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Ember from 'ember'; | |
| var users = [ | |
| { | |
| id: 1, | |
| name: 'John', | |
| reviewsByMe: [1, 2, 3], | |
| reviewsAboutMe: [4, 5] | |
| }, | |
| { | |
| id: 2, | |
| name: 'Jane', | |
| reviewsByMe: [4, 5], | |
| reviewsAboutMe: [1, 2, 3] | |
| } | |
| ]; | |
| export default Ember.Route.extend({ | |
| model() { | |
| return users; | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": "0.10.4", | |
| "EmberENV": { | |
| "FEATURES": {} | |
| }, | |
| "options": { | |
| "use_pods": false, | |
| "enable-testing": false | |
| }, | |
| "dependencies": { | |
| "jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js", | |
| "ember": "2.7.0", | |
| "ember-data": "2.7.0", | |
| "ember-template-compiler": "2.7.0" | |
| }, | |
| "addons": {} | |
| } |
This is exactly what I'm feeling, I think next time they need to be more transparent with marketing, I feel like because they have had previous controllers a lot of people are expecting more in terms of quality. I think a possible solution could be to sell a version with mechanical buttons down the line or a kit that lets you change the buttons.
Either way I'm pretty happy with using this as my daily driver, I also have the Vader 3 pro but mine is a lemon unfortunately
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is exactly what I'm feeling, I think next time they need to be more transparent with marketing, I feel like because they have had previous controllers a lot of people are expecting more in terms of quality. I think a possible solution could be to sell a version with mechanical buttons down the line or a kit that lets you change the buttons.
Either way I'm pretty happy with using this as my daily driver, I also have the Vader 3 pro but mine is a lemon unfortunately