[both] continued work on multi app support - storage now full supported and auth WIP

This commit is contained in:
Salakar
2017-07-12 15:49:33 +01:00
parent 82a2afd59b
commit 282f953f52
18 changed files with 280 additions and 194 deletions

View File

@@ -2,7 +2,8 @@
* @flow
*/
export default class ReferenceBase {
constructor(path: string) {
constructor(path: string, module) {
this._module = module;
this.path = path || '/';
}
@@ -17,4 +18,8 @@ export default class ReferenceBase {
get key(): string | null {
return this.path === '/' ? null : this.path.substring(this.path.lastIndexOf('/') + 1);
}
get log() {
return this._module.log;
}
}