* Migrate to esbuild WIP * Add exclude * Remove redundant file * Move file * Move to javascript_include_tag * Lint fix * WIP * WIP * Add watch mode to esbuild WIP * Get jest working * Remove babel * Revert "Remove babel" This reverts commit 6da35260aa19d6f97f586deb66c0ecaf48433b73. * More WIP * Got image to load * WIP * Resolve audit * Lint fix * WIP * Fix jest spec * [CI] Remove asset-restore for test build stage * Production compliant * Temp disable sourcemap * Update glob * Add esbuild helper to stimulus * Import fragment * Temp disable coverage to see failing tests * Fix broken spec * Address lint * Set proper es6 target * Use esbuild for everything * wait what * Revert "Set proper es6 target" This reverts commit 98f5278093421baa8ffe2ca580845b01c1a1eadf. * Revert "Use esbuild for everything" This reverts commit 0ac46738f07ffcb6af095ccb1ffa5e439b7fefa3. * Replace uglifier with terser * New compiled assets version * Remvoe honeybadger-io/webpack * Remove cypress coverage checks for now * Update jsconfig.json * Update docker-compose * Remove public/packs-test from ci cache
29 lines
1.1 KiB
Text
29 lines
1.1 KiB
Text
<% title t("views.onboardings.meta.title", community: community_name) %>
|
|
|
|
<style>
|
|
<% cache(release_adjusted_cache_key("onboarding-css"), expires_in: 10.hours) do %>
|
|
<%= Rails.application.assets["preact/onboarding-modal.css"].to_s.html_safe %>
|
|
<% end %>
|
|
|
|
.crayons-header,
|
|
.crayons-footer {
|
|
display: none;
|
|
}
|
|
</style>
|
|
|
|
<div id="onboarding-container"
|
|
data-community-name="<%= j(community_name) %>"
|
|
data-community-description="<%= j(Settings::Community.community_description) %>"
|
|
data-community-logo="<%= optimized_image_url(Settings::General.logo_png) %>"
|
|
data-community-background-color="<%= gradient_from_hex(Settings::UserExperience.primary_brand_color_hex)[:light] %>"
|
|
data-community-background-color2="<%= gradient_from_hex(Settings::UserExperience.primary_brand_color_hex)[:dark] %>">
|
|
<%= javascript_include_tag "Onboarding", defer: true %>
|
|
</div>
|
|
|
|
<div id="terms" style="display: none;">
|
|
<%= Page.render_safe_html_for(slug: Page::TERMS_SLUG) { render "pages/terms_text" } %>
|
|
</div>
|
|
|
|
<div id="coc" style="display: none;">
|
|
<%= Page.render_safe_html_for(slug: Page::CODE_OF_CONDUCT_SLUG) { render "pages/coc_text" } %>
|
|
</div>
|