Browse Source

- Updated documentation with webdav installation instructions
- Updated Jtalk files

Nicolas Petton 13 years ago
parent
commit
ef33ae5c09
4 changed files with 395 additions and 286 deletions
  1. 22 9
      css/jtalk.css
  2. 3 2
      css/style.css
  3. 45 5
      index.html
  4. 325 270
      js/jtalk.js

+ 22 - 9
css/jtalk.css

@@ -134,7 +134,14 @@ body.jtalkBody {
     height: 100%;
 }
 
-.jtalkTool ul.jt_column {
+.jtalkTool .jt_commit {
+    position: absolute;
+    top: 110px;
+    left: 0;
+    font-size: 12px;
+}
+
+.jtalkTool .jt_column {
     width: 24%;
     padding: 0;
     margin: 0;
@@ -148,35 +155,41 @@ body.jtalkBody {
     top: 0;
 }
 
-.jtalkTool ul.jt_column.categories {
-    left: 0%
+.jtalkTool .jt_column.value {
+    left: 25.2%;
+    width: 74.8%;
+}
+
+.jtalkTool .jt_column.categories {
+    left: 0%;
+    height: 105px;
 }
 
-.jtalkTool ul.jt_column.classes {
+.jtalkTool .jt_column.classes {
     height: 105px;
     left: 25.2%
 }
 
-.jtalkTool ul.jt_column.protocols {
+.jtalkTool .jt_column.protocols {
     left: 50.4%
 }
 
-.jtalkTool ul.jt_column.methods {
+.jtalkTool .jt_column.methods {
     left: 75.6%
 }
 
-.jtalkTool ul.jt_column li {
+.jtalkTool .jt_column li {
     list-style-type: none;
     padding-left: 5px;
     cursor: pointer;
 }
 
-.jtalkTool ul.jt_column li.selected {
+.jtalkTool .jt_column li.selected {
 	background: #e3e3e3;
 	color: #222;
 }
 
-.jtalkTool ul.jt_column li:hover {
+.jtalkTool .jt_column li:hover {
     background: #08c;
     color: white;
 }

+ 3 - 2
css/style.css

@@ -174,10 +174,11 @@ html,body {
 }
 
 .box .content h4 {
-	font: 16px Georgia, Times, serif;
+	font: 18px Georgia, Times, serif;
 	color: #272727;
 	padding-top: 1em;
-	padding-left: 1.5em;
+	margin-top: 10px;
+	margin-bottom: 5px;
 }
 
 .box .content pre {

+ 45 - 5
index.html

@@ -117,7 +117,48 @@ t: 0; border: 0;" src="https://assets.github.com/img/bec6c51521dcc8148146135149f
 
 	      <h3 id="differences-other-smalltalks">2. Differences with other Smalltalk implementations <a href="#differences-other-smalltalks">&para;</a></h3>
 
-	      <h3 id="counter-example">3. The counter example <a href="#counter-example">&para;</a></h3>
+	      <h3 id="committing">3. Committing changes to disk with the web-based IDE <a href="#committing">&para;</a></h3>
+	      
+	      <p>The class browser is able to commit changes to disk. The <code>commit category</code> button will send a PUT request with the compiled JavaScript code of all classes in the selected class category in a file named <code>js/CATEGORY.js</code>.</p>
+	      <p>The easiest way to enable committing is probably to setup a webdav with Apache.</p>
+	      <p class="information">The following steps explain how to setup a webdav for Jtalk with Debian, but the setup on OSX and other Linux distros should be similar.</p>
+	      <h4>Installing Apache and enabling the dav module</h4>
+	      <p>Evaluate the following as root:</p>
+	      <pre>~# apt-get install apache2
+~# a2enmod dav
+~# a2enmod dav_fs</pre>
+
+	      <h4>Creating a password for the webdav</h4>
+	      <pre>htpasswd -c /etc/apache2/htpasswd-webdav USERNAME</pre>
+
+	      <h4>Setting up the webdav directory</h4>
+	      <p>Add the following lines to the default vhost (in /etc/apache2/sites-available/default):</p>
+	      <pre>Alias /jtalk/ "/path/to/jtalk/"
+&lt;Directory "/path/to/jtalk/"&gt;
+    Options Indexes MultiViews FollowSymLinks
+    DirectoryIndex index.html
+    AllowOverride None
+        Order allow,deny
+    allow from all
+
+    Dav on
+
+    AuthType Basic
+    AuthName "jtalk"
+    AuthUserFile /etc/apache2/htpasswd-webdav
+    &lt;LimitExcept GET OPTIONS&gt;
+            Require valid-user
+    &lt;/LimitExcept&gt;
+
+&lt;/Directory&gt;</pre>
+	      <p>Make sure the group www-data has required rights to modify files in the webdav directory.</p>
+		
+	      <h4>Restarting Apache</h4>
+
+	      <p>To restart Apache, evaluate the following: <pre>~# /etc/init.d/apache2 restart</pre> and go to <code>http://localhost/jtalk/</code>.</p>
+	      <p>The class browser should now be able to commit changes to disk.</p>
+
+	      <h3 id="counter-example">4. The counter example <a href="#counter-example">&para;</a></h3>
 
 	      <p>The following example is the traditional Seaside-like multi-counter application. The buttons at the bottom of each counter increase or decrease the counter.</p>
 
@@ -129,10 +170,9 @@ t: 0; border: 0;" src="https://assets.github.com/img/bec6c51521dcc8148146135149f
 	      <p>Open a  <button onclick="smalltalk.Browser._openOn_(smalltalk.Counter);">browser</button> on the <code>Counter</code> class in the <code>Canvas</code> class category.
 		<p>Each Jtalk widget is a subclass of <code>Widget</code>. A widget is a graphical component. The <code>#renderOn:</code> method is used to generate HTML using the HTML canvas.</p>
 
-
-		<h3 id="html-canvas">4. The HTML canvas <a href="#html-canvas">&para;</a></h3>
-		<h3 id="widgets">5. Widgets <a href="#widgets">&para;</a></h3>
-		<h3 id="jquery">6. jQuery <a href="#jquery">&para;</a></h3>
+		<h3 id="html-canvas">5. The HTML canvas <a href="#html-canvas">&para;</a></h3>
+		<h3 id="widgets">6. Widgets <a href="#widgets">&para;</a></h3>
+		<h3 id="jquery">7. jQuery <a href="#jquery">&para;</a></h3>
 
 	    </div>
 	  </div>

File diff suppressed because it is too large
+ 325 - 270
js/jtalk.js


Some files were not shown because too many files changed in this diff