source: Klonkt/src/views/pages/admin-help.ejs@ 39a9d21

main
Last change on this file since 39a9d21 was 0475b13, checked in by roboburr <roboburr@…>, 5 weeks ago

Acht schone pagina's uit inline script naar modules (shaer-bqr, stap 3b)

Alle acht zonder EJS-interpolatie, dus ongewijzigd te verplaatsen: admin-help,
admin-epk, admin-paid, admin-settings, auth-register, admin-push, admin-site-edit
(2 blokken) en authorize-interaction (3 blokken).

Elke route zegt nu welke module hij wil via pageJs; de bootstrap in de shell
haalt hem op. Meerdere blokken uit een pagina belanden in EEN module, gescheiden
door een streep -- ze deelden toch al een pagina en een levensduur.

Templates compileren, modules syntactisch ok, suite 565/565. Het echte bewijs
per pagina is er via een LINK naartoe gaan; na een herlading werkt alles toch al.

Commit met expliciete paden, niet met -A: eerder vandaag veegde ik daarmee
andermans werk uit dezelfde werkmap mee.

  • Property mode set to 100644
File size: 5.4 KB
RevLine 
[d0f4c10]1<div class="container admin-page hb">
[bbf9d1a]2 <p><a href="/admin" class="btn">&larr; <%= t('ahelp.back') %></a></p>
3 <h1><%= t('ahelp.title') %></h1>
4 <p class="hb-intro"><%= t('ahelp.intro') %></p>
[d0f4c10]5
6 <div class="hb-search">
[bbf9d1a]7 <input type="search" id="hb-q" placeholder="<%= t('ahelp.search_placeholder') %>" autocomplete="off" aria-label="<%= t('ahelp.search_aria') %>">
[d0f4c10]8 </div>
9 <p class="hb-count" id="hb-count" aria-live="polite"></p>
10
11 <div class="hb-list">
12
13 <section class="hb-item">
[bbf9d1a]14 <h2>✍️ <%= t('ahelp.s_newpost_h') %></h2>
15 <p><%- t('ahelp.s_newpost_b') %></p>
[d0f4c10]16 </section>
17
18 <section class="hb-item">
[bbf9d1a]19 <h2>📝 <%= t('ahelp.s_excerpt_h') %></h2>
20 <p><%- t('ahelp.s_excerpt_b') %></p>
[d0f4c10]21 </section>
22
23 <section class="hb-item">
[bbf9d1a]24 <h2>📌 <%= t('ahelp.s_pin_h') %></h2>
25 <p><%- t('ahelp.s_pin_b') %></p>
[d0f4c10]26 </section>
27
28 <section class="hb-item">
[bbf9d1a]29 <h2>🗓️ <%= t('ahelp.s_schedule_h') %> <small>(<%= t('ahelp.premium') %>)</small></h2>
30 <p><%- t('ahelp.s_schedule_b') %></p>
[d0f4c10]31 </section>
32
33 <section class="hb-item">
[bbf9d1a]34 <h2>🖼️ <%= t('ahelp.s_images_h') %></h2>
35 <p><%- t('ahelp.s_images_b') %></p>
[d0f4c10]36 </section>
37
38 <section class="hb-item">
[bbf9d1a]39 <h2>🎵 <%= t('ahelp.s_audio_h') %></h2>
40 <p><%- t('ahelp.s_audio_b') %></p>
[d0f4c10]41 </section>
42
43 <section class="hb-item">
[bbf9d1a]44 <h2>© <%= t('ahelp.s_credit_h') %></h2>
45 <p><%- t('ahelp.s_credit_b') %></p>
[d0f4c10]46 </section>
47
48 <section class="hb-item">
[bbf9d1a]49 <h2>⬇ <%= t('ahelp.s_downloads_h') %> <small>(<%= t('ahelp.premium') %>)</small></h2>
50 <p><%- t('ahelp.s_downloads_b') %></p>
[d0f4c10]51 </section>
52
53 <section class="hb-item">
[bbf9d1a]54 <h2>📃 <%= t('ahelp.s_albums_h') %></h2>
55 <p><%- t('ahelp.s_albums_b') %></p>
[d0f4c10]56 </section>
57
58 <section class="hb-item">
[bbf9d1a]59 <h2>📅 <%= t('ahelp.s_agenda_h') %> <small>(<%= t('ahelp.premium') %>)</small></h2>
60 <p><%- t('ahelp.s_agenda_b') %></p>
[d0f4c10]61 </section>
62
63 <section class="hb-item">
[bbf9d1a]64 <h2>📰 <%= t('ahelp.s_presskit_h') %> <small>(<%= t('ahelp.premium') %>)</small></h2>
65 <p><%- t('ahelp.s_presskit_b') %></p>
[d0f4c10]66 </section>
67
68 <section class="hb-item">
[bbf9d1a]69 <h2>🔗 <%= t('ahelp.s_circles_h') %></h2>
70 <p><%- t('ahelp.s_circles_b') %></p>
[d0f4c10]71 </section>
72
[99234c3]73 <section class="hb-item">
74 <h2>🌐 <%= t('ahelp.s_fedi_h') %></h2>
75 <p><%- t('ahelp.s_fedi_b') %></p>
76 </section>
77
[d0f4c10]78 <section class="hb-item">
[bbf9d1a]79 <h2>📊 <%= t('ahelp.s_stats_h') %> <small>(<%= t('ahelp.premium') %>)</small></h2>
80 <p><%- t('ahelp.s_stats_b') %></p>
[d0f4c10]81 </section>
82
83 <section class="hb-item">
[bbf9d1a]84 <h2>✉️ <%= t('ahelp.s_newsletter_h') %> <small>(<%= t('ahelp.premium') %>)</small></h2>
85 <p><%- t('ahelp.s_newsletter_b') %></p>
[d0f4c10]86 </section>
87
88 <section class="hb-item">
[bbf9d1a]89 <h2>🔗 <%= t('ahelp.s_linkbio_h') %> <small>(<%= t('ahelp.premium') %>)</small></h2>
90 <p><%- t('ahelp.s_linkbio_b') %></p>
[d0f4c10]91 </section>
92
93 <section class="hb-item">
[bbf9d1a]94 <h2>▶️ <%= t('ahelp.s_embed_h') %> <small>(<%= t('ahelp.premium') %>)</small></h2>
95 <p><%- t('ahelp.s_embed_b') %></p>
[d0f4c10]96 </section>
97
98 <section class="hb-item">
[bbf9d1a]99 <h2>🎨 <%= t('ahelp.s_appearance_h') %></h2>
100 <p><%- t('ahelp.s_appearance_b') %></p>
[d0f4c10]101 </section>
102
103 <section class="hb-item">
[bbf9d1a]104 <h2>👥 <%= t('ahelp.s_tenancy_h') %></h2>
105 <p><%- t('ahelp.s_tenancy_b') %></p>
[d0f4c10]106 </section>
107
108 <section class="hb-item">
[bbf9d1a]109 <h2>⭐ <%= t('ahelp.s_premium_h') %></h2>
110 <p><%- t('ahelp.s_premium_b') %></p>
[d0f4c10]111 </section>
112
113
114 <section class="hb-item">
[bbf9d1a]115 <h2>🔄 <%= t('ahelp.s_updates_h') %></h2>
116 <p><%- t('ahelp.s_updates_b') %></p>
[d0f4c10]117 </section>
118
119 </div>
120
[bbf9d1a]121 <p class="hb-empty" id="hb-empty" hidden><%= t('ahelp.empty') %></p>
[d0f4c10]122</div>
123
124<style>
125 .hb { max-width: 760px; }
126 .hb h1 { margin-bottom: .25rem; }
127 .hb-intro { color: var(--ink-muted, var(--ink-soft)); margin: 0 0 1rem; }
128 .hb-search input {
129 width: 100%; box-sizing: border-box;
130 padding: 0.7rem 0.9rem; font-size: 1rem;
131 border: 1px solid var(--rule); border-radius: 999px;
132 background: var(--paper); color: var(--ink);
133 -webkit-appearance: none; appearance: none;
134 }
135 .hb-search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
136 .hb-count { color: var(--ink-muted, var(--ink-soft)); font-size: .82rem; margin: .5rem 0 1rem; min-height: 1em; }
137 .hb-list { display: flex; flex-direction: column; gap: .75rem; }
138 .hb-item { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 12px; padding: 1rem 1.1rem; }
139 .hb-item h2 { font-family: var(--font-display, serif); font-size: 1.15rem; margin: 0 0 .4rem; }
140 .hb-item h2 small { font-weight: 400; font-size: .72rem; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; padding: .05rem .45rem; margin-left: .35rem; vertical-align: middle; }
141 .hb-item p { margin: 0; line-height: 1.55; color: var(--ink); }
142 .hb-item code { background: var(--paper); padding: .08rem .35rem; border-radius: 4px; font-size: .88em; }
143 .hb-item.hb-hidden { display: none; }
144 .hb-item mark { background: color-mix(in srgb, var(--accent) 35%, transparent); color: inherit; border-radius: 2px; }
145 .hb-empty { color: var(--ink-muted, var(--ink-soft)); padding: 1rem; text-align: center; }
146</style>
[0475b13]147<%# Het script van deze pagina staat in assets/js/mod/admin-help.js (shaer-bqr). %>
Note: See TracBrowser for help on using the repository browser.