How to use the dotnetify.debug function in dotnetify

To help you get started, we’ve selected a few dotnetify 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 dsuryd / dotNetify / Demo / React / SPA / client / index.js View on Github external
import React from 'react';
import dotnetify from 'dotnetify';
import ReactDOM from 'react-dom';
import App from './App';
import SimpleList from './SimpleList';
import LiveChart from './LiveChart';
import CompositeView from './CompositeView';

dotnetify.debug = true;

// Set the components to global window to make it accessible to dotNetify routing.
Object.assign(window, { SimpleList, LiveChart, CompositeView });

ReactDOM.render(, document.getElementById('App'));
github dsuryd / dotNetify-Elements / Templates / SPA / client / main.js View on Github external
import React from 'react';
import ReactDOM from 'react-dom';
import dotnetify from 'dotnetify';
import App from './App';
import Dashboard from './dashboard/Dashboard';
import Form from './form/Form';
import 'dotnetify-elements/dotnetify-elements.css';

dotnetify.debug = true;

// Import all the routeable views into the global window variable.
Object.assign(window, { Form, Dashboard });

ReactDOM.render(, document.getElementById('App'));
github dsuryd / dotNetify / DevApp / client / main.js View on Github external
import React from 'react';
import ReactDOM from 'react-dom';
import dotnetify from 'dotnetify';
import App from './app/views/App';
import './app/styles/app.css';
import './app/styles/prism.css';
import * as views from './app/views';
import 'dotnetify-elements/dotnetify-elements.css';

dotnetify.debug = true;

// Import all the routeable views into the global window variable.
Object.assign(window, { ...views });

ReactDOM.render(, document.getElementById('App'));
github dsuryd / dotNetify / _experimental / Mfe / App1 / client / main.js View on Github external
import dotnetify from 'dotnetify';
import App from './App';
import Dashboard from './dashboard/Dashboard';
import Form from './form/Form';
import createWebComponent from './utils/web-component';

dotnetify.debug = true;

// Import all the routeable views into the global window variable.
Object.assign(window, { Form, Dashboard });

createWebComponent(App, 'd-app1');
github dsuryd / dotNetify-Elements / DevApp / client / main.js View on Github external
import React from 'react';
import ReactDOM from 'react-dom';
import App from './routes';
import './app/styles/app.css';
import './app/styles/prism.css';
import dotnetify from 'dotnetify';

dotnetify.debug = true;

ReactDOM.render(, document.getElementById('App'));