From 938e0353b43dd1bfa9f442bf57d3ee3e64ca7783 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 18 Jul 2022 22:20:29 -0700 Subject: [PATCH] build warnings --- packages/client/src/pages/mfm-cheat-sheet.vue | 58 +++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/packages/client/src/pages/mfm-cheat-sheet.vue b/packages/client/src/pages/mfm-cheat-sheet.vue index 3315479ab..b3e6f5f9c 100644 --- a/packages/client/src/pages/mfm-cheat-sheet.vue +++ b/packages/client/src/pages/mfm-cheat-sheet.vue @@ -306,35 +306,35 @@ import { definePageMetadata } from '@/scripts/page-metadata'; import { i18n } from '@/i18n'; import { instance } from '@/instance'; -const preview_mention = '@example'; -const preview_hashtag = '#test'; -const preview_url = 'https://example.com'; -const preview_link = `[${i18n.ts._mfm.dummy}](https://example.com)`; -const preview_emoji = instance.emojis.length ? `:${instance.emojis[0].name}:` : ':emojiname:'; -const preview_bold = `**${i18n.ts._mfm.dummy}**`; -const preview_small = `${i18n.ts._mfm.dummy}`; -const preview_center = `
${i18n.ts._mfm.dummy}
`; -const preview_inlineCode = '`<: "Hello, world!"`'; -const preview_blockCode = '```\n~ (#i, 100) {\n\t<: ? ((i % 15) = 0) "FizzBuzz"\n\t\t.? ((i % 3) = 0) "Fizz"\n\t\t.? ((i % 5) = 0) "Buzz"\n\t\t. i\n}\n```'; -const preview_inlineMath = '\\(x= \\frac{-b\' \\pm \\sqrt{(b\')^2-ac}}{a}\\)'; -const preview_quote = `> ${i18n.ts._mfm.dummy}`; -const preview_search = `${i18n.ts._mfm.dummy} ๆคœ็ดข`; -const preview_jelly = '$[jelly ๐Ÿฎ] $[jelly.speed=5s ๐Ÿฎ]'; -const preview_tada = '$[tada ๐Ÿฎ] $[tada.speed=5s ๐Ÿฎ]'; -const preview_jump = '$[jump ๐Ÿฎ] $[jump.speed=5s ๐Ÿฎ]'; -const preview_bounce = '$[bounce ๐Ÿฎ] $[bounce.speed=5s ๐Ÿฎ]'; -const preview_shake = '$[shake ๐Ÿฎ] $[shake.speed=5s ๐Ÿฎ]'; -const preview_twitch = '$[twitch ๐Ÿฎ] $[twitch.speed=5s ๐Ÿฎ]'; -const preview_spin = '$[spin ๐Ÿฎ] $[spin.left ๐Ÿฎ] $[spin.alternate ๐Ÿฎ]\n$[spin.x ๐Ÿฎ] $[spin.x,left ๐Ÿฎ] $[spin.x,alternate ๐Ÿฎ]\n$[spin.y ๐Ÿฎ] $[spin.y,left ๐Ÿฎ] $[spin.y,alternate ๐Ÿฎ]\n\n$[spin.speed=5s ๐Ÿฎ]'; -const preview_flip = `$[flip ${i18n.ts._mfm.dummy}]\n$[flip.v ${i18n.ts._mfm.dummy}]\n$[flip.h,v ${i18n.ts._mfm.dummy}]`; -const preview_font = `$[font.serif ${i18n.ts._mfm.dummy}]\n$[font.monospace ${i18n.ts._mfm.dummy}]\n$[font.cursive ${i18n.ts._mfm.dummy}]\n$[font.fantasy ${i18n.ts._mfm.dummy}]`; -const preview_x2 = '$[x2 ๐Ÿฎ]'; -const preview_x3 = '$[x3 ๐Ÿฎ]'; -const preview_x4 = '$[x4 ๐Ÿฎ]'; -const preview_blur = `$[blur ${i18n.ts._mfm.dummy}]`; -const preview_rainbow = '$[rainbow ๐Ÿฎ] $[rainbow.speed=5s ๐Ÿฎ]'; -const preview_sparkle = '$[sparkle ๐Ÿฎ]'; -const preview_rotate = '$[rotate ๐Ÿฎ]'; +let preview_mention = '@example'; +let preview_hashtag = '#test'; +let preview_url = 'https://example.com'; +let preview_link = `[${i18n.ts._mfm.dummy}](https://example.com)`; +let preview_emoji = instance.emojis.length ? `:${instance.emojis[0].name}:` : ':emojiname:'; +let preview_bold = `**${i18n.ts._mfm.dummy}**`; +let preview_small = `${i18n.ts._mfm.dummy}`; +let preview_center = `
${i18n.ts._mfm.dummy}
`; +let preview_inlineCode = '`<: "Hello, world!"`'; +let preview_blockCode = '```\n~ (#i, 100) {\n\t<: ? ((i % 15) = 0) "FizzBuzz"\n\t\t.? ((i % 3) = 0) "Fizz"\n\t\t.? ((i % 5) = 0) "Buzz"\n\t\t. i\n}\n```'; +let preview_inlineMath = '\\(x= \\frac{-b\' \\pm \\sqrt{(b\')^2-ac}}{a}\\)'; +let preview_quote = `> ${i18n.ts._mfm.dummy}`; +let preview_search = `${i18n.ts._mfm.dummy} ๆคœ็ดข`; +let preview_jelly = '$[jelly ๐Ÿฎ] $[jelly.speed=5s ๐Ÿฎ]'; +let preview_tada = '$[tada ๐Ÿฎ] $[tada.speed=5s ๐Ÿฎ]'; +let preview_jump = '$[jump ๐Ÿฎ] $[jump.speed=5s ๐Ÿฎ]'; +let preview_bounce = '$[bounce ๐Ÿฎ] $[bounce.speed=5s ๐Ÿฎ]'; +let preview_shake = '$[shake ๐Ÿฎ] $[shake.speed=5s ๐Ÿฎ]'; +let preview_twitch = '$[twitch ๐Ÿฎ] $[twitch.speed=5s ๐Ÿฎ]'; +let preview_spin = '$[spin ๐Ÿฎ] $[spin.left ๐Ÿฎ] $[spin.alternate ๐Ÿฎ]\n$[spin.x ๐Ÿฎ] $[spin.x,left ๐Ÿฎ] $[spin.x,alternate ๐Ÿฎ]\n$[spin.y ๐Ÿฎ] $[spin.y,left ๐Ÿฎ] $[spin.y,alternate ๐Ÿฎ]\n\n$[spin.speed=5s ๐Ÿฎ]'; +let preview_flip = `$[flip ${i18n.ts._mfm.dummy}]\n$[flip.v ${i18n.ts._mfm.dummy}]\n$[flip.h,v ${i18n.ts._mfm.dummy}]`; +let preview_font = `$[font.serif ${i18n.ts._mfm.dummy}]\n$[font.monospace ${i18n.ts._mfm.dummy}]\n$[font.cursive ${i18n.ts._mfm.dummy}]\n$[font.fantasy ${i18n.ts._mfm.dummy}]`; +let preview_x2 = '$[x2 ๐Ÿฎ]'; +let preview_x3 = '$[x3 ๐Ÿฎ]'; +let preview_x4 = '$[x4 ๐Ÿฎ]'; +let preview_blur = `$[blur ${i18n.ts._mfm.dummy}]`; +let preview_rainbow = '$[rainbow ๐Ÿฎ] $[rainbow.speed=5s ๐Ÿฎ]'; +let preview_sparkle = '$[sparkle ๐Ÿฎ]'; +let preview_rotate = '$[rotate ๐Ÿฎ]'; definePageMetadata({ title: i18n.ts._mfm.cheatSheet,