Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
naryl
- Mon, 23 Mar 2020 17:12:10
Show More
TODO
0
+4
-2
@@
-1,7
+1,9
b''
1
1
2
* Use async/await
2
* Use Parenscript's packages
3
* Use Parenscript's minifier
3
* Use Parenscript's minifier
4
* WAIT and MENU with async/await
4
* Remove dots
5
* MENU with async/await
6
* Find a way to minify syntax (extra returns at least)
5
* Special locations
7
* Special locations
6
* Special variables
8
* Special variables
7
* CLI build for Linux
9
* CLI build for Linux
src/api.ps
0
+3
0
@@
-24,6
+24,9
b''
24
(defm (root api report-error) (text)
24
(defm (root api report-error) (text)
25
(alert text))
25
(alert text))
26
26
27
(defm (root api sleep) (msec)
28
(ps:new (*promise (ps:=> resolve (set-timeout resolve msec)))))
29
27
(defm (root api init-dom) ()
30
(defm (root api init-dom) ()
28
;; Save/load buttons
31
;; Save/load buttons
29
(let ((btn (document.get-element-by-id "qsp-btn-save")))
32
(let ((btn (document.get-element-by-id "qsp-btn-save")))
src/intrinsic-macros.lisp
0
+3
0
@@
-147,6
+147,9
b''
147
147
148
;;; 20time
148
;;; 20time
149
149
150
( ps:defpsmacro wait ( msec )
151
` ( await ( api-call sleep , msec )))
152
150
( ps:defpsmacro settimer ( interval )
153
( ps:defpsmacro settimer ( interval )
151
` ( api-call set-timer , interval ))
154
` ( api-call set-timer , interval ))
152
155
src/intrinsics.ps
0
0
-6
@@
-274,12
+274,6
b''
274
274
275
;;; 20time
275
;;; 20time
276
276
277
;; I wonder if there's a better solution than busy-wait
278
(defm (root lib wait) (msec)
279
(let* ((now (ps:new (*date)))
280
(exit-time (+ (funcall now.get-time) msec)))
281
(loop :while (< (funcall now.get-time) exit-time))))
282
283
(defm (root lib msecscount) ()
277
(defm (root lib msecscount) ()
284
(- (*date.now) (root started-at)))
278
(- (*date.now) (root started-at)))
285
279
src/ps-macros.lisp
0
+1
-1
@@
-64,7
+64,7
b''
64
64
65
( ps:defpsmacro location (( name ) &body body )
65
( ps:defpsmacro location (( name ) &body body )
66
` ( setf ( root locs , name )
66
` ( setf ( root locs , name )
67
( lambda ( args )
67
( ps:async- lambda ( args )
68
( label-block ()
68
( label-block ()
69
( api-call init-args args )
69
( api-call init-args args )
70
,@ body
70
,@ body
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages