Enable loading system using quickload
This commit is contained in:
parent
01f03165ad
commit
bad20cc769
1 changed files with 53 additions and 25 deletions
30
src/as2.lisp
30
src/as2.lisp
|
@ -131,6 +131,7 @@
|
||||||
|
|
||||||
;;; From Object to JSON
|
;;; From Object to JSON
|
||||||
|
|
||||||
|
(eval-when (:compile-toplevel :load-toplevel :execute)
|
||||||
(defun kebab-camel (kebab-string)
|
(defun kebab-camel (kebab-string)
|
||||||
"Convert KEBAB-STRING as kebab-case to camelCase."
|
"Convert KEBAB-STRING as kebab-case to camelCase."
|
||||||
(with-output-to-string (out)
|
(with-output-to-string (out)
|
||||||
|
@ -158,7 +159,7 @@
|
||||||
(remove-postfix "-as2" (string-downcase string)))
|
(remove-postfix "-as2" (string-downcase string)))
|
||||||
|
|
||||||
(defun prepare-property-key (name)
|
(defun prepare-property-key (name)
|
||||||
(kebab-camel (remove-as2-postfix (string (symbol-name name)))))
|
(kebab-camel (remove-as2-postfix (string (symbol-name name))))))
|
||||||
|
|
||||||
;;; CLOS related stuff
|
;;; CLOS related stuff
|
||||||
|
|
||||||
|
@ -314,3 +315,30 @@
|
||||||
|
|
||||||
(define-extend-class ignore-as2
|
(define-extend-class ignore-as2
|
||||||
block-as2)
|
block-as2)
|
||||||
|
|
||||||
|
;;; Actor Types
|
||||||
|
|
||||||
|
(define-extend-classes object
|
||||||
|
application
|
||||||
|
group
|
||||||
|
organization
|
||||||
|
person
|
||||||
|
service)
|
||||||
|
|
||||||
|
;;; Object and Link Types
|
||||||
|
|
||||||
|
(define-extend-classes object
|
||||||
|
relationship
|
||||||
|
article
|
||||||
|
document
|
||||||
|
event
|
||||||
|
place
|
||||||
|
profile
|
||||||
|
tombstone)
|
||||||
|
|
||||||
|
(define-extend-classes document
|
||||||
|
audio
|
||||||
|
image
|
||||||
|
video
|
||||||
|
note
|
||||||
|
page)
|
||||||
|
|
Loading…
Add table
Reference in a new issue