@tideworthy/tidysites-platform 0.10.9 → 0.10.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/src/editor/TidyEditor.astro +2 -0
- package/src/editor/request.ts +2 -1
- package/src/editor/revisions.ts +3 -2
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.10.10
|
|
4
|
+
|
|
5
|
+
- Editor: the bar reads Edit, Request a change, Revisions, Publish live; Publish live is green.
|
|
6
|
+
|
|
3
7
|
## 0.10.9
|
|
4
8
|
|
|
5
9
|
- Editor: the request panel greets the person by name and speaks plainly; the floating button is a pen, not a chat bubble. `GET /_tidy/change` says who is signed in.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tideworthy/tidysites-platform",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.10",
|
|
4
4
|
"description": "The Tidysites platform integration for EmDash sites: bootstrap, sessions, maintenance, health, and publish hooks under /_tidy/*.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -110,6 +110,8 @@ const htmlClass = !signedIn ? (signInUrl ? "tidy-has-bar tidy-idle" : "") : !act
|
|
|
110
110
|
.tidy-btn-primary { background: #2b7fd1; border-color: #2b7fd1; color: #fff; }
|
|
111
111
|
.tidy-btn-primary:hover { background: #2470bd; }
|
|
112
112
|
.tidy-btn-danger:hover { background: #b3261e; border-color: #b3261e; }
|
|
113
|
+
.tidy-btn-go { background: #1f9d55; border-color: #1f9d55; color: #fff; }
|
|
114
|
+
.tidy-btn-go:hover { background: #1a8a4a; }
|
|
113
115
|
.tidy-btn-sm { padding: 3px 8px; font-size: 12px; }
|
|
114
116
|
.tidy-add-end { display: block; width: calc(100% - 32px); margin: 16px; padding: 14px; border: 2px dashed #2b7fd1; border-radius: 10px; background: rgba(43,127,209,.06); color: #2b7fd1; font: 600 14px system-ui, sans-serif; cursor: pointer; }
|
|
115
117
|
.tidy-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 2147483001; overflow: auto; background: #fff; color: #17211c; border-left: 1px solid #d3dcd6; box-shadow: -12px 0 40px rgba(0,0,0,.18); padding: 20px; font: 14px/1.45 system-ui, sans-serif; }
|
package/src/editor/request.ts
CHANGED
|
@@ -87,7 +87,8 @@ export function mountRequestChange(): void {
|
|
|
87
87
|
|
|
88
88
|
const barBtn = el("button", { type: "button", class: "tidy-btn", text: "Request a change" });
|
|
89
89
|
barBtn.addEventListener("click", render);
|
|
90
|
-
|
|
90
|
+
// Right after Edit (or Done), before Revisions and Publish live.
|
|
91
|
+
actions.insertBefore(barBtn, actions.children[1] ?? null);
|
|
91
92
|
|
|
92
93
|
const fab = el("button", { type: "button", class: "tidy-fab", title: "Request a change", "aria-label": "Request a change" });
|
|
93
94
|
fab.innerHTML = '<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 20h9"/><path d="M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z"/></svg>';
|
package/src/editor/revisions.ts
CHANGED
|
@@ -41,8 +41,9 @@ export function startRevisions(): void {
|
|
|
41
41
|
if (!actions) return;
|
|
42
42
|
const here = location.pathname;
|
|
43
43
|
const revBtn = el("button", { type: "button", class: "tidy-btn", text: "Revisions" });
|
|
44
|
-
const liveBtn = el("button", { type: "button", class: "tidy-btn", text: "Publish live" });
|
|
45
|
-
|
|
44
|
+
const liveBtn = el("button", { type: "button", class: "tidy-btn tidy-btn-go", text: "Publish live" });
|
|
45
|
+
// Edit, Request a change, Revisions, Publish live: the bar reads left to right in that order.
|
|
46
|
+
actions.append(revBtn, liveBtn);
|
|
46
47
|
|
|
47
48
|
// --- the panel --------------------------------------------------------
|
|
48
49
|
const panel = el("div", { class: "tidy-panel", hidden: "" });
|
package/src/version.ts
CHANGED