🔥 Supprime la transformation d'emoji dans la doc publicodes

fix/algolia-rm-temp-index-on-closed-pr
Maxime Quandalle 2021-09-21 12:44:00 +02:00
parent 488972878c
commit 6d05bb218c
11 changed files with 11 additions and 69 deletions

View File

@ -1615,18 +1615,6 @@ simulateurs:
explanation:
CNAPL: It recovers contributions related to your retirement and disability/death
plan.
aides covid:
deduction: <0>Deduction of turnover</0><1>The terms and conditions of the
"covid" discount are presented on the Urssaf
website.</1><2><0>{emoji('▶')}</0> More information</2>
portail: <0>Government assistance</0><1>The Ministry of the Economy offers a
portal listing business support measures.</1><2><0>{emoji('▶')}</0>
Support measures</2>
reduction: <0>Contribution reduction</0><1>You can benefit from a reduction in
your final contributions for the year 2020.</1><2><0></0></2>
soutien: <0>Listening and support</0><1>An <2>initial listening and
psychological support unit</2> has been set up for company directors
weakened by the crisis.</1><2><0>{emoji('📞')}</0> 08 05 65 50 50</2>
institutions:
cpam: As a health professional under agreement, you benefit from a part of your
contributions being covered by the Health Insurance.

View File

