|
1 | 1 |
|
2 | 2 | {} (:about "|file is generated - never edit directly; learn cr edit/tree workflows before changing") (:package |app) |
3 | 3 | :configs $ {} (:init-fn |app.main/main!) (:reload-fn |app.main/reload!) (:version |0.0.1) |
4 | | - :modules $ [] |respo.calcit/ |lilac/ |memof/ |respo-ui.calcit/ |reel.calcit/ |respo-markdown.calcit/ |alerts.calcit/ |
| 4 | + :modules $ [] |respo.calcit/ |lilac/ |memof/ |respo-ui.calcit/ |reel.calcit/ |respo-markdown.calcit/ |alerts.calcit/ |respo-feather.calcit/ |
5 | 5 | :entries $ {} |
6 | 6 | :files $ {} |
7 | 7 | |app.comp.container $ %{} :FileEntry |
|
412 | 412 | if (:done? state) |
413 | 413 | div |
414 | 414 | {} $ :class-name (str-spaced css/row-middle css/gap8) |
| 415 | + if chrome-extension? |
| 416 | + comp-fill $ either (:answer state) "\"" |
| 417 | + , nil |
415 | 418 | comp-copy $ :answer state |
416 | | - comp-fill $ either (:answer state) "\"" |
417 | 419 | =< nil 200 |
418 | 420 | comp-message-box (>> states :message-box) |
419 | 421 | a $ {} |
|
432 | 434 | |comp-fill $ %{} :CodeEntry (:doc |) |
433 | 435 | :code $ quote |
434 | 436 | defcomp comp-fill (text) |
435 | | - div $ {} (:class-name style-fill) (:inner-text "|➚") |
436 | | - :on-click $ fn (e d!) |
437 | | - when chrome-extension? $ js/chrome.runtime.sendMessage |
438 | | - js-object (:action |fill-text) (:text text) |
| 437 | + div |
| 438 | + {} (:class-name style-fill) |
| 439 | + :on-click $ fn (e d!) |
| 440 | + when chrome-extension? $ js/chrome.runtime.sendMessage |
| 441 | + js-object (:action |fill-text) (:text text) |
| 442 | + comp-i :send 12 :currentColor |
439 | 443 | :examples $ [] |
440 | 444 | |comp-message-box $ %{} :CodeEntry (:doc |) |
441 | 445 | :code $ quote |
|
667 | 671 | |style-fill $ %{} :CodeEntry (:doc |) |
668 | 672 | :code $ quote |
669 | 673 | defstyle style-fill $ {} |
670 | | - "\"&" $ {} (:position :relative) (:width 12) (:height 12) (:border-radius "\"2px") |
671 | | - :border $ str "\"1.5px solid " (hsl 200 30 80) |
672 | | - :cursor :pointer |
673 | | - :user-select :none |
674 | | - :display :inline-flex |
675 | | - :align-items :center |
676 | | - :justify-content :center |
677 | | - :font-size 9 |
678 | | - :line-height "\"12px" |
679 | | - :color $ hsl 200 70 40 |
| 674 | + "\"&" $ {} (:cursor :pointer) (:user-select :none) (:display :inline-flex) (:align-items :center) (:justify-content :center) (:transition-duration "\"200ms") |
| 675 | + :color $ hsl 0 0 80 |
| 676 | + :margin "\"0 4px 0 8px" |
| 677 | + "\"&:hover" $ {} |
| 678 | + :color $ hsl 0 0 40 |
| 679 | + :transform "\"scale(1.06)" |
680 | 680 | :examples $ [] |
681 | 681 | |style-gap12 $ %{} :CodeEntry (:doc |) |
682 | 682 | :code $ quote |
|
808 | 808 | "\"@google/genai" :refer $ GoogleGenAI Modality |
809 | 809 | "\"../lib/image" :refer $ base64ToBlob |
810 | 810 | "\"openai" :default OpenAI |
| 811 | + feather.core :refer $ comp-i |
811 | 812 | :examples $ [] |
812 | 813 | |app.config $ %{} :FileEntry |
813 | 814 | :defs $ {} |
|
0 commit comments