Created
June 23, 2020 15:59
-
-
Save Parrryy/c27affc5e489ff34d098ee64756c7507 to your computer and use it in GitHub Desktop.
_data bug
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 Controller from '@ember/controller'; | |
export default class ApplicationController extends Controller { | |
appName = 'Model for bugs'; | |
} |
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 DS from 'ember-data'; | |
import { computed } from '@ember/object'; | |
export default DS.Model.extend({ | |
global_id: DS.attr('string'), | |
name: DS.attr('string'), | |
raw_description: DS.attr('string'), | |
network: DS.belongsTo('network'), | |
tags: DS.hasMany('tag') | |
}); |
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 DS from 'ember-data'; | |
export default DS.Model.extend({ | |
global_id: DS.attr('string'), | |
resource_uri: DS.attr('string'), | |
story_type: DS.attr('string'), | |
post: DS.belongsTo('post'), | |
pin: DS.belongsTo('pin') | |
}); |
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 DS from 'ember-data'; | |
import { computed } from '@ember/object'; | |
export default DS.Model.extend({ | |
global_id: DS.attr('string'), | |
body: DS.attr('string'), | |
is_announcement: DS.attr('boolean'), | |
author: DS.belongsTo('user'), | |
pin: DS.belongsTo('pin'), | |
title: DS.attr('string'), | |
community: DS.belongsTo('community'), | |
uploadedFileMetadata: DS.attr('string') | |
}); |
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 DS from 'ember-data'; | |
export default DS.Model.extend({ | |
global_id: DS.attr('string'), | |
name: DS.attr('string'), | |
description: DS.attr('string'), | |
network_id: DS.attr('string'), | |
tag_type: DS.attr('string'), | |
data: DS.attr() | |
}); |
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.17.1", | |
"EmberENV": { | |
"FEATURES": {}, | |
"_TEMPLATE_ONLY_GLIMMER_COMPONENTS": false, | |
"_APPLICATION_TEMPLATE_WRAPPER": true, | |
"_JQUERY_INTEGRATION": true | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.js", | |
"ember": "3.8.3", | |
"ember-template-compiler": "3.8.3", | |
"ember-testing": "3.8.3" | |
}, | |
"addons": { | |
"@glimmer/component": "1.0.0", | |
"ember-data": "3.8.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment