이 테마 컴포넌트는 카테고리 또는 태그 주제 목록의 새 주제 버튼 및 작성기(composer)의 작업 이름과 버튼(아래 강조 표시됨)을 사용자 지정할 수 있습니다. 예를 들어 Contribute > Bug 카테고리가 있다면 이 텍스트를 "버그 보고"로 업데이트할 수 있습니다:
버튼 이름을 바꾸는 것이 실제로는 토픽의 유형을 변경하려는 의도라면, 해당 *카테고리 전체의 명명법을 일관되게 변경해야 합니다.
예를 들어: Events라는 이름의 카테고리가 있다고 가정해 보겠습니다. 이 경우 카테고리 전체에서 "topic"이라는 단어를 "events"로 변경하는 것이 효과적입니다. "New Topic"이 아니라 "New Event"가 되며, Topics 목록 대신 Events 목록이 표시됩니다. 이런 식으로 말이죠.
다른 도구에서도 이러한 방식으로 주요 사용 사례를 변경하는 것을 볼 수 있습니다. AirTable에서 새 테이블을 만들 때 어떤 식으로 처리하는지 아래를 참고해 보세요. 기본적으로 테이블에는 "records"가 있습니다.
이 컴포넌트를 사용하려고 시도했지만 실패했고, 로그에 다음과 같은 경고가 많이 표시됩니다.
메시지 (4건 보고됨)
[DiscourseJsProcessor] DEPRECATION: {{attrs}}를 사용하여 명명된 인수를 참조하는 것은 더 이상 권장되지 않습니다. {{attrs.canCreateTopic}}는 {{@canCreateTopic}}로 업데이트되어야 합니다. (‘discourse/components/custom-new-topic-button.hbs’ @ L2:C8) [deprecation id: attrs-arg-access] 자세한 내용은 Ember.js - Deprecations 를 참조하세요.
at theme-transpiler.js:3164:26752
at j. (theme-transpiler.js:3168:1693)
at theme-transpiler.js:3168:161
at j. (theme-transpiler.js:3168:1693)
at D (theme-transpiler.js:3168:1754)
at te (theme-transpiler.js:3168:1318)
at PathExpression (theme-transpiler.js:3198:21763)
at yo (theme-transpiler.js:3187:2776)
at Al (theme-transpiler.js:3187:3513)
at Ml (theme-transpiler.js:3187:3309)
at yo (theme-transpiler.js:3187:3013)
at Al (theme-transpiler.js:3187:3513)
at Ml (theme-transpiler.js:3187:3309)
at yo (theme-transpiler.js:3187:3013)
at Ml (theme-transpiler.js:3187:3350)
at yo (theme-transpiler.js:3187:3013)
at Al (theme-transpiler.js:3187:3513)
at Ml (theme-transpiler.js:3187:3309)
at yo (theme-transpiler.js:3187:3013)
at Bi (theme-transpiler.js:3187:3879)
at PA (theme-transpiler.js:3190:3002)
at Cf (theme-transpiler.js:3190:9856)
at Al (theme-transpiler.js:3176:35353)
at gf (theme-transpiler.js:3176:35600)
at D (theme-transpiler.js:3198:42250)
at Sft.o.precompile (theme-transpiler.js:3281:3078)
at dDe (theme-transpiler.js:3161:1003)
at e.CallExpression (theme-transpiler.js:3159:33796)
at h (theme-transpiler.js:10:111797)
at e.uPe [as _call] (theme-transpiler.js:59:16906)
at e.oPe [as call] (theme-transpiler.js:59:16726)
at e.lPe [as visit] (theme-transpiler.js:59:17700)
at t.visitQueue (theme-transpiler.js:59:40645)
at t.visitSingle (theme-tr…
백트레이스
/var/www/discourse/lib/discourse_js_processor.rb:133:in block in create_new_context' mini_racer-0.8.0/lib/mini_racer.rb:273:in block in attach’
mini_racer-0.8.0/lib/mini_racer.rb:242:in call_unsafe' mini_racer-0.8.0/lib/mini_racer.rb:242:in block (2 levels) in call’
mini_racer-0.8.0/lib/mini_racer.rb:369:in timeout' mini_racer-0.8.0/lib/mini_racer.rb:241:in block in call’
mini_racer-0.8.0/lib/mini_racer.rb:240:in synchronize' mini_racer-0.8.0/lib/mini_racer.rb:240:in call’
/var/www/discourse/lib/discourse_js_processor.rb:168:in block in v8_call' /var/www/discourse/lib/discourse_js_processor.rb:167:in synchronize’