feat: New @ohif/viewer project structure + routes (#1674)
* fix pagination size * clean up, start a very basic route configuration * quick navigation between routes * configure webpack to read .env variables * Move container components to Routes directory * Fix naming of recipe file * Clean up source folder * update yarn.lock * ci: update netlify deploy preview to build viewer project * update PWA entrypoint to pass configuration on window to App as props * fix: for missing key * Pass routerBasename to our React Router component * Simplify config for meow Co-authored-by: dannyrb <danny.ri.brown@gmail.com>
This commit is contained in:
1 parent
9a8bede80e
commit
01b314522d
116 files changed
+22080
-4971
No files matched your search
@@ -1,35 +0,0 @@
|
||||
// ***********************************************************
|
||||
// This example support/index.js is processed and
|
||||
// loaded automatically before your test files.
|
||||
//
|
||||
// This is a great place to put global configuration and
|
||||
// behavior that modifies Cypress.
|
||||
//
|
||||
// You can change the location of this file or turn off
|
||||
// automatically serving support files with the
|
||||
// 'supportFile' configuration option.
|
||||
//
|
||||
// You can read more here:
|
||||
// https://on.cypress.io/configuration
|
||||
// ***********************************************************
|
||||
|
||||
import './commands';
|
||||
|
||||
Cypress.on('window:before:load', window => {
|
||||
// Override our `getContext` function so all contexts that are webGl are
|
||||
// Created with `preserveDrawingBuffer = true`; this is required for percy
|
||||
// Snapshot
|
||||
window.HTMLCanvasElement.prototype.getContext = (function(oldGetContextFn) {
|
||||
return function(type, attrs) {
|
||||
attrs = attrs || {};
|
||||
if (
|
||||
type === 'webgl' ||
|
||||
type === 'webgl2' ||
|
||||
type === 'experimental-webgl'
|
||||
) {
|
||||
attrs.preserveDrawingBuffer = true;
|
||||
}
|
||||
return oldGetContextFn.apply(this, [type, attrs]);
|
||||
};
|
||||
})(HTMLCanvasElement.prototype.getContext);
|
||||
});
|
||||
Reference in new issue
Block a user