refactor: rename library from pocketbook to atomsync

This commit is contained in:
Florian Schroedl
2026-04-16 20:18:45 +02:00
parent bcf7e03332
commit b68f97247a
20 changed files with 73 additions and 73 deletions

View File

@@ -1,4 +1,4 @@
(ns pocketbook.hiccup
(ns atomsync.hiccup
"Minimal hiccup → HTML string renderer."
(:require [clojure.string :as str]))

View File

@@ -1,8 +1,8 @@
(ns pocketbook.todomvc
"TodoMVC built on Pocketbook — offline-first, synced, Clojure-native."
(:require [pocketbook.core :as pb]
[pocketbook.store.idb :as idb]
[pocketbook.hiccup :refer [html]]
(ns atomsync.todomvc
"TodoMVC built on Atomsync — offline-first, synced, Clojure-native."
(:require [atomsync.core :as pb]
[atomsync.store.idb :as idb]
[atomsync.hiccup :refer [html]]
[promesa.core :as p]
[clojure.string :as str]))
@@ -232,7 +232,7 @@
;; ---------------------------------------------------------------------------
(defn ^:export init []
(p/let [store (idb/open "pocketbook-todomvc")]
(p/let [store (idb/open "atomsync-todomvc")]
(let [todos (pb/synced-atom store "todo"
{:server "http://localhost:8090/sync"
:interval 15000})]
@@ -248,6 +248,6 @@
(.addEventListener js/window "offline" (fn [_] (render!)))
;; Wait for IDB — watch triggers render automatically
(p/let [_ (pb/ready? todos)]
(js/console.log "🔶 Pocketbook TodoMVC loaded —" (count @todos) "todos")))))
(js/console.log "🔶 Atomsync TodoMVC loaded —" (count @todos) "todos")))))
(init)

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pocketbook · TodoMVC</title>
<title>Atomsync · TodoMVC</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Mono:wght@300;400;500&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&display=swap" rel="stylesheet">
@@ -399,14 +399,14 @@
<body>
<div class="wrapper">
<div class="brand">
<span class="brand-label">Pocketbook · TodoMVC</span>
<span class="brand-label">Atomsync · TodoMVC</span>
</div>
<div id="app">
<div class="loading">Loading from local store</div>
</div>
<div class="info">
<p>Double-click to edit a todo</p>
<p>Built with <a href="https://github.com/pocketbook">Pocketbook</a> — offline-first synced atoms for Clojure</p>
<p>Built with <a href="https://github.com/atomsync">Atomsync</a> — offline-first synced atoms for Clojure</p>
<p>Data persists in IndexedDB · syncs via Transit to SQLite</p>
</div>
</div>