diff --git a/CHANGELOG.md b/CHANGELOG.md index cfbfdd7..c190ced 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.38.0 · 2026-11-20 + +- FormTxt now uses the form family's shared design values, as FormVis does: muted text such as labels, hints and the status bar is the family's grey in Studio Dark, in the light theme and in the 16 other themes that had their own, window shadows match the family's in dark and light, and the interface font is the system's own (San Francisco on macOS, Segoe UI on Windows) with Inter after it. The accent, the text size, the document page and its fonts are unchanged. +- The README's status now says released: FormTxt is built and bundled for macOS, Windows and Linux. +- The browser demos show this version. + ## 0.37.0 · 2026-11-20 - On Windows, the engine now ends with FormTxt however FormTxt ends, Task Manager included, and takes everything it started with it. diff --git a/README.md b/README.md index 8412627..8758d78 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,12 @@
-
+
-
+
@@ -24,7 +24,7 @@ Run it from source
-Version 0.37.0 · Apache-2.0 · macOS, Windows, Linux (browser, or the desktop app built with ./build_app) +Version 0.38.0 · Apache-2.0 · macOS, Windows, Linux (browser, or the desktop app built with ./build_app)${t}
Open a document to use this page.
`,dee={docx:`document`,dotx:`template`,odt:`document`,rtf:`fileText`,txt:`fileText`,html:`globe`,md:`fileText`,epub:`template`},fee=class{root;deps;title;meta;facts;author;run=0;constructor(e,t){this.root=e,this.deps=t,this.title=e.querySelector(`[data-ref="title"]`),this.meta=e.querySelector(`[data-ref="meta"]`),this.facts=e.querySelector(`[data-ref="facts"]`),this.author=e.querySelector(`[data-ref="author"]`);for(let e of[`Title`,`Author`,`Words`,`Size`,`Modified`,`Created`]){let t=P(``),n=P(``);N(t,e),this.facts.append(t,n)}e.addEventListener(`click`,e=>{let t=e.target,n=t.closest(`[data-bs-page]`)?.dataset.bsPage;if(n){this.deps.show(n);return}if(t.closest(`[data-bs-save-author]`)){this.saveAuthor();return}let r=t.closest(`[data-bs]`);if(!r||r.disabled)return;let i;try{i=r.dataset.p?JSON.parse(r.dataset.p):void 0}catch{i=void 0}this.exec(r.dataset.bs,i,r.hasAttribute(`data-stay`))})}exec(e,t,n=!1){n||this.deps.leave(),Promise.resolve(en.call(e,t)).then(e=>{e.ran||Je(`That is not available right now.`,`error`)}).catch(e=>Je(e.message,`error`))}saveAuthor(){let e=this.author.value.trim();ye.post(`/settings`,{author:e}).then(()=>Je(`Author name saved.`)).catch(e=>Je(`Could not save: ${e.message}`,`error`))}refresh(){let e=this.deps.hasDocument();for(let t of Array.from(this.root.querySelectorAll(`.ft-bs-nodoc`)))t.hidden=e;for(let t of Array.from(this.root.querySelectorAll(`[data-bs]`)))Le(t,!e||!en.has(t.dataset.bs));let t=this.deps.current(),n=t?this.deps.summary(t.id):void 0,r=(e,t)=>N(this.facts.querySelector(`[data-k="${e}"]`),t),i=e=>e?new Date(e*1e3).toLocaleString([],{dateStyle:`medium`,timeStyle:`short`}):``;N(this.title,t?.title??``),N(this.meta,n?`${n.words} word${n.words===1?``:`s`} · Saved ${i(n.modified)}`:``),r(`Title`,t?.title??``),r(`Words`,n?String(n.words):``),r(`Size`,(e=>e?e>=1048576?`${(e/1048576).toFixed(1)} MB`:`${Math.max(1,Math.round(e/1024))} KB`:``)(n?.bytes)),r(`Modified`,i(n?.modified)),r(`Created`,i(n?.created));let a=++this.run;t?ye.get(`/documents/${encodeURIComponent(t.id)}`).then(e=>{a===this.run&&r(`Author`,e.meta.author||`Not set`)}).catch(()=>{a===this.run&&r(`Author`,``)}):r(`Author`,``),ye.get(`/settings`).then(e=>{document.activeElement!==this.author&&(this.author.value=String(e.author??``))}).catch(()=>void 0)}}}));function mee(e,t=`formtxt`){let n=`ft-mark${++gee}-`;return hee.replace(/\{p\}/g,n).replace(`${t}
Open a document to use this page.
`,_ee={docx:`document`,dotx:`template`,odt:`document`,rtf:`fileText`,txt:`fileText`,html:`globe`,md:`fileText`,epub:`template`},vee=class{root;deps;title;meta;facts;author;run=0;constructor(e,t){this.root=e,this.deps=t,this.title=e.querySelector(`[data-ref="title"]`),this.meta=e.querySelector(`[data-ref="meta"]`),this.facts=e.querySelector(`[data-ref="facts"]`),this.author=e.querySelector(`[data-ref="author"]`);for(let e of[`Title`,`Author`,`Words`,`Size`,`Modified`,`Created`]){let t=P(``),n=P(``);N(t,e),this.facts.append(t,n)}e.addEventListener(`click`,e=>{let t=e.target,n=t.closest(`[data-bs-page]`)?.dataset.bsPage;if(n){this.deps.show(n);return}if(t.closest(`[data-bs-save-author]`)){this.saveAuthor();return}let r=t.closest(`[data-bs]`);if(!r||r.disabled)return;let i;try{i=r.dataset.p?JSON.parse(r.dataset.p):void 0}catch{i=void 0}this.exec(r.dataset.bs,i,r.hasAttribute(`data-stay`))})}exec(e,t,n=!1){n||this.deps.leave(),Promise.resolve(an.call(e,t)).then(e=>{e.ran||it(`That is not available right now.`,`error`)}).catch(e=>it(e.message,`error`))}saveAuthor(){let e=this.author.value.trim();ke.post(`/settings`,{author:e}).then(()=>it(`Author name saved.`)).catch(e=>it(`Could not save: ${e.message}`,`error`))}refresh(){let e=this.deps.hasDocument();for(let t of Array.from(this.root.querySelectorAll(`.ft-bs-nodoc`)))t.hidden=e;for(let t of Array.from(this.root.querySelectorAll(`[data-bs]`)))qe(t,!e||!an.has(t.dataset.bs));let t=this.deps.current(),n=t?this.deps.summary(t.id):void 0,r=(e,t)=>N(this.facts.querySelector(`[data-k="${e}"]`),t),i=e=>e?new Date(e*1e3).toLocaleString([],{dateStyle:`medium`,timeStyle:`short`}):``;N(this.title,t?.title??``),N(this.meta,n?`${n.words} word${n.words===1?``:`s`} · Saved ${i(n.modified)}`:``),r(`Title`,t?.title??``),r(`Words`,n?String(n.words):``),r(`Size`,(e=>e?e>=1048576?`${(e/1048576).toFixed(1)} MB`:`${Math.max(1,Math.round(e/1024))} KB`:``)(n?.bytes)),r(`Modified`,i(n?.modified)),r(`Created`,i(n?.created));let a=++this.run;t?ke.get(`/documents/${encodeURIComponent(t.id)}`).then(e=>{a===this.run&&r(`Author`,e.meta.author||`Not set`)}).catch(()=>{a===this.run&&r(`Author`,``)}):r(`Author`,``),ke.get(`/settings`).then(e=>{document.activeElement!==this.author&&(this.author.value=String(e.author??``))}).catch(()=>void 0)}}}));function bee(e,t=`formtxt`){let n=`ft-mark${++See}-`;return xee.replace(/\{p\}/g,n).replace(`Write something new, pick up where you left off, or start from one of 39 templates.
Everything in your library, newest first. Pinned documents stay at the front.
Start a blank document at a page size, or pick one of the templates.
Pick a recent document, or open a file from this computer.
Start a blank document at a page size, or pick one of the templates.
Pick a recent document, or open a file from this computer.
39 original templates in 11 categories, plus any document you save as a template.
Deleted documents wait here until you restore them or delete them permanently.
Trash is empty.
1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){scan:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t Deleted documents wait here until you restore them or delete them permanently. Trash is empty.Trash