forked from unimatrix/web
DUNE-002: add validated patchnote publishing system
This commit is contained in:
parent
89acb004d3
commit
d955e8beb8
1 changed files with 155 additions and 25 deletions
1
website/web/patchnotes.js
Normal file
1
website/web/patchnotes.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
const patchFilter=document.querySelector('#patch-kind');if(patchFilter){patchFilter.addEventListener('change',()=>{const cards=[...document.querySelectorAll('.patch-card')];let shown=0;for(const card of cards){card.hidden=patchFilter.value!=='all'&&card.dataset.kind!==patchFilter.value;if(!card.hidden)shown++}const empty=document.querySelector('#patch-empty');empty.hidden=shown>0;if(!shown){empty.querySelector('h3').textContent=patchFilter.value==='bugfix'?'No urgent bugfix reports have been published':patchFilter.value==='normal'?'No product bundles have been published':'The first bundle is being assembled'}})}
|
||||
Loading…
Reference in a new issue

Staff