Runway 1.0.0

This commit is contained in:
Runway committed 2026-10-21 11:34:34 -06:00
commit dcf819146b
1372 files changed
+188168

No files matched your search

+59
View File
@@ -0,0 +1,59 @@
/*
* runway-demo plugin styles — served at /__plugin/runway-demo/static/css/demo.css.
* Injected into tenant pages by the DemoAnalyticsHead HeadContributor (when the notice is enabled) and linked by
* the feedback form itself; styles the notice and feedback widgets. Served from the plugin's own namespace — never copied
* into a tenant.
*/
.rw-demo-notice {
border-radius: 6px;
padding: 0.75rem 1rem;
margin: 0.75rem 0;
border: 1px solid transparent;
font: 0.95rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.rw-demo-notice-info {
background: #e7f5ff;
border-color: #a5d8ff;
color: #1864ab;
}
.rw-demo-notice-warning {
background: #fff9db;
border-color: #ffe066;
color: #997404;
}
.rw-demo-notice-danger {
background: #fff5f5;
border-color: #ffc9c9;
color: #c92a2a;
}
/* The public feedback form (DemoFeedbackWidget). */
.rw-demo-feedback form {
display: grid;
gap: 0.5rem;
max-width: 36rem;
font: 0.95rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.rw-demo-feedback textarea {
font: inherit;
padding: 0.5rem;
}
.rw-demo-feedback button {
justify-self: start;
font: inherit;
padding: 0.4rem 1rem;
}
/* The honeypot: off-screen for people (and aria-hidden for assistive technology); a naive bot still fills it. */
.rw-demo-hp {
position: absolute;
left: -10000px;
width: 1px;
height: 1px;
overflow: hidden;
}
+13
View File
@@ -0,0 +1,13 @@
/*
* runway-demo — an inert demo script served at /__plugin/runway-demo/static/js/demo-analytics.js.
* Referenced by the DemoAnalyticsHead <script> tag (only when per-site analytics is enabled AND the app-level write
* key is set) purely to demonstrate the per-plugin static-asset seam. It does nothing but log; a real analytics
* plugin would emit the vendor snippet here. A plain <script src> is all a plugin emits: the kernel stamps the CSP
* nonce on it at the response edge.
*/
(function () {
"use strict";
var el = document.currentScript;
var site = el && el.getAttribute("data-site");
console.debug("[runway-demo] analytics placeholder loaded for site:", site || "(unknown)");
})();
+51
View File
@@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Runway Demo — help</title>
<link rel="stylesheet" href="/__plugin/runway-demo/static/css/demo.css">
<style>
body { font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; max-width: 44rem;
margin: 2rem auto; padding: 0 1rem; color: #333; }
code { background: #f1f3f5; padding: 0.1em 0.35em; border-radius: 4px; }
h1 { font-size: 1.4rem; }
h2 { font-size: 1.1rem; margin-top: 1.5rem; }
</style>
</head>
<body>
<h1>Runway Demo — help</h1>
<div class="rw-demo-notice rw-demo-notice-info">
This page is a <strong>static asset</strong> served from the plugin's own namespace at
<code>/__plugin/runway-demo/static/notes-help.html</code>. Runway Demo is the reference plugin: everything it does
is there to show plugin authors how a feature is built.
</div>
<h2>The demo screen</h2>
<p>The <em>Runway demo</em> entry of the console menu opens the plugin's own screen (it needs the
<code>manage-notes</code> permission). From there you can add notes, install a ready-made demo page, publish a
short <em>showcase</em> page, look at the site's published content and check whether a path is free, and see the
changes the plugin has been told about.</p>
<h2>Notes</h2>
<p>The demo keeps a small set of per-site notes in its own folder of the site. Notes are:</p>
<ul>
<li>seeded with a welcome note the first time a site's notes are read;</li>
<li>added from the demo screen, and by visitors through the public feedback form;</li>
<li>appended automatically whenever this plugin's per-site settings are saved;</li>
<li>readable as JSON at <code>/demo/notes.json</code> — only with the <code>manage-notes</code> permission (anyone
else gets <code>403</code>);</li>
<li>kept in full backups, and <strong>left out of transfer copies</strong>: they hold what people typed, so the
plugin declares them personal data.</li>
</ul>
<h2>Pages and endpoints</h2>
<ul>
<li><code>/demo</code> — the demo page, once installed from the demo screen. It is an ordinary site page: edit,
move or delete it under Pages.</li>
<li><code>/demo/showcase</code> — the showcase page, while one is published.</li>
<li><code>/demo/hello.txt</code> — a per-site greeting in the visitor's language.</li>
<li><code>/demo/echo.json</code> — echoes what the platform tells the plugin about your request.</li>
</ul>
</body>
</html>