どういう意味ですか?これは desktop コンポーネントです。
念のため確認ですが、Discourse ではインライン PDF プレビューは引き続きサポートされています。
私の質問は、テーマコンポーネント自体に関するもので、最新の Discourse バージョンでは現在コンソールに非推奨の警告が表示されています。
非推奨となった API の使用法(例:プラグイン API / Ember フック)を更新するために PR が必要になりますか、それともすでに近代化に向けた作業が進行中ですか?
これが official とマークされているため、手遅れになる前に更新されると仮定するのは妥当です。
投稿が新しいトピックに分割されました: Scribdに似たゲーティングシステム
はい、上記の私の機能PR は非推奨のAPIを修正します。しかし、まだ作業が必要で、私はそれを見直す時間がありませんでした。
モバイルデバイスでのPDFの表示が許可されていないことにがっかりしています。phpBBは使いにくいので、phpBBサイトをDiscourseに移行したいと考えていますが、pdf.jsを使ってPDFを埋め込む機能をボードにハックしました。pdf.jsを使うとズームやパンが可能になります。デスクトップほど堅牢ではありませんが、マニュアルのために家に戻ることなくガレージでマニュアルをスキャンするのに役立ちます。この例はマニュアルではありませんが、その原理を示しています:Bulletin #361 - A Diesel in America
Facebookにユーザーを奪われており、主にモバイルデバイスで奪われています。Discourseの統合でユーザーを取り戻したいと思っています。しかし、ハンドヘルドでPDFが見られなくなるのは私にとって勝利ではありません。
-ダン
コンソールに 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...
