Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Siln0z
Copy link

@Siln0z Siln0z commented Nov 9, 2024

๐ŸŽƒ ๐Ÿ‘ป ๐Ÿฆ‡ โ„๏ธ ๐ŸŽ… ๐ŸŽ„ ๐ŸŒท ๐Ÿฃ โ˜€๏ธ ๐ŸŒž ๐Ÿ–๏ธ ๐Ÿ‰ ๐Ÿ‚ ๐Ÿ ๐ŸŽ† ๐Ÿ‡ซ๐Ÿ‡ท ๐Ÿฅณ ๐ŸŽ‡ ๐ŸŽ‰ ๐Ÿฅ‚ ๐Ÿฐ ๐Ÿฅš ๐Ÿ’– ๐ŸŒน ๐Ÿ’• โš’๏ธ ๐ŸŒป ๐Ÿ› ๏ธ ๐ŸŽต ๐ŸŽธ ๐ŸŽค โ˜ƒ๏ธ ๐ŸŒจ๏ธ ๐ŸŒธ ๐Ÿฆ‹ ๐Ÿฆ ๐Ÿ„ ๐Ÿ•ธ๏ธ ๐Ÿคถ ๐ŸŽญ ๐ŸŽŠ ๐Ÿคน โ˜˜๏ธ ๐Ÿบ ๐Ÿ‡ฎ๐Ÿ‡ช ๐Ÿ•Ž โœจ ๐Ÿฅฏ ๐ŸŒ™ ๐Ÿ•Œ ๐Ÿ•‹ ๐Ÿช” ๐ŸŒŸ ๐Ÿ‰ ๐Ÿฎ ๐Ÿงง ๐Ÿ’ ๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ ๐Ÿ‘” ๐Ÿป ๐ŸŽฃ ๐Ÿฆƒ ๐Ÿฅง ๐ŸŽ ๐Ÿงจ ๐ŸŒญ ๐Ÿ•บ ๐ŸŽถ ๐Ÿน ๐Ÿพ

'jquery/ui',
'domReady!'
], function($) {
document.addEventListener('DOMContentLoaded', function() {
"use strict";
Copy link
Member

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)
Copy link
Member

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

@Siln0z Siln0z force-pushed the feature/snowflake_ultimate_version_Hyva_compat branch from 411e670 to d2a52cf Compare November 10, 2024 02:24
Comment on lines -22 to +25
<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>
Copy link
Member

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"];
Copy link
Member

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants