style: reformat ts files

This commit is contained in:
Lucien Cartier-Tilet 2024-01-28 05:30:15 +01:00
parent bf367991a9
commit a27e346f30
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
2 changed files with 77 additions and 68 deletions

9
.prettierrc.json Normal file
View File

@ -0,0 +1,9 @@
{
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"arrowParens": "always"
}

View File

@ -5,125 +5,125 @@ interface SimplifiedHeader {
const simplifiedHead = [ const simplifiedHead = [
{ {
tag: "script", tag: 'script',
content: [ content: [
{ {
async: true, async: true,
src: "https://umami.phundrak.com/script.js", src: 'https://umami.phundrak.com/script.js',
"data-website-id": "67166941-8c83-4a19-bc8c-139e44b7f7aa", 'data-website-id': '67166941-8c83-4a19-bc8c-139e44b7f7aa',
"data-do-not-track": "true", 'data-do-not-track': 'true',
}, },
], ],
}, },
{ {
tag: "meta", tag: 'meta',
content: [ content: [
{ {
name: "author", name: 'author',
content: "Lucien Cartier-Tilet", content: 'Lucien Cartier-Tilet',
}, },
{ {
property: "og:image", property: 'og:image',
content: "https://cdn.phundrak.com/img/rich_preview.png", content: 'https://cdn.phundrak.com/img/rich_preview.png',
}, },
{ {
property: "og:title", property: 'og:title',
content: "Pundraks GNU/Linux Config", content: 'Pundraks GNU/Linux Config',
}, },
{ {
property: "og:description", property: 'og:description',
content: "Documentation of Pundraks GNU/Linux configuration files", content: 'Documentation of Pundraks GNU/Linux configuration files',
}, },
{ {
name: "twitter:card", name: 'twitter:card',
content: "summary", content: 'summary',
}, },
{ {
name: "twitter:site", name: 'twitter:site',
content: "@phundrak", content: '@phundrak',
}, },
{ {
name: "twitter:creator", name: 'twitter:creator',
content: "@phundrak", content: '@phundrak',
}, },
{ name: "msapplication-TileColor", content: "#3b4252" }, { name: 'msapplication-TileColor', content: '#3b4252' },
{ name: "msapplication-TileImage", content: "/ms-icon-144x144.png" }, { name: 'msapplication-TileImage', content: '/ms-icon-144x144.png' },
{ name: "theme-color", content: "#3b4252" }, { name: 'theme-color', content: '#3b4252' },
], ],
}, },
{ {
tag: "link", tag: 'link',
content: [ content: [
{ {
rel: "apple-touch-icon", rel: 'apple-touch-icon',
sizes: "57x57", sizes: '57x57',
href: "/apple-icon-57x57.png", href: '/apple-icon-57x57.png',
}, },
{ {
rel: "apple-touch-icon", rel: 'apple-touch-icon',
sizes: "60x60", sizes: '60x60',
href: "/apple-icon-60x60.png", href: '/apple-icon-60x60.png',
}, },
{ {
rel: "apple-touch-icon", rel: 'apple-touch-icon',
sizes: "72x72", sizes: '72x72',
href: "/apple-icon-72x72.png", href: '/apple-icon-72x72.png',
}, },
{ {
rel: "apple-touch-icon", rel: 'apple-touch-icon',
sizes: "76x76", sizes: '76x76',
href: "/apple-icon-76x76.png", href: '/apple-icon-76x76.png',
}, },
{ {
rel: "apple-touch-icon", rel: 'apple-touch-icon',
sizes: "114x114", sizes: '114x114',
href: "/apple-icon-114x114.png", href: '/apple-icon-114x114.png',
}, },
{ {
rel: "apple-touch-icon", rel: 'apple-touch-icon',
sizes: "120x120", sizes: '120x120',
href: "/apple-icon-120x120.png", href: '/apple-icon-120x120.png',
}, },
{ {
rel: "apple-touch-icon", rel: 'apple-touch-icon',
sizes: "144x144", sizes: '144x144',
href: "/apple-icon-144x144.png", href: '/apple-icon-144x144.png',
}, },
{ {
rel: "apple-touch-icon", rel: 'apple-touch-icon',
sizes: "152x152", sizes: '152x152',
href: "/apple-icon-152x152.png", href: '/apple-icon-152x152.png',
}, },
{ {
rel: "apple-touch-icon", rel: 'apple-touch-icon',
sizes: "180x180", sizes: '180x180',
href: "/apple-icon-180x180.png", href: '/apple-icon-180x180.png',
}, },
{ {
rel: "icon", rel: 'icon',
type: "image/png", type: 'image/png',
sizes: "192x192", sizes: '192x192',
href: "/android-icon-192x192.png", href: '/android-icon-192x192.png',
}, },
{ {
rel: "icon", rel: 'icon',
type: "image/png", type: 'image/png',
sizes: "32x32", sizes: '32x32',
href: "/favicon-32x32.png", href: '/favicon-32x32.png',
}, },
{ {
rel: "icon", rel: 'icon',
type: "image/png", type: 'image/png',
sizes: "96x96", sizes: '96x96',
href: "/favicon-96x96.png", href: '/favicon-96x96.png',
}, },
{ {
rel: "icon", rel: 'icon',
type: "image/png", type: 'image/png',
sizes: "16x16", sizes: '16x16',
href: "/favicon-16x16.png", href: '/favicon-16x16.png',
}, },
{ rel: "manifest", href: "/manifest.json" }, { rel: 'manifest', href: '/manifest.json' },
], ],
}, },
]; ];
@ -135,6 +135,6 @@ simplifiedHead.forEach((tag: SimplifiedHeader) => {
head.push([tagName, element]); head.push([tagName, element]);
}); });
}); });
head.push(["a", { rel: "me", href: "https://emacs.ch/@phundrak" }, "Mastodon"]); head.push(['a', { rel: 'me', href: 'https://emacs.ch/@phundrak' }, 'Mastodon']);
export default head; export default head;