Liking cljdoc? Tell your friends :D

oc.lib.user


source

fix-avatar-urlclj/s

(fix-avatar-url filestack-api-key avatar-url)
(fix-avatar-url filestack-api-key avatar-url avatar-size)

First it fixes relative URLs, it prepends our production CDN domain to it if it's relative. Then if the url is pointing to one of our happy faces, it replaces the SVG extension with PNG to have it resizable. If it's not one of our happy faces, it uses the on-the-fly resize url.

First it fixes relative URLs, it prepends our production CDN domain to it if it's relative.
Then if the url is pointing to one of our happy faces, it replaces the SVG extension with PNG
to have it resizable. If it's not one of our happy faces, it uses the on-the-fly resize url.
sourceraw docstring

name-forclj/s≠

clj
(name-for user)
(name-for first-name last-name)
(name-for user
          :guard
          (fn* [p1__36083#]
               (and (s/blank? (:first-name p1__36083#))
                    (s/blank? (:last-name p1__36083#))
                    (s/blank? (:name p1__36083#)))))
(name-for user :guard (fn* [p1__36084#] (not (s/blank? (:name p1__36084#)))))
(name-for first-name _last-name :guard s/blank?)
(name-for _first-name :guard s/blank? last-name)
(name-for _first-name :guard s/blank? _last-name :guard s/blank?)
cljs
(name-for user)
(name-for first-name last-name)
(name-for user
          :guard
          (fn* [p1__45342#]
               (and (s/blank? (:first-name p1__45342#))
                    (s/blank? (:last-name p1__45342#))
                    (s/blank? (:name p1__45342#)))))
(name-for user :guard (fn* [p1__45343#] (not (s/blank? (:name p1__45343#)))))
(name-for first-name _last-name :guard s/blank?)
(name-for _first-name :guard s/blank? last-name)
(name-for _first-name :guard s/blank? _last-name :guard s/blank?)

Make a single name field from first-name and/or last-name.

Use email as the name if the entire user is provided and there's no first or last name.

Make a single `name` field from `first-name` and/or `last-name`.

Use email as the name if the entire user is provided and there's no first or last name.
sourceraw docstring

name-for-csvclj/s

(name-for-csv user-map :guard map?)
(name-for-csv first-name last-name _user-id)
(name-for-csv first-name _last-name :guard s/blank? _user-id)
(name-for-csv _first-name :guard s/blank? last-name _user-id)
(name-for-csv _first-name :guard s/blank? _last-name :guard s/blank? user-id)

Get a name to display in the analytics files.

Do not use the email as fallback, use the user-id instead.

Get a name to display in the analytics files.

Do not use the email as fallback, use the user-id instead.
sourceraw docstring

short-name-forclj/s≠

clj
(short-name-for user)
(short-name-for user
                :guard
                (fn* [p1__36105#] (not (s/blank? (:first-name p1__36105#)))))
(short-name-for user
                :guard
                (fn* [p1__36106#] (not (s/blank? (:last-name p1__36106#)))))
(short-name-for user
                :guard
                (fn* [p1__36107#] (not (s/blank? (:name p1__36107#)))))
cljs
(short-name-for user)
(short-name-for user
                :guard
                (fn* [p1__45356#] (not (s/blank? (:first-name p1__45356#)))))
(short-name-for user
                :guard
                (fn* [p1__45357#] (not (s/blank? (:last-name p1__45357#)))))
(short-name-for user
                :guard
                (fn* [p1__45358#] (not (s/blank? (:name p1__45358#)))))

Select the first available between: first-name, last-name or name.

Fallback to email if none are available.

Select the first available between: `first-name`, `last-name` or `name`.

Fallback to `email` if none are available.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close