-
This shows the steps needed to get Ember Simple Auth to work with Ember Engines as if they are the same application
-
Things to note
- engine login page needs to
transitionToExternal('login')
- login has to be passed in as an external route to the engine
- session and cookie services both need to be passed into engine
- sessionAuthenticated function needs to be overwritten in the Application Controller of the Engine
- engine login page needs to
-
in /app/app.js add to const engines object { [Engine Name]: dependencies }
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
{ | |
"label": "Subform Top", | |
"sections": [ | |
{ | |
"label": "Subform Top", | |
"fields": [ | |
{ | |
"id": "121", | |
"type": "text", | |
"required": true, |
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 fetch from 'fetch'; | |
const { FormData } = window; | |
import { debug } from '@ember/debug'; | |
import Service, { inject } from '@ember/service'; |
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 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 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 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
// ember-cli-fastboot/index.js | |
let fastbootMiddleware = FastBootExpressMiddleware({ | |
+ onVisit: fastbootConfig.onVisit, | |
fastboot: this.fastboot | |
}); | |
// fastboot-express-middleware/src/index.js | |
function fastbootExpressMiddleware(distPath, options) { | |
return function(req, res, next) { |
I hereby claim:
- I am devotox on github.
- I am dtox (https://keybase.io/dtox) on keybase.
- I have a public key ASAF403OlS8hip1EaVEIyBGOASW6pkgX6hW7PYYjpPFmsgo
To claim this, I am signing this object:
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 Adapter from "ember-data/adapters/json-api"; | |
export default Adapter.extend({ | |
urlForQueryRecord({ slug }, modelName) { | |
if (slug) { | |
return this.urlForFindRecord(slug, modelName); | |
} | |
return this._super(...arguments); |
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
#!/usr/bin/env bash | |
# names of latest versions of each package | |
export VERSION_PCRE=pcre-8.38 | |
export VERSION_OPENSSL=openssl-1.0.2f | |
export VERSION_NGINX=nginx-1.9.10 | |
# URLs to the source directories | |
export SOURCE_OPENSSL=https://www.openssl.org/source/ | |
export SOURCE_PCRE=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ |
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
(function () { | |
'use strict'; | |
var cluster = require('cluster'), | |
http = require('http'), | |
os = require('os'), | |
ClusterServer, | |
workers = {}; | |
/* |