-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just improve your old module and render it wonderfully nicer #9
base: main
Are you sure you want to change the base?
Conversation
'jquery/ui', | ||
'domReady!' | ||
], function($) { | ||
document.addEventListener('DOMContentLoaded', function() { | ||
"use strict"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
est-ce que tu peux dรฉplacer le use strict au dessus de document stpl ?
/** @var ViewModelRegistry $viewModels */ | ||
|
||
/** @var Snowflake $snowflake */ | ||
$snowflake = $viewModels->require(Snowflake::class) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tu peux revert cette ligne comme รงa on est agnostique luma/hyva
411e670
to
d2a52cf
Compare
<field id="icon" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1"> | ||
<label>Icon</label> | ||
<comment><![CDATA[Icon to display as a snowflake โ๏ธ, get <a href="https://emojipedia.org/" target="_blank">more emoji</a>.]]></comment> | ||
<backend_model>Opengento\Snowflake\Model\Config\Backend\EmojiConverter</backend_model> | ||
<field id="season" translate="label" type="select" sortOrder="15" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1"> | ||
<label>Season/Festival</label> | ||
<source_model>Opengento\Snowflake\Model\Config\Source\Season</source_model> | ||
<comment><![CDATA[Choose a season or festival for the icons.]]></comment> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Est-ce que tu peux t'arranger pour conserver les deux champs et ajouter un champ toggle pour utiliser soit les presets, soit un icon custom ?
|
||
function letSnow() { | ||
let snowMax = <?= $viewModel->getSnowflakeQty() ?>; | ||
let snowColor = ["#DDD", "#BBB", "#AAA", "#EEE", "#CCC"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
La couleur permettait d'amรฉliorer l'impression de profondeur sur la "neige", est-ce que tu peux conserver cette ligne quitte ร la commenter pour qu'on voit comment l'intรฉgrer plus tard avec les presets de saisons ?
๐ ๐ป ๐ฆ โ๏ธ ๐ ๐ ๐ท ๐ฃ โ๏ธ ๐ ๐๏ธ ๐ ๐ ๐ ๐ ๐ซ๐ท ๐ฅณ ๐ ๐ ๐ฅ ๐ฐ ๐ฅ ๐ ๐น ๐ โ๏ธ ๐ป ๐ ๏ธ ๐ต ๐ธ ๐ค โ๏ธ ๐จ๏ธ ๐ธ ๐ฆ ๐ฆ ๐ ๐ธ๏ธ ๐คถ ๐ญ ๐ ๐คน โ๏ธ ๐บ ๐ฎ๐ช ๐ โจ ๐ฅฏ ๐ ๐ ๐ ๐ช ๐ ๐ ๐ฎ ๐งง ๐ ๐ฉโ๐งโ๐ฆ ๐ ๐ป ๐ฃ ๐ฆ ๐ฅง ๐ ๐งจ ๐ญ ๐บ ๐ถ ๐น ๐พ