This file contains 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
SET FOREIGN_KEY_CHECKS=0; | |
############################## | |
# SALES TABELLEN | |
############################## | |
TRUNCATE `sales_flat_creditmemo`; | |
TRUNCATE `sales_flat_creditmemo_comment`; | |
TRUNCATE `sales_flat_creditmemo_grid`; | |
TRUNCATE `sales_flat_creditmemo_item`; | |
TRUNCATE `sales_flat_invoice`; |
This file contains 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.JSONAPISerializer.extend({ | |
serializeIdFunc: decodeURIComponent, | |
normalizeIdFunc: encodeURIComponent, | |
/* | |
@method normalize | |
@param {DS.Model} modelClass | |
@param {Object} resourceHash |
This file contains 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 InfinityRoute from "ember-infinity/mixins/route"; | |
export default Ember.Mixin.create(InfinityRoute, { | |
perPageParam : "page[size]", | |
pageParam : "page[number]", | |
totalPagesParam : "meta.total",//unused | |
/** | |
@method _nextPageLoaded |
This file contains 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 JWT from 'ember-simple-auth-token/authenticators/jwt'; | |
const assign = Ember.assign || Ember.merge; | |
export default JWT.extend({ | |
/** | |
Accepts a `url` and `data` to be used in an ajax server request. | |
@method makeRequest | |
@private |
This file contains 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
/* | |
This middleware is to be used in the controller beforeAction hook. | |
You can search text, int and multi-column. | |
Example use in a controller: | |
query = ['search']; | |
beforeAction = [ | |
search(MyModel, { | |
searchText: ['description'], |
This file contains 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
// app/middleware/restrict-access.js | |
import User from 'app/models/user'; | |
import Employee from 'app/models/employee'; | |
import {UserTypes} from 'app/utils/constants'; | |
/** | |
* Options contains action's as key names and callback functions as values | |
* Callback receives request, response and a user object as arguments | |
* @param options |
This file contains 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
// app/utils/redis.js | |
import { createClient } from 'then-redis'; | |
export default createClient(process.env.REDIS_URL); | |
// app/middleware/redis.js | |
import redis from 'app/utils/redis'; | |
/** | |
* Middleware to automatically cache routes to Redis. |
This file contains 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 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', | |
author1: null, | |
author2: null, | |
init(){ | |
this._super(...arguments); |
OlderNewer