From 22451fc49853902fb14bee8b142a12279dc1530d Mon Sep 17 00:00:00 2001 From: cms Date: Thu, 4 Feb 2021 16:59:01 +0000 Subject: [PATCH 01/10] another typo in tutorial-13 output "appliction -> application" missed this one previously --- tutorial/13-tutorial.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorial/13-tutorial.lisp b/tutorial/13-tutorial.lisp index 37b36cf..6ed12ee 100644 --- a/tutorial/13-tutorial.lisp +++ b/tutorial/13-tutorial.lisp @@ -6,7 +6,7 @@ (defun start-tutorial () "Start tutorial." - (format t "Tutorial 13 is a how to on building your own clog appliction.~%~ + (format t "Tutorial 13 is a how to on building your own clog application.~%~ Copy the directory - ~A~%~ to your ~~/common-lisp directory or other asdf / quicklisp~%~ directory. Then follow the directions in the 13-tutorial ~%~ From f00b17f76b8b10037e2f44d1793e5dec77168d19 Mon Sep 17 00:00:00 2001 From: cms Date: Thu, 4 Feb 2021 20:01:58 +0000 Subject: [PATCH 02/10] small typo in README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ac219d0..c280a67 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ connectivity to the browser or other websocket client (often a browser embedded in a native template application.) STATUS: CLOG is complete enough for most uses. See below for some -enhacements bing worked on, CLOG is actually based on GNOGA, a +enhacements being worked on, CLOG is actually based on GNOGA, a framework I wrote for Ada in 2013 and used in commercial production code for the last 8 years, i.e. the techiniques CLOG uses are solid and proven. @@ -40,7 +40,7 @@ or Browser control compiled to native code. CLOG uses websockets for communications and the browser to render a GUI that maintains an active soft realtime connection. For most CLOG applications all programming logic, events and decisions are done on the server -which can be local or remote over the web. +which can be local, or remote over the web. CLOG is developed on an M1 MacBook with ECL, it is tested fairly regulary with SCBL on Linux, Windows and Intel MacBook. It should From d8c4d2d011c91b6ce91e5088d5f04f1fcbcdd817 Mon Sep 17 00:00:00 2001 From: cms Date: Fri, 5 Feb 2021 11:23:25 +0000 Subject: [PATCH 03/10] Edit the instructions in tutorial-13 for accuracy It suggests moving the whole tutorial directory into somewhere that asdf/quicklisp is going to search, but really all you need is the project subdirectory. Also updates the hint to point directly to the README.md --- tutorial/13-tutorial.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorial/13-tutorial.lisp b/tutorial/13-tutorial.lisp index 6ed12ee..3cb5735 100644 --- a/tutorial/13-tutorial.lisp +++ b/tutorial/13-tutorial.lisp @@ -9,7 +9,7 @@ (format t "Tutorial 13 is a how to on building your own clog application.~%~ Copy the directory - ~A~%~ to your ~~/common-lisp directory or other asdf / quicklisp~%~ - directory. Then follow the directions in the 13-tutorial ~%~ + directory. Then follow the directions in the 13-tutorial/README.md ~%~ directory." - (merge-pathnames "./tutorial/13-tutorial" + (merge-pathnames "./tutorial/13-tutorial/hello-clog/" (asdf:system-source-directory :clog)))) From e01754136737e82fc1b4f3c575b14d8cc6f75f0c Mon Sep 17 00:00:00 2001 From: cms Date: Fri, 5 Feb 2021 11:45:30 +0000 Subject: [PATCH 04/10] Minor typo corrections for tutorial-14 small grammar edits --- tutorial/14-tutorial.lisp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorial/14-tutorial.lisp b/tutorial/14-tutorial.lisp index bb563fe..a217e43 100644 --- a/tutorial/14-tutorial.lisp +++ b/tutorial/14-tutorial.lisp @@ -29,9 +29,9 @@ "

Local Storage vs Session Storage

The value of local storage persists in browser cache even after browser closed. -If you reset this page the session storage key will remain the same, but openning -in another window or tab will be a new session but if came from a click from this -window the session keys are copied first to the new window.

+If you reset this page the session storage key will remain the same, but opening +in another window or tab will be a new session, but if it came from a click from +this window the session keys are copied first to the new window.


Another Window = Different Session

From 5d8fa53a3f75b4a075ab4116cd9e436e44a2ef50 Mon Sep 17 00:00:00 2001 From: cms Date: Fri, 5 Feb 2021 11:55:14 +0000 Subject: [PATCH 05/10] fix typos in comments of tutorial 16 minor typos --- tutorial/16-tutorial.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorial/16-tutorial.lisp b/tutorial/16-tutorial.lisp index 071dbe5..d8851cb 100644 --- a/tutorial/16-tutorial.lisp +++ b/tutorial/16-tutorial.lisp @@ -25,7 +25,7 @@ (jumbo (create-div body :class "jumbotron text-center")) (jname (create-section jumbo :h1 :content "My First Bootstrap Page")) (tmp (create-p jumbo :content "Resize this responsive page to see the effect!")) - ;; Container for three colomns pf text + ;; Container for three columns of text (container (create-div body :class "container")) (row (create-div container :class "row")) ;; Column 1 From 8260004c4c4bb7bf91d54b1ee7a15053b6c80238 Mon Sep 17 00:00:00 2001 From: cms Date: Fri, 5 Feb 2021 11:59:29 +0000 Subject: [PATCH 06/10] typo fixes for tutorial 17 minor edits --- tutorial/17-tutorial.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorial/17-tutorial.lisp b/tutorial/17-tutorial.lisp index 1e20fe3..5e7047b 100644 --- a/tutorial/17-tutorial.lisp +++ b/tutorial/17-tutorial.lisp @@ -4,7 +4,7 @@ (in-package :clog-user) -;;; In this tutorial we will use a CSS only alternative to bootsrap - +;;; In this tutorial we will use a CSS only alternative to bootstrap - ;;; https://www.w3schools.com/w3css/default.asp (defun on-index (body) @@ -80,7 +80,7 @@ (run body)) (defun start-tutorial () - "Start turtorial." + "Start tutorial." (initialize #'on-index) (set-on-new-window #'on-page2 :path "/page2") (set-on-new-window #'on-page3 :path "/page3") From 94bb12e1557f0bc2784545e84af72b8dae78993f Mon Sep 17 00:00:00 2001 From: cms Date: Fri, 5 Feb 2021 12:01:04 +0000 Subject: [PATCH 07/10] fixes typos in tutorial 18 minor typos --- tutorial/18-tutorial.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorial/18-tutorial.lisp b/tutorial/18-tutorial.lisp index 0ae7811..2c11766 100644 --- a/tutorial/18-tutorial.lisp +++ b/tutorial/18-tutorial.lisp @@ -45,7 +45,7 @@ ;; 5 the target on-drop event is set (set-on-drop target1 (lambda (obj data) (place-inside-bottom-of target1 object))) - ;; Set up other box 1 also as targer for returning drag box + ;; Set up other box 1 also as target for returning drag box (set-on-drag-over target2 (lambda (obj)())) (set-on-drop target2 (lambda (obj data) (print (getf data :drag-data)) @@ -53,6 +53,6 @@ (run body))) (defun start-tutorial () - "Start turtorial." + "Start tutorial." (initialize #'on-new-window) (open-browser)) From a2f11530fdc9c62dc23f797ab1d38363b588d4fb Mon Sep 17 00:00:00 2001 From: cms Date: Fri, 5 Feb 2021 12:03:34 +0000 Subject: [PATCH 08/10] fixes for typos in tutorial 19 minor corrections --- tutorial/19-tutorial.lisp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorial/19-tutorial.lisp b/tutorial/19-tutorial.lisp index 02984be..17c40cf 100644 --- a/tutorial/19-tutorial.lisp +++ b/tutorial/19-tutorial.lisp @@ -7,14 +7,14 @@ ;;; In this tutorial we will see how to easily use a JavaScript ;;; component. In the static-files directory there is a simple ;;; JavaScript component (clog/static-files/tutorial/jslists) to create -;;; collapsable trees that we will use for this tutorial. +;;; collapsible trees that we will use for this tutorial. (defun on-new-window (body) ;; First we need to load jslists' JavaScript file and css (load-css (html-document body) "/tutorial/jslists/jsLists.css") (load-script (html-document body) "/tutorial/jslists/jsLists.js") ;; Second we need to build an example list. jsLists uses an ordered - ;; or unordered list for it's data. + ;; or unordered list for its data. (let* ((list-top (create-unordered-list body)) (item (create-list-item list-top :content "Top of tree")) (list-b (create-unordered-list item)) @@ -27,6 +27,6 @@ (run body)) (defun start-tutorial () - "Start turtorial." + "Start tutorial." (initialize #'on-new-window) (open-browser)) From 06daeaed3ff85570e22f572c4977b8dbc9fa7780 Mon Sep 17 00:00:00 2001 From: cms Date: Fri, 5 Feb 2021 12:06:05 +0000 Subject: [PATCH 09/10] fixes typos in tutorial 20 minor edits to spelling and punctuation --- tutorial/20-tutorial.lisp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tutorial/20-tutorial.lisp b/tutorial/20-tutorial.lisp index 6882853..cbb8342 100644 --- a/tutorial/20-tutorial.lisp +++ b/tutorial/20-tutorial.lisp @@ -23,7 +23,7 @@ ;;; Next we will use the clog-unordered-list as the base for our new ;;; class clog-toggler (defclass clog-toggler (clog-unordered-list) () - (:documentation "Toggler object - a collapsable UI component")) + (:documentation "Toggler object - a collapsible UI component")) (defgeneric create-toggler (clog-obj &key class html-id auto-place) (:documentation "Create a toggler.")) @@ -34,8 +34,8 @@ (let ((new-obj (create-unordered-list obj :class class :html-id html-id :auto-place auto-place))) - ;; Using change-class we can reuse the parent clog-unordered-lists's - ;; create method and it's initialization. Otherwise we can use + ;; Using change-class we can re-use the parent clog-unordered-lists's + ;; create method and its initialization. Otherwise we can use ;; create-child and the needed html. (change-class new-obj 'clog-toggler) new-obj)) @@ -69,6 +69,6 @@ (run body)) (defun start-tutorial () - "Start turtorial." + "Start tutorial." (initialize #'on-new-window) (open-browser)) From d0fb76017cc42c19778e16ea7d7c904b79fd4cef Mon Sep 17 00:00:00 2001 From: cms Date: Fri, 5 Feb 2021 12:08:11 +0000 Subject: [PATCH 10/10] fixes for typos in tutorial 21 minor corrections --- tutorial/21-tutorial.lisp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorial/21-tutorial.lisp b/tutorial/21-tutorial.lisp index 70251b4..05987b3 100644 --- a/tutorial/21-tutorial.lisp +++ b/tutorial/21-tutorial.lisp @@ -11,11 +11,11 @@ (in-package :clog-drop-list) ;;; Next we will use the clog-unordered-list as the base for our new -;;; class clog-drop list and allow access to the "drop root" for +;;; class clog-drop-list and allow access to the "drop-root" for ;;; list items to be children of. (defclass clog-drop-list (clog-unordered-list) ((drop-root :accessor drop-root)) - (:documentation "CLOG Drop List object - a collapsable list component")) + (:documentation "CLOG Drop List object - a collapsible list component")) (defgeneric drop-root (clog-drop-list) (:documentation "Accessor for the drop list root, create clog-list-items @@ -56,6 +56,6 @@ on the drop-root.")) (run body)) (defun start-tutorial () - "Start turtorial." + "Start tutorial." (initialize #'on-new-window) (open-browser))