mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
feature #3748: Add requires
This commit is contained in:
1 parent
6bbf69aded
commit
5a79356bcb
7 files changed
+2252
-6
No files matched your search
@@ -0,0 +1,106 @@
|
||||
require.config({
|
||||
paths: {
|
||||
/* jQuery */
|
||||
'jquery': '../bower_components/jquery/dist/jquery.min',
|
||||
|
||||
/* Foundation */
|
||||
'foundation.core': '../bower_components/foundation/js/foundation/foundation',
|
||||
'foundation.abide': '../bower_components/foundation/js/foundation/foundation.abide',
|
||||
'foundation.accordion': '../bower_components/foundation/js/foundation/foundation.accordion',
|
||||
'foundation.alert': '../bower_components/foundation/js/foundation/foundation.alert',
|
||||
'foundation.clearing': '../bower_components/foundation/js/foundation/foundation.clearing',
|
||||
'foundation.dropdown': '../bower_components/foundation/js/foundation/foundation.dropdown',
|
||||
'foundation.equalizer': '../bower_components/foundation/js/foundation/foundation.equalizer',
|
||||
'foundation.interchange': '../bower_components/foundation/js/foundation/foundation.interchange',
|
||||
'foundation.joyride': '../bower_components/foundation/js/foundation/foundation.joyride',
|
||||
'foundation.magellan': '../bower_components/foundation/js/foundation/foundation.magellan',
|
||||
'foundation.offcanvas': '../bower_components/foundation/js/foundation/foundation.offcanvas',
|
||||
'foundation.orbit': '../bower_components/foundation/js/foundation/foundation.orbit',
|
||||
'foundation.reveal': '../bower_components/foundation/js/foundation/foundation.reveal',
|
||||
'foundation.tab': '../bower_components/foundation/js/foundation/foundation.tab',
|
||||
'foundation.tooltip': '../bower_components/foundation/js/foundation/foundation.tooltip',
|
||||
'foundation.topbar': '../bower_components/foundation/js/foundation/foundation.topbar',
|
||||
|
||||
/* Handlebars */
|
||||
'hbs': '../bower_components/require-handlebars-plugin/hbs',
|
||||
|
||||
/* Vendor Scripts */
|
||||
'jquery.cookie': '../bower_components/foundation/js/vendor/jquery.cookie',
|
||||
'fastclick': '../bower_components/foundation/js/vendor/fastclick',
|
||||
'modernizr': '../bower_components/foundation/js/vendor/modernizr',
|
||||
'placeholder': '../bower_components/foundation/js/vendor/placeholder'
|
||||
},
|
||||
shim: {
|
||||
/* jQuery */
|
||||
'jquery': {
|
||||
exports: '$'
|
||||
},
|
||||
|
||||
/* Foundation */
|
||||
'foundation.core': {
|
||||
deps: ['jquery', 'modernizr'],
|
||||
exports: 'Foundation'
|
||||
},
|
||||
'foundation.abide': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.accordion': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.alert': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.clearing': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.dropdown': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.equalizer': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.interchange': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.joyride': {
|
||||
deps: ['foundation.core', 'foundation.cookie']
|
||||
},
|
||||
'foundation.magellan': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.offcanvas': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.orbit': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.reveal': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.tab': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.tooltip': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.topbar': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
|
||||
/* Vendor Scripts */
|
||||
'jquery.cookie': {
|
||||
deps: ['jquery']
|
||||
},
|
||||
'fastclick': {
|
||||
exports: 'FastClick'
|
||||
},
|
||||
'modernizr': {
|
||||
exports: 'Modernizr'
|
||||
},
|
||||
'placeholder': {
|
||||
exports: 'Placeholders'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
require(['app'], function(App) {});
|
||||
@@ -11,6 +11,7 @@
|
||||
"flot.tooltip": "latest",
|
||||
"no-vnc": "*",
|
||||
"resumablejs": "*",
|
||||
"spice-html5": "git://anongit.freedesktop.org/spice/spice-html5"
|
||||
"spice-html5": "git://anongit.freedesktop.org/spice/spice-html5",
|
||||
"requirejs": "~2.1.17"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "requirejs",
|
||||
"version": "2.1.17",
|
||||
"homepage": "http://requirejs.org",
|
||||
"authors": [
|
||||
"jrburke.com"
|
||||
],
|
||||
"description": "A file and module loader for JavaScript",
|
||||
"main": "require.js",
|
||||
"keywords": [
|
||||
"AMD"
|
||||
],
|
||||
"license": "new BSD, and MIT",
|
||||
"_release": "2.1.17",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "2.1.17",
|
||||
"commit": "72b4505d30d9fa342f6dc88ee25da2b2da6a1e58"
|
||||
},
|
||||
"_source": "git://github.com/jrburke/requirejs-bower.git",
|
||||
"_target": "~2.1.17",
|
||||
"_originalSource": "requirejs",
|
||||
"_direct": true
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
# requirejs-bower
|
||||
|
||||
Bower packaging for [RequireJS](http://requirejs.org).
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "requirejs",
|
||||
"version": "2.1.17",
|
||||
"homepage": "http://requirejs.org",
|
||||
"authors": [
|
||||
"jrburke.com"
|
||||
],
|
||||
"description": "A file and module loader for JavaScript",
|
||||
"main": "require.js",
|
||||
"keywords": [
|
||||
"AMD"
|
||||
],
|
||||
"license": "new BSD, and MIT"
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -9,7 +9,7 @@
|
||||
|
||||
<title>OpenNebula Sunstone: Cloud Operations Center</title>
|
||||
<link href="images/favicon.ico" rel="shortcut icon"></link>
|
||||
|
||||
<!--
|
||||
<script src="vendor/4.0/modernizr/modernizr.js?v=<%= OpenNebula::VERSION %>" type="text/javascript"></script>
|
||||
|
||||
<script src="vendor/4.0/jquery.min.js?v=<%= OpenNebula::VERSION %>" type="text/javascript"></script>
|
||||
@@ -22,8 +22,9 @@
|
||||
|
||||
<script src="vendor/4.0/jgrowl/jquery.jgrowl.min.js?v=<%= OpenNebula::VERSION %>" type="text/javascript"></script>
|
||||
<link href="vendor/4.0/jgrowl/jquery.jgrowl.min.css?v=<%= OpenNebula::VERSION %>" rel="stylesheet" type="text/css"></link>
|
||||
|
||||
-->
|
||||
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="vendor/flot/excanvas.min.js"></script><![endif]-->
|
||||
<!--
|
||||
<script src="vendor/4.0/flot/jquery.flot.js?v=<%= OpenNebula::VERSION %>" type="text/javascript"></script>
|
||||
<script src="vendor/4.0/flot/jquery.flot.stack.js?v=<%= OpenNebula::VERSION %>" type="text/javascript"></script>
|
||||
<script src="vendor/4.0/flot/jquery.flot.resize.js?v=<%= OpenNebula::VERSION %>" type="text/javascript"></script>
|
||||
@@ -72,10 +73,12 @@
|
||||
<% if session[:lang] %>
|
||||
<script src="locale/<%= session[:lang] %>/<%= session[:lang] %>.js?v=<%= OpenNebula::VERSION %>" type="text/javascript"></script>
|
||||
<% end %>
|
||||
<link href="css/app.css?v=<%= OpenNebula::VERSION %>" media="screen, projector, print" rel="stylesheet" type="text/css"></link>
|
||||
<script type="text/javascript">var csrftoken='<%= session[:csrftoken] %>';</script>
|
||||
|
||||
<script src="js/opennebula.js?v=<%= OpenNebula::VERSION %>" type="text/javascript"></script>
|
||||
<script src="js/sunstone.js?v=<%= OpenNebula::VERSION %>" type="text/javascript"></script>
|
||||
-->
|
||||
<link href="css/app.css?v=<%= OpenNebula::VERSION %>" media="screen, projector, print" rel="stylesheet" type="text/css"></link>
|
||||
<script type="text/javascript">var csrftoken='<%= session[:csrftoken] %>';</script>
|
||||
<% view = $views_config.view(session[:user], session[:user_gname], session[:default_view]) %>
|
||||
<script>
|
||||
|
||||
@@ -110,13 +113,24 @@
|
||||
|
||||
|
||||
</script>
|
||||
<!--
|
||||
<script src="js/plugins/config-tab.js?v=<%= OpenNebula::VERSION %>" type="text/javascript"></script>
|
||||
|
||||
-->
|
||||
<!-- enabled tabs: -->
|
||||
<!--
|
||||
<%- $views_config.available_tabs.each do |tab_name| -%>
|
||||
<script src="js/plugins/<%= tab_name %>.js?v=<%= OpenNebula::VERSION %>" type="text/javascript"></script>
|
||||
<%- end -%>
|
||||
-->
|
||||
|
||||
<!-- end tabs -->
|
||||
|
||||
|
||||
|
||||
<script src="bower_components/requirejs/require.js" data-main="app/main"></script>
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
<body class="antialiased">
|
||||
<div class="row">
|
||||
|
||||
Reference in new issue
Block a user