Sfoglia il codice sorgente

set is inside helios namespace

Herbert Vojčík 10 anni fa
parent
commit
c4e5b8865c
3 ha cambiato i file con 55 aggiunte e 1 eliminazioni
  1. 27 0
      all-inner.js
  2. 27 0
      all.js
  3. 1 1
      index.html

+ 27 - 0
all-inner.js

@@ -0,0 +1,27 @@
+// Loading this in nested file so that require.config
+// with shim dependencies is in effect.
+// See http://stackoverflow.com/questions/21647956/how-to-config-requirejs-shim-dependencies-just-in-time/
+
+define([
+	'amber/devel-inner',
+	'amber_lib/bootstrap/js/bootstrap',
+	'amber_lib/showdown/compressed/showdown',
+	'amber_core/Spaces',
+	'helios/Helios-Core',
+	'helios/Helios-Exceptions',
+	'helios/Helios-Helpers',
+	'helios/Helios-Commands-Core',
+	'helios/Helios-Commands-Tools',
+	'helios/Helios-Commands-Browser',
+	'helios/Helios-Layout',
+	'helios/Helios-KeyBindings',
+	'helios/Helios-Browser',
+	'helios/Helios-Workspace',
+	'helios/Helios-Transcript',
+	'helios/Helios-SUnit',
+	'helios/Helios-Debugger',
+	'helios/Helios-Inspector',
+	'helios/Helios-References',
+	'helios/Helios-Announcements',
+	'helios/Helios-Workspace-Tests'
+]);

+ 27 - 0
all.js

@@ -0,0 +1,27 @@
+require.config({
+	paths: {
+		'jquery-ui': require.toUrl('amber_lib/jquery-ui/ui/minified/jquery-ui.min')
+	},
+	shim: {
+		'jquery-ui': {
+			deps: [ 'jquery' ]
+		},
+		'amber_lib/bootstrap/js/bootstrap': {
+			deps: [ 'jquery', 'css!amber_lib/bootstrap/css/bootstrap' ]
+		},
+		'amber_lib/jquery-tabby/jquery.textarea': {
+			deps: [ 'jquery' ]
+		}
+	}
+});
+
+define([
+	'amber/helpers', // pre-fetch, dep of amber/deploy
+	'amber/deploy', // pre-fetch, dep of amber/lang
+	'amber/lang',
+	'amber/codemirror',
+	'amber/devel-inner', // pre-fetch, dep of ./all-inner
+	'./resources/all-inner',
+    'css!./resources/helios',
+	'css!./resources/helios-niflheim'
+], function (smalltalk) { return smalltalk; });

+ 1 - 1
index.html

@@ -14,7 +14,7 @@
       <script type='text/javascript' src='../requirejs/require.min.js'></script>
       <script type='text/javascript'>
           require(
-                  ["amber/helios"],
+                  ["helios/all"],
                   function (smalltalk) {
                       window.onbeforeunload = function() {
                           return 'Do you want to close Amber? All uncommitted changes will be lost.';