Преглед на файлове

renamed app interface functions

Skylsmoi преди 5 години
родител
ревизия
d7f611e5f3
променени са 3 файла, в които са добавени 11 реда и са изтрити 11 реда
  1. 1 1
      package.json
  2. 8 8
      src/index.dev.js
  3. 2 2
      src/index.js

+ 1 - 1
package.json Целия файл

52
       "btoa",
52
       "btoa",
53
       "wysiwyg",
53
       "wysiwyg",
54
       "tinymce",
54
       "tinymce",
55
-      "GLOBAL_renderApp",
55
+      "GLOBAL_renderAppFull",
56
       "GLOBAL_unmountApp",
56
       "GLOBAL_unmountApp",
57
       "GLOBAL_dispatchEvent"
57
       "GLOBAL_dispatchEvent"
58
     ],
58
     ],

+ 8 - 8
src/index.dev.js Целия файл

1
 import React from 'react'
1
 import React from 'react'
2
 import ReactDOM from 'react-dom'
2
 import ReactDOM from 'react-dom'
3
-// import HtmlDocument from './container/HtmlDocument.jsx'
4
-import PopupCreateHtmlDocument from './container/PopupCreateHtmlDocument.jsx'
3
+import HtmlDocument from './container/HtmlDocument.jsx'
4
+// import PopupCreateHtmlDocument from './container/PopupCreateHtmlDocument.jsx'
5
 
5
 
6
 require('./css/index.styl')
6
 require('./css/index.styl')
7
 
7
 
8
-// ReactDOM.render(
9
-//   <HtmlDocument data={undefined} />
10
-//   , document.getElementById('content')
11
-// )
12
-
13
 ReactDOM.render(
8
 ReactDOM.render(
14
-  <PopupCreateHtmlDocument />
9
+  <HtmlDocument data={undefined} />
15
   , document.getElementById('content')
10
   , document.getElementById('content')
16
 )
11
 )
12
+
13
+// ReactDOM.render(
14
+//   <PopupCreateHtmlDocument />
15
+//   , document.getElementById('content')
16
+// )

+ 2 - 2
src/index.js Целия файл

12
 const appInterface = {
12
 const appInterface = {
13
   name: 'HtmlDocument',
13
   name: 'HtmlDocument',
14
   isRendered: false,
14
   isRendered: false,
15
-  renderApp: data => { // renderAppFull
15
+  renderAppFull: data => {
16
     return ReactDOM.render(
16
     return ReactDOM.render(
17
       <HtmlDocument data={data} />
17
       <HtmlDocument data={data} />
18
       , document.getElementById(data.config.domContainer)
18
       , document.getElementById(data.config.domContainer)
21
   unmountApp: domId => {
21
   unmountApp: domId => {
22
     return ReactDOM.unmountComponentAtNode(document.getElementById(domId)) // returns bool
22
     return ReactDOM.unmountComponentAtNode(document.getElementById(domId)) // returns bool
23
   },
23
   },
24
-  renderPopupCreation: data => { // renderAppPopupCreation
24
+  renderAppPopupCreation: data => {
25
     return ReactDOM.render(
25
     return ReactDOM.render(
26
       <PopupCreateHtmlDocument data={data} />
26
       <PopupCreateHtmlDocument data={data} />
27
       , document.getElementById(data.config.domContainer)
27
       , document.getElementById(data.config.domContainer)