mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 11:23:36 +08:00
f846d2e8fd
This commit extracts the content of the `HomeLogo` to a standalone component. This enables us to utilize the `home-logo-contents` plugin outlet to render an alternative version of the logo using the new component to reuse the rendering logic, but using alternative properties. For example: ```js const logoSmallUrl = settings .theme_uploads["theme-alternative-logo-small"]; const logoUrl = settings.theme_uploads["theme-alternative-logo"]; const mobileLogoUrl = settings .theme_uploads["theme-alternative-logo"]; api.renderInOutlet("home-logo-contents", <template> <HomeLogoContents @logoSmallUrl={{logoSmallUrl}} @logoUrl={{logoUrl}} @minimized={{@outletArgs.minimized}} @mobileLogoUrl={{mobileLogoUrl}} @showMobileLogo={{@outletArgs.showMobileLogo}} @title={{@outletArgs.title}} /> </template>); `` |
||
---|---|---|
.. | ||
admin | ||
custom-proxy | ||
deprecation-silencer | ||
dialog-holder | ||
discourse | ||
discourse-common | ||
discourse-hbr | ||
discourse-i18n | ||
discourse-markdown-it | ||
discourse-plugins | ||
discourse-widget-hbs | ||
docs | ||
ember-addons | ||
ember-cli-progress-ci | ||
ember-production-deprecations | ||
float-kit | ||
locales | ||
pretty-text | ||
select-kit | ||
theme-transpiler | ||
truth-helpers | ||
.npmrc | ||
handlebars-shim.js | ||
polyfills.js | ||
run-patch-package | ||
service-worker.js.erb |