avo-hq/avo

Unavatar field

Offen

#2.994 geöffnet am 16.07.2024

 (5 Kommentare) (1 Reaktion) (1 zugewiesene Person)Ruby (308 Forks)user submission
FeatureGood first issueHelp wanted

Repository-Metriken

Stars
 (1.778 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 1T 6h) (67 gemergte PRs in 30 T)

Beschreibung

Feature

Unavatar.io is a seriously cool service. I coould see a field that would use it's API to display cool avatars.

# possible API
field :username, as: :unavatar

field :username, as: :unavatar, fallback: "https://source.boringavatars.com/marble/120/1337_user?colors=264653r,2a9d8f,e9c46a,f4a261,e76f51"

field :domain, as: :unavatar

field :username, as: :unavatar do
  # record.github_profile == "https://github.com/adrianthedev"
  record.github_profile.split('/').last
end

field :username, as: :unavatar, provider: :github

Contributor Guide