Spaces:
Running on Zero
Running on Zero
Revise French interface copy and show readable inline licence names
Browse filesRewrite French UI copy with verified sampling terminology, clear reuse conditions, translated error/progress messages and localized file sizes. Keep each licence name visible in metadata, with direct official links and one credits disclosure. TypeScript and 45 tests pass. Compiled UI validated in Chromium and WebKit at 1440, 1100, 390 and 320 px, in French and English, including licence disclosures, publication consent, language switches and basket synchronization. All 125 built files match the reviewed local build. No server, inference parameter, public asset metadata or licence-grant changes.
- docs/FRENCH-LOCALIZATION.md +28 -0
- frontend/dist/assets/Stage-CIy4vrXv.js +6 -0
- frontend/dist/assets/browser-oHHRjDMr.js +3 -0
- frontend/dist/assets/explore-DEJ9qBW-.js +0 -0
- frontend/dist/assets/main-CEchLPfe.js +0 -0
- frontend/dist/assets/main-CS0N2tqq.css +1 -0
- frontend/dist/assets/splat-engine-DqUovt5G.js +4 -0
- frontend/dist/assets/theme-BCCL3vyy.js +0 -0
- frontend/dist/assets/theme-PuNCyLrG.css +1 -0
- frontend/dist/assets/viewer-engine-JasH7Dxn.js +0 -0
- frontend/dist/assets/viewer-framing-MVFo3Fwa.js +1 -0
- frontend/dist/explore.html +4 -4
- frontend/dist/index.html +4 -4
- frontend/dist/terms-fr.html +1 -1
- frontend/public/terms-fr.html +1 -1
- frontend/scripts/label-share-check.mjs +12 -4
- frontend/scripts/licence-basket-check.mjs +13 -9
- frontend/src/AssetLicense.tsx +8 -23
- frontend/src/ManageAssets.tsx +9 -10
- frontend/src/PromptImage.tsx +1 -1
- frontend/src/Stage.tsx +4 -4
- frontend/src/asset-license.css +13 -17
- frontend/src/explorer/Basket.tsx +1 -1
- frontend/src/explorer/ObjectViewer.tsx +12 -12
- frontend/src/explorer/file-size.ts +4 -4
- frontend/src/i18n.ts +9 -0
- frontend/src/locales/fr.json +302 -145
- frontend/src/main.css +2 -0
- frontend/src/main.tsx +1 -1
- frontend/tests/i18n.test.mjs +31 -0
- reports/french-browser-qa.json +225 -0
- reports/french-localization-review.json +43 -0
docs/FRENCH-LOCALIZATION.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# French interface copy
|
| 2 |
+
|
| 3 |
+
Write native French UI copy from the actual action and technical meaning. Do not translate English word by word. Use « vous », short action labels and explicit, concise instructions. Keep contributor titles, descriptions, credits, prompts, licence IDs and filenames as supplied. This revision does not rewrite existing public contributions.
|
| 4 |
+
|
| 5 |
+
| Concept | French UI | Meaning |
|
| 6 |
+
| --- | --- | --- |
|
| 7 |
+
| Asset | Objet / objet 3D | A contribution; do not imply a polygon mesh. |
|
| 8 |
+
| Viewer | Vue 3D | Interactive rendering; a thumbnail is a rendered image. |
|
| 9 |
+
| Gaussian count | Nombre de gaussiennes | Number of Gaussian primitives, not image resolution or polygon count. |
|
| 10 |
+
| Steps | Pas d’échantillonnage | Sampling iterations. Wizard steps remain « étapes ». |
|
| 11 |
+
| Guidance | Guidage CFG | Strength of image conditioning. |
|
| 12 |
+
| Time shift | Time shift | Higher `rescale_t` allocates more sampling steps to high noise levels; unrelated to animation timing. |
|
| 13 |
+
| Seed | Seed | Initial random seed, to retain along with settings when reproducing a result. |
|
| 14 |
+
| Input image | Image source | The image used for generation. |
|
| 15 |
+
| Prompt | Prompt | Established generative-image term. |
|
| 16 |
+
| Tags | Mots-clés | Search metadata; stored normalized tags are unchanged. |
|
| 17 |
+
| Dataset | Dataset | The Hugging Face dataset repository. |
|
| 18 |
+
| Attribution | Citer l’auteur / crédits | Include the licence link and indicate modifications where required. |
|
| 19 |
+
| Share alike | Même licence | Explain the permitted compatible licence in the accompanying sentence. Never « partager à l’identique », which can suggest adaptations are forbidden. |
|
| 20 |
+
| Notices | Mentions de licence / mentions de la source | Preserve the actual copyright and NOTICE text. |
|
| 21 |
+
|
| 22 |
+
The IDOL SDK documents [sampling parameters](https://github.com/speridlabs/idol-sdk). Check this upstream source before changing parameter explanations. Licence summaries use [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/legalcode.fr), [CC0](https://creativecommons.org/publicdomain/zero/1.0/deed.fr), [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) and [MIT](https://opensource.org/license/mit); full licence texts remain authoritative.
|
| 23 |
+
|
| 24 |
+
Keep an immediately readable licence name beside object metadata. The balance icon accompanies the name. It is not a separate icon-only drawer. Contribution list cards display plain text, with no nested interactive control. Detail links go directly to the licence. A single disclosure contains explanatory notes, credits, previous grants and documents.
|
| 25 |
+
|
| 26 |
+
Use whole interpolated sentences for counts and confirmations. Distinguish singular object state (« Masqué ») from plural filter (« Masqués »). Preserve all interpolation placeholders. Decimal download sizes use o/ko/Mo/Go and French number formatting; binary limits use Mio (MiB in English). Touch instructions use pinching, mouse instructions use the wheel.
|
| 27 |
+
|
| 28 |
+
`frontend/tests/i18n.test.mjs` checks literal UI-key coverage, interpolation, live language switching for engine messages and file-size units. Browser scripts cover both languages, licence visibility, publication consent, mobile widths and basket behaviour with isolated API fixtures. They do not run inference or write to the public dataset.
|
frontend/dist/assets/Stage-CIy4vrXv.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{c as N,u as b,r as a,j as e,t,m as j,R,L as z,f as D}from"./theme-BCCL3vyy.js";import{createSplatEngine as k}from"./splat-engine-DqUovt5G.js";import"./three.module-Dsz2W9Sx.js";import"./model-cache-aNajTdW2.js";import"./splat-core-7xwxv_V5.js";import"./viewer-framing-MVFo3Fwa.js";/**
|
| 2 |
+
* @license lucide-react v0.468.0 - ISC
|
| 3 |
+
*
|
| 4 |
+
* This source code is licensed under the ISC license.
|
| 5 |
+
* See the LICENSE file in the root directory of this source tree.
|
| 6 |
+
*/const M=N("Expand",[["path",{d:"m21 21-6-6m6 6v-4.8m0 4.8h-4.8",key:"1c15vz"}],["path",{d:"M3 16.2V21m0 0h4.8M3 21l6-6",key:"1fsnz2"}],["path",{d:"M21 7.8V3m0 0h-4.8M21 3l-6 6",key:"hawz9i"}],["path",{d:"M3 7.8V3m0 0h4.8M3 3l6 6",key:"u9ee12"}]]);function I({result:i,active:o,onChooseAngle:d,label:y}){b();const l=a.useRef(null),r=a.useRef(null),[v,E]=a.useState("Loading 3D…"),[n,u]=a.useState(!1),[c,m]=a.useState(""),[w,S]=a.useState(0),[p,h]=a.useState(!1),[x,g]=a.useState("");return a.useEffect(()=>{if(u(!1),m(""),!!l.current){try{r.current=k(l.current,{...i,allowZoom:!0},E,()=>u(!0),s=>{m(s.message),u(!1)}),r.current.setVisible(o)}catch(s){m(String(s))}return()=>{var s;(s=r.current)==null||s.dispose(),r.current=null}}},[i.id,i.previewVersion??i.preview,w]),a.useEffect(()=>{var s;return(s=r.current)==null?void 0:s.setVisible(o)},[o]),e.jsxs("div",{className:"result-stage","data-ready":n,children:[e.jsx("div",{className:"result-watermark","aria-hidden":"true",children:"3D"}),!n&&e.jsx("img",{className:"stage-preview",src:i.preview,alt:t("Rendered preview of the 3D result")}),e.jsx("div",{className:"stage-canvas",ref:l,style:{opacity:n?1:0}}),e.jsxs("div",{className:"stage-topline",children:[e.jsx("span",{children:y||(i.example?t("Example result"):t("Your result"))}),e.jsx("button",{className:"plain-icon","aria-label":t("Expand 3D result"),onClick:()=>{var s,f;return(f=(s=l.current)==null?void 0:s.parentElement)==null?void 0:f.requestFullscreen()},children:e.jsx(M,{size:17})})]}),e.jsxs("div",{className:"stage-bottomline",role:"status",children:[e.jsx("span",{children:c?t("3D unavailable · Rendered preview"):n?t(matchMedia("(pointer: coarse)").matches?"Drag to rotate · Pinch to zoom":"Drag to rotate · Scroll to zoom"):j(v)}),c&&e.jsxs("button",{className:"quiet",onClick:()=>S(s=>s+1),children:[e.jsx(R,{size:14}),t("Retry 3D")]}),n&&d&&e.jsxs("button",{className:"angle-button",disabled:p,title:t("Render a transparent thumbnail from this angle; framing is fitted automatically"),onClick:async()=>{if(r.current){h(!0),g("");try{await d(r.current.getViewDirection())}catch(s){g(s instanceof Error?s.message:t("Please retry."))}finally{h(!1)}}},children:[p?e.jsx(z,{className:"spin",size:14}):e.jsx(D,{size:14}),t("Use this angle")]})]}),x&&e.jsx("p",{className:"angle-error",role:"alert",children:t(x)}),c&&e.jsxs("details",{className:"stage-error",children:[e.jsx("summary",{children:t("Preview details")}),e.jsx("p",{children:j(c)})]})]})}export{I as Stage};
|
frontend/dist/assets/browser-oHHRjDMr.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{_ as ye}from"./theme-BCCL3vyy.js";var Ze=Object.defineProperty,Oe=e=>{throw TypeError(e)},Ke=(e,n,t)=>n in e?Ze(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,u=(e,n,t)=>Ke(e,typeof n!="symbol"?n+"":n,t),qe=(e,n,t)=>n.has(e)||Oe("Cannot "+t),H=(e,n,t)=>(qe(e,n,"read from private field"),n.get(e)),Ye=(e,n,t)=>n.has(e)?Oe("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,t),Qe=(e,n,t,s)=>(qe(e,n,"write to private field"),n.set(e,t),t),ae=new Intl.Collator(0,{numeric:1}).compare;function Ce(e,n,t){return e=e.split("."),n=n.split("."),ae(e[0],n[0])||ae(e[1],n[1])||(n[2]=n.slice(2).join("."),t=/[.-]/.test(e[2]=e.slice(2).join(".")),t==/[.-]/.test(n[2])?ae(e[2],n[2]):t?-1:1)}const Xe="host",De="queue/data",et="queue/join",ve="upload",tt="login",K="config",nt="info",st="runtime",it="sleeptime",ot="heartbeat",at="component_server",rt="reset",ct="cancel",lt="app_id",ut="https://gradio-space-api-fetcher-v2.hf.space/api",Te="This application is currently busy. Please try again. ",W="Connection errored out. ",I="Could not resolve app config. ",dt="Could not get space status. ",pt="Could not get API info. ",de="Space metadata could not be loaded. ",ht="Invalid URL. A full URL path is required.",ft="Not authorized to access this space. ",Pe="Invalid credentials. Could not login. ",_t="Login credentials are required to access this space.",gt="File system access is only available in Node.js environments",Ne="Root URL not found in client config",mt="Error uploading file";function wt(e,n,t){return n.startsWith("http://")||n.startsWith("https://")?t?e:n:e+n}async function be(e,n,t){try{return(await(await fetch(`https://huggingface.co/api/spaces/${e}/jwt`,{headers:{Authorization:`Bearer ${n}`,...t?{Cookie:t}:{}}})).json()).token||!1}catch{return!1}}function yt(e){let n={};return e.forEach(({api_name:t,id:s})=>{t&&(n[t]=s)}),n}async function vt(e){const n=this.options.hf_token?{Authorization:`Bearer ${this.options.hf_token}`}:{};if(n["Content-Type"]="application/json",typeof window<"u"&&window.gradio_config&&location.origin!=="http://localhost:9876"){if(window.gradio_config.current_page&&(e=e.substring(0,e.lastIndexOf("/"))),window.gradio_config.dev_mode){let t=le(e,this.deep_link?K+"?deep_link="+this.deep_link:K);const s=await this.fetch(t,{headers:n,credentials:"include"}),i=await $e(s,e,!!this.options.auth);window.gradio_config={...i,current_page:window.gradio_config.current_page}}return window.gradio_config.root=e,{...window.gradio_config}}else if(e){let t=le(e,this.deep_link?K+"?deep_link="+this.deep_link:K);const s=await this.fetch(t,{headers:n,credentials:"include"});return $e(s,e,!!this.options.auth)}throw new Error(I)}async function $e(e,n,t){var s,i;if((e==null?void 0:e.status)===401&&!t){const a=await e.json(),o=(s=a==null?void 0:a.detail)==null?void 0:s.auth_message;throw new Error(o||_t)}else if((e==null?void 0:e.status)===401&&t)throw new Error(Pe);if((e==null?void 0:e.status)===200){let a=await e.json();return a.root=n,(i=a.dependencies)==null||i.forEach((o,r)=>{o.id===void 0&&(o.id=r)}),a}else if((e==null?void 0:e.status)===401)throw new Error(ft);throw new Error(I)}async function bt(){const{http_protocol:e,host:n}=await Y(this.app_reference,this.options.hf_token);try{if(this.options.auth){const t=await Ae(e,n,this.options.auth,this.fetch,this.options.hf_token);t&&this.set_cookies(t)}}catch(t){throw Error(t.message)}}async function Ae(e,n,t,s,i){const a=new FormData;a.append("username",t==null?void 0:t[0]),a.append("password",t==null?void 0:t[1]);let o={};i&&(o.Authorization=`Bearer ${i}`);const r=await s(`${e}//${n}/${tt}`,{headers:o,method:"POST",body:a,credentials:"include"});if(r.status===200)return r.headers.get("set-cookie");throw r.status===401?new Error(Pe):new Error(de)}function re(e){if(e.startsWith("http")){const{protocol:n,host:t,pathname:s}=new URL(e);return{ws_protocol:n==="https:"?"wss":"ws",http_protocol:n,host:t+(s!=="/"?s:"")}}return{ws_protocol:"wss",http_protocol:"https:",host:new URL(e).host}}const ze=e=>{let n=[];return e.split(/,(?=\s*[^\s=;]+=[^\s=;]+)/).forEach(t=>{const[s,i]=t.split(";")[0].split("=");s&&i&&n.push(`${s.trim()}=${i.trim()}`)}),n},pe=/^[a-zA-Z0-9_\-\.]+\/[a-zA-Z0-9_\-\.]+$/,$t=/.*hf\.space\/{0,1}.*$/;async function Y(e,n){const t={};n&&(t.Authorization=`Bearer ${n}`);const s=e.trim().replace(/\/$/,"");if(pe.test(s))try{const i=(await(await fetch(`https://huggingface.co/api/spaces/${s}/${Xe}`,{headers:t})).json()).host;return{space_id:e,...re(i)}}catch{throw new Error(de)}if($t.test(s)){const{ws_protocol:i,http_protocol:a,host:o}=re(s);return{space_id:o.split("/")[0].replace(".hf.space",""),ws_protocol:i,http_protocol:a,host:o}}return{space_id:!1,...re(s)}}const le=(...e)=>{try{return e.reduce((n,t)=>(n=n.replace(/\/+$/,""),t=t.replace(/^\/+/,""),new URL(t,n+"/").toString()))}catch{throw new Error(ht)}};function Et(e,n,t){const s={named_endpoints:{},unnamed_endpoints:{}};return Object.keys(e).forEach(i=>{(i==="named_endpoints"||i==="unnamed_endpoints")&&(s[i]={},Object.entries(e[i]).forEach(([a,{parameters:o,returns:r}])=>{var l,_,m,d;const g=((l=n.dependencies.find(c=>c.api_name===a||c.api_name===a.replace("/","")))==null?void 0:l.id)||t[a.replace("/","")]||-1,E=g!==-1?(_=n.dependencies.find(c=>c.id==g))==null?void 0:_.types:{generator:!1,cancel:!1};if(g!==-1&&((d=(m=n.dependencies.find(c=>c.id==g))==null?void 0:m.inputs)==null?void 0:d.length)!==o.length){const c=n.dependencies.find(f=>f.id==g).inputs.map(f=>{var C;return(C=n.components.find(N=>N.id===f))==null?void 0:C.type});try{c.forEach((f,C)=>{if(f==="state"){const N={component:"state",example:null,parameter_default:null,parameter_has_default:!0,parameter_name:null,hidden:!0};o.splice(C,0,N)}})}catch(f){console.error(f)}}const B=(c,f,C,N)=>({...c,description:St(c==null?void 0:c.type,C),type:kt(c==null?void 0:c.type,f,C,N)||""});s[i][a]={parameters:o.map(c=>B(c,c==null?void 0:c.component,c==null?void 0:c.serializer,"parameter")),returns:r.map(c=>B(c,c==null?void 0:c.component,c==null?void 0:c.serializer,"return")),type:E}}))}),s}function kt(e,n,t,s){if(n==="Api")return e.type;switch(e==null?void 0:e.type){case"string":return"string";case"boolean":return"boolean";case"number":return"number"}if(t==="JSONSerializable"||t==="StringSerializable")return"any";if(t==="ListStringSerializable")return"string[]";if(n==="Image")return s==="parameter"?"Blob | File | Buffer":"string";if(t==="FileSerializable")return(e==null?void 0:e.type)==="array"?s==="parameter"?"(Blob | File | Buffer)[]":"{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}[]":s==="parameter"?"Blob | File | Buffer":"{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}";if(t==="GallerySerializable")return s==="parameter"?"[(Blob | File | Buffer), (string | null)][]":"[{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}, (string | null))][]"}function St(e,n){return n==="GallerySerializable"?"array of [file, label] tuples":n==="ListStringSerializable"?"array of strings":n==="FileSerializable"?"array of files or single file":e==null?void 0:e.description}function ce(e,n){switch(e.msg){case"send_data":return{type:"data"};case"send_hash":return{type:"hash"};case"queue_full":return{type:"update",status:{queue:!0,message:Te,stage:"error",code:e.code,success:e.success}};case"heartbeat":return{type:"heartbeat"};case"unexpected_error":return{type:"unexpected_error",status:{queue:!0,message:e.message,session_not_found:e.session_not_found,stage:"error",success:!1}};case"broken_connection":return{type:"broken_connection",status:{queue:!0,message:e.message,stage:"error",success:!1}};case"estimation":return{type:"update",status:{queue:!0,stage:n||"pending",code:e.code,size:e.queue_size,position:e.rank,eta:e.rank_eta,success:e.success}};case"progress":return{type:"update",status:{queue:!0,stage:"pending",code:e.code,progress_data:e.progress_data,success:e.success}};case"log":return{type:"log",data:e};case"process_generating":return{type:"generating",status:{queue:!0,message:e.success?null:e.output.error,stage:e.success?"generating":"error",code:e.code,progress_data:e.progress_data,eta:e.average_duration,changed_state_ids:e.success?e.output.changed_state_ids:void 0},data:e.success?e.output:null};case"process_streaming":return{type:"streaming",status:{queue:!0,message:e.output.error,stage:"streaming",time_limit:e.time_limit,code:e.code,progress_data:e.progress_data,eta:e.eta},data:e.output};case"process_completed":return"error"in e.output?{type:"update",status:{queue:!0,title:e.output.title,message:e.output.error,visible:e.output.visible,duration:e.output.duration,stage:"error",code:e.code,success:e.success}}:{type:"complete",status:{queue:!0,message:e.success?void 0:e.output.error,stage:e.success?"complete":"error",code:e.code,progress_data:e.progress_data,changed_state_ids:e.success?e.output.changed_state_ids:void 0},data:e.success?e.output:null};case"process_starts":return{type:"update",status:{queue:!0,stage:"pending",code:e.code,size:e.rank,position:0,success:e.success,eta:e.eta},original_msg:"process_starts"}}return{type:"none",status:{stage:"error",queue:!0}}}const xt=(e=[],n)=>{const t=n?n.parameters:[];if(Array.isArray(e))return n&&t.length>0&&e.length>t.length&&console.warn("Too many arguments provided for the endpoint."),e;const s=[],i=Object.keys(e);return t.forEach((a,o)=>{if(e.hasOwnProperty(a.parameter_name))s[o]=e[a.parameter_name];else if(a.parameter_has_default)s[o]=a.parameter_default;else throw new Error(`No value provided for required parameter: ${a.parameter_name}`)}),i.forEach(a=>{if(!t.some(o=>o.parameter_name===a))throw new Error(`Parameter \`${a}\` is not a valid keyword argument. Please refer to the API for usage.`)}),s.forEach((a,o)=>{if(a===void 0&&!t[o].parameter_has_default)throw new Error(`No value provided for required parameter: ${t[o].parameter_name}`)}),s};async function jt(){if(this.api_info)return this.api_info;const{hf_token:e}=this.options,{config:n}=this,t={"Content-Type":"application/json"};if(e&&(t.Authorization=`Bearer ${e}`),!!n)try{let s,i;if(typeof window<"u"&&window.gradio_api_info)i=window.gradio_api_info;else{if(Ce((n==null?void 0:n.version)||"2.0.0","3.30")<0)s=await this.fetch(ut,{method:"POST",body:JSON.stringify({serialize:!1,config:JSON.stringify(n)}),headers:t,credentials:"include"});else{const a=le(n.root,this.api_prefix,nt);s=await this.fetch(a,{headers:t,credentials:"include"})}if(!s.ok)throw new Error(W);i=await s.json()}return"api"in i&&(i=i.api),i.named_endpoints["/predict"]&&!i.unnamed_endpoints[0]&&(i.unnamed_endpoints[0]=i.named_endpoints["/predict"]),Et(i,n,this.api_map)}catch(s){throw new Error("Could not get API info. "+s.message)}}async function Ot(e,n,t){var s;const i={};(s=this==null?void 0:this.options)!=null&&s.hf_token&&(i.Authorization=`Bearer ${this.options.hf_token}`);const a=1e3,o=[];let r;for(let l=0;l<n.length;l+=a){const _=n.slice(l,l+a),m=new FormData;_.forEach(g=>{m.append("files",g)});try{const g=t?`${e}${this.api_prefix}/${ve}?upload_id=${t}`:`${e}${this.api_prefix}/${ve}`;r=await this.fetch(g,{method:"POST",body:m,headers:i,credentials:"include"})}catch(g){throw new Error(W+g.message)}if(!r.ok){const g=await r.text();return{error:`HTTP ${r.status}: ${g}`}}const d=await r.json();d&&o.push(...d)}return{files:o}}async function qt(e,n,t,s){let i=(Array.isArray(e)?e:[e]).map(o=>o.blob);const a=i.filter(o=>o.size>(s??1/0));if(a.length)throw new Error(`File size exceeds the maximum allowed size of ${s} bytes: ${a.map(o=>o.name).join(", ")}`);return await Promise.all(await this.upload_files(n,i,t).then(async o=>{if(o.error)throw new Error(o.error);return o.files?o.files.map((r,l)=>new he({...e[l],path:r,url:`${n}${this.api_prefix}/file=${r}`})):[]}))}class he{constructor({path:n,url:t,orig_name:s,size:i,blob:a,is_stream:o,mime_type:r,alt_text:l,b64:_}){u(this,"path"),u(this,"url"),u(this,"orig_name"),u(this,"size"),u(this,"blob"),u(this,"is_stream"),u(this,"mime_type"),u(this,"alt_text"),u(this,"b64"),u(this,"meta",{_type:"gradio.FileData"}),this.path=n,this.url=t,this.orig_name=s,this.size=i,this.blob=t?void 0:a,this.is_stream=o,this.mime_type=r,this.alt_text=l,this.b64=_}}class Ct{constructor(n,t){u(this,"type"),u(this,"command"),u(this,"meta"),u(this,"fileData"),this.type="command",this.command=n,this.meta=t}}typeof process<"u"&&process.versions&&process.versions.node;function Ee(e,n,t){for(;t.length>1;){const i=t.shift();if(typeof i=="string"||typeof i=="number")e=e[i];else throw new Error("Invalid key type")}const s=t.shift();if(typeof s=="string"||typeof s=="number")e[s]=n;else throw new Error("Invalid key type")}async function ue(e,n=void 0,t=[],s=!1,i=void 0){if(Array.isArray(e)){let a=[];return await Promise.all(e.map(async(o,r)=>{var l;let _=t.slice();_.push(String(r));const m=await ue(e[r],s?((l=i==null?void 0:i.parameters[r])==null?void 0:l.component)||void 0:n,_,!1,i);a=a.concat(m)})),a}else{if(globalThis.Buffer&&e instanceof globalThis.Buffer||e instanceof Blob)return[{path:t,blob:new Blob([e]),type:n}];if(typeof e=="object"&&e!==null){let a=[];for(const o of Object.keys(e)){const r=[...t,o],l=e[o];a=a.concat(await ue(l,void 0,r,!1,i))}return a}}return[]}function Dt(e,n){var t,s;let i=(s=(t=n==null?void 0:n.dependencies)==null?void 0:t.find(a=>a.id==e))==null?void 0:s.queue;return i!=null?!i:!n.enable_queue}function Tt(e,n){return new Promise((t,s)=>{const i=new MessageChannel;i.port1.onmessage=({data:a})=>{i.port1.close(),t(a)},window.parent.postMessage(e,n,[i.port2])})}function V(e,n,t,s,i=!1){if(s==="input"&&!i)throw new Error("Invalid code path. Cannot skip state inputs for input.");if(s==="output"&&i)return e;let a=[],o=0;const r=s==="input"?n.inputs:n.outputs;for(let l=0;l<r.length;l++){const _=r[l],m=t.find(d=>d.id===_);if((m==null?void 0:m.type)==="state"){if(i)if(e.length===r.length){const d=e[o];a.push(d),o++}else a.push(null);else{o++;continue}continue}else{const d=e[o];a.push(d),o++}}return a}async function Pt(e,n,t){const s=this;await Nt(s,n);const i=await ue(n,void 0,[],!0,t);return(await Promise.all(i.map(async({path:a,blob:o,type:r})=>{if(!o)return{path:a,type:r};const l=await s.upload_files(e,[o]),_=l.files&&l.files[0];return{path:a,file_url:_,type:r,name:typeof File<"u"&&o instanceof File?o==null?void 0:o.name:void 0}}))).forEach(({path:a,file_url:o,type:r,name:l})=>{if(r==="Gallery")Ee(n,o,a);else if(o){const _=new he({path:o,orig_name:l});Ee(n,_,a)}}),n}async function Nt(e,n){var t,s;if(!((t=e.config)!=null&&t.root||(s=e.config)!=null&&s.root_url))throw new Error(Ne);await Le(e,n)}async function Le(e,n,t=[]){for(const s in n)n[s]instanceof Ct?await At(e,n,s):typeof n[s]=="object"&&n[s]!==null&&await Le(e,n[s],[...t,s])}async function At(e,n,t){var s,i;let a=n[t];const o=((s=e.config)==null?void 0:s.root)||((i=e.config)==null?void 0:i.root_url);if(!o)throw new Error(Ne);try{let r,l;if(typeof process<"u"&&process.versions&&process.versions.node){const g=await ye(()=>import("./__vite-browser-external-DYxpcVy9-BIHI7g3E.js"),[]);l=(await ye(async()=>{const{resolve:E}=await import("./__vite-browser-external-DYxpcVy9-BIHI7g3E.js");return{resolve:E}},[])).resolve(process.cwd(),a.meta.path),r=await g.readFile(l)}else throw new Error(gt);const _=new Blob([r],{type:"application/octet-stream"}),m=await e.upload_files(o,[_]),d=m.files&&m.files[0];if(d){const g=new he({path:d,orig_name:a.meta.name||""});n[t]=g}}catch(r){console.error(mt,r)}}async function zt(e,n,t){const s={"Content-Type":"application/json"};this.options.hf_token&&(s.Authorization=`Bearer ${this.options.hf_token}`);try{var i=await this.fetch(e,{method:"POST",body:JSON.stringify(n),headers:{...s,...t},credentials:"include"})}catch{return[{error:W},500]}let a,o;try{a=await i.json(),o=i.status}catch(r){a={error:`Could not parse server response: ${r}`},o=500}return[a,o]}async function Lt(e,n={}){let t=!1,s=!1;if(!this.config)throw new Error("Could not resolve app config");if(typeof e=="number")this.config.dependencies.find(i=>i.id==e);else{const i=e.replace(/^\//,"");this.config.dependencies.find(a=>a.id==this.api_map[i])}return new Promise(async(i,a)=>{const o=this.submit(e,n,null,null,!0);let r;for await(const l of o)l.type==="data"&&(s&&i(r),t=!0,r=l),l.type==="status"&&(l.stage==="error"&&a(l),l.stage==="complete"&&(s=!0,t&&i(r)))})}async function Z(e,n,t){let s=n==="subdomain"?`https://huggingface.co/api/spaces/by-subdomain/${e}`:`https://huggingface.co/api/spaces/${e}`,i,a;try{if(i=await fetch(s),a=i.status,a!==200)throw new Error;i=await i.json()}catch{t({status:"error",load_status:"error",message:dt,detail:"NOT_FOUND"});return}if(!i||a!==200)return;const{runtime:{stage:o},id:r}=i;switch(o){case"STOPPED":case"SLEEPING":t({status:"sleeping",load_status:"pending",message:"Space is asleep. Waking it up...",detail:o}),setTimeout(()=>{Z(e,n,t)},1e3);break;case"PAUSED":t({status:"paused",load_status:"error",message:"This space has been paused by the author. If you would like to try this demo, consider duplicating the space.",detail:o,discussions_enabled:await ke(r)});break;case"RUNNING":case"RUNNING_BUILDING":t({status:"running",load_status:"complete",message:"Space is running.",detail:o});break;case"BUILDING":t({status:"building",load_status:"pending",message:"Space is building...",detail:o}),setTimeout(()=>{Z(e,n,t)},1e3);break;case"APP_STARTING":t({status:"starting",load_status:"pending",message:"Space is starting...",detail:o}),setTimeout(()=>{Z(e,n,t)},1e3);break;default:t({status:"space_error",load_status:"error",message:"This space is experiencing an issue.",detail:o,discussions_enabled:await ke(r)});break}}const Ie=async(e,n)=>{let t=0;const s=12,i=5e3;return new Promise(a=>{Z(e,pe.test(e)?"space_name":"subdomain",o=>{n(o),o.status==="running"||o.status==="error"||o.status==="paused"||o.status==="space_error"?a():(o.status==="sleeping"||o.status==="building")&&(t<s?(t++,setTimeout(()=>{Ie(e,n).then(a)},i)):a())})})},It=/^(?=[^]*\b[dD]iscussions{0,1}\b)(?=[^]*\b[dD]isabled\b)[^]*$/;async function ke(e){try{const n=await fetch(`https://huggingface.co/api/spaces/${e}/discussions`,{method:"HEAD"}),t=n.headers.get("x-error-message");return!(!n.ok||t&&It.test(t))}catch{return!1}}async function Bt(e,n){const t={};n&&(t.Authorization=`Bearer ${n}`);try{const s=await fetch(`https://huggingface.co/api/spaces/${e}/${st}`,{headers:t});if(s.status!==200)throw new Error("Space hardware could not be obtained.");const{hardware:i}=await s.json();return i.current}catch(s){throw new Error(s.message)}}async function Ut(e,n,t){const s={};t&&(s.Authorization=`Bearer ${t}`);const i={seconds:n};try{const a=await fetch(`https://huggingface.co/api/spaces/${e}/${it}`,{method:"POST",headers:{"Content-Type":"application/json",...s},body:JSON.stringify(i)});if(a.status!==200)throw new Error("Could not set sleep timeout on duplicated Space. Please visit *ADD HF LINK TO SETTINGS* to set a timeout manually to reduce billing charges.");return await a.json()}catch(a){throw new Error(a.message)}}const Se=["cpu-basic","cpu-upgrade","cpu-xl","t4-small","t4-medium","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","zero-a10g","h100","h100x8"];async function Rt(e,n){const{hf_token:t,private:s,hardware:i,timeout:a,auth:o}=n;if(i&&!Se.includes(i))throw new Error(`Invalid hardware type provided. Valid types are: ${Se.map(f=>`"${f}"`).join(",")}.`);const{http_protocol:r,host:l}=await Y(e,t);let _=null;if(o){const f=await Ae(r,l,o,fetch);f&&(_=ze(f))}const m={Authorization:`Bearer ${t}`,"Content-Type":"application/json",..._?{Cookie:_.join("; ")}:{}},d=(await(await fetch("https://huggingface.co/api/whoami-v2",{headers:m})).json()).name,g=e.split("/")[1],E={repository:`${d}/${g}`};s&&(E.private=!0);let B;try{i||(B=await Bt(e,t))}catch(f){throw Error(de+f.message)}const c=i||B||"cpu-basic";E.hardware=c;try{const f=await fetch(`https://huggingface.co/api/spaces/${e}/duplicate`,{method:"POST",headers:m,body:JSON.stringify(E)});if(f.status===409)try{return await je.connect(`${d}/${g}`,n)}catch(N){throw console.error("Failed to connect Client instance:",N),N}else if(f.status!==200)throw new Error(f.statusText);const C=await f.json();return await Ut(`${d}/${g}`,a||300,t),await je.connect(Ft(C.url),n)}catch(f){throw new Error(f)}}function Ft(e){const n=/https:\/\/huggingface.co\/spaces\/([^/]+\/[^/]+)/,t=e.match(n);if(t)return t[1]}var L;class Jt extends TransformStream{constructor(n={allowCR:!1}){super({transform:(t,s)=>{for(t=H(this,L)+t;;){const i=t.indexOf(`
|
| 2 |
+
`),a=n.allowCR?t.indexOf("\r"):-1;if(a!==-1&&a!==t.length-1&&(i===-1||i-1>a)){s.enqueue(t.slice(0,a)),t=t.slice(a+1);continue}if(i===-1)break;const o=t[i-1]==="\r"?i-1:i;s.enqueue(t.slice(0,o)),t=t.slice(i+1)}Qe(this,L,t)},flush:t=>{if(H(this,L)==="")return;const s=n.allowCR&&H(this,L).endsWith("\r")?H(this,L).slice(0,-1):H(this,L);t.enqueue(s)}}),Ye(this,L,"")}}L=new WeakMap;function Wt(e){let n=new TextDecoderStream,t=new Jt({allowCR:!0});return e.pipeThrough(n).pipeThrough(t)}function Gt(e){let n=/[:]\s*/.exec(e),t=n&&n.index;if(t)return[e.substring(0,t),e.substring(t+n[0].length)]}function xe(e,n,t){e.get(n)||e.set(n,t)}async function*Mt(e,n){if(!e.body)return;let t=Wt(e.body),s,i=t.getReader(),a;for(;;){if(n&&n.aborted)return i.cancel();if(s=await i.read(),s.done)return;if(!s.value){a&&(yield a),a=void 0;continue}let[o,r]=Gt(s.value)||[];o&&(o==="data"?(a||(a={}),a[o]=a[o]?a[o]+`
|
| 3 |
+
`+r:r):o==="event"?(a||(a={}),a[o]=r):o==="id"?(a||(a={}),a[o]=+r||r):o==="retry"&&(a||(a={}),a[o]=+r||void 0))}}async function Ht(e,n){let t=new Request(e,n);xe(t.headers,"Accept","text/event-stream"),xe(t.headers,"Content-Type","application/json");let s=await fetch(t);if(!s.ok)throw s;return Mt(s,t.signal)}async function Vt(){let{event_callbacks:e,unclosed_events:n,pending_stream_messages:t,stream_status:s,config:i,jwt:a}=this;const o=this;if(!i)throw new Error("Could not resolve app config");s.open=!0;let r=null,l=new URLSearchParams({session_hash:this.session_hash}).toString(),_=new URL(`${i.root}${this.api_prefix}/${De}?${l}`);if(a&&_.searchParams.set("__sign",a),r=this.stream(_),!r){console.warn("Cannot connect to SSE endpoint: "+_.toString());return}r.onmessage=async function(m){let d=JSON.parse(m.data);if(d.msg==="close_stream"){fe(s,o.abort_controller);return}const g=d.event_id;if(!g)await Promise.all(Object.keys(e).map(E=>e[E](d)));else if(e[g]&&i){d.msg==="process_completed"&&["sse","sse_v1","sse_v2","sse_v2.1","sse_v3"].includes(i.protocol)&&n.delete(g);let E=e[g];typeof window<"u"&&typeof document<"u"?setTimeout(E,0,d):E(d)}else t[g]||(t[g]=[]),t[g].push(d)},r.onerror=async function(m){console.error(m),await Promise.all(Object.keys(e).map(d=>e[d]({msg:"broken_connection",message:W})))}}function fe(e,n){e&&(e.open=!1,n==null||n.abort())}function Zt(e,n,t){e[n]?t.data.forEach((s,i)=>{let a=Kt(e[n][i],s);e[n][i]=a,t.data[i]=a}):(e[n]=[],t.data.forEach((s,i)=>{e[n][i]=s}))}function Kt(e,n){return n.forEach(([t,s,i])=>{e=Yt(e,s,t,i)}),e}function Yt(e,n,t,s){if(n.length===0){if(t==="replace")return s;if(t==="append")return e+s;throw new Error(`Unsupported action: ${t}`)}let i=e;for(let o=0;o<n.length-1;o++)i=i[n[o]];const a=n[n.length-1];switch(t){case"replace":i[a]=s;break;case"append":i[a]+=s;break;case"add":Array.isArray(i)?i.splice(Number(a),0,s):i[a]=s;break;case"delete":Array.isArray(i)?i.splice(Number(a),1):delete i[a];break;default:throw new Error(`Unknown action: ${t}`)}return e}function Qt(e,n={}){const t={close:()=>{console.warn("Method not implemented.")},onerror:null,onmessage:null,onopen:null,readyState:0,url:e.toString(),withCredentials:!1,CONNECTING:0,OPEN:1,CLOSED:2,addEventListener:()=>{throw new Error("Method not implemented.")},dispatchEvent:()=>{throw new Error("Method not implemented.")},removeEventListener:()=>{throw new Error("Method not implemented.")}};return Ht(e,n).then(async s=>{t.readyState=t.OPEN;try{for await(const i of s)t.onmessage&&t.onmessage(i);t.readyState=t.CLOSED}catch(i){t.onerror&&t.onerror(i),t.readyState=t.CLOSED}}).catch(s=>{console.error(s),t.onerror&&t.onerror(s),t.readyState=t.CLOSED}),t}function Xt(e,n={},t,s,i){var a;try{let o=function(w){(i||Je[w.type])&&m(w)},r=function(){for(Me=!0;M.length>0;)M.shift()({value:void 0,done:!0})},l=function(w){M.length>0?M.shift()(w):ie.push(w)},_=function(w){l(en(w)),r()},m=function(w){l({value:w,done:!1})},d=function(){return ie.length>0?Promise.resolve(ie.shift()):new Promise(w=>M.push(w))};const{hf_token:g}=this.options,{fetch:E,app_reference:B,config:c,session_hash:f,api_info:C,api_map:N,stream_status:Q,pending_stream_messages:X,pending_diff_streams:ee,event_callbacks:te,unclosed_events:Be,post_data:ne,options:R,api_prefix:F}=this,Ue=this;if(!C)throw new Error("No API found");if(!c)throw new Error("Could not resolve app config");let{fn_index:p,endpoint_info:_e,dependency:J}=tn(C,e,N,c),Re=xt(n,_e),q,A,z=c.protocol??"ws",ge="",Fe=()=>ge;const h=typeof e=="number"?"/predict":e;let G,k=null,D=!1,se={},U=typeof window<"u"&&typeof document<"u"?new URLSearchParams(window.location.search).toString():"";const Je=((a=R==null?void 0:R.events)==null?void 0:a.reduce((w,T)=>(w[T]=!0,w),{}))||{};async function We(){let w={},T={};z==="ws"?(q&&q.readyState===0?q.addEventListener("open",()=>{q.close()}):q.close(),w={fn_index:p,session_hash:f}):(w={event_id:k},T={event_id:k,session_hash:f,fn_index:p});try{if(!c)throw new Error("Could not resolve app config");"event_id"in T&&await E(`${c.root}${F}/${ct}`,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(T)}),await E(`${c.root}${F}/${rt}`,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(w)})}catch{console.warn("The `/reset` endpoint could not be called. Subsequent endpoint results may be unreliable.")}}const Ge=async w=>{await this._resolve_heartbeat(w)};async function me(w){if(!c)return;let T=w.render_id;c.components=[...c.components.filter(S=>S.props.rendered_in!==T),...w.components],c.dependencies=[...c.dependencies.filter(S=>S.rendered_in!==T),...w.dependencies];const oe=c.components.some(S=>S.type==="state"),b=c.dependencies.some(S=>S.targets.some(x=>x[1]==="unload"));c.connect_heartbeat=oe||b,await Ge(c),o({type:"render",data:w,endpoint:h,fn_index:p})}this.handle_blob(c.root,Re,_e).then(async w=>{var T;if(G={data:V(w,J,c.components,"input",!0)||[],event_data:t,fn_index:p,trigger_id:s},Dt(p,c))o({type:"status",endpoint:h,stage:"pending",queue:!1,fn_index:p,time:new Date}),ne(`${c.root}${F}/run${h.startsWith("/")?h:`/${h}`}${U?"?"+U:""}`,{...G,session_hash:f}).then(([b,S])=>{const x=b.data;S==200?(o({type:"data",endpoint:h,fn_index:p,data:V(x,J,c.components,"output",R.with_null_state),time:new Date,event_data:t,trigger_id:s}),b.render_config&&me(b.render_config),o({type:"status",endpoint:h,fn_index:p,stage:"complete",eta:b.average_duration,queue:!1,time:new Date})):o({type:"status",stage:"error",endpoint:h,fn_index:p,message:b.error,queue:!1,time:new Date})}).catch(b=>{o({type:"status",stage:"error",message:b.message,endpoint:h,fn_index:p,queue:!1,time:new Date})});else if(z=="ws"){const{ws_protocol:b,host:S}=await Y(B,g);o({type:"status",stage:"pending",queue:!0,endpoint:h,fn_index:p,time:new Date});let x=new URL(`${b}://${wt(S,c.root,!0)}/queue/join${U?"?"+U:""}`);this.jwt&&x.searchParams.set("__sign",this.jwt),q=new WebSocket(x),q.onclose=j=>{j.wasClean||o({type:"status",stage:"error",broken:!0,message:W,queue:!0,endpoint:h,fn_index:p,time:new Date})},q.onmessage=function(j){const O=JSON.parse(j.data),{type:$,status:v,data:y}=ce(O,se[p]);if($==="update"&&v&&!D)o({type:"status",endpoint:h,fn_index:p,time:new Date,...v}),v.stage==="error"&&q.close();else if($==="hash"){q.send(JSON.stringify({fn_index:p,session_hash:f}));return}else $==="data"?q.send(JSON.stringify({...G,session_hash:f})):$==="complete"?D=v:$==="log"?o({type:"log",title:y.title,log:y.log,level:y.level,endpoint:h,duration:y.duration,visible:y.visible,fn_index:p}):$==="generating"&&o({type:"status",time:new Date,...v,stage:v==null?void 0:v.stage,queue:!0,endpoint:h,fn_index:p});y&&(o({type:"data",time:new Date,data:V(y.data,J,c.components,"output",R.with_null_state),endpoint:h,fn_index:p,event_data:t,trigger_id:s}),D&&(o({type:"status",time:new Date,...D,stage:v==null?void 0:v.stage,queue:!0,endpoint:h,fn_index:p}),q.close()))},Ce(c.version||"2.0.0","3.6")<0&&addEventListener("open",()=>q.send(JSON.stringify({hash:f})))}else if(z=="sse"){o({type:"status",stage:"pending",queue:!0,endpoint:h,fn_index:p,time:new Date});var oe=new URLSearchParams({fn_index:p.toString(),session_hash:f}).toString();let b=new URL(`${c.root}${F}/${De}?${U?U+"&":""}${oe}`);if(this.jwt&&b.searchParams.set("__sign",this.jwt),A=this.stream(b),!A)return Promise.reject(new Error("Cannot connect to SSE endpoint: "+b.toString()));A.onmessage=async function(S){const x=JSON.parse(S.data),{type:j,status:O,data:$}=ce(x,se[p]);if(j==="update"&&O&&!D)o({type:"status",endpoint:h,fn_index:p,time:new Date,...O}),O.stage==="error"&&(A==null||A.close(),r());else if(j==="data"){let[v,y]=await ne(`${c.root}${F}/queue/data`,{...G,session_hash:f,event_id:k});y!==200&&(o({type:"status",stage:"error",message:W,queue:!0,endpoint:h,fn_index:p,time:new Date}),A==null||A.close(),r())}else j==="complete"?D=O:j==="log"?o({type:"log",title:$.title,log:$.log,level:$.level,endpoint:h,duration:$.duration,visible:$.visible,fn_index:p}):(j==="generating"||j==="streaming")&&o({type:"status",time:new Date,...O,stage:O==null?void 0:O.stage,queue:!0,endpoint:h,fn_index:p});$&&(o({type:"data",time:new Date,data:V($.data,J,c.components,"output",R.with_null_state),endpoint:h,fn_index:p,event_data:t,trigger_id:s}),D&&(o({type:"status",time:new Date,...D,stage:O==null?void 0:O.stage,queue:!0,endpoint:h,fn_index:p}),A==null||A.close(),r()))}}else if(z=="sse_v1"||z=="sse_v2"||z=="sse_v2.1"||z=="sse_v3"){o({type:"status",stage:"pending",queue:!0,endpoint:h,fn_index:p,time:new Date});let b="";typeof window<"u"&&typeof document<"u"&&(b=(T=window==null?void 0:window.location)==null?void 0:T.hostname);const S=b.includes(".dev.")?`https://moon-${b.split(".")[1]}.dev.spaces.huggingface.tech`:"https://huggingface.co";(typeof window<"u"&&typeof document<"u"&&window.parent!=window&&window.supports_zerogpu_headers?Tt("zerogpu-headers",S):Promise.resolve(null)).then(x=>ne(`${c.root}${F}/${et}?${U}`,{...G,session_hash:f},x)).then(async([x,j])=>{if(j===503)o({type:"status",stage:"error",message:Te,queue:!0,endpoint:h,fn_index:p,time:new Date});else if(j===422)o({type:"status",stage:"error",message:x.detail,queue:!0,endpoint:h,fn_index:p,code:"validation_error",time:new Date}),r();else if(j!==200)o({type:"status",stage:"error",broken:!1,message:x.detail,queue:!0,endpoint:h,fn_index:p,time:new Date});else{k=x.event_id,ge=k;let O=async function($){try{const{type:v,status:y,data:P,original_msg:He}=ce($,se[p]);if(v=="heartbeat")return;if(v==="update"&&y&&!D)o({type:"status",endpoint:h,fn_index:p,time:new Date,original_msg:He,...y});else if(v==="complete")D=y;else if(v=="unexpected_error"||v=="broken_connection"){console.error("Unexpected error",y==null?void 0:y.message);const Ve=v==="broken_connection";o({type:"status",stage:"error",message:(y==null?void 0:y.message)||"An Unexpected Error Occurred!",queue:!0,endpoint:h,broken:Ve,session_not_found:y==null?void 0:y.session_not_found,fn_index:p,time:new Date})}else if(v==="log"){o({type:"log",title:P.title,log:P.log,level:P.level,endpoint:h,duration:P.duration,visible:P.visible,fn_index:p});return}else(v==="generating"||v==="streaming")&&(o({type:"status",time:new Date,...y,stage:y==null?void 0:y.stage,queue:!0,endpoint:h,fn_index:p}),P&&J.connection!=="stream"&&["sse_v2","sse_v2.1","sse_v3"].includes(z)&&Zt(ee,k,P));P&&(o({type:"data",time:new Date,data:V(P.data,J,c.components,"output",R.with_null_state),endpoint:h,fn_index:p}),P.render_config&&await me(P.render_config),D&&(o({type:"status",time:new Date,...D,stage:y==null?void 0:y.stage,queue:!0,endpoint:h,fn_index:p}),r())),((y==null?void 0:y.stage)==="complete"||(y==null?void 0:y.stage)==="error")&&(te[k]&&delete te[k],k in ee&&delete ee[k])}catch(v){console.error("Unexpected client exception",v),o({type:"status",stage:"error",message:"An Unexpected Error Occurred!",queue:!0,endpoint:h,fn_index:p,time:new Date}),["sse_v2","sse_v2.1","sse_v3"].includes(z)&&(fe(Q,Ue.abort_controller),Q.open=!1,r())}};k in X&&(X[k].forEach($=>O($)),delete X[k]),te[k]=O,Be.add(k),Q.open||await this.open_stream()}})}});let Me=!1;const ie=[],M=[],we={[Symbol.asyncIterator]:()=>we,next:d,throw:async w=>(_(w),d()),return:async()=>(r(),d()),cancel:We,event_id:Fe};return we}catch(o){throw console.error("Submit function encountered an error:",o),o}}function en(e){return{then:(n,t)=>t(e)}}function tn(e,n,t,s){let i,a,o;if(typeof n=="number")i=n,a=e.unnamed_endpoints[i],o=s.dependencies.find(r=>r.id==n);else{const r=n.replace(/^\//,"");i=t[r],a=e.named_endpoints[n.trim()],o=s.dependencies.find(l=>l.id==t[r])}if(typeof i!="number")throw new Error("There is no endpoint matching that name of fn_index matching that number.");return{fn_index:i,endpoint_info:a,dependency:o}}class je{constructor(n,t={events:["data"]}){u(this,"app_reference"),u(this,"options"),u(this,"deep_link",null),u(this,"config"),u(this,"api_prefix",""),u(this,"api_info"),u(this,"api_map",{}),u(this,"session_hash",Math.random().toString(36).substring(2)),u(this,"jwt",!1),u(this,"last_status",{}),u(this,"cookies",null),u(this,"stream_status",{open:!1}),u(this,"closed",!1),u(this,"pending_stream_messages",{}),u(this,"pending_diff_streams",{}),u(this,"event_callbacks",{}),u(this,"unclosed_events",new Set),u(this,"heartbeat_event",null),u(this,"abort_controller",null),u(this,"stream_instance",null),u(this,"current_payload"),u(this,"ws_map",{}),u(this,"view_api"),u(this,"upload_files"),u(this,"upload"),u(this,"handle_blob"),u(this,"post_data"),u(this,"submit"),u(this,"predict"),u(this,"open_stream"),u(this,"resolve_config"),u(this,"resolve_cookies");var s;this.app_reference=n,this.deep_link=((s=t.query_params)==null?void 0:s.deep_link)||null,t.events||(t.events=["data"]),this.options=t,this.current_payload={},this.view_api=jt.bind(this),this.upload_files=Ot.bind(this),this.handle_blob=Pt.bind(this),this.post_data=zt.bind(this),this.submit=Xt.bind(this),this.predict=Lt.bind(this),this.open_stream=Vt.bind(this),this.resolve_config=vt.bind(this),this.resolve_cookies=bt.bind(this),this.upload=qt.bind(this),this.fetch=this.fetch.bind(this),this.handle_space_success=this.handle_space_success.bind(this),this.stream=this.stream.bind(this)}get_url_config(n=null){if(!this.config)throw new Error(I);n===null&&(n=window.location.href);const t=o=>o.replace(/^\/+|\/+$/g,"");let s=t(new URL(this.config.root).pathname),i=t(new URL(n).pathname),a;return i.startsWith(s)?a=t(i.substring(s.length)):a="",this.get_page_config(a)}get_page_config(n){if(!this.config)throw new Error(I);let t=this.config;return n in t.page||(n=""),{...t,current_page:n,layout:t.page[n].layout,components:t.components.filter(s=>t.page[n].components.includes(s.id)),dependencies:this.config.dependencies.filter(s=>t.page[n].dependencies.includes(s.id))}}fetch(n,t){const s=new Headers((t==null?void 0:t.headers)||{});if(this&&this.cookies&&s.append("Cookie",this.cookies),this&&this.options.headers)for(const i in this.options.headers)s.append(i,this.options.headers[i]);return fetch(n,{...t,headers:s})}stream(n){const t=new Headers;if(this&&this.cookies&&t.append("Cookie",this.cookies),this&&this.options.headers)for(const s in this.options.headers)t.append(s,this.options.headers[s]);return this&&this.options.hf_token&&t.append("Authorization",`Bearer ${this.options.hf_token}`),this.abort_controller=new AbortController,this.stream_instance=Qt(n.toString(),{credentials:"include",headers:t,signal:this.abort_controller.signal}),this.stream_instance}async init(){var n;this.options.auth&&await this.resolve_cookies(),await this._resolve_config().then(({config:t})=>this._resolve_heartbeat(t)),this.api_info=await this.view_api(),this.api_map=yt(((n=this.config)==null?void 0:n.dependencies)||[])}async _resolve_heartbeat(n){if(n&&(this.config=n,this.api_prefix=n.api_prefix||"",this.config&&this.config.connect_heartbeat&&this.config.space_id&&this.options.hf_token&&(this.jwt=await be(this.config.space_id,this.options.hf_token,this.cookies))),n.space_id&&this.options.hf_token&&(this.jwt=await be(n.space_id,this.options.hf_token)),this.config&&this.config.connect_heartbeat){const t=new URL(`${this.config.root}${this.api_prefix}/${ot}/${this.session_hash}`);this.jwt&&t.searchParams.set("__sign",this.jwt),this.heartbeat_event||(this.heartbeat_event=this.stream(t))}}static async connect(n,t={events:["data"]}){const s=new this(n,t);return t.session_hash&&(s.session_hash=t.session_hash),await s.init(),s}async reconnect(){const n=new URL(`${this.config.root}${this.api_prefix}/${lt}`);let t;try{const s=await this.fetch(n);if(!s.ok)throw new Error;t=(await s.json()).app_id}catch{return"broken"}return t!==this.config.app_id?"changed":"connected"}close(){this.closed=!0,fe(this.stream_status,this.abort_controller)}set_current_payload(n){this.current_payload=n}static async duplicate(n,t={events:["data"]}){return Rt(n,t)}async _resolve_config(){const{http_protocol:n,host:t,space_id:s}=await Y(this.app_reference,this.options.hf_token),{status_callback:i}=this.options;s&&i&&await Ie(s,i);let a;try{let o=`${n}//${t}`;if(a=await this.resolve_config(o),!a)throw new Error(I);return this.config_success(a)}catch(o){if(s&&i)Z(s,pe.test(s)?"space_name":"subdomain",this.handle_space_success);else throw i&&i({status:"error",message:"Could not load this space.",load_status:"error",detail:"NOT_FOUND"}),Error(o)}}async config_success(n){if(this.config=n,this.api_prefix=n.api_prefix||"",this.config.auth_required)return this.prepare_return_obj();try{this.api_info=await this.view_api()}catch(t){console.error(pt+t.message)}return this.prepare_return_obj()}async handle_space_success(n){var t;if(!this)throw new Error(I);const{status_callback:s}=this.options;if(s&&s(n),n.status==="running")try{if(this.config=await this._resolve_config(),this.api_prefix=((t=this==null?void 0:this.config)==null?void 0:t.api_prefix)||"",!this.config)throw new Error(I);return await this.config_success(this.config)}catch(i){throw s&&s({status:"error",message:"Could not load this space.",load_status:"error",detail:"NOT_FOUND"}),i}}async component_server(n,t,s){var i;if(!this.config)throw new Error(I);const a={},{hf_token:o}=this.options,{session_hash:r}=this;o&&(a.Authorization=`Bearer ${this.options.hf_token}`);let l,_=this.config.components.find(d=>d.id===n);(i=_==null?void 0:_.props)!=null&&i.root_url?l=_.props.root_url:l=this.config.root;let m;if("binary"in s){m=new FormData;for(const d in s.data)d!=="binary"&&m.append(d,s.data[d]);m.set("component_id",n.toString()),m.set("fn_name",t),m.set("session_hash",r)}else m=JSON.stringify({data:s,component_id:n,fn_name:t,session_hash:r}),a["Content-Type"]="application/json";o&&(a.Authorization=`Bearer ${o}`);try{const d=await this.fetch(`${l}${this.api_prefix}/${at}/`,{method:"POST",body:m,headers:a,credentials:"include"});if(!d.ok)throw new Error("Could not connect to component server: "+d.statusText);return await d.json()}catch(d){console.warn(d)}}set_cookies(n){this.cookies=ze(n).join("; ")}prepare_return_obj(){return{config:this.config,predict:this.predict,submit:this.submit,view_api:this.view_api,component_server:this.component_server}}async connect_ws(n){return new Promise((t,s)=>{let i;try{i=new WebSocket(n)}catch{this.ws_map[n]="failed";return}this.ws_map[n]="pending",i.onopen=()=>{this.ws_map[n]=i,t()},i.onerror=a=>{console.error("WebSocket error:",a),this.close_ws(n),this.ws_map[n]="failed",t()},i.onclose=()=>{this.ws_map[n]="closed"},i.onmessage=a=>{}})}async send_ws_message(n,t){if(!(n in this.ws_map))await this.connect_ws(n);else if(this.ws_map[n]==="pending"||this.ws_map[n]==="closed"||this.ws_map[n]==="failed")return;const s=this.ws_map[n];s instanceof WebSocket?s.send(JSON.stringify(t)):this.post_data(n,t)}async close_ws(n){if(n in this.ws_map){const t=this.ws_map[n];t instanceof WebSocket&&(t.close(),delete this.ws_map[n])}}}export{je as Client,he as FileData,_t as MISSING_CREDENTIALS_MSG,Lt as predict,Xt as submit,qt as upload,Ot as upload_files};
|
frontend/dist/assets/explore-DEJ9qBW-.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
frontend/dist/assets/main-CEchLPfe.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
frontend/dist/assets/main-CS0N2tqq.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.publish-panel .verified-author{flex-wrap:wrap;line-height:1.5}.publish-panel .verified-author>span{font-size:10px}.sharing-stepper{display:flex;list-style:none;padding:0;margin:20px 0 24px;gap:8px;border-bottom:1px solid var(--line)}.sharing-stepper li{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 0 13px;color:var(--muted);font-size:12px;border-bottom:2px solid transparent;margin-bottom:-1px}.sharing-stepper li>span{display:flex}.sharing-stepper li[aria-current=step]{color:var(--active);border-color:var(--primary);font-weight:650}.sharing-stepper li[data-complete=true]{color:var(--secondary)}.publish-panel .sharing-question{font-size:16px;line-height:1.4;font-weight:600;letter-spacing:-.2px;margin:0 0 5px}.sharing-subtitle{font-size:12px;line-height:1.6;color:var(--muted);margin-bottom:18px}.publish-panel .source-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 14px}.publish-panel label.source-choice,.publish-panel label.licence-choice{display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:9px;padding:13px;margin:0;cursor:pointer;min-width:0;min-height:70px;position:relative;background:var(--surface);font-weight:400}.publish-panel :is(.source-choice,.licence-choice)>input[type=radio]{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;position:static;flex:none;width:16px;height:16px;min-height:0;padding:0;accent-color:var(--primary);order:3;margin:0 0 0 auto}.publish-panel :is(.source-choice,.licence-choice)>svg{color:var(--muted);flex:none}.publish-panel :is(.source-choice,.licence-choice)>span:not(.choice-selected){min-width:0}.publish-panel :is(.source-choice,.licence-choice) strong{display:block;color:var(--ink);font-size:12px;font-weight:550;line-height:1.4}.publish-panel :is(.source-choice,.licence-choice) small{display:block;font-size:11px;font-weight:400;color:var(--muted);line-height:1.5;margin:3px 0 0}.publish-panel :is(.source-choice,.licence-choice):has(input:checked){background:var(--selected);border-color:var(--focus-border)}.publish-panel :is(.source-choice,.licence-choice):has(input:checked)>svg{color:var(--active)}.publish-panel :is(.source-choice,.licence-choice):has(input:focus-visible){outline:2px solid var(--focus);outline-offset:3px}.publish-panel :is(.source-choice,.licence-choice):has(input:disabled){opacity:.5;cursor:not-allowed}.source-guidance,.licence-explanation,.licence-conflict{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.65;color:var(--secondary);margin:14px 0 18px}.source-guidance>svg,.licence-explanation>svg,.licence-conflict>svg{flex:none;margin-top:2px;color:var(--muted)}.source-fields>label{display:block;font-size:12px}.publish-panel .field-guidance{display:block;margin:6px 0 0;line-height:1.55;font-size:11px;font-weight:400;color:var(--muted)}.sharing-help{border-top:1px solid var(--line);font-size:12px;line-height:1.65;margin:16px 0;color:var(--secondary)}.sharing-help summary,.license-fields details.licence-notices>summary{display:flex;align-items:center;gap:7px;min-height:44px;cursor:pointer;list-style:none;font-size:12px;line-height:1.5}.sharing-help summary::-webkit-details-marker,.license-fields summary::-webkit-details-marker{display:none}.sharing-help summary:focus-visible,.license-fields summary:focus-visible{outline:2px solid var(--focus);outline-offset:3px}.sharing-help summary>span,.license-fields .licence-notices summary>span{margin-left:auto;font-size:10px;color:var(--muted)}.sharing-help[open]{padding-bottom:12px}.sharing-help p{margin:0 0 8px}.sharing-help a{display:inline-flex;gap:4px;align-items:center;text-decoration:underline;text-underline-offset:3px}.publish-panel .license-fields.guided-licences{margin:0 0 18px}.licence-permissions{display:flex;justify-content:space-between;gap:10px;list-style:none;padding:13px 0;margin:0 0 14px;border-block:1px solid var(--line);font-size:11px;color:var(--secondary)}.licence-permissions li{display:flex;align-items:center;gap:7px;line-height:1.4}.licence-permissions svg{color:var(--active);flex:none}.publish-panel .licence-options{display:grid;gap:7px}.publish-panel label.licence-choice{min-height:62px;padding:10px 13px}.choice-selected{margin-left:auto;font-size:10px;color:var(--active);font-weight:550;white-space:nowrap}.publish-panel .licence-choice:has(.choice-selected)>input{margin-left:0}.license-fields details.additional-licences{border:0;padding:0;margin:0}.license-fields details.additional-licences summary{display:flex;align-items:center;gap:6px;padding:6px 0;min-height:44px;font-size:11px;margin:0;color:var(--muted);list-style:none;cursor:pointer}.additional-licences[open]>summary>svg{transform:rotate(180deg)}.publish-panel .additional-licences .licence-choice{margin-bottom:7px}.licence-explanation{margin:8px 0 14px}.license-fields .licence-explanation a{display:inline-flex;gap:4px;align-items:center;margin-top:5px;font-size:11px;text-decoration:underline;text-underline-offset:3px}.licence-policy-note{font-size:11px;color:var(--muted);line-height:1.6;margin:8px 0 12px}.licence-conflict{padding:12px;border:1px solid var(--warning-line);border-radius:7px;background:var(--warning-bg);color:var(--warning-ink)}.licence-conflict>svg{color:inherit}.license-fields details.licence-notices{border:0;border-block:1px solid var(--line);padding:0;margin:12px 0}.license-fields details.licence-notices>summary{margin:0}.license-fields details.licence-notices[open]{padding-bottom:5px}.license-fields .licence-notices>label:first-of-type{margin-top:8px}.publication-scope{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;border-top:1px solid var(--line);padding-top:16px;margin:0 0 12px}.publication-scope h3{grid-column:1/-1;font-size:13px;font-weight:600;display:flex;align-items:center;gap:7px;margin:0}.publication-scope>div{display:flex;gap:8px;align-items:flex-start;min-width:0}.publication-scope>div>svg{color:var(--muted);flex:none;margin-top:2px}.publication-scope p{font-size:11px;line-height:1.6}.publication-scope strong{display:block;font-size:12px;font-weight:550}.publication-scope p>span{color:var(--muted)}.sharing-help .prompt-text{padding:12px;border-radius:7px;background:var(--canvas);white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;font-size:12px}.sharing-history,.prompt-public-status{display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.6;margin:12px 0 18px;color:var(--muted)}.sharing-history>svg,.prompt-public-status>svg{flex:none;margin-top:2px}.prompt-public-status{color:var(--active)}.sharing-consents{border-top:1px solid var(--line);padding-top:16px}.sharing-consents .consent span>small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.publish-panel .sharing-draft-note{display:flex;align-items:center;justify-content:center;gap:5px;font-size:10px;color:var(--muted);line-height:1.5;margin:13px 0 0}.publish-panel{container-type:inline-size}@container (max-width:430px){.publish-panel .source-choices{grid-template-columns:1fr}.publish-panel label.source-choice{min-height:63px;padding:10px 12px}.licence-permissions{gap:7px}.licence-permissions li{flex:1;flex-direction:column;gap:6px;text-align:center}.choice-selected{display:none}.publish-panel .licence-choice:has(.choice-selected)>input{margin-left:auto}.sharing-stepper{gap:5px}.sharing-stepper li{gap:5px;font-size:11px}}@media(prefers-reduced-motion:reduce){.publish-panel *{scroll-behavior:auto!important}}.account-menu{position:relative}.account-menu>summary{list-style:none;display:flex;align-items:center;gap:6px;font-size:12px;cursor:pointer;padding:10px 0}.account-menu>summary::-webkit-details-marker{display:none}.account-menu>div{position:absolute;right:0;top:40px;z-index:20;width:220px;border:1px solid var(--line);border-radius:12px;padding:6px;background:var(--surface);box-shadow:0 10px 35px var(--shadow)}.account-menu button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:0;background:transparent;padding:12px;border-radius:8px;font-size:12px}.account-menu button:hover{background:var(--hover)}.account-menu button:last-child{border-top:1px solid var(--line);border-radius:0;margin-top:4px;color:var(--muted)}.management-page{width:100%;max-width:1320px;margin:0 auto;padding:28px 32px 64px}.is-split .management-page{grid-column:1/-1;grid-row:2;overflow:auto;height:100%;max-width:none;padding-inline:max(32px,calc((100vw - 1256px)/2))}.management-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:28px}.management-heading p:not(.eyebrow){margin-top:10px;line-height:1.6;color:var(--muted);font-size:13px}.management-heading .back-to-collection{display:flex;gap:7px;align-items:center;margin-bottom:28px}.management-heading>.secondary{flex-shrink:0}.management-layout{display:grid;grid-template-columns:minmax(240px,340px) minmax(0,1fr);gap:28px;align-items:start}.management-layout:not(.has-selection){grid-template-columns:1fr}.management-layout:not(.has-selection) .management-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.management-list-heading{grid-column:1/-1;display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin-bottom:12px;gap:12px}.managed-card{width:100%;display:flex;gap:12px;align-items:center;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:12px;margin-bottom:10px;text-align:left}.managed-card.selected{border-color:var(--active);box-shadow:0 0 0 1px var(--active)}.managed-card:hover{background:var(--hover)}.managed-card>svg{margin-left:auto;flex-shrink:0;color:var(--muted)}.managed-thumb{height:76px;width:76px;flex:0 0 76px;background:var(--canvas);border-radius:8px;display:grid;place-items:center;color:var(--muted)}.managed-thumb img{width:100%;height:100%;object-fit:contain}.managed-identity{display:flex;flex-direction:column;align-items:start;gap:6px;min-width:0}.managed-identity>strong{font-size:13px;overflow-wrap:anywhere}.managed-identity>span:not(.asset-state){color:var(--muted);font-size:11px}.asset-state{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);background:var(--canvas);color:var(--secondary);padding:4px 7px;border-radius:6px;font-size:10px;white-space:nowrap}.state-visible{background:var(--selected);color:var(--active)}.state-pending_review,.state-withdrawing{background:var(--warning-bg);color:var(--warning-ink)}.managed-detail{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:24px;min-width:0}.managed-title{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:20px}.managed-title h2{font-size:23px;font-weight:500;overflow-wrap:anywhere;letter-spacing:-.5px}.managed-title div>span{display:block;margin-top:7px;color:var(--muted);font-size:12px}.managed-detail .result-stage{height:420px}.thumbnail-help,.visibility-note{display:flex;align-items:start;gap:9px;font-size:12px;color:var(--muted);line-height:1.6}.thumbnail-help{padding:14px 0}.thumbnail-help svg,.visibility-note svg{flex-shrink:0;margin-top:2px}.visibility-note{background:var(--canvas);padding:14px;border-radius:9px;margin-bottom:18px}.managed-links{display:flex;align-items:center;flex-wrap:wrap;gap:22px;margin:8px 0 20px}.managed-links a,.managed-links button{font-size:11px;color:var(--active);display:flex;align-items:center;gap:5px}.management-actions{display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.danger-button{color:var(--danger)}.management-notice{display:flex;align-items:center;gap:8px;padding:13px 16px;background:var(--selected);color:var(--active);border-radius:8px;margin-bottom:20px;font-size:12px}.management-alert{padding:15px;background:var(--canvas);border:1px solid var(--line);border-radius:8px}.private-reports h3{display:flex;gap:8px;align-items:center;font-size:13px;margin:20px 0 12px}.private-reports h3 span{margin-left:auto;font-size:10px;font-weight:400;color:var(--muted)}.report-card{border:1px solid var(--line);border-radius:8px;padding:14px;margin:8px 0}.report-card>div{display:flex;justify-content:space-between;gap:10px;font-size:11px}.report-card span{color:var(--muted);font-size:10px}.report-card p{font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:10px}.decision-review{border:1px solid var(--focus-border);border-radius:10px;padding:20px;margin-top:20px;background:var(--canvas)}.decision-review h3{font-size:16px;line-height:1.4;overflow-wrap:anywhere}.decision-review p{font-size:12px;line-height:1.65;color:var(--muted);margin:10px 0 16px}.decision-review label{display:block;font-size:12px;margin:12px 0}.decision-review label small{font-size:10px;color:var(--muted);margin-left:6px}.decision-review textarea{display:block;resize:vertical;width:100%;margin-top:8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);padding:10px}.decision-review>div{display:flex;justify-content:flex-end;gap:10px}.primary.destructive{background:#a32f25;color:#fff}.management-empty{grid-column:1/-1;border:1px dashed var(--line);border-radius:12px;padding:42px 24px;text-align:center;color:var(--muted)}.management-empty h2{font-size:20px;font-weight:500;margin:16px 0 10px;color:var(--ink)}.management-empty p{line-height:1.7;font-size:13px}.management-pagination{grid-column:1/-1;display:flex;justify-content:space-between;gap:10px;margin-top:12px}.management-loading{display:flex;gap:10px;align-items:center;padding:40px 0;color:var(--muted)}@media(max-width:760px){.management-page{padding:22px 18px 40px}.management-heading{align-items:start;gap:12px}.management-heading h1{font-size:25px}.management-heading>.secondary{padding:10px;margin-top:45px;gap:0}.management-heading>.secondary span{display:none}.management-heading>.secondary svg{width:18px;height:18px}.management-layout{grid-template-columns:minmax(0,1fr);gap:20px}.management-layout.has-selection .management-list{display:flex;overflow:auto;gap:10px;padding:3px 2px 10px;scroll-snap-type:x proximity}.has-selection .management-list-heading{display:none}.has-selection .managed-card{flex:0 0 255px;margin:0;scroll-snap-align:start}.has-selection .managed-thumb{width:56px;height:56px;flex-basis:56px}.managed-detail{padding:18px 14px}.managed-title h2{font-size:21px}.managed-detail .result-stage{height:340px}.management-actions>.secondary{flex:1;white-space:normal;line-height:1.5}.report-card>div{flex-direction:column;gap:5px}.decision-review{padding:16px}.decision-review>div{flex-wrap:wrap}.decision-review>div>button{flex:1}.account-menu>summary{font-size:10px}}@media(max-width:760px){.management-actions{display:grid;grid-template-columns:1fr 1fr}.management-actions>.secondary{min-height:44px}.management-actions>.danger-button{grid-column:1/-1}}.moderation-filters{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:24px;border-bottom:1px solid var(--line);padding-bottom:12px}.moderation-filters button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 15px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);font-size:12px}.moderation-filters button.selected{background:var(--selected);border-color:var(--line);color:var(--active)}.moderation-filters button span{font-variant-numeric:tabular-nums;min-width:20px;border-radius:5px;padding:2px 4px;background:var(--surface);font-size:10px}.managed-identity small{color:var(--warning-ink);font-size:11px}.review-note{background:var(--canvas);border:1px solid var(--line);border-radius:8px;padding:14px;margin-top:16px}.review-note h3{display:flex;justify-content:space-between;font-size:12px}.review-note h3 span{font-size:10px;font-weight:400;color:var(--muted)}.review-note p{font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:10px}@media(max-width:480px){.moderation-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.moderation-filters button{gap:5px;padding:8px 4px;font-size:11px}.moderation-filters button span{min-width:16px}.management-layout.has-selection .management-empty{min-width:100%}}.contribution-editor{margin:0 0 22px;border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--panel)}.contribution-editor>header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.contribution-editor h3{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:550}.contribution-editor>header button{font-size:11px;padding:9px 11px;min-height:40px;max-width:100%;white-space:normal}.editable-summary{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.editable-summary span{font-size:10px;padding:4px 7px;background:var(--canvas);border:1px solid var(--line);border-radius:5px;color:var(--muted)}.editable-summary>span:first-child{text-transform:capitalize;color:var(--secondary)}.editable-description{font-size:12px;color:var(--muted);line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:12px}.details-saved{display:flex;align-items:center;gap:6px;color:var(--active);font-size:12px;margin-top:14px}.contribution-editor form{margin-top:18px}.contribution-editor fieldset{border:0;padding:0;min-width:0}.contribution-editor label{display:block;font-size:12px;font-weight:500;margin-bottom:16px}.contribution-editor label small{font-size:10px;color:var(--muted);font-weight:400;margin-left:5px}.contribution-editor input:not([type=checkbox]),.contribution-editor textarea,.contribution-editor select{width:100%;min-height:42px;display:block;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--ink);padding:10px;font:inherit;font-size:13px;line-height:1.5;margin-top:7px}.contribution-editor textarea{resize:vertical}.details-fields{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:14px}.details-rights{border-top:1px solid var(--line);padding-top:14px}.details-rights summary{list-style:none;display:flex;align-items:center;gap:8px;font-size:12px;cursor:pointer;min-height:34px}.details-rights summary::-webkit-details-marker{display:none}.details-rights summary span{margin-left:auto;font-size:10px;color:var(--muted)}.details-rights[open] summary>svg:last-child{transform:rotate(180deg)}.published-license{display:flex;align-items:start;gap:10px;padding:13px 0 18px;color:var(--muted)}.published-license>svg{flex-shrink:0;margin-top:2px;color:var(--active)}.published-license p{font-size:11px;line-height:1.65}.published-license b{color:var(--secondary);font-weight:500}.published-license span{display:block;margin-top:5px}.published-license a{text-decoration:underline;text-underline-offset:2px}.contribution-editor .details-consent{display:flex;align-items:start;gap:9px;font-size:11px;line-height:1.65;font-weight:400}.details-consent input{flex-shrink:0;margin-top:4px;accent-color:var(--primary)}.details-hint,.details-conflict p{font-size:11px;line-height:1.7;color:var(--muted);margin:12px 0}.details-conflict{padding:12px;border:1px solid var(--warning-line);border-radius:8px;background:var(--warning-bg)}.details-conflict p{margin-top:0;color:var(--warning-ink)}.contribution-editor form>footer{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--line);padding-top:16px;margin-top:18px}.contribution-editor form>footer button{min-height:42px}@media(max-width:480px){.contribution-editor{padding:14px}.details-fields{grid-template-columns:1fr;gap:0}.contribution-editor input:not([type=checkbox]),.contribution-editor textarea,.contribution-editor select{font-size:16px}.contribution-editor label small{display:block;margin:4px 0 0}.contribution-editor form>footer{gap:8px}.contribution-editor form>footer .primary{font-size:12px;padding-inline:12px}}.managed-title-actions{display:flex;align-items:center;gap:10px}.managed-title-actions .plain-icon{min-width:40px;min-height:40px;flex:none}.license-fields{margin:16px 0}.license-fields details{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:8px}.license-fields summary{cursor:pointer;font-size:12px;margin-bottom:10px}.license-fields .rights-hint{font-size:11px;line-height:1.6}.license-fields a{display:inline-flex;align-items:center;gap:4px;text-decoration:underline}.management-list{min-width:0;min-height:0;max-height:clamp(240px,calc(100dvh - 290px),720px);overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding:3px}.management-list:focus-visible{outline:2px solid var(--active);outline-offset:3px}.management-layout.has-selection .management-list{position:sticky;top:16px}@media(max-width:760px){.management-list{max-height:60dvh;max-height:max(240px,60dvh)}.management-layout.has-selection .management-list{position:static;max-height:none;overflow-y:hidden;scrollbar-gutter:auto;overscroll-behavior-x:contain}}.editorial-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 0;font-size:13px;color:var(--muted);line-height:1.5}.editorial-status svg{flex-shrink:0}.source-prompt p{max-height:180px;overflow-y:auto;overscroll-behavior:contain}.management-search{display:flex;align-items:center;gap:10px;max-width:720px;min-height:48px;margin:0 0 20px;padding:2px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted)}.management-search input[type=search]{flex:1;min-width:0;width:100%;border:0;background:none;margin:0;padding:10px 0;font-size:16px;color:var(--ink)}.management-search:focus-within{outline:2px solid var(--focus);outline-offset:2px}.management-search input:focus-visible{outline:none}.management-search .plain-icon{width:44px;height:44px;flex:none}.management-search svg{flex-shrink:0}:root{font-family:var(--app-font,"DM Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);color:var(--ink);background:var(--page);font-synthesis:none;font-weight:400;font-size:14px;--green:var(--primary)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:inherit;text-decoration:none;cursor:pointer}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--focus);outline-offset:4px}button{color:inherit}button svg,a svg{flex-shrink:0}h1,h2,h3,p{margin:0}button,a{transition:background .16s,color .16s,box-shadow .16s}button:disabled:hover{box-shadow:none}fieldset{border:0;padding:0;margin:0;min-width:0}[hidden]{display:none!important}.commons{min-height:100dvh}.app-header{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 3.5%;background:var(--surface);gap:24px;position:relative;z-index:2}.commons-brand{display:flex;align-items:center;gap:12px;font-size:20px;letter-spacing:-.65px;line-height:1.15}.commons-brand:hover{text-decoration:none}.commons-brand b{font-weight:450}.commons-brand small{display:block;margin-top:5px;font-size:10px;letter-spacing:.05px;color:var(--muted)}.brand-icon{width:43px;height:43px;border-radius:12px;background:var(--selected);display:grid;place-items:center;color:var(--green)}.app-header nav{display:flex;border:1px solid var(--line);background:var(--canvas);padding:4px;border-radius:10px;gap:3px;position:absolute;left:50%;transform:translate(-50%)}.app-header nav button{border:0;background:transparent;min-width:91px;padding:9px 20px;border-radius:7px;color:var(--muted);font-size:13px;font-weight:550}.app-header nav button.selected{background:var(--surface);color:var(--active);box-shadow:0 1px 4px var(--shadow)}.account{display:flex;align-items:center;gap:10px}.sign-in{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--secondary);padding:10px 0}.unavailable{opacity:.5;pointer-events:none}.user-name{font-size:12px}.create-page{max-width:1600px;margin:auto;padding:44px 3.5% 18px}.page-intro{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:34px}.eyebrow{font-size:9px;letter-spacing:1.5px;font-weight:650;color:var(--muted);margin-bottom:11px}h1{font-size:32px;line-height:1.2;letter-spacing:-1.1px;font-weight:500}.page-intro p:not(.eyebrow){margin-top:11px;font-size:13px;color:var(--muted);line-height:1.6}.text-link{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap;color:var(--green);padding-bottom:3px}.creation-grid{display:grid;grid-template-columns:315px minmax(0,1fr);gap:34px;align-items:start}.input-panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:23px}.step-heading{display:flex;align-items:center;gap:10px}.step-heading>span{font-size:10px;color:var(--muted);font-weight:600}.step-heading h2{font-size:14px;font-weight:550;letter-spacing:-.2px}.step-heading small{font-size:10px;color:var(--muted);margin-left:auto}.help{color:var(--muted);font-size:11px;line-height:1.65}.input-panel>.help{margin:10px 0 17px}.upload-target{width:100%;height:210px;border:1px dashed var(--focus-border);background:linear-gradient(125deg,var(--stage-glow),var(--canvas));border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;overflow:hidden;gap:7px}.upload-target:hover{border-color:var(--focus);background:var(--hover)}.upload-icon{margin-bottom:7px;color:var(--muted)}.upload-target strong{font-size:12px;font-weight:550}.upload-target>span:not(.upload-icon):not(.replace-image):not(.upload-loading){font-size:11px;color:var(--muted)}.upload-target small{font-size:9px;color:var(--muted);margin-top:12px}.upload-target.has-image{border-style:solid;background:var(--canvas)}.upload-target img{width:100%;height:100%;object-fit:contain;padding:10px}.replace-image{position:absolute;bottom:10px;background:var(--glass);border:1px solid var(--line);padding:6px 9px;border-radius:6px;display:flex;align-items:center;gap:6px;font-size:10px}.upload-loading{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--glass);display:flex;justify-content:center;align-items:center;gap:7px;font-size:12px}.example-heading{display:flex;justify-content:space-between;margin:18px 0 9px;font-size:10px;color:var(--muted)}.example-heading small{font-size:9px;color:var(--muted)}.examples{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}.examples button{border:1px solid var(--line);border-radius:6px;padding:2px;background:var(--stage-glow);aspect-ratio:1}.examples button:hover{background:var(--hover);border-color:var(--focus-border)}.examples img{width:100%;height:100%;object-fit:contain}.mode-options{margin-top:23px}.mode-options legend{font-size:11px;margin-bottom:9px;font-weight:550}.mode-options>div{display:flex;padding:3px;background:var(--canvas);border:1px solid var(--line);border-radius:7px}.mode-options button{border:0;background:transparent;border-radius:5px;padding:7px 3px;flex:1;font-size:10px;color:var(--muted);white-space:nowrap}.mode-options button.chosen{background:var(--surface);color:var(--active);box-shadow:0 1px 3px var(--shadow)}.advanced{margin:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.advanced summary{padding:14px 0;font-size:11px;list-style:none;display:flex;justify-content:space-between;cursor:pointer;color:var(--muted)}.advanced summary::-webkit-details-marker{display:none}.advanced[open] summary svg{transform:rotate(180deg)}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-bottom:13px}.settings-grid .wide{grid-column:1/-1}label{font-size:11px;display:block;line-height:1.5;color:var(--secondary)}input:not([type=checkbox]),textarea,select{display:block;width:100%;border:1px solid var(--line);border-radius:6px;background:var(--surface);padding:9px 10px;color:var(--ink);margin-top:5px;font-size:12px}textarea{resize:vertical}.check-label{display:flex;gap:8px;align-items:flex-start;font-size:11px}input[type=checkbox]{accent-color:var(--green);margin:2px 0 0;width:14px;height:14px;flex-shrink:0}.advanced>.help{margin-bottom:14px}.primary,.secondary,.quiet{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;border-radius:8px;padding:11px 15px;font-size:11px;font-weight:550;line-height:1.3;min-height:39px}.primary{border:1px solid var(--primary);background:var(--green);color:var(--surface);box-shadow:0 2px 3px var(--shadow)}.primary:hover{background:var(--primary-hover);text-decoration:none}.secondary{border:1px solid var(--line);color:var(--secondary);background:var(--surface)}.secondary:hover{background:var(--hover);text-decoration:none}.quiet{background:transparent;border:0;padding:7px;font-weight:400;color:var(--muted);min-height:30px}.quiet:hover{background:var(--canvas)}.generate{width:100%;font-size:12px;height:44px;justify-content:flex-start}.generate>svg:last-child{margin-left:auto}.privacy-note{display:flex;align-items:center;justify-content:center;gap:5px;font-size:9px;color:var(--muted);margin-top:11px}.development-note{margin-top:14px;font-size:10px;line-height:1.6;background:var(--warning-bg);color:var(--warning-ink);padding:9px;border-radius:6px}.result-panel>.step-heading{margin:0 0 16px;padding:5px 1px}.result-stage,.result-empty,.generation-progress{height:460px;background:var(--canvas);border:1px solid var(--line);border-radius:15px;position:relative;overflow:hidden}.result-stage{background:radial-gradient(ellipse at 50% 45%,var(--stage-glow) 0,var(--wash) 65%,var(--wash) 100%)}.stage-canvas{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;overflow:hidden}.stage-canvas canvas{position:absolute;display:block;touch-action:none}.stage-preview{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain}.result-watermark{position:absolute;right:35px;bottom:20px;font-size:110px;font-weight:650;letter-spacing:-10px;color:var(--wash);opacity:.35}.stage-topline,.stage-bottomline{position:absolute;left:21px;right:21px;display:flex;justify-content:space-between;align-items:center;z-index:2;pointer-events:none;font-size:10px;color:var(--muted)}.stage-topline{top:17px}.stage-topline>span{border:1px solid var(--line);background:var(--glass);border-radius:5px;padding:5px 8px;font-size:9px;letter-spacing:.2px}.stage-bottomline{bottom:17px}.stage-topline button,.stage-bottomline button{pointer-events:auto}.plain-icon{border:0;background:transparent;padding:7px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);border-radius:6px}.plain-icon:hover{background:var(--hover)}.stage-error{position:absolute;z-index:3;bottom:52px;left:20px;right:20px;font-size:10px;background:var(--glass);border-radius:6px;padding:8px;color:var(--secondary)}.result-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(circle at 50% 45%,var(--stage-glow),var(--wash))}.wire-cube{color:var(--faint);margin-bottom:23px;transform:rotate(-8deg)}.result-empty h3{font-size:20px;font-weight:400;letter-spacing:-.5px;color:var(--secondary)}.result-empty p{font-size:12px;color:var(--muted);line-height:1.8;margin-top:12px}.result-empty>span{font-size:10px;color:var(--muted);margin-top:35px}.generation-progress{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.orbital{display:grid;place-items:center;width:94px;height:94px;border:1px dashed var(--muted);border-radius:50%;color:var(--secondary);margin-bottom:26px;animation:pulse 2s infinite}.generation-progress h2{font-weight:450;font-size:21px}.generation-progress p{font-size:12px;color:var(--muted);margin:12px 20px}.generation-progress ol{list-style:none;display:flex;padding:0;gap:18px;margin:25px 0 12px}.generation-progress li{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:10px;color:var(--muted)}.generation-progress li>span{display:grid;place-items:center;border:1px solid var(--focus-border);width:23px;height:23px;border-radius:50%}.generation-progress li.current{color:var(--active)}.generation-progress li.current>span,.generation-progress li.complete>span{border-color:var(--muted);background:var(--selected);color:var(--active)}.result-actions{padding:22px 1px;display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid var(--line)}.result-actions strong{font-size:12px;font-weight:550}.result-actions p{font-size:10px;color:var(--muted);line-height:1.6;margin-top:6px}.action-buttons{display:flex;gap:8px;flex-shrink:0}.community-note{display:flex;gap:14px;align-items:center;padding:23px 1px;color:var(--muted)}.community-note p{font-size:11px;line-height:1.7}.community-note strong{display:block;font-weight:500;color:var(--muted)}.community-note span{display:block;font-size:10px;color:var(--muted)}.community-note :is(a,button){margin-left:auto;white-space:nowrap;font-size:10px;display:flex;align-items:center;gap:7px;color:var(--muted)}.recoverable-error{display:flex;justify-content:space-between;align-items:center;gap:15px;border:1px solid var(--warning-line);background:var(--warning-bg);color:var(--warning-ink);border-radius:9px;padding:15px;margin-top:17px;font-size:12px}.recoverable-error p{margin-top:6px;font-size:11px;line-height:1.5}.create-footer{display:flex;justify-content:space-between;gap:16px;margin-top:28px;padding-top:18px;border-top:1px solid var(--line);font-size:9px;color:var(--muted)}.create-footer a{color:var(--muted)}.create-footer>a{display:flex;gap:4px;align-items:center}.explore-page{height:calc(100dvh - 88px)}.explore-page iframe{border:0;width:100%;height:100%;display:block}.commons-dialog{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:32px;width:min(560px,calc(100vw - 28px));max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 15px 80px var(--shadow)}.commons-dialog::backdrop{background:var(--scrim);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.dialog-close{position:absolute;right:12px;top:12px}.commons-dialog h2{font-size:25px;font-weight:450;letter-spacing:-.7px;margin-bottom:12px}.commons-dialog>p:not(.eyebrow){font-size:12px;line-height:1.7}.commons-dialog form{margin-top:20px}.commons-dialog form label{margin-bottom:14px}.publish-preview{display:flex;gap:20px;align-items:center;background:var(--wash);border:1px solid var(--line);border-radius:9px;padding:8px 16px;margin:21px 0}.publish-preview img{width:100px;height:100px;object-fit:contain}.publish-preview span{font-size:10px;color:var(--muted);line-height:1.8}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.public-notice{display:flex;gap:10px;background:var(--canvas);padding:14px;border-radius:7px;margin:20px 0 14px;font-size:11px;line-height:1.7;color:var(--muted)}.public-notice svg{flex-shrink:0;margin-top:3px}.public-notice a,.consent a{text-decoration:underline}.commons-dialog .consent{font-size:10px;line-height:1.7}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}.form-error{font-size:12px;line-height:1.6;color:var(--danger);margin:14px 0}.spin{animation:spin 1.2s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.45;transform:scale(.96)}}@media(min-width:1450px){.creation-grid{grid-template-columns:340px minmax(0,1fr);gap:42px}.result-stage,.result-empty,.generation-progress{height:505px}.upload-target{height:230px}.create-page{padding-top:55px}.page-intro{margin-bottom:40px}.input-panel{padding:26px}}@media(max-width:1100px){.creation-grid{gap:22px;grid-template-columns:280px minmax(0,1fr)}.input-panel{padding:20px}.result-actions{flex-direction:column;align-items:flex-start}.app-header nav{position:static;transform:none}.commons-brand small{display:none}.commons-brand{font-size:18px}.sign-in{font-size:10px}.community-note :is(a,button){display:none}.page-intro .text-link{display:none}.step-heading small{font-size:9px}.result-stage,.result-empty,.generation-progress{height:427px}}@media(max-width:760px){.app-header{height:110px;padding:15px 20px 52px;gap:10px;align-items:center}.commons-brand{font-size:17px}.brand-icon{width:31px;height:31px;border-radius:8px}.brand-icon svg{width:20px}.commons-brand{gap:8px}.account{gap:4px}.sign-in{font-size:10px;gap:4px}.app-header nav{position:absolute;left:20px;right:20px;bottom:10px;top:auto;transform:none;padding:3px}.app-header nav button{flex:1;padding:7px;font-size:11px}.create-page{padding:27px 20px 20px}.page-intro{margin-bottom:23px}.eyebrow{font-size:8px;letter-spacing:1.1px;line-height:1.6}h1{font-size:26px;letter-spacing:-.8px}.page-intro p:not(.eyebrow){font-size:12px;margin-top:9px;max-width:340px}.creation-grid{grid-template-columns:1fr;gap:28px}.input-panel{padding:20px}.upload-target{height:180px}.examples{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.examples button{max-height:62px}.mode-options{margin-top:18px}.mode-options button{font-size:11px}.advanced{margin:15px 0}.result-stage,.result-empty,.generation-progress{height:360px}.result-panel>.step-heading{margin-bottom:14px}.result-actions{padding:20px 0;gap:16px}.action-buttons{width:100%;flex-wrap:wrap}.action-buttons>*{flex:1}.result-empty h3{font-size:18px}.result-empty>span{margin-top:25px;font-size:9px}.wire-cube{margin-bottom:15px}.wire-cube svg{width:70px;height:70px}.community-note{padding:21px 0}.community-note span{font-size:9px}.create-footer{margin-top:8px;flex-direction:column;gap:10px;font-size:9px}.explore-page{height:calc(100dvh - 110px)}.commons-dialog{padding:27px 22px}.commons-dialog h2{font-size:22px}.user-name,.account .quiet{font-size:10px}.stage-topline,.stage-bottomline{left:14px;right:14px;font-size:9px}.two-fields{grid-template-columns:1fr;gap:0}.generation-progress li{font-size:9px}.generation-progress ol{gap:14px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.explore-page{display:flex;flex-direction:column}.explore-page iframe{flex:1;min-height:0;height:auto}.collection-intro{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 3.5%;border-bottom:1px solid var(--line);background:var(--surface)}.collection-intro h1{margin:0;font-size:21px;line-height:1.3;font-weight:550;letter-spacing:-.6px}.collection-intro p{margin:5px 0 0;font-size:12px;color:var(--muted)}.dataset-link{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;font-size:12px;font-weight:600;color:var(--green);padding:9px 12px;background:var(--selected);border:1px solid var(--line);border-radius:8px}@media(max-width:760px){.collection-intro{padding:13px 20px;gap:12px}.collection-intro h1{font-size:16px;letter-spacing:-.35px}.collection-intro p{display:none}.dataset-link{font-size:11px;padding:8px;gap:3px}.app-header nav button{min-width:0}}.upload-target.has-image{display:block;width:fit-content;max-width:100%;height:auto;min-height:0;padding:0;margin:0 auto;overflow:hidden;background:var(--canvas)}.upload-target.has-image>img{display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain;border-radius:inherit;padding:0}.source-tabs{display:flex;gap:4px;padding:4px;background:var(--canvas);border:1px solid var(--line);border-radius:9px;margin:16px 0}.source-tabs button{display:flex;gap:6px;align-items:center;justify-content:center;flex:1;min-width:0;padding:9px 4px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:11px}.source-tabs button[aria-pressed=true]{background:var(--surface);color:var(--active);box-shadow:0 1px 4px var(--shadow)}.prompt-image>label{font-size:12px;font-weight:600}.prompt-image textarea{display:block;resize:vertical;width:100%;min-height:110px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:12px;margin:8px 0;font:inherit;font-size:13px;line-height:1.5}.prompt-suggestions{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}.prompt-suggestions button{font-size:10px;background:var(--canvas);border:1px solid var(--line);color:var(--secondary);border-radius:6px;padding:6px 8px}.prompt-generate{width:100%;justify-content:center}.model-credit{font-size:10px;color:var(--muted);text-align:center;margin:9px 0 16px}.generated-input{margin:18px 0}.generated-input>img{display:block;width:100%;height:auto;border-radius:10px;border:1px solid var(--line)}.generated-input>small{display:block;font-size:10px;color:var(--muted);margin:9px 0}.generated-input .action-buttons{flex-wrap:wrap}.generated-input .action-buttons>*{flex:1;justify-content:center;font-size:11px}.contribution-steps{display:flex;gap:26px;padding:0;margin:0 0 28px;list-style:none;color:var(--muted);font-size:12px}.contribution-steps li{display:flex;align-items:center;gap:8px}.contribution-steps .step-number{display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;width:24px;height:24px;font-size:10px}.contribution-steps .current{color:var(--ink)}.contribution-steps .current>.step-number{background:var(--community-wash);border-color:var(--community-accent);color:var(--community-ink)}.contribution-steps .done>.step-number{background:var(--selected);color:var(--active)}.share-heading{margin:0 0 11px}.share-heading h2{font-size:15px}.share-heading>span{font-size:11px;color:var(--muted)}@media(max-width:760px){.contribution-steps{gap:10px;justify-content:space-between;font-size:10px}.contribution-steps li{gap:5px;align-items:flex-start;max-width:32%;line-height:1.5}.contribution-steps .step-number{flex-shrink:0;width:20px;height:20px}.source-tabs button{font-size:12px}}.commons button>svg,.commons a>svg,.step-number svg{display:block;flex-shrink:0}.replace-image{left:50%;transform:translate(-50%);max-width:calc(100% - 16px);white-space:nowrap;line-height:1;min-height:30px}.replace-image>span{overflow:hidden;text-overflow:ellipsis}.contribution-steps li{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;line-height:1.5}.contribution-steps .step-number{line-height:1;flex-shrink:0}.contribution-steps .step-label{min-width:0}.examples{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.examples button{aspect-ratio:auto;max-height:none;padding:4px;display:flex;flex-direction:column;gap:5px;min-width:0;text-align:left}.examples img{display:block;padding:0;aspect-ratio:1;height:auto;object-fit:contain;border-radius:3px;background:#111318}.examples button>span{font-size:10px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;padding:0 2px 2px}.examples button[aria-pressed=true],.example-grid button[aria-pressed=true]{border-color:var(--focus);box-shadow:0 0 0 1px var(--focus)}.browse-examples{width:100%;margin-top:10px;justify-content:space-between;font-weight:450}.selected-example{margin-top:10px;font-size:10px;line-height:1.6;color:var(--muted)}.selected-example strong,.selected-example span{display:block}.selected-example strong{color:var(--ink);font-weight:500}.example-dialog{width:min(840px,calc(100vw - 28px));padding:32px}.example-dialog h2{padding-right:16px}.example-filters{display:grid;grid-template-columns:1fr 180px;gap:16px;margin:22px 0 18px;align-items:end}.example-search{position:relative}.example-search svg{position:absolute;top:50%;left:11px;transform:translateY(-50%);color:var(--muted)}.example-search input{padding-left:35px}.example-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.example-grid button{min-width:0;display:flex;flex-direction:column;text-align:left;border:1px solid var(--line);border-radius:10px;padding:6px;background:var(--canvas);gap:5px}.example-grid button:hover{border-color:var(--focus-border);background:var(--hover)}.example-grid img{display:block;width:100%;aspect-ratio:1;object-fit:contain;border-radius:5px;background:#111318}.example-grid button>span{font-size:12px;line-height:1.4;padding:2px 3px 0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.example-grid small{font-size:10px;color:var(--muted);padding:0 3px 3px}.example-pagination{display:flex;align-items:center;justify-content:space-between;margin:14px 0;font-size:11px;color:var(--muted)}.example-pagination>div{display:flex;gap:8px}.example-pagination button{width:36px;height:36px;border:1px solid var(--line)}.example-empty{padding:32px 0;color:var(--muted)}.example-dialog .example-credits{border-top:1px solid var(--line);padding-top:14px;color:var(--muted);font-size:10px;line-height:1.7}.example-credits a{text-decoration:underline}.example-credits svg{vertical-align:middle}@media(max-width:760px){.brand-icon svg{width:20px;height:20px}.contribution-steps li{align-items:center;grid-template-columns:20px minmax(0,1fr)}.example-dialog{padding:26px 18px}.example-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.example-grid button>span{font-size:10px}.example-grid small{font-size:9px}.example-filters{grid-template-columns:1fr;gap:12px}.example-dialog h2{font-size:22px}}@media(max-width:359px){.example-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.contribution-steps{gap:7px;font-size:9px}}@media(min-width:1100px),(min-width:960px)and (min-height:600px)and (orientation:landscape){.commons.is-split{display:grid;grid-template-columns:minmax(540px,1.2fr) minmax(380px,.8fr);grid-template-rows:var(--app-header-height,88px) minmax(0,1fr);height:100dvh;min-height:0;overflow:hidden}.is-split .app-header{grid-column:1/-1;grid-row:1;padding:0 28px}.is-split .app-header nav{display:none}.is-split .workspace-controls{margin-left:auto}.is-split .create-page{grid-column:2;grid-row:2;min-width:0;min-height:0;width:100%;max-width:none;height:100%;overflow:auto;overscroll-behavior:contain;margin:0;padding:28px 24px 20px;border-left:1px solid var(--line);scrollbar-gutter:stable}.is-split .explore-page{display:grid;grid-template-rows:max-content minmax(calc(100dvh - var(--app-header-height,88px)),1fr);grid-column:1;grid-row:2;min-width:0;min-height:0;height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:auto;scrollbar-gutter:stable}.is-split .page-intro{display:block;margin-bottom:22px}.is-split .page-intro h1{font-size:27px}.is-split .page-intro .text-link{display:none}.is-split .creation-grid{grid-template-columns:minmax(0,1fr);gap:26px}.is-split .input-panel{padding:21px}.is-split .contribution-steps{gap:16px;font-size:11px;justify-content:space-between}.is-split .contribution-steps li{gap:6px;min-width:0}.is-split .result-actions{flex-direction:column;align-items:flex-start}.is-split .action-buttons{flex-wrap:wrap}.is-split .result-stage,.is-split .result-empty,.is-split .generation-progress{height:410px}.is-split .collection-intro{padding:20px 24px;gap:14px}.is-split .collection-intro h1{font-size:clamp(25px,2.1vw,36px)}.is-split .collection-intro p{line-height:1.6}.is-split .create-footer{flex-direction:column;gap:10px}.is-split .community-note :is(a,button){display:none}}.app-header{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}.create-page{padding-bottom:max(20px,env(safe-area-inset-bottom))}@media(max-width:1439px){.create-page,.collection-intro{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}}@media(max-height:600px)and (max-width:1439px){.result-stage,.result-empty,.generation-progress{height:320px}.commons-dialog{max-height:calc(100dvh - 20px)}}.example-shared{font-size:9px;line-height:1.3;color:var(--active);padding:0 2px 3px}.example-existing,.duplicate-note{font-size:11px;line-height:1.7;padding:12px;background:var(--selected);color:var(--secondary);border-radius:8px;margin-top:12px}.example-existing .quiet{padding:6px 0 0;min-height:24px;color:var(--active)}.publication-status{display:flex;align-items:flex-start;gap:9px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--muted);font-size:13px;line-height:1.6}.publication-status svg{flex-shrink:0;margin-top:3px}.inference-motion{position:relative;display:grid;place-items:center;width:120px;height:120px;margin-bottom:22px;color:var(--primary);overflow:hidden}.inference-orbit{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;fill:none;stroke:var(--line);stroke-width:1.5;animation:spin 3.8s linear infinite}.inference-orbit .orbit-trail{stroke:var(--primary);stroke-width:2;stroke-dasharray:110 223;stroke-linecap:round}.inference-orbit .orbit-dot{fill:var(--primary);stroke:none}.scan-line{position:absolute;width:60px;height:2px;background:var(--primary);opacity:.3;animation:scan 2.8s ease-in-out infinite}@keyframes scan{0%,to{transform:translateY(-25px);opacity:0}50%{transform:translateY(25px);opacity:.5}}.activity-track{width:150px;height:3px;border-radius:5px;overflow:hidden;background:var(--line);margin:20px 0 0}.activity-track>span{display:block;width:40%;height:100%;background:var(--primary);animation:activity 2s ease-in-out infinite}@keyframes activity{0%{transform:translate(-100%)}to{transform:translate(350%)}}.live-progress p{max-width:330px;padding:0 14px}.live-progress ol{margin-top:24px}.progress-caption{display:flex;gap:20px;align-items:center;font-size:11px;color:var(--muted)}.progress-caption>span{display:inline-flex;align-items:center;gap:5px;font-variant-numeric:tabular-nums}.progress-caption .quiet{font-size:11px}.angle-button{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;background:var(--surface);color:var(--primary);border:1px solid var(--line);border-radius:7px;font-size:11px;box-shadow:0 2px 8px var(--shadow)}.angle-error{position:absolute;bottom:55px;left:16px;right:16px;background:var(--surface);padding:8px;border-radius:6px;color:var(--danger);font-size:11px}.publish-panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:23px;margin:4px 0 24px;scroll-margin-top:24px}.publish-panel>header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.publish-panel h2{font-size:19px;font-weight:550;letter-spacing:-.4px}.verified-author{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted);margin-top:7px}.publish-steps{display:flex;gap:12px;align-items:center;padding:19px 0;color:var(--muted);font-size:11px}.publish-steps>span{display:flex;gap:6px;align-items:center}.publish-steps [aria-current=step]{color:var(--primary);font-weight:600}.publish-cover{display:flex;gap:17px;align-items:center;padding:8px 14px;background:var(--wash);border:1px solid var(--line);border-radius:9px;margin-bottom:20px}.publish-cover img{width:94px;height:94px;flex-shrink:0;object-fit:contain}.publish-cover strong{display:block;font-size:12px;font-weight:500}.publish-cover small{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-top:3px}.publish-panel label{margin-bottom:15px}.publish-panel label>small{font-weight:400;color:var(--muted);font-size:10px}.publish-panel textarea{resize:vertical}.publish-panel .check-label{align-items:flex-start;gap:10px;font-size:12px;line-height:1.55}.publish-panel .check-label input{margin-top:3px;flex:none;width:15px;height:15px;accent-color:var(--primary)}.sharing-signals{display:flex;justify-content:space-between;gap:8px;margin:0 0 22px;color:var(--secondary);font-size:11px}.sharing-signals>*{display:flex;flex-direction:column;align-items:center;gap:7px;flex:1;text-align:center}.sharing-signals svg{color:var(--primary)}.sharing-details{font-size:11px;color:var(--muted);line-height:1.7;margin:16px 0}.sharing-details summary{cursor:pointer}.sharing-details p{margin-top:8px}.rights-hint{font-size:11px;line-height:1.6;color:var(--muted);margin:6px 0 16px;padding:10px;border-left:2px solid var(--community-accent);background:var(--canvas)}.publish-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-top:17px;border-top:1px solid var(--line)}.publish-actions .quiet{display:flex;align-items:center;gap:5px}.publish-panel input,.publish-panel select,.publish-panel textarea{font-size:13px}@media(max-width:760px){.publish-panel{padding:18px}.publish-cover{gap:10px;padding:8px}.publish-cover img{width:80px;height:80px}.publish-panel input,.publish-panel select,.publish-panel textarea{font-size:16px}.live-progress{min-height:385px}.stage-bottomline{flex-wrap:wrap;gap:8px}.angle-button{font-size:10px}.progress-caption{gap:12px}.publish-panel .two-fields{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.inference-orbit,.scan-line,.activity-track>span{animation:none}.scan-line{display:none}.activity-track>span{width:100%;opacity:.5}}.publish-thumb{display:block;position:relative;width:94px;height:94px;flex-shrink:0;overflow:hidden;line-height:0}.publish-thumb img{position:absolute;max-width:none;width:100%;height:100%;object-fit:fill}@media(max-width:760px){.publish-thumb{width:80px;height:80px}.publish-cover .publish-thumb img{width:100%;height:100%}}.language-control{border:1px solid var(--line);border-radius:7px;background:var(--surface);font-size:11px;font-weight:600;padding:7px;min-height:34px;min-width:34px;flex-shrink:0}.collection-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;padding:12px 24px;border-top:1px solid var(--line);background:var(--surface);font-size:10px;color:var(--muted);line-height:1.5}.collection-footer nav{display:flex;align-items:center;gap:18px}.collection-footer a{display:inline-flex;align-items:center;gap:4px}.collection-footer>span a{color:var(--ink)}@media(max-width:760px){.collection-footer{padding:10px 20px;gap:8px;flex-wrap:wrap;font-size:9px}.collection-footer nav{gap:14px}.app-header .account{gap:2px}.commons-brand{font-size:16px}}@media(max-width:360px){.commons-brand .brand-icon{display:none}.app-header .account-menu summary{max-width:90px;overflow:hidden;text-overflow:ellipsis}.collection-footer{padding:8px 16px}.language-control{min-width:30px;padding:5px}}@media(min-width:761px){.input-panel{--input-max-height:min(32dvh,260px)}.input-panel .examples{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:68px;gap:7px;overflow-x:auto;overscroll-behavior-inline:contain;padding:2px 2px 7px;scroll-snap-type:x proximity}.input-panel .examples button{scroll-snap-align:start}.input-panel .examples img{height:58px;aspect-ratio:1}.input-panel .selected-example span{font-size:10px;line-height:1.4}.input-panel .mode-options{margin-top:15px}.input-panel .advanced{margin-block:12px}.result-panel{position:sticky;top:20px;min-width:0}}.is-split .result-panel{position:static}.is-split .input-panel{padding:18px}.is-split .page-intro{margin-bottom:18px}.is-split .page-intro h1{font-size:25px}.is-split .contribution-steps{gap:8px;font-size:10px;margin-bottom:20px}.is-split .create-page{padding-inline:20px}.is-split .result-stage,.is-split .result-empty,.is-split .generation-progress{height:clamp(320px,43dvh,460px)}.collection-intro.commons-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:30px;padding:26px clamp(20px,3vw,44px);flex-shrink:0;container-type:inline-size}.commons-hero .hero-content{width:100%}.commons-hero h1{max-width:none;text-wrap:balance;line-height:1.15}.commons-hero h1 span{display:inline}.commons-hero .hero-copy{max-width:none;text-wrap:pretty;font-size:13px;margin:12px 0 17px;line-height:1.6}.commons-hero .hero-mark{width:100px;height:100px;flex-basis:100px;margin:0 12px 0 0;border-radius:25px}.commons-hero .hero-mark>svg{width:48px;height:48px}.commons-hero .hero-piece{width:36px;height:36px;border-radius:10px}.commons-hero .hero-piece svg{width:21px;height:21px}@container (max-width:650px){.commons-hero .hero-mark{display:none}}@media(max-width:760px){.collection-intro.commons-hero{display:block;padding:22px 20px}.commons-hero .hero-copy{font-size:12px}.commons-hero h1{font-size:26px}.collection-footer{font-size:10px}}@media(max-height:600px)and (orientation:landscape){.input-panel{--input-max-height:180px}.collection-intro.commons-hero{padding-block:14px}.commons-hero .hero-copy{margin-block:8px}.commons-hero h1{font-size:24px}.commons-hero .hero-mark{display:none}}@media(max-height:500px)and (orientation:landscape){.app-header{height:68px}.explore-page{height:calc(100dvh - 68px)}.commons-hero .hero-eyebrow,.commons-hero .hero-copy{display:none}.commons-hero .hero-content{display:flex;align-items:center;justify-content:space-between;gap:24px}.commons-hero h1{font-size:20px;flex:1}.commons-hero .hero-actions{flex-wrap:nowrap}.collection-intro.commons-hero{padding-block:12px}.collection-footer{padding-block:8px}.page-intro{margin-bottom:20px}.page-intro h1{font-size:25px}.result-panel{position:static}}.input-toggle{display:inline-flex;align-items:center;gap:5px;margin-left:auto;white-space:nowrap;font-size:10px;padding:4px 0}.input-toggle[aria-expanded=true] svg{transform:rotate(180deg)}#input-preparation>.help{margin:10px 0 17px}.input-summary{display:flex;gap:14px;align-items:center;margin-top:14px}.input-summary img{width:64px;height:64px;object-fit:contain;background:var(--canvas);border:1px solid var(--line);border-radius:9px}.input-summary strong{display:block;font-size:12px;font-weight:500}.input-summary span{display:block;color:var(--muted);font-size:11px;margin-top:5px}.is-split .input-panel:has(.input-summary){padding:15px 18px}.is-split .creation-grid:has(.input-summary){gap:20px}.commons{--app-header-height:88px}.explore-page{height:auto;min-height:calc(100dvh - var(--app-header-height))}.explore-page iframe{flex:1 1 0;min-height:0;height:100%}.app-header .account{gap:8px;align-items:center}.app-header .sign-in,.app-header .account-menu summary{min-height:44px;align-items:center}.app-header .language-control,.app-header .theme-control button{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;display:grid;place-items:center;border-radius:9px}.app-header .theme-control{margin-left:0}.app-header .account{flex-shrink:0}.app-header .theme-control svg,.app-header .sign-in svg{width:18px;height:18px;flex-shrink:0}@media(max-width:760px){.commons{--app-header-height:120px}.app-header{height:var(--app-header-height);padding-top:12px;padding-bottom:56px;gap:12px}.app-header nav{bottom:12px}}@media(min-width:761px)and (max-height:500px)and (orientation:landscape){.commons{--app-header-height:68px}.app-header{height:var(--app-header-height)}}@media(max-width:360px){.app-header .sign-in{width:44px;justify-content:center}.app-header .sign-in span{display:none}}@media(max-width:480px){.commons-brand .brand-icon{display:none}.commons-brand>span:last-child{white-space:nowrap}}.collection-workspace{display:grid;grid-template-rows:minmax(0,1fr) auto;height:100dvh;min-height:360px;min-width:0;flex:0 0 auto}.explorer-region{position:relative;display:flex;flex-direction:column;min-height:0;min-width:0}.is-split .collection-workspace{height:100%;min-height:0}.viewer-navigation{display:none;position:sticky;top:0;z-index:12;flex-shrink:0;align-items:center;justify-content:space-between;gap:12px;padding:6px 12px;background:var(--surface);border-bottom:1px solid var(--line);touch-action:pan-y}.viewer-navigation small{color:var(--muted);font-size:11px;line-height:1.4}.viewer-navigation>div{display:flex;flex-shrink:0;gap:4px}.viewer-navigation button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font-size:12px;white-space:nowrap}.viewer-navigation button.selected{background:var(--selected);color:var(--primary);border-color:var(--line)}@media(any-pointer:coarse){.viewer-navigation{display:flex}}@media(max-width:700px){.viewer-navigation small{display:none}.viewer-navigation>div{width:100%}.viewer-navigation button{flex:1}}.draft-retention{font-size:11px;line-height:1.5;color:var(--muted);margin:8px 0 12px}.page-intro .text-link,.community-note>button{border:0;background:none;font-family:inherit;color:var(--active);padding:0}.publish-cover small{font-size:11px}.collection-footer>span a{text-decoration:underline;text-underline-offset:3px}.commons-dialog>.eyebrow{padding-right:32px}.result-stage[data-ready=false] .stage-canvas{pointer-events:none}.app-header .sign-in{padding:0 12px;border:1px solid var(--primary);border-radius:9px;background:var(--primary);color:var(--on-primary);font-weight:600}.app-header .sign-in:hover{background:var(--primary-hover);text-decoration:none}.hero-actions:has(.hero-auth-note){flex-wrap:wrap}.commons-hero .hero-auth-note{display:block;flex-basis:100%;margin:0;font-size:12px;line-height:1.5;color:var(--secondary)}@media(max-width:360px){.app-header .sign-in{padding:0}}.input-feedback{font-size:12px;line-height:1.5;color:var(--muted);margin:12px 0;scroll-margin-block:16px;overflow-wrap:anywhere}.input-feedback strong,.input-feedback small{display:block}.input-feedback small{margin-top:3px}.input-feedback p{margin-top:6px}.input-feedback-error{padding:14px;border:1px solid var(--line);border-left:3px solid #b58720;border-radius:9px;background:var(--surface);color:var(--ink)}.input-feedback-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}.input-feedback-actions button{min-height:44px;font-size:12px}.upload-target .previous-input{opacity:.25}.upload-loading{flex-direction:column;gap:8px}.upload-loading small{max-width:90%;overflow-wrap:anywhere;line-height:1.4}.upload-target[aria-busy=true]{opacity:1}.app-header .account{position:relative;min-width:0}.account-menu{position:static;min-width:0;flex:0 1 auto}.account-menu>summary{min-width:44px;white-space:nowrap}.account-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-actions{display:flex;align-items:center;gap:6px;min-width:0}.account-identity{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted);margin-right:4px}.account-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 10px;border:1px solid transparent;border-radius:9px;background:transparent;font-size:12px;white-space:nowrap;color:var(--secondary)}.account-actions button:hover{background:var(--hover);color:var(--ink)}.account-actions button:last-child{margin-left:4px;border-color:var(--line)}@media(max-width:1100px){.account-actions{gap:4px}.account-identity{max-width:110px}.account-actions button{padding-inline:8px;font-size:11px}}@media(max-width:760px){.app-header .account{flex-shrink:1;gap:4px}}.draft-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 20px}.draft-controls .reset-draft{min-height:44px;flex-shrink:0}.draft-controls>span{font-size:10px;color:var(--muted);line-height:1.5}.settings-grid .setting-hint{display:block;font-weight:400;font-size:11px;color:var(--muted);line-height:1.45;margin-top:2px}
|
frontend/dist/assets/splat-engine-DqUovt5G.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{W as $,S as z}from"./three.module-Dsz2W9Sx.js";import{O as U,q,m as F,c as O}from"./model-cache-aNajTdW2.js";import{c as _,a as G,l as V}from"./splat-core-7xwxv_V5.js";import{a as Z}from"./theme-BCCL3vyy.js";import{a as j}from"./viewer-framing-MVFo3Fwa.js";const P=O({name:"idol-commons-models-v1"});async function B(t,o,g){var w;if(!Number.isSafeInteger(t.bytes)||t.bytes<1||t.bytes>80*1024*1024||!/^[a-f0-9]{64}$/.test(t.sha256))throw Error("Invalid splat manifest.");const u=t.private?null:F(t.url,t.sha256),A=async n=>Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",n)),s=>s.toString(16).padStart(2,"0")).join("");if(u){const n=await P.get(u,o);if(n&&n.byteLength===t.bytes&&await A(n)===t.sha256)return{bytes:new Uint8Array(n),cached:!0};n&&await P.remove(u,o)}const h=await fetch(t.url,{signal:o,credentials:new URL(t.url,location.href).origin===location.origin?"same-origin":"omit"});if(!h.ok||!h.body)throw Error("The 3D file could not be loaded. Please retry.");const r=new Uint8Array(t.bytes),p=h.body.getReader();let l=0;try{for(;;){o.throwIfAborted();const{done:n,value:s}=await p.read();if(n)break;if(l+s.length>r.length)throw Error("Unexpected splat size.");r.set(s,l),l+=s.length,g(`Downloading 3D · ${Math.round(l/r.length*100)}%`)}}finally{await p.cancel().catch(()=>{}),p.releaseLock()}if(l!==t.bytes)throw Error("Incomplete splat download.");if(g("Verifying 3D…"),await A(r.buffer)!==t.sha256)throw Error("The splat checksum does not match.");const c=new TextDecoder("ascii").decode(r.subarray(0,4096)),y=c.indexOf(`end_header
|
| 2 |
+
`),d=Number((w=c.match(/^element vertex (\d+)$/m))==null?void 0:w[1]);if(!c.startsWith(`ply
|
| 3 |
+
format binary_little_endian 1.0
|
| 4 |
+
`)||y<0||d<32768||d>1048576||d%32||y+11+d*68!==l)throw Error("Unsupported 3DGS PLY.");return o.throwIfAborted(),u&&await P.put(u,r.buffer,o),{bytes:r,cached:!1}}function J(t,o,g,u,A){const h=new AbortController;let r=!1,p=!0,l=!1,c=0,y=!1,d=!1,w=!1,n;const s=e=>{r||(clearTimeout(n),n=setTimeout(()=>D(new Error("3D loading took too long. Retry the preview.")),45e3),g(e))};let v;const a=new $({alpha:!0,antialias:!1,powerPreference:"low-power"});a.setClearColor(0,0),a.outputColorSpace=z;const E=()=>{w=!0,!r&&l&&p&&!document.hidden&&!c&&!d&&(c=requestAnimationFrame(k))},{scene:x,spark:S}=_(a),f=G(o.camera),i=new U(f,t);i.target.fromArray(o.camera.target),i.enableDamping=!1,i.enablePan=!1,i.enableZoom=!!o.allowZoom,i.minDistance=.5,i.maxDistance=10,i.update(),i.minPolarAngle=.05,i.maxPolarAngle=Math.PI-.05,t.appendChild(a.domElement),a.domElement.setAttribute("aria-label","Interactive 3D Gaussian splat");const L=()=>{if(r)return;const e=t.getBoundingClientRect();if(e.width<1||e.height<1)return;const m=Math.min(e.width,e.height),b=o.allowZoom?{width:m,height:m}:j(e.width,e.height,o.previewCrop),I=matchMedia("(max-width:700px)").matches;a.setPixelRatio(Math.min(devicePixelRatio,I?1.25:1.75,(I?1024:1536)/Math.max(b.width,b.height))),a.setSize(b.width,b.height,!1),Object.assign(a.domElement.style,o.allowZoom?{left:`${(e.width-m)/2}px`,top:`${(e.height-m)/2}px`,width:`${m}px`,height:`${m}px`}:o.previewCrop?Z(o.previewCrop):{left:"0%",top:"0%",width:"100%",height:"100%"}),f.aspect=b.width/b.height,f.updateProjectionMatrix(),E()},T=new ResizeObserver(L);T.observe(t),L();const k=async()=>{if(c=0,!(r||!l||!p||document.hidden||d)){w=!1,d=!0;try{i.update(),await S.update({scene:x,camera:f}),r||a.render(x,f)}catch(e){D(e)}finally{d=!1,w&&E()}}};i.addEventListener("change",E);const C=()=>{cancelAnimationFrame(c),c=0,l&&!r&&p&&!document.hidden&&(L(),E())},M=e=>{e.preventDefault(),D(new Error("The browser released its 3D graphics context. The preview and download remain available."))};function R(){r||(r=!0,clearTimeout(n),h.abort(),cancelAnimationFrame(c),T.disconnect(),i.removeEventListener("change",E),i.dispose(),document.removeEventListener("visibilitychange",C),a.domElement.removeEventListener("webglcontextlost",M),v==null||v.dispose(),S.dispose(),a.dispose(),a.forceContextLoss(),a.domElement.remove())}function D(e){r||(R(),A(e instanceof Error?e:new Error(String(e))))}return document.addEventListener("visibilitychange",C),a.domElement.addEventListener("webglcontextlost",M),s("Loading 3D…"),q(h.signal,async()=>{const e=await B(o,h.signal,s);y=e.cached,h.signal.throwIfAborted(),s("Preparing splats…");const m=await V(e.bytes);if(r){m.dispose();return}v=m,x.add(v),await S.update({scene:x,camera:f}),!r&&(a.render(x,f),l=!0,clearTimeout(n),g(""),u({animationDuration:0,animationCount:0,cached:y}),C())}).catch(D),{getViewDirection:()=>f.position.clone().sub(i.target).normalize().toArray(),setVisible:e=>{p=e,C()},setAnimationProgress:e=>{},playAnimation:e=>{},dispose:R}}export{J as createSplatEngine};
|
frontend/dist/assets/theme-BCCL3vyy.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
frontend/dist/assets/theme-PuNCyLrG.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
@import"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&display=swap";.asset-license-badge{display:inline-flex;align-items:center;gap:5px;width:fit-content;max-width:100%;color:var(--muted);font-size:11px;font-weight:400;line-height:1.5;text-decoration:none;white-space:nowrap}.asset-license-badge svg{flex-shrink:0}a.asset-license-badge:hover{text-decoration:underline;text-underline-offset:3px}a.asset-license-badge:focus-visible{outline:2px solid var(--active);outline-offset:3px;border-radius:3px}.asset-license-credits{margin:10px 0;font-size:12px;line-height:1.55;overflow-wrap:anywhere;color:var(--muted)}.asset-license-credits summary{cursor:pointer;width:fit-content;font-weight:400}.asset-license-credits p{white-space:pre-wrap;margin:8px 0}.asset-license-credits a{display:inline-flex;align-items:center;gap:5px;margin:4px 12px 4px 0;color:inherit}.asset-license-credits small{display:block;margin-top:8px}.managed-card-meta,.managed-author{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:6px}.managed-card-meta .asset-state{margin:0}.managed-author .asset-license-badge{font-size:12px}.managed-detail>.asset-license-credits{margin:12px 0 20px}.selection-meta{flex-wrap:wrap}.selection-details>.asset-license-credits{margin:0 0 12px}.managed-title .managed-author>span{margin:0}html:root[data-theme=light],html:root:not([data-theme]){color-scheme:light;--ink:#20242d;--muted:#5f6b7d;--secondary:#475467;--line:#e2e6ed;--page:#f8f9fc;--canvas:#f5f7fb;--dots:#d8dee9;--surface:#fff;--panel:#fbfcfe;--glass:#ffffffed;--quiet:#fbfcfedc;--hover:#edf2fa;--selected:#eaf1ff;--active:#1d4ed8;--purple:#3b6fd7;--placeholder:#667085;--focus:#2563eb;--focus-border:#7ca5f4;--primary:#1d4ed8;--primary-hover:#1e40af;--on-primary:#fff;--topbar-start:#f5f7fbfa;--topbar-end:#f5f7fb00;--label:#fbfcfeed;--status:#fbfcfeed;--switch:#dbe2ef;--spinner-track:#dce6f7;--spinner:#2563eb;--scrim:#0b102066;--basket-status:#475467;--warning-bg:#fff8e7;--warning-ink:#805b10;--warning-line:#efdda9;--danger:#b34236;--faint:#a4b1c7;--wash:#eef2f9;--stage-glow:#fbfcff;--shadow:#10182812;--community-accent:#ffcf40;--community-wash:#fff4c7;--community-ink:#855b00}html:root[data-theme=dark]{color-scheme:dark;--ink:#eef0f5;--muted:#a4adbe;--secondary:#c1cada;--line:#303746;--page:#0c1018;--canvas:#10151f;--dots:#293344;--surface:#171c27;--panel:#141a25;--glass:#171c27f2;--quiet:#1a2230dc;--hover:#242e40;--selected:#213452;--active:#a9ccff;--purple:#8eb8fa;--placeholder:#8996ad;--focus:#9cc5ff;--focus-border:#567fbb;--primary:#a9ccff;--primary-hover:#c2dcff;--on-primary:#11233c;--topbar-start:#10151ffa;--topbar-end:#10151f00;--label:#1a2230f2;--status:#1a2230f2;--switch:#39465c;--spinner-track:#33425b;--spinner:#a9ccff;--scrim:#05091480;--basket-status:#c1cada;--warning-bg:#30291b;--warning-ink:#f0cf85;--warning-line:#55452a;--danger:#f6aaa2;--faint:#64738d;--wash:#1a2537;--stage-glow:#1c2a42;--shadow:#00000030;--community-accent:#ffd34c;--community-wash:#392f16;--community-ink:#ffdc78}:root{font-family:DM Sans,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--ink);background:var(--page);--green:var(--primary)}body{background:var(--page)}.workspace-controls{display:flex;align-items:center;gap:12px;position:absolute;left:50%;transform:translate(-50%)}.app-header .workspace-controls nav{position:static;transform:none}.theme-control{display:flex;flex-shrink:0;padding:0;margin-left:8px}.theme-control button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--muted)}.theme-control button:hover{color:var(--ink);background:var(--hover)}.sign-in-short{display:none}.user-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.error-help{display:inline-flex;align-items:center;gap:4px;margin-top:8px;text-decoration:underline}@media(max-width:480px){.sign-in-full{display:none}.sign-in-short{display:inline}.theme-control{margin-left:2px}.theme-control button{width:36px;height:36px}.user-name{max-width:70px}}.primary,.basket-primary{color:var(--on-primary)}@media(max-width:1100px){.workspace-controls{position:static;transform:none;gap:8px}}@media(max-width:760px){.workspace-controls{position:absolute;left:20px;right:20px;bottom:10px;transform:none;gap:10px}.app-header .workspace-controls nav{position:static;inset:auto;flex:1;min-width:0}}.brand-icon{background:var(--community-wash);color:var(--community-ink)}.commons-hero{position:relative;isolation:isolate;padding:28px 5%;gap:24px;overflow:hidden;background:linear-gradient(115deg,var(--surface) 30%,var(--page) 70%,var(--selected));align-items:center}.commons-hero .hero-content{position:relative;z-index:1;min-width:0}.commons-hero .hero-eyebrow{display:flex;align-items:center;gap:7px;color:var(--community-ink);font-size:10px;font-weight:600;letter-spacing:.8px;text-transform:uppercase;margin:0 0 12px}.commons-hero h1{font-size:clamp(25px,2.35vw,38px);font-weight:550;letter-spacing:-1.2px;line-height:1.12}.commons-hero h1 span{font-weight:450;color:var(--secondary)}.commons-hero .hero-copy{display:block;max-width:450px;font-size:12px;line-height:1.65;margin:14px 0 18px;color:var(--muted)}.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.hero-actions>.primary{min-height:42px;font-size:12px}.hero-dataset-link{background:transparent;border-color:transparent;font-size:12px;padding:10px;color:var(--secondary)}.hero-dataset-link:hover{color:var(--active);background:var(--hover)}.hero-mark{position:relative;flex:0 0 156px;width:156px;height:156px;display:grid;place-items:center;color:var(--active);border-radius:36px;background:var(--selected);transform:rotate(-8deg);margin-right:20px}.hero-mark>svg{transform:rotate(8deg)}.hero-piece{position:absolute;display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--line);background:var(--surface);border-radius:14px;transform:rotate(8deg)}.hero-piece-one{top:-16px;left:-20px}.hero-piece-two{bottom:-16px;right:-20px;background:var(--community-wash);color:var(--community-ink)}.hero-mark i{position:absolute;width:5px;height:5px;background:var(--community-accent);border-radius:50%}.hero-mark i:nth-last-child(3){top:-18px;right:20px}.hero-mark i:nth-last-child(2){bottom:5px;left:-20px}.hero-mark i:last-child{right:-27px;top:40px}@media(min-width:1440px)and (max-width:1740px){.commons-hero .hero-mark{flex-basis:110px;width:110px;height:110px;margin-right:12px}.hero-mark>svg{width:52px;height:52px}.commons-hero{padding:24px 5%}.commons-hero h1{font-size:29px}}@media(max-width:760px){.commons-hero{padding:22px 20px;align-items:start}.commons-hero h1{font-size:26px;letter-spacing:-.8px}.commons-hero .hero-eyebrow{font-size:9px;margin-bottom:10px}.commons-hero .hero-copy{font-size:11px;margin:10px 0 14px;max-width:340px}.hero-mark,.hero-desktop-break{display:none}.hero-actions{gap:4px}.hero-actions>.primary,.hero-dataset-link{font-size:11px;min-height:40px}.hero-dataset-link{padding-inline:8px}}@media(max-height:650px)and (orientation:landscape){.commons-hero{padding-block:14px}.commons-hero h1{font-size:24px}.commons-hero .hero-copy{margin:8px 0 10px}.hero-mark{display:none}}
|
frontend/dist/assets/viewer-engine-JasH7Dxn.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
frontend/dist/assets/viewer-framing-MVFo3Fwa.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{v as i,H as a,J as f}from"./theme-BCCL3vyy.js";function o(n){var e;const r=n.previewCrop;if(!(!i(r)||r[3]!==1024||(r[4]??r[3])!==1024)&&(n.format==="ply-3dgs"&&n.camera||(e=n.preview)!=null&&e.includes(`/scenario-hd/v1/images/${n.id}/`)))return r}function u(n,r){const e=a(new Uint8ClampedArray(n.buffer,n.byteOffset,n.byteLength),r,r);if(!e)return;const t=f(e.width,e.height);return[e.left-t.left,r-e.top-e.height-t.top,t.side,r]}function h(n,r,e){return{width:n*(e?e[3]/e[2]:1),height:r*(e?(e[4]??e[3])/e[2]:1)}}export{h as a,u as c,o as r};
|
frontend/dist/explore.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
-
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover"/><title>Collection · IDOL Commons</title> <script type="module" crossorigin src="/assets/explore-
|
| 2 |
<link rel="modulepreload" crossorigin href="/assets/modulepreload-polyfill-B5Qt9EMX.js">
|
| 3 |
-
<link rel="modulepreload" crossorigin href="/assets/theme-
|
| 4 |
-
<link rel="modulepreload" crossorigin href="/assets/viewer-framing-
|
| 5 |
-
<link rel="stylesheet" crossorigin href="/assets/theme-
|
| 6 |
<link rel="stylesheet" crossorigin href="/assets/explore-er6MCJzA.css">
|
| 7 |
</head><body><div id="root"></div></body></html>
|
|
|
|
| 1 |
+
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover"/><title>Collection · IDOL Commons</title> <script type="module" crossorigin src="/assets/explore-DEJ9qBW-.js"></script>
|
| 2 |
<link rel="modulepreload" crossorigin href="/assets/modulepreload-polyfill-B5Qt9EMX.js">
|
| 3 |
+
<link rel="modulepreload" crossorigin href="/assets/theme-BCCL3vyy.js">
|
| 4 |
+
<link rel="modulepreload" crossorigin href="/assets/viewer-framing-MVFo3Fwa.js">
|
| 5 |
+
<link rel="stylesheet" crossorigin href="/assets/theme-PuNCyLrG.css">
|
| 6 |
<link rel="stylesheet" crossorigin href="/assets/explore-er6MCJzA.css">
|
| 7 |
</head><body><div id="root"></div></body></html>
|
frontend/dist/index.html
CHANGED
|
@@ -14,11 +14,11 @@
|
|
| 14 |
<meta name="twitter:card" content="summary"/>
|
| 15 |
<meta name="twitter:title" content="IDOL Commons · Create, share and explore 3D"/>
|
| 16 |
<meta name="twitter:description" content="Create, share and explore open 3D assets."/>
|
| 17 |
-
<script type="module" crossorigin src="/assets/main-
|
| 18 |
<link rel="modulepreload" crossorigin href="/assets/modulepreload-polyfill-B5Qt9EMX.js">
|
| 19 |
-
<link rel="modulepreload" crossorigin href="/assets/theme-
|
| 20 |
-
<link rel="stylesheet" crossorigin href="/assets/theme-
|
| 21 |
-
<link rel="stylesheet" crossorigin href="/assets/main-
|
| 22 |
</head>
|
| 23 |
<body><div id="root"></div></body>
|
| 24 |
</html>
|
|
|
|
| 14 |
<meta name="twitter:card" content="summary"/>
|
| 15 |
<meta name="twitter:title" content="IDOL Commons · Create, share and explore 3D"/>
|
| 16 |
<meta name="twitter:description" content="Create, share and explore open 3D assets."/>
|
| 17 |
+
<script type="module" crossorigin src="/assets/main-CEchLPfe.js"></script>
|
| 18 |
<link rel="modulepreload" crossorigin href="/assets/modulepreload-polyfill-B5Qt9EMX.js">
|
| 19 |
+
<link rel="modulepreload" crossorigin href="/assets/theme-BCCL3vyy.js">
|
| 20 |
+
<link rel="stylesheet" crossorigin href="/assets/theme-PuNCyLrG.css">
|
| 21 |
+
<link rel="stylesheet" crossorigin href="/assets/main-CS0N2tqq.css">
|
| 22 |
</head>
|
| 23 |
<body><div id="root"></div></body>
|
| 24 |
</html>
|
frontend/dist/terms-fr.html
CHANGED
|
@@ -1,2 +1,2 @@
|
|
| 1 |
-
<!doctype html><html lang="fr"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Une collection commune. Une contribution volontaire. · IDOL Commons</title><style>body{font:16px/1.7 system-ui;color:#20242d;background:#f8f9fc;max-width:780px;margin:40px auto;padding:0 24px 60px}nav{display:flex;justify-content:space-between;gap:20px}h1{font-size:32px;line-height:1.2}h2{font-size:21px;margin-top:32px}a{color:#1d4ed8}small{color:#667085}li{margin:8px 0}table{border-collapse:collapse;width:100%;font-size:14px}td,th{border-bottom:1px solid #dce0e9;padding:10px;text-align:left}@media(prefers-color-scheme:dark){body{background:#151923;color:#e5e9f2}a{color:#a3b9ff}small{color:#a8b0c3}}</style></head><body><nav><a href="/">← Retour à IDOL Commons</a><a href="/terms.html" lang="en">English</a></nav><h1>Une collection commune. Une contribution volontaire.</h1><small>Conditions de publication 1.3.0 · Version de développement</small><p>
|
| 2 |
|
|
|
|
| 1 |
+
<!doctype html><html lang="fr"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Une collection commune. Une contribution volontaire. · IDOL Commons</title><style>body{font:16px/1.7 system-ui;color:#20242d;background:#f8f9fc;max-width:780px;margin:40px auto;padding:0 24px 60px}nav{display:flex;justify-content:space-between;gap:20px}h1{font-size:32px;line-height:1.2}h2{font-size:21px;margin-top:32px}a{color:#1d4ed8}small{color:#667085}li{margin:8px 0}table{border-collapse:collapse;width:100%;font-size:14px}td,th{border-bottom:1px solid #dce0e9;padding:10px;text-align:left}@media(prefers-color-scheme:dark){body{background:#151923;color:#e5e9f2}a{color:#a3b9ff}small{color:#a8b0c3}}</style></head><body><nav><a href="/">← Retour à IDOL Commons</a><a href="/terms.html" lang="en">English</a></nav><h1>Une collection commune. Une contribution volontaire.</h1><small>Conditions de publication 1.3.0 · Version de développement</small><p>Vos résultats restent privés tant que vous ne les publiez pas. La publication nécessite une connexion Hugging Face et votre confirmation explicite.</p><section><h2>Ce qui devient public</h2><p>Le PLY 3DGS original, les aperçus rendus depuis cet objet, le titre, la description, la catégorie, les mots-clés, le nom et l’identifiant du compte HF vérifié, les paramètres, la provenance, les licences accordées et les mentions publiques. Votre image source et vos jetons ne sont pas distribués. Votre prompt Z-Image-Turbo reste privé par défaut. Une option distincte, décochée, permet de publier le prompt original complet dans la fiche et l’historique du dataset. Ce choix est enregistré avec les conditions 1.3.0 ; les anciens prompts privés ne sont jamais révélés automatiquement. Les images, prompts et résultats privés expirent après 24 heures ; les preuves de consentement et journaux ont leurs propres durées de conservation documentées.</p></section><section><h2>Descriptions proposées</h2><p>L’application propose une description modifiable en français et en anglais, une catégorie et des mots-clés à partir du rendu de l’objet à l’aide d’un modèle visuel. Ces suggestions peuvent être inexactes. Relisez-les avant publication ; les champs que vous avez modifiés sont conservés. Les exemples IDOL connus utilisent des fiches déjà relues.</p></section><section><h2>Choisir une licence que vous pouvez accorder</h2><p>Vous proposez uniquement les droits que vous détenez sur l’objet, ses aperçus et ses informations éditoriales, sous la licence choisie. Le texte intégral de la licence fait foi. Les conditions des sources restent applicables. Une licence ne crée pas de droit d’auteur sur un résultat non protégeable et ne vous accorde pas les droits détenus par des tiers : droits d’auteur, marques, vie privée ou droit à l’image notamment. Apache prévoit ses propres dispositions limitées sur les brevets ; aucune autorisation plus large ne doit en être déduite.</p></section><table><thead><tr><th>Licence</th><th>Conditions principales</th></tr></thead><tbody><tr><td><a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a></td><td>Citer l’auteur, fournir un lien vers la licence et indiquer les modifications.</td></tr><tr><td><a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a></td><td>Citer l’auteur, fournir un lien vers la licence et indiquer les modifications. Partager les adaptations sous la même licence ou une licence compatible.</td></tr><tr><td><a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0</a></td><td>Renonciation aux seuls droits auxquels vous pouvez renoncer ; licence de repli si la renonciation ne peut pas s’appliquer.</td></tr><tr><td><a href="https://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a></td><td>Conserver la licence, les mentions de copyright et NOTICE applicables ; indiquer les modifications.</td></tr><tr><td><a href="https://opensource.org/license/mit">MIT</a></td><td>Conserver les mentions de copyright et d’autorisation.</td></tr></tbody></table><section><h2>Sources, exemples et autorisations</h2><p>Le dépôt et le modèle IDOL déclarent Apache-2.0. Les droits de chaque image d’exemple et des sujets représentés ne sont pas vérifiés individuellement. La licence du dépôt ne prouve pas que chaque image ou résultat peut être distribué sous cette licence. Pour un exemple connu, indiquez une source sous licence compatible ou une autorisation distincte. Ne le déclarez pas comme votre propre création source. Posséder une photo ou utiliser une IA ne donne pas nécessairement de droits sur le logo, personnage, design ou individu représenté.</p></section><section><h2>Crédits et mentions publics</h2><p>Fournissez les crédits et autorisations nécessaires. Apache/MIT exigent une mention de copyright ; les sources sous Apache/MIT exigent la conservation des mentions de copyright et NOTICE applicables. L’application joint les textes de licence et mentions publiques aux nouveaux objets. Ne placez pas de contrats privés, coordonnées ou preuves sensibles dans ces champs publics. La politique d’admission des licences sources est volontairement prudente ; elle ne constitue pas une analyse juridique exhaustive de compatibilité. Les variantes NC, ND et les restrictions personnalisées ne sont pas proposées.</p></section><section><h2>Confirmer avant de publier</h2><p>Publiez uniquement du contenu que vous pouvez partager légalement sous les conditions choisies. Confirmez vos droits et examinez les droits de tiers, personnes identifiables, informations privées et contenus inappropriés avant publication. Ne publiez pas de contenu illégal, contrefaisant, intime non consenti ou sexuel impliquant des mineurs. L’identité HF et la validation technique du PLY ne prouvent ni propriété juridique, ni originalité, ni conformité du contenu. Il s’agit de déclarations du contributeur, pas d’une certification juridique.</p></section><section><h2>Modification et licences antérieures</h2><p>Mes contributions permet de modifier les informations, crédits et licence préférée ou de choisir une autre vignette depuis l’objet 3D. Ajouter une licence exige une nouvelle confirmation. Les licences déjà accordées et leurs mentions sont conservées. Changer la licence préférée ou retirer l’objet ne révoque pas rétroactivement les autorisations valablement accordées. Chaque révision conserve sa fiche source ; une nouvelle autorisation ne régularise pas une publication antérieure illégale.</p></section><section><h2>Signalement et retrait</h2><p>Un signalement accepté depuis un compte connecté masque l’objet du catalogue public de l’application et des paniers en attendant son examen. L’auteur peut encore le consulter dans Mes contributions ; le responsable l’examine dans Modération. Ce masquage ne supprime pas les fichiers du dataset public. L’auteur peut confirmer Retirer la contribution pour supprimer les fichiers courants et l’entrée du catalogue. L’historique Git, les copies, forks et caches peuvent subsister ; ni effacement total ni délai de réponse garanti ne sont promis. Les cas graves peuvent nécessiter l’intervention de HF et un traitement de l’historique.</p></section><section><h2>Indicateurs communautaires</h2><p>Les mentions J’aime nécessitent une connexion HF et peuvent être retirées. Seuls les totaux sont publics. « Dans les paniers » compte les paniers de navigateur contenant encore l’objet, synchronisés au cours des 90 derniers jours. Les ajouts, retraits et le vidage mettent à jour ce compteur. Un cookie signé et des enregistrements privés avec identifiant haché permettent la synchronisation indépendamment de la connexion HF ; ils expirent après 90 jours d’inactivité. Votre sélection reste sur votre appareil. Les navigateurs sont comptés séparément ; une synchronisation échouée ou un effacement du stockage peut affecter les totaux jusqu’à synchronisation ou expiration. L’historique des ajouts au panier et les demandes de téléchargement restent des indicateurs distincts, comptés au plus une fois par objet et compte ou session chaque jour, sans prouver la sauvegarde d’un fichier ni compter tous les téléchargements directs sur HF. Les empreintes de dédoublonnage expirent après 48 heures ; celles des votes actifs permettent de retirer un J’aime. L’historique public des totaux peut subsister.</p></section><h2>Contact et signalement HF</h2><p><a href="https://huggingface.co/fffiloni">@fffiloni</a> · <a href="https://huggingface.co/datasets/fffiloni/idol-community-assets/blob/main/RIGHTS-AND-REMOVAL.md">Procédure de retrait</a> · <a href="https://huggingface.co/content-policy">Hugging Face Content Policy</a>.</p><p>Utilisez les canaux privés appropriés de HF pour les preuves sensibles ou notifications de droits ; les discussions publiques du dataset ne sont pas confidentielles.</p></body></html>
|
| 2 |
|
frontend/public/terms-fr.html
CHANGED
|
@@ -1,2 +1,2 @@
|
|
| 1 |
-
<!doctype html><html lang="fr"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Une collection commune. Une contribution volontaire. · IDOL Commons</title><style>body{font:16px/1.7 system-ui;color:#20242d;background:#f8f9fc;max-width:780px;margin:40px auto;padding:0 24px 60px}nav{display:flex;justify-content:space-between;gap:20px}h1{font-size:32px;line-height:1.2}h2{font-size:21px;margin-top:32px}a{color:#1d4ed8}small{color:#667085}li{margin:8px 0}table{border-collapse:collapse;width:100%;font-size:14px}td,th{border-bottom:1px solid #dce0e9;padding:10px;text-align:left}@media(prefers-color-scheme:dark){body{background:#151923;color:#e5e9f2}a{color:#a3b9ff}small{color:#a8b0c3}}</style></head><body><nav><a href="/">← Retour à IDOL Commons</a><a href="/terms.html" lang="en">English</a></nav><h1>Une collection commune. Une contribution volontaire.</h1><small>Conditions de publication 1.3.0 · Version de développement</small><p>
|
| 2 |
|
|
|
|
| 1 |
+
<!doctype html><html lang="fr"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Une collection commune. Une contribution volontaire. · IDOL Commons</title><style>body{font:16px/1.7 system-ui;color:#20242d;background:#f8f9fc;max-width:780px;margin:40px auto;padding:0 24px 60px}nav{display:flex;justify-content:space-between;gap:20px}h1{font-size:32px;line-height:1.2}h2{font-size:21px;margin-top:32px}a{color:#1d4ed8}small{color:#667085}li{margin:8px 0}table{border-collapse:collapse;width:100%;font-size:14px}td,th{border-bottom:1px solid #dce0e9;padding:10px;text-align:left}@media(prefers-color-scheme:dark){body{background:#151923;color:#e5e9f2}a{color:#a3b9ff}small{color:#a8b0c3}}</style></head><body><nav><a href="/">← Retour à IDOL Commons</a><a href="/terms.html" lang="en">English</a></nav><h1>Une collection commune. Une contribution volontaire.</h1><small>Conditions de publication 1.3.0 · Version de développement</small><p>Vos résultats restent privés tant que vous ne les publiez pas. La publication nécessite une connexion Hugging Face et votre confirmation explicite.</p><section><h2>Ce qui devient public</h2><p>Le PLY 3DGS original, les aperçus rendus depuis cet objet, le titre, la description, la catégorie, les mots-clés, le nom et l’identifiant du compte HF vérifié, les paramètres, la provenance, les licences accordées et les mentions publiques. Votre image source et vos jetons ne sont pas distribués. Votre prompt Z-Image-Turbo reste privé par défaut. Une option distincte, décochée, permet de publier le prompt original complet dans la fiche et l’historique du dataset. Ce choix est enregistré avec les conditions 1.3.0 ; les anciens prompts privés ne sont jamais révélés automatiquement. Les images, prompts et résultats privés expirent après 24 heures ; les preuves de consentement et journaux ont leurs propres durées de conservation documentées.</p></section><section><h2>Descriptions proposées</h2><p>L’application propose une description modifiable en français et en anglais, une catégorie et des mots-clés à partir du rendu de l’objet à l’aide d’un modèle visuel. Ces suggestions peuvent être inexactes. Relisez-les avant publication ; les champs que vous avez modifiés sont conservés. Les exemples IDOL connus utilisent des fiches déjà relues.</p></section><section><h2>Choisir une licence que vous pouvez accorder</h2><p>Vous proposez uniquement les droits que vous détenez sur l’objet, ses aperçus et ses informations éditoriales, sous la licence choisie. Le texte intégral de la licence fait foi. Les conditions des sources restent applicables. Une licence ne crée pas de droit d’auteur sur un résultat non protégeable et ne vous accorde pas les droits détenus par des tiers : droits d’auteur, marques, vie privée ou droit à l’image notamment. Apache prévoit ses propres dispositions limitées sur les brevets ; aucune autorisation plus large ne doit en être déduite.</p></section><table><thead><tr><th>Licence</th><th>Conditions principales</th></tr></thead><tbody><tr><td><a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a></td><td>Citer l’auteur, fournir un lien vers la licence et indiquer les modifications.</td></tr><tr><td><a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a></td><td>Citer l’auteur, fournir un lien vers la licence et indiquer les modifications. Partager les adaptations sous la même licence ou une licence compatible.</td></tr><tr><td><a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0</a></td><td>Renonciation aux seuls droits auxquels vous pouvez renoncer ; licence de repli si la renonciation ne peut pas s’appliquer.</td></tr><tr><td><a href="https://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a></td><td>Conserver la licence, les mentions de copyright et NOTICE applicables ; indiquer les modifications.</td></tr><tr><td><a href="https://opensource.org/license/mit">MIT</a></td><td>Conserver les mentions de copyright et d’autorisation.</td></tr></tbody></table><section><h2>Sources, exemples et autorisations</h2><p>Le dépôt et le modèle IDOL déclarent Apache-2.0. Les droits de chaque image d’exemple et des sujets représentés ne sont pas vérifiés individuellement. La licence du dépôt ne prouve pas que chaque image ou résultat peut être distribué sous cette licence. Pour un exemple connu, indiquez une source sous licence compatible ou une autorisation distincte. Ne le déclarez pas comme votre propre création source. Posséder une photo ou utiliser une IA ne donne pas nécessairement de droits sur le logo, personnage, design ou individu représenté.</p></section><section><h2>Crédits et mentions publics</h2><p>Fournissez les crédits et autorisations nécessaires. Apache/MIT exigent une mention de copyright ; les sources sous Apache/MIT exigent la conservation des mentions de copyright et NOTICE applicables. L’application joint les textes de licence et mentions publiques aux nouveaux objets. Ne placez pas de contrats privés, coordonnées ou preuves sensibles dans ces champs publics. La politique d’admission des licences sources est volontairement prudente ; elle ne constitue pas une analyse juridique exhaustive de compatibilité. Les variantes NC, ND et les restrictions personnalisées ne sont pas proposées.</p></section><section><h2>Confirmer avant de publier</h2><p>Publiez uniquement du contenu que vous pouvez partager légalement sous les conditions choisies. Confirmez vos droits et examinez les droits de tiers, personnes identifiables, informations privées et contenus inappropriés avant publication. Ne publiez pas de contenu illégal, contrefaisant, intime non consenti ou sexuel impliquant des mineurs. L’identité HF et la validation technique du PLY ne prouvent ni propriété juridique, ni originalité, ni conformité du contenu. Il s’agit de déclarations du contributeur, pas d’une certification juridique.</p></section><section><h2>Modification et licences antérieures</h2><p>Mes contributions permet de modifier les informations, crédits et licence préférée ou de choisir une autre vignette depuis l’objet 3D. Ajouter une licence exige une nouvelle confirmation. Les licences déjà accordées et leurs mentions sont conservées. Changer la licence préférée ou retirer l’objet ne révoque pas rétroactivement les autorisations valablement accordées. Chaque révision conserve sa fiche source ; une nouvelle autorisation ne régularise pas une publication antérieure illégale.</p></section><section><h2>Signalement et retrait</h2><p>Un signalement accepté depuis un compte connecté masque l’objet du catalogue public de l’application et des paniers en attendant son examen. L’auteur peut encore le consulter dans Mes contributions ; le responsable l’examine dans Modération. Ce masquage ne supprime pas les fichiers du dataset public. L’auteur peut confirmer Retirer la contribution pour supprimer les fichiers courants et l’entrée du catalogue. L’historique Git, les copies, forks et caches peuvent subsister ; ni effacement total ni délai de réponse garanti ne sont promis. Les cas graves peuvent nécessiter l’intervention de HF et un traitement de l’historique.</p></section><section><h2>Indicateurs communautaires</h2><p>Les mentions J’aime nécessitent une connexion HF et peuvent être retirées. Seuls les totaux sont publics. « Dans les paniers » compte les paniers de navigateur contenant encore l’objet, synchronisés au cours des 90 derniers jours. Les ajouts, retraits et le vidage mettent à jour ce compteur. Un cookie signé et des enregistrements privés avec identifiant haché permettent la synchronisation indépendamment de la connexion HF ; ils expirent après 90 jours d’inactivité. Votre sélection reste sur votre appareil. Les navigateurs sont comptés séparément ; une synchronisation échouée ou un effacement du stockage peut affecter les totaux jusqu’à synchronisation ou expiration. L’historique des ajouts au panier et les demandes de téléchargement restent des indicateurs distincts, comptés au plus une fois par objet et compte ou session chaque jour, sans prouver la sauvegarde d’un fichier ni compter tous les téléchargements directs sur HF. Les empreintes de dédoublonnage expirent après 48 heures ; celles des votes actifs permettent de retirer un J’aime. L’historique public des totaux peut subsister.</p></section><h2>Contact et signalement HF</h2><p><a href="https://huggingface.co/fffiloni">@fffiloni</a> · <a href="https://huggingface.co/datasets/fffiloni/idol-community-assets/blob/main/RIGHTS-AND-REMOVAL.md">Procédure de retrait</a> · <a href="https://huggingface.co/content-policy">Hugging Face Content Policy</a>.</p><p>Utilisez les canaux privés appropriés de HF pour les preuves sensibles ou notifications de droits ; les discussions publiques du dataset ne sont pas confidentielles.</p></body></html>
|
| 2 |
|
frontend/scripts/label-share-check.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
/** Real compiled UI, isolated HTTP fixtures. No GPU, HF identity or public writes. */
|
| 2 |
-
import {chromium} from 'playwright';
|
| 3 |
import {readFile,writeFile,mkdir} from 'node:fs/promises';
|
| 4 |
import {createServer} from 'node:http';
|
| 5 |
import {resolve,extname} from 'node:path';
|
|
@@ -8,9 +8,10 @@ const root=resolve('frontend/dist'),out=resolve(process.env.QA_OUTPUT_DIR||'repo
|
|
| 8 |
await mkdir(out,{recursive:true});
|
| 9 |
const server=createServer(async(req,res)=>{try{const pathname=new URL(req.url,'http://localhost').pathname,p=resolve(root,'.'+(pathname==='/'?'/index.html':pathname));assert.ok(p.startsWith(root+'/'));res.setHeader('Content-Type',{'.html':'text/html','.js':'text/javascript','.css':'text/css','.png':'image/png'}[extname(p)]||'application/octet-stream');res.end(await readFile(p));}catch{res.writeHead(404);res.end();}});
|
| 10 |
await new Promise(ok=>server.listen(0,'127.0.0.1',ok));const origin='http://127.0.0.1:'+server.address().port;
|
| 11 |
-
const
|
|
|
|
| 12 |
const pixel='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIHWP4z8DwHwAFgAI/ScLbtAAAAABJRU5ErkJggg==',results=[];
|
| 13 |
-
try{for(const [name,width,height,language,theme,example] of [['desktop',1440,1050,'en','light',false],['split-fr',1100,900,'fr','dark',false],['phone',390,844,'fr','light',false],['narrow',320,740,'
|
| 14 |
const context=await browser.newContext({viewport:{width,height},reducedMotion:'reduce',hasTouch:width<1100}),page=await context.newPage(),errors=[],posts=[];
|
| 15 |
page.on('pageerror',e=>errors.push(e.message));
|
| 16 |
await context.addInitScript(({language,theme,example})=>{localStorage.setItem('idol:language',language);localStorage.setItem('idol-commons:theme:v1',theme);if(example)sessionStorage.setItem('idol:example',JSON.stringify({image_id:'input',preset:'examples/fig-axolotl.webp'}));},{language,theme,example});
|
|
@@ -28,7 +29,14 @@ try{for(const [name,width,height,language,theme,example] of [['desktop',1440,105
|
|
| 28 |
const source=id=>panel.locator('.source-choice input[value="'+id+'"]'),licence=id=>panel.locator('.licence-choice input[value="'+id+'"]');
|
| 29 |
const shot=async suffix=>{await panel.screenshot({path:resolve(out,name+'-'+suffix+'.png')});};
|
| 30 |
try{
|
| 31 |
-
await page.goto(origin+'/?tab=create');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
await panel.locator('select[name=category]').selectOption('animals');await primary.click();await source('unsure').check();assert.equal(await primary.isDisabled(),true);assert.equal(posts.length,0);
|
| 33 |
if(example){assert.equal(await source('own_creation').isDisabled(),true);assert.equal(await source('ai_generated_reviewed').isDisabled(),true);}
|
| 34 |
await source('licensed_source').check();assert.equal(await primary.isDisabled(),true);await panel.getByRole('combobox',{name:language==='fr'?'Licence de la source':'Source licence'}).selectOption('CC-BY-SA-4.0');
|
|
|
|
| 1 |
/** Real compiled UI, isolated HTTP fixtures. No GPU, HF identity or public writes. */
|
| 2 |
+
import {chromium,webkit} from 'playwright';
|
| 3 |
import {readFile,writeFile,mkdir} from 'node:fs/promises';
|
| 4 |
import {createServer} from 'node:http';
|
| 5 |
import {resolve,extname} from 'node:path';
|
|
|
|
| 8 |
await mkdir(out,{recursive:true});
|
| 9 |
const server=createServer(async(req,res)=>{try{const pathname=new URL(req.url,'http://localhost').pathname,p=resolve(root,'.'+(pathname==='/'?'/index.html':pathname));assert.ok(p.startsWith(root+'/'));res.setHeader('Content-Type',{'.html':'text/html','.js':'text/javascript','.css':'text/css','.png':'image/png'}[extname(p)]||'application/octet-stream');res.end(await readFile(p));}catch{res.writeHead(404);res.end();}});
|
| 10 |
await new Promise(ok=>server.listen(0,'127.0.0.1',ok));const origin='http://127.0.0.1:'+server.address().port;
|
| 11 |
+
const browserType=process.env.QA_BROWSER==='webkit'?webkit:chromium;
|
| 12 |
+
const browser=await browserType.launch({headless:true,...(process.env.CHROMIUM_EXECUTABLE?{executablePath:process.env.CHROMIUM_EXECUTABLE}:{}),args:browserType===chromium?['--no-sandbox','--disable-dev-shm-usage','--disable-webgl']:[]});
|
| 13 |
const pixel='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIHWP4z8DwHwAFgAI/ScLbtAAAAABJRU5ErkJggg==',results=[];
|
| 14 |
+
try{for(const [name,width,height,language,theme,example] of [['desktop',1440,1050,'en','light',false],['split-fr',1100,900,'fr','dark',false],['phone',390,844,'fr','light',false],['narrow',320,740,'fr','dark',true]]){
|
| 15 |
const context=await browser.newContext({viewport:{width,height},reducedMotion:'reduce',hasTouch:width<1100}),page=await context.newPage(),errors=[],posts=[];
|
| 16 |
page.on('pageerror',e=>errors.push(e.message));
|
| 17 |
await context.addInitScript(({language,theme,example})=>{localStorage.setItem('idol:language',language);localStorage.setItem('idol-commons:theme:v1',theme);if(example)sessionStorage.setItem('idol:example',JSON.stringify({image_id:'input',preset:'examples/fig-axolotl.webp'}));},{language,theme,example});
|
|
|
|
| 29 |
const source=id=>panel.locator('.source-choice input[value="'+id+'"]'),licence=id=>panel.locator('.licence-choice input[value="'+id+'"]');
|
| 30 |
const shot=async suffix=>{await panel.screenshot({path:resolve(out,name+'-'+suffix+'.png')});};
|
| 31 |
try{
|
| 32 |
+
await page.goto(origin+'/?tab=create');
|
| 33 |
+
await page.locator('.result-actions .primary').waitFor();
|
| 34 |
+
if(language==='fr'){
|
| 35 |
+
const expand=page.locator('.input-toggle[aria-expanded=false]');if(await expand.count())await expand.click();
|
| 36 |
+
await page.locator('.advanced summary').click();assert.match(await page.locator('.advanced').innerText(),/Pas d’échantillonnage/);assert.match(await page.locator('.advanced').innerText(),/niveaux de bruit élevés/);assert.match(await page.locator('.advanced').innerText(),/Guidage CFG/);
|
| 37 |
+
await page.screenshot({path:resolve(out,name+'-settings.png'),fullPage:true});
|
| 38 |
+
}
|
| 39 |
+
await page.locator('.result-actions .primary').click();await panel.locator('input[name=title]').fill('My bird');
|
| 40 |
await panel.locator('select[name=category]').selectOption('animals');await primary.click();await source('unsure').check();assert.equal(await primary.isDisabled(),true);assert.equal(posts.length,0);
|
| 41 |
if(example){assert.equal(await source('own_creation').isDisabled(),true);assert.equal(await source('ai_generated_reviewed').isDisabled(),true);}
|
| 42 |
await source('licensed_source').check();assert.equal(await primary.isDisabled(),true);await panel.getByRole('combobox',{name:language==='fr'?'Licence de la source':'Source licence'}).selectOption('CC-BY-SA-4.0');
|
frontend/scripts/licence-basket-check.mjs
CHANGED
|
@@ -1,16 +1,17 @@
|
|
| 1 |
/** Built UI with isolated API fixtures: no inference or public data writes. */
|
| 2 |
-
import {chromium} from 'playwright';
|
| 3 |
import {readFile,writeFile,mkdir} from 'node:fs/promises';
|
| 4 |
import {createServer} from 'node:http';
|
| 5 |
import {resolve,extname} from 'node:path';
|
| 6 |
import assert from 'node:assert/strict';
|
| 7 |
-
const root=resolve('frontend/dist'),out=resolve('reports/
|
| 8 |
const server=createServer(async(req,res)=>{try{const path=resolve(root,'.'+(new URL(req.url,'http://localhost').pathname==='/'?'/index.html':new URL(req.url,'http://localhost').pathname));assert.ok(path.startsWith(root+'/'));res.setHeader('Content-Type',{'.html':'text/html','.js':'text/javascript','.css':'text/css'}[extname(path)]||'application/octet-stream');res.end(await readFile(path));}catch{res.writeHead(404);res.end();}});
|
| 9 |
await new Promise(ok=>server.listen(0,'127.0.0.1',ok));const origin='http://127.0.0.1:'+server.address().port;
|
| 10 |
-
const
|
|
|
|
| 11 |
const id='11111111-1111-4111-8111-111111111111',pixel='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIHWP4z8DwHwAFgAI/ScLbtAAAAABJRU5ErkJggg==',results=[];
|
| 12 |
let page;
|
| 13 |
-
try{for(const [width,height,language,theme] of [[1440,1000,'en','light'],[1100,900,'fr','dark'],[390,844,'fr','light'],[320,740,'
|
| 14 |
const context=await browser.newContext({viewport:{width,height},reducedMotion:'reduce',hasTouch:width<700});page=await context.newPage();const errors=[];page.on('pageerror',e=>errors.push(e.message));
|
| 15 |
await context.addInitScript(({language,theme})=>{localStorage.setItem('idol:language',language);localStorage.setItem('idol-commons:theme:v1',theme);},{language,theme});
|
| 16 |
let ids=[],version=0,offline=false;const posted=[];
|
|
@@ -29,10 +30,10 @@ try{for(const [width,height,language,theme] of [[1440,1000,'en','light'],[1100,9
|
|
| 29 |
if(p.startsWith('/api/')||p==='/fixture.ply'||p.startsWith('/examples/'))return route.fulfill({status:404,json:{detail:'Fixture'}});
|
| 30 |
assert.equal(req.method(),'GET');return route.continue();
|
| 31 |
});
|
| 32 |
-
const inspect=async()=>{await page.
|
| 33 |
const count=()=>page.locator('.asset-community>span').first().locator('b');
|
| 34 |
const waitCount=async n=>{await count().evaluate((element,value)=>new Promise((ok,bad)=>{const start=Date.now();function check(){if(element.textContent===String(value))return ok();if(Date.now()-start>10000)return bad(Error('Wrong basket count: '+element.textContent));setTimeout(check,30);}check();}),n);};
|
| 35 |
-
await page.goto(origin+'/explore.html');await inspect();assert.
|
| 36 |
await page.locator('.add-to-basket').click();await waitCount(1);await page.locator('.add-to-basket').click();await waitCount(0);
|
| 37 |
await page.locator('.add-to-basket').click();await waitCount(1);await page.reload();await inspect();await waitCount(1);
|
| 38 |
await page.locator('.basket-button').click();await page.locator('.basket-remove').click();await page.locator('.basket-panel>header button').click();await waitCount(0);
|
|
@@ -43,11 +44,14 @@ try{for(const [width,height,language,theme] of [[1440,1000,'en','light'],[1100,9
|
|
| 43 |
if(width===1440){
|
| 44 |
const second=await context.newPage();await second.goto(origin+'/explore.html');await second.locator('.object').click();await second.locator('.add-to-basket[aria-pressed=true]').waitFor();await second.locator('.add-to-basket').click();await waitCount(0);await page.locator('.add-to-basket[aria-pressed=false]').waitFor();await second.close();
|
| 45 |
}
|
| 46 |
-
await page.locator('.selection-actions button').first().click();assert.equal(await page.locator('.asset-license').count(),
|
|
|
|
| 47 |
await page.screenshot({path:resolve(out,width+'-viewer.png')});assert.equal(await page.evaluate(()=>document.documentElement.scrollWidth>innerWidth+1),false);
|
| 48 |
await page.goto(origin+'/?tab=explore');await page.locator('.account-actions,.account-menu').waitFor();const menu=page.locator('.account-menu summary');if(await menu.count())await menu.click();await page.getByRole('button',{name:language==='fr'?'Mes contributions':'My contributions',exact:true}).click();
|
| 49 |
-
|
| 50 |
-
|
|
|
|
|
|
|
| 51 |
results.push({width,height,language,theme,passed:true,syncs:posted.length});await context.close();
|
| 52 |
}}catch(error){if(page)await page.screenshot({path:resolve(out,'failure.png')}).catch(()=>{});throw error;}finally{await writeFile(resolve(out,'results.json'),JSON.stringify(results,null,2));await browser.close();server.close();}
|
| 53 |
console.log(JSON.stringify(results));
|
|
|
|
| 1 |
/** Built UI with isolated API fixtures: no inference or public data writes. */
|
| 2 |
+
import {chromium,webkit} from 'playwright';
|
| 3 |
import {readFile,writeFile,mkdir} from 'node:fs/promises';
|
| 4 |
import {createServer} from 'node:http';
|
| 5 |
import {resolve,extname} from 'node:path';
|
| 6 |
import assert from 'node:assert/strict';
|
| 7 |
+
const root=resolve('frontend/dist'),out=resolve(process.env.QA_OUTPUT_DIR||'reports/french-licence-qa');await mkdir(out,{recursive:true});
|
| 8 |
const server=createServer(async(req,res)=>{try{const path=resolve(root,'.'+(new URL(req.url,'http://localhost').pathname==='/'?'/index.html':new URL(req.url,'http://localhost').pathname));assert.ok(path.startsWith(root+'/'));res.setHeader('Content-Type',{'.html':'text/html','.js':'text/javascript','.css':'text/css'}[extname(path)]||'application/octet-stream');res.end(await readFile(path));}catch{res.writeHead(404);res.end();}});
|
| 9 |
await new Promise(ok=>server.listen(0,'127.0.0.1',ok));const origin='http://127.0.0.1:'+server.address().port;
|
| 10 |
+
const browserType=process.env.QA_BROWSER==='webkit'?webkit:chromium;
|
| 11 |
+
const browser=await browserType.launch({headless:true,args:browserType===chromium?['--no-sandbox','--disable-dev-shm-usage','--disable-webgl']:[]});
|
| 12 |
const id='11111111-1111-4111-8111-111111111111',pixel='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIHWP4z8DwHwAFgAI/ScLbtAAAAABJRU5ErkJggg==',results=[];
|
| 13 |
let page;
|
| 14 |
+
try{for(const [width,height,language,theme] of [[1440,1000,'en','light'],[1100,900,'fr','dark'],[390,844,'fr','light'],[320,740,'fr','dark']]){
|
| 15 |
const context=await browser.newContext({viewport:{width,height},reducedMotion:'reduce',hasTouch:width<700});page=await context.newPage();const errors=[];page.on('pageerror',e=>errors.push(e.message));
|
| 16 |
await context.addInitScript(({language,theme})=>{localStorage.setItem('idol:language',language);localStorage.setItem('idol-commons:theme:v1',theme);},{language,theme});
|
| 17 |
let ids=[],version=0,offline=false;const posted=[];
|
|
|
|
| 30 |
if(p.startsWith('/api/')||p==='/fixture.ply'||p.startsWith('/examples/'))return route.fulfill({status:404,json:{detail:'Fixture'}});
|
| 31 |
assert.equal(req.method(),'GET');return route.continue();
|
| 32 |
});
|
| 33 |
+
const inspect=async()=>{await page.locator('.object').first().click();await page.locator('.selection-meta .asset-license-badge').waitFor();};
|
| 34 |
const count=()=>page.locator('.asset-community>span').first().locator('b');
|
| 35 |
const waitCount=async n=>{await count().evaluate((element,value)=>new Promise((ok,bad)=>{const start=Date.now();function check(){if(element.textContent===String(value))return ok();if(Date.now()-start>10000)return bad(Error('Wrong basket count: '+element.textContent));setTimeout(check,30);}check();}),n);};
|
| 36 |
+
await page.goto(origin+'/explore.html');await inspect();assert.equal(await page.locator('.selection-meta .asset-license-badge').textContent(),'CC BY-SA 4.0');assert.equal(await page.locator('.selection-meta .asset-license-badge').getAttribute('href'),'https://creativecommons.org/licenses/by-sa/4.0/');assert.equal(await page.locator('.license-toggle').count(),0);assert.equal(await page.locator('.asset-license-credits').count(),0);await page.screenshot({path:resolve(out,width+'-viewer-compact.png')});await waitCount(0);
|
| 37 |
await page.locator('.add-to-basket').click();await waitCount(1);await page.locator('.add-to-basket').click();await waitCount(0);
|
| 38 |
await page.locator('.add-to-basket').click();await waitCount(1);await page.reload();await inspect();await waitCount(1);
|
| 39 |
await page.locator('.basket-button').click();await page.locator('.basket-remove').click();await page.locator('.basket-panel>header button').click();await waitCount(0);
|
|
|
|
| 44 |
if(width===1440){
|
| 45 |
const second=await context.newPage();await second.goto(origin+'/explore.html');await second.locator('.object').click();await second.locator('.add-to-basket[aria-pressed=true]').waitFor();await second.locator('.add-to-basket').click();await waitCount(0);await page.locator('.add-to-basket[aria-pressed=false]').waitFor();await second.close();
|
| 46 |
}
|
| 47 |
+
await page.locator('.selection-actions button').first().click();assert.equal(await page.locator('.asset-license-badge').count(),1);assert.equal(await page.locator('.asset-license-credits details').count(),0);await page.locator('.asset-license-credits summary').focus();await page.keyboard.press('Enter');assert.match(await page.locator('.asset-license-credits').innerText(),/LICENSE.txt/);assert.match(await page.locator('.asset-license-credits').innerText(),/CC BY 4.0/);
|
| 48 |
+
if(language==='fr'){assert.match(await page.locator('.asset-specs').innerText(),/1 ko/);assert.match(await page.locator('.asset-license-credits').innerText(),/lien vers la licence/);}
|
| 49 |
await page.screenshot({path:resolve(out,width+'-viewer.png')});assert.equal(await page.evaluate(()=>document.documentElement.scrollWidth>innerWidth+1),false);
|
| 50 |
await page.goto(origin+'/?tab=explore');await page.locator('.account-actions,.account-menu').waitFor();const menu=page.locator('.account-menu summary');if(await menu.count())await menu.click();await page.getByRole('button',{name:language==='fr'?'Mes contributions':'My contributions',exact:true}).click();
|
| 51 |
+
assert.equal(await page.locator('.managed-card .asset-license-badge').textContent(),'CC BY-SA 4.0');assert.equal(await page.locator('.managed-card .asset-license-badge').evaluate(el=>el.tagName),'SPAN');
|
| 52 |
+
await page.locator('.managed-card').click();const licence=page.locator('.managed-title .asset-license-badge');await licence.waitFor();assert.equal(await licence.textContent(),'CC BY-SA 4.0');assert.equal(await page.locator('.license-toggle').count(),0);assert.equal(await page.locator('.managed-detail .asset-license-credits').getAttribute('open'),null);
|
| 53 |
+
await page.screenshot({path:resolve(out,width+'-contribution-compact.png')});assert.equal(await licence.getAttribute('href'),'https://creativecommons.org/licenses/by-sa/4.0/');await page.locator('.managed-detail .asset-license-credits summary').click();assert.match(await page.locator('.managed-detail .asset-license-credits').innerText(),/CC BY 4.0/);assert.equal(await page.locator('.managed-detail .asset-license-credits details').count(),0);
|
| 54 |
+
await page.screenshot({path:resolve(out,width+'-contribution.png')});assert.equal(await page.evaluate(()=>document.documentElement.scrollWidth>innerWidth+1),false);assert.deepEqual(errors,[]);
|
| 55 |
results.push({width,height,language,theme,passed:true,syncs:posted.length});await context.close();
|
| 56 |
}}catch(error){if(page)await page.screenshot({path:resolve(out,'failure.png')}).catch(()=>{});throw error;}finally{await writeFile(resolve(out,'results.json'),JSON.stringify(results,null,2));await browser.close();server.close();}
|
| 57 |
console.log(JSON.stringify(results));
|
frontend/src/AssetLicense.tsx
CHANGED
|
@@ -1,22 +1,10 @@
|
|
| 1 |
-
import {ArrowUpRight,FileText,
|
| 2 |
import {t,useLanguage} from './i18n';
|
| 3 |
import {licenses,type LicenseId} from './licenses';
|
| 4 |
import type {Asset} from './explorer/types';
|
| 5 |
import './asset-license.css';
|
| 6 |
|
| 7 |
type Props=Partial<Pick<Asset,'license'|'licenseUrl'|'attribution'|'licenseGrants'|'licenseDocuments'>>;
|
| 8 |
-
function licenceLabel(license?:string){
|
| 9 |
-
const name=license&&Object.hasOwn(licenses,license)?licenses[license as LicenseId].name:license||t('Not specified');
|
| 10 |
-
return `${t('Licence & credits')} · ${name}`;
|
| 11 |
-
}
|
| 12 |
-
export function LicenseMark({license}:Props){
|
| 13 |
-
useLanguage();const label=licenceLabel(license);
|
| 14 |
-
return <span className="license-mark" role="img" aria-label={label} title={label}><Scale size={14} aria-hidden="true"/></span>;
|
| 15 |
-
}
|
| 16 |
-
export function LicenseButton({license,expanded,controls,onToggle,className='plain-icon'}:Props&{expanded:boolean;controls:string;onToggle:()=>void;className?:string}){
|
| 17 |
-
useLanguage();const label=licenceLabel(license);
|
| 18 |
-
return <button type="button" className={`${className} license-toggle ${expanded?'active':''}`} aria-label={label} title={label} aria-expanded={expanded} aria-controls={controls} onClick={onToggle}><Scale size={18} aria-hidden="true"/></button>;
|
| 19 |
-
}
|
| 20 |
const summaries:Record<LicenseId,string>={
|
| 21 |
'CC-BY-4.0':'Credit the creator, link the licence and indicate changes.',
|
| 22 |
'CC-BY-SA-4.0':'Credit the creator, link the licence and indicate changes. Share adaptations under the same or a compatible licence.',
|
|
@@ -27,22 +15,19 @@ const summaries:Record<LicenseId,string>={
|
|
| 27 |
export function LicenseBadge({license,licenseUrl,link=true}:Props&{link?:boolean}){
|
| 28 |
useLanguage();
|
| 29 |
const known=Object.hasOwn(licenses,license||'')?licenses[license as LicenseId]:undefined;
|
| 30 |
-
const
|
| 31 |
-
const content=<><
|
| 32 |
-
return link&&(known?.url||licenseUrl)?<a className="asset-license-badge" href={known?.url||licenseUrl} target="_blank" rel="noreferrer">{content}</a>:<span className="asset-license-badge">{content}</span>;
|
| 33 |
}
|
| 34 |
-
export default function AssetLicense(props:Props
|
| 35 |
useLanguage();
|
| 36 |
const {license,attribution,licenseGrants=[],licenseDocuments=[]}=props;
|
| 37 |
const earlier=[...new Set(licenseGrants.map(g=>g.license))].filter(id=>id!==license);
|
| 38 |
-
return <
|
| 39 |
-
|
| 40 |
-
{license&&Object.hasOwn(summaries,license)&&<p className="asset-license-summary">{t(summaries[license as LicenseId])}</p>}
|
| 41 |
-
{(attribution||earlier.length>0||licenseDocuments.length>0)&&<details className="asset-license-credits"><summary>{t('Credits & legal notices')}</summary>
|
| 42 |
{attribution&&<p>{attribution}</p>}
|
| 43 |
{earlier.length>0&&<p>{t('Earlier licence grants')}: {earlier.map(id=>Object.hasOwn(licenses,id)?licenses[id as LicenseId].name:id).join(' · ')}</p>}
|
| 44 |
{licenseDocuments.map(d=><a key={d.path} href={d.url} target="_blank" rel="noreferrer"><FileText size={13} aria-hidden="true"/>{d.path.split('/').pop()}<ArrowUpRight size={12} aria-hidden="true"/></a>)}
|
| 45 |
<small>{t('Contributor declaration; not independently verified.')}</small>
|
| 46 |
-
</details>
|
| 47 |
-
</section>;
|
| 48 |
}
|
|
|
|
| 1 |
+
import {ArrowUpRight,FileText,Scale} from 'lucide-react';
|
| 2 |
import {t,useLanguage} from './i18n';
|
| 3 |
import {licenses,type LicenseId} from './licenses';
|
| 4 |
import type {Asset} from './explorer/types';
|
| 5 |
import './asset-license.css';
|
| 6 |
|
| 7 |
type Props=Partial<Pick<Asset,'license'|'licenseUrl'|'attribution'|'licenseGrants'|'licenseDocuments'>>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
const summaries:Record<LicenseId,string>={
|
| 9 |
'CC-BY-4.0':'Credit the creator, link the licence and indicate changes.',
|
| 10 |
'CC-BY-SA-4.0':'Credit the creator, link the licence and indicate changes. Share adaptations under the same or a compatible licence.',
|
|
|
|
| 15 |
export function LicenseBadge({license,licenseUrl,link=true}:Props&{link?:boolean}){
|
| 16 |
useLanguage();
|
| 17 |
const known=Object.hasOwn(licenses,license||'')?licenses[license as LicenseId]:undefined;
|
| 18 |
+
const name=known?.name||license||t('Not specified'),label=`${t('Licence')} · ${name}`;
|
| 19 |
+
const content=<><Scale size={14} aria-hidden="true"/><span>{name}</span></>;
|
| 20 |
+
return link&&(known?.url||licenseUrl)?<a className="asset-license-badge" aria-label={label} title={label} href={known?.url||licenseUrl} target="_blank" rel="noreferrer">{content}</a>:<span className="asset-license-badge" title={label}>{content}</span>;
|
| 21 |
}
|
| 22 |
+
export default function AssetLicense(props:Props){
|
| 23 |
useLanguage();
|
| 24 |
const {license,attribution,licenseGrants=[],licenseDocuments=[]}=props;
|
| 25 |
const earlier=[...new Set(licenseGrants.map(g=>g.license))].filter(id=>id!==license);
|
| 26 |
+
return <details className="asset-license-credits"><summary>{t('Credits & legal notices')}</summary>
|
| 27 |
+
{license&&Object.hasOwn(summaries,license)&&<p className="asset-license-summary">{t(summaries[license as LicenseId])}</p>}
|
|
|
|
|
|
|
| 28 |
{attribution&&<p>{attribution}</p>}
|
| 29 |
{earlier.length>0&&<p>{t('Earlier licence grants')}: {earlier.map(id=>Object.hasOwn(licenses,id)?licenses[id as LicenseId].name:id).join(' · ')}</p>}
|
| 30 |
{licenseDocuments.map(d=><a key={d.path} href={d.url} target="_blank" rel="noreferrer"><FileText size={13} aria-hidden="true"/>{d.path.split('/').pop()}<ArrowUpRight size={12} aria-hidden="true"/></a>)}
|
| 31 |
<small>{t('Contributor declaration; not independently verified.')}</small>
|
| 32 |
+
</details>;
|
|
|
|
| 33 |
}
|
frontend/src/ManageAssets.tsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
-
import {t,useLanguage} from './i18n';
|
| 2 |
import {useEffect,useRef,useState,lazy,Suspense} from 'react';
|
| 3 |
import {ArrowLeft,ArrowUpRight,Camera,Check,ChevronLeft,ChevronRight,Eye,EyeOff,Flag,LoaderCircle,RefreshCw,ShieldCheck,Trash2,Search,X} from 'lucide-react';
|
| 4 |
import type {Asset} from './explorer/types';
|
| 5 |
import ContributionEditor,{type Editable,type DetailsBody,type EditSource} from './ContributionEditor';
|
| 6 |
import './management.css';
|
| 7 |
-
import AssetLicense,{
|
| 8 |
const Stage=lazy(()=>import('./Stage').then(m=>({default:m.Stage})));
|
| 9 |
type Report={id:string;reason:string;message:string;created:number;status:string};
|
| 10 |
type ReviewView='review'|'hidden'|'history'|'all';
|
|
@@ -12,7 +12,7 @@ type Entry={id:string;title:string;author:string;state:string;version:number;ass
|
|
| 12 |
type Page={items:Entry[];total:number;offset:number;has_more:boolean;all_count?:number;counts?:Record<Exclude<ReviewView,'all'>,number>};
|
| 13 |
type Action={id:string;status:string;error?:string;result?:unknown};
|
| 14 |
export type Api=<T>(path:string,method?:string,body?:unknown,key?:string)=>Promise<T>;
|
| 15 |
-
const labels:Record<string,string>={visible:'Public',pending_review:'Under review',hidden:'Hidden',withdrawing:'Removal pending',withdrawn:'Removed'};
|
| 16 |
const reasons:Record<string,string>={rights:'Rights & attribution',privacy:'Privacy',unsafe_content:'Inappropriate content',misleading:'Misleading information',broken:'Broken object',withdraw_own_asset:'Removal request',other:'Other'};
|
| 17 |
const views:Record<ReviewView,string>={review:'Needs review',all:'All contributions',hidden:'Hidden',history:'History'};
|
| 18 |
export default function ManageAssets({mode,initialId,api,close,changed,view}:{mode:'mine'|'moderation';initialId?:string;api:Api;close:()=>void;changed:()=>void;view:(id:string)=>void}){
|
|
@@ -21,7 +21,6 @@ export default function ManageAssets({mode,initialId,api,close,changed,view}:{mo
|
|
| 21 |
const [page,setPage]=useState<Page|null>(null),[offset,setOffset]=useState(0),[selected,setSelected]=useState<Entry|null>(null),[loading,setLoading]=useState(true),[error,setError]=useState(''),[notice,setNotice]=useState('');
|
| 22 |
const [decision,setDecision]=useState<'hide'|'restore'|'withdraw'|null>(null),[note,setNote]=useState(''),[busy,setBusy]=useState(false),[angleBusy,setAngleBusy]=useState(false);
|
| 23 |
const [searchText,setSearchText]=useState(''),[query,setQuery]=useState(''),[searchRevision,setSearchRevision]=useState(0);
|
| 24 |
-
const [licenseId,setLicenseId]=useState<string|null>(null);
|
| 25 |
const [queue,setQueue]=useState<ReviewView>('review');
|
| 26 |
const list=useRef<HTMLDivElement>(null);
|
| 27 |
useEffect(()=>{list.current?.scrollTo({top:0,left:0});},[offset,queue,query]);
|
|
@@ -36,8 +35,8 @@ export default function ManageAssets({mode,initialId,api,close,changed,view}:{mo
|
|
| 36 |
useEffect(()=>{let current=true;setLoading(true);setError('');void refresh().catch(e=>{if(current)setError(e.message);}).finally(()=>{if(current)setLoading(false);});return()=>{current=false;loadVersion.current++;};},[offset,queue,query,searchRevision]);
|
| 37 |
useEffect(()=>{const timer=setTimeout(()=>{setOffset(0);setQuery(searchText.trim());setSearchRevision(n=>n+1);},250);return()=>clearTimeout(timer);},[searchText]);
|
| 38 |
function searchFor(value:string){if(value===searchText)return;loadVersion.current++;setSearchText(value);setLoading(true);}
|
| 39 |
-
function select(item:Entry){
|
| 40 |
-
function closeDetail(){
|
| 41 |
useEffect(()=>{const handler=(event:KeyboardEvent)=>{if(event.key==='Escape'&&!event.defaultPrevented&&!event.isComposing&&selected&&!busy&&!angleBusy&&!document.querySelector('dialog[open]')){event.preventDefault();closeDetail();}};document.addEventListener('keydown',handler);return()=>document.removeEventListener('keydown',handler);},[selected?.id,busy,angleBusy]);
|
| 42 |
function showQueue(value:ReviewView){loadVersion.current++;activeId.current=undefined;setSelected(null);setDecision(null);setNote('');setNotice('');setError('');intent.current=null;setOffset(0);setQueue(value);}
|
| 43 |
function retryKey(body:unknown){const value=JSON.stringify(body);if(intent.current?.body!==value)intent.current={body:value,key:crypto.randomUUID()};return intent.current.key;}
|
|
@@ -68,13 +67,13 @@ export default function ManageAssets({mode,initialId,api,close,changed,view}:{mo
|
|
| 68 |
{!page&&loading?<p className="management-loading" role="status"><LoaderCircle className="spin" size={20}/>{t("Loading your workspace…")}</p>:page&&<div className={`management-layout ${selected?'has-selection':''}`}>
|
| 69 |
<div className="management-list" ref={list} role="region" tabIndex={0} aria-label={t("Contributions list")} aria-busy={loading}><div className="management-list-heading"><span role="status">{loading?t("Searching…"):page.total} {admin&&queue!=='all'?(page.total===1?t("case") : t("cases")):(page.total===1?t("contribution") : t("contributions"))}</span>{admin&&<small>{t(views[queue])}</small>}</div>
|
| 70 |
{!page.items.length?<div className="management-empty"><ShieldCheck size={32}/><h2>{query?t("No matching contributions."):admin?({all:t("No contributions yet."),review:t("No reports to review."),hidden:t("No hidden objects."),history:t("No reviewed cases yet.")}[queue]):t("Your contributions will live here.")}</h2><p>{query?t("Try another word or clear the search."):admin?({all:t("All contributions can be managed here."),review:t("Only objects that need a moderation decision appear here."),hidden:t("Objects kept out of the public viewer appear here."),history:t("Reviewed reports and removed contributions appear here.")}[queue]):t("Published objects stay manageable even after your private generation expires.")}</p></div>:page.items.map(item=><button className={`managed-card ${selected?.id===item.id?'selected':''}`} key={item.id} data-asset-id={item.id} disabled={loading||busy||angleBusy} onClick={()=>select(item)} aria-pressed={selected?.id===item.id}>
|
| 71 |
-
<span className="managed-thumb">{item.asset?<img src={item.asset.previewSmall||item.asset.preview} alt="" loading="lazy"/>:<Trash2 size={22}/>}</span><span className="managed-identity"><strong>{item.title}</strong><span>@{item.author}</span><span className="managed-card-meta"><span className={'asset-state state-'+item.state}>{item.state==='visible'?<Eye size={12}/>:item.state==='pending_review'?<Flag size={12}/>:<EyeOff size={12}/>} {t(labels[item.state])}</span><
|
| 72 |
</button>)}
|
| 73 |
{(offset>0||page.has_more)&&<div className="management-pagination"><button className="secondary" disabled={loading||!offset||busy||angleBusy} onClick={()=>setOffset(Math.max(0,offset-50))}><ChevronLeft size={15}/>{t("Previous")}</button><button className="secondary" disabled={loading||!page.has_more||busy||angleBusy} onClick={()=>setOffset(offset+50)}>{t("Next")}<ChevronRight size={15}/></button></div>}
|
| 74 |
</div>
|
| 75 |
{selected&&<article className="managed-detail" key={selected.id}>
|
| 76 |
-
<div className="managed-title"><div><p className="eyebrow">{admin?t("REVIEW CONTRIBUTION"):t("MANAGE CONTRIBUTION")}</p><h2>{selected.title}</h2><span>@{selected.author}</span></div><div className="managed-title-actions"><span className={'asset-state state-'+selected.state}>{t(labels[selected.state])}</span><
|
| 77 |
-
|
| 78 |
{selected.state!=='visible'&&<p className="visibility-note"><EyeOff size={17}/><span>{selected.state==='withdrawn'?t("Removed from the current dataset. Earlier repository versions and downloaded copies may remain."):selected.state==='withdrawing'?t("Hidden publicly. Retry removal to finish updating the dataset."):t("Hidden from the public viewer. The author and moderators can inspect it here. Thumbnail editing is paused during review. Dataset files remain public until removal.")}</span></p>}
|
| 79 |
{admin&&!selected.review_view&&<p className="visibility-note"><ShieldCheck size={17}/>{t("No reports. Opened directly from the collection.")}</p>}
|
| 80 |
{selected.can_edit_details&&selected.editable&&selected.metadata_sha256&&<ContributionEditor id={selected.id} author={selected.author} source={{editable:selected.editable,version:selected.version,metadata_sha256:selected.metadata_sha256}} blocked={loading||busy||angleBusy} underReview={selected.state!=='visible'} save={saveDetails} reload={reloadDetails}/>}
|
|
@@ -85,7 +84,7 @@ export default function ManageAssets({mode,initialId,api,close,changed,view}:{mo
|
|
| 85 |
{admin&&!!selected.reports?.length&&<section className="private-reports"><h3><Flag size={16}/>{t("Reports ")}<span>{t("Private")}</span></h3>{selected.reports.map(r=><div className="report-card" key={r.id}><div><strong>{t(reasons[r.reason]||r.reason)}</strong><span>{r.status==='open'?t("Open"):t("Reviewed")} · {new Date(r.created*1000).toLocaleDateString()}</span></div><p>{r.message}</p></div>)}</section>}
|
| 86 |
{admin&&selected.review_note&&<section className="review-note"><h3>{t("Last review note ")}<span>{t("Private")}</span></h3><p>{selected.review_note}</p></section>}
|
| 87 |
{selected.state!=='withdrawn'&&<div className="management-actions">{admin&&selected.state!=='withdrawing'&&<button className="secondary" disabled={loading||busy||angleBusy} onClick={()=>{setDecision(selected.state==='visible'?'hide':'restore');setNote('');intent.current=null;}}>{selected.state==='visible'?<EyeOff size={16}/>:<Eye size={16}/>} {selected.state==='visible'?t("Hide from viewer"):t("Restore to collection")}</button>}{admin&&(selected.state==='pending_review'||selected.open_reports>0)&&selected.state!=='withdrawing'&&<button className="secondary" disabled={loading||busy||angleBusy} onClick={()=>{setDecision('hide');setNote('');intent.current=null;}}><EyeOff size={16}/>{t("Keep hidden")}</button>}{selected.can_withdraw&&<button className="secondary danger-button" disabled={loading||busy||angleBusy} onClick={()=>{setDecision('withdraw');setNote('');intent.current=null;}}><Trash2 size={16}/>{selected.state==='withdrawing'?t("Finish removal"):admin?t("Remove from dataset"):t("Withdraw contribution")}</button>}</div>}
|
| 88 |
-
{decision&&<section className="decision-review" aria-label={t("Confirm contribution action")}><h3>{decision==='withdraw'?
|
| 89 |
</article>}
|
| 90 |
</div>}
|
| 91 |
</section>;
|
|
|
|
| 1 |
+
import {t,tf,useLanguage} from './i18n';
|
| 2 |
import {useEffect,useRef,useState,lazy,Suspense} from 'react';
|
| 3 |
import {ArrowLeft,ArrowUpRight,Camera,Check,ChevronLeft,ChevronRight,Eye,EyeOff,Flag,LoaderCircle,RefreshCw,ShieldCheck,Trash2,Search,X} from 'lucide-react';
|
| 4 |
import type {Asset} from './explorer/types';
|
| 5 |
import ContributionEditor,{type Editable,type DetailsBody,type EditSource} from './ContributionEditor';
|
| 6 |
import './management.css';
|
| 7 |
+
import AssetLicense,{LicenseBadge} from './AssetLicense';
|
| 8 |
const Stage=lazy(()=>import('./Stage').then(m=>({default:m.Stage})));
|
| 9 |
type Report={id:string;reason:string;message:string;created:number;status:string};
|
| 10 |
type ReviewView='review'|'hidden'|'history'|'all';
|
|
|
|
| 12 |
type Page={items:Entry[];total:number;offset:number;has_more:boolean;all_count?:number;counts?:Record<Exclude<ReviewView,'all'>,number>};
|
| 13 |
type Action={id:string;status:string;error?:string;result?:unknown};
|
| 14 |
export type Api=<T>(path:string,method?:string,body?:unknown,key?:string)=>Promise<T>;
|
| 15 |
+
const labels:Record<string,string>={visible:'Public',pending_review:'Under review',hidden:'Hidden object',withdrawing:'Removal pending',withdrawn:'Removed'};
|
| 16 |
const reasons:Record<string,string>={rights:'Rights & attribution',privacy:'Privacy',unsafe_content:'Inappropriate content',misleading:'Misleading information',broken:'Broken object',withdraw_own_asset:'Removal request',other:'Other'};
|
| 17 |
const views:Record<ReviewView,string>={review:'Needs review',all:'All contributions',hidden:'Hidden',history:'History'};
|
| 18 |
export default function ManageAssets({mode,initialId,api,close,changed,view}:{mode:'mine'|'moderation';initialId?:string;api:Api;close:()=>void;changed:()=>void;view:(id:string)=>void}){
|
|
|
|
| 21 |
const [page,setPage]=useState<Page|null>(null),[offset,setOffset]=useState(0),[selected,setSelected]=useState<Entry|null>(null),[loading,setLoading]=useState(true),[error,setError]=useState(''),[notice,setNotice]=useState('');
|
| 22 |
const [decision,setDecision]=useState<'hide'|'restore'|'withdraw'|null>(null),[note,setNote]=useState(''),[busy,setBusy]=useState(false),[angleBusy,setAngleBusy]=useState(false);
|
| 23 |
const [searchText,setSearchText]=useState(''),[query,setQuery]=useState(''),[searchRevision,setSearchRevision]=useState(0);
|
|
|
|
| 24 |
const [queue,setQueue]=useState<ReviewView>('review');
|
| 25 |
const list=useRef<HTMLDivElement>(null);
|
| 26 |
useEffect(()=>{list.current?.scrollTo({top:0,left:0});},[offset,queue,query]);
|
|
|
|
| 35 |
useEffect(()=>{let current=true;setLoading(true);setError('');void refresh().catch(e=>{if(current)setError(e.message);}).finally(()=>{if(current)setLoading(false);});return()=>{current=false;loadVersion.current++;};},[offset,queue,query,searchRevision]);
|
| 36 |
useEffect(()=>{const timer=setTimeout(()=>{setOffset(0);setQuery(searchText.trim());setSearchRevision(n=>n+1);},250);return()=>clearTimeout(timer);},[searchText]);
|
| 37 |
function searchFor(value:string){if(value===searchText)return;loadVersion.current++;setSearchText(value);setLoading(true);}
|
| 38 |
+
function select(item:Entry){activeId.current=item.id;setSelected(item);setDecision(null);setNote('');setError('');setNotice('');intent.current=null;}
|
| 39 |
+
function closeDetail(){const closing=activeId.current;loadVersion.current++;activeId.current=undefined;setSelected(null);setDecision(null);setError('');setNotice('');intent.current=null;requestAnimationFrame(()=>document.querySelector<HTMLButtonElement>('[data-asset-id="'+closing+'"]')?.focus({preventScroll:true}));}
|
| 40 |
useEffect(()=>{const handler=(event:KeyboardEvent)=>{if(event.key==='Escape'&&!event.defaultPrevented&&!event.isComposing&&selected&&!busy&&!angleBusy&&!document.querySelector('dialog[open]')){event.preventDefault();closeDetail();}};document.addEventListener('keydown',handler);return()=>document.removeEventListener('keydown',handler);},[selected?.id,busy,angleBusy]);
|
| 41 |
function showQueue(value:ReviewView){loadVersion.current++;activeId.current=undefined;setSelected(null);setDecision(null);setNote('');setNotice('');setError('');intent.current=null;setOffset(0);setQueue(value);}
|
| 42 |
function retryKey(body:unknown){const value=JSON.stringify(body);if(intent.current?.body!==value)intent.current={body:value,key:crypto.randomUUID()};return intent.current.key;}
|
|
|
|
| 67 |
{!page&&loading?<p className="management-loading" role="status"><LoaderCircle className="spin" size={20}/>{t("Loading your workspace…")}</p>:page&&<div className={`management-layout ${selected?'has-selection':''}`}>
|
| 68 |
<div className="management-list" ref={list} role="region" tabIndex={0} aria-label={t("Contributions list")} aria-busy={loading}><div className="management-list-heading"><span role="status">{loading?t("Searching…"):page.total} {admin&&queue!=='all'?(page.total===1?t("case") : t("cases")):(page.total===1?t("contribution") : t("contributions"))}</span>{admin&&<small>{t(views[queue])}</small>}</div>
|
| 69 |
{!page.items.length?<div className="management-empty"><ShieldCheck size={32}/><h2>{query?t("No matching contributions."):admin?({all:t("No contributions yet."),review:t("No reports to review."),hidden:t("No hidden objects."),history:t("No reviewed cases yet.")}[queue]):t("Your contributions will live here.")}</h2><p>{query?t("Try another word or clear the search."):admin?({all:t("All contributions can be managed here."),review:t("Only objects that need a moderation decision appear here."),hidden:t("Objects kept out of the public viewer appear here."),history:t("Reviewed reports and removed contributions appear here.")}[queue]):t("Published objects stay manageable even after your private generation expires.")}</p></div>:page.items.map(item=><button className={`managed-card ${selected?.id===item.id?'selected':''}`} key={item.id} data-asset-id={item.id} disabled={loading||busy||angleBusy} onClick={()=>select(item)} aria-pressed={selected?.id===item.id}>
|
| 70 |
+
<span className="managed-thumb">{item.asset?<img src={item.asset.previewSmall||item.asset.preview} alt="" loading="lazy"/>:<Trash2 size={22}/>}</span><span className="managed-identity"><strong>{item.title}</strong><span>@{item.author}</span><span className="managed-card-meta"><span className={'asset-state state-'+item.state}>{item.state==='visible'?<Eye size={12}/>:item.state==='pending_review'?<Flag size={12}/>:<EyeOff size={12}/>} {t(labels[item.state])}</span><LicenseBadge license={item.asset?.license||item.editable?.license} link={false}/></span>{admin&&item.open_reports>0&&<small>{tf(item.open_reports===1?"{count} open report":"{count} open reports",{count:item.open_reports})}</small>}</span><ChevronRight size={16}/>
|
| 71 |
</button>)}
|
| 72 |
{(offset>0||page.has_more)&&<div className="management-pagination"><button className="secondary" disabled={loading||!offset||busy||angleBusy} onClick={()=>setOffset(Math.max(0,offset-50))}><ChevronLeft size={15}/>{t("Previous")}</button><button className="secondary" disabled={loading||!page.has_more||busy||angleBusy} onClick={()=>setOffset(offset+50)}>{t("Next")}<ChevronRight size={15}/></button></div>}
|
| 73 |
</div>
|
| 74 |
{selected&&<article className="managed-detail" key={selected.id}>
|
| 75 |
+
<div className="managed-title"><div><p className="eyebrow">{admin?t("REVIEW CONTRIBUTION"):t("MANAGE CONTRIBUTION")}</p><h2>{selected.title}</h2><div className="managed-author"><span>@{selected.author}</span><LicenseBadge {...selected.asset} license={selected.asset?.license||selected.editable?.license}/></div></div><div className="managed-title-actions"><span className={'asset-state state-'+selected.state}>{t(labels[selected.state])}</span><button className="plain-icon" onClick={closeDetail} disabled={busy||angleBusy} aria-label={t("Close contribution details")} title={t("Close details")}><X size={19}/></button></div></div>
|
| 76 |
+
<AssetLicense {...selected.asset} license={selected.asset?.license||selected.editable?.license}/>
|
| 77 |
{selected.state!=='visible'&&<p className="visibility-note"><EyeOff size={17}/><span>{selected.state==='withdrawn'?t("Removed from the current dataset. Earlier repository versions and downloaded copies may remain."):selected.state==='withdrawing'?t("Hidden publicly. Retry removal to finish updating the dataset."):t("Hidden from the public viewer. The author and moderators can inspect it here. Thumbnail editing is paused during review. Dataset files remain public until removal.")}</span></p>}
|
| 78 |
{admin&&!selected.review_view&&<p className="visibility-note"><ShieldCheck size={17}/>{t("No reports. Opened directly from the collection.")}</p>}
|
| 79 |
{selected.can_edit_details&&selected.editable&&selected.metadata_sha256&&<ContributionEditor id={selected.id} author={selected.author} source={{editable:selected.editable,version:selected.version,metadata_sha256:selected.metadata_sha256}} blocked={loading||busy||angleBusy} underReview={selected.state!=='visible'} save={saveDetails} reload={reloadDetails}/>}
|
|
|
|
| 84 |
{admin&&!!selected.reports?.length&&<section className="private-reports"><h3><Flag size={16}/>{t("Reports ")}<span>{t("Private")}</span></h3>{selected.reports.map(r=><div className="report-card" key={r.id}><div><strong>{t(reasons[r.reason]||r.reason)}</strong><span>{r.status==='open'?t("Open"):t("Reviewed")} · {new Date(r.created*1000).toLocaleDateString()}</span></div><p>{r.message}</p></div>)}</section>}
|
| 85 |
{admin&&selected.review_note&&<section className="review-note"><h3>{t("Last review note ")}<span>{t("Private")}</span></h3><p>{selected.review_note}</p></section>}
|
| 86 |
{selected.state!=='withdrawn'&&<div className="management-actions">{admin&&selected.state!=='withdrawing'&&<button className="secondary" disabled={loading||busy||angleBusy} onClick={()=>{setDecision(selected.state==='visible'?'hide':'restore');setNote('');intent.current=null;}}>{selected.state==='visible'?<EyeOff size={16}/>:<Eye size={16}/>} {selected.state==='visible'?t("Hide from viewer"):t("Restore to collection")}</button>}{admin&&(selected.state==='pending_review'||selected.open_reports>0)&&selected.state!=='withdrawing'&&<button className="secondary" disabled={loading||busy||angleBusy} onClick={()=>{setDecision('hide');setNote('');intent.current=null;}}><EyeOff size={16}/>{t("Keep hidden")}</button>}{selected.can_withdraw&&<button className="secondary danger-button" disabled={loading||busy||angleBusy} onClick={()=>{setDecision('withdraw');setNote('');intent.current=null;}}><Trash2 size={16}/>{selected.state==='withdrawing'?t("Finish removal"):admin?t("Remove from dataset"):t("Withdraw contribution")}</button>}</div>}
|
| 87 |
+
{decision&&<section className="decision-review" aria-label={t("Confirm contribution action")}><h3>{decision==='withdraw'?tf("Remove “{title}”?",{title:selected.title}):decision==='restore'?t("Restore this object?"):t("Hide this object?")}</h3><p>{decision==='withdraw'?t("This removes the object, previews and metadata from the current dataset. Public history and copies may remain. This cannot be undone here."):decision==='restore'?t("The object becomes public again. Current open reports will be marked as reviewed."):t("The object disappears from the public viewer. You can restore it later; dataset files remain public.")}</p>{admin&&<label>{t("Private review note ")}<small>{t("Optional")}</small><textarea value={note} onChange={e=>setNote(e.target.value)} maxLength={500} rows={2}/></label>}<div><button className="secondary" disabled={busy} onClick={()=>{setDecision(null);intent.current=null;}}>{t("Cancel")}</button><button className={decision==='withdraw'?'primary destructive':'primary'} disabled={busy||angleBusy} onClick={()=>void decide()}>{busy?<LoaderCircle size={15} className="spin"/>:decision==='withdraw'?<Trash2 size={15}/>:<Check size={15}/>} {busy?t("Saving…"):decision==='withdraw'?t("Confirm removal"):decision==='restore'?t("Restore object"):t("Hide object")}</button></div></section>}
|
| 88 |
</article>}
|
| 89 |
</div>}
|
| 90 |
</section>;
|
frontend/src/PromptImage.tsx
CHANGED
|
@@ -38,7 +38,7 @@ export default function PromptImage({csrf,available,disabled,restored,onUse,onBu
|
|
| 38 |
return <div className="prompt-image">
|
| 39 |
<label htmlFor="object-prompt">{t("Describe an object")}</label><textarea id="object-prompt" value={prompt} maxLength={1000} rows={4} disabled={active||busy||disabled} onChange={e=>setPrompt(e.target.value)} placeholder={t("A small ceramic teapot, rounded shape, blue glaze. One object, fully visible on a plain white background.")}/>
|
| 40 |
<p className="help">{t("One object, a simple background and no text work best for 3D. Your prompt stays private.")}</p>
|
| 41 |
-
<div className="prompt-suggestions">{[t("A yellow ceramic watering can"),t("A small wooden stool"),t("A playful clay robot")].map(text=><button key={text} type="button" disabled={active||busy||disabled} onClick={()=>setPrompt(text+'. One object, fully visible, three-quarter view, plain white background, no text.')}>{text}</button>)}</div>
|
| 42 |
<button className="primary prompt-generate" disabled={!available||disabled||busy||active||prompt.trim().length<3} onClick={()=>void generate()}>{busy||active?<LoaderCircle size={16} className="spin"/>:<Sparkles size={16}/>} {active?(job?.status==='queued'?t("Waiting for ZeroGPU…"):t("Creating your image…")):job?.image?t("Generate another image"):t("Generate image")}</button>
|
| 43 |
<p className="model-credit">Z-Image-Turbo by Tongyi-MAI · 768 × 768</p>
|
| 44 |
{!available&&<p className="development-note">{t("Image generation is being configured. You can upload an image instead.")}</p>}
|
|
|
|
| 38 |
return <div className="prompt-image">
|
| 39 |
<label htmlFor="object-prompt">{t("Describe an object")}</label><textarea id="object-prompt" value={prompt} maxLength={1000} rows={4} disabled={active||busy||disabled} onChange={e=>setPrompt(e.target.value)} placeholder={t("A small ceramic teapot, rounded shape, blue glaze. One object, fully visible on a plain white background.")}/>
|
| 40 |
<p className="help">{t("One object, a simple background and no text work best for 3D. Your prompt stays private.")}</p>
|
| 41 |
+
<div className="prompt-suggestions">{[t("A yellow ceramic watering can"),t("A small wooden stool"),t("A playful clay robot")].map(text=><button key={text} type="button" disabled={active||busy||disabled} onClick={()=>setPrompt(text+t('. One object, fully visible, three-quarter view, plain white background, no text.'))}>{text}</button>)}</div>
|
| 42 |
<button className="primary prompt-generate" disabled={!available||disabled||busy||active||prompt.trim().length<3} onClick={()=>void generate()}>{busy||active?<LoaderCircle size={16} className="spin"/>:<Sparkles size={16}/>} {active?(job?.status==='queued'?t("Waiting for ZeroGPU…"):t("Creating your image…")):job?.image?t("Generate another image"):t("Generate image")}</button>
|
| 43 |
<p className="model-credit">Z-Image-Turbo by Tongyi-MAI · 768 × 768</p>
|
| 44 |
{!available&&<p className="development-note">{t("Image generation is being configured. You can upload an image instead.")}</p>}
|
frontend/src/Stage.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import {t,useLanguage} from './i18n';
|
| 2 |
import {useEffect,useRef,useState} from 'react';
|
| 3 |
import {RotateCw,Expand,Camera,LoaderCircle} from 'lucide-react';
|
| 4 |
import {createSplatEngine,type SplatAsset} from './splat-engine';
|
|
@@ -7,7 +7,7 @@ export type ResultView=SplatAsset&{id:string;preview:string;previewVersion?:stri
|
|
| 7 |
export function Stage({result,active,onChooseAngle,label}:{result:ResultView;active:boolean;label?:string;onChooseAngle?:(direction:number[])=>Promise<void>}){
|
| 8 |
useLanguage();
|
| 9 |
const host=useRef<HTMLDivElement>(null),engine=useRef<ReturnType<typeof createSplatEngine>|null>(null);
|
| 10 |
-
const [status,setStatus]=useState(
|
| 11 |
const [saving,setSaving]=useState(false),[saveError,setSaveError]=useState('');
|
| 12 |
useEffect(()=>{setReady(false);setError('');if(!host.current)return;
|
| 13 |
try{engine.current=createSplatEngine(host.current,{...result,allowZoom:true},setStatus,()=>setReady(true),e=>{setError(e.message);setReady(false);});engine.current.setVisible(active);}
|
|
@@ -20,9 +20,9 @@ export function Stage({result,active,onChooseAngle,label}:{result:ResultView;act
|
|
| 20 |
{!ready&&<img className="stage-preview" src={result.preview} alt={t("Rendered preview of the 3D result")}/>}
|
| 21 |
<div className="stage-canvas" ref={host} style={{opacity:ready?1:0}}/>
|
| 22 |
<div className="stage-topline"><span>{label||(result.example?t("Example result"):t("Your result"))}</span><button className="plain-icon" aria-label={t("Expand 3D result")} onClick={()=>host.current?.parentElement?.requestFullscreen()}><Expand size={17}/></button></div>
|
| 23 |
-
<div className="stage-bottomline" role="status"><span>{error?t("3D unavailable · Rendered preview"):ready?t("Drag to rotate · Scroll to zoom"):status}</span>{error&&<button className="quiet" onClick={()=>setRetry(x=>x+1)}><RotateCw size={14}/>{t("Retry 3D")}</button>}{ready&&onChooseAngle&&<button className="angle-button" disabled={saving} title={t("Render a transparent thumbnail from this angle; framing is fitted automatically")} onClick={async()=>{if(!engine.current)return;setSaving(true);setSaveError('');try{await onChooseAngle(engine.current.getViewDirection());}catch(e){setSaveError(e instanceof Error?e.message:t("Please retry."));}finally{setSaving(false);}}}>{saving?<LoaderCircle className="spin" size={14}/>:<Camera size={14}/>}{t("Use this angle")}</button>}</div>
|
| 24 |
{saveError&&<p className="angle-error" role="alert">{t(saveError)}</p>}
|
| 25 |
-
{error&&<details className="stage-error"><summary>{t("Preview details")}</summary><p>{
|
| 26 |
</div>;
|
| 27 |
}
|
| 28 |
|
|
|
|
| 1 |
+
import {t,modelMessage,useLanguage} from './i18n';
|
| 2 |
import {useEffect,useRef,useState} from 'react';
|
| 3 |
import {RotateCw,Expand,Camera,LoaderCircle} from 'lucide-react';
|
| 4 |
import {createSplatEngine,type SplatAsset} from './splat-engine';
|
|
|
|
| 7 |
export function Stage({result,active,onChooseAngle,label}:{result:ResultView;active:boolean;label?:string;onChooseAngle?:(direction:number[])=>Promise<void>}){
|
| 8 |
useLanguage();
|
| 9 |
const host=useRef<HTMLDivElement>(null),engine=useRef<ReturnType<typeof createSplatEngine>|null>(null);
|
| 10 |
+
const [status,setStatus]=useState("Loading 3D…"),[ready,setReady]=useState(false),[error,setError]=useState(''),[retry,setRetry]=useState(0);
|
| 11 |
const [saving,setSaving]=useState(false),[saveError,setSaveError]=useState('');
|
| 12 |
useEffect(()=>{setReady(false);setError('');if(!host.current)return;
|
| 13 |
try{engine.current=createSplatEngine(host.current,{...result,allowZoom:true},setStatus,()=>setReady(true),e=>{setError(e.message);setReady(false);});engine.current.setVisible(active);}
|
|
|
|
| 20 |
{!ready&&<img className="stage-preview" src={result.preview} alt={t("Rendered preview of the 3D result")}/>}
|
| 21 |
<div className="stage-canvas" ref={host} style={{opacity:ready?1:0}}/>
|
| 22 |
<div className="stage-topline"><span>{label||(result.example?t("Example result"):t("Your result"))}</span><button className="plain-icon" aria-label={t("Expand 3D result")} onClick={()=>host.current?.parentElement?.requestFullscreen()}><Expand size={17}/></button></div>
|
| 23 |
+
<div className="stage-bottomline" role="status"><span>{error?t("3D unavailable · Rendered preview"):ready?t(matchMedia("(pointer: coarse)").matches?"Drag to rotate · Pinch to zoom":"Drag to rotate · Scroll to zoom"):modelMessage(status)}</span>{error&&<button className="quiet" onClick={()=>setRetry(x=>x+1)}><RotateCw size={14}/>{t("Retry 3D")}</button>}{ready&&onChooseAngle&&<button className="angle-button" disabled={saving} title={t("Render a transparent thumbnail from this angle; framing is fitted automatically")} onClick={async()=>{if(!engine.current)return;setSaving(true);setSaveError('');try{await onChooseAngle(engine.current.getViewDirection());}catch(e){setSaveError(e instanceof Error?e.message:t("Please retry."));}finally{setSaving(false);}}}>{saving?<LoaderCircle className="spin" size={14}/>:<Camera size={14}/>}{t("Use this angle")}</button>}</div>
|
| 24 |
{saveError&&<p className="angle-error" role="alert">{t(saveError)}</p>}
|
| 25 |
+
{error&&<details className="stage-error"><summary>{t("Preview details")}</summary><p>{modelMessage(error)}</p></details>}
|
| 26 |
</div>;
|
| 27 |
}
|
| 28 |
|
frontend/src/asset-license.css
CHANGED
|
@@ -1,21 +1,17 @@
|
|
| 1 |
-
.asset-license-badge{display:inline-flex;align-items:center;gap:
|
| 2 |
-
.asset-license-badge svg{flex-shrink:0}
|
| 3 |
a.asset-license-badge:hover{text-decoration:underline;text-underline-offset:3px}
|
| 4 |
-
.asset-license{
|
| 5 |
-
.asset-license
|
| 6 |
-
.asset-license
|
| 7 |
-
.asset-license-credits{margin-top:10px;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
|
| 8 |
-
.asset-license-credits summary{cursor:pointer;font-weight:550}
|
| 9 |
.asset-license-credits p{white-space:pre-wrap;margin:8px 0}
|
| 10 |
.asset-license-credits a{display:inline-flex;align-items:center;gap:5px;margin:4px 12px 4px 0;color:inherit}
|
| 11 |
-
.asset-license-credits small{display:block;
|
| 12 |
-
.managed-
|
| 13 |
-
.selection-details>.asset-license{margin:0 0 12px}
|
| 14 |
-
.selection-license>.asset-license{border:0;border-radius:0;padding:0;margin:0}
|
| 15 |
-
.license-toggle{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--muted)}
|
| 16 |
-
.license-toggle:focus-visible{outline:2px solid var(--active);outline-offset:2px}
|
| 17 |
-
.managed-title-actions .license-toggle{width:34px;height:34px;border-radius:7px;padding:0}
|
| 18 |
-
.managed-title-actions .license-toggle:hover,.managed-title-actions .license-toggle.active{color:var(--active);background:var(--selected)}
|
| 19 |
-
.managed-card-meta{display:flex;align-items:center;gap:8px;margin-top:6px}
|
| 20 |
.managed-card-meta .asset-state{margin:0}
|
| 21 |
-
.license-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.asset-license-badge{display:inline-flex;align-items:center;gap:5px;width:fit-content;max-width:100%;color:var(--muted);font-size:11px;font-weight:400;line-height:1.5;text-decoration:none;white-space:nowrap}
|
| 2 |
+
.asset-license-badge svg{flex-shrink:0}
|
| 3 |
a.asset-license-badge:hover{text-decoration:underline;text-underline-offset:3px}
|
| 4 |
+
a.asset-license-badge:focus-visible{outline:2px solid var(--active);outline-offset:3px;border-radius:3px}
|
| 5 |
+
.asset-license-credits{margin:10px 0;font-size:12px;line-height:1.55;overflow-wrap:anywhere;color:var(--muted)}
|
| 6 |
+
.asset-license-credits summary{cursor:pointer;width:fit-content;font-weight:400}
|
|
|
|
|
|
|
| 7 |
.asset-license-credits p{white-space:pre-wrap;margin:8px 0}
|
| 8 |
.asset-license-credits a{display:inline-flex;align-items:center;gap:5px;margin:4px 12px 4px 0;color:inherit}
|
| 9 |
+
.asset-license-credits small{display:block;margin-top:8px}
|
| 10 |
+
.managed-card-meta,.managed-author{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:6px}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
.managed-card-meta .asset-state{margin:0}
|
| 12 |
+
.managed-author .asset-license-badge{font-size:12px}
|
| 13 |
+
.managed-detail>.asset-license-credits{margin:12px 0 20px}
|
| 14 |
+
.selection-meta{flex-wrap:wrap}
|
| 15 |
+
.selection-details>.asset-license-credits{margin:0 0 12px}
|
| 16 |
+
|
| 17 |
+
.managed-title .managed-author>span{margin:0}
|
frontend/src/explorer/Basket.tsx
CHANGED
|
@@ -20,7 +20,7 @@ export default function Basket({assets,onClose,onRemove,onClear,onInspect}:Props
|
|
| 20 |
const abort=new AbortController();controller.current=abort;setBusy(true);setScriptNeeded(false);setStatus(t("Checking package sizes…"));
|
| 21 |
try{
|
| 22 |
const plan=await planBasket(assets,abort.signal);
|
| 23 |
-
if(plan.bytes>ZIP_LIMIT){setScriptNeeded(true);setStatus(tf("This selection is {size}
|
| 24 |
setStatus(tf("Downloading {count} files…",{count:plan.files.length}));
|
| 25 |
const bytes=await downloadBasketZip(plan,abort.signal,(done,total)=>setStatus(tf("Downloading {done} of {total} files…",{done,total})));
|
| 26 |
saveDownload(bytes,'idol-selection.zip','application/zip');setStatus(t("Your ZIP is ready."));
|
|
|
|
| 20 |
const abort=new AbortController();controller.current=abort;setBusy(true);setScriptNeeded(false);setStatus(t("Checking package sizes…"));
|
| 21 |
try{
|
| 22 |
const plan=await planBasket(assets,abort.signal);
|
| 23 |
+
if(plan.bytes>ZIP_LIMIT){setScriptNeeded(true);setStatus(tf("This selection is {size} MiB. Use the download script to save the complete packages on your computer.",{size:(plan.bytes/1048576).toFixed(0)}));return;}
|
| 24 |
setStatus(tf("Downloading {count} files…",{count:plan.files.length}));
|
| 25 |
const bytes=await downloadBasketZip(plan,abort.signal,(done,total)=>setStatus(tf("Downloading {done} of {total} files…",{done,total})));
|
| 26 |
saveDownload(bytes,'idol-selection.zip','application/zip');setStatus(t("Your ZIP is ready."));
|
frontend/src/explorer/ObjectViewer.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
import AssetLicense,{
|
| 2 |
-
import {t,useLanguage,categoryLabel} from '../i18n';
|
| 3 |
import {setLike,recordActivity,SignInRequired} from './community';
|
| 4 |
import {displayName} from './asset-label';
|
| 5 |
import {useEffect,useRef,useState} from 'react';
|
|
@@ -17,16 +17,16 @@ import {formatFileSize} from './file-size';
|
|
| 17 |
|
| 18 |
type Props={signedIn?:boolean;signInAvailable?:boolean;asset:Asset;active?:boolean;interactive?:boolean;moving?:boolean;x:number;y:number;scale:number;objectSize:number;width:number;height:number;inBasket:boolean;onToggleBasket:()=>void;onCommunityChange:()=>void;onClose:()=>void};
|
| 19 |
export default function ObjectViewer({signedIn,signInAvailable=false,asset,active=true,interactive=true,moving=false,x,y,scale,objectSize,width,height,inBasket,onToggleBasket,onCommunityChange,onClose}:Props){
|
| 20 |
-
useLanguage();
|
| 21 |
const host=useRef<HTMLDivElement>(null),engine=useRef<CollectionEngine|null>(null);
|
| 22 |
const movingRef=useRef(moving);movingRef.current=moving;
|
| 23 |
const [duration,setDuration]=useState(0),[progress,setProgress]=useState(0),[playing,setPlaying]=useState(false);
|
| 24 |
-
const [status,setStatus]=useState(
|
| 25 |
const [cached,setCached]=useState(false);
|
| 26 |
-
const [panel,setPanel]=useState<'info'|'download'|
|
| 27 |
const [budget]=useState(()=>previewBudget(typeof navigator==='undefined'?{}:navigator));
|
| 28 |
useEffect(()=>{
|
| 29 |
-
let cancelled=false;setReady(false);setCached(false);setError('');setDuration(0);setProgress(0);setPlaying(false);setStatus(
|
| 30 |
// Let the selection slide finish before allocating a WebGL context. Rapid
|
| 31 |
// browsing can cancel this delay without starting another model decoder.
|
| 32 |
let start=0;
|
|
@@ -54,7 +54,7 @@ export default function ObjectViewer({signedIn,signInAvailable=false,asset,activ
|
|
| 54 |
const hasAnimation=duration>0,name=displayName(asset),formatLabel=asset.format==='ply-3dgs'?'3DGS PLY':'GLB';
|
| 55 |
const shortName=name.length>56&&asset.visual&&asset.visual.confidence!=='low'?asset.visual.title:name;
|
| 56 |
const contributor=asset.contributorVerified&&/^[A-Za-z0-9][A-Za-z0-9_-]{0,95}$/.test(asset.author)
|
| 57 |
-
?<a href={'https://huggingface.co/'+encodeURIComponent(asset.author)} target="_blank" rel="noreferrer" title={'@'+asset.author+' ·
|
| 58 |
const [likeBusy,setLikeBusy]=useState(false),[socialError,setSocialError]=useState(''),[needSignIn,setNeedSignIn]=useState(false);
|
| 59 |
const stats=asset.community||{likes:0,basketAdds:0,downloadRequests:0,liked:false};
|
| 60 |
async function like(){setLikeBusy(true);setSocialError('');setNeedSignIn(false);try{await setLike(asset.id,!stats.liked);onCommunityChange();}catch(e){setNeedSignIn(e instanceof SignInRequired);setSocialError(e instanceof Error?e.message:t("Please retry."));}finally{setLikeBusy(false);}}
|
|
@@ -68,10 +68,10 @@ export default function ObjectViewer({signedIn,signInAvailable=false,asset,activ
|
|
| 68 |
</div>
|
| 69 |
{showControls&&<section className={`object-dock selection-bar ${hasAnimation?'with-motion':''}`} data-ui aria-label={t("Object controls")}>
|
| 70 |
<div className="selection-summary">
|
| 71 |
-
<div className="selection-identity"><strong title={name}>{shortName}</strong><span className="selection-meta"><span className="selection-contributor">{contributor}</span><span className="selection-category" title={asset.category?categoryLabel(asset.category):asset.generator}>{asset.category?categoryLabel(asset.category):asset.generator}</span></span></div>
|
| 72 |
<div className="selection-actions">
|
| 73 |
<button className={`icon-button ${panel==='info'?'active':''}`} aria-label={t("Object information")} aria-expanded={panel==='info'} title={t("Object information")} onClick={()=>setPanel(panel==='info'?null:'info')}><Info size={18}/></button>
|
| 74 |
-
|
| 75 |
<button className={`icon-button ${panel==='download'?'active':''}`} aria-label={t("Download object")} aria-expanded={panel==='download'} title={t("Download object")} onClick={()=>setPanel(panel==='download'?null:'download')}><Download size={18}/></button>
|
| 76 |
<button className={`icon-button add-to-basket ${inBasket?'active':''}`} aria-label={inBasket?t("Remove from basket"):t("Add to basket")} title={inBasket?t("Remove from basket"):t("Add to basket")} aria-pressed={inBasket} onClick={onToggleBasket}><ShoppingBag size={18}/>{inBasket&&<Check className="bag-check" size={10}/>}</button>
|
| 77 |
<span className="divider"/>
|
|
@@ -79,7 +79,7 @@ export default function ObjectViewer({signedIn,signInAvailable=false,asset,activ
|
|
| 79 |
</div>
|
| 80 |
</div>
|
| 81 |
<div className="selection-status" role="status">
|
| 82 |
-
{error?<><span>{t("3D unavailable · HD preview")}</span><button className="icon-button" aria-label={t("Retry 3D preview")} title={t("Retry 3D preview")} onClick={()=>setRetry(n=>n+1)}><RotateCw size={13}/></button></>:ready?<><Check size={12} className="selection-ready-icon"/><span>{interactive?t("3D ready · Drag object to rotate"):t("Switch to Explore to rotate the object.")}</span></>:status&&<><i className="tiny-spinner"/><span>{
|
| 83 |
</div>
|
| 84 |
<div className="asset-community" aria-label={t("Community activity")}>{signedIn===false&&signInAvailable?<a className="like-sign-in" href="/auth/login?tab=explore" target="_top" aria-label={t("Sign in to like this object")}><Heart size={15}/><b>{stats.likes.toLocaleString()}</b><span>{t("Sign in to like")}</span><ArrowUpRight size={13}/></a>:<button className={stats.liked?'liked':''} onClick={()=>void like()} disabled={likeBusy||(signedIn===false&&!signInAvailable)} aria-pressed={stats.liked} aria-label={stats.liked?t("Unlike object"):t("Like object")} title={t("One like per Hugging Face account")}>{likeBusy?<LoaderCircle size={15} className="spin"/>:<Heart size={15} fill={stats.liked?'currentColor':'none'}/>}<b>{stats.likes.toLocaleString()}</b><span>{t("Likes")}</span></button>}<span title={t("Browser baskets containing this object, synced within the last 90 days")}><ShoppingBag size={14}/><b>{stats.baskets===undefined?"—":stats.baskets.toLocaleString()}</b><span>{t("In baskets")}</span></span><span title={t("Daily-deduplicated app requests; not proof a file was saved")}><Download size={14}/><b>{stats.downloadRequests.toLocaleString()}</b><span>{t("Download requests")}</span></span></div>
|
| 85 |
{(asset.canEdit||asset.canModerate)&&<div className="asset-owner-actions">{asset.canEdit&&<button onClick={()=>parent.postMessage({type:'idol:manage',id:asset.id,mode:'mine'},location.origin)}><Camera size={14}/>{t("Manage asset")}</button>}{asset.canModerate&&<button onClick={()=>parent.postMessage({type:'idol:manage',id:asset.id,mode:'moderation'},location.origin)}><Shield size={14}/>{t("Moderate")}</button>}</div>}
|
|
@@ -88,8 +88,8 @@ export default function ObjectViewer({signedIn,signInAvailable=false,asset,activ
|
|
| 88 |
onProgress={value=>{setPlaying(false);engine.current?.setAnimationProgress(value);}}
|
| 89 |
onPlay={()=>{engine.current?.playAnimation(!playing);setPlaying(!playing);}}
|
| 90 |
onReset={()=>{setPlaying(false);engine.current?.setAnimationProgress(0);}}/>}
|
| 91 |
-
|
| 92 |
-
{panel==='info'&&<div className="dock-panel selection-details"><div className="asset-specs"><span><strong>{formatLabel}</strong><small>{formatFileSize(asset.bytes)}</small></span><span><strong>{asset.generator}</strong><small>{asset.publishedAt?.slice(0,10)||t("Generator")}</small></span></div>{(asset.description||asset.visual?.description)&&<p className="asset-description">{asset.description||asset.visual?.description}</p>}{asset.imagePrompt&&<details className="asset-credits"><summary>{t("Z-Image-Turbo prompt")}</summary><p style={{whiteSpace:'pre-wrap',overflowWrap:'anywhere'}}>{asset.imagePrompt}</p><small>{asset.imageModel}</small></details>}{!!asset.tags?.length&&<div className="contribution-labels"><ul aria-label={t("Contributor tags")}>{asset.tags.map(tag=><li key={tag}>{tag}</li>)}</ul></div>}<a className="asset-source-link" href={asset.source} target="_blank" rel="noreferrer">{t("Original metadata")}<ArrowUpRight size={13}/></a>{asset.animationCount>0&&<p>{t("All embedded clips play together.")}</p>}{cached&&<small>{t("3D cached on this device")}</small>}{error&&<details><summary>{t("Preview details")}</summary><p>{
|
| 93 |
{panel==='download'&&<div className="dock-panel selection-details"><h2>{t("Take this object with you.")}</h2><p>{t("Keep the original splats and their attribution.")}</p><a className="download-action" href={asset.download} target="_blank" rel="noreferrer" onClick={trackDownload}><Download size={16}/>{t("Download ")}{formatLabel}</a><button className="download-action" onClick={onToggleBasket}><ShoppingBag size={16}/>{inBasket?t("Remove from basket"):t("Add to basket")}</button><button className="download-action" onClick={copy}>{copied?<Check size={16}/>:<Copy size={16}/>} {copied?t("Command copied"):t("Copy download command")}</button><a className="download-action" href={asset.sourceFolder} target="_blank" rel="noreferrer">{t("Browse source files")}<ArrowUpRight size={15}/></a><details><summary>{t("Show command")}</summary><code>{command}</code></details><small>{t("Source version: ")}{asset.revision.slice(0,8)}</small></div>}
|
| 94 |
</section>}
|
| 95 |
</>;
|
|
|
|
| 1 |
+
import AssetLicense,{LicenseBadge} from '../AssetLicense';
|
| 2 |
+
import {t,modelMessage,useLanguage,categoryLabel} from '../i18n';
|
| 3 |
import {setLike,recordActivity,SignInRequired} from './community';
|
| 4 |
import {displayName} from './asset-label';
|
| 5 |
import {useEffect,useRef,useState} from 'react';
|
|
|
|
| 17 |
|
| 18 |
type Props={signedIn?:boolean;signInAvailable?:boolean;asset:Asset;active?:boolean;interactive?:boolean;moving?:boolean;x:number;y:number;scale:number;objectSize:number;width:number;height:number;inBasket:boolean;onToggleBasket:()=>void;onCommunityChange:()=>void;onClose:()=>void};
|
| 19 |
export default function ObjectViewer({signedIn,signInAvailable=false,asset,active=true,interactive=true,moving=false,x,y,scale,objectSize,width,height,inBasket,onToggleBasket,onCommunityChange,onClose}:Props){
|
| 20 |
+
const language=useLanguage();
|
| 21 |
const host=useRef<HTMLDivElement>(null),engine=useRef<CollectionEngine|null>(null);
|
| 22 |
const movingRef=useRef(moving);movingRef.current=moving;
|
| 23 |
const [duration,setDuration]=useState(0),[progress,setProgress]=useState(0),[playing,setPlaying]=useState(false);
|
| 24 |
+
const [status,setStatus]=useState("Loading 3D…"),[error,setError]=useState(''),[ready,setReady]=useState(false);
|
| 25 |
const [cached,setCached]=useState(false);
|
| 26 |
+
const [panel,setPanel]=useState<'info'|'download'|null>(null),[copied,setCopied]=useState(false),[retry,setRetry]=useState(0);
|
| 27 |
const [budget]=useState(()=>previewBudget(typeof navigator==='undefined'?{}:navigator));
|
| 28 |
useEffect(()=>{
|
| 29 |
+
let cancelled=false;setReady(false);setCached(false);setError('');setDuration(0);setProgress(0);setPlaying(false);setStatus("Loading 3D…");
|
| 30 |
// Let the selection slide finish before allocating a WebGL context. Rapid
|
| 31 |
// browsing can cancel this delay without starting another model decoder.
|
| 32 |
let start=0;
|
|
|
|
| 54 |
const hasAnimation=duration>0,name=displayName(asset),formatLabel=asset.format==='ply-3dgs'?'3DGS PLY':'GLB';
|
| 55 |
const shortName=name.length>56&&asset.visual&&asset.visual.confidence!=='low'?asset.visual.title:name;
|
| 56 |
const contributor=asset.contributorVerified&&/^[A-Za-z0-9][A-Za-z0-9_-]{0,95}$/.test(asset.author)
|
| 57 |
+
?<a href={'https://huggingface.co/'+encodeURIComponent(asset.author)} target="_blank" rel="noreferrer" title={'@'+asset.author+' · '+t('Signed in with Hugging Face at publication')}>@{asset.author}</a>:<span>{asset.author}</span>;
|
| 58 |
const [likeBusy,setLikeBusy]=useState(false),[socialError,setSocialError]=useState(''),[needSignIn,setNeedSignIn]=useState(false);
|
| 59 |
const stats=asset.community||{likes:0,basketAdds:0,downloadRequests:0,liked:false};
|
| 60 |
async function like(){setLikeBusy(true);setSocialError('');setNeedSignIn(false);try{await setLike(asset.id,!stats.liked);onCommunityChange();}catch(e){setNeedSignIn(e instanceof SignInRequired);setSocialError(e instanceof Error?e.message:t("Please retry."));}finally{setLikeBusy(false);}}
|
|
|
|
| 68 |
</div>
|
| 69 |
{showControls&&<section className={`object-dock selection-bar ${hasAnimation?'with-motion':''}`} data-ui aria-label={t("Object controls")}>
|
| 70 |
<div className="selection-summary">
|
| 71 |
+
<div className="selection-identity"><strong title={name}>{shortName}</strong><span className="selection-meta"><span className="selection-contributor">{contributor}</span><span className="selection-category" title={asset.category?categoryLabel(asset.category):asset.generator}>{asset.category?categoryLabel(asset.category):asset.generator}</span><LicenseBadge license={asset.license} licenseUrl={asset.licenseUrl}/></span></div>
|
| 72 |
<div className="selection-actions">
|
| 73 |
<button className={`icon-button ${panel==='info'?'active':''}`} aria-label={t("Object information")} aria-expanded={panel==='info'} title={t("Object information")} onClick={()=>setPanel(panel==='info'?null:'info')}><Info size={18}/></button>
|
| 74 |
+
|
| 75 |
<button className={`icon-button ${panel==='download'?'active':''}`} aria-label={t("Download object")} aria-expanded={panel==='download'} title={t("Download object")} onClick={()=>setPanel(panel==='download'?null:'download')}><Download size={18}/></button>
|
| 76 |
<button className={`icon-button add-to-basket ${inBasket?'active':''}`} aria-label={inBasket?t("Remove from basket"):t("Add to basket")} title={inBasket?t("Remove from basket"):t("Add to basket")} aria-pressed={inBasket} onClick={onToggleBasket}><ShoppingBag size={18}/>{inBasket&&<Check className="bag-check" size={10}/>}</button>
|
| 77 |
<span className="divider"/>
|
|
|
|
| 79 |
</div>
|
| 80 |
</div>
|
| 81 |
<div className="selection-status" role="status">
|
| 82 |
+
{error?<><span>{t("3D unavailable · HD preview")}</span><button className="icon-button" aria-label={t("Retry 3D preview")} title={t("Retry 3D preview")} onClick={()=>setRetry(n=>n+1)}><RotateCw size={13}/></button></>:ready?<><Check size={12} className="selection-ready-icon"/><span>{interactive?t("3D ready · Drag object to rotate"):t("Switch to Explore to rotate the object.")}</span></>:status&&<><i className="tiny-spinner"/><span>{modelMessage(status)}</span></>}<button className="report-asset" aria-label={t("Report this object")} title={t("Report rights, privacy or inappropriate content")} onClick={()=>parent.postMessage({type:'idol:report',id:asset.id},location.origin)}><Flag size={11}/>{t("Report")}</button>
|
| 83 |
</div>
|
| 84 |
<div className="asset-community" aria-label={t("Community activity")}>{signedIn===false&&signInAvailable?<a className="like-sign-in" href="/auth/login?tab=explore" target="_top" aria-label={t("Sign in to like this object")}><Heart size={15}/><b>{stats.likes.toLocaleString()}</b><span>{t("Sign in to like")}</span><ArrowUpRight size={13}/></a>:<button className={stats.liked?'liked':''} onClick={()=>void like()} disabled={likeBusy||(signedIn===false&&!signInAvailable)} aria-pressed={stats.liked} aria-label={stats.liked?t("Unlike object"):t("Like object")} title={t("One like per Hugging Face account")}>{likeBusy?<LoaderCircle size={15} className="spin"/>:<Heart size={15} fill={stats.liked?'currentColor':'none'}/>}<b>{stats.likes.toLocaleString()}</b><span>{t("Likes")}</span></button>}<span title={t("Browser baskets containing this object, synced within the last 90 days")}><ShoppingBag size={14}/><b>{stats.baskets===undefined?"—":stats.baskets.toLocaleString()}</b><span>{t("In baskets")}</span></span><span title={t("Daily-deduplicated app requests; not proof a file was saved")}><Download size={14}/><b>{stats.downloadRequests.toLocaleString()}</b><span>{t("Download requests")}</span></span></div>
|
| 85 |
{(asset.canEdit||asset.canModerate)&&<div className="asset-owner-actions">{asset.canEdit&&<button onClick={()=>parent.postMessage({type:'idol:manage',id:asset.id,mode:'mine'},location.origin)}><Camera size={14}/>{t("Manage asset")}</button>}{asset.canModerate&&<button onClick={()=>parent.postMessage({type:'idol:manage',id:asset.id,mode:'moderation'},location.origin)}><Shield size={14}/>{t("Moderate")}</button>}</div>}
|
|
|
|
| 88 |
onProgress={value=>{setPlaying(false);engine.current?.setAnimationProgress(value);}}
|
| 89 |
onPlay={()=>{engine.current?.playAnimation(!playing);setPlaying(!playing);}}
|
| 90 |
onReset={()=>{setPlaying(false);engine.current?.setAnimationProgress(0);}}/>}
|
| 91 |
+
|
| 92 |
+
{panel==='info'&&<div className="dock-panel selection-details"><AssetLicense {...asset}/><div className="asset-specs"><span><strong>{formatLabel}</strong><small>{formatFileSize(asset.bytes,language)}</small></span><span><strong>{asset.generator}</strong><small>{asset.publishedAt?.slice(0,10)||t("Generator")}</small></span></div>{(asset.description||asset.visual?.description)&&<p className="asset-description">{asset.description||asset.visual?.description}</p>}{asset.imagePrompt&&<details className="asset-credits"><summary>{t("Z-Image-Turbo prompt")}</summary><p style={{whiteSpace:'pre-wrap',overflowWrap:'anywhere'}}>{asset.imagePrompt}</p><small>{asset.imageModel}</small></details>}{!!asset.tags?.length&&<div className="contribution-labels"><ul aria-label={t("Contributor tags")}>{asset.tags.map(tag=><li key={tag}>{tag}</li>)}</ul></div>}<a className="asset-source-link" href={asset.source} target="_blank" rel="noreferrer">{t("Original metadata")}<ArrowUpRight size={13}/></a>{asset.animationCount>0&&<p>{t("All embedded clips play together.")}</p>}{cached&&<small>{t("3D cached on this device")}</small>}{error&&<details><summary>{t("Preview details")}</summary><p>{modelMessage(error)}</p></details>}</div>}
|
| 93 |
{panel==='download'&&<div className="dock-panel selection-details"><h2>{t("Take this object with you.")}</h2><p>{t("Keep the original splats and their attribution.")}</p><a className="download-action" href={asset.download} target="_blank" rel="noreferrer" onClick={trackDownload}><Download size={16}/>{t("Download ")}{formatLabel}</a><button className="download-action" onClick={onToggleBasket}><ShoppingBag size={16}/>{inBasket?t("Remove from basket"):t("Add to basket")}</button><button className="download-action" onClick={copy}>{copied?<Check size={16}/>:<Copy size={16}/>} {copied?t("Command copied"):t("Copy download command")}</button><a className="download-action" href={asset.sourceFolder} target="_blank" rel="noreferrer">{t("Browse source files")}<ArrowUpRight size={15}/></a><details><summary>{t("Show command")}</summary><code>{command}</code></details><small>{t("Source version: ")}{asset.revision.slice(0,8)}</small></div>}
|
| 94 |
</section>}
|
| 95 |
</>;
|
frontend/src/explorer/file-size.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
/** Decimal units match network/download sizes; the title exposes exact bytes. */
|
| 2 |
-
export function formatFileSize(bytes:number){
|
| 3 |
-
if(!Number.isFinite(bytes)||bytes<0)return 'Unknown size';
|
| 4 |
-
const units=['B','kB','MB','GB'],index=Math.min(3,bytes?Math.floor(Math.log(bytes)/Math.log(1000)):0);
|
| 5 |
const value=bytes/1000**Math.max(0,index);
|
| 6 |
-
return value.toLocaleString('en-US',{maximumFractionDigits:index>0&&value<100?1:0})+' '+units[Math.max(0,index)];
|
| 7 |
}
|
|
|
|
| 1 |
/** Decimal units match network/download sizes; the title exposes exact bytes. */
|
| 2 |
+
export function formatFileSize(bytes:number,language:'en'|'fr'='en'){
|
| 3 |
+
if(!Number.isFinite(bytes)||bytes<0)return language==='fr'?'Taille inconnue':'Unknown size';
|
| 4 |
+
const units=language==='fr'?['o','ko','Mo','Go']:['B','kB','MB','GB'],index=Math.min(3,bytes?Math.floor(Math.log(bytes)/Math.log(1000)):0);
|
| 5 |
const value=bytes/1000**Math.max(0,index);
|
| 6 |
+
return value.toLocaleString(language==='fr'?'fr-FR':'en-US',{maximumFractionDigits:index>0&&value<100?1:0})+' '+units[Math.max(0,index)];
|
| 7 |
}
|
frontend/src/i18n.ts
CHANGED
|
@@ -24,3 +24,12 @@ export function termsUrl(){return language==='fr'?'/terms-fr.html':'/terms.html'
|
|
| 24 |
|
| 25 |
|
| 26 |
export function tf(value:string,values:Record<string,string|number>){return t(value).replace(/\{(\w+)\}/g,(match,key)=>key in values?String(values[key]):match);}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
|
| 26 |
export function tf(value:string,values:Record<string,string|number>){return t(value).replace(/\{(\w+)\}/g,(match,key)=>key in values?String(values[key]):match);}
|
| 27 |
+
|
| 28 |
+
// Engines keep raw messages so a language switch also updates work in progress.
|
| 29 |
+
export function modelMessage(value:string){
|
| 30 |
+
const progress=/^Downloading 3D · (\d+)%$/.exec(value);
|
| 31 |
+
if(progress)return tf('Downloading 3D · {percent}%',{percent:progress[1]});
|
| 32 |
+
const failure=/^The GLB could not be loaded \((\d+)\)\.$/.exec(value);
|
| 33 |
+
if(failure)return tf('The GLB could not be loaded ({status}).',{status:failure[1]});
|
| 34 |
+
return t(value);
|
| 35 |
+
}
|
frontend/src/locales/fr.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
{
|
| 2 |
"Collection": "Collection",
|
| 3 |
"Contribute": "Contribuer",
|
| 4 |
-
"A commons for everyone": "
|
| 5 |
"A shared world.": "Un monde en commun.",
|
| 6 |
"Built one object at a time.": "Un objet à la fois.",
|
| 7 |
-
"Help build an open collection of 3D assets.": "
|
| 8 |
"Share something others can explore, reuse and build on.": "Partagez des objets à explorer, réutiliser et transformer.",
|
| 9 |
-
"Make a contribution": "
|
| 10 |
"View dataset": "Voir le dataset",
|
| 11 |
-
"Built together. Shared with everyone.": "
|
| 12 |
-
"Built together ·": "
|
| 13 |
"Dataset": "Dataset",
|
| 14 |
"Licences & removal": "Licences et retrait",
|
| 15 |
"Collection resources": "Ressources de la collection",
|
|
@@ -19,7 +19,7 @@
|
|
| 19 |
"Sign in": "Se connecter",
|
| 20 |
"Sign in with Hugging Face": "Se connecter avec Hugging Face",
|
| 21 |
"Sign in to publish": "Se connecter pour publier",
|
| 22 |
-
"Color theme": "
|
| 23 |
"Dark theme": "Thème sombre",
|
| 24 |
"Light theme": "Thème clair",
|
| 25 |
"Switch to dark theme": "Passer au thème sombre",
|
|
@@ -27,19 +27,19 @@
|
|
| 27 |
"IDOL Commons home": "Accueil IDOL Commons",
|
| 28 |
"Workspace": "Espace de travail",
|
| 29 |
"Create an object": "Créer un objet",
|
| 30 |
-
"YOUR CONTRIBUTION, EVERYONE’S NEXT IDEA": "
|
| 31 |
"Bring an idea to the commons.": "Une idée à partager.",
|
| 32 |
"Start with an image or a prompt. Make an asset others can explore, reuse and build on.": "Partez d’une image ou d’un prompt. Créez un objet que d’autres pourront explorer, réutiliser et transformer.",
|
| 33 |
"Explore the collection": "Explorer la collection",
|
| 34 |
"Prepare an image": "Préparer une image",
|
| 35 |
-
"Generate & inspect": "Générer et
|
| 36 |
"Label & share": "Décrire et partager",
|
| 37 |
"Contribution steps": "Étapes de contribution",
|
| 38 |
"Start with an idea": "Partir d’une idée",
|
| 39 |
"One object, fully in frame. A simple background works best.": "Un objet entier dans le cadre, sur un fond simple de préférence.",
|
| 40 |
-
"Image source": "
|
| 41 |
"Upload image": "Importer une image",
|
| 42 |
-
"From a prompt": "
|
| 43 |
"Replace input image": "Remplacer l’image source",
|
| 44 |
"Upload an input image": "Importer une image source",
|
| 45 |
"Your input image": "Votre image source",
|
|
@@ -49,44 +49,44 @@
|
|
| 49 |
"PNG, JPEG or WebP · up to 20 MB": "PNG, JPEG ou WebP · jusqu’à 20 Mo",
|
| 50 |
"Preparing image…": "Préparation de l’image…",
|
| 51 |
"Image type": "Type d’image",
|
| 52 |
-
"Render or illustration": "Rendu ou illustration",
|
| 53 |
"Real photo": "Photographie",
|
| 54 |
"Advanced settings": "Paramètres avancés",
|
| 55 |
-
"Gaussians": "
|
| 56 |
-
"Steps": "
|
| 57 |
-
"Guidance": "Guidage",
|
| 58 |
-
"Time shift": "
|
| 59 |
-
"Seed": "
|
| 60 |
-
"Choose a new seed each time": "
|
| 61 |
-
"More Gaussians add detail and increase file size. All resolutions download as the original 3DGS PLY.": "
|
| 62 |
"Creating your object…": "Création de votre objet…",
|
| 63 |
"Generate 3D": "Générer en 3D",
|
| 64 |
"Private until you choose to publish.": "Privé tant que vous ne choisissez pas de publier.",
|
| 65 |
"3D generation is waiting for model access. You can prepare your input image while setup is completed.": "La génération 3D attend l’accès au modèle. Vous pouvez préparer votre image pendant la configuration.",
|
| 66 |
-
"Inspect your contribution": "
|
| 67 |
-
"Inspect · Label · Share": "
|
| 68 |
"Your 3D file is ready.": "Votre fichier 3D est prêt.",
|
| 69 |
-
"The preview could not be rendered. You can keep the original file and retry the preview without generating again.": "
|
| 70 |
"Download PLY": "Télécharger le PLY",
|
| 71 |
"Retry preview": "Relancer l’aperçu",
|
| 72 |
-
"Loading 3D viewer…": "Chargement
|
| 73 |
"A little space for your next idea.": "Une place pour votre prochaine idée.",
|
| 74 |
"Your 3D result will appear here.": "Votre résultat 3D apparaîtra ici.",
|
| 75 |
"Add an image to get started.": "Ajoutez une image pour commencer.",
|
| 76 |
-
"Real 3D previews. Original files. Yours to keep.": "
|
| 77 |
"Made by you. Ready for everyone?": "Créé par vous. Prêt à être partagé ?",
|
| 78 |
"Your creation, your choice.": "Votre création, votre choix.",
|
| 79 |
"An example of what IDOL can make.": "Un exemple de ce que peut créer IDOL.",
|
| 80 |
"Download now, or choose what to share with the community.": "Téléchargez votre objet ou choisissez de le partager avec la communauté.",
|
| 81 |
"This is a precomputed 3D result from the original IDOL demo.": "Ce résultat 3D précalculé vient de la démo IDOL originale.",
|
| 82 |
-
"Add a title, useful tags and credits, then review the licence and choose to publish.": "Ajoutez un titre, des
|
| 83 |
"Manage contribution": "Gérer la contribution",
|
| 84 |
"View existing object": "Voir l’objet existant",
|
| 85 |
"View in collection": "Voir dans la collection",
|
| 86 |
"Publish to collection": "Publier dans la collection",
|
| 87 |
"Review contribution": "Vérifier la contribution",
|
| 88 |
-
"Download a copy to keep it: private results expire after 24 hours.": "Téléchargez
|
| 89 |
-
"This demo example already has a contribution.": "Cet exemple
|
| 90 |
"This object is already in the collection.": "Cet objet est déjà dans la collection.",
|
| 91 |
"Your result stays private. The existing contribution by @": "Votre résultat reste privé. La contribution existante de @",
|
| 92 |
"is unchanged.": "reste inchangée.",
|
|
@@ -95,20 +95,20 @@
|
|
| 95 |
"Let’s try that again.": "Réessayons.",
|
| 96 |
"Open on Hugging Face": "Ouvrir sur Hugging Face",
|
| 97 |
"Keep image & retry": "Garder l’image et réessayer",
|
| 98 |
-
"Dismiss error": "Fermer
|
| 99 |
"One contribution. Endless starting points.": "Une contribution. Tant de possibilités.",
|
| 100 |
-
"Your asset could become someone else’s game prop, prototype or next idea.": "Votre objet
|
| 101 |
"Take a look": "Découvrir",
|
| 102 |
-
"Powered by": "
|
| 103 |
-
"Explorer by": "
|
| 104 |
-
"· Explorer by": "·
|
| 105 |
"Publishing, licensing & removal": "Publication, licences et retrait",
|
| 106 |
"Community 3D collection explorer": "Exploration de la collection 3D communautaire",
|
| 107 |
"Close dialog": "Fermer la fenêtre",
|
| 108 |
"Report an object": "Signaler un objet",
|
| 109 |
"Report received.": "Signalement reçu.",
|
| 110 |
-
"Help keep the collection useful.": "
|
| 111 |
-
"Hidden from the public viewer while the maintainer reviews it. Its author can still access it in My contributions. Dataset files remain public until removal.": "L’objet est masqué
|
| 112 |
"Sign in to send a private report to the maintainer.": "Connectez-vous pour envoyer un signalement privé au responsable.",
|
| 113 |
"You can also use": "Vous pouvez aussi utiliser",
|
| 114 |
"HF’s reporting channels": "les canaux de signalement de HF",
|
|
@@ -125,13 +125,13 @@
|
|
| 125 |
"Sending…": "Envoi…",
|
| 126 |
"Send report": "Envoyer le signalement",
|
| 127 |
"Back to collection": "Retour à la collection",
|
| 128 |
-
"YOUR PART OF THE COMMONS": "
|
| 129 |
-
"CARE FOR THE COMMONS": "
|
| 130 |
"Review reports. Keep the collection safe and useful.": "Examinez les signalements pour préserver une collection sûre et utile.",
|
| 131 |
"Edit details, choose a thumbnail or withdraw a contribution.": "Modifiez les informations, choisissez une vignette ou retirez une contribution.",
|
| 132 |
"Refresh contributions": "Actualiser les contributions",
|
| 133 |
"Refresh": "Actualiser",
|
| 134 |
-
"Moderation views": "
|
| 135 |
"Loading your workspace…": "Chargement de votre espace…",
|
| 136 |
"Needs review": "À examiner",
|
| 137 |
"Hidden": "Masqués",
|
|
@@ -145,18 +145,18 @@
|
|
| 145 |
"No reviewed cases yet.": "Aucun dossier examiné pour le moment.",
|
| 146 |
"Your contributions will live here.": "Vos contributions apparaîtront ici.",
|
| 147 |
"Only objects that need a moderation decision appear here.": "Seuls les objets nécessitant une décision de modération apparaissent ici.",
|
| 148 |
-
"Objects kept out of the public viewer appear here.": "Les objets masqués
|
| 149 |
"Reviewed reports and removed contributions appear here.": "Les signalements examinés et les contributions retirées apparaissent ici.",
|
| 150 |
-
"Published objects stay manageable even after your private generation expires.": "
|
| 151 |
"MANAGE CONTRIBUTION": "GÉRER LA CONTRIBUTION",
|
| 152 |
"REVIEW CONTRIBUTION": "EXAMINER LA CONTRIBUTION",
|
| 153 |
"Close contribution details": "Fermer la fiche de contribution",
|
| 154 |
"Close details": "Fermer la fiche",
|
| 155 |
"Removed from the current dataset. Earlier repository versions and downloaded copies may remain.": "Retiré du dataset actuel. Les versions précédentes et les copies téléchargées peuvent subsister.",
|
| 156 |
"Hidden publicly. Retry removal to finish updating the dataset.": "Masqué publiquement. Relancez le retrait pour terminer la mise à jour du dataset.",
|
| 157 |
-
"Hidden from the public viewer. The author and moderators can inspect it here. Thumbnail editing is paused during review. Dataset files remain public until removal.": "
|
| 158 |
"No reports. Opened directly from the collection.": "Aucun signalement. Ouvert directement depuis la collection.",
|
| 159 |
-
"Loading viewer…": "Chargement
|
| 160 |
"Published asset": "Objet publié",
|
| 161 |
"Drag to choose an angle, then select": "Faites glisser pour choisir un angle, puis utilisez",
|
| 162 |
"Use this angle": "Utiliser cet angle",
|
|
@@ -174,7 +174,7 @@
|
|
| 174 |
"Inappropriate content": "Contenu inapproprié",
|
| 175 |
"Misleading information": "Informations trompeuses",
|
| 176 |
"Removal request": "Demande de retrait",
|
| 177 |
-
"Hide from viewer": "Masquer
|
| 178 |
"Restore to collection": "Rétablir dans la collection",
|
| 179 |
"Keep hidden": "Garder masqué",
|
| 180 |
"Finish removal": "Terminer le retrait",
|
|
@@ -186,7 +186,7 @@
|
|
| 186 |
"Hide this object?": "Masquer cet objet ?",
|
| 187 |
"This removes the object, previews and metadata from the current dataset. Public history and copies may remain. This cannot be undone here.": "L’objet, ses aperçus et ses métadonnées seront retirés du dataset actuel. L’historique public et les copies peuvent subsister. Cette action ne peut pas être annulée ici.",
|
| 188 |
"The object becomes public again. Current open reports will be marked as reviewed.": "L’objet redeviendra public. Les signalements ouverts seront marqués comme examinés.",
|
| 189 |
-
"The object disappears from the public viewer. You can restore it later; dataset files remain public.": "L’objet
|
| 190 |
"Optional": "Facultatif",
|
| 191 |
"Cancel": "Annuler",
|
| 192 |
"Saving…": "Enregistrement…",
|
|
@@ -195,16 +195,16 @@
|
|
| 195 |
"Hide object": "Masquer l’objet",
|
| 196 |
"Contribution removed from the current dataset.": "Contribution retirée du dataset actuel.",
|
| 197 |
"Object restored to the public collection.": "Objet rétabli dans la collection publique.",
|
| 198 |
-
"Object hidden from the public viewer.": "Objet masqué
|
| 199 |
"Thumbnail updated. The original 3D file is unchanged.": "Vignette mise à jour. Le fichier 3D original reste inchangé.",
|
| 200 |
-
"Rendering your new thumbnail…": "
|
| 201 |
"Contribution details": "Informations sur la contribution",
|
| 202 |
"Asset details": "Informations sur l’objet",
|
| 203 |
"Edit details": "Modifier les informations",
|
| 204 |
"Details saved to the collection.": "Informations enregistrées dans la collection.",
|
| 205 |
"Title": "Titre",
|
| 206 |
"Category": "Catégorie",
|
| 207 |
-
"Tags": "
|
| 208 |
"Up to 12 · separated by commas": "Jusqu’à 12 · séparés par des virgules",
|
| 209 |
"Description": "Description",
|
| 210 |
"Licence & credits": "Licence et crédits",
|
|
@@ -221,7 +221,7 @@
|
|
| 221 |
"Source credits & permissions": "Crédits et autorisations de la source",
|
| 222 |
"Public credits only. Keep private evidence out of this field.": "Crédits publics uniquement. N’ajoutez pas de justificatifs confidentiels.",
|
| 223 |
"I confirm I can offer this contribution under": "Je confirme pouvoir partager cette contribution sous",
|
| 224 |
-
", with these credits and notices. Earlier grants are retained.": ", avec ces crédits et
|
| 225 |
"No structured rights declaration was recorded for this legacy contribution.": "Aucune déclaration structurée des droits n’a été enregistrée pour cette ancienne contribution.",
|
| 226 |
"This object stays hidden while it is reviewed. Updating its details does not restore it.": "Cet objet reste masqué pendant l’examen. Modifier ses informations ne le rétablit pas.",
|
| 227 |
"Your draft is kept. Loading the latest details will replace it.": "Votre brouillon est conservé. Charger les dernières informations le remplacera.",
|
|
@@ -237,13 +237,13 @@
|
|
| 237 |
"Not specified": "Non précisée",
|
| 238 |
"Copyright notice": "Mention de copyright",
|
| 239 |
"Copyright 2026 — rights holder": "Copyright 2026 — titulaire des droits",
|
| 240 |
-
"Upstream notices": "
|
| 241 |
-
"Preserve required source attribution, copyright and NOTICE text.": "Conservez les crédits
|
| 242 |
-
"Source terms still apply. A model licence does not clear rights in every input or depicted subject.": "Les conditions de la source restent applicables. La licence du modèle ne
|
| 243 |
-
"Reuse and remix, including commercially, with credit.": "Réutilisation et adaptation,
|
| 244 |
-
"Credit required. Adaptations keep the same licence.": "
|
| 245 |
-
"Dedicate your rights to the public domain, to the extent allowed by law.": "
|
| 246 |
-
"Keep the licence and notices. Identify modifications; includes a limited patent grant.": "Conservez la licence et les
|
| 247 |
"Keep the copyright and permission notice. Commonly used for software.": "Conservez les mentions de copyright et d’autorisation. Courante pour les logiciels.",
|
| 248 |
"Share with the commons": "Partager avec la communauté",
|
| 249 |
"Keep private and close sharing": "Garder privé et fermer le partage",
|
|
@@ -251,9 +251,9 @@
|
|
| 251 |
"1. Details": "1. Informations",
|
| 252 |
"2. Rights & publish": "2. Droits et publication",
|
| 253 |
"Your collection thumbnail": "Votre vignette dans la collection",
|
| 254 |
-
"Selected thumbnail, rendered from your 3D object": "Vignette choisie,
|
| 255 |
"Rotate above, then choose “Use this angle”.": "Faites pivoter l’objet au-dessus, puis choisissez « Utiliser cet angle ».",
|
| 256 |
-
"A short, useful name": "Un nom court et
|
| 257 |
"Choose a category": "Choisir une catégorie",
|
| 258 |
"Optional · up to 12": "Facultatifs · jusqu’à 12",
|
| 259 |
"What could someone build with it?": "Que pourrait-on créer avec cet objet ?",
|
|
@@ -261,13 +261,13 @@
|
|
| 261 |
"Private input": "Image source privée",
|
| 262 |
"Choose your rights basis": "Précisez vos droits",
|
| 263 |
"IDOL declares Apache 2.0 for its repository. Individual example-image rights are not separately verified. Preserve source credits and review the depicted subject.": "Le dépôt IDOL déclare Apache 2.0. Les droits propres à chaque image d’exemple ne sont pas vérifiés séparément. Conservez les crédits et vérifiez les droits sur le sujet représenté.",
|
| 264 |
-
"I reviewed third-party rights, people, privacy and content.": "J’ai vérifié les droits des tiers,
|
| 265 |
"I have the rights to publish under": "Je dispose des droits nécessaires pour publier sous",
|
| 266 |
"and accept the": "et j’accepte les",
|
| 267 |
"publication terms": "conditions de publication",
|
| 268 |
", including public repository history.": ", y compris l’historique du dépôt public.",
|
| 269 |
"What becomes public?": "Qu’est-ce qui devient public ?",
|
| 270 |
-
"The object, rendered previews, labels, credits and your HF username. Reuse follows your selected licence and any upstream notices. Your input image and prompt stay private. You grant only rights you hold; AI generation does not clear third-party rights. Copies and repository history can remain after removal.": "L’objet, les
|
| 271 |
"Publishing is temporarily unavailable. Your review stays here; download a copy of your result.": "La publication est temporairement indisponible. Vos informations restent ici ; téléchargez une copie du résultat.",
|
| 272 |
"Keep private": "Garder privé",
|
| 273 |
"Review rights": "Vérifier les droits",
|
|
@@ -285,7 +285,7 @@
|
|
| 285 |
"Close examples": "Fermer les exemples",
|
| 286 |
"94 STARTING POINTS, YOUR NEXT CONTRIBUTION": "94 POINTS DE DÉPART POUR VOTRE PROCHAINE CONTRIBUTION",
|
| 287 |
"Try an original IDOL example.": "Essayez un exemple IDOL original.",
|
| 288 |
-
"Choose an input image and its original generation settings. Inspect your own result before deciding whether to share it.": "Choisissez une image
|
| 289 |
"Find an example": "Chercher un exemple",
|
| 290 |
"Chair, robot, backpack…": "Chaise, robot, sac à dos…",
|
| 291 |
"All examples": "Tous les exemples",
|
|
@@ -307,27 +307,27 @@
|
|
| 307 |
"Waiting for the GPU": "En attente du GPU",
|
| 308 |
"Generating your object": "Génération de votre objet",
|
| 309 |
"Checking the 3D result": "Vérification du résultat 3D",
|
| 310 |
-
"Rendering your thumbnail": "
|
| 311 |
"Working on your object": "Traitement de votre objet",
|
| 312 |
-
"Your place is saved. The GPU will start when available.": "Votre
|
| 313 |
"Turning your image into a real 3D object.": "Transformation de votre image en objet 3D.",
|
| 314 |
-
"Checking the splats before preparing your preview.": "Vérification des
|
| 315 |
-
"Creating a transparent preview from the 3D result.": "
|
| 316 |
"Queue": "File d’attente",
|
| 317 |
-
"Generate": "
|
| 318 |
-
"Validate": "
|
| 319 |
"Preview": "Aperçu",
|
| 320 |
"in this step": "à cette étape",
|
| 321 |
-
"Check status": "
|
| 322 |
"Loading 3D…": "Chargement 3D…",
|
| 323 |
-
"Rendered preview of the 3D result": "
|
| 324 |
"Example result": "Exemple de résultat",
|
| 325 |
"Your result": "Votre résultat",
|
| 326 |
"Expand 3D result": "Agrandir le résultat 3D",
|
| 327 |
-
"3D unavailable · Rendered preview": "3D indisponible · Aperçu
|
| 328 |
-
"Drag to rotate · Scroll to zoom": "
|
| 329 |
-
"Retry 3D": "
|
| 330 |
-
"Render a transparent thumbnail from this angle; framing is fitted automatically": "
|
| 331 |
"Preview details": "Détails de l’aperçu",
|
| 332 |
"Describe an object": "Décrivez un objet",
|
| 333 |
"A small ceramic teapot, rounded shape, blue glaze. One object, fully visible on a plain white background.": "Une petite théière en céramique, arrondie, émaillée en bleu. Un seul objet, entièrement visible sur un fond blanc uni.",
|
|
@@ -340,26 +340,26 @@
|
|
| 340 |
"Generate another image": "Générer une autre image",
|
| 341 |
"Generate image": "Générer une image",
|
| 342 |
"Image generation is being configured. You can upload an image instead.": "La génération d’image est en cours de configuration. Vous pouvez importer une image.",
|
| 343 |
-
"Generated input image · seed": "Image
|
| 344 |
"Private image generated by Z-Image-Turbo, not a 3D result": "Image privée générée par Z-Image-Turbo, pas un résultat 3D",
|
| 345 |
-
"Use for 3D": "
|
| 346 |
"IDOL community collection — return to overview": "Collection communautaire IDOL — revenir à la vue d’ensemble",
|
| 347 |
"Shared assets": "Objets partagés",
|
| 348 |
"All generators": "Tous les générateurs",
|
| 349 |
-
"Contribute an asset": "
|
| 350 |
-
"About this explorer": "À propos de
|
| 351 |
"Search objects": "Rechercher des objets",
|
| 352 |
-
"Objects, tags, contributors…": "Objets,
|
| 353 |
"Clear search": "Effacer la recherche",
|
| 354 |
"Search filters": "Filtres de recherche",
|
| 355 |
"Animated objects": "Objets animés",
|
| 356 |
"Show objects with an embedded animation.": "Afficher les objets avec une animation intégrée.",
|
| 357 |
"Close information": "Fermer les informations",
|
| 358 |
"A dataset built by its community.": "Un dataset créé par sa communauté.",
|
| 359 |
-
"Every contribution adds an asset others can inspect, download and build on. Find objects by title, contributor, category or tags.": "Chaque contribution
|
| 360 |
"Contribution terms": "Conditions de contribution",
|
| 361 |
"Reported objects are hidden from the public collection during review.": "Les objets signalés sont masqués de la collection publique pendant l’examen.",
|
| 362 |
-
"The catalogue is taking a moment.": "Le
|
| 363 |
"Retry refresh": "Relancer l’actualisation",
|
| 364 |
"Making room for objects…": "Préparation de la collection…",
|
| 365 |
"Objects are being reviewed.": "Des objets sont en cours d’examen.",
|
|
@@ -369,11 +369,11 @@
|
|
| 369 |
"No matching objects.": "Aucun objet correspondant.",
|
| 370 |
"Try another word or clear your filters.": "Essayez un autre mot ou effacez les filtres.",
|
| 371 |
"Show all objects": "Afficher tous les objets",
|
| 372 |
-
"Object exploration canvas": "
|
| 373 |
-
"Drag to explore · Scroll to zoom": "
|
| 374 |
-
"Drag to explore · Pinch to zoom": "
|
| 375 |
"Clear all filters": "Effacer tous les filtres",
|
| 376 |
-
"Interface by fffiloni": "Interface
|
| 377 |
"Zoom out": "Dézoomer",
|
| 378 |
"Reset view": "Réinitialiser la vue",
|
| 379 |
"Zoom in": "Zoomer",
|
|
@@ -381,14 +381,14 @@
|
|
| 381 |
"Object controls": "Commandes de l’objet",
|
| 382 |
"Object information": "Informations sur l’objet",
|
| 383 |
"Licence": "Licence",
|
| 384 |
-
"Attribution & source": "
|
| 385 |
-
"Contributor declaration; not independently verified.": "
|
| 386 |
"Original metadata": "Métadonnées originales",
|
| 387 |
-
"Contributor tags": "
|
| 388 |
-
"All embedded clips play together.": "
|
| 389 |
-
"3D cached on this device": "3D en cache sur cet appareil",
|
| 390 |
-
"Take this object with you.": "
|
| 391 |
-
"Keep the original splats and their attribution.": "Conservez les
|
| 392 |
"Download": "Télécharger",
|
| 393 |
"Browse source files": "Parcourir les fichiers sources",
|
| 394 |
"Show command": "Afficher la commande",
|
|
@@ -398,21 +398,21 @@
|
|
| 398 |
"Download object": "Télécharger l’objet",
|
| 399 |
"Add to basket": "Ajouter au panier",
|
| 400 |
"Remove from basket": "Retirer du panier",
|
| 401 |
-
"Close object": "Fermer
|
| 402 |
"Loading 3D": "Chargement 3D",
|
| 403 |
-
"3D ready · Drag object to rotate": "3D
|
| 404 |
-
"3D unavailable · HD preview": "3D indisponible · Aperçu HD",
|
| 405 |
-
"Retry 3D preview": "
|
| 406 |
"Report this object": "Signaler cet objet",
|
| 407 |
"Report": "Signaler",
|
| 408 |
"Community activity": "Activité communautaire",
|
| 409 |
-
"One like per Hugging Face account": "
|
| 410 |
-
"Like object": "
|
| 411 |
-
"Unlike object": "Retirer mon
|
| 412 |
"Likes": "J’aime",
|
| 413 |
-
"Daily-deduplicated additions from this app": "Ajouts
|
| 414 |
"Basket adds": "Ajouts au panier",
|
| 415 |
-
"Daily-deduplicated app requests; not proof a file was saved": "Demandes
|
| 416 |
"Download requests": "Demandes de téléchargement",
|
| 417 |
"Manage asset": "Gérer l’objet",
|
| 418 |
"Moderate": "Modérer",
|
|
@@ -422,7 +422,7 @@
|
|
| 422 |
"A small collection to take with you.": "Une petite collection à emporter.",
|
| 423 |
"See something you like?": "Un objet vous plaît ?",
|
| 424 |
"Open an object and tap the bag to add it here.": "Ouvrez un objet et touchez le panier pour l’ajouter ici.",
|
| 425 |
-
"Original 3D packages, with rendered previews and source metadata. Credits and licenses are included in the selection.": "Fichiers 3D originaux
|
| 426 |
"Download complete packages on your computer": "Télécharger les fichiers complets sur votre ordinateur",
|
| 427 |
"Requires Python and huggingface_hub. Setup instructions are included in the script.": "Nécessite Python et huggingface_hub. Le script contient les instructions d’installation.",
|
| 428 |
"Get download script": "Obtenir le script de téléchargement",
|
|
@@ -444,7 +444,7 @@
|
|
| 444 |
"Embedded animation · synchronized playback": "Animation intégrée · lecture synchronisée",
|
| 445 |
"Animated object": "Objet animé",
|
| 446 |
"Preview unavailable · Open 3D": "Aperçu indisponible · Ouvrir la 3D",
|
| 447 |
-
"Selected object · 3D ready": "Objet sélectionné · 3D
|
| 448 |
"Selected object · 3D unavailable, showing image": "Objet sélectionné · 3D indisponible, aperçu affiché",
|
| 449 |
"Selected object · Loading 3D": "Objet sélectionné · Chargement 3D",
|
| 450 |
"Switch to light mode": "Passer au mode clair",
|
|
@@ -464,7 +464,7 @@
|
|
| 464 |
"match": "résultat",
|
| 465 |
"matches": "résultats",
|
| 466 |
"Generator": "Générateur",
|
| 467 |
-
"Use up to 12 tags: lowercase words, numbers and hyphens, separated by commas.": "
|
| 468 |
"The update could not be confirmed. Retry with your saved draft.": "La mise à jour n’a pas pu être confirmée. Réessayez avec votre brouillon conservé.",
|
| 469 |
"Could not load the latest details.": "Impossible de charger la dernière version.",
|
| 470 |
"This contribution changed. Reload its latest details before saving.": "Cette contribution a changé. Chargez la dernière version avant d’enregistrer.",
|
|
@@ -486,7 +486,7 @@
|
|
| 486 |
"Generation could not be completed. Please retry.": "La génération n’a pas pu se terminer. Veuillez réessayer.",
|
| 487 |
"Generation failed.": "Échec de la génération.",
|
| 488 |
"Generation failed. Try again.": "Échec de la génération. Réessayez.",
|
| 489 |
-
"Please retry this result.": "Relancez ce résultat.",
|
| 490 |
"Hugging Face sign-in is not configured in this development build.": "La connexion Hugging Face n’est pas configurée dans cette version de développement.",
|
| 491 |
"Check your prompt and try again.": "Vérifiez votre prompt puis réessayez.",
|
| 492 |
"Image generation could not start.": "La génération d’image n’a pas pu démarrer.",
|
|
@@ -513,12 +513,12 @@
|
|
| 513 |
"architecture": "Architecture",
|
| 514 |
"art": "Art",
|
| 515 |
"other": "Autre",
|
| 516 |
-
"Community contributions, with a licence for each asset. Inspect real Gaussian splats and download the original files with their notices.": "Des
|
| 517 |
"Legal notices": "Mentions de licence",
|
| 518 |
-
"Earlier licence grants": "Licences
|
| 519 |
"nature": "Nature",
|
| 520 |
"wearables": "vêtements et accessoires",
|
| 521 |
-
"Inspect": "
|
| 522 |
"All groups": "Tous les groupes",
|
| 523 |
"Try again": "Réessayer",
|
| 524 |
"For an IDOL demo input, identify its source licence or separate permission; the example is not your own source creation.": "Pour un exemple IDOL, indiquez sa licence source ou une autorisation distincte ; cette image source n’est pas votre propre création.",
|
|
@@ -528,22 +528,22 @@
|
|
| 528 |
"Edit input": "Modifier",
|
| 529 |
"Your input is saved": "Votre image est conservée",
|
| 530 |
"Image and settings stay private.": "Image et paramètres restent privés.",
|
| 531 |
-
"Explore and share 3D assets.": "
|
| 532 |
-
"Drag · Ctrl + scroll to zoom": "
|
| 533 |
-
"Scroll with one finger · Explore with two": "
|
| 534 |
"Touch controls": "Commandes tactiles",
|
| 535 |
"Explore": "Explorer",
|
| 536 |
-
"Scroll page": "
|
| 537 |
"Swipe to scroll the page.": "Glissez pour faire défiler la page.",
|
| 538 |
"All contributions": "Toutes les contributions",
|
| 539 |
"No contributions yet.": "Aucune contribution pour le moment.",
|
| 540 |
"All contributions can be managed here.": "Toutes les contributions peuvent être gérées ici.",
|
| 541 |
"Manage contributions, edit details and review reports.": "Gérez les contributions, modifiez les informations et traitez les signalements.",
|
| 542 |
"Contributions list": "Liste des contributions",
|
| 543 |
-
"Preparing an editable description and tags…": "
|
| 544 |
"Suggested from the object — review and edit before publishing.": "Proposition basée sur l’objet : relisez et modifiez avant de publier.",
|
| 545 |
"Automatic description unavailable. You can fill in the details.": "Description automatique indisponible. Vous pouvez remplir les champs.",
|
| 546 |
-
"Retry description": "
|
| 547 |
"Your Z-Image-Turbo prompt": "Votre prompt Z-Image-Turbo",
|
| 548 |
"Z-Image-Turbo prompt": "Prompt Z-Image-Turbo",
|
| 549 |
"Private unless you choose to publish it below.": "Privé, sauf si vous choisissez de le publier ci-dessous.",
|
|
@@ -551,13 +551,13 @@
|
|
| 551 |
"Optional. The full prompt will be public in the dataset and its history.": "Facultatif. Le prompt complet sera public dans le dataset et son historique.",
|
| 552 |
"The object, rendered previews, labels, credits and your HF username. Reuse follows your selected licence and any upstream notices. Your input image stays private. The prompt is public only if you explicitly choose to include it. You grant only rights you hold; AI generation does not clear third-party rights. Copies and repository history can remain after removal.": "L’objet, ses aperçus, ses informations, les crédits et votre nom HF. La réutilisation suit la licence choisie et les mentions des sources. Votre image source reste privée. Le prompt devient public uniquement si vous choisissez explicitement de l’inclure. Vous accordez uniquement vos propres droits ; une génération IA ne libère pas les droits de tiers. Les copies et l’historique peuvent subsister après un retrait.",
|
| 553 |
"Closing keeps your draft on this page.": "Votre brouillon reste sur cette page après fermeture.",
|
| 554 |
-
"Use up to 12 tags, separated by commas. Accents and spaces are converted automatically.": "12
|
| 555 |
-
"Use up to 12 tags of 24 characters: letters, numbers and hyphens, separated by commas.": "12
|
| 556 |
"Review and publish": "Vérifier et publier",
|
| 557 |
"Use {title} example": "Utiliser l’exemple {title}",
|
| 558 |
"Open basket, {count} object": "Ouvrir le panier, {count} objet",
|
| 559 |
"Open basket, {count} objects": "Ouvrir le panier, {count} objets",
|
| 560 |
-
"Inspect {name} from basket": "
|
| 561 |
"Remove {name} from basket": "Retirer {name} du panier",
|
| 562 |
"Downloading {count} files…": "Téléchargement de {count} fichiers…",
|
| 563 |
"Downloading {done} of {total} files…": "Téléchargement de {done} fichiers sur {total}…",
|
|
@@ -567,9 +567,9 @@
|
|
| 567 |
"Hugging Face sign-in is temporarily unavailable. Please try again later.": "La connexion Hugging Face est temporairement indisponible. Réessayez plus tard.",
|
| 568 |
"You can explore and try generation before signing in. Nothing is published automatically.": "Vous pouvez explorer et essayer la génération avant de vous connecter. Rien n’est publié automatiquement.",
|
| 569 |
"Help build the largest open 3D dataset.": "Contribuez à bâtir le plus grand dataset 3D ouvert.",
|
| 570 |
-
"Switch to Explore to rotate the object.": "
|
| 571 |
"Search contributions": "Rechercher dans les contributions",
|
| 572 |
-
"Titles, descriptions, tags…": "Titres, descriptions,
|
| 573 |
"Clear contribution search": "Effacer la recherche de contributions",
|
| 574 |
"Searching…": "Recherche…",
|
| 575 |
"No matching contributions.": "Aucune contribution correspondante.",
|
|
@@ -577,13 +577,13 @@
|
|
| 577 |
"3D loading took too long. Retry the preview.": "Le chargement 3D a pris trop de temps. Réessayez l’aperçu.",
|
| 578 |
"Another collection update is finishing. Retry shortly.": "Une mise à jour de la collection est en cours. Votre modification n’a pas été enregistrée ; réessayez dans quelques instants.",
|
| 579 |
"Another publication is finishing. Your request is saved; retry shortly.": "Une publication est en cours. Votre demande est conservée ; réessayez dans quelques instants.",
|
| 580 |
-
"Sign in to contribute and like objects.": "Connectez-vous
|
| 581 |
"Sign in to contribute": "Se connecter pour contribuer",
|
| 582 |
-
"Sign in to like this object": "Se connecter pour
|
| 583 |
-
"Sign in to like": "Se connecter pour
|
| 584 |
"Previous input restored. Replace it to start a new object.": "Image précédente restaurée. Remplacez-la pour créer un nouvel objet.",
|
| 585 |
"New image ready. Generate 3D to create your next object.": "Nouvelle image prête. Lancez la génération 3D pour créer votre prochain objet.",
|
| 586 |
-
"Photo prepared and ready. Generate 3D to create your next object.": "
|
| 587 |
"Previous image kept.": "Image précédente conservée.",
|
| 588 |
"Restoring saved input…": "Restauration de l’image enregistrée…",
|
| 589 |
"Image not replaced": "L’image n’a pas été remplacée",
|
|
@@ -604,8 +604,8 @@
|
|
| 604 |
"Image not added": "L’image n’a pas été importée",
|
| 605 |
"Choose a PNG, JPEG or WebP photo.": "Choisissez une photo PNG, JPEG ou WebP.",
|
| 606 |
"Animated images are not supported. Choose a still photo.": "Les images animées ne sont pas prises en charge. Choisissez une photo fixe.",
|
| 607 |
-
"Automatic description queued. You can fill in the details now.": "
|
| 608 |
-
"Checking for an automatic description…": "
|
| 609 |
"Enter details myself": "Saisir les informations moi-même",
|
| 610 |
"Fill in the details below. Your edits are kept.": "Remplissez les champs ci-dessous. Vos modifications sont conservées.",
|
| 611 |
"Automatic description is taking too long. Fill in the details or retry.": "La description automatique prend trop de temps. Remplissez les champs ou réessayez.",
|
|
@@ -632,14 +632,14 @@
|
|
| 632 |
"Check the image generator’s terms and any characters, brands or people shown. AI generation does not clear their rights.": "Vérifiez les conditions du générateur et les droits sur les personnages, marques ou personnes représentés. L’IA ne lève pas ces droits.",
|
| 633 |
"An openly licensed source": "Une source sous licence libre",
|
| 634 |
"I know its licence": "Je connais sa licence",
|
| 635 |
-
"Use the licence attached to this specific image. Being online or free to download is not a licence.": "
|
| 636 |
"I have permission": "J’ai une autorisation",
|
| 637 |
"From the relevant rights holders": "Des titulaires des droits concernés",
|
| 638 |
"Permission must cover public redistribution and adaptations, including commercial use, under your chosen licence. Keep the evidence privately.": "L’autorisation doit couvrir la redistribution publique, les adaptations et l’usage commercial sous la licence choisie. Conservez le justificatif en privé.",
|
| 639 |
"A public-domain source": "Une source du domaine public",
|
| 640 |
"I checked its status": "J’ai vérifié son statut",
|
| 641 |
"Identify why the source is in the public domain. Your licence covers only any rights you hold in your contribution.": "Précisez pourquoi la source relève du domaine public. Votre licence porte uniquement sur les éventuels droits que vous détenez sur votre contribution.",
|
| 642 |
-
"I’m not sure": "Je ne
|
| 643 |
"Keep the result private for now": "Garder le résultat privé pour l’instant",
|
| 644 |
"You can download your result and return later. Verify the source and the rights in the depicted subject before publishing.": "Vous pouvez télécharger le résultat et revenir plus tard. Vérifiez la source et les droits sur le sujet représenté avant de publier.",
|
| 645 |
"Where does your image come from?": "D’où vient votre image ?",
|
|
@@ -654,18 +654,18 @@
|
|
| 654 |
"Creator, source link and licence, if applicable": "Auteur, lien de la source et licence, le cas échéant",
|
| 655 |
"These credits will be public. Keep contracts and personal details out.": "Ces crédits seront publics. N’incluez ni contrat ni données personnelles.",
|
| 656 |
"Understand third-party rights": "Comprendre les droits des tiers",
|
| 657 |
-
"Reuse with credit": "
|
| 658 |
-
"Credit the creator, link the licence and indicate changes.": "
|
| 659 |
-
"Credit + share alike": "
|
| 660 |
-
"Credit the creator and indicate changes. Share adaptations under the same or a compatible licence.": "
|
| 661 |
-
"Dedicate your rights": "
|
| 662 |
-
"Waive copyright and related rights to the extent possible. CC0 does not require credit; third-party rights remain.": "
|
| 663 |
-
"Keep licence + notices": "Conserver licence et mentions",
|
| 664 |
-
"Include the licence, retain applicable notices and identify modifications. A limited patent grant applies; trademarks are not licensed.": "
|
| 665 |
-
"Keep copyright + licence": "Conserver copyright et licence",
|
| 666 |
-
"Include the copyright and permission notice. Written primarily for software; use only when appropriate for this work.": "
|
| 667 |
"Selected": "Choisie",
|
| 668 |
-
"How can others reuse your object?": "
|
| 669 |
"For the rights you hold. Source terms still apply.": "Pour les droits que vous détenez. Les conditions de la source restent applicables.",
|
| 670 |
"All offered licences allow": "Toutes les licences proposées autorisent",
|
| 671 |
"Share": "Partager",
|
|
@@ -680,27 +680,184 @@
|
|
| 680 |
"Private until you publish": "Privé jusqu’à publication",
|
| 681 |
"Describe": "Décrire",
|
| 682 |
"Source": "Source",
|
| 683 |
-
"Before it goes public": "Avant de
|
| 684 |
-
"3D object, previews, labels, credits and your HF username.": "Objet 3D, aperçus, description,
|
| 685 |
-
"Your input image. Your prompt unless you opt in below.": "Votre image
|
| 686 |
"Include the image prompt?": "Inclure le prompt de l’image ?",
|
| 687 |
"Publish this prompt with the asset. It will also enter the public dataset history.": "Publier ce prompt avec l’objet. Il sera aussi inscrit dans l’historique public du dataset.",
|
| 688 |
"Your prompt will be public.": "Votre prompt sera public.",
|
| 689 |
"Removal does not recall existing copies or valid licence grants. Repository history may remain.": "Un retrait n’efface pas les copies existantes ni les autorisations valablement accordées. L’historique du dépôt peut subsister.",
|
| 690 |
-
"I checked third-party rights, people, privacy and content.": "J’ai vérifié les droits des tiers,
|
| 691 |
"For both the image and the depicted subject.": "Pour l’image comme pour le sujet représenté.",
|
| 692 |
"I can publish under": "Je peux publier sous",
|
| 693 |
"Back": "Retour",
|
| 694 |
"Identify source": "Identifier la source",
|
| 695 |
"Choose licence": "Choisir la licence",
|
| 696 |
-
"Credit the creator, link the licence and indicate changes. Share adaptations under the same or a compatible licence.": "
|
| 697 |
-
"Input image. Prompt unless you opt in.": "Image
|
| 698 |
-
"Your input image.": "Votre image
|
| 699 |
-
"Object, previews, labels, credits and HF username.": "Objet, aperçus, description,
|
| 700 |
"Rights in the depicted subject": "Les droits sur le sujet représenté",
|
| 701 |
"Rights in an image and rights in what it depicts are separate. Check any applicable third-party permissions before publishing. If uncertain, keep the result private.": "Les droits sur l’image et sur ce qu’elle représente sont distincts. Vérifiez les autorisations nécessaires auprès des tiers avant de publier. En cas de doute, gardez le résultat privé.",
|
| 702 |
-
"Credits & legal notices": "Crédits et
|
| 703 |
"In baskets": "Dans les paniers",
|
| 704 |
-
"Browser baskets containing this object, synced within the last 90 days": "Paniers de navigateur contenant cet objet, synchronisés au cours des 90 derniers jours",
|
| 705 |
-
"Basket saved on this device. Community counts are awaiting sync.": "Panier enregistré sur cet appareil. Les compteurs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 706 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"Collection": "Collection",
|
| 3 |
"Contribute": "Contribuer",
|
| 4 |
+
"A commons for everyone": "Une collection ouverte à tous",
|
| 5 |
"A shared world.": "Un monde en commun.",
|
| 6 |
"Built one object at a time.": "Un objet à la fois.",
|
| 7 |
+
"Help build an open collection of 3D assets.": "Contribuez à une collection ouverte d’objets 3D.",
|
| 8 |
"Share something others can explore, reuse and build on.": "Partagez des objets à explorer, réutiliser et transformer.",
|
| 9 |
+
"Make a contribution": "Partager un objet",
|
| 10 |
"View dataset": "Voir le dataset",
|
| 11 |
+
"Built together. Shared with everyone.": "Une collection collective, accessible à tous.",
|
| 12 |
+
"Built together ·": "Une création collective ·",
|
| 13 |
"Dataset": "Dataset",
|
| 14 |
"Licences & removal": "Licences et retrait",
|
| 15 |
"Collection resources": "Ressources de la collection",
|
|
|
|
| 19 |
"Sign in": "Se connecter",
|
| 20 |
"Sign in with Hugging Face": "Se connecter avec Hugging Face",
|
| 21 |
"Sign in to publish": "Se connecter pour publier",
|
| 22 |
+
"Color theme": "Apparence",
|
| 23 |
"Dark theme": "Thème sombre",
|
| 24 |
"Light theme": "Thème clair",
|
| 25 |
"Switch to dark theme": "Passer au thème sombre",
|
|
|
|
| 27 |
"IDOL Commons home": "Accueil IDOL Commons",
|
| 28 |
"Workspace": "Espace de travail",
|
| 29 |
"Create an object": "Créer un objet",
|
| 30 |
+
"YOUR CONTRIBUTION, EVERYONE’S NEXT IDEA": "VOS OBJETS, DE NOUVELLES POSSIBILITÉS",
|
| 31 |
"Bring an idea to the commons.": "Une idée à partager.",
|
| 32 |
"Start with an image or a prompt. Make an asset others can explore, reuse and build on.": "Partez d’une image ou d’un prompt. Créez un objet que d’autres pourront explorer, réutiliser et transformer.",
|
| 33 |
"Explore the collection": "Explorer la collection",
|
| 34 |
"Prepare an image": "Préparer une image",
|
| 35 |
+
"Generate & inspect": "Générer et visualiser",
|
| 36 |
"Label & share": "Décrire et partager",
|
| 37 |
"Contribution steps": "Étapes de contribution",
|
| 38 |
"Start with an idea": "Partir d’une idée",
|
| 39 |
"One object, fully in frame. A simple background works best.": "Un objet entier dans le cadre, sur un fond simple de préférence.",
|
| 40 |
+
"Image source": "Origine de l’image",
|
| 41 |
"Upload image": "Importer une image",
|
| 42 |
+
"From a prompt": "Avec un prompt",
|
| 43 |
"Replace input image": "Remplacer l’image source",
|
| 44 |
"Upload an input image": "Importer une image source",
|
| 45 |
"Your input image": "Votre image source",
|
|
|
|
| 49 |
"PNG, JPEG or WebP · up to 20 MB": "PNG, JPEG ou WebP · jusqu’à 20 Mo",
|
| 50 |
"Preparing image…": "Préparation de l’image…",
|
| 51 |
"Image type": "Type d’image",
|
| 52 |
+
"Render or illustration": "Rendu 3D ou illustration",
|
| 53 |
"Real photo": "Photographie",
|
| 54 |
"Advanced settings": "Paramètres avancés",
|
| 55 |
+
"Gaussians": "gaussiennes",
|
| 56 |
+
"Steps": "Pas d’échantillonnage",
|
| 57 |
+
"Guidance": "Guidage CFG",
|
| 58 |
+
"Time shift": "Time shift",
|
| 59 |
+
"Seed": "Seed",
|
| 60 |
+
"Choose a new seed each time": "Tirer une nouvelle seed à chaque génération",
|
| 61 |
+
"More Gaussians add detail and increase file size. All resolutions download as the original 3DGS PLY.": "Davantage de gaussiennes peut restituer plus de détails, mais alourdit le fichier. Le téléchargement conserve les gaussiennes au format PLY 3DGS.",
|
| 62 |
"Creating your object…": "Création de votre objet…",
|
| 63 |
"Generate 3D": "Générer en 3D",
|
| 64 |
"Private until you choose to publish.": "Privé tant que vous ne choisissez pas de publier.",
|
| 65 |
"3D generation is waiting for model access. You can prepare your input image while setup is completed.": "La génération 3D attend l’accès au modèle. Vous pouvez préparer votre image pendant la configuration.",
|
| 66 |
+
"Inspect your contribution": "Visualiser le résultat",
|
| 67 |
+
"Inspect · Label · Share": "Visualiser · Décrire · Partager",
|
| 68 |
"Your 3D file is ready.": "Votre fichier 3D est prêt.",
|
| 69 |
+
"The preview could not be rendered. You can keep the original file and retry the preview without generating again.": "Le rendu de l’aperçu a échoué. Vous pouvez télécharger le fichier original et relancer le rendu sans régénérer l’objet.",
|
| 70 |
"Download PLY": "Télécharger le PLY",
|
| 71 |
"Retry preview": "Relancer l’aperçu",
|
| 72 |
+
"Loading 3D viewer…": "Chargement de la vue 3D…",
|
| 73 |
"A little space for your next idea.": "Une place pour votre prochaine idée.",
|
| 74 |
"Your 3D result will appear here.": "Votre résultat 3D apparaîtra ici.",
|
| 75 |
"Add an image to get started.": "Ajoutez une image pour commencer.",
|
| 76 |
+
"Real 3D previews. Original files. Yours to keep.": "Visualisez en 3D, puis téléchargez les fichiers originaux.",
|
| 77 |
"Made by you. Ready for everyone?": "Créé par vous. Prêt à être partagé ?",
|
| 78 |
"Your creation, your choice.": "Votre création, votre choix.",
|
| 79 |
"An example of what IDOL can make.": "Un exemple de ce que peut créer IDOL.",
|
| 80 |
"Download now, or choose what to share with the community.": "Téléchargez votre objet ou choisissez de le partager avec la communauté.",
|
| 81 |
"This is a precomputed 3D result from the original IDOL demo.": "Ce résultat 3D précalculé vient de la démo IDOL originale.",
|
| 82 |
+
"Add a title, useful tags and credits, then review the licence and choose to publish.": "Ajoutez un titre, des mots-clés et les crédits, puis vérifiez la licence avant de publier.",
|
| 83 |
"Manage contribution": "Gérer la contribution",
|
| 84 |
"View existing object": "Voir l’objet existant",
|
| 85 |
"View in collection": "Voir dans la collection",
|
| 86 |
"Publish to collection": "Publier dans la collection",
|
| 87 |
"Review contribution": "Vérifier la contribution",
|
| 88 |
+
"Download a copy to keep it: private results expire after 24 hours.": "Téléchargez votre fichier pour le conserver : les résultats privés sont supprimés au bout de 24 heures.",
|
| 89 |
+
"This demo example already has a contribution.": "Cet exemple a déjà été publié dans la collection.",
|
| 90 |
"This object is already in the collection.": "Cet objet est déjà dans la collection.",
|
| 91 |
"Your result stays private. The existing contribution by @": "Votre résultat reste privé. La contribution existante de @",
|
| 92 |
"is unchanged.": "reste inchangée.",
|
|
|
|
| 95 |
"Let’s try that again.": "Réessayons.",
|
| 96 |
"Open on Hugging Face": "Ouvrir sur Hugging Face",
|
| 97 |
"Keep image & retry": "Garder l’image et réessayer",
|
| 98 |
+
"Dismiss error": "Fermer le message d’erreur",
|
| 99 |
"One contribution. Endless starting points.": "Une contribution. Tant de possibilités.",
|
| 100 |
+
"Your asset could become someone else’s game prop, prototype or next idea.": "Votre objet peut servir de décor de jeu, de prototype ou inspirer une nouvelle création.",
|
| 101 |
"Take a look": "Découvrir",
|
| 102 |
+
"Powered by": "Avec",
|
| 103 |
+
"Explorer by": "Interface :",
|
| 104 |
+
"· Explorer by": "· Interface :",
|
| 105 |
"Publishing, licensing & removal": "Publication, licences et retrait",
|
| 106 |
"Community 3D collection explorer": "Exploration de la collection 3D communautaire",
|
| 107 |
"Close dialog": "Fermer la fenêtre",
|
| 108 |
"Report an object": "Signaler un objet",
|
| 109 |
"Report received.": "Signalement reçu.",
|
| 110 |
+
"Help keep the collection useful.": "Signalez un problème dans la collection.",
|
| 111 |
+
"Hidden from the public viewer while the maintainer reviews it. Its author can still access it in My contributions. Dataset files remain public until removal.": "L’objet est masqué dans la collection pendant l’examen du signalement. Son auteur peut toujours le consulter dans Mes contributions. Les fichiers du dataset restent publics jusqu’à leur retrait.",
|
| 112 |
"Sign in to send a private report to the maintainer.": "Connectez-vous pour envoyer un signalement privé au responsable.",
|
| 113 |
"You can also use": "Vous pouvez aussi utiliser",
|
| 114 |
"HF’s reporting channels": "les canaux de signalement de HF",
|
|
|
|
| 125 |
"Sending…": "Envoi…",
|
| 126 |
"Send report": "Envoyer le signalement",
|
| 127 |
"Back to collection": "Retour à la collection",
|
| 128 |
+
"YOUR PART OF THE COMMONS": "VOS OBJETS PARTAGÉS",
|
| 129 |
+
"CARE FOR THE COMMONS": "GESTION DE LA COLLECTION",
|
| 130 |
"Review reports. Keep the collection safe and useful.": "Examinez les signalements pour préserver une collection sûre et utile.",
|
| 131 |
"Edit details, choose a thumbnail or withdraw a contribution.": "Modifiez les informations, choisissez une vignette ou retirez une contribution.",
|
| 132 |
"Refresh contributions": "Actualiser les contributions",
|
| 133 |
"Refresh": "Actualiser",
|
| 134 |
+
"Moderation views": "Filtres de modération",
|
| 135 |
"Loading your workspace…": "Chargement de votre espace…",
|
| 136 |
"Needs review": "À examiner",
|
| 137 |
"Hidden": "Masqués",
|
|
|
|
| 145 |
"No reviewed cases yet.": "Aucun dossier examiné pour le moment.",
|
| 146 |
"Your contributions will live here.": "Vos contributions apparaîtront ici.",
|
| 147 |
"Only objects that need a moderation decision appear here.": "Seuls les objets nécessitant une décision de modération apparaissent ici.",
|
| 148 |
+
"Objects kept out of the public viewer appear here.": "Les objets masqués dans la collection apparaissent ici.",
|
| 149 |
"Reviewed reports and removed contributions appear here.": "Les signalements examinés et les contributions retirées apparaissent ici.",
|
| 150 |
+
"Published objects stay manageable even after your private generation expires.": "Vos objets publiés restent modifiables après la suppression du résultat privé.",
|
| 151 |
"MANAGE CONTRIBUTION": "GÉRER LA CONTRIBUTION",
|
| 152 |
"REVIEW CONTRIBUTION": "EXAMINER LA CONTRIBUTION",
|
| 153 |
"Close contribution details": "Fermer la fiche de contribution",
|
| 154 |
"Close details": "Fermer la fiche",
|
| 155 |
"Removed from the current dataset. Earlier repository versions and downloaded copies may remain.": "Retiré du dataset actuel. Les versions précédentes et les copies téléchargées peuvent subsister.",
|
| 156 |
"Hidden publicly. Retry removal to finish updating the dataset.": "Masqué publiquement. Relancez le retrait pour terminer la mise à jour du dataset.",
|
| 157 |
+
"Hidden from the public viewer. The author and moderators can inspect it here. Thumbnail editing is paused during review. Dataset files remain public until removal.": "Cet objet est masqué dans la collection. L’auteur et les modérateurs peuvent le consulter ici. La vignette ne peut pas être modifiée pendant l’examen. Les fichiers du dataset restent publics jusqu’à leur retrait.",
|
| 158 |
"No reports. Opened directly from the collection.": "Aucun signalement. Ouvert directement depuis la collection.",
|
| 159 |
+
"Loading viewer…": "Chargement de la vue 3D…",
|
| 160 |
"Published asset": "Objet publié",
|
| 161 |
"Drag to choose an angle, then select": "Faites glisser pour choisir un angle, puis utilisez",
|
| 162 |
"Use this angle": "Utiliser cet angle",
|
|
|
|
| 174 |
"Inappropriate content": "Contenu inapproprié",
|
| 175 |
"Misleading information": "Informations trompeuses",
|
| 176 |
"Removal request": "Demande de retrait",
|
| 177 |
+
"Hide from viewer": "Masquer dans la collection",
|
| 178 |
"Restore to collection": "Rétablir dans la collection",
|
| 179 |
"Keep hidden": "Garder masqué",
|
| 180 |
"Finish removal": "Terminer le retrait",
|
|
|
|
| 186 |
"Hide this object?": "Masquer cet objet ?",
|
| 187 |
"This removes the object, previews and metadata from the current dataset. Public history and copies may remain. This cannot be undone here.": "L’objet, ses aperçus et ses métadonnées seront retirés du dataset actuel. L’historique public et les copies peuvent subsister. Cette action ne peut pas être annulée ici.",
|
| 188 |
"The object becomes public again. Current open reports will be marked as reviewed.": "L’objet redeviendra public. Les signalements ouverts seront marqués comme examinés.",
|
| 189 |
+
"The object disappears from the public viewer. You can restore it later; dataset files remain public.": "L’objet sera masqué dans la collection. Vous pourrez le rétablir plus tard. Les fichiers du dataset restent publics.",
|
| 190 |
"Optional": "Facultatif",
|
| 191 |
"Cancel": "Annuler",
|
| 192 |
"Saving…": "Enregistrement…",
|
|
|
|
| 195 |
"Hide object": "Masquer l’objet",
|
| 196 |
"Contribution removed from the current dataset.": "Contribution retirée du dataset actuel.",
|
| 197 |
"Object restored to the public collection.": "Objet rétabli dans la collection publique.",
|
| 198 |
+
"Object hidden from the public viewer.": "Objet masqué dans la collection.",
|
| 199 |
"Thumbnail updated. The original 3D file is unchanged.": "Vignette mise à jour. Le fichier 3D original reste inchangé.",
|
| 200 |
+
"Rendering your new thumbnail…": "Rendu de la nouvelle vignette…",
|
| 201 |
"Contribution details": "Informations sur la contribution",
|
| 202 |
"Asset details": "Informations sur l’objet",
|
| 203 |
"Edit details": "Modifier les informations",
|
| 204 |
"Details saved to the collection.": "Informations enregistrées dans la collection.",
|
| 205 |
"Title": "Titre",
|
| 206 |
"Category": "Catégorie",
|
| 207 |
+
"Tags": "Mots-clés",
|
| 208 |
"Up to 12 · separated by commas": "Jusqu’à 12 · séparés par des virgules",
|
| 209 |
"Description": "Description",
|
| 210 |
"Licence & credits": "Licence et crédits",
|
|
|
|
| 221 |
"Source credits & permissions": "Crédits et autorisations de la source",
|
| 222 |
"Public credits only. Keep private evidence out of this field.": "Crédits publics uniquement. N’ajoutez pas de justificatifs confidentiels.",
|
| 223 |
"I confirm I can offer this contribution under": "Je confirme pouvoir partager cette contribution sous",
|
| 224 |
+
", with these credits and notices. Earlier grants are retained.": ", avec ces crédits et mentions. Les licences déjà accordées restent valables.",
|
| 225 |
"No structured rights declaration was recorded for this legacy contribution.": "Aucune déclaration structurée des droits n’a été enregistrée pour cette ancienne contribution.",
|
| 226 |
"This object stays hidden while it is reviewed. Updating its details does not restore it.": "Cet objet reste masqué pendant l’examen. Modifier ses informations ne le rétablit pas.",
|
| 227 |
"Your draft is kept. Loading the latest details will replace it.": "Votre brouillon est conservé. Charger les dernières informations le remplacera.",
|
|
|
|
| 237 |
"Not specified": "Non précisée",
|
| 238 |
"Copyright notice": "Mention de copyright",
|
| 239 |
"Copyright 2026 — rights holder": "Copyright 2026 — titulaire des droits",
|
| 240 |
+
"Upstream notices": "Mentions de la source à conserver",
|
| 241 |
+
"Preserve required source attribution, copyright and NOTICE text.": "Conservez les crédits et les mentions de copyright requis par la source, ainsi que le contenu du fichier NOTICE, le cas échéant.",
|
| 242 |
+
"Source terms still apply. A model licence does not clear rights in every input or depicted subject.": "Les conditions de la source restent applicables. La licence du modèle ne vaut pas autorisation d’utiliser chaque image ou sujet représenté.",
|
| 243 |
+
"Reuse and remix, including commercially, with credit.": "Réutilisation et adaptation, y compris commerciale, en citant l’auteur.",
|
| 244 |
+
"Credit required. Adaptations keep the same licence.": "Citez l’auteur. Partagez les adaptations sous la même licence ou une licence compatible.",
|
| 245 |
+
"Dedicate your rights to the public domain, to the extent allowed by law.": "Renoncez à vos droits dans la mesure permise par la loi, pour permettre une réutilisation sans condition de droit d’auteur.",
|
| 246 |
+
"Keep the licence and notices. Identify modifications; includes a limited patent grant.": "Conservez la licence et les mentions requises. Signalez les modifications. Comprend une autorisation limitée sur certains brevets.",
|
| 247 |
"Keep the copyright and permission notice. Commonly used for software.": "Conservez les mentions de copyright et d’autorisation. Courante pour les logiciels.",
|
| 248 |
"Share with the commons": "Partager avec la communauté",
|
| 249 |
"Keep private and close sharing": "Garder privé et fermer le partage",
|
|
|
|
| 251 |
"1. Details": "1. Informations",
|
| 252 |
"2. Rights & publish": "2. Droits et publication",
|
| 253 |
"Your collection thumbnail": "Votre vignette dans la collection",
|
| 254 |
+
"Selected thumbnail, rendered from your 3D object": "Vignette choisie, issue du rendu de votre objet 3D",
|
| 255 |
"Rotate above, then choose “Use this angle”.": "Faites pivoter l’objet au-dessus, puis choisissez « Utiliser cet angle ».",
|
| 256 |
+
"A short, useful name": "Un nom court et descriptif",
|
| 257 |
"Choose a category": "Choisir une catégorie",
|
| 258 |
"Optional · up to 12": "Facultatifs · jusqu’à 12",
|
| 259 |
"What could someone build with it?": "Que pourrait-on créer avec cet objet ?",
|
|
|
|
| 261 |
"Private input": "Image source privée",
|
| 262 |
"Choose your rights basis": "Précisez vos droits",
|
| 263 |
"IDOL declares Apache 2.0 for its repository. Individual example-image rights are not separately verified. Preserve source credits and review the depicted subject.": "Le dépôt IDOL déclare Apache 2.0. Les droits propres à chaque image d’exemple ne sont pas vérifiés séparément. Conservez les crédits et vérifiez les droits sur le sujet représenté.",
|
| 264 |
+
"I reviewed third-party rights, people, privacy and content.": "J’ai vérifié les droits des tiers, le droit à l’image, le respect de la vie privée et le contenu.",
|
| 265 |
"I have the rights to publish under": "Je dispose des droits nécessaires pour publier sous",
|
| 266 |
"and accept the": "et j’accepte les",
|
| 267 |
"publication terms": "conditions de publication",
|
| 268 |
", including public repository history.": ", y compris l’historique du dépôt public.",
|
| 269 |
"What becomes public?": "Qu’est-ce qui devient public ?",
|
| 270 |
+
"The object, rendered previews, labels, credits and your HF username. Reuse follows your selected licence and any upstream notices. Your input image and prompt stay private. You grant only rights you hold; AI generation does not clear third-party rights. Copies and repository history can remain after removal.": "L’objet, les rendus d’aperçu, les descriptions, les crédits et votre nom HF. La réutilisation suit la licence choisie et les mentions de la source. L’image source et le prompt restent privés. Vous n’accordez que les droits dont vous disposez ; l’IA n’efface pas les droits des tiers. Des copies et l’historique peuvent subsister après retrait.",
|
| 271 |
"Publishing is temporarily unavailable. Your review stays here; download a copy of your result.": "La publication est temporairement indisponible. Vos informations restent ici ; téléchargez une copie du résultat.",
|
| 272 |
"Keep private": "Garder privé",
|
| 273 |
"Review rights": "Vérifier les droits",
|
|
|
|
| 285 |
"Close examples": "Fermer les exemples",
|
| 286 |
"94 STARTING POINTS, YOUR NEXT CONTRIBUTION": "94 POINTS DE DÉPART POUR VOTRE PROCHAINE CONTRIBUTION",
|
| 287 |
"Try an original IDOL example.": "Essayez un exemple IDOL original.",
|
| 288 |
+
"Choose an input image and its original generation settings. Inspect your own result before deciding whether to share it.": "Choisissez une image avec ses paramètres d’origine. Examinez le résultat avant de décider de le partager.",
|
| 289 |
"Find an example": "Chercher un exemple",
|
| 290 |
"Chair, robot, backpack…": "Chaise, robot, sac à dos…",
|
| 291 |
"All examples": "Tous les exemples",
|
|
|
|
| 307 |
"Waiting for the GPU": "En attente du GPU",
|
| 308 |
"Generating your object": "Génération de votre objet",
|
| 309 |
"Checking the 3D result": "Vérification du résultat 3D",
|
| 310 |
+
"Rendering your thumbnail": "Rendu de la vignette",
|
| 311 |
"Working on your object": "Traitement de votre objet",
|
| 312 |
+
"Your place is saved. The GPU will start when available.": "Votre demande est dans la file d’attente. La génération démarrera dès qu’un GPU sera disponible.",
|
| 313 |
"Turning your image into a real 3D object.": "Transformation de votre image en objet 3D.",
|
| 314 |
+
"Checking the splats before preparing your preview.": "Vérification des gaussiennes avant le rendu de l’aperçu.",
|
| 315 |
+
"Creating a transparent preview from the 3D result.": "Rendu d’un aperçu sur fond transparent à partir de l’objet 3D.",
|
| 316 |
"Queue": "File d’attente",
|
| 317 |
+
"Generate": "Génération",
|
| 318 |
+
"Validate": "Vérification",
|
| 319 |
"Preview": "Aperçu",
|
| 320 |
"in this step": "à cette étape",
|
| 321 |
+
"Check status": "Actualiser l’état",
|
| 322 |
"Loading 3D…": "Chargement 3D…",
|
| 323 |
+
"Rendered preview of the 3D result": "Image d’aperçu issue du rendu 3D",
|
| 324 |
"Example result": "Exemple de résultat",
|
| 325 |
"Your result": "Votre résultat",
|
| 326 |
"Expand 3D result": "Agrandir le résultat 3D",
|
| 327 |
+
"3D unavailable · Rendered preview": "Vue 3D indisponible · Aperçu en image",
|
| 328 |
+
"Drag to rotate · Scroll to zoom": "Faites glisser pour pivoter · Molette pour zoomer",
|
| 329 |
+
"Retry 3D": "Recharger la vue 3D",
|
| 330 |
+
"Render a transparent thumbnail from this angle; framing is fitted automatically": "Créer une vignette sur fond transparent depuis cet angle, avec un cadrage automatique",
|
| 331 |
"Preview details": "Détails de l’aperçu",
|
| 332 |
"Describe an object": "Décrivez un objet",
|
| 333 |
"A small ceramic teapot, rounded shape, blue glaze. One object, fully visible on a plain white background.": "Une petite théière en céramique, arrondie, émaillée en bleu. Un seul objet, entièrement visible sur un fond blanc uni.",
|
|
|
|
| 340 |
"Generate another image": "Générer une autre image",
|
| 341 |
"Generate image": "Générer une image",
|
| 342 |
"Image generation is being configured. You can upload an image instead.": "La génération d’image est en cours de configuration. Vous pouvez importer une image.",
|
| 343 |
+
"Generated input image · seed": "Image générée · seed",
|
| 344 |
"Private image generated by Z-Image-Turbo, not a 3D result": "Image privée générée par Z-Image-Turbo, pas un résultat 3D",
|
| 345 |
+
"Use for 3D": "Créer un objet 3D",
|
| 346 |
"IDOL community collection — return to overview": "Collection communautaire IDOL — revenir à la vue d’ensemble",
|
| 347 |
"Shared assets": "Objets partagés",
|
| 348 |
"All generators": "Tous les générateurs",
|
| 349 |
+
"Contribute an asset": "Ajouter un objet",
|
| 350 |
+
"About this explorer": "À propos de la collection",
|
| 351 |
"Search objects": "Rechercher des objets",
|
| 352 |
+
"Objects, tags, contributors…": "Objets, mots-clés, contributeurs…",
|
| 353 |
"Clear search": "Effacer la recherche",
|
| 354 |
"Search filters": "Filtres de recherche",
|
| 355 |
"Animated objects": "Objets animés",
|
| 356 |
"Show objects with an embedded animation.": "Afficher les objets avec une animation intégrée.",
|
| 357 |
"Close information": "Fermer les informations",
|
| 358 |
"A dataset built by its community.": "Un dataset créé par sa communauté.",
|
| 359 |
+
"Every contribution adds an asset others can inspect, download and build on. Find objects by title, contributor, category or tags.": "Chaque contribution enrichit la collection d’un objet à visualiser, télécharger et réutiliser. Recherchez par titre, contributeur, catégorie ou mot-clé.",
|
| 360 |
"Contribution terms": "Conditions de contribution",
|
| 361 |
"Reported objects are hidden from the public collection during review.": "Les objets signalés sont masqués de la collection publique pendant l’examen.",
|
| 362 |
+
"The catalogue is taking a moment.": "Le chargement de la collection prend du temps.",
|
| 363 |
"Retry refresh": "Relancer l’actualisation",
|
| 364 |
"Making room for objects…": "Préparation de la collection…",
|
| 365 |
"Objects are being reviewed.": "Des objets sont en cours d’examen.",
|
|
|
|
| 369 |
"No matching objects.": "Aucun objet correspondant.",
|
| 370 |
"Try another word or clear your filters.": "Essayez un autre mot ou effacez les filtres.",
|
| 371 |
"Show all objects": "Afficher tous les objets",
|
| 372 |
+
"Object exploration canvas": "Vue de la collection",
|
| 373 |
+
"Drag to explore · Scroll to zoom": "Faites glisser pour naviguer · Molette pour zoomer",
|
| 374 |
+
"Drag to explore · Pinch to zoom": "Faites glisser pour naviguer · Pincez pour zoomer",
|
| 375 |
"Clear all filters": "Effacer tous les filtres",
|
| 376 |
+
"Interface by fffiloni": "Interface : fffiloni",
|
| 377 |
"Zoom out": "Dézoomer",
|
| 378 |
"Reset view": "Réinitialiser la vue",
|
| 379 |
"Zoom in": "Zoomer",
|
|
|
|
| 381 |
"Object controls": "Commandes de l’objet",
|
| 382 |
"Object information": "Informations sur l’objet",
|
| 383 |
"Licence": "Licence",
|
| 384 |
+
"Attribution & source": "Crédits et source",
|
| 385 |
+
"Contributor declaration; not independently verified.": "Informations déclarées par le contributeur, sans vérification indépendante.",
|
| 386 |
"Original metadata": "Métadonnées originales",
|
| 387 |
+
"Contributor tags": "Mots-clés du contributeur",
|
| 388 |
+
"All embedded clips play together.": "Les animations intégrées sont lues simultanément.",
|
| 389 |
+
"3D cached on this device": "Objet 3D conservé en cache sur cet appareil",
|
| 390 |
+
"Take this object with you.": "Télécharger cet objet",
|
| 391 |
+
"Keep the original splats and their attribution.": "Conservez les données 3D originales et les crédits associés.",
|
| 392 |
"Download": "Télécharger",
|
| 393 |
"Browse source files": "Parcourir les fichiers sources",
|
| 394 |
"Show command": "Afficher la commande",
|
|
|
|
| 398 |
"Download object": "Télécharger l’objet",
|
| 399 |
"Add to basket": "Ajouter au panier",
|
| 400 |
"Remove from basket": "Retirer du panier",
|
| 401 |
+
"Close object": "Fermer la fiche",
|
| 402 |
"Loading 3D": "Chargement 3D",
|
| 403 |
+
"3D ready · Drag object to rotate": "Vue 3D · Faites glisser l’objet pour le faire pivoter",
|
| 404 |
+
"3D unavailable · HD preview": "Vue 3D indisponible · Aperçu HD",
|
| 405 |
+
"Retry 3D preview": "Recharger la vue 3D",
|
| 406 |
"Report this object": "Signaler cet objet",
|
| 407 |
"Report": "Signaler",
|
| 408 |
"Community activity": "Activité communautaire",
|
| 409 |
+
"One like per Hugging Face account": "Une mention J’aime par compte Hugging Face",
|
| 410 |
+
"Like object": "Ajouter un J’aime",
|
| 411 |
+
"Unlike object": "Retirer mon J’aime",
|
| 412 |
"Likes": "J’aime",
|
| 413 |
+
"Daily-deduplicated additions from this app": "Ajouts depuis l’application, comptés au plus une fois par jour pour chaque objet et compte ou session",
|
| 414 |
"Basket adds": "Ajouts au panier",
|
| 415 |
+
"Daily-deduplicated app requests; not proof a file was saved": "Demandes comptées au plus une fois par jour pour chaque objet et compte ou session. Ce compteur ne confirme pas l’enregistrement du fichier.",
|
| 416 |
"Download requests": "Demandes de téléchargement",
|
| 417 |
"Manage asset": "Gérer l’objet",
|
| 418 |
"Moderate": "Modérer",
|
|
|
|
| 422 |
"A small collection to take with you.": "Une petite collection à emporter.",
|
| 423 |
"See something you like?": "Un objet vous plaît ?",
|
| 424 |
"Open an object and tap the bag to add it here.": "Ouvrez un objet et touchez le panier pour l’ajouter ici.",
|
| 425 |
+
"Original 3D packages, with rendered previews and source metadata. Credits and licenses are included in the selection.": "Fichiers 3D originaux avec leurs aperçus, métadonnées, crédits et licences.",
|
| 426 |
"Download complete packages on your computer": "Télécharger les fichiers complets sur votre ordinateur",
|
| 427 |
"Requires Python and huggingface_hub. Setup instructions are included in the script.": "Nécessite Python et huggingface_hub. Le script contient les instructions d’installation.",
|
| 428 |
"Get download script": "Obtenir le script de téléchargement",
|
|
|
|
| 444 |
"Embedded animation · synchronized playback": "Animation intégrée · lecture synchronisée",
|
| 445 |
"Animated object": "Objet animé",
|
| 446 |
"Preview unavailable · Open 3D": "Aperçu indisponible · Ouvrir la 3D",
|
| 447 |
+
"Selected object · 3D ready": "Objet sélectionné · Vue 3D disponible",
|
| 448 |
"Selected object · 3D unavailable, showing image": "Objet sélectionné · 3D indisponible, aperçu affiché",
|
| 449 |
"Selected object · Loading 3D": "Objet sélectionné · Chargement 3D",
|
| 450 |
"Switch to light mode": "Passer au mode clair",
|
|
|
|
| 464 |
"match": "résultat",
|
| 465 |
"matches": "résultats",
|
| 466 |
"Generator": "Générateur",
|
| 467 |
+
"Use up to 12 tags: lowercase words, numbers and hyphens, separated by commas.": "12 mots-clés maximum, séparés par des virgules : minuscules, chiffres et tirets.",
|
| 468 |
"The update could not be confirmed. Retry with your saved draft.": "La mise à jour n’a pas pu être confirmée. Réessayez avec votre brouillon conservé.",
|
| 469 |
"Could not load the latest details.": "Impossible de charger la dernière version.",
|
| 470 |
"This contribution changed. Reload its latest details before saving.": "Cette contribution a changé. Chargez la dernière version avant d’enregistrer.",
|
|
|
|
| 486 |
"Generation could not be completed. Please retry.": "La génération n’a pas pu se terminer. Veuillez réessayer.",
|
| 487 |
"Generation failed.": "Échec de la génération.",
|
| 488 |
"Generation failed. Try again.": "Échec de la génération. Réessayez.",
|
| 489 |
+
"Please retry this result.": "Relancez la préparation de ce résultat.",
|
| 490 |
"Hugging Face sign-in is not configured in this development build.": "La connexion Hugging Face n’est pas configurée dans cette version de développement.",
|
| 491 |
"Check your prompt and try again.": "Vérifiez votre prompt puis réessayez.",
|
| 492 |
"Image generation could not start.": "La génération d’image n’a pas pu démarrer.",
|
|
|
|
| 513 |
"architecture": "Architecture",
|
| 514 |
"art": "Art",
|
| 515 |
"other": "Autre",
|
| 516 |
+
"Community contributions, with a licence for each asset. Inspect real Gaussian splats and download the original files with their notices.": "Des objets partagés par la communauté, chacun avec sa licence. Visualisez les gaussiennes en 3D et téléchargez les fichiers originaux avec leurs mentions de licence.",
|
| 517 |
"Legal notices": "Mentions de licence",
|
| 518 |
+
"Earlier licence grants": "Licences précédemment accordées",
|
| 519 |
"nature": "Nature",
|
| 520 |
"wearables": "vêtements et accessoires",
|
| 521 |
+
"Inspect": "Voir",
|
| 522 |
"All groups": "Tous les groupes",
|
| 523 |
"Try again": "Réessayer",
|
| 524 |
"For an IDOL demo input, identify its source licence or separate permission; the example is not your own source creation.": "Pour un exemple IDOL, indiquez sa licence source ou une autorisation distincte ; cette image source n’est pas votre propre création.",
|
|
|
|
| 528 |
"Edit input": "Modifier",
|
| 529 |
"Your input is saved": "Votre image est conservée",
|
| 530 |
"Image and settings stay private.": "Image et paramètres restent privés.",
|
| 531 |
+
"Explore and share 3D assets.": "Découvrez et partagez des objets 3D.",
|
| 532 |
+
"Drag · Ctrl + scroll to zoom": "Faites glisser · Ctrl + molette pour zoomer",
|
| 533 |
+
"Scroll with one finger · Explore with two": "Un doigt pour faire défiler · Deux pour explorer",
|
| 534 |
"Touch controls": "Commandes tactiles",
|
| 535 |
"Explore": "Explorer",
|
| 536 |
+
"Scroll page": "Faire défiler",
|
| 537 |
"Swipe to scroll the page.": "Glissez pour faire défiler la page.",
|
| 538 |
"All contributions": "Toutes les contributions",
|
| 539 |
"No contributions yet.": "Aucune contribution pour le moment.",
|
| 540 |
"All contributions can be managed here.": "Toutes les contributions peuvent être gérées ici.",
|
| 541 |
"Manage contributions, edit details and review reports.": "Gérez les contributions, modifiez les informations et traitez les signalements.",
|
| 542 |
"Contributions list": "Liste des contributions",
|
| 543 |
+
"Preparing an editable description and tags…": "Rédaction d’une description et de mots-clés à relire…",
|
| 544 |
"Suggested from the object — review and edit before publishing.": "Proposition basée sur l’objet : relisez et modifiez avant de publier.",
|
| 545 |
"Automatic description unavailable. You can fill in the details.": "Description automatique indisponible. Vous pouvez remplir les champs.",
|
| 546 |
+
"Retry description": "Relancer la description",
|
| 547 |
"Your Z-Image-Turbo prompt": "Votre prompt Z-Image-Turbo",
|
| 548 |
"Z-Image-Turbo prompt": "Prompt Z-Image-Turbo",
|
| 549 |
"Private unless you choose to publish it below.": "Privé, sauf si vous choisissez de le publier ci-dessous.",
|
|
|
|
| 551 |
"Optional. The full prompt will be public in the dataset and its history.": "Facultatif. Le prompt complet sera public dans le dataset et son historique.",
|
| 552 |
"The object, rendered previews, labels, credits and your HF username. Reuse follows your selected licence and any upstream notices. Your input image stays private. The prompt is public only if you explicitly choose to include it. You grant only rights you hold; AI generation does not clear third-party rights. Copies and repository history can remain after removal.": "L’objet, ses aperçus, ses informations, les crédits et votre nom HF. La réutilisation suit la licence choisie et les mentions des sources. Votre image source reste privée. Le prompt devient public uniquement si vous choisissez explicitement de l’inclure. Vous accordez uniquement vos propres droits ; une génération IA ne libère pas les droits de tiers. Les copies et l’historique peuvent subsister après un retrait.",
|
| 553 |
"Closing keeps your draft on this page.": "Votre brouillon reste sur cette page après fermeture.",
|
| 554 |
+
"Use up to 12 tags, separated by commas. Accents and spaces are converted automatically.": "12 mots-clés maximum, séparés par des virgules. Les accents et espaces sont convertis automatiquement.",
|
| 555 |
+
"Use up to 12 tags of 24 characters: letters, numbers and hyphens, separated by commas.": "12 mots-clés maximum, de 24 caractères chacun : lettres, chiffres et tirets, séparés par des virgules.",
|
| 556 |
"Review and publish": "Vérifier et publier",
|
| 557 |
"Use {title} example": "Utiliser l’exemple {title}",
|
| 558 |
"Open basket, {count} object": "Ouvrir le panier, {count} objet",
|
| 559 |
"Open basket, {count} objects": "Ouvrir le panier, {count} objets",
|
| 560 |
+
"Inspect {name} from basket": "Voir {name} depuis le panier",
|
| 561 |
"Remove {name} from basket": "Retirer {name} du panier",
|
| 562 |
"Downloading {count} files…": "Téléchargement de {count} fichiers…",
|
| 563 |
"Downloading {done} of {total} files…": "Téléchargement de {done} fichiers sur {total}…",
|
|
|
|
| 567 |
"Hugging Face sign-in is temporarily unavailable. Please try again later.": "La connexion Hugging Face est temporairement indisponible. Réessayez plus tard.",
|
| 568 |
"You can explore and try generation before signing in. Nothing is published automatically.": "Vous pouvez explorer et essayer la génération avant de vous connecter. Rien n’est publié automatiquement.",
|
| 569 |
"Help build the largest open 3D dataset.": "Contribuez à bâtir le plus grand dataset 3D ouvert.",
|
| 570 |
+
"Switch to Explore to rotate the object.": "Activez « Explorer » pour faire pivoter l’objet.",
|
| 571 |
"Search contributions": "Rechercher dans les contributions",
|
| 572 |
+
"Titles, descriptions, tags…": "Titres, descriptions, mots-clés…",
|
| 573 |
"Clear contribution search": "Effacer la recherche de contributions",
|
| 574 |
"Searching…": "Recherche…",
|
| 575 |
"No matching contributions.": "Aucune contribution correspondante.",
|
|
|
|
| 577 |
"3D loading took too long. Retry the preview.": "Le chargement 3D a pris trop de temps. Réessayez l’aperçu.",
|
| 578 |
"Another collection update is finishing. Retry shortly.": "Une mise à jour de la collection est en cours. Votre modification n’a pas été enregistrée ; réessayez dans quelques instants.",
|
| 579 |
"Another publication is finishing. Your request is saved; retry shortly.": "Une publication est en cours. Votre demande est conservée ; réessayez dans quelques instants.",
|
| 580 |
+
"Sign in to contribute and like objects.": "Connectez-vous pour partager des objets et ajouter des J’aime.",
|
| 581 |
"Sign in to contribute": "Se connecter pour contribuer",
|
| 582 |
+
"Sign in to like this object": "Se connecter pour ajouter un J’aime à cet objet",
|
| 583 |
+
"Sign in to like": "Se connecter pour un J’aime",
|
| 584 |
"Previous input restored. Replace it to start a new object.": "Image précédente restaurée. Remplacez-la pour créer un nouvel objet.",
|
| 585 |
"New image ready. Generate 3D to create your next object.": "Nouvelle image prête. Lancez la génération 3D pour créer votre prochain objet.",
|
| 586 |
+
"Photo prepared and ready. Generate 3D to create your next object.": "Image prête. Lancez la génération 3D pour créer votre prochain objet.",
|
| 587 |
"Previous image kept.": "Image précédente conservée.",
|
| 588 |
"Restoring saved input…": "Restauration de l’image enregistrée…",
|
| 589 |
"Image not replaced": "L’image n’a pas été remplacée",
|
|
|
|
| 604 |
"Image not added": "L’image n’a pas été importée",
|
| 605 |
"Choose a PNG, JPEG or WebP photo.": "Choisissez une photo PNG, JPEG ou WebP.",
|
| 606 |
"Animated images are not supported. Choose a still photo.": "Les images animées ne sont pas prises en charge. Choisissez une photo fixe.",
|
| 607 |
+
"Automatic description queued. You can fill in the details now.": "La description automatique est en attente. Vous pouvez déjà saisir les informations.",
|
| 608 |
+
"Checking for an automatic description…": "Vérification de la description automatique…",
|
| 609 |
"Enter details myself": "Saisir les informations moi-même",
|
| 610 |
"Fill in the details below. Your edits are kept.": "Remplissez les champs ci-dessous. Vos modifications sont conservées.",
|
| 611 |
"Automatic description is taking too long. Fill in the details or retry.": "La description automatique prend trop de temps. Remplissez les champs ou réessayez.",
|
|
|
|
| 632 |
"Check the image generator’s terms and any characters, brands or people shown. AI generation does not clear their rights.": "Vérifiez les conditions du générateur et les droits sur les personnages, marques ou personnes représentés. L’IA ne lève pas ces droits.",
|
| 633 |
"An openly licensed source": "Une source sous licence libre",
|
| 634 |
"I know its licence": "Je connais sa licence",
|
| 635 |
+
"Use the licence attached to this specific image. Being online or free to download is not a licence.": "Vérifiez la licence de cette image. Sa présence en ligne ou sa gratuité ne constitue pas une autorisation de réutilisation.",
|
| 636 |
"I have permission": "J’ai une autorisation",
|
| 637 |
"From the relevant rights holders": "Des titulaires des droits concernés",
|
| 638 |
"Permission must cover public redistribution and adaptations, including commercial use, under your chosen licence. Keep the evidence privately.": "L’autorisation doit couvrir la redistribution publique, les adaptations et l’usage commercial sous la licence choisie. Conservez le justificatif en privé.",
|
| 639 |
"A public-domain source": "Une source du domaine public",
|
| 640 |
"I checked its status": "J’ai vérifié son statut",
|
| 641 |
"Identify why the source is in the public domain. Your licence covers only any rights you hold in your contribution.": "Précisez pourquoi la source relève du domaine public. Votre licence porte uniquement sur les éventuels droits que vous détenez sur votre contribution.",
|
| 642 |
+
"I’m not sure": "Je ne suis pas sûr",
|
| 643 |
"Keep the result private for now": "Garder le résultat privé pour l’instant",
|
| 644 |
"You can download your result and return later. Verify the source and the rights in the depicted subject before publishing.": "Vous pouvez télécharger le résultat et revenir plus tard. Vérifiez la source et les droits sur le sujet représenté avant de publier.",
|
| 645 |
"Where does your image come from?": "D’où vient votre image ?",
|
|
|
|
| 654 |
"Creator, source link and licence, if applicable": "Auteur, lien de la source et licence, le cas échéant",
|
| 655 |
"These credits will be public. Keep contracts and personal details out.": "Ces crédits seront publics. N’incluez ni contrat ni données personnelles.",
|
| 656 |
"Understand third-party rights": "Comprendre les droits des tiers",
|
| 657 |
+
"Reuse with credit": "Citer l’auteur",
|
| 658 |
+
"Credit the creator, link the licence and indicate changes.": "Citez l’auteur, ajoutez un lien vers la licence et signalez les modifications.",
|
| 659 |
+
"Credit + share alike": "Attribution · Même licence",
|
| 660 |
+
"Credit the creator and indicate changes. Share adaptations under the same or a compatible licence.": "Citez l’auteur et signalez les modifications. Partagez les adaptations sous la même licence ou une licence compatible.",
|
| 661 |
+
"Dedicate your rights": "Renoncer à vos droits",
|
| 662 |
+
"Waive copyright and related rights to the extent possible. CC0 does not require credit; third-party rights remain.": "Renoncez à vos droits d’auteur et droits voisins dans la mesure permise par la loi. CC0 n’impose pas de citer l’auteur. Les droits des tiers restent applicables.",
|
| 663 |
+
"Keep licence + notices": "Conserver la licence et les mentions",
|
| 664 |
+
"Include the licence, retain applicable notices and identify modifications. A limited patent grant applies; trademarks are not licensed.": "Joignez la licence, conservez les mentions requises et signalez les modifications. Une autorisation limitée couvre certains brevets, mais pas les marques.",
|
| 665 |
+
"Keep copyright + licence": "Conserver le copyright et la licence",
|
| 666 |
+
"Include the copyright and permission notice. Written primarily for software; use only when appropriate for this work.": "Conservez la mention de copyright et le texte d’autorisation. Cette licence vise surtout le logiciel : vérifiez qu’elle convient à votre contribution.",
|
| 667 |
"Selected": "Choisie",
|
| 668 |
+
"How can others reuse your object?": "Quels droits de réutilisation accordez-vous ?",
|
| 669 |
"For the rights you hold. Source terms still apply.": "Pour les droits que vous détenez. Les conditions de la source restent applicables.",
|
| 670 |
"All offered licences allow": "Toutes les licences proposées autorisent",
|
| 671 |
"Share": "Partager",
|
|
|
|
| 680 |
"Private until you publish": "Privé jusqu’à publication",
|
| 681 |
"Describe": "Décrire",
|
| 682 |
"Source": "Source",
|
| 683 |
+
"Before it goes public": "Avant de publier",
|
| 684 |
+
"3D object, previews, labels, credits and your HF username.": "Objet 3D, aperçus, description, mots-clés, crédits et votre identifiant HF.",
|
| 685 |
+
"Your input image. Your prompt unless you opt in below.": "Votre image source et votre prompt, sauf si vous choisissez de publier ce dernier ci-dessous.",
|
| 686 |
"Include the image prompt?": "Inclure le prompt de l’image ?",
|
| 687 |
"Publish this prompt with the asset. It will also enter the public dataset history.": "Publier ce prompt avec l’objet. Il sera aussi inscrit dans l’historique public du dataset.",
|
| 688 |
"Your prompt will be public.": "Votre prompt sera public.",
|
| 689 |
"Removal does not recall existing copies or valid licence grants. Repository history may remain.": "Un retrait n’efface pas les copies existantes ni les autorisations valablement accordées. L’historique du dépôt peut subsister.",
|
| 690 |
+
"I checked third-party rights, people, privacy and content.": "J’ai vérifié les droits des tiers, le droit à l’image, le respect de la vie privée et le contenu.",
|
| 691 |
"For both the image and the depicted subject.": "Pour l’image comme pour le sujet représenté.",
|
| 692 |
"I can publish under": "Je peux publier sous",
|
| 693 |
"Back": "Retour",
|
| 694 |
"Identify source": "Identifier la source",
|
| 695 |
"Choose licence": "Choisir la licence",
|
| 696 |
+
"Credit the creator, link the licence and indicate changes. Share adaptations under the same or a compatible licence.": "Citez l’auteur, ajoutez un lien vers la licence et signalez les modifications. Partagez les adaptations sous la même licence ou une licence compatible.",
|
| 697 |
+
"Input image. Prompt unless you opt in.": "Image source et prompt, sauf si vous choisissez de publier le prompt.",
|
| 698 |
+
"Your input image.": "Votre image source.",
|
| 699 |
+
"Object, previews, labels, credits and HF username.": "Objet, aperçus, description, mots-clés, crédits et identifiant HF.",
|
| 700 |
"Rights in the depicted subject": "Les droits sur le sujet représenté",
|
| 701 |
"Rights in an image and rights in what it depicts are separate. Check any applicable third-party permissions before publishing. If uncertain, keep the result private.": "Les droits sur l’image et sur ce qu’elle représente sont distincts. Vérifiez les autorisations nécessaires auprès des tiers avant de publier. En cas de doute, gardez le résultat privé.",
|
| 702 |
+
"Credits & legal notices": "Crédits et mentions de licence",
|
| 703 |
"In baskets": "Dans les paniers",
|
| 704 |
+
"Browser baskets containing this object, synced within the last 90 days": "Paniers de navigateur contenant encore cet objet, synchronisés au cours des 90 derniers jours",
|
| 705 |
+
"Basket saved on this device. Community counts are awaiting sync.": "Panier enregistré sur cet appareil. Les compteurs seront actualisés après synchronisation.",
|
| 706 |
+
"Gaussian count": "Nombre de gaussiennes",
|
| 707 |
+
"Hidden object": "Masqué",
|
| 708 |
+
"Drag to rotate · Pinch to zoom": "Faites glisser pour pivoter · Pincez pour zoomer",
|
| 709 |
+
"This selection is {size} MiB. Use the download script to save the complete packages on your computer.": "Cette sélection fait {size} Mio. Utilisez le script pour télécharger tous les fichiers sur votre ordinateur.",
|
| 710 |
+
"{count} open report": "{count} signalement à traiter",
|
| 711 |
+
"{count} open reports": "{count} signalements à traiter",
|
| 712 |
+
"Remove “{title}”?": "Retirer « {title} » ?",
|
| 713 |
+
"Unknown size": "Taille inconnue",
|
| 714 |
+
"Number of sampling steps. More steps take longer.": "Nombre de pas d’échantillonnage. Plus de pas allonge le calcul.",
|
| 715 |
+
"Classifier-free guidance: how strongly generation follows the input image.": "Guidage CFG : règle l’influence de l’image source sur la génération.",
|
| 716 |
+
"Higher values allocate more sampling steps to high noise levels.": "Une valeur élevée réserve davantage de pas aux niveaux de bruit élevés.",
|
| 717 |
+
"Initial random seed. Keep it with the same settings to reproduce a result.": "Valeur initiale du générateur aléatoire. Conservez-la avec les paramètres pour reproduire un résultat.",
|
| 718 |
+
"Signed in with Hugging Face at publication": "Compte Hugging Face authentifié lors de la publication",
|
| 719 |
+
"Downloading 3D · {percent}%": "Téléchargement 3D · {percent} %",
|
| 720 |
+
"The GLB could not be loaded ({status}).": "Impossible de charger le fichier GLB (erreur {status}).",
|
| 721 |
+
"Verifying 3D…": "Vérification du fichier 3D…",
|
| 722 |
+
"Preparing splats…": "Préparation des gaussiennes…",
|
| 723 |
+
"Preparing 3D…": "Préparation de la vue 3D…",
|
| 724 |
+
"Opening 3D…": "Ouverture du fichier 3D…",
|
| 725 |
+
"Opening cached 3D…": "Ouverture du fichier 3D en cache…",
|
| 726 |
+
"Downloading 3D…": "Téléchargement du fichier 3D…",
|
| 727 |
+
"Saving for next time…": "Mise en cache du fichier 3D…",
|
| 728 |
+
"Invalid splat manifest.": "Les métadonnées du fichier de gaussiennes sont invalides.",
|
| 729 |
+
"The 3D file could not be loaded. Please retry.": "Impossible de charger le fichier 3D. Réessayez.",
|
| 730 |
+
"Unexpected splat size.": "La taille du fichier de gaussiennes ne correspond pas à celle attendue.",
|
| 731 |
+
"Incomplete splat download.": "Le téléchargement du fichier de gaussiennes est incomplet.",
|
| 732 |
+
"The splat checksum does not match.": "Le contrôle d’intégrité du fichier de gaussiennes a échoué.",
|
| 733 |
+
"Unsupported 3DGS PLY.": "Ce fichier PLY 3DGS n’est pas pris en charge.",
|
| 734 |
+
"The browser released its 3D graphics context. The preview and download remain available.": "Le navigateur a interrompu l’affichage 3D. L’aperçu en image et le téléchargement restent disponibles.",
|
| 735 |
+
"The browser released the 3D graphics context. The HD preview remains available.": "Le navigateur a interrompu l’affichage 3D. L’aperçu HD reste disponible.",
|
| 736 |
+
"The GLB response has no body.": "Le serveur n’a renvoyé aucune donnée pour le fichier GLB.",
|
| 737 |
+
"The GLB size does not match its source.": "La taille du fichier GLB ne correspond pas à celle attendue.",
|
| 738 |
+
"The GLB download is incomplete. Please retry.": "Le téléchargement du fichier GLB est incomplet. Réessayez.",
|
| 739 |
+
"The GLB checksum does not match its source.": "Le contrôle d’intégrité du fichier GLB a échoué.",
|
| 740 |
+
". One object, fully visible, three-quarter view, plain white background, no text.": ". Un seul objet, entièrement visible, vu de trois quarts, sur fond blanc uni, sans texte.",
|
| 741 |
+
"The original private prompt is unavailable. Publish without the prompt.": "Le prompt original n’est plus disponible. Publiez sans l’inclure.",
|
| 742 |
+
"Publishing is not enabled on this Space.": "La publication n’est pas activée sur ce Space.",
|
| 743 |
+
"This result was submitted previously. Contact the maintainer before resubmitting it.": "Ce résultat a déjà été soumis. Contactez le responsable avant de le soumettre à nouveau.",
|
| 744 |
+
"Private generation is no longer available.": "Le résultat privé n’est plus disponible.",
|
| 745 |
+
"The private result no longer matches its validation.": "Le résultat privé ne correspond plus au fichier validé.",
|
| 746 |
+
"The preview no longer matches its validated result.": "L’aperçu ne correspond plus au résultat validé.",
|
| 747 |
+
"Verified runtime provenance is missing.": "Les informations vérifiées sur l’origine de la génération sont manquantes.",
|
| 748 |
+
"Runtime provenance no longer matches.": "Les informations sur l’origine de la génération ne correspondent plus.",
|
| 749 |
+
"This result is not in your private session.": "Ce résultat n’appartient pas à votre session privée.",
|
| 750 |
+
"This private result has expired.": "Ce résultat privé a expiré.",
|
| 751 |
+
"The result and its previews must be fully validated first.": "Le résultat et ses aperçus doivent d’abord être entièrement validés.",
|
| 752 |
+
"Only results generated in this app can be published.": "Seuls les résultats générés dans cette application peuvent être publiés.",
|
| 753 |
+
"This result is hidden or withdrawn. Contact the maintainer before resubmitting it.": "Ce résultat est masqué ou retiré. Contactez le responsable avant de le soumettre à nouveau.",
|
| 754 |
+
"This 3D result has already been submitted.": "Ce résultat 3D a déjà été soumis.",
|
| 755 |
+
"Your daily publication limit has been reached. Try again tomorrow.": "Vous avez atteint votre limite quotidienne de publications. Réessayez demain.",
|
| 756 |
+
"This contribution has been withdrawn.": "Cette contribution a été retirée.",
|
| 757 |
+
"The collection changed while publishing. Retry with the same request.": "La collection a changé pendant la publication. Relancez la même demande.",
|
| 758 |
+
"Private generation file is unavailable.": "Le fichier du résultat privé n’est plus disponible.",
|
| 759 |
+
"This contribution was withdrawn and cannot be republished with this request.": "Cette contribution a été retirée. Cette demande ne permet pas de la republier.",
|
| 760 |
+
"This request key was already used for different metadata.": "Cette demande a déjà été utilisée avec d’autres métadonnées.",
|
| 761 |
+
"This example was withdrawn. Contact the maintainer before resubmitting it.": "Cet exemple a été retiré. Contactez le responsable avant de le soumettre à nouveau.",
|
| 762 |
+
"This result was withdrawn. Contact the maintainer before resubmitting it.": "Ce résultat a été retiré. Contactez le responsable avant de le soumettre à nouveau.",
|
| 763 |
+
"Publication was interrupted. Retry; the same request cannot create a duplicate.": "La publication a été interrompue. Relancez la même demande : elle ne créera pas de doublon.",
|
| 764 |
+
"This result or demo example was withdrawn. Contact the maintainer before resubmitting it.": "Ce résultat ou cet exemple a été retiré. Contactez le responsable avant de le soumettre à nouveau.",
|
| 765 |
+
"The collection is upgrading its storage. Please retry later.": "Le stockage de la collection est en cours de mise à jour. Réessayez plus tard.",
|
| 766 |
+
"Publication identity conflict. Contact the maintainer.": "Un conflit d’identifiant empêche la publication. Contactez le responsable.",
|
| 767 |
+
"This result is hidden or withdrawn.": "Ce résultat est masqué ou retiré.",
|
| 768 |
+
"This account cannot moderate the collection.": "Ce compte n’a pas les droits de modération de la collection.",
|
| 769 |
+
"This request key belongs to another action.": "Cette demande est associée à une autre action.",
|
| 770 |
+
"Collection updates are temporarily unavailable.": "La modification de la collection est temporairement indisponible.",
|
| 771 |
+
"Only moderators can change visibility.": "Seuls les modérateurs peuvent modifier la visibilité.",
|
| 772 |
+
"Action not found.": "Action introuvable.",
|
| 773 |
+
"Use plain text for your report.": "Rédigez votre signalement en texte brut.",
|
| 774 |
+
"Object not found.": "Objet introuvable.",
|
| 775 |
+
"Only the contributor can withdraw this object.": "Seul le contributeur peut retirer cet objet.",
|
| 776 |
+
"Contribution not found.": "Contribution introuvable.",
|
| 777 |
+
"This contribution belongs to another account.": "Cette contribution appartient à un autre compte.",
|
| 778 |
+
"The dataset changed repeatedly. Reload the latest details before saving.": "Le dataset a changé à plusieurs reprises. Rechargez les dernières informations avant d’enregistrer.",
|
| 779 |
+
"Your contribution was not found.": "Votre contribution est introuvable.",
|
| 780 |
+
"The preview renderer is busy. Please retry.": "Le moteur de rendu est occupé. Réessayez.",
|
| 781 |
+
"Contribution no longer available.": "Cette contribution n’est plus disponible.",
|
| 782 |
+
"Your report has been reviewed. Contact the maintainer if you have new evidence.": "Votre signalement a été examiné. Contactez le responsable si vous avez de nouveaux éléments.",
|
| 783 |
+
"Daily report limit reached.": "Vous avez atteint votre limite quotidienne de signalements.",
|
| 784 |
+
"This object is already being removed.": "Le retrait de cet objet est déjà en cours.",
|
| 785 |
+
"The dataset changed. Retry this removal.": "Le dataset a changé. Relancez le retrait.",
|
| 786 |
+
"Removal was interrupted. Retry; the object remains hidden.": "Le retrait a été interrompu. Réessayez ; l’objet reste masqué.",
|
| 787 |
+
"This contribution is being removed.": "Le retrait de cette contribution est en cours.",
|
| 788 |
+
"Thumbnails cannot change during review or after removal.": "La vignette ne peut pas être modifiée pendant l’examen ou après le retrait.",
|
| 789 |
+
"This contribution changed. Refresh it before editing.": "Cette contribution a changé. Actualisez-la avant de la modifier.",
|
| 790 |
+
"The preview renderer is busy. Retry shortly.": "Le moteur de rendu est occupé. Réessayez dans quelques instants.",
|
| 791 |
+
"Thumbnail update limit reached. Retry later.": "Vous avez atteint la limite de modifications des vignettes. Réessayez plus tard.",
|
| 792 |
+
"The dataset changed. Please retry your thumbnail.": "Le dataset a changé. Relancez la mise à jour de la vignette.",
|
| 793 |
+
"This action is already running.": "Cette action est déjà en cours.",
|
| 794 |
+
"This object changed. Refresh it before deciding.": "Cet objet a changé. Actualisez-le avant de confirmer votre décision.",
|
| 795 |
+
"This contribution has been removed.": "Cette contribution a été retirée.",
|
| 796 |
+
"Removal is already in progress.": "Le retrait est déjà en cours.",
|
| 797 |
+
"Contribution identity changed.": "L’identifiant de la contribution a changé.",
|
| 798 |
+
"Keep the recorded rights declaration; legacy provenance cannot be invented.": "Conservez la déclaration de droits enregistrée. N’ajoutez pas d’origine supposée à cette ancienne contribution.",
|
| 799 |
+
"Confirm rights and current terms for the new licence. Earlier grants remain available.": "Confirmez vos droits et les conditions actuelles pour la nouvelle licence. Les licences précédemment accordées restent valables.",
|
| 800 |
+
"Confirm the updated credits and permissions before saving.": "Confirmez les crédits et autorisations modifiés avant d’enregistrer.",
|
| 801 |
+
"Details update limit reached. Retry later.": "Vous avez atteint la limite de modifications des informations. Réessayez plus tard.",
|
| 802 |
+
"Legacy provenance must be reviewed before adding a licence.": "L’origine de cette ancienne contribution doit être vérifiée avant d’ajouter une licence.",
|
| 803 |
+
"The contribution changed during rendering. Refresh it before retrying.": "La contribution a changé pendant le rendu. Actualisez-la avant de réessayer.",
|
| 804 |
+
"Private image generation not found.": "Génération d’image privée introuvable.",
|
| 805 |
+
"This private image has expired.": "Cette image privée a expiré.",
|
| 806 |
+
"Image generation is not available yet.": "La génération d’images n’est pas encore disponible.",
|
| 807 |
+
"Your daily image generation limit has been reached.": "Vous avez atteint votre limite quotidienne de génération d’images.",
|
| 808 |
+
"An image is already being generated. Check its status first.": "Une image est déjà en cours de génération. Vérifiez son état avant de réessayer.",
|
| 809 |
+
"Image generation is busy. Try again later.": "Le service de génération d’images est occupé. Réessayez plus tard.",
|
| 810 |
+
"This request key already belongs to another prompt.": "Cette demande est déjà associée à un autre prompt.",
|
| 811 |
+
"Your session has expired. Reload and sign in again.": "Votre session a expiré. Rechargez la page et reconnectez-vous.",
|
| 812 |
+
"Unexpected request origin.": "La requête provient d’une origine non autorisée.",
|
| 813 |
+
"Invalid session request. Reload and retry.": "La session n’a pas pu être validée. Rechargez la page et réessayez.",
|
| 814 |
+
"Authentication is not configured.": "La connexion n’est pas configurée.",
|
| 815 |
+
"Hugging Face identity could not be verified.": "Impossible de vérifier votre identité Hugging Face.",
|
| 816 |
+
"Incomplete Hugging Face identity.": "Les informations de votre compte Hugging Face sont incomplètes.",
|
| 817 |
+
"Hugging Face could not verify your session. Retry shortly.": "Hugging Face n’a pas pu vérifier votre session. Réessayez dans quelques instants.",
|
| 818 |
+
"The sign-in session expired. Please retry.": "La tentative de connexion a expiré. Réessayez.",
|
| 819 |
+
"Sign out before switching Hugging Face accounts.": "Déconnectez-vous avant de changer de compte Hugging Face.",
|
| 820 |
+
"Wait until the 3D preview is ready.": "Attendez que l’aperçu 3D soit prêt.",
|
| 821 |
+
"Private description not found.": "Description privée introuvable.",
|
| 822 |
+
"Automatic description is unavailable. You can enter the details yourself.": "La description automatique est indisponible. Vous pouvez saisir les informations vous-même.",
|
| 823 |
+
"Description limit reached. Enter details manually or retry later.": "Vous avez atteint la limite de descriptions automatiques. Saisissez les informations vous-même ou réessayez plus tard.",
|
| 824 |
+
"A description is already being prepared.": "Une description est déjà en cours de rédaction.",
|
| 825 |
+
"This request belongs to another result.": "Cette demande est associée à un autre résultat.",
|
| 826 |
+
"Generation is not enabled on this Space.": "La génération n’est pas activée sur ce Space.",
|
| 827 |
+
"Private result not found.": "Résultat privé introuvable.",
|
| 828 |
+
"Upload this image again in your own session.": "Importez à nouveau cette image dans votre session.",
|
| 829 |
+
"Your daily generation limit has been reached.": "Vous avez atteint votre limite quotidienne de générations.",
|
| 830 |
+
"A generation is already running in your account.": "Une génération est déjà en cours sur votre compte.",
|
| 831 |
+
"The generation queue is full. Please try again later.": "La file de génération est pleine. Réessayez plus tard.",
|
| 832 |
+
"Private generation storage is full. Please try again later.": "L’espace de stockage des résultats privés est plein. Réessayez plus tard.",
|
| 833 |
+
"Wait until the result and its preview are ready.": "Attendez que le résultat et son aperçu soient prêts.",
|
| 834 |
+
"Open My contributions to edit the published thumbnail.": "Ouvrez Mes contributions pour modifier la vignette publiée.",
|
| 835 |
+
"Thumbnail update limit reached. Try again later.": "Vous avez atteint la limite de modifications des vignettes. Réessayez plus tard.",
|
| 836 |
+
"This request key belongs to another generation.": "Cette demande est associée à une autre génération.",
|
| 837 |
+
"This request key belongs to another thumbnail.": "Cette demande est associée à une autre vignette.",
|
| 838 |
+
"Invalid object identifier.": "L’identifiant de l’objet est invalide.",
|
| 839 |
+
"Send application/json.": "Le serveur attend une requête au format JSON.",
|
| 840 |
+
"This request is too large.": "La requête est trop volumineuse.",
|
| 841 |
+
"Invalid fields. Use plain text, supported categories and the requested format.": "Certains champs sont invalides. Utilisez du texte brut, une catégorie proposée et le format demandé.",
|
| 842 |
+
"Real Hugging Face OAuth is not configured on this Space.": "La connexion Hugging Face n’est pas configurée sur ce Space.",
|
| 843 |
+
"Image processing is busy. Retry shortly.": "Le service de traitement des images est occupé. Réessayez dans quelques instants.",
|
| 844 |
+
"Private image not found.": "Image privée introuvable.",
|
| 845 |
+
"Validated result not found.": "Résultat validé introuvable.",
|
| 846 |
+
"A validated result must be available before retrying its preview.": "Un résultat validé est nécessaire pour relancer son aperçu.",
|
| 847 |
+
"Initialize the browser basket before syncing.": "Le panier doit être initialisé avant sa synchronisation.",
|
| 848 |
+
"Invalid page.": "Page invalide.",
|
| 849 |
+
"Engine file endpoints are disabled.": "L’accès direct aux fichiers du moteur est désactivé.",
|
| 850 |
+
"Too many new sessions. Please retry later.": "Trop de nouvelles sessions ont été ouvertes. Réessayez plus tard.",
|
| 851 |
+
"Unknown workspace.": "Espace de travail inconnu.",
|
| 852 |
+
"The preview worker is busy. Retry shortly.": "Le service de rendu des aperçus est occupé. Réessayez dans quelques instants.",
|
| 853 |
+
"The preview is already being retried.": "Le rendu de l’aperçu a déjà été relancé.",
|
| 854 |
+
"The collection is temporarily unavailable. Your current view is preserved.": "La collection est temporairement indisponible. L���affichage actuel est conservé.",
|
| 855 |
+
"Sign-in could not be completed. Return to the app and retry.": "La connexion a échoué. Revenez dans l’application et réessayez.",
|
| 856 |
+
"Upload limit reached. Try again later.": "Vous avez atteint la limite d’importations. Réessayez plus tard.",
|
| 857 |
+
"Private storage is temporarily full. Retry later.": "L’espace de stockage privé est plein pour le moment. Réessayez plus tard.",
|
| 858 |
+
"This object is no longer in the collection.": "Cet objet ne figure plus dans la collection.",
|
| 859 |
+
"Too many community updates. Please retry later.": "Trop de mises à jour des interactions ont été envoyées. Réessayez plus tard.",
|
| 860 |
+
"Basket changed. Sync the latest selection.": "Le panier a changé. Synchronisez la dernière sélection.",
|
| 861 |
+
"Session changed.": "Votre session a changé.",
|
| 862 |
+
"The description could not be prepared. Enter details yourself or retry.": "La description n’a pas pu être rédigée. Saisissez les informations vous-même ou réessayez."
|
| 863 |
}
|
frontend/src/main.css
CHANGED
|
@@ -216,3 +216,5 @@
|
|
| 216 |
.draft-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 20px}
|
| 217 |
.draft-controls .reset-draft{min-height:44px;flex-shrink:0}
|
| 218 |
.draft-controls>span{font-size:10px;color:var(--muted);line-height:1.5}
|
|
|
|
|
|
|
|
|
| 216 |
.draft-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 20px}
|
| 217 |
.draft-controls .reset-draft{min-height:44px;flex-shrink:0}
|
| 218 |
.draft-controls>span{font-size:10px;color:var(--muted);line-height:1.5}
|
| 219 |
+
|
| 220 |
+
.settings-grid .setting-hint{display:block;font-weight:400;font-size:11px;color:var(--muted);line-height:1.45;margin-top:2px}
|
frontend/src/main.tsx
CHANGED
|
@@ -222,7 +222,7 @@ function App(){
|
|
| 222 |
</button>
|
| 223 |
<Examples disabled={active||uploading||loadingExample||resetting||!workspaceReady||!session} selected={selectedExample} onSelect={useExample} onView={viewPublished}/>
|
| 224 |
</div><fieldset className="mode-options" disabled={active}><legend>{t("Image type")}</legend><div><button type="button" className={options.mode==='synthetic'?'chosen':''} aria-pressed={options.mode==='synthetic'} onClick={()=>update('mode','synthetic')}>{t("Render or illustration")}</button><button type="button" className={options.mode==='real'?'chosen':''} aria-pressed={options.mode==='real'} onClick={()=>update('mode','real')}>{t("Real photo")}</button></div></fieldset>
|
| 225 |
-
<details className="advanced"><summary>{t("Advanced settings ")}<ChevronDown size={15}/></summary><div className="settings-grid"><label>{t("
|
| 226 |
<button className="primary generate" disabled={!input||active||uploading||loadingExample||submitting||resetting||!!inputError||!workspaceReady||!session?.generation_available} onClick={()=>void generate()}>{active||submitting?<LoaderCircle size={18} className="spin"/>:<Box size={18}/>} {active?t("Creating your object…"):t("Generate 3D")}{!active&&<ArrowRight size={17}/>}</button>
|
| 227 |
<p className="privacy-note"><ShieldCheck size={13}/>{t("Private until you choose to publish.")}</p>
|
| 228 |
{session&&!session.generation_available&&<p className="development-note">{t("3D generation is waiting for model access. You can prepare your input image while setup is completed.")}</p>}</div>
|
|
|
|
| 222 |
</button>
|
| 223 |
<Examples disabled={active||uploading||loadingExample||resetting||!workspaceReady||!session} selected={selectedExample} onSelect={useExample} onView={viewPublished}/>
|
| 224 |
</div><fieldset className="mode-options" disabled={active}><legend>{t("Image type")}</legend><div><button type="button" className={options.mode==='synthetic'?'chosen':''} aria-pressed={options.mode==='synthetic'} onClick={()=>update('mode','synthetic')}>{t("Render or illustration")}</button><button type="button" className={options.mode==='real'?'chosen':''} aria-pressed={options.mode==='real'} onClick={()=>update('mode','real')}>{t("Real photo")}</button></div></fieldset>
|
| 225 |
+
<details className="advanced"><summary>{t("Advanced settings ")}<ChevronDown size={15}/></summary><div className="settings-grid"><label>{t("Gaussian count")}<select value={options.num_gaussians} disabled={active} onChange={e=>update('num_gaussians',Number(e.target.value))}>{[32768,65536,131072,262144,524288,1048576].map(x=><option key={x} value={x}>{x.toLocaleString(language==='fr'?'fr-FR':'en-US')}</option>)}</select></label><label>{t("Steps")}<input type="number" min="10" max="100" value={options.steps} disabled={active} onChange={e=>update('steps',Number(e.target.value))}/><small className="setting-hint">{t("Number of sampling steps. More steps take longer.")}</small></label><label>{t("Guidance")}<input type="number" min="0" max="10" step="0.1" value={options.cfg_strength} disabled={active} onChange={e=>update('cfg_strength',Number(e.target.value))}/><small className="setting-hint">{t("Classifier-free guidance: how strongly generation follows the input image.")}</small></label><label>{t("Time shift")}<input type="number" min="1" max="6" step="0.1" value={options.rescale_t} disabled={active} onChange={e=>update('rescale_t',Number(e.target.value))}/><small className="setting-hint">{t("Higher values allocate more sampling steps to high noise levels.")}</small></label><label className="wide">{t("Seed")}<input type="number" min="0" max="2147483647" value={options.seed} disabled={active||options.randomize_requested} onChange={e=>update('seed',Number(e.target.value))}/><small className="setting-hint">{t("Initial random seed. Keep it with the same settings to reproduce a result.")}</small></label><label className="check-label wide"><input type="checkbox" checked={options.randomize_requested} disabled={active} onChange={e=>update('randomize_requested',e.target.checked)}/>{t("Choose a new seed each time")}</label></div><p className="help">{t("More Gaussians add detail and increase file size. All resolutions download as the original 3DGS PLY.")}</p></details>
|
| 226 |
<button className="primary generate" disabled={!input||active||uploading||loadingExample||submitting||resetting||!!inputError||!workspaceReady||!session?.generation_available} onClick={()=>void generate()}>{active||submitting?<LoaderCircle size={18} className="spin"/>:<Box size={18}/>} {active?t("Creating your object…"):t("Generate 3D")}{!active&&<ArrowRight size={17}/>}</button>
|
| 227 |
<p className="privacy-note"><ShieldCheck size={13}/>{t("Private until you choose to publish.")}</p>
|
| 228 |
{session&&!session.generation_available&&<p className="development-note">{t("3D generation is waiting for model access. You can prepare your input image while setup is completed.")}</p>}</div>
|
frontend/tests/i18n.test.mjs
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import test from 'node:test';
|
| 2 |
+
import assert from 'node:assert/strict';
|
| 3 |
+
import {readFileSync,readdirSync} from 'node:fs';
|
| 4 |
+
import {buildSync} from 'esbuild';
|
| 5 |
+
import ts from 'typescript';
|
| 6 |
+
import vm from 'node:vm';
|
| 7 |
+
const src=new URL('../src/',import.meta.url),fr=JSON.parse(readFileSync(new URL('locales/fr.json',src),'utf8'));
|
| 8 |
+
function load(file){
|
| 9 |
+
const code=buildSync({entryPoints:[new URL(file,src).pathname],bundle:true,platform:'node',format:'cjs',write:false,external:['react']}).outputFiles[0].text;
|
| 10 |
+
const context={module:{exports:{}},require:()=>({}),document:{documentElement:{lang:'en'},querySelectorAll:()=>[]},localStorage:{getItem:()=>null,setItem:()=>{}}};
|
| 11 |
+
vm.runInNewContext(code,context);return context.module.exports;
|
| 12 |
+
}
|
| 13 |
+
test('every literal UI translation key is covered in French; placeholders are preserved',()=>{
|
| 14 |
+
const missing=[];
|
| 15 |
+
function scan(dir){for(const entry of readdirSync(dir,{withFileTypes:true})){const path=new URL(entry.name+(entry.isDirectory()?'/':''),dir);if(entry.isDirectory()){scan(path);continue;}if(!/\.tsx?$/.test(entry.name))continue;
|
| 16 |
+
const file=ts.createSourceFile(path.pathname,readFileSync(path,'utf8'),ts.ScriptTarget.Latest,true);
|
| 17 |
+
function walk(node){if(ts.isCallExpression(node)&&['t','tf'].includes(node.expression.getText(file))&&node.arguments[0]&&ts.isStringLiteralLike(node.arguments[0])){const key=node.arguments[0].text.trim();if(!(key in fr))missing.push({file:entry.name,key});}ts.forEachChild(node,walk);}walk(file);
|
| 18 |
+
}}scan(src);assert.deepEqual(missing,[]);
|
| 19 |
+
const tokens=s=>(s.match(/\{\w+\}/g)||[]).sort();for(const [key,value] of Object.entries(fr)){assert.ok(value.trim(),key);assert.deepEqual(tokens(key),tokens(value),key);}
|
| 20 |
+
});
|
| 21 |
+
test('runtime language changes preserve values and translate model progress without rewriting source text',()=>{
|
| 22 |
+
const {t,tf,setLanguage,modelMessage}=load('i18n.ts');const original='Downloading 3D · 42%';
|
| 23 |
+
assert.equal(modelMessage(original),original);setLanguage('fr');assert.equal(modelMessage(original),'Téléchargement 3D · 42 %');
|
| 24 |
+
assert.equal(modelMessage('The GLB could not be loaded (503).'),'Impossible de charger le fichier GLB (erreur 503).');
|
| 25 |
+
assert.equal(tf('Remove “{title}”?',{title:'My bird'}),'Retirer « My bird » ?');assert.equal(t(' Download '),' Télécharger ');assert.equal(t('My original title'),'My original title');
|
| 26 |
+
setLanguage('en');assert.equal(modelMessage(original),original);assert.equal(tf('Remove “{title}”?',{title:'My bird'}),'Remove “My bird”?');
|
| 27 |
+
});
|
| 28 |
+
test('file sizes use decimal units, French notation, and explicit unknown values',()=>{
|
| 29 |
+
const {formatFileSize}=load('explorer/file-size.ts');
|
| 30 |
+
assert.equal(formatFileSize(17800000,'fr'),'17,8 Mo');assert.equal(formatFileSize(17800000,'en'),'17.8 MB');assert.equal(formatFileSize(1000,'fr'),'1 ko');assert.equal(formatFileSize(0,'fr'),'0 o');assert.equal(formatFileSize(1000000000,'fr'),'1 Go');assert.equal(formatFileSize(-1,'fr'),'Taille inconnue');assert.equal(formatFileSize(NaN),'Unknown size');
|
| 31 |
+
});
|
reports/french-browser-qa.json
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"status": "passed",
|
| 3 |
+
"publicDatasetWrites": 0,
|
| 4 |
+
"realInference": false,
|
| 5 |
+
"checks": {
|
| 6 |
+
"french-licence-qa": [
|
| 7 |
+
{
|
| 8 |
+
"width": 1440,
|
| 9 |
+
"height": 1000,
|
| 10 |
+
"language": "en",
|
| 11 |
+
"theme": "light",
|
| 12 |
+
"passed": true,
|
| 13 |
+
"syncs": 13
|
| 14 |
+
},
|
| 15 |
+
{
|
| 16 |
+
"width": 1100,
|
| 17 |
+
"height": 900,
|
| 18 |
+
"language": "fr",
|
| 19 |
+
"theme": "dark",
|
| 20 |
+
"passed": true,
|
| 21 |
+
"syncs": 10
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"width": 390,
|
| 25 |
+
"height": 844,
|
| 26 |
+
"language": "fr",
|
| 27 |
+
"theme": "light",
|
| 28 |
+
"passed": true,
|
| 29 |
+
"syncs": 10
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"width": 320,
|
| 33 |
+
"height": 740,
|
| 34 |
+
"language": "fr",
|
| 35 |
+
"theme": "dark",
|
| 36 |
+
"passed": true,
|
| 37 |
+
"syncs": 10
|
| 38 |
+
}
|
| 39 |
+
],
|
| 40 |
+
"french-label-share-qa": {
|
| 41 |
+
"status": "passed",
|
| 42 |
+
"publicWrites": 0,
|
| 43 |
+
"realInference": false,
|
| 44 |
+
"cases": [
|
| 45 |
+
{
|
| 46 |
+
"name": "desktop",
|
| 47 |
+
"width": 1440,
|
| 48 |
+
"height": 1050,
|
| 49 |
+
"language": "en",
|
| 50 |
+
"theme": "light",
|
| 51 |
+
"example": false,
|
| 52 |
+
"unknownBlocked": true,
|
| 53 |
+
"incompatibleBlocked": true,
|
| 54 |
+
"consentInvalidated": true,
|
| 55 |
+
"languagePreservesDraft": true,
|
| 56 |
+
"noticeRequired": true,
|
| 57 |
+
"promptPrivateByDefault": true,
|
| 58 |
+
"retrySameRequest": true,
|
| 59 |
+
"noOverflow": true,
|
| 60 |
+
"errors": []
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"name": "split-fr",
|
| 64 |
+
"width": 1100,
|
| 65 |
+
"height": 900,
|
| 66 |
+
"language": "fr",
|
| 67 |
+
"theme": "dark",
|
| 68 |
+
"example": false,
|
| 69 |
+
"unknownBlocked": true,
|
| 70 |
+
"incompatibleBlocked": true,
|
| 71 |
+
"consentInvalidated": true,
|
| 72 |
+
"languagePreservesDraft": true,
|
| 73 |
+
"noticeRequired": true,
|
| 74 |
+
"promptPrivateByDefault": true,
|
| 75 |
+
"retrySameRequest": true,
|
| 76 |
+
"noOverflow": true,
|
| 77 |
+
"errors": []
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"name": "phone",
|
| 81 |
+
"width": 390,
|
| 82 |
+
"height": 844,
|
| 83 |
+
"language": "fr",
|
| 84 |
+
"theme": "light",
|
| 85 |
+
"example": false,
|
| 86 |
+
"unknownBlocked": true,
|
| 87 |
+
"incompatibleBlocked": true,
|
| 88 |
+
"consentInvalidated": true,
|
| 89 |
+
"languagePreservesDraft": true,
|
| 90 |
+
"noticeRequired": true,
|
| 91 |
+
"promptPrivateByDefault": true,
|
| 92 |
+
"retrySameRequest": true,
|
| 93 |
+
"noOverflow": true,
|
| 94 |
+
"errors": []
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"name": "narrow",
|
| 98 |
+
"width": 320,
|
| 99 |
+
"height": 740,
|
| 100 |
+
"language": "fr",
|
| 101 |
+
"theme": "dark",
|
| 102 |
+
"example": true,
|
| 103 |
+
"unknownBlocked": true,
|
| 104 |
+
"incompatibleBlocked": true,
|
| 105 |
+
"consentInvalidated": true,
|
| 106 |
+
"languagePreservesDraft": true,
|
| 107 |
+
"noticeRequired": true,
|
| 108 |
+
"promptPrivateByDefault": true,
|
| 109 |
+
"retrySameRequest": true,
|
| 110 |
+
"noOverflow": true,
|
| 111 |
+
"errors": []
|
| 112 |
+
}
|
| 113 |
+
]
|
| 114 |
+
},
|
| 115 |
+
"french-webkit-licence-qa": [
|
| 116 |
+
{
|
| 117 |
+
"width": 1440,
|
| 118 |
+
"height": 1000,
|
| 119 |
+
"language": "en",
|
| 120 |
+
"theme": "light",
|
| 121 |
+
"passed": true,
|
| 122 |
+
"syncs": 13
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"width": 1100,
|
| 126 |
+
"height": 900,
|
| 127 |
+
"language": "fr",
|
| 128 |
+
"theme": "dark",
|
| 129 |
+
"passed": true,
|
| 130 |
+
"syncs": 10
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"width": 390,
|
| 134 |
+
"height": 844,
|
| 135 |
+
"language": "fr",
|
| 136 |
+
"theme": "light",
|
| 137 |
+
"passed": true,
|
| 138 |
+
"syncs": 10
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"width": 320,
|
| 142 |
+
"height": 740,
|
| 143 |
+
"language": "fr",
|
| 144 |
+
"theme": "dark",
|
| 145 |
+
"passed": true,
|
| 146 |
+
"syncs": 10
|
| 147 |
+
}
|
| 148 |
+
],
|
| 149 |
+
"french-webkit-label-qa": {
|
| 150 |
+
"status": "passed",
|
| 151 |
+
"publicWrites": 0,
|
| 152 |
+
"realInference": false,
|
| 153 |
+
"cases": [
|
| 154 |
+
{
|
| 155 |
+
"name": "desktop",
|
| 156 |
+
"width": 1440,
|
| 157 |
+
"height": 1050,
|
| 158 |
+
"language": "en",
|
| 159 |
+
"theme": "light",
|
| 160 |
+
"example": false,
|
| 161 |
+
"unknownBlocked": true,
|
| 162 |
+
"incompatibleBlocked": true,
|
| 163 |
+
"consentInvalidated": true,
|
| 164 |
+
"languagePreservesDraft": true,
|
| 165 |
+
"noticeRequired": true,
|
| 166 |
+
"promptPrivateByDefault": true,
|
| 167 |
+
"retrySameRequest": true,
|
| 168 |
+
"noOverflow": true,
|
| 169 |
+
"errors": []
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"name": "split-fr",
|
| 173 |
+
"width": 1100,
|
| 174 |
+
"height": 900,
|
| 175 |
+
"language": "fr",
|
| 176 |
+
"theme": "dark",
|
| 177 |
+
"example": false,
|
| 178 |
+
"unknownBlocked": true,
|
| 179 |
+
"incompatibleBlocked": true,
|
| 180 |
+
"consentInvalidated": true,
|
| 181 |
+
"languagePreservesDraft": true,
|
| 182 |
+
"noticeRequired": true,
|
| 183 |
+
"promptPrivateByDefault": true,
|
| 184 |
+
"retrySameRequest": true,
|
| 185 |
+
"noOverflow": true,
|
| 186 |
+
"errors": []
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"name": "phone",
|
| 190 |
+
"width": 390,
|
| 191 |
+
"height": 844,
|
| 192 |
+
"language": "fr",
|
| 193 |
+
"theme": "light",
|
| 194 |
+
"example": false,
|
| 195 |
+
"unknownBlocked": true,
|
| 196 |
+
"incompatibleBlocked": true,
|
| 197 |
+
"consentInvalidated": true,
|
| 198 |
+
"languagePreservesDraft": true,
|
| 199 |
+
"noticeRequired": true,
|
| 200 |
+
"promptPrivateByDefault": true,
|
| 201 |
+
"retrySameRequest": true,
|
| 202 |
+
"noOverflow": true,
|
| 203 |
+
"errors": []
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"name": "narrow",
|
| 207 |
+
"width": 320,
|
| 208 |
+
"height": 740,
|
| 209 |
+
"language": "fr",
|
| 210 |
+
"theme": "dark",
|
| 211 |
+
"example": true,
|
| 212 |
+
"unknownBlocked": true,
|
| 213 |
+
"incompatibleBlocked": true,
|
| 214 |
+
"consentInvalidated": true,
|
| 215 |
+
"languagePreservesDraft": true,
|
| 216 |
+
"noticeRequired": true,
|
| 217 |
+
"promptPrivateByDefault": true,
|
| 218 |
+
"retrySameRequest": true,
|
| 219 |
+
"noOverflow": true,
|
| 220 |
+
"errors": []
|
| 221 |
+
}
|
| 222 |
+
]
|
| 223 |
+
}
|
| 224 |
+
}
|
| 225 |
+
}
|
reports/french-localization-review.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"baseline": "f1998de10bdf806d040ff7a7e51f6c29cb8fa6d2",
|
| 3 |
+
"status": "validated",
|
| 4 |
+
"french_strings_revised": 145,
|
| 5 |
+
"french_strings_added": 157,
|
| 6 |
+
"local_tests": {
|
| 7 |
+
"passed": 45,
|
| 8 |
+
"failed": 0
|
| 9 |
+
},
|
| 10 |
+
"production_build": "passed",
|
| 11 |
+
"browser_checks": {
|
| 12 |
+
"engines": [
|
| 13 |
+
"Chromium",
|
| 14 |
+
"WebKit"
|
| 15 |
+
],
|
| 16 |
+
"cases": 16,
|
| 17 |
+
"widths": [
|
| 18 |
+
1440,
|
| 19 |
+
1100,
|
| 20 |
+
390,
|
| 21 |
+
320
|
| 22 |
+
],
|
| 23 |
+
"languages": [
|
| 24 |
+
"en",
|
| 25 |
+
"fr"
|
| 26 |
+
],
|
| 27 |
+
"themes": [
|
| 28 |
+
"light",
|
| 29 |
+
"dark"
|
| 30 |
+
],
|
| 31 |
+
"results": "reports/french-browser-qa.json",
|
| 32 |
+
"compiled_files_verified": 125
|
| 33 |
+
},
|
| 34 |
+
"public_dataset_writes": 0,
|
| 35 |
+
"changes": [
|
| 36 |
+
"Readable licence names beside the scale icon in viewer and contribution metadata",
|
| 37 |
+
"No icon-only licence toggle; one disclosure for credits and legal detail",
|
| 38 |
+
"French interface terminology, rights summaries, HTTP errors and 3D progress",
|
| 39 |
+
"French decimal size formatting and binary MiB/Mio selection limits",
|
| 40 |
+
"Context-sensitive plurals and interpolated withdrawal question",
|
| 41 |
+
"Touch vs mouse zoom instructions and generation-setting help"
|
| 42 |
+
]
|
| 43 |
+
}
|