Skip to content

Commit

Permalink
Merge pull request #1290 from MetadataConsulting/remove-d3-ui-message…
Browse files Browse the repository at this point in the history
…s-pane

Remove d3 ui messages pane
  • Loading branch information
davidmilward authored May 24, 2018
2 parents 6f49f3a + 3009a2c commit f08954b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 20 deletions.
10 changes: 6 additions & 4 deletions ModelCatalogueCorePluginTestApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ task npmCacheConfig(type: NpmTask, dependsOn: nodeSetup) {
task npmPackages(type: NpmTask, dependsOn: npmCacheConfig) {
description = "Install Node.js packages"
args = [ 'install' ]
// inputs.files file('package.json')
inputs.files file('package.json')
outputs.files file('node_modules')
}

Expand All @@ -50,7 +50,7 @@ task bowerInstall(type: NodeTask) {
"--config.storage.packages=${gradle.getGradleUserHomeDir()}/caches/bower/packages",
"--config.storage.registry=${gradle.getGradleUserHomeDir()}/caches/bower/registry",
'install']
// inputs.files file('bower.json')
inputs.files file('bower.json')
outputs.files file('grails-app/assets/bower_components')
dependsOn npmPackages
}
Expand Down Expand Up @@ -483,8 +483,10 @@ task stop(type: Exec) {
bowerInstall.finalizedBy cleanUpBowerDependencies
stop.finalizedBy stopContainers


task war(type: Exec, dependsOn: bowerInstall) {
task deleteUnnecessaryJavascript(type: Delete) {
delete 'grails-app/assets/bower_components/d3/test', 'grails-app/assets/bower_components/validator-js/src', 'grails-app/assets/bower_components/validator-js/lib'
}
task war(type: Exec, dependsOn: [bowerInstall, deleteUnnecessaryJavascript]) {
description = "Build production war of MX application"
commandLine grailsw, 'war', '--non-interactive', '--stacktrace'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
//= require underscore/underscore-min.js
//= require_self
// @flow
/**
* D3 basicView/basic data model view
*/

// exposed variable
var serverUrl = ""
Expand Down Expand Up @@ -123,7 +126,9 @@ var initD3 = (function() {
}

function writeMessage(text) {
$('#d3-info-messages').append("<li>" + (new Date().toLocaleString()) + ":<br/>" + text + "</li>")
console.log((new Date().toLocaleString()))
console.log(text)

}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,21 @@
}

.column-left {
width: 60%;
width: 75%;
}

.column-right {
width: 20%;
overflow: scroll;
border: solid 3px;
}
.column-right-2 {
width: 20%;
width: 25%;
overflow: scroll;
border: solid 3px;
}

/*.column-right-2 {*/
/*width: 20%;*/
/*overflow: scroll;*/
/*border: solid 3px;*/
/*}*/

.info-box {
padding: 0.8em;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// @flow
<%--
Basic Data Model View, using D3.js (basicView)
Created by IntelliJ IDEA.
User: james
Date: 16/05/2018
Expand Down Expand Up @@ -70,17 +71,18 @@
</div>



</div>

<div id="d3-messages" class="column column-right-2">
<div class="info-box">
<h2><u>Messages:</u></h2>
<ul id="d3-info-messages">
%{--<div id="d3-messages" class="column column-right-2">--}%
%{--<div class="info-box">--}%
%{--<h2><u>Messages:</u></h2>--}%
%{--<ul id="d3-info-messages">--}%

%{--</ul>--}%
%{--</div>--}%
%{--</div>--}%


</ul>
</div>
</div>
</div>


Expand Down

0 comments on commit f08954b

Please sign in to comment.