require-config.js

From disqus.com, 2 Months ago, written in JavaScript, viewed 3 times. This paste is a reply to FollowingForumCollection.js from disqus.com - view diff
URL https://pastebin.freepbx.org/view/ec393f59 Embed
Download Paste or View Raw
  1.  
  2.  
  3. require.config({
  4.     // Disable script timeouts
  5.     waitSeconds: 0,
  6.     paths: {
  7.         'jquery': '../../../node_modules/jquery/dist/jquery',
  8.         'modernizr': 'lib/modernizr-custom',
  9.         'backbone': '../../../node_modules/backbone/backbone',
  10.         'backbone-marionette': '../../../node_modules/backbone.marionette/lib/core/amd/backbone.marionette',
  11.         'backbone.wreqr': '../../../node_modules/backbone.wreqr/lib/backbone.wreqr',
  12.         'backbone.babysitter': '../../../node_modules/backbone.babysitter/lib/backbone.babysitter',
  13.         'underscore': '../../../node_modules/underscore/underscore',
  14.         'react': '../../../node_modules/react/dist/react',
  15.         'prop-types': '../../../node_modules/prop-types/prop-types',
  16.         'react-dom': '../../../node_modules/react-dom/dist/react-dom',
  17.         'react-redux': '../../../node_modules/react-redux/dist/react-redux',
  18.         'redux': '../../../node_modules/redux/dist/redux',
  19.         'handlebars': '../../../node_modules/handlebars/dist/handlebars.runtime',
  20.         'jquery.slick': '../../../node_modules/slick-carousel/slick/slick',
  21.         'loglevel': '../../../node_modules/loglevel/dist/loglevel',
  22.         'moment': '../../../node_modules/moment/moment',
  23.         'raven': '../../../node_modules/raven-js/dist/raven.min',
  24.         'dompurify': '../../../node_modules/dompurify/dist/purify',
  25.         'jquery.trunk8': 'vendor/jquery/jquery.trunk8',
  26.         'jquery.fitvids': 'vendor/jquery/jquery.fitvids',
  27.  
  28.         // allows, e.g., require('bootstrap/dropdown')
  29.         'bootstrap': '../../../node_modules/bootstrap/js',
  30.  
  31.         // Disqus Next-Core - shared Disqus front end js components
  32.         'core': '../../../next-core/core',
  33.         'core/config': 'core/config',
  34.         'core/templates': 'templates/next-core',
  35.         'core/views/react': 'core/views/react',
  36.  
  37.         // External sources
  38.         // The optimizer will automatically skip network paths
  39.         'disqus.sdk': 'https://c.disquscdn.com/next/current/embed/sdk',
  40.         'remote/config': 'https://disqus.com/next/config',
  41.         'translations': 'empty:',
  42.  
  43.         // All modules are namespaced under 'home' for code
  44.         // sharing purposes.
  45.         'home': '.',
  46.     },
  47.     packages: [{
  48.         name: 'stance',
  49.         location: '../../../next-core/core/stance',
  50.     }],
  51.     shim: {
  52.         'modernizr': {
  53.             exports: 'Modernizr',
  54.         },
  55.         'underscore': {
  56.             exports: '_',
  57.         },
  58.         'handlebars': {
  59.             exports: 'Handlebars',
  60.         },
  61.         'jquery.trunk8': {
  62.             deps: ['jquery'],
  63.         },
  64.         'jquery.fitvids': {
  65.             deps: ['jquery'],
  66.         },
  67.         'remote/config': {
  68.             exports: 'DISQUS.config',
  69.         },
  70.  
  71.         'bootstrap/dropdown': {
  72.             deps: ['jquery'],
  73.         },
  74.  
  75.         'bootstrap/tooltip': {
  76.             deps: ['jquery'],
  77.         },
  78.  
  79.         'bootstrap/modal': {
  80.             deps: ['jquery'],
  81.         },
  82.  
  83.         'bootstrap/collapse': {
  84.             deps: ['jquery'],
  85.         },
  86.     },
  87. });
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100. // https://c.disquscdn.com/next/current/home/js/apps/src/static/js/common/require.config({
  101.     // Disable script timeouts
  102.     waitSeconds: 0,
  103.     paths: {
  104.         'jquery': '../../../node_modules/jquery/dist/jquery',
  105.         'modernizr': 'lib/modernizr-custom',
  106.         'backbone': '../../../node_modules/backbone/backbone',
  107.         'backbone-marionette': '../../../node_modules/backbone.marionette/lib/core/amd/backbone.marionette',
  108.         'backbone.wreqr': '../../../node_modules/backbone.wreqr/lib/backbone.wreqr',
  109.         'backbone.babysitter': '../../../node_modules/backbone.babysitter/lib/backbone.babysitter',
  110.         'underscore': '../../../node_modules/underscore/underscore',
  111.         'react': '../../../node_modules/react/dist/react',
  112.         'prop-types': '../../../node_modules/prop-types/prop-types',
  113.         'react-dom': '../../../node_modules/react-dom/dist/react-dom',
  114.         'react-redux': '../../../node_modules/react-redux/dist/react-redux',
  115.         'redux': '../../../node_modules/redux/dist/redux',
  116.         'handlebars': '../../../node_modules/handlebars/dist/handlebars.runtime',
  117.         'jquery.slick': '../../../node_modules/slick-carousel/slick/slick',
  118.         'loglevel': '../../../node_modules/loglevel/dist/loglevel',
  119.         'moment': '../../../node_modules/moment/moment',
  120.         'raven': '../../../node_modules/raven-js/dist/raven.min',
  121.         'dompurify': '../../../node_modules/dompurify/dist/purify',
  122.         'jquery.trunk8': 'vendor/jquery/jquery.trunk8',
  123.         'jquery.fitvids': 'vendor/jquery/jquery.fitvids',
  124.  
  125.         // allows, e.g., require('bootstrap/dropdown')
  126.         'bootstrap': '../../../node_modules/bootstrap/js',
  127.  
  128.         // Disqus Next-Core - shared Disqus front end js components
  129.         'core': '../../../next-core/core',
  130.         'core/config': 'core/config',
  131.         'core/templates': 'templates/next-core',
  132.         'core/views/react': 'core/views/react',
  133.  
  134.         // External sources
  135.         // The optimizer will automatically skip network paths
  136.         'disqus.sdk': 'https://c.disquscdn.com/next/current/embed/sdk',
  137.         'remote/config': 'https://disqus.com/next/config',
  138.         'translations': 'empty:',
  139.  
  140.         // All modules are namespaced under 'home' for code
  141.         // sharing purposes.
  142.         'home': '.',
  143.     },
  144.     packages: [{
  145.         name: 'stance',
  146.         location: '../../../next-core/core/stance',
  147.     }],
  148.     shim: {
  149.         'modernizr': {
  150.             exports: 'Modernizr',
  151.         },
  152.         'underscore': {
  153.             exports: '_',
  154.         },
  155.         'handlebars': {
  156.             exports: 'Handlebars',
  157.         },
  158.         'jquery.trunk8': {
  159.             deps: ['jquery'],
  160.         },
  161.         'jquery.fitvids': {
  162.             deps: ['jquery'],
  163.         },
  164.         'remote/config': {
  165.             exports: 'DISQUS.config',
  166.         },
  167.  
  168.         'bootstrap/dropdown': {
  169.             deps: ['jquery'],
  170.         },
  171.  
  172.         'bootstrap/tooltip': {
  173.             deps: ['jquery'],
  174.         },
  175.  
  176.         'bootstrap/modal': {
  177.             deps: ['jquery'],
  178.         },
  179.  
  180.         'bootstrap/collapse': {
  181.             deps: ['jquery'],
  182.         },
  183.     },
  184. });
  185.  
  186.  

Replies to require-config.js rss

Title Name Language When
require.js disqus.com javascript 2 Months ago.

Reply to "require-config.js"

Here you can reply to the paste above