redirect-map-plan 0.1.0 → 0.2.0
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 +6 -0
- package/README.md +36 -2
- package/bin/redirect-map-plan.js +72 -1
- package/package.json +2 -2
- package/src/open.js +22 -0
- package/src/plan.js +40 -8
- package/src/ui/client.js +527 -0
- package/src/ui/page.js +265 -0
- package/src/ui/server.js +554 -0
- package/src/write.js +7 -2
package/src/ui/page.js
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
// The single page of the local interface. Server-rendered shell + one inline script
|
|
2
|
+
// (allowed by a per-request CSP nonce). No data from a plan is ever put into this HTML:
|
|
3
|
+
// results arrive as JSON and are added to the page with textContent.
|
|
4
|
+
//
|
|
5
|
+
// The look is redirect-map-check's (baseCss and BRAIN from redirect-map-check/report-style);
|
|
6
|
+
// UI_CSS repeats the checker interface's form styles, so the two tools' pages match.
|
|
7
|
+
|
|
8
|
+
import { readFileSync } from 'node:fs';
|
|
9
|
+
import { BRAIN, baseCss } from 'redirect-map-check/report-style';
|
|
10
|
+
|
|
11
|
+
let clientJs = null;
|
|
12
|
+
const client = () => (clientJs ??= readFileSync(new URL('./client.js', import.meta.url), 'utf8'));
|
|
13
|
+
|
|
14
|
+
const esc = (value) =>
|
|
15
|
+
String(value ?? '')
|
|
16
|
+
.replace(/&/g, '&')
|
|
17
|
+
.replace(/</g, '<')
|
|
18
|
+
.replace(/>/g, '>')
|
|
19
|
+
.replace(/"/g, '"')
|
|
20
|
+
.replace(/'/g, ''');
|
|
21
|
+
|
|
22
|
+
const UI_CSS = `
|
|
23
|
+
.ui_form { display: grid; gap: 1.75rem; }
|
|
24
|
+
.ui_step { display: grid; gap: 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--color-line); }
|
|
25
|
+
.ui_step:first-child { padding-top: 0; border-top: 0; }
|
|
26
|
+
.ui_step-head { display: flex; align-items: baseline; gap: 0.75rem; }
|
|
27
|
+
.ui_step-num { font-family: var(--font-mono); font-size: var(--text-size-tiny); color: var(--color-grey-dim); }
|
|
28
|
+
.ui_step-title { font-weight: 600; }
|
|
29
|
+
.ui_hint { font-size: var(--text-size-small); color: var(--color-grey); }
|
|
30
|
+
.ui_label { display: block; font-family: var(--font-mono); font-weight: 500; font-size: var(--text-size-tiny); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-grey); margin-bottom: 0.25rem; }
|
|
31
|
+
.ui_input, .ui_textarea, .ui_select { width: 100%; font: inherit; font-size: var(--text-size-regular); color: var(--color-ink); background: transparent; border: 0; border-bottom: 1px solid var(--color-line); border-radius: 0; padding: 0.5rem 0; }
|
|
32
|
+
.ui_textarea { min-height: 3.5rem; resize: vertical; font-family: var(--font-mono); font-size: var(--text-size-small); }
|
|
33
|
+
.ui_input:focus, .ui_textarea:focus, .ui_select:focus { outline: none; border-bottom-color: var(--color-ink); }
|
|
34
|
+
.ui_input::placeholder, .ui_textarea::placeholder { color: var(--color-grey-dim); }
|
|
35
|
+
.ui_drop { position: relative; display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; border: 1px dashed var(--color-line); border-radius: var(--radius-large); background: var(--color-surface); cursor: pointer; }
|
|
36
|
+
.ui_drop:hover, .ui_drop.is-over, .ui_drop:focus-within { border-color: var(--color-ink); }
|
|
37
|
+
.ui_drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
|
|
38
|
+
.ui_drop-mark { font-family: var(--font-mono); font-weight: 500; color: var(--color-ink); }
|
|
39
|
+
.ui_drop-text { font-size: var(--text-size-small); color: var(--color-grey); overflow-wrap: anywhere; }
|
|
40
|
+
.ui_drop.has-file .ui_drop-text { color: var(--color-ink); }
|
|
41
|
+
.ui_check { display: flex; align-items: flex-start; gap: 0.625rem; font-size: var(--text-size-small); color: var(--color-grey); }
|
|
42
|
+
.ui_check input { margin-top: 0.3rem; accent-color: var(--color-ink); }
|
|
43
|
+
.ui_grid { display: grid; gap: 1rem 1.5rem; }
|
|
44
|
+
@media (min-width: 40rem) { .ui_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
45
|
+
.ui_advanced summary { cursor: pointer; font-family: var(--font-mono); font-size: var(--text-size-tiny); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-grey); list-style: none; }
|
|
46
|
+
.ui_advanced summary::-webkit-details-marker { display: none; }
|
|
47
|
+
.ui_advanced summary::before { content: "+ "; }
|
|
48
|
+
.ui_advanced[open] summary::before { content: "− "; }
|
|
49
|
+
.ui_advanced-body { display: grid; gap: 1rem; margin-top: 1rem; }
|
|
50
|
+
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 3rem; padding: 0 1.25rem; border-radius: var(--radius-small); background: var(--color-ink); color: var(--color-paper); border: 1px solid var(--color-ink); font: inherit; font-weight: 500; font-size: var(--text-size-small); cursor: pointer; white-space: nowrap; }
|
|
51
|
+
.button:hover { opacity: 0.88; }
|
|
52
|
+
.button[disabled] { opacity: 0.5; cursor: not-allowed; }
|
|
53
|
+
.button.is-secondary { background: transparent; color: var(--color-ink); border-color: var(--color-line); }
|
|
54
|
+
.button.is-secondary:hover { border-color: var(--color-ink); opacity: 1; }
|
|
55
|
+
.button.is-small { height: 2.25rem; padding: 0 0.875rem; }
|
|
56
|
+
.button-group { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
|
|
57
|
+
.ui_error { color: var(--color-error); font-size: var(--text-size-small); }
|
|
58
|
+
.ui_card { border: 1px solid var(--color-line); border-radius: var(--radius-large); background: var(--color-surface); padding: 1.5rem; }
|
|
59
|
+
@media (min-width: 40rem) { .ui_card { padding: 1.75rem 2rem; } }
|
|
60
|
+
.ui_progress { height: 6px; border-radius: 3px; background: var(--color-paper-2); overflow: hidden; margin-top: 1rem; }
|
|
61
|
+
.ui_progress-bar { height: 100%; width: 0; background: var(--color-ink); transition: width 200ms ease; }
|
|
62
|
+
.ui_progress.is-indeterminate .ui_progress-bar { width: 30%; animation: rmp-slide 1.2s ease-in-out infinite; }
|
|
63
|
+
@keyframes rmp-slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
|
|
64
|
+
@media (prefers-reduced-motion: reduce) { .ui_progress.is-indeterminate .ui_progress-bar { animation: none; width: 100%; opacity: 0.3; } }
|
|
65
|
+
.ui_live { margin-top: 1.25rem; max-height: 18rem; overflow: auto; font-family: var(--font-mono); font-size: var(--text-size-tiny); }
|
|
66
|
+
.ui_live-row { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0.75rem; padding: 0.3rem 0; border-bottom: 1px solid var(--color-line); }
|
|
67
|
+
.ui_live-row span:last-child { overflow-wrap: anywhere; color: var(--color-grey); }
|
|
68
|
+
.ui_toolbar { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
|
|
69
|
+
@media (min-width: 64rem) { .ui_toolbar { grid-template-columns: minmax(0, 1fr) 16rem; align-items: end; } }
|
|
70
|
+
.ui_chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
|
|
71
|
+
.ui_chip { font: inherit; font-family: var(--font-mono); font-size: var(--text-size-tiny); letter-spacing: 0.06em; text-transform: uppercase; padding: 0.45rem 0.75rem; border: 1px solid var(--color-line); border-radius: 999px; background: transparent; color: var(--color-grey); cursor: pointer; }
|
|
72
|
+
.ui_chip[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
|
|
73
|
+
.ui_more { margin-top: 1rem; }
|
|
74
|
+
.ui_saved { font-size: var(--text-size-small); color: var(--color-grey); overflow-wrap: anywhere; }
|
|
75
|
+
.plan_list { display: grid; gap: 0.75rem; margin-top: 1.25rem; padding: 0; list-style: none; }
|
|
76
|
+
.plan_list li { padding: 1rem 1.25rem; border: 1px solid var(--color-line); border-radius: var(--radius-large); background: var(--color-surface); }
|
|
77
|
+
.plan_list b { font-weight: 600; }
|
|
78
|
+
.plan_notes { margin-top: 0.25rem; color: var(--color-grey); font-size: var(--text-size-tiny); }
|
|
79
|
+
.plan_table td.is-path { font-family: var(--font-mono); font-size: var(--text-size-tiny); overflow-wrap: anywhere; }
|
|
80
|
+
.plan_cmd { margin-top: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--color-line); border-radius: var(--radius-large); background: var(--color-surface); font-family: var(--font-mono); font-size: var(--text-size-small); white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
81
|
+
.plan_outcome { font-family: var(--font-mono); font-size: var(--text-size-tiny); letter-spacing: 0.04em; white-space: nowrap; }
|
|
82
|
+
.plan_outcome.is-decide, .plan_outcome.is-blocked { color: var(--color-error); }
|
|
83
|
+
.plan_outcome.is-changes, .plan_outcome.is-old-redirect { color: var(--color-ink); }
|
|
84
|
+
.plan_outcome.is-keeps, .plan_outcome.is-setting, .plan_outcome.is-drop, .plan_outcome.is-skip { color: var(--color-grey); }
|
|
85
|
+
.suggest_evidence { margin-top: 1rem; }
|
|
86
|
+
[hidden] { display: none !important; }
|
|
87
|
+
`;
|
|
88
|
+
|
|
89
|
+
export function renderPage({ nonce, version = '' }) {
|
|
90
|
+
return `<!doctype html>
|
|
91
|
+
<html lang="en">
|
|
92
|
+
<head>
|
|
93
|
+
<meta charset="utf-8">
|
|
94
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
95
|
+
<meta name="robots" content="noindex">
|
|
96
|
+
<meta name="color-scheme" content="light dark">
|
|
97
|
+
<title>redirect-map-plan</title>
|
|
98
|
+
<style>
|
|
99
|
+
${baseCss()}
|
|
100
|
+
${UI_CSS}
|
|
101
|
+
</style>
|
|
102
|
+
</head>
|
|
103
|
+
<body>
|
|
104
|
+
<header class="nav_component">
|
|
105
|
+
<div class="padding-global"><div class="container-large is-framed"><div class="nav_inner">
|
|
106
|
+
<a class="nav_logo" href="https://itcrowd.work" target="_blank" rel="noopener noreferrer" aria-label="ITCrowd">${BRAIN}<span>IT_Crowd<span class="logo_caret" aria-hidden="true"></span></span></a>
|
|
107
|
+
<p class="nav_meta text-style-mono"><span>redirect-map-plan</span>${version ? `<span>v${esc(version)}</span>` : ''}<span>Local</span></p>
|
|
108
|
+
</div></div></div>
|
|
109
|
+
</header>
|
|
110
|
+
<main>
|
|
111
|
+
<noscript><p class="padding-global">This page needs JavaScript. The command line works without it: run redirect-map-plan --help.</p></noscript>
|
|
112
|
+
<section id="no-token" hidden>
|
|
113
|
+
<div class="padding-global"><div class="container-large is-framed"><div class="section_inner">
|
|
114
|
+
<p class="text-style-eyebrow">Access</p>
|
|
115
|
+
<h1 class="heading-style-h2 split_title">Open the address from the terminal</h1>
|
|
116
|
+
<p class="split_lead">This page only works with the private address that <code>redirect-map-plan ui</code> printed when it started (it ends in <code>?t=</code> and a long code). Copy it from the terminal into this tab.</p>
|
|
117
|
+
</div></div></div>
|
|
118
|
+
</section>
|
|
119
|
+
|
|
120
|
+
<section id="form-section">
|
|
121
|
+
<div class="padding-global"><div class="container-large is-framed"><div class="section_inner split_layout">
|
|
122
|
+
<div class="split_text">
|
|
123
|
+
<p class="text-style-eyebrow">Redirect plan</p>
|
|
124
|
+
<h1 class="heading-style-h2 split_title">Plan a migration's redirects before the move</h1>
|
|
125
|
+
<p class="split_lead">Give us the old site's URLs and say where the site is going. With the new platform's own URL rules, we work out which old URLs keep their address, which keep it with one setting, and which must change, then write the redirect file in the platform's import format.</p>
|
|
126
|
+
<p class="split_lead">Everything runs on this computer. Nothing is uploaded anywhere: the files you pick only travel from this page to the tool running in your terminal.</p>
|
|
127
|
+
</div>
|
|
128
|
+
<form id="rmp-form" class="ui_card ui_form" novalidate>
|
|
129
|
+
<div class="ui_step">
|
|
130
|
+
<div class="ui_step-head"><span class="ui_step-num">01</span><span class="ui_step-title">Old URLs</span></div>
|
|
131
|
+
<label class="ui_label" for="f-sitemaps">Old sitemap URL (one per line)</label>
|
|
132
|
+
<textarea id="f-sitemaps" class="ui_textarea" placeholder="https://www.example.com/sitemap.xml" spellcheck="false"></textarea>
|
|
133
|
+
<label class="ui_drop" id="d-old"><span class="ui_drop-mark">[+]</span><span class="ui_drop-text">Or drop a saved sitemap (.xml, .gz) or a list of URLs (.txt)</span><input id="f-oldfiles" type="file" multiple accept=".xml,.gz,.txt,.csv,text/plain,text/xml,application/xml,application/gzip"></label>
|
|
134
|
+
<label class="ui_check" id="c-default-old" hidden><input type="checkbox" id="f-default-old" checked><span id="t-default-old"></span></label>
|
|
135
|
+
<label class="ui_label" for="f-oldbase">Old site's address, if the list holds only paths like /about</label>
|
|
136
|
+
<input id="f-oldbase" class="ui_input" type="url" placeholder="https://www.example.com" spellcheck="false">
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
<div class="ui_step">
|
|
140
|
+
<div class="ui_step-head"><span class="ui_step-num">02</span><span class="ui_step-title">Platforms</span></div>
|
|
141
|
+
<div class="ui_grid">
|
|
142
|
+
<div><label class="ui_label" for="f-from">From</label><select id="f-from" class="ui_select"><option value="suggest">Not sure, suggest one</option></select></div>
|
|
143
|
+
<div><label class="ui_label" for="f-to">To</label><select id="f-to" class="ui_select"><option value="">Choose the new platform</option></select></div>
|
|
144
|
+
</div>
|
|
145
|
+
<p class="ui_hint" id="from-hint">Not sure? We read the URLs, show which platform they look like and why, and wait for you to pick: a wrong source platform makes a wrong plan.</p>
|
|
146
|
+
<div id="w-blog" hidden><label class="ui_label" for="f-blog">Shopify blog handle</label><input id="f-blog" class="ui_input" type="text" placeholder="news" spellcheck="false"></div>
|
|
147
|
+
<div id="w-collection" hidden><label class="ui_label" for="f-collection">Webflow blog posts Collection slug</label><input id="f-collection" class="ui_input" type="text" placeholder="blog" spellcheck="false"></div>
|
|
148
|
+
</div>
|
|
149
|
+
|
|
150
|
+
<div class="ui_step">
|
|
151
|
+
<div class="ui_step-head"><span class="ui_step-num">03</span><span class="ui_step-title">Optional</span></div>
|
|
152
|
+
<label class="ui_drop" id="d-oldredirects"><span class="ui_drop-mark">[+]</span><span class="ui_drop-text">The old platform's redirect export (CSV), so older addresses point straight at the new ones</span><input id="f-oldredirects" type="file" accept=".csv,.tsv,.txt,text/csv,text/plain"></label>
|
|
153
|
+
<label class="ui_check" id="c-default-oldredirects" hidden><input type="checkbox" id="f-default-oldredirects" checked><span id="t-default-oldredirects"></span></label>
|
|
154
|
+
<label class="ui_drop" id="d-rules"><span class="ui_drop-mark">[+]</span><span class="ui_drop-text">A rules file (CSV): old,new rows pin single URLs; rows where both end in / rename a prefix</span><input id="f-rules" type="file" accept=".csv,.txt,text/csv,text/plain"></label>
|
|
155
|
+
<label class="ui_check" id="c-default-rules" hidden><input type="checkbox" id="f-default-rules" checked><span id="t-default-rules"></span></label>
|
|
156
|
+
<label class="ui_check"><input type="checkbox" id="f-titles"><span>Read each old page's title and main heading (one polite request per page, follows robots.txt) and save them as old-pages.json for redirect-map-check.</span></label>
|
|
157
|
+
</div>
|
|
158
|
+
|
|
159
|
+
<details class="ui_advanced" id="advanced">
|
|
160
|
+
<summary>More options</summary>
|
|
161
|
+
<div class="ui_advanced-body">
|
|
162
|
+
<div class="ui_grid">
|
|
163
|
+
<div><label class="ui_label" for="f-delay">Delay between requests (ms)</label><input id="f-delay" class="ui_input" type="number" min="0" max="60000" placeholder="250"></div>
|
|
164
|
+
<div><label class="ui_label" for="f-concurrency">Requests at once</label><input id="f-concurrency" class="ui_input" type="number" min="1" max="16" placeholder="4"></div>
|
|
165
|
+
<div><label class="ui_label" for="f-timeout">Timeout (ms)</label><input id="f-timeout" class="ui_input" type="number" min="1000" max="120000" placeholder="15000"></div>
|
|
166
|
+
<div><label class="ui_label" for="f-limit">Plan only the first N URLs</label><input id="f-limit" class="ui_input" type="number" min="1" placeholder="All"></div>
|
|
167
|
+
</div>
|
|
168
|
+
<label class="ui_check"><input type="checkbox" id="f-ignore-robots"><span>Ignore robots.txt. Only for sites you own.</span></label>
|
|
169
|
+
<label class="ui_check"><input type="checkbox" id="f-private"><span>Allow requests to private network addresses you didn't name</span></label>
|
|
170
|
+
</div>
|
|
171
|
+
</details>
|
|
172
|
+
|
|
173
|
+
<p class="ui_error" id="form-error" role="alert" hidden></p>
|
|
174
|
+
<div class="button-group"><button class="button" id="run" type="submit">Make the plan</button><span class="ui_hint" id="run-hint"></span></div>
|
|
175
|
+
</form>
|
|
176
|
+
</div></div></div>
|
|
177
|
+
</section>
|
|
178
|
+
|
|
179
|
+
<section class="rule-top" id="progress" hidden>
|
|
180
|
+
<div class="padding-global"><div class="container-large is-framed"><div class="section_inner">
|
|
181
|
+
<p class="text-style-eyebrow">Progress</p>
|
|
182
|
+
<div class="item_head">
|
|
183
|
+
<h2 class="heading-style-h2 split_title" id="phase" aria-live="polite">Starting…</h2>
|
|
184
|
+
<button class="button is-secondary is-small" id="cancel" type="button">Cancel</button>
|
|
185
|
+
</div>
|
|
186
|
+
<p class="hero_meta text-style-mono" id="progress-count"></p>
|
|
187
|
+
<div class="ui_progress is-indeterminate" id="bar-wrap"><div class="ui_progress-bar" id="bar"></div></div>
|
|
188
|
+
<div class="ui_live" id="live" aria-label="Pages as their titles are read"></div>
|
|
189
|
+
</div></div></div>
|
|
190
|
+
</section>
|
|
191
|
+
|
|
192
|
+
<section class="rule-top" id="suggestion" hidden>
|
|
193
|
+
<div class="padding-global"><div class="container-large is-framed"><div class="section_inner">
|
|
194
|
+
<p class="text-style-eyebrow">Old platform</p>
|
|
195
|
+
<h2 class="heading-style-h2 split_title" id="suggest-title"></h2>
|
|
196
|
+
<ul class="note_list suggest_evidence" id="suggest-evidence"></ul>
|
|
197
|
+
<p class="split_lead" id="suggest-others"></p>
|
|
198
|
+
<div class="button-group" style="margin-top:1.5rem" id="suggest-buttons"></div>
|
|
199
|
+
</div></div></div>
|
|
200
|
+
</section>
|
|
201
|
+
|
|
202
|
+
<section class="rule-top" id="results" hidden>
|
|
203
|
+
<div class="padding-global"><div class="container-large is-framed"><div class="section_inner">
|
|
204
|
+
<p class="text-style-eyebrow">The plan</p>
|
|
205
|
+
<h2 class="heading-style-h1 hero_title" id="headline"></h2>
|
|
206
|
+
<p class="hero_meta text-style-mono" id="results-meta"></p>
|
|
207
|
+
<div class="button-group" style="margin-top:1.5rem" id="downloads"></div>
|
|
208
|
+
<p class="ui_saved" id="saved" aria-live="polite" style="margin-top:0.75rem"></p>
|
|
209
|
+
</div></div></div>
|
|
210
|
+
</section>
|
|
211
|
+
|
|
212
|
+
<section class="rule-top" id="stats-section" hidden>
|
|
213
|
+
<div class="padding-global"><div class="container-large is-framed"><div class="stats_grid" id="stats"></div></div></div>
|
|
214
|
+
</section>
|
|
215
|
+
|
|
216
|
+
<section class="rule-top" id="settings-section" hidden>
|
|
217
|
+
<div class="padding-global"><div class="container-large is-framed"><div class="section_inner">
|
|
218
|
+
<p class="text-style-eyebrow" id="settings-title"></p>
|
|
219
|
+
<p class="hero_lead" id="settings-lead"></p>
|
|
220
|
+
<ul class="plan_list" id="settings"></ul>
|
|
221
|
+
</div></div></div>
|
|
222
|
+
</section>
|
|
223
|
+
|
|
224
|
+
<section class="rule-top" id="warnings-section" hidden>
|
|
225
|
+
<div class="padding-global"><div class="container-large is-framed"><div class="section_inner">
|
|
226
|
+
<p class="text-style-eyebrow" id="warnings-title"></p>
|
|
227
|
+
<ul class="plan_list" id="warnings"></ul>
|
|
228
|
+
</div></div></div>
|
|
229
|
+
</section>
|
|
230
|
+
|
|
231
|
+
<section class="rule-top" id="next-section" hidden>
|
|
232
|
+
<div class="padding-global"><div class="container-large is-framed"><div class="section_inner">
|
|
233
|
+
<p class="text-style-eyebrow">Next step</p>
|
|
234
|
+
<p class="hero_lead" id="next-lead"></p>
|
|
235
|
+
<div class="plan_cmd" id="command"></div>
|
|
236
|
+
<div class="button-group" style="margin-top:1rem"><button class="button is-secondary is-small" id="copy" type="button">Copy the command</button><span class="ui_saved" id="copied" aria-live="polite"></span></div>
|
|
237
|
+
</div></div></div>
|
|
238
|
+
</section>
|
|
239
|
+
|
|
240
|
+
<section class="rule-top" id="list-section" hidden>
|
|
241
|
+
<div class="padding-global"><div class="container-large is-framed"><div class="section_inner">
|
|
242
|
+
<p class="text-style-eyebrow">Every old URL</p>
|
|
243
|
+
<div class="ui_toolbar" style="margin-top:1.25rem">
|
|
244
|
+
<div class="ui_chips" id="chips" role="group" aria-label="Filter by outcome"></div>
|
|
245
|
+
<div><label class="ui_label" for="search">Search old and new URLs</label><input id="search" class="ui_input" type="search" placeholder="/blog/" spellcheck="false"></div>
|
|
246
|
+
</div>
|
|
247
|
+
<p class="ui_hint" id="shown"></p>
|
|
248
|
+
<div class="all_scroll"><table class="all_table plan_table"><thead><tr><th>Old URL</th><th>Outcome</th><th>New URL</th><th>Notes</th></tr></thead><tbody id="list"></tbody></table></div>
|
|
249
|
+
<div class="ui_more"><button class="button is-secondary" id="more" type="button" hidden>Show more</button></div>
|
|
250
|
+
<div id="notes-wrap" hidden><p class="text-style-eyebrow" style="margin-top:3rem">Notes</p><ul class="note_list" id="notes" style="margin-top:1rem"></ul></div>
|
|
251
|
+
</div></div></div>
|
|
252
|
+
</section>
|
|
253
|
+
</main>
|
|
254
|
+
<footer class="rule-top">
|
|
255
|
+
<div class="padding-global"><div class="container-large is-framed"><div>
|
|
256
|
+
<div class="footer_bottom"><span>redirect-map-plan${version ? ` v${esc(version)}` : ''}, a free tool by ITCrowd. Running locally; close it with Ctrl+C in the terminal.</span><span>itcrowd.work</span></div>
|
|
257
|
+
</div></div></div>
|
|
258
|
+
</footer>
|
|
259
|
+
<script nonce="${esc(nonce)}">
|
|
260
|
+
${client()}
|
|
261
|
+
</script>
|
|
262
|
+
</body>
|
|
263
|
+
</html>
|
|
264
|
+
`;
|
|
265
|
+
}
|