Cosa intendi? Questo è un componente desktop.
Per essere chiari: so che le anteprime PDF inline sono ancora supportate in Discourse.
La mia domanda riguarda specificamente il componente tema stesso: attualmente genera avvisi di deprecazione nella console sulle versioni recenti di Discourse.
Sarebbe necessaria una PR per aggiornare l’utilizzo dell’API deprecata (ad esempio, API dei plugin / hook Ember), o c’è già un lavoro in corso per modernizzarlo?
Dato che è contrassegnato come official, è ragionevole presumere che verrà aggiornato prima che sia troppo tardi.
Un post è stato diviso in un nuovo argomento: Sistema di blocco simile a Scribd
Sì, la mia PR di funzionalità sopra corregge l’API deprecata. Tuttavia, necessita di ulteriore lavoro e sono stato troppo impegnato per dargli un’altra occhiata.
Sono deluso dal fatto che la visualizzazione di un pdf su un dispositivo mobile non sia consentita. Spero di migrare il mio sito phpBB a Discourse, perché phpBB è macchinoso, ma ho modificato una funzionalità sulla mia bacheca usando pdf.js che mi permette di incorporare pdf. E pdf.js ti permette di ingrandire e spostare l’immagine, anche se non è così robusto come sul desktop, è utile in garage per scansionare un manuale senza dover tornare in casa. Questo esempio non è quello di un manuale, ma dimostra il principio: Bulletin #361 - A Diesel in America
Facebook mi sta mangiando il pranzo, e principalmente con dispositivi mobili - spero di riconquistare utenti con un’integrazione Discourse. Ma perdere il pdf sul portatile non è una vittoria per me.
-Dan
La console mostra un avviso di deprecazione discourse.static-viewport-initialization.
log_manager.js:98 [Gemini Nexus] Background Service Worker Started
index.js:4 Gemini Nexus v4.2.3 Ready
runtime.ts:81 DEPRECATION: Importing `inject` from `@ember/service` is deprecated. Please import `service` instead. [deprecation id: importing-inject-from-ember-service] This will be removed in ember-source 7.0.0. See https://deprecations.emberjs.com/id/importing-inject-from-ember-service for more details.
(匿名) @ deprecate.js:72
s.computed @ handlers.js:10
(匿名) @ deprecate.js:108
s.computed @ handlers.js:10
(匿名) @ deprecate.js:116
s.computed @ handlers.js:10
(匿名) @ index.js:75
(匿名) @ index.js:110
s.computed @ handlers.js:10
(匿名) @ index.js:115
s.computed @ handlers.js:10
r @ handlers.js:19
l @ deprecate.js:189
k @ index.js:31
p @ index.js:126
o @ index.js:31
n @ runtime.ts:81
<static_initializer> @ external-link-confirm.gjs:18
(匿名) @ external-link-confirm.gjs:18
app.js:297 ℹ️ Discourse v2026.1.0-latest — https://github.com/discourse/discourse/commits/1c90b0dd85 — Ember v6.6.0
deprecated.js:52 DEPRECATION NOTICE: Accessing `site.mobileView` or `site.desktopView` during the site initialization can lead to errors and inconsistencies when the browser window is resized. Please move these checks to a component, transformer, or API callback that executes during page rendering. [deprecated since Discourse 3.5.0.beta9-dev] [deprecation id: discourse.static-viewport-initialization] [info: https://meta.discourse.org/t/367810]
d @ deprecated.js:52
get mobileView @ site.js:123
(匿名) @ compat.js:22
X @ index.js:416
i.get @ compat.js:21
(匿名) @ initialize-for-pdf-preview.js:10
eH @ plugin-api.gjs:3363
initialize @ initialize-for-pdf-preview.js:9
i.initialize @ app.js:265
(匿名) @ index.js:379
e.each @ index.js:183
e.walk @ index.js:112
e.each @ index.js:59
e.topsort @ index.js:65
_runInitializer @ index.js:392
runInstanceInitializers @ index.js:377
_bootSync @ instance.js:116
didBecomeReady @ index.js:784
invoke @ index.js:262
flush @ index.js:180
flush @ index.js:334
_end @ index.js:762
_boundAutorunEnd @ index.js:499
Promise.then
(匿名) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_ensureInstance @ index.js:919
schedule @ index.js:618
f @ index.js:343
waitForDOMReady @ index.js:512
init @ index.js:412
_ @ core.js:97
create @ core.js:599
(匿名) @ start-app.js:18
await in (匿名)
(匿名) @ discourse-boot.js:13
(匿名) @ discourse-boot.js:1
loader.js:46 Lazy dependencies loading...
