Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 839 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 839 Rev 840
Línea 7... Línea 7...
7
import { main } from './styles/themes'
7
import { main } from './styles/themes'
8
import { axios } from './utils'
8
import { axios } from './utils'
Línea 9... Línea 9...
9
 
9
 
Línea 10... Línea -...
10
import './styles/globals.scss'
-
 
11
 
10
import './styles/globals.scss'
12
const init = new Promise((resolve) => {
11
 
Línea 13... Línea 12...
13
  const appWrapper = document.querySelector('#app')
12
const appWrapper = document.querySelector('#app')
14
  const servicesUrl = appWrapper.getAttribute('data-service')
-
 
15
 
-
 
Línea 16... Línea -...
16
  axios.create(`https://${servicesUrl}`)
-
 
17
  resolve(appWrapper)
13
const servicesUrl = appWrapper.getAttribute('data-service')
18
})
14
 
19
 
15
axios.create(`https://${servicesUrl}`)
20
init.then((appWrapper) => {
16
 
21
  ReactDOM.render(
17
ReactDOM.render(
22
    <Provider store={store}>
18
  <Provider store={store}>
23
      <ThemeProvider theme={main}>
19
    <ThemeProvider theme={main}>
24
        <AppRouter />
-
 
25
      </ThemeProvider>
20
      <AppRouter />