ember-tribe 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,17 +1,3 @@
|
|
|
1
1
|
import Route from '@ember/routing/route';
|
|
2
|
-
import { service } from '@ember/service';
|
|
3
2
|
|
|
4
|
-
export default class IndexRoute extends Route {
|
|
5
|
-
@service store;
|
|
6
|
-
|
|
7
|
-
async model() {
|
|
8
|
-
//You can use the following after connecting Tribe in config/environment.js
|
|
9
|
-
//For more info https://github.com/wil-ldf-ire/ember-tribe#ember-tribe
|
|
10
|
-
|
|
11
|
-
//findRecord for type+slug pair and findAll all objects in a type
|
|
12
|
-
//return await this.store.findRecord('types_json', 'webapp');
|
|
13
|
-
|
|
14
|
-
//this.store.findAll('film');
|
|
15
|
-
//this.store.query('film', {page: {limit: 2, offset: 0}});
|
|
16
|
-
}
|
|
17
|
-
}
|
|
3
|
+
export default class IndexRoute extends Route {}
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Route from '@ember/routing/route';
|
|
2
|
-
import { service } from '@ember/service';
|
|
3
|
-
|
|
4
|
-
export default class IndexRoute extends Route {
|
|
5
|
-
@service store;
|
|
6
|
-
|
|
7
|
-
async model() {
|
|
8
|
-
//You can use the following after connecting Tribe in config/environment.js
|
|
9
|
-
//For more info https://github.com/wil-ldf-ire/ember-tribe#ember-tribe
|
|
10
|
-
|
|
11
|
-
//findRecord for type+slug pair and findAll all objects in a type
|
|
12
|
-
//return await this.store.findRecord('types_json', 'webapp');
|
|
13
|
-
|
|
14
|
-
//this.store.findAll('film');
|
|
15
|
-
//this.store.query('film', {page: {limit: 2, offset: 0}});
|
|
16
|
-
}
|
|
17
|
-
}
|