Refactors verify_email, adds public html

This commit is contained in:
Florent Vilmart
2016-02-25 19:04:27 -05:00
parent 0b307bc22f
commit 7dd765256c
14 changed files with 455 additions and 63 deletions

View File

@@ -10,11 +10,13 @@ based on the parameters passed
// _adapter is private, use Symbol
var _adapter = Symbol();
import cache from '../cache';
export class AdaptableController {
constructor(adapter) {
constructor(adapter, appId) {
this.adapter = adapter;
this.appId = appId;
}
set adapter(adapter) {
@@ -26,6 +28,10 @@ export class AdaptableController {
return this[_adapter];
}
get config() {
return cache.apps[this.appId];
}
expectedAdapterType() {
throw new Error("Subclasses should implement expectedAdapterType()");
}