|
200 | 200 | :thinkingBudget $ get-env "\"think-budget" (if pro? 3200 800) |
201 | 201 | :includeThoughts think? |
202 | 202 | js-object (:thinkingBudget 0) (:includeThoughts false) |
203 | | - :httpOptions $ js-object |
| 203 | + ; :httpOptions $ js-object |
204 | 204 | :baseUrl $ get-env "\"gemini-host" "\"https://ja.chenyong.life" |
205 | 205 | :tools $ let |
206 | 206 | t $ -> |
|
607 | 607 | {} $ :max-width "\"90vw" |
608 | 608 | "\"&" $ {} (:color "\"#999") (:transition-duration "\"300ms") |
609 | 609 | :background-color $ hsl 0 0 98 |
| 610 | + :touch-action :none |
610 | 611 | "\"&:hover" $ {} (:color "\"#777") |
611 | 612 | :background-color $ hsl 0 0 100 |
612 | 613 | :examples $ [] |
|
741 | 742 | "\"@google/genai" :refer $ GoogleGenAI Modality |
742 | 743 | "\"../lib/image" :refer $ base64ToBlob |
743 | 744 | "\"openai" :default OpenAI |
| 745 | + :examples $ [] |
744 | 746 | |app.config $ %{} :FileEntry |
745 | 747 | :defs $ {} |
746 | 748 | |chrome-extension? $ %{} :CodeEntry (:doc |) |
|
757 | 759 | :examples $ [] |
758 | 760 | :ns $ %{} :CodeEntry (:doc |) |
759 | 761 | :code $ quote (ns app.config) |
| 762 | + :examples $ [] |
760 | 763 | |app.main $ %{} :FileEntry |
761 | 764 | :defs $ {} |
762 | 765 | |*reel $ %{} :CodeEntry (:doc |) |
|
778 | 781 | if |
779 | 782 | = "\"menu-trigger" $ .-action message |
780 | 783 | let |
781 | | - content $ str "\"你扮演一个专业的工程师, 对以下内容做一下讲解, 用中文, 注意要简略, 内容注意分块.\n\n" &newline &newline (.-content message) |
| 784 | + content $ str "\"你扮演一个专业的工程师, 对以下内容做一下讲解, 用中文, 注意要简略, 内容注意分块.\n\n" &newline &newline (.-content message) |
782 | 785 | store $ :store @*reel |
783 | 786 | cursor $ [] |
784 | 787 | state0 $ get-in store ([] :states :data) |
|
797 | 800 | js/window.addEventListener |beforeunload $ fn (event) (persist-storage!) |
798 | 801 | js/window.addEventListener |visibilitychange $ fn (event) |
799 | 802 | if (= "\"hidden" js/document.visibilityState) (persist-storage!) |
| 803 | + js/window.addEventListener |dblclick $ fn (event) (.!preventDefault event) |
| 804 | + js/window.addEventListener |wheel |
| 805 | + fn (event) |
| 806 | + if (.-ctrlKey event) (.!preventDefault event) |
| 807 | + js-object $ :passive false |
800 | 808 | ; flipped js/setInterval 60000 persist-storage! |
801 | 809 | let |
802 | 810 | raw $ js/localStorage.getItem (:storage-key config/site) |
|
842 | 850 | app.config :as config |
843 | 851 | "\"./calcit.build-errors" :default build-errors |
844 | 852 | "\"bottom-tip" :default hud! |
| 853 | + :examples $ [] |
845 | 854 | |app.schema $ %{} :FileEntry |
846 | 855 | :defs $ {} |
847 | 856 | |store $ %{} :CodeEntry (:doc |) |
|
853 | 862 | :examples $ [] |
854 | 863 | :ns $ %{} :CodeEntry (:doc |) |
855 | 864 | :code $ quote (ns app.schema) |
| 865 | + :examples $ [] |
856 | 866 | |app.updater $ %{} :FileEntry |
857 | 867 | :defs $ {} |
858 | 868 | |updater $ %{} :CodeEntry (:doc |) |
|
874 | 884 | :code $ quote |
875 | 885 | ns app.updater $ :require |
876 | 886 | respo.cursor :refer $ update-states update-states-merge |
| 887 | + :examples $ [] |
0 commit comments