From ed3b7b57c329b7ec96bcdefe54dd622c0baa9dbe Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Wed, 3 Oct 2018 18:24:31 -0700 Subject: [PATCH] Move put form out of components directory --- client/files-page.js | 4 ++-- client/presets-page.js | 6 +++--- client/provisions-page.js | 6 +++--- client/{components/put-form.js => put-form-component.js} | 2 +- client/virtual-parameters-page.js | 6 +++--- 5 files changed, 12 insertions(+), 12 deletions(-) rename client/{components/put-form.js => put-form-component.js} (98%) diff --git a/client/files-page.js b/client/files-page.js index b8ba4ce..87d6089 100644 --- a/client/files-page.js +++ b/client/files-page.js @@ -8,7 +8,7 @@ import * as store from "./store"; import * as expression from "../common/expression"; import * as notifications from "./notifications"; import memoize from "../common/memoize"; -import putForm from "./components/put-form"; +import putFormComponent from "./put-form-component"; import * as overlay from "./overlay"; import * as smartQuery from "./smart-query"; import * as expressionParser from "../common/expression-parser"; @@ -272,7 +272,7 @@ function renderTable( onclick: () => { const cb = () => { return m( - putForm, + putFormComponent, Object.assign( { actionHandler: (action, object) => { diff --git a/client/presets-page.js b/client/presets-page.js index d0031f5..7d39742 100644 --- a/client/presets-page.js +++ b/client/presets-page.js @@ -8,7 +8,7 @@ import * as overlay from "./overlay"; import * as store from "./store"; import * as expression from "../common/expression"; import * as notifications from "./notifications"; -import putForm from "./components/put-form"; +import putFormComponent from "./put-form-component"; import memoize from "../common/memoize"; import * as smartQuery from "./smart-query"; import * as expressionParser from "../common/expression-parser"; @@ -214,7 +214,7 @@ function renderTable( onclick: () => { const cb = () => { return m( - putForm, + putFormComponent, Object.assign( { base: preset, @@ -317,7 +317,7 @@ function renderTable( onclick: () => { const cb = () => { return m( - putForm, + putFormComponent, Object.assign( { actionHandler: (action, object) => { diff --git a/client/provisions-page.js b/client/provisions-page.js index e18198c..2702276 100644 --- a/client/provisions-page.js +++ b/client/provisions-page.js @@ -8,7 +8,7 @@ import * as store from "./store"; import * as expression from "../common/expression"; import * as notifications from "./notifications"; import memoize from "../common/memoize"; -import putForm from "./components/put-form"; +import putFormComponent from "./put-form-component"; import * as overlay from "./overlay"; import * as smartQuery from "./smart-query"; import * as expressionParser from "../common/expression-parser"; @@ -201,7 +201,7 @@ function renderTable( onclick: () => { const cb = () => { return m( - putForm, + putFormComponent, Object.assign( { base: provision, @@ -310,7 +310,7 @@ function renderTable( onclick: () => { const cb = () => { return m( - putForm, + putFormComponent, Object.assign( { actionHandler: (action, object) => { diff --git a/client/components/put-form.js b/client/put-form-component.js similarity index 98% rename from client/components/put-form.js rename to client/put-form-component.js index fb6a0de..9a98b29 100644 --- a/client/components/put-form.js +++ b/client/put-form-component.js @@ -1,7 +1,7 @@ "use strict"; import m from "mithril"; -import { codeMirror } from "../dynamic-loader"; +import { codeMirror } from "./dynamic-loader"; const singular = { presets: "preset", diff --git a/client/virtual-parameters-page.js b/client/virtual-parameters-page.js index c048136..b7ccdd6 100644 --- a/client/virtual-parameters-page.js +++ b/client/virtual-parameters-page.js @@ -8,7 +8,7 @@ import * as store from "./store"; import * as expression from "../common/expression"; import * as notifications from "./notifications"; import memoize from "../common/memoize"; -import putForm from "./components/put-form"; +import putFormComponent from "./put-form-component"; import * as overlay from "./overlay"; import * as smartQuery from "./smart-query"; import * as expressionParser from "../common/expression-parser"; @@ -202,7 +202,7 @@ function renderTable( onclick: () => { const cb = () => { return m( - putForm, + putFormComponent, Object.assign( { base: virtualParameter, @@ -320,7 +320,7 @@ function renderTable( onclick: () => { const cb = () => { return m( - putForm, + putFormComponent, Object.assign( { actionHandler: (action, object) => {