From 2fc4c6d9ca9b76bd294d1b33b04c70279493c40f Mon Sep 17 00:00:00 2001 From: daslu Date: Fri, 13 Sep 2024 03:05:43 +0300 Subject: [PATCH] - added support for hiding the ui header; server refactoring --- CHANGELOG.md | 1 + src/scicloj/clay/v2/server.clj | 76 ++++++++++++++-------------- src/scicloj/clay/v2/server/state.clj | 8 +-- 3 files changed, 44 insertions(+), 41 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c9f5c37..dac89a26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ All notable changes to this project will be documented in this file. This change - applying `:kindly/options` in all hiccup-based pathways - bugfix: using the appropriate Quarto target format in Markdown generation - removed the `:fontsize` setting in the default config (as it interferred with revealjs slides) +- added support for hiding the ui header; server refactoring ## [2-beta15] - 2024-07-27 - introducing code-and-value and horizontal layout - WIP (PR #127) diff --git a/src/scicloj/clay/v2/server.clj b/src/scicloj/clay/v2/server.clj index 40183428..bb17a1cf 100644 --- a/src/scicloj/clay/v2/server.clj +++ b/src/scicloj/clay/v2/server.clj @@ -9,7 +9,8 @@ [scicloj.clay.v2.util.time :as time] [scicloj.clay.v2.item :as item] [clojure.string :as str] - [hiccup.core :as hiccup]) + [hiccup.core :as hiccup] + [tablecloth.api :as tc]) (:import (java.net ServerSocket))) (def default-port 1971) @@ -29,7 +30,6 @@ (catch Exception e nil)) (recur (inc port))))) - (defn communication-script [{:keys [port counter]}] (format "