How to use the conf/local.js.title function in conf

To help you get started, we’ve selected a few conf 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 First-Peoples-Cultural-Council / fv-web-ui / frontend / app / assets / javascripts / views / __tests__ / AppWrapper.js View on Github external
import { FirstVoicesThemeV1 as FirstVoicesTheme } from 'views/themes/FirstVoicesTheme.js'
import ConfGlobal from 'conf/local.js'

// Views
import AppWrapper from '../AppWrapper'

// require('!style-loader!css-loader!normalize.css')
// require('bootstrap/less/bootstrap')
// require('styles/main')


const createdMuiTheme = createMuiTheme(FirstVoicesTheme)
const context = {
  providedState: {
    properties: {
      title: ConfGlobal.title,
      pageTitleParams: null,
      domain: ConfGlobal.domain,
    },
  },
}
describe('AppWrapper', () => {
  test('Mounts', () => {
    // Structure: Arrange
    const container = document.createElement('div')
    ReactDOM.render(
      
        
          
        
      ,
      container)
github First-Peoples-Cultural-Council / fv-web-ui / frontend / app / assets / javascripts / app.js View on Github external
// REDUX
import { Provider } from 'react-redux'
import store from 'providers/redux/store'

// Views
import AppWrapper from 'views/AppWrapper'

require('!style-loader!css-loader!normalize.css')
require('bootstrap/less/bootstrap')
require('styles/main')

const context = {
  providedState: {
    properties: {
      title: ConfGlobal.title,
      pageTitleParams: null,
      domain: ConfGlobal.domain,
    },
  },
}

render(
  
    
  ,
  document.getElementById('app-wrapper')
)

/*window.addEventListener("unhandledrejection", function(err, promise) {
// handle error here, for example log
});*/
github First-Peoples-Cultural-Council / fv-web-ui / frontend / app / assets / javascripts / providers / redux / reducers / navigation / reducer.js View on Github external
NAVIGATE_PAGE,
  CHANGE_SITE_THEME,
  CHANGE_TITLE_PARAMS,
  OVERRIDE_BREADCRUMBS,
  PAGE_PROPERTIES,
  LOAD_GUIDE_STARTED,
  LOAD_GUIDE_SUCCESS,
  LOAD_GUIDE_ERROR,
  LOAD_NAVIGATION_STARTED,
  LOAD_NAVIGATION_SUCCESS,
  LOAD_NAVIGATION_ERROR,
  SET_ROUTE_PARAMS,
} from './actionTypes'

const initialStateProperties = {
  title: ConfGlobal.title,
  pageTitleParams: null,
  domain: ConfGlobal.domain,
  siteTheme: 'default',
}
const DEFAULT_ROUTE_PARAMS = {
  pageSize: '10', // using strings since these values are pulled from the url bar
  page: '1', // using strings since these values are pulled from the url bar
  siteTheme: 'explore',
  area: SECTIONS,
}
const DEFAULT_SEARCH = {
  pageSize: '10', // using strings since these values are pulled from the url bar
  page: '1', // using strings since these values are pulled from the url bar
  sortBy: 'dc:title',
  sortOrder: 'asc',
}