build warnings

This commit is contained in:
ThatOneCalculator 2022-07-18 22:20:29 -07:00
parent 41bca5eb00
commit 525bfec17b

View file

@ -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 = `<small>${i18n.ts._mfm.dummy}</small>`;
const preview_center = `<center>${i18n.ts._mfm.dummy}</center>`;
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 = `<small>${i18n.ts._mfm.dummy}</small>`;
let preview_center = `<center>${i18n.ts._mfm.dummy}</center>`;
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,