How to use rmw-shell - 10 common examples

To help you get started, we’ve selected a few rmw-shell examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TarikHuber / react-most-wanted / src / containers / Main / Main.js View on Github external
import App from 'rmw-shell'
import React, { Component } from 'react'
import config from '../../config'
import configureStore from '../../store'
import locales from '../../config/locales'
import { Helmet } from 'react-helmet'
import { addLocalizationData } from 'rmw-shell/lib/config/locales'
import { withA2HS } from 'a2hs'

addLocalizationData(locales)

class Main extends Component {
  componentDidMount () {
    // const { setA2HPState } = this.props
    // console.log(this.props)
    // setA2HPState({ isAppInstallable: true })
  }

  render () {
    return <div>
      
        
        
        
      
</div>
github TarikHuber / react-most-wanted / src / pages / LandingPage / LandingPage.js View on Github external
},
  bullet: {
    display: 'inline-block',
    margin: '0 2px',
    transform: 'scale(0.8)',
  },
  cardTitle: {
    marginBottom: 16,
    fontSize: 14,
  },
  pos: {
    marginBottom: 12,
  },
})

const match = parseLanguages(['en', 'es', 'bs', 'ru', 'de'], 'en')

// eslint-disable-next-line react/prop-types
const LandingPage = ({ classes, history, theme }) => {
  const messages = messageSources[match]

  const isAuthorised = () => {
    try {
      const key = Object.keys(localStorage).find(e => e.match(/persist:root/))
      const data = JSON.parse(localStorage.getItem(key))
      const auth = JSON.parse(data.auth)

      return auth && auth.isAuthorised
    } catch (ex) {
      return false
    }
  }
github TarikHuber / react-most-wanted / src / pages / LandingPage / LandingPage.js View on Github external
}
  })

  return (
    <div>
      
        
        
        
        <title>{formatMessage(messages, 'main.title')}</title>
      

      
        
          <div style="{{">

          
             {
                history.push('/signin')
              }}
              rel="noopener"
            &gt;</div></div>
github TarikHuber / react-most-wanted / src / pages / LandingPage / LandingPage.js View on Github external
'_blank'
                      )
                      win.focus()
                    }}
                  &gt;
                    {formatMessage(messages, 'main.more')}
                  
                
              
              
                
                  
                    {formatMessage(messages, 'main.what')}
                  
                  
                    {formatMessage(messages, 'main.this')}

                    <br>
                    {formatMessage(messages, 'main.demo')}
                  
                
                
                  <button size="small"> {
                      history.push('/signin')
                    }}
                  &gt;
                    {formatMessage(messages, 'main.start')}
                  </button>
github TarikHuber / react-most-wanted / src / pages / LandingPage / LandingPage.js View on Github external
onClick={() =&gt; {
                  history.push('/signin')
                }}
                className={classes.button}
                variant="outlined"
                color="primary"
              &gt;
                {formatMessage(messages, 'main.start')}
              
            

            <div>
              
                
                  
                    {formatMessage(messages, 'main.instal')}
                  
                  <br>
                  {formatMessage(messages, 'main.run')}
                  <br>
                  
                    {' '}
                    npx create-react-app test-app --scripts-version
                    rmw-react-scripts{' '}
                  
                
                
                  <button size="small"> {
                      var win = window.open(
                        'https://github.com/TarikHuber/rmw-shell',</button></div>
github TarikHuber / react-most-wanted / src / pages / LandingPage / LandingPage.js View on Github external
align="center"
                component="h1"
                color="inherit"
                gutterBottom
                className={classes.title}
              &gt;
                {formatMessage(messages, 'main.title')}
              
              
                {formatMessage(messages, 'main.intro')}
              
              <button> {
                  history.push('/signin')
                }}
                className={classes.button}
                variant="outlined"
                color="primary"
              &gt;
                {formatMessage(messages, 'main.start')}
              </button>
            

            <div>
              
                </div>
github TarikHuber / react-most-wanted / src / pages / LandingPage / LandingPage.js View on Github external
{formatMessage(messages, 'main.this')}

                    <br>
                    {formatMessage(messages, 'main.demo')}
                  
                
                
                  <button size="small"> {
                      history.push('/signin')
                    }}
                  &gt;
                    {formatMessage(messages, 'main.start')}
                  </button>
                
              
            
          
        
      
    
  )
}
github TarikHuber / react-most-wanted / src / pages / LandingPage / LandingPage.js View on Github external
className={classes.button}
                variant="outlined"
                color="primary"
              &gt;
                {formatMessage(messages, 'main.start')}
              
            

            <div>
              
                
                  
                    {formatMessage(messages, 'main.instal')}
                  
                  <br>
                  {formatMessage(messages, 'main.run')}
                  <br>
                  
                    {' '}
                    npx create-react-app test-app --scripts-version
                    rmw-react-scripts{' '}
                  
                
                
                  <button size="small"> {
                      var win = window.open(
                        'https://github.com/TarikHuber/rmw-shell',
                        '_blank'
                      )
                      win.focus()</button></div>
github TarikHuber / react-most-wanted / src / pages / LandingPage / LandingPage.js View on Github external
<br>
                    {''}
                  
                
                
                  <button size="small"> {
                      var win = window.open(
                        'https://github.com/TarikHuber/react-most-wanted',
                        '_blank'
                      )
                      win.focus()
                    }}
                  &gt;
                    {formatMessage(messages, 'main.more')}
                  </button>
                
              
              
                
                  
                    {formatMessage(messages, 'main.what')}
                  
                  
                    {formatMessage(messages, 'main.this')}

                    <br>
                    {formatMessage(messages, 'main.demo')}
github TarikHuber / react-most-wanted / src / pages / LandingPage / LandingPage.js View on Github external
'_blank'
                      )
                      win.focus()
                    }}
                  &gt;
                    {formatMessage(messages, 'main.more')}
                  
                
              
              
                
                  
                    {formatMessage(messages, 'main.usage')}
                  
                  <br>
                  {formatMessage(messages, 'main.set')}
                  <br>
                  
                    {'import App from \'rmw-shell\''}
                    <br>
                    {''}
                  
                
                
                  <button size="small"> {
                      var win = window.open(
                        'https://github.com/TarikHuber/react-most-wanted',
                        '_blank'
                      )
                      win.focus()</button>