Implement Knowledge City platform, organizer and DAV integration
Capture accumulated application, UI, CLI, regression tests and design documentation changes, including task project mapping and default CalDAV list naming. Keep deployment data, backups, local credentials and build artifacts out of Git. Move the Compose enrollment token to an ignored local environment file.
This commit is contained in:
1 parent
288e6e94ac
commit
c1175d389f
699 files changed
+110197
-4117
No files matched your search
@@ -0,0 +1,22 @@
|
||||
window.addEventListener('load',async()=>{
|
||||
const wait=async(test,label)=>{for(let i=0;i<150;i++){if(test())return;await new Promise(r=>setTimeout(r,30));}throw new Error(label);};
|
||||
try {
|
||||
document.querySelector('[data-governance-open]').click();
|
||||
const dialog=document.querySelector('[data-governance-dialog]');
|
||||
await wait(()=>!dialog.querySelector('fieldset').disabled,'load');
|
||||
const form=dialog.querySelector('[data-auto-publication-form]'),save=form.querySelector('[data-auto-save]');
|
||||
const preview=async()=>{form.querySelector('[data-auto-preview]').click();await wait(()=>!save.disabled,'automatic preview');};
|
||||
await preview();if(form.elements.mode.value!=='automatic')throw new Error('current mode');
|
||||
if(!form.querySelector('[data-auto-impact]').textContent.includes('/auto/empty/new'))throw new Error('impact list');
|
||||
form.elements.mode.value='required';form.requestSubmit();
|
||||
await wait(()=>!form.querySelector('[data-auto-impact]').textContent,'manual save');
|
||||
await preview();if(form.elements.mode.value!=='required')throw new Error('manual persisted');
|
||||
if(form.elements.mode.querySelector('[value=automatic]').disabled)throw new Error('automatic eligibility');
|
||||
form.elements.mode.value='automatic';form.elements.confirm.checked=true;form.requestSubmit();
|
||||
await wait(()=>!form.querySelector('[data-auto-impact]').textContent,'automatic save');
|
||||
await preview();if(form.elements.mode.value!=='automatic')throw new Error('automatic persisted');
|
||||
form.scrollIntoView({block:'center'});
|
||||
if(dialog.scrollWidth>dialog.clientWidth+2)throw new Error('horizontal overflow');
|
||||
document.body.dataset.vimReady='true';
|
||||
}catch(error){const node=document.createElement('div');node.id='error';node.textContent=error.message;document.body.append(node);}
|
||||
});
|
||||
Reference in new issue
Block a user