@tideworthy/tidysites-platform 0.10.10 → 0.10.11
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 +1 -1
- package/src/editor/request.ts +3 -3
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tideworthy/tidysites-platform",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.11",
|
|
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",
|
|
@@ -58,7 +58,7 @@ const htmlClass = !signedIn ? (signInUrl ? "tidy-has-bar tidy-idle" : "") : !act
|
|
|
58
58
|
<span class="tidy-bar-label"><span class="tidy-bar-dot" aria-hidden="true"></span>{label} website<span class="tidy-bar-note">A private copy to see working changes on the website, not publicly accessible.</span></span>
|
|
59
59
|
<div class="tidy-bar-actions" id="tidy-bar-actions">
|
|
60
60
|
{!signedIn && <a class="tidy-btn tidy-btn-primary" href={signInUrl!}>Sign in to edit</a>}
|
|
61
|
-
{signedIn && !active && <a class="tidy-btn
|
|
61
|
+
{signedIn && !active && <a class="tidy-btn" href={toggle(true)}>Edit</a>}
|
|
62
62
|
{signedIn && active && !editable && <a class="tidy-btn" href={toggle(false)}>Done</a>}
|
|
63
63
|
</div>
|
|
64
64
|
</div>
|
package/src/editor/request.ts
CHANGED
|
@@ -85,10 +85,10 @@ export function mountRequestChange(): void {
|
|
|
85
85
|
body.focus();
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
const barBtn = el("button", { type: "button", class: "tidy-btn", text: "Request a change" });
|
|
88
|
+
const barBtn = el("button", { type: "button", class: "tidy-btn tidy-btn-primary", text: "Request a change" });
|
|
89
89
|
barBtn.addEventListener("click", render);
|
|
90
|
-
//
|
|
91
|
-
actions.
|
|
90
|
+
// First on the bar: most people are here to ask for a change, not to edit.
|
|
91
|
+
actions.prepend(barBtn);
|
|
92
92
|
|
|
93
93
|
const fab = el("button", { type: "button", class: "tidy-fab", title: "Request a change", "aria-label": "Request a change" });
|
|
94
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/version.ts
CHANGED