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
| #!/usr/bin/node | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const AWS = require('aws-sdk'); | |
| const Promise = require('bluebird'); | |
| const imagemin = require('imagemin'); | |
| const imageminJpegRecompress = require('imagemin-jpeg-recompress'); | |
| const config = { |
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 Service from '@ember/service'; | |
| const has = () => true; | |
| const { console, WeakMap, Proxy, Symbol } = window; | |
| const get = (target, key) => key === Symbol.unscopables ? undefined : target[key]; | |
| export default Service.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'; | |
| import fetch from 'fetch'; | |
| const { FormData } = window; | |
| import { debug } from '@ember/debug'; | |
| import Service, { inject } from '@ember/service'; |
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
| { | |
| "label": "Subform Top", | |
| "sections": [ | |
| { | |
| "label": "Subform Top", | |
| "fields": [ | |
| { | |
| "id": "121", | |
| "type": "text", | |
| "required": true, |
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
| { | |
| "id": "11223344", | |
| "label": "D Form", | |
| "description": "Forms so good ... Makes you wanna slap yo mama", | |
| "hooks": [{ | |
| "type": "http", | |
| "run": "click", | |
| "pollTime": 5000, | |
| "encrypted": true, | |
| "element": "form", |
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
| [ | |
| { | |
| "value": "500px" | |
| }, | |
| { | |
| "value": "address-book" | |
| }, | |
| { | |
| "value": "address-book-o" | |
| }, |
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
| const def = { | |
| 'id': '11223344', | |
| 'label': 'D Form', | |
| 'description': 'Forms so good ... Makes you wanna slap yo mama', | |
| 'hooks': [{ | |
| 'type': 'http', | |
| 'run': 'click', | |
| 'pollTime': 5000, | |
| 'encrypted': true, | |
| 'element': 'form', |
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
| 'use strict'; | |
| module.exports = function(environment) { | |
| let ENV = { | |
| modulePrefix: 'zero-cost-web-app', | |
| environment, | |
| rootURL: '/', | |
| locationType: 'auto', | |
| EmberENV: { | |
| FEATURES: { |
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 sort from 'fast-sort'; | |
| import { JSONAPISerializer } from 'ember-cli-mirage'; | |
| const stringToBoolean = (str) => | |
| ({ 'true': true, 'false': false }[str?.trim().toLowerCase()] || str); | |
| export default class Application extends JSONAPISerializer { | |
| // Can filter by any value on attributes | |
| // Or an ID on a relationship that MUST be in the `includes` | |
| filterResourceHash(resourceHash) { |
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 { Store } from 'ember-orbit'; | |
| export default class DataStore extends Store { | |
| findRecords(type, { filter, sort, page, include, ...options } = {}) { | |
| include && put(options, 'sources.remote.include', include); | |
| return this.query((q) => { | |
| let result = q.findRecords(type); | |
| page && (result = result.page(page)); |