@ -166,7 +166,7 @@ export const Results = ({ onClickShare, rules }: ResultsProps) => {
</small>
<div className="ui__ answer-group">
<button className="ui__ simple small button" onClick={onClickShare}>
{emoji('🔗')} Copier le lien
🔗 Copier le lien
</button>
</div>
</div>

View File

@ -56,9 +56,7 @@ export function LinkRenderer({
</a>
)
}
const TextRenderer = ({ children }: { children: string }) => (
<>{emoji(children)}</>
)
const TextRenderer = ({ children }: { children: string }) => <>{children}</>
type MarkdownProps = ReactMarkdownProps & {
source: string | undefined
@ -93,7 +91,7 @@ const CodeBlock = ({
target="_blank"
css="position: absolute; bottom: 5px; right: 10px; color: white !important;"
>
{emoji('⚡')} Lancer le calcul
Lancer le calcul
</a>
)}
</div>

View File

@ -19,7 +19,6 @@
"classnames": "^2.2.6",
"focus-trap-react": "^3.1.2",
"ramda": "^0.27.0",
"react-easy-emoji": "^1.4.0",
"react-helmet": "^6.1.0",
"react-markdown": "^4.3.1",
"react-router-hash-link": "^2.4.3",

View File

@ -48,9 +48,7 @@ const CodeBlock = ({ value, language }: { value: string; language: string }) =>
</pre>
)
const TextRenderer = ({ children }: { children: string }) => (
<>{emoji(children)}</>
)
const TextRenderer = ({ children }: { children: string }) => <>{children}</>
type MarkdownProps = ReactMarkdownProps & {
source: string | undefined

View File

@ -17,7 +17,7 @@ export default function PublicodesBlock({ source }: { source: string }) {
href={`${baseURL}/studio?code=${encodeURIComponent(source)}`}
target="_blank"
>
{emoji('⚡')} Lancer le calcul
Lancer le calcul
</LaunchButton>
</div>
)

View File

@ -63,9 +63,7 @@ export function RuleLink<Name extends string>({
{...props}
>
{children || rule.title}{' '}
{displayIcon && rule.rawNode.icônes && (
<span>{emoji(rule.rawNode.icônes)} </span>
)}
{displayIcon && rule.rawNode.icônes && <span>{rule.rawNode.icônes}</span>}
</Link>
)
}

View File

@ -24,7 +24,7 @@ export default function Replacement(node: VariationNode & EvaluatedNode) {
onClick={() => changeDisplayReplacement(true)}
className="ui__ simple small button"
>
{emoji('🔄')}
🔄
</button>
{displayReplacements && (
<Overlay onClose={() => changeDisplayReplacement(false)}>

View File

@ -47,14 +47,14 @@ export default function Variations({
className="ui__ link-button"
onClick={() => toggleVariation(i)}
>
détails {emoji('▶️')}
détails
</button>
) : (
<button
className="ui__ link-button"
onClick={() => toggleVariation(null)}
>
replier {emoji('🔽')}
replier 🔽
</button>
)}
</>

View File

@ -87,7 +87,7 @@ export default function RuleSource({ engine, dottedName }: Props) {
dottedName
)}?code=${encodeURIComponent(source)}`}
>
{emoji('✍️')} Voir la règle dans le bac à sable Publicodes
Voir la règle dans le bac à sable Publicodes
</a>
</div>
)

View File

@ -2168,13 +2168,6 @@ intl@^1.2.5:
resolved "https://registry.yarnpkg.com/intl/-/intl-1.2.5.tgz#82244a2190c4e419f8371f5aa34daa3420e2abde"
integrity sha1-giRKIZDE5Bn4Nx9ao02qNCDiq94=
invariant@^2.2.1:
version "2.2.4"
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==
dependencies:
loose-envify "^1.0.0"
is-alphabetical@^1.0.0:
version "1.0.4"
resolved "https://registry.yarnpkg.com/is-alphabetical/-/is-alphabetical-1.0.4.tgz#9e7d6b94916be22153745d184c298cbf986a686d"
@ -2397,11 +2390,6 @@ locate-path@^6.0.0:
dependencies:
p-locate "^5.0.0"
lodash.assign@^4.0.8:
version "4.2.0"
resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-4.2.0.tgz#0d99f3ccd7a6d261d19bdaeb9245005d285808e7"
integrity sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=
lodash.camelcase@^4.3.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6"
@ -2412,16 +2400,6 @@ lodash.debounce@^4.0.8:
resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"
integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168=
lodash.flatten@^4.2.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/lodash.flatten/-/lodash.flatten-4.4.0.tgz#f31c22225a9632d2bbf8e4addbef240aa765a61f"
integrity sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=
lodash.isstring@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451"
integrity sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=
lodash@^4.17.11, lodash@^4.17.15:
version "4.17.21"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
@ -2435,7 +2413,7 @@ log-symbols@4.1.0:
chalk "^4.1.0"
is-unicode-supported "^0.1.0"
loose-envify@^1.0.0, loose-envify@^1.4.0:
loose-envify@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
@ -2834,14 +2812,6 @@ randombytes@^2.1.0:
dependencies:
safe-buffer "^5.1.0"
react-easy-emoji@^1.4.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/react-easy-emoji/-/react-easy-emoji-1.5.0.tgz#fe81e6c8b1df4e4305a47f3df1187b6db6663ae8"
integrity sha512-yBlctvcglxKpEYijPJ1YHAe26ce6wxfNxERF/X3RUy3EPM1RKW0+Kn7Nm2rccYg4ReE4htOAsJB8FhMwNk2sAw==
dependencies:
lodash.assign "^4.0.8"
string-replace-to-array "^1.0.1"
react-fast-compare@^3.1.1:
version "3.2.0"
resolved "https://registry.yarnpkg.com/react-fast-compare/-/react-fast-compare-3.2.0.tgz#641a9da81b6a6320f270e89724fb45a0b39e43bb"
@ -3172,15 +3142,6 @@ state-toggle@^1.0.0:
resolved "https://registry.yarnpkg.com/state-toggle/-/state-toggle-1.0.3.tgz#e123b16a88e143139b09c6852221bc9815917dfe"
integrity sha512-d/5Z4/2iiCnHw6Xzghyhb+GcmF89bxwgXG60wjIiZaxnymbyOmI8Hk4VqHXiVVp6u2ysaskFfXg3ekCj4WNftQ==
string-replace-to-array@^1.0.1:
version "1.0.3"
resolved "https://registry.yarnpkg.com/string-replace-to-array/-/string-replace-to-array-1.0.3.tgz#c93eba999a5ee24d731aebbaf5aba36b5f18f7bf"
integrity sha1-yT66mZpe4k1zGuu69auja18Y978=
dependencies:
invariant "^2.2.1"
lodash.flatten "^4.2.0"
lodash.isstring "^4.0.1"
"string-width@^1.0.2 || 2":
version "2.1.1"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e"