Browse Source

deleted all files

hhzl 9 years ago
parent
commit
09165b9316
5 changed files with 0 additions and 101 deletions
  1. 0 24
      hello/Gruntfile.js
  2. 0 1
      hello/README.md
  3. 0 26
      hello/index.html
  4. 0 34
      hello/js/HelloApp.js
  5. 0 16
      hello/st/HelloApp.st

+ 0 - 24
hello/Gruntfile.js

@@ -1,24 +0,0 @@
-module.exports = function(grunt) {
-  grunt.loadNpmTasks('../../node_modules/amber-dev');
-
-  grunt.registerTask('default', ['amberc:hello']);
-
-  grunt.initConfig({
-    pkg: grunt.file.readJSON('../package.json'),
-
-    amberc: {  
-      options: {
-        amber_dir: '../bower_components/amber',
-        closure_jar: ''
-      },
-      hello: {
-        src: ['st/HelloApp.st'],
-        libraries: ['Web'],
-        output_dir: 'js',
-        deploy: true,
-        amd_namespace: 'com_examples_hello'
-      }
-    }
-  });
-
-}

+ 0 - 1
hello/README.md

@@ -1 +0,0 @@
-The 'hello' application from https://github.com/amber-smalltalk/amber/wiki/Writing-my-first-app

+ 0 - 26
hello/index.html

@@ -1,26 +0,0 @@
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>My First Amber Project</title>
-    <script src="../bower_components/amber/support/amber.js"></script>
-    <script src="../bower_components/amber/support/requirejs/require.min.js"></script>
-    <script type="text/javascript">
-      require.config({ paths: {
-        'com_examples_hello': 'js', //mapping compiled .js files
-        'com_examples_hello/_source': 'st' //mapping smalltalk source files
-      }});
-      require(['amber/devel','com_examples_hello/HelloApp'], function (smalltalk) {
-        smalltalk.defaultAmdNamespace = "com_examples_hello"; //used for all new packages in IDE
-        smalltalk.initialize();
-        smalltalk.Hello._new()._begin();
-      });
-    </script>
-  </head>
-  <body>
-    <article>
-      <h1>My First Amber Project</h1>
-      <button onclick="require('amber/helpers').globals.Browser._open()">class browser</button>
-      <button id="sayHello">say hello</button>
-    </article>
-  </body>
-</html>

+ 0 - 34
hello/js/HelloApp.js

@@ -1,34 +0,0 @@
-define("com_examples_hello/HelloApp", ["amber/boot", "amber_core/Kernel-Objects"], function($boot){
-var smalltalk=$boot.vm,nil=$boot.nil,_st=$boot.asReceiver,globals=$boot.globals;
-smalltalk.addPackage('HelloApp');
-smalltalk.packages["HelloApp"].transport = {"type":"amd","amdNamespace":"com_examples_hello"};
-
-smalltalk.addClass('Hello', globals.Object, [], 'HelloApp');
-smalltalk.addMethod(
-smalltalk.method({
-selector: "begin",
-protocol: 'not yet classified',
-fn: function (){
-var self=this;
-var msg,button;
-return smalltalk.withContext(function($ctx1) { 
-var $1,$2;
-msg="Hello world!";
-button="#sayHello"._asJQuery();
-_st(button)._click_((function(){
-return smalltalk.withContext(function($ctx2) {
-$1=button;
-$2=_st("<p>".__comma(msg)).__comma("</p>");
-$ctx2.sendIdx[","]=1;
-return _st($1)._after_($2);
-}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
-return self}, function($ctx1) {$ctx1.fill(self,"begin",{msg:msg,button:button},globals.Hello)})},
-args: [],
-source: "begin\x0a\x22Makes me say hello to the user.\x22\x0a\x0a| msg button |\x0amsg := 'Hello world!'.\x0abutton := '#sayHello' asJQuery.\x0abutton click: [button after: '<p>' , msg , '</p>'].",
-messageSends: ["asJQuery", "click:", "after:", ","],
-referencedClasses: []
-}),
-globals.Hello);
-
-
-});

+ 0 - 16
hello/st/HelloApp.st

@@ -1,16 +0,0 @@
-Smalltalk createPackage: 'HelloApp'!
-Object subclass: #Hello
-	instanceVariableNames: ''
-	package: 'HelloApp'!
-
-!Hello methodsFor: 'not yet classified'!
-
-begin
-"Makes me say hello to the user."
-
-| msg button |
-msg := 'Hello world!!'.
-button := '#sayHello' asJQuery.
-button click: [button after: '<p>' , msg , '</p>'].
-! !
-