fix(ui): show the caption Files button only when the window has none

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Thomas DurieuxandClaude Opus 5.5 committed 2026-11-29 11:56:55 +00:00
1 parent 27802177b6
commit 364642afa8
4 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"core.min.js": "core.d23af1c652.min.js",
"vendor.min.js": "vendor.094a489e61.min.js",
"vendor.min.js": "vendor.eeb2e79895.min.js",
"mermaid.min.js": "mermaid.a7356d5ed1.min.js",
"all.min.css": "all.07e4a087c1.min.css",
"markdown.min.js": "markdown.6c8dfb7b1d.min.js",
+2 -2
View File
@@ -14894,6 +14894,6 @@ body.dark-mode .reviewer-preview .rp-preserved-tag { background: rgba(251, 191,
.anonymize-page .dated-options .hosting-property label,
.anonymize-page .dated-options .hosting-date .paper-field-label { color: var(--ink-soft, var(--ink-muted)); }
@media (max-width: 767px) { .anonymize-page .expiration-choice-row > .expiry-change { min-height: 44px; margin-top: 0; } }
/* Below 992px the file tree sits off-screen; the caption's Files button is the
only way to open it when the preview shows no file (no README, loading, error). */
/* Below 992px the file tree sits off-screen. With no file shown (no README,
loading, error) the window has no Files button, so the caption carries one. */
@media (min-width: 992px) { .reviewer-preview .rp-open.rp-files { display: none; } }
+1 -1
View File
@@ -532,7 +532,7 @@
<div id="workspace-preview" :role="mobileWorkspace ? 'tabpanel' : null" :aria-labelledby="mobileWorkspace ? 'workspace-preview-tab' : null" class="anonymize-preview-col reviewer-preview" v-if="detectedType">
<div class="rp-caption">
<span class="rp-title">What reviewers will see</span>
<button type="button" class="rp-open rp-files" v-if="detectedType === 'repo' &amp;&amp; details" @click="previewViewer.sidebarCollapsed = !previewViewer.sidebarCollapsed" :aria-expanded="!previewViewer.sidebarCollapsed" aria-controls="preview-file-tree">Files</button>
<button type="button" class="rp-open rp-files" v-if="detectedType === 'repo' &amp;&amp; details &amp;&amp; previewStatus !== 'ready'" @click="previewViewer.sidebarCollapsed = !previewViewer.sidebarCollapsed" :aria-expanded="!previewViewer.sidebarCollapsed" aria-controls="preview-file-tree">Files</button>
<span class="rp-count" v-if="previewStatus === 'ready' &amp;&amp; previewRedactions() &gt; 0" :title="previewRedactions() + ' redacted terms in this preview'"><span class="redact-slot" aria-hidden="true"><i>{{ previewRedactions() }}</i></span> redacted</span>
<button type="button" class="rp-count rp-status-empty" v-else-if="previewStatus === 'ready' &amp;&amp; !String(terms || '').trim()" @click="focusTerms()">Nothing redacted yet: <span class="rp-status-action">add terms</span></button>
<button type="button" class="rp-count rp-count-none" v-else-if="previewStatus === 'ready' &amp;&amp; previewPreserved()" @click="openPreserveFiles()" title="Change it in Leave files unredacted">{{ previewName(previewFile ? previewFile.slice(previewFile.lastIndexOf('/') + 1) : readmeName()) }} left unredacted</button>
+2 -2
View File
@@ -1,4 +1,4 @@
"use strict";(()=>{var ml=Object.defineProperty;var hl=e=>{throw TypeError(e)};var wf=(e,t,s)=>t in e?ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var kf=(e,t)=>{for(var s in t)ml(e,s,{get:t[s],enumerable:!0})};var tt=(e,t,s)=>wf(e,typeof t!="symbol"?t+"":t,s),Tr=(e,t,s)=>t.has(e)||hl("Cannot "+s);var ae=(e,t,s)=>(Tr(e,t,"read from private field"),s?s.call(e):t.get(e)),qe=(e,t,s)=>t.has(e)?hl("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),Be=(e,t,s,i)=>(Tr(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),$e=(e,t,s)=>(Tr(e,t,"access private method"),s);var gl=(e,t,s,i)=>({set _(o){Be(e,t,o,s)},get _(){return ae(e,t,i)}});var ge=["abap","abc","actionscript","ada","alda","apache_conf","apex","applescript","aql","asciidoc","asl","assembly_x86","autohotkey","batchfile","c9search","c_cpp","cirru","clojure","cobol","coffee","coldfusion","crystal","csharp","csound_document","csound_orchestra","csound_score","csp","css","curly","d","dart","diff","django","dockerfile","dot","drools","edifact","eiffel","ejs","elixir","elm","erlang","forth","fortran","fsharp","fsl","ftl","gcode","gherkin","gitignore","glsl","gobstones","golang","graphqlschema","groovy","haml","handlebars","haskell","haskell_cabal","haxe","hjson","html","html_elixir","html_ruby","ini","io","jack","jade","java","javascript","json","json5","jsoniq","jsp","jssm","jsx","julia","kotlin","latex","less","liquid","lisp","livescript","logiql","logtalk","lsl","lua","luapage","lucene","makefile","markdown","mask","matlab","maze","mediawiki","mel","mixal","mushcode","mysql","nginx","nim","nix","nsis","nunjucks","objectivec","ocaml","pascal","perl","perl6","pgsql","php","php_laravel_blade","pig","plain_text","powershell","praat","prisma","prolog","properties","protobuf","puppet","python","qml","r","razor","rdoc","red","redshift","rhtml","rst","ruby","rust","sass","scad","scala","scheme","scss","sh","sjs","slim","smarty","snippets","soy_template","space","sparql","sql","sqlserver","stylus","svg","swift","tcl","terraform","tex","text","textile","toml","tsx","turtle","twig","typescript","vala","vbscript","velocity","verilog","vhdl","visualforce","wollok","xml","xquery","yaml","zeek"];var ve={markdown:"/script/markdown.6c8dfb7b1d.min.js",notebook:"/script/notebook.c3144c18ae.min.js",org:"/script/org.f61f262915.min.js",pdf:"/script/pdf.4d9cc6ff49.min.js",editor:"/script/editor.4f142d3adc.min.js"};function vl(e){let t=e.location.hash.slice(1);if(e.history.replaceState(null,"","/review-link"),t.length>2048)return null;let s=new URLSearchParams(t);if([...s.keys()].length!==3||[...s.keys()].some(u=>!["clientId","intentId","token"].includes(u)))return null;let i=s.get("clientId"),o=s.get("intentId"),r=s.get("token");return!/^[a-f0-9]{32}$/.test(i||"")||!/^[a-f0-9]{32}$/.test(o||"")||!/^[a-f0-9]{64}$/.test(r||"")?null:{contract:"4open.artifacts/1",clientId:i,intentId:o,token:r}}function yl(e,t){let{http:s,promises:i,window:o}=t,r=t.takeReviewHandoff(),u=r?{clientId:r.clientId,intentId:r.intentId}:null,f,c,v,h,y,g=!0,C,w=i.defer(),S=()=>[...o.crypto.getRandomValues(new Uint8Array(16))].map(_=>_.toString(16).padStart(2,"0")).join("");Object.assign(e,{repositoryId:"",handoffEnabled:!1,busy:!1,preview:null,acceptAccess:!1,acceptRetention:!1,uncertain:!1,saved:!1,expired:!1,error:r?"":"Open a new artifact link from your submission. This link is missing or invalid."});let N=()=>g&&e.user?.username===y;function b(){g=!1,r=f=c=void 0,w.resolve(),o.clearTimeout(C)}e.on("dispose",b),e.on("routeLeave",b),e.watch(()=>e.user?.username,_=>{!y&&_?y=_:y&&_!==y&&(b(),e.preview=null,e.repositoryId="",e.busy=!1,e.saved=!1,e.handoffEnabled=!1,e.error="Your account changed. Open a new artifact link from your submission.")});let T=()=>({timeout:w.promise,headers:{"Content-Type":"application/json","X-Review-CSRF":c}}),M=_=>_?.status===404?"Artifact linking is not available on this server.":_?.status===401?"Sign in, then open a new artifact link from your submission.":_?.status===403?"This account cannot approve this repository or this link.":"The request could not be completed. You can retry from this page.";e.loadPreview=async()=>{if(!g||!r||e.busy||e.uncertain||e.saved||!e.user?.username)return;y=e.user.username;let _=e.repositoryId.trim();if(!/^[A-Za-z0-9_-]{3,128}$/.test(_)){e.error="Enter the anonymous repository ID from its URL.";return}e.busy=!0,e.error="",e.preview=null,f=void 0,e.acceptAccess=e.acceptRetention=!1,e.expired=!1,o.clearTimeout(C),h||(h=S());try{let H=(await s.get("/api/review-consent/csrf",{timeout:w.promise})).data;if(!N())return;if(c=H.csrf,e.handoffEnabled=H.handoffEnabled===!0,!/^[a-f0-9]{64}$/.test(c||""))throw new Error("invalid_csrf");let se=(await s.post("/api/review-consent/preview",{repositoryId:_,intent:{...r,requestId:h}},T())).data;if(!N())return;if(!se||typeof se.ticket!="string"||!se.ticket||se.ticket.length>8192||typeof se.repositoryName!="string"||!["restricted-review","anonymous-liLine truncated
"use strict";(()=>{var ml=Object.defineProperty;var hl=e=>{throw TypeError(e)};var wf=(e,t,s)=>t in e?ml(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var kf=(e,t)=>{for(var s in t)ml(e,s,{get:t[s],enumerable:!0})};var tt=(e,t,s)=>wf(e,typeof t!="symbol"?t+"":t,s),Tr=(e,t,s)=>t.has(e)||hl("Cannot "+s);var ae=(e,t,s)=>(Tr(e,t,"read from private field"),s?s.call(e):t.get(e)),qe=(e,t,s)=>t.has(e)?hl("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),Be=(e,t,s,i)=>(Tr(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),$e=(e,t,s)=>(Tr(e,t,"access private method"),s);var gl=(e,t,s,i)=>({set _(o){Be(e,t,o,s)},get _(){return ae(e,t,i)}});var ge=["abap","abc","actionscript","ada","alda","apache_conf","apex","applescript","aql","asciidoc","asl","assembly_x86","autohotkey","batchfile","c9search","c_cpp","cirru","clojure","cobol","coffee","coldfusion","crystal","csharp","csound_document","csound_orchestra","csound_score","csp","css","curly","d","dart","diff","django","dockerfile","dot","drools","edifact","eiffel","ejs","elixir","elm","erlang","forth","fortran","fsharp","fsl","ftl","gcode","gherkin","gitignore","glsl","gobstones","golang","graphqlschema","groovy","haml","handlebars","haskell","haskell_cabal","haxe","hjson","html","html_elixir","html_ruby","ini","io","jack","jade","java","javascript","json","json5","jsoniq","jsp","jssm","jsx","julia","kotlin","latex","less","liquid","lisp","livescript","logiql","logtalk","lsl","lua","luapage","lucene","makefile","markdown","mask","matlab","maze","mediawiki","mel","mixal","mushcode","mysql","nginx","nim","nix","nsis","nunjucks","objectivec","ocaml","pascal","perl","perl6","pgsql","php","php_laravel_blade","pig","plain_text","powershell","praat","prisma","prolog","properties","protobuf","puppet","python","qml","r","razor","rdoc","red","redshift","rhtml","rst","ruby","rust","sass","scad","scala","scheme","scss","sh","sjs","slim","smarty","snippets","soy_template","space","sparql","sql","sqlserver","stylus","svg","swift","tcl","terraform","tex","text","textile","toml","tsx","turtle","twig","typescript","vala","vbscript","velocity","verilog","vhdl","visualforce","wollok","xml","xquery","yaml","zeek"];var ve={markdown:"/script/markdown.6c8dfb7b1d.min.js",notebook:"/script/notebook.c3144c18ae.min.js",org:"/script/org.f61f262915.min.js",editor:"/script/editor.4f142d3adc.min.js",pdf:"/script/pdf.4d9cc6ff49.min.js"};function vl(e){let t=e.location.hash.slice(1);if(e.history.replaceState(null,"","/review-link"),t.length>2048)return null;let s=new URLSearchParams(t);if([...s.keys()].length!==3||[...s.keys()].some(u=>!["clientId","intentId","token"].includes(u)))return null;let i=s.get("clientId"),o=s.get("intentId"),r=s.get("token");return!/^[a-f0-9]{32}$/.test(i||"")||!/^[a-f0-9]{32}$/.test(o||"")||!/^[a-f0-9]{64}$/.test(r||"")?null:{contract:"4open.artifacts/1",clientId:i,intentId:o,token:r}}function yl(e,t){let{http:s,promises:i,window:o}=t,r=t.takeReviewHandoff(),u=r?{clientId:r.clientId,intentId:r.intentId}:null,f,c,v,h,y,g=!0,C,w=i.defer(),S=()=>[...o.crypto.getRandomValues(new Uint8Array(16))].map(_=>_.toString(16).padStart(2,"0")).join("");Object.assign(e,{repositoryId:"",handoffEnabled:!1,busy:!1,preview:null,acceptAccess:!1,acceptRetention:!1,uncertain:!1,saved:!1,expired:!1,error:r?"":"Open a new artifact link from your submission. This link is missing or invalid."});let N=()=>g&&e.user?.username===y;function b(){g=!1,r=f=c=void 0,w.resolve(),o.clearTimeout(C)}e.on("dispose",b),e.on("routeLeave",b),e.watch(()=>e.user?.username,_=>{!y&&_?y=_:y&&_!==y&&(b(),e.preview=null,e.repositoryId="",e.busy=!1,e.saved=!1,e.handoffEnabled=!1,e.error="Your account changed. Open a new artifact link from your submission.")});let T=()=>({timeout:w.promise,headers:{"Content-Type":"application/json","X-Review-CSRF":c}}),M=_=>_?.status===404?"Artifact linking is not available on this server.":_?.status===401?"Sign in, then open a new artifact link from your submission.":_?.status===403?"This account cannot approve this repository or this link.":"The request could not be completed. You can retry from this page.";e.loadPreview=async()=>{if(!g||!r||e.busy||e.uncertain||e.saved||!e.user?.username)return;y=e.user.username;let _=e.repositoryId.trim();if(!/^[A-Za-z0-9_-]{3,128}$/.test(_)){e.error="Enter the anonymous repository ID from its URL.";return}e.busy=!0,e.error="",e.preview=null,f=void 0,e.acceptAccess=e.acceptRetention=!1,e.expired=!1,o.clearTimeout(C),h||(h=S());try{let H=(await s.get("/api/review-consent/csrf",{timeout:w.promise})).data;if(!N())return;if(c=H.csrf,e.handoffEnabled=H.handoffEnabled===!0,!/^[a-f0-9]{64}$/.test(c||""))throw new Error("invalid_csrf");let se=(await s.post("/api/review-consent/preview",{repositoryId:_,intent:{...r,requestId:h}},T())).data;if(!N())return;if(!se||typeof se.ticket!="string"||!se.ticket||se.ticket.length>8192||typeof se.repositoryName!="string"||!["restricted-review","anonymous-liLine truncated
`))),e[bn]=Bo(o);let r=i||o.props&&o.props.type==="number";Fn(e,t?"change":"input",u=>{u.target.composing||e[bn](fa(e.value,s,r))}),(s||r)&&Fn(e,"change",()=>{e.value=fa(e.value,s,r)}),t||(Fn(e,"compositionstart",Eh),Fn(e,"compositionend",su),Fn(e,"change",su))},mounted(e,{value:t,modifiers:{trim:s,number:i}}){let o=t??"",r=e[zi];delete e[zi],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[bn](fa(e.value,s,i)):e.value=o},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:i,trim:o,number:r}},u){if(e[bn]=Bo(u),e.composing)return;let f=(r||e.type==="number")&&!/^0\d/.test(e.value)?Vo(e.value):e.value,c=t??"";if(f===c)return;let v=e.getRootNode();(v instanceof Document||v instanceof ShadowRoot)&&v.activeElement===e&&e.type!=="range"&&(i&&t===s||o&&e.value.trim()===c)||(e.value=c)}},ha={deep:!0,created(e,t,s){e[bn]=Bo(s),Fn(e,"change",()=>{let i=e._modelValue,o=Fs(e),r=e.checked,u=e[bn];if(Ne(i)){let f=gi(i,o),c=f!==-1;if(r&&!c)u(i.concat(o));else if(!r&&c){let v=[...i];v.splice(f,1),u(v)}}else if(Zt(i)){let f=new Set(i);r?f.add(o):f.delete(o),u(f)}else u(uu(e,r))})},mounted:iu,beforeUpdate(e,t,s){e[bn]=Bo(s),iu(e,t,s)}};function iu(e,{value:t,oldValue:s},i){e._modelValue=t;let o;if(Ne(t))o=gi(t,i.props.value)>-1;else if(Zt(t))o=t.has(i.props.value);else{if(t===s)return;o=xt(t,uu(e,!0))}e.checked!==o&&(e.checked=o)}var Nt={deep:!0,created(e,{value:t,modifiers:{number:s}},i){e._modelValue=t,Fn(e,"change",()=>{let o=Array.prototype.filter.call(e.options,c=>c.selected).map(c=>s?Vo(Fs(c)):Fs(c)),r=e.multiple,u=r?Zt(e._modelValue)?new Set(o):o:o[0],f=e._pendingValue=[r,r?Ne(u)?o.slice():o:u];try{e[bn](u)}finally{ze(()=>{e._pendingValue===f&&(e._pendingValue=void 0)})}}),e[bn]=Bo(i)},mounted(e,{value:t}){ru(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[bn]=Bo(s)},updated(e,{value:t}){let s=e._pendingValue;e._pendingValue=void 0,(!s||s[0]!==e.multiple||!Nh(t,s[1],s[0]))&&ru(e,t)}};function Nh(e,t,s){if(!s)return xt(e,t);if(Ne(e))return xt(e,t);if(Zt(e)){if(e.size!==t.length)return!1;for(let i of t)if(!e.has(i))return!1;return!0}return!1}function ru(e,t){let s=e.multiple,i=Ne(t);if(!(s&&!i&&!Zt(t))){for(let o=0,r=e.options.length;o<r;o++){let u=e.options[o],f=Fs(u);if(s)if(i){let c=typeof f;c==="string"||c==="number"?u.selected=t.some(v=>String(v)===String(f)):u.selected=gi(t,f)>-1}else u.selected=t.has(f);else if(xt(Fs(u),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Fs(e){return"_value"in e?e._value:e.value}function uu(e,t){let s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}var Rh=["ctrl","shift","alt","meta"],Th={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Rh.some(s=>e[`${s}Key`]&&!t.includes(s))},de=(e,t)=>{if(!e)return e;let s=e._withMods||(e._withMods={}),i=t.join(".");return s[i]||(s[i]=((o,...r)=>{for(let u=0;u<t.length;u++){let f=Th[t[u]];if(f&&f(o,t))return}return e(o,...r)}))},Ph={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},$t=(e,t)=>{let s=e._withKeys||(e._withKeys={}),i=t.join(".");return s[i]||(s[i]=(o=>{if(!("key"in o))return;let r=dn(o.key);if(t.some(u=>u===r||Ph[u]===r))return e(o)}))},Dh=ct({patchProp:kh},ih),au;function Ah(){return au||(au=Ud(Dh))}var cu=((...e)=>{let t=Ah().createApp(...e),{mount:s}=t;return t.mount=i=>{let o=Oh(i);if(!o)return;let r=t._component;!Ie(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");let u=s(o,!1,Ih(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),u},t});function Ih(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Oh(e){return at(e)?document.querySelector(e):e}var co=typeof document<"u";function fu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Mh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&fu(e.default)}var Ze=Object.assign;function ji(e,t){let s={};for(let i in t){let o=t[i];s[i]=Qt(o)?o.map(e):e(o)}return s}var Ho=()=>{},Qt=Array.isArray;function ya(e,t){let s={};for(let i in e)s[i]=i in t?t[i]:e[i];return s}var mu=/#/g,Vh=/&/g,Lh=/\//g,qh=/=/g,$h=/\?/g,hu=/\+/g,Fh=/%5B/g,_h=/%5D/g,gu=/%5E/g,Uh=/%60/g,vu=/%7B/g,Bh=/%7C/g,yu=/%7D/g,zh=/%20/g;function ba(e){return e==null?"":encodeURI(""+e).replace(Bh,"|").replace(Fh,"[").replace(_h,"]")}function bu(e){return ba(e).replace(vu,"{").replace(yu,"}").replace(gu,"^")}function ga(e){return ba(e).replace(hu,"%2B").replace(zh,"+").replace(mu,"%23").replace(Vh,"%26").replace(Uh,"`").replace(vu,"{").replace(yu,"}").replace(gu,"^")}function Hh(e){return ga(e).replace(qh,"%3D")}function jh(e){return bLine truncated
${JSON.stringify(e)}${t?`
while being at
@@ -44,7 +44,7 @@ Contact: jane.smith@mit.edu`,e.demoTerms="Jane Smith, Smith, MIT CSAIL, jane.smi
`).length+1)),placeholder:`Jane Smith
MIT CSAIL
jane.smith@example.org`},null,10,Z5),[[u,{state:e.viewState,set:c=>{e.terms=c},value:e.terms,form:"anonymize",options:{debounce:250}}]]),t[130]||(t[130]=n("small",{class:"form-text text-muted"},"One term per line.",-1)),n("details",x5,[t[125]||(t[125]=n("summary",null,"Regex & replacement syntax",-1)),t[126]||(t[126]=m()),n("small",e8,[t[119]||(t[119]=m("Regex is supported. Replaced by ",-1)),n("code",null,d(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[120]||(t[120]=m(", or use ",-1)),t[121]||(t[121]=n("code",null,"term=>replacement",-1)),t[122]||(t[122]=m(" to pick your own (e.g. ",-1)),t[123]||(t[123]=n("code",null,"Anonymous=>ABC",-1)),t[124]||(t[124]=m(").",-1))])]),(a(!0),l(V,null,X((e.termHints||[]).slice(0,3),c=>(a(),l("div",{class:"term-hint",key:c.line},[n("span",null,[t[127]||(t[127]=m("In ",-1)),n("code",null,d(c.term),1),t[128]||(t[128]=m(", ",-1)),n("code",null,d(c.symbols.join(" ")),1),m(" "+d(c.symbols.length>1?"are regex symbols":"is a regex symbol")+", so it may not match the text as written.",1)]),n("button",{type:"button",class:"btn btn-outline-ink btn-sm",onClick:v=>e.matchTermAsWritten(c.line)},"Match as written",8,t8)]))),128)),(e.termHints||[]).length>3?(a(),l("div",n8,d(e.termHints.length-3)+" more "+d(e.termHints.length-3===1?"term uses":"terms use")+" regex symbols.",1)):p("v-if",!0),P(n("div",o8,"Terms are in an invalid format.",512),[[Q,e.anonymize?.terms?.errors?.format]])]),P(n("div",s8,[n("div",i8,[t[131]||(t[131]=n("span",{class:"paper-field-label",id:"preserve-files-label"},"Unredacted files",-1)),n("span",r8,d(e.preserveSummary()),1)]),n("button",{type:"button",class:"btn btn-outline-ink btn-sm","aria-describedby":"preserve-files-label",disabled:!e.source?.commit,onClick:t[25]||(t[25]=c=>e.openPreserveFiles())},d((e.options?.preserveFiles||[]).length?"Edit":"Choose files"),9,a8)],512),[[Q,e.detectedType==="repo"]]),e.preserve?.open?(a(),l("dialog",{key:0,id:"preserve-files-dialog",class:"preserve-dialog","aria-labelledby":"preserve-files-title",onCancel:t[30]||(t[30]=de(c=>e.closePreserveFiles(),["prevent"]))},[n("form",{onSubmit:t[29]||(t[29]=de(c=>e.savePreserveFiles(),["prevent"]))},[t[135]||(t[135]=n("h2",{id:"preserve-files-title"},"Leave files unredacted",-1)),t[136]||(t[136]=n("p",{class:"preserve-intro"},"Checked files are shown exactly as written, for example a bibliography where redacted self-citations would reveal you. File names are still redacted.",-1)),P(n("input",{type:"search",id:"preserve-files-search",class:"form-control",placeholder:"Search files","aria-label":"Search files",autocomplete:"off","onUpdate:modelValue":t[26]||(t[26]=c=>e.preserve.search=c)},null,512),[[nt,e.preserve.search]]),n("div",l8,[e.preserve.loading?(a(),l("p",d8,"Loading files from GitHub\u2026")):e.preserve.error?(a(),l("p",u8,d(e.preserve.error),1)):(a(),l(V,{key:2},[(a(!0),l(V,null,X(e.preserveRows(),(c,v)=>(a(),l("div",{class:"preserve-item",key:c.kind+":"+c.path,style:Ae({paddingLeft:c.depth*18+6+"px"})},[c.kind==="dir"?(a(),l("button",{key:0,type:"button",class:"preserve-caret","aria-expanded":c.open?"true":"false","aria-label":(c.open?"Collapse ":"Expand ")+c.label,onClick:h=>e.togglePreserveDir(c.path)},d(c.open?"\u25BE":"\u25B8"),9,c8)):(a(),l("span",p8)),n("input",{type:"checkbox",id:"pf-"+v,"aria-label":c.kind==="dir"?"Leave folder "+c.path+" unredacted":null,checked:c.state==="all",".indeterminate":c.state==="some",disabled:c.locked,onChange:h=>c.kind==="dir"?e.togglePreserveFolder(c.path):e.togglePreserveFile(c.path)},null,40,f8),n("label",{for:c.kind==="file"?"pf-"+v:null,class:"preserve-name",onClick:h=>c.kind==="dir"&&e.togglePreserveDir(c.path)},d(c.label),9,m8),c.note?(a(),l("span",h8,d(c.note),1)):p("v-if",!0)],4))),128)),!e.preserve.loading&&!e.preserveRows().length?(a(),l("p",g8,d(e.preserve.search?"No file matches your search.":"No text files in this commit."),1)):p("v-if",!0)],64))]),e.preserve.truncated?(a(),l("p",v8,"This repository has too many files to list them all. Use a pattern for files you cannot find.")):p("v-if",!0),n("details",{class:"preserve-patterns",open:e.preserve.patternsOpen},[t[132]||(t[132]=n("summary",null,"Patterns",-1)),P(n("textarea",{class:"form-control",rows:"3","aria-label":"Patterns",placeholder:`*.bib
paper/appendix/**`,"onUpdate:modelValue":t[27]||(t[27]=c=>e.preserve.patterns=c)},null,512),[[nt,e.preserve.patterns]]),t[133]||(t[133]=n("small",{class:"form-text text-muted"},[m("One per line, as in .gitignore: "),n("code",null,"*.bib"),m(" matches in any folder; "),n("code",null,"/refs.bib"),m(" and "),n("code",null,"paper/refs.bib"),m(" match from the repository root; a folder name such as "),n("code",null,"drafts/"),m(" covers everything inside it; "),n("code",null,"!private.bib"),m(" excludes again.")],-1))],8,y8),n("div",b8,[n("span",w8,d(e.preserve.loading||e.preserve.error?"":e.preserveCount()+(e.preserveCount()===1?" file":" files")+" will be shown as written"),1),n("span",k8,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[28]||(t[28]=c=>e.closePreserveFiles())},"Cancel"),t[134]||(t[134]=n("button",{type:"submit",class:"btn btn-ink"},"Save",-1))])])],32)],32)):p("v-if",!0)],512),[[Q,e.detectedType&&e.sourceReady()]]),P(n("section",C8,[t[157]||(t[157]=n("h2",{class:"paper-section-eyebrow"},"Display",-1)),P(n("div",null,[n("div",S8,[P(n("input",E8,null,512),[[u,{state:e.viewState,set:c=>{e.options.link=c},value:e.options?.link,form:"anonymize",options:{}}]]),t[138]||(t[138]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),n("div",N8,[P(n("input",R8,null,512),[[u,{state:e.viewState,set:c=>{e.options.image=c},value:e.options?.image,form:"anonymize",options:{}}]]),t[139]||(t[139]=n("label",{class:"form-check-label",for:"image"},"Display images",-1))]),n("div",T8,[P(n("input",P8,null,512),[[u,{state:e.viewState,set:c=>{e.options.pdf=c},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[140]||(t[140]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1))]),n("div",D8,[P(n("input",A8,null,512),[[u,{state:e.viewState,set:c=>{e.options.notebook=c},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[141]||(t[141]=n("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1))]),n("div",I8,[P(n("input",{class:"form-check-input",type:"checkbox",id:"page",name:"page",disabled:!e.details?.hasPage||e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch},null,8,O8),[[u,{state:e.viewState,set:c=>{e.options.page=c},value:e.options?.page,form:"anonymize",options:{}}]]),t[142]||(t[142]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?p("v-if",!0):(a(),l("small",M8,d(e.fmt?.translate("WARNINGS.page_not_enabled_on_repo")),1)),e.details?.hasPage&&e.details?.pageSource?.branch&&e.source?.branch&&e.details.pageSource.branch!==e.source.branch?(a(),l("small",V8,d(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),1)):p("v-if",!0)])],512),[[Q,e.detectedType==="repo"]]),e.detectedType==="repo"&&(e.options.image||e.options.pdf)?(a(),l("p",L8,[...t[143]||(t[143]=[m("Images and PDFs are served unchanged. Review their contents and metadata before sharing. ",-1),n("a",{href:"/faq#formats"},"Supported formats",-1)])])):p("v-if",!0),P(n("div",null,[n("div",q8,[P(n("input",$8,null,512),[[u,{state:e.viewState,set:c=>{e.options.title=c},value:e.options?.title,form:"anonymize",options:{}}]]),t[144]||(t[144]=n("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),n("div",F8,[P(n("input",_8,null,512),[[u,{state:e.viewState,set:c=>{e.options.content=c},value:e.options?.content,form:"anonymize",options:{}}]]),t[145]||(t[145]=n("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),n("div",U8,[P(n("input",B8,null,512),[[u,{state:e.viewState,set:c=>{e.options.comments=c},value:e.options?.comments,form:"anonymize",options:{}}]]),t[146]||(t[146]=n("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),n("div",z8,[P(n("input",H8,null,512),[[u,{state:e.viewState,set:c=>{e.options.username=c},value:e.options?.username,form:"anonymize",options:{}}]]),t[147]||(t[147]=n("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),n("div",j8,[P(n("input",G8,null,512),[[u,{state:e.viewState,set:c=>{e.options.date=c},value:e.options?.date,form:"anonymize",options:{}}]]),t[148]||(t[148]=n("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),n("div",W8,[P(n("input",K8,null,512),[[u,{state:e.viewState,set:c=>{e.options.origin=c},value:e.options?.origin,form:"anonymize",options:{}}]]),t[149]||(t[149]=n("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[Q,e.detectedType==="gist"]]),P(n("div",null,[n("div",Y8,[P(n("input",J8,null,512),[[u,{state:e.viewState,set:c=>{e.options.title=c},value:e.options?.title,form:"anonymize",options:{}}]]),t[150]||(t[150]=n("label",{class:"form-check-label",for:"title"},"PR title",-1))]),n("div",X8,[P(n("input",Q8,null,512),[[u,{state:e.viewState,set:c=>{e.options.body=c},value:e.options?.body,form:"anonymize",options:{}}]]),t[151]||(t[151]=n("label",{class:"form-check-label",for:"body"},"PR body",-1))]),n( Line truncated
paper/appendix/**`,"onUpdate:modelValue":t[27]||(t[27]=c=>e.preserve.patterns=c)},null,512),[[nt,e.preserve.patterns]]),t[133]||(t[133]=n("small",{class:"form-text text-muted"},[m("One per line, as in .gitignore: "),n("code",null,"*.bib"),m(" matches in any folder; "),n("code",null,"/refs.bib"),m(" and "),n("code",null,"paper/refs.bib"),m(" match from the repository root; a folder name such as "),n("code",null,"drafts/"),m(" covers everything inside it; "),n("code",null,"!private.bib"),m(" excludes again.")],-1))],8,y8),n("div",b8,[n("span",w8,d(e.preserve.loading||e.preserve.error?"":e.preserveCount()+(e.preserveCount()===1?" file":" files")+" will be shown as written"),1),n("span",k8,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[28]||(t[28]=c=>e.closePreserveFiles())},"Cancel"),t[134]||(t[134]=n("button",{type:"submit",class:"btn btn-ink"},"Save",-1))])])],32)],32)):p("v-if",!0)],512),[[Q,e.detectedType&&e.sourceReady()]]),P(n("section",C8,[t[157]||(t[157]=n("h2",{class:"paper-section-eyebrow"},"Display",-1)),P(n("div",null,[n("div",S8,[P(n("input",E8,null,512),[[u,{state:e.viewState,set:c=>{e.options.link=c},value:e.options?.link,form:"anonymize",options:{}}]]),t[138]||(t[138]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),n("div",N8,[P(n("input",R8,null,512),[[u,{state:e.viewState,set:c=>{e.options.image=c},value:e.options?.image,form:"anonymize",options:{}}]]),t[139]||(t[139]=n("label",{class:"form-check-label",for:"image"},"Display images",-1))]),n("div",T8,[P(n("input",P8,null,512),[[u,{state:e.viewState,set:c=>{e.options.pdf=c},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[140]||(t[140]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1))]),n("div",D8,[P(n("input",A8,null,512),[[u,{state:e.viewState,set:c=>{e.options.notebook=c},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[141]||(t[141]=n("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1))]),n("div",I8,[P(n("input",{class:"form-check-input",type:"checkbox",id:"page",name:"page",disabled:!e.details?.hasPage||e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch},null,8,O8),[[u,{state:e.viewState,set:c=>{e.options.page=c},value:e.options?.page,form:"anonymize",options:{}}]]),t[142]||(t[142]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?p("v-if",!0):(a(),l("small",M8,d(e.fmt?.translate("WARNINGS.page_not_enabled_on_repo")),1)),e.details?.hasPage&&e.details?.pageSource?.branch&&e.source?.branch&&e.details.pageSource.branch!==e.source.branch?(a(),l("small",V8,d(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),1)):p("v-if",!0)])],512),[[Q,e.detectedType==="repo"]]),e.detectedType==="repo"&&(e.options.image||e.options.pdf)?(a(),l("p",L8,[...t[143]||(t[143]=[m("Images and PDFs are served unchanged. Review their contents and metadata before sharing. ",-1),n("a",{href:"/faq#formats"},"Supported formats",-1)])])):p("v-if",!0),P(n("div",null,[n("div",q8,[P(n("input",$8,null,512),[[u,{state:e.viewState,set:c=>{e.options.title=c},value:e.options?.title,form:"anonymize",options:{}}]]),t[144]||(t[144]=n("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),n("div",F8,[P(n("input",_8,null,512),[[u,{state:e.viewState,set:c=>{e.options.content=c},value:e.options?.content,form:"anonymize",options:{}}]]),t[145]||(t[145]=n("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),n("div",U8,[P(n("input",B8,null,512),[[u,{state:e.viewState,set:c=>{e.options.comments=c},value:e.options?.comments,form:"anonymize",options:{}}]]),t[146]||(t[146]=n("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),n("div",z8,[P(n("input",H8,null,512),[[u,{state:e.viewState,set:c=>{e.options.username=c},value:e.options?.username,form:"anonymize",options:{}}]]),t[147]||(t[147]=n("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),n("div",j8,[P(n("input",G8,null,512),[[u,{state:e.viewState,set:c=>{e.options.date=c},value:e.options?.date,form:"anonymize",options:{}}]]),t[148]||(t[148]=n("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),n("div",W8,[P(n("input",K8,null,512),[[u,{state:e.viewState,set:c=>{e.options.origin=c},value:e.options?.origin,form:"anonymize",options:{}}]]),t[149]||(t[149]=n("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[Q,e.detectedType==="gist"]]),P(n("div",null,[n("div",Y8,[P(n("input",J8,null,512),[[u,{state:e.viewState,set:c=>{e.options.title=c},value:e.options?.title,form:"anonymize",options:{}}]]),t[150]||(t[150]=n("label",{class:"form-check-label",for:"title"},"PR title",-1))]),n("div",X8,[P(n("input",Q8,null,512),[[u,{state:e.viewState,set:c=>{e.options.body=c},value:e.options?.body,form:"anonymize",options:{}}]]),t[151]||(t[151]=n("label",{class:"form-check-label",for:"body"},"PR body",-1))]),n( Line truncated
for the rows when a reload (tab, search, filter) has none of the new rows yet `),(a(),l(V,null,X([1,2,3,4],(r,u)=>(a(),l(V,null,[e.loading||e.refreshing&&e.filteredItems?.length==0?(a(),l("div",k7,[...t[63]||(t[63]=[n("div",{class:"cell-anon",role:"cell"},[n("span",{class:"skeleton skeleton-badge"}),n("div",{class:"anon-text"},[n("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),n("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),n("div",{class:"cell-status",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),n("div",{class:"cell-views num",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),n("div",{class:"cell-expires",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),n("div",{class:"cell-actions",role:"cell"},null,-1)])])):p("v-if",!0)],64))),64)),(a(!0),l(V,null,X(e.filteredItems,(r,u)=>(a(),l(V,{key:r?._type+":"+(r?._id||u)},[e.loading?p("v-if",!0):(a(),l("div",{key:0,class:R(["paper-table-row",{"repo-inactive":r?._statusKey=="expired"||r?._statusKey=="removed","repo-error":r?.status=="error","row-clickable":!!r?._viewUrl}]),role:"row",onClick:f=>e.openItem(r,f)},[n("div",S7,[n("span",{class:"project-type-icon",role:"img","aria-label":r?._type==="repo"?"Repository":r?._type==="pr"?"Pull request":"Gist",title:r?._type==="repo"?"Repository":r?._type==="pr"?"Pull request":"Gist"},[(a(),l("svg",N7,[n("use",{href:"#project-type-"+r._type},null,8,R7)]))],8,E7),n("div",T7,[n("div",P7,[r?._viewUrl?(a(),l("a",{key:0,class:"repo-name",title:r._label,href:e.safeUrl(r?._viewUrl)},[(r?._label||"").indexOf("/")>0?(a(),l(V,{key:0},[n("span",A7,d(r._label.slice(0,r._label.indexOf("/")+1)),1),t[64]||(t[64]=n("wbr",null,null,-1)),n("span",I7,d(r._label.slice(r._label.indexOf("/")+1)),1)],64)):(a(),l(V,{key:1},[m(d(r?._label),1)],64))],8,D7)):p("v-if",!0),r?._viewUrl?p("v-if",!0):(a(),l("span",O7,[(r?._label||"").indexOf("/")>0?(a(),l(V,{key:0},[n("span",M7,d(r._label.slice(0,r._label.indexOf("/")+1)),1),t[65]||(t[65]=n("wbr",null,null,-1)),n("span",V7,d(r._label.slice(r._label.indexOf("/")+1)),1)],64)):(a(),l(V,{key:1},[m(d(r?._label),1)],64))])),r?.role==="coauthor"?(a(),l("span",L7,"Co-author")):p("v-if",!0)]),r?._id||r?._type==="repo"&&r?.source?.commit||r?.conference?(a(),l("div",q7,[r?._id?(a(),l("code",{key:0,class:"anonymous-id",title:r._id},[r._id.length>14?(a(),l(V,{key:0},[n("span",F7,d(r._id.slice(0,-6)),1),n("span",_7,d(r._id.slice(-6)),1)],64)):(a(),l(V,{key:1},[m(d(r._id),1)],64))],8,$7)):p("v-if",!0),r?._type==="repo"&&r?.source?.commit?(a(),l("span",{key:1,class:"commit-hash",title:r.source.commit},d(r.source.commit.substring(0,7)),9,U7)):p("v-if",!0),r?.conference?(a(),l("span",{key:2,class:"cell-conf conf-tag",title:"Conference: "+r.conference},[t[66]||(t[66]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),n("span",{class:"conf-name",textContent:d(r?.conference)},null,8,z7)],8,B7)):p("v-if",!0)])):p("v-if",!0)])]),n("div",H7,[n("div",j7,[n("div",G7,[n("span",{class:R(["status-dot","status-"+r?._statusKey]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:d(e.fmt?.statusLabel(r?.status))},null,8,W7),r?.status=="removed"?(a(),l(V,{key:0},[t[67]||(t[67]=n("span",{class:"seg-sep status-removed-sep","aria-hidden":"true"},"\xB7",-1)),n("button",{type:"button",class:"project-attention-action status-enable",onClick:de(f=>e.refreshItem(r),["stop"]),title:"Reviewers can no longer open this link"},"Enable again",8,K7)],64)):p("v-if",!0)]),r?.status=="error"&&r?.statusMessage?(a(),l("div",{key:0,class:"status-sub status-sub-error",textContent:d(e.fmt?.statusMsg(r?.statusMessage)),title:r?.statusMessage},null,8,Y7)):p("v-if",!0),r?._stale?(a(),l("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(r?.anonymizeDate||r?.lastView)},d(e.idleText(r)),9,J7)):p("v-if",!0),r.status==="error"&&r._editUrl?(a(),l("a",{key:2,class:"project-attention-action",href:e.safeUrl(r._editUrl)},"Fix source",8,X7)):p("v-if",!0),r._stale||r._broken?(a(),l("div",Q7,[r._stale&&!r._broken?(a(),l("span",Z7,[...t[68]||(t[68]=[m("May be stuck",-1),n("span",{"aria-hidden":"true"}," \xB7 ",-1)])])):p("v-if",!0),r._stale||r._broken?(a(),l("button",{key:1,type:"button",class:"project-attention-action",onClick:de(f=>e.showProjectDetails(r),["stop"]),"data-project-actions":r._broken?encodeURIComponent(r._type+":"+r._id):null,"aria-controls":r._broken?e.projectDetailsId(r):null,"aria-expanded":r._broken?e.selectedProject===r:null},d(r._broken?"Review details":"Check progress"),9,x7)):p("v-if",!0)])):p("v-if",!0),r?.status=="expired"?(a(),l("button",{key:4,type:"button",class:"project-attention-action",onClick:de(f=>e.extendItem(r),["stop"]),title:"Reviewers can no longer open this link"},"Extend 6 months",8,eU)):p("v-if",!0),r?.status=="removed"&&r?.anonymizeDate?(a(),l("div",tU,"anonymized Line truncated
anonymous_github`)])])])])]),p(" Limitations "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})]),m("Limitations ")]),n("div",{class:"panel-group",id:"faq-limitations",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingLimitation"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-limitations",href:"#limitation","aria-expanded":"false","aria-controls":"limitation"}," What are the limitations of Anonymous GitHub? ")])]),n("div",{id:"limitation",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingLimitation"},[n("div",{class:"panel-body p-3"},[n("ul",null,[n("li",null," Anonymous GitHub only anonymizes text-based files. Binary files (compiled executables, archives, etc.) are served as-is without anonymization. "),n("li",null," Files larger than 8 MB are not supported. "),n("li",null," Static site generators (such as Jekyll) used with GitHub Pages are not fully supported, although Markdown files are converted to HTML. "),n("li",null," The anonymization of terms within source code may change the behavior of the program (e.g., if a replaced term appears in a string literal or identifier). ")])])])])]),p(" Privacy and security "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})]),m("Privacy and security ")]),n("div",{class:"panel-group",id:"faq-privacy",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingData"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#data","aria-expanded":"false","aria-controls":"data"}," How is my data handled? ")])]),n("div",{id:"data",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingData"},[n("div",{class:"panel-body p-3"},[n("p",null," Repository data is used to provide the anonymization service. If you purchase a plan, Stripe processes payment and billing information. When a repository is removed or expires, only its configuration is retained. This makes it easy to restore the repository if needed and ensures that no future repository reuses the same ID. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPermissions"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#permissions","aria-expanded":"false","aria-controls":"permissions"}," Why does GitHub say Anonymous GitHub asks for write access? ")])]),n("div",{id:"permissions",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPermissions"},[n("div",{class:"panel-body p-3"},[n("p",null,[m("The GitHub App has read-only access to the repositories you choose. You can change repository access on your "),n("a",{href:"/connections"},"GitHub connections"),m(" page.")]),n("p",null,"Legacy GitHub OAuth includes write access to private repositories because GitHub's OAuth scopes do not offer a read-only option for them. Existing OAuth anonymizations and gists can still use this connection."),n("p",null,"Anonymous GitHub reads repository content. It never pushes, modifies, or deletes files on GitHub.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingViewer"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#viewer","aria-expanded":"false","aria-controls":"viewer"}," Can repository owners see who viewed their anonymized repository? ")])]),n("div",{id:"viewer",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingViewer"},[n("div",{class:"panel-body p-3"},[n("p",null," No. Only the total number of views is tracked as an incremental counter. It is not possible for the repository owner or for Anonymous GitHub to identify individual viewers. Reviewer anonymity is fully preserved. ")])])])]),p(" Self-hosting "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#project-icon-storage"})]),m("Self"),n("span",{class:"serif-hy"},"-"),m("hosting ")]),n("div",{class:"panel-group",id:"faq-hosting",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingDeploy"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-hosting",href:"#deploy","aria-expanded":"false","aria-controls":"deploy"}," Can I deploy my own instance? ")])]),n("div",{id:"deploy",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDeploy"},[n("div",{cla Line truncated
anonymized repository often think it is about the paper, so the