Changeset daa8eb8 in Klonkt for scripts/render-admin-views.mjs
- Timestamp:
- 08/16/2026 01:09:45 PM (3 weeks ago)
- Branches:
- main
- Children:
- 5280532
- Parents:
- a982e7e
- File:
-
- 1 edited
-
scripts/render-admin-views.mjs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
scripts/render-admin-views.mjs
ra982e7e rdaa8eb8 27 27 28 28 const gevuld = { 29 'admin-audio': { tracks: [], playlists: [], maxBytesMb: 20, maxWavMb: 100 }, 30 'admin-playlists': { playlists: [] }, 29 31 'admin-media': { items: [{ file: 'a.jpg', url: '/m/a.jpg', kb: 12, usedCount: 0, hasVideo: true }], unusedCount: 1 }, 30 32 'admin-videos': { items: [{ file: 'b.mp4', url: '/m/b.mp4', kb: 99, usedCount: 2 }] }, … … 32 34 }; 33 35 const leeg = { 36 'admin-audio': { tracks: [], playlists: [], maxBytesMb: 20, maxWavMb: 100 }, 37 'admin-playlists': { playlists: [] }, 34 38 'admin-media': { items: [], unusedCount: 0 }, 35 39 'admin-videos': { items: [] }, … … 54 58 if (!html.includes('.ax-tab[aria-current')) fouten.push('admin-styles ontbreekt'); 55 59 if (!html.includes('class="container ax-page"')) fouten.push('ax-page-romp ontbreekt'); 60 // De terugknop, met NAAM en al. Robin zag op 16-8 dat hij van grootte 61 // verschilde: drie pagina's hadden ax-btn en twee de globale btn, en dat 62 // scheelt 10px hoogte en een andere radius. Dit is de regel die dat 63 // vasthoudt -- de klasse staat er letterlijk in, want juist zo'n verschil 64 // ziet er in de bron uit als hetzelfde. 65 const terug = /<a href="\/admin" class="([^"]+)">/.exec(markup); 66 if (!terug) fouten.push('geen terugknop naar /admin'); 67 else if (terug[1] !== 'ax-btn') fouten.push('terugknop heeft class="' + terug[1] + '" i.p.v. ax-btn'); 56 68 // Twee vormen van stille schade die er goed uitzien in de bron. 57 69 if (markup.includes("[object Promise]")) fouten.push('onopgeloste include');
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)