-
Notifications
You must be signed in to change notification settings - Fork 667
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
e7d947e
commit 1a67b54
Showing
8 changed files
with
197 additions
and
3 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
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
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
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
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,89 @@ | ||
package nextflow.config | ||
|
||
import groovy.transform.CompileStatic | ||
import groovy.transform.EqualsAndHashCode | ||
|
||
/** | ||
* Models a workflow input field parameter rendered in workflow webui | ||
* | ||
* @author Paolo Di Tommaso <[email protected]> | ||
*/ | ||
@EqualsAndHashCode | ||
@CompileStatic | ||
class InputField { | ||
|
||
/** | ||
* The field name | ||
*/ | ||
String name | ||
|
||
/** | ||
* Descriptive name | ||
*/ | ||
String label | ||
|
||
/** | ||
* Descriptive text | ||
*/ | ||
String hint | ||
|
||
/** | ||
* Field type | ||
*/ | ||
String type | ||
|
||
|
||
/** | ||
* default value to show when the field is rendered and | ||
* the actual value entered by the user when submit | ||
*/ | ||
def value | ||
|
||
/** | ||
* Creates an empty field | ||
*/ | ||
InputField() { } | ||
|
||
/** | ||
* Creates a field and set the value attribute | ||
* | ||
* @param value | ||
*/ | ||
InputField( def value ) { | ||
this.value = value | ||
} | ||
|
||
/** | ||
* Creates a field and assign the attributes specified as a map object | ||
* | ||
* @param opts | ||
*/ | ||
InputField( Map opts ) { | ||
if( opts.containsKey('name') ) | ||
this.name = opts.name | ||
|
||
if( opts.containsKey('label') ) | ||
this.label = opts.label | ||
|
||
if( opts.containsKey('hint')) | ||
this.hint = opts.hint | ||
|
||
if( opts.containsKey('type') ) | ||
this.type = opts.type | ||
|
||
if( opts.containsKey('value') ) | ||
this.value = opts.value | ||
} | ||
|
||
/** | ||
* Creates a field and assigned the attributes specified | ||
* | ||
* @param opts | ||
* @param value | ||
*/ | ||
InputField( Map opts, def value ) { | ||
this(opts) | ||
this.value = value | ||
} | ||
|
||
} |
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
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,34 @@ | ||
/* | ||
* Copyright (c) 2013-2015, Centre for Genomic Regulation (CRG). | ||
* Copyright (c) 2013-2015, Paolo Di Tommaso and the respective authors. | ||
* | ||
* This file is part of 'Nextflow'. | ||
* | ||
* Nextflow is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Nextflow is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with Nextflow. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
apply plugin: 'groovy' | ||
|
||
sourceSets { | ||
main.java.srcDirs = [] | ||
main.groovy.srcDirs = ['src/main'] | ||
main.resources.srcDirs = ['src/resources'] | ||
test.groovy.srcDirs = ['src/test'] | ||
test.java.srcDirs = [] | ||
test.resources.srcDirs = [] | ||
} | ||
|
||
dependencies { | ||
compile project(':') | ||
} | ||
|
19 changes: 19 additions & 0 deletions
19
subprojects/nxf-webui/src/main/nextflow/ui/web/Main.groovy
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,19 @@ | ||
package nextflow.ui.web | ||
|
||
import groovy.transform.CompileStatic | ||
|
||
/** | ||
* Web UI entry point | ||
* | ||
* @author Paolo Di Tommaso <[email protected]> | ||
*/ | ||
@CompileStatic | ||
class Main { | ||
|
||
static void main(String... args) { | ||
|
||
println "The web UI starts here!" | ||
|
||
} | ||
|
||
} |