-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a31ed2e
commit 483380a
Showing
2 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
.vscode | ||
yarn.lock | ||
.idea |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,46 @@ | ||
import { BaseFileFactory } from 'core' | ||
|
||
export default class ExampleFileFactory extends BaseFileFactory { | ||
export default class ExampleFileFactory { | ||
constructor() { | ||
this.pipes = [] | ||
} | ||
|
||
static get name() { | ||
return "Just an Example" | ||
static get title() { | ||
return "ExampleFileFactory" | ||
} | ||
|
||
static templates() { | ||
return {} | ||
} | ||
|
||
static version() { | ||
return require('../package.json').version; | ||
} | ||
|
||
static settings() { | ||
return [ | ||
{ | ||
name: "ExampleFileFactory dummy setting", | ||
default: "Anything here...", | ||
dataType: String, | ||
} | ||
] | ||
} | ||
|
||
static pipes() { | ||
return [ | ||
|
||
] | ||
} | ||
|
||
static defaultPreferences() { | ||
return {} | ||
} | ||
|
||
static from(objectModelCollection) { | ||
return new this(objectModelCollection) | ||
} | ||
|
||
withPipes(pipes) { | ||
this.pipes = pipes | ||
return this | ||
} | ||
} |