Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import filesBundle from './files'
import configBundle from './config'
import configSaveBundle from './config-save'
import navbarBundle from './navbar'
import toursBundle from './tours'
import notifyBundle from './notify'
import connectedBundle from './connected'
import retryInitBundle from './retry-init'
import identityBundle from './identity'
import bundleCache from '../lib/bundle-cache'
import ipfsDesktop from './ipfs-desktop'
import repoStats from './repo-stats'
import createAnalyticsBundle from './analytics'
import experimentsBundle from './experiments'
export default composeBundles(
createCacheBundle({
cacheFn: bundleCache.set
}),
appIdle({ idleTimeout: 5000 }),
ipfsBundle({
tryWindow: false,
ipfsConnectionTest: async (ipfs) => {
// ipfs connection is working if can we fetch the bw stats.
// See: https://github.com/ipfs-shipyard/ipfs-webui/issues/835#issuecomment-466966884
try {
await ipfs.stats.bw()
} catch (err) {
if (!/bandwidth reporter disabled in config/.test(err)) {
throw err
}
}
import { composeBundles, createCacheBundle } from 'redux-bundler'
import routes from './routes'
import baseData from './base-data'
import people from './people'
import extraArgs from './extra-args'
import cache from '../utils/cache'
export default composeBundles(
routes,
baseData,
people,
createCacheBundle(cache.set),
extraArgs
)
import { composeBundles } from 'redux-bundler'
import electron from './electron'
import ipfs from './ipfs'
export default composeBundles(
electron,
ipfs
)
import { composeBundles } from 'redux-bundler'
import ipfsBundle from 'ipfs-redux-bundle'
import appIdle from './app-idle'
import routesBundle from './routes'
import redirectsBundle from './redirects'
import filesBundle from './files'
export default composeBundles(
appIdle({idleTimeout: 5000}),
ipfsBundle({
tryJsIpfs: true,
getJsIpfs: () => import('ipfs')
}),
routesBundle,
redirectsBundle,
filesBundle
)
import { composeBundles, createUrlBundle, createCacheBundle } from 'redux-bundler';
import routes from './routes';
import extraArgs from './extra-args';
import cache from '@/utils/cache';
export default composeBundles(
createUrlBundle(),
routes,
createCacheBundle(cache.set),
extraArgs,
);
import { composeBundles, createCacheBundle } from 'redux-bundler';
import visibility from './visibility';
import user from './user';
import messages from './messages';
export default composeBundles(visibility, user, messages);
import { composeBundles, createCacheBundle } from 'redux-bundler'
import routes from './routes'
import baseData from './base-data'
import people from './people'
import viewport from './viewport'
import extraArgs from './extra-args'
import cache from '../utils/cache'
export default composeBundles(
routes,
baseData,
people,
viewport,
createCacheBundle(cache.set),
extraArgs
)