From a084046bfbf7fc355cf7a09e9589d3df7f7689bb Mon Sep 17 00:00:00 2001 From: Kractero Date: Sun, 1 Oct 2023 23:05:57 -0700 Subject: [PATCH] run prettier --- postcss.config.js | 10 ++--- src/app.css | 74 +++++++++++++---------------------- src/app.html | 26 ++++++------ src/component/Tool.svelte | 24 +++++++----- src/globals.ts | 8 ++-- src/lib/htmlContent.ts | 20 ++++++---- src/lib/sortFunctionString.ts | 4 +- src/lib/txtIterator.ts | 6 +-- src/routes/+layout.server.ts | 2 +- src/routes/+layout.ts | 2 +- src/routes/navigation.svelte | 2 +- tailwind.config.js | 44 ++++++++++----------- 12 files changed, 107 insertions(+), 115 deletions(-) diff --git a/postcss.config.js b/postcss.config.js index 2e7af2b..0f77216 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,6 +1,6 @@ export default { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -} + plugins: { + tailwindcss: {}, + autoprefixer: {} + } +}; diff --git a/src/app.css b/src/app.css index 8c7ff28..611f279 100644 --- a/src/app.css +++ b/src/app.css @@ -5,51 +5,33 @@ @tailwind utilities; @layer base { - :root { - --color-primary: 255 255 255; - --color-secondary: 229 231 235; - --color-tertiary: 203 213 225; - --text-primary: 30 41 59; - --text-content: 71 85 105; - --card-text-primary: 15 23 42; - --card-text-secondary: 51 65 85; - --labels: 0 0 0; - --buttons: 255 255 255; - --herobuttons: 15 23 42; - --herobuttons-hover: 51 65 85; - } + :root { + --color-primary: 255 255 255; + --color-secondary: 229 231 235; + --color-tertiary: 203 213 225; + --text-primary: 30 41 59; + --text-content: 71 85 105; + --card-text-primary: 15 23 42; + --card-text-secondary: 51 65 85; + --labels: 0 0 0; + --buttons: 255 255 255; + --herobuttons: 15 23 42; + --herobuttons-hover: 51 65 85; + } - @media (prefers-color-scheme: dark) { - :root { - --color-primary: 30 41 59; - --color-secondary: 226 232 240; - --color-tertiary: 148 163 184; - --text-primary: 255 255 255; - --text-content: 214 211 209; - --card-text-primary: 15 23 42; - --card-text-secondary: 51 65 85; - --labels: 0 0 0; - --buttons: 0 0 0; - --herobuttons: 14 165 223; - --herobuttons-hover: 56 189 248; - } - } + @media (prefers-color-scheme: dark) { + :root { + --color-primary: 30 41 59; + --color-secondary: 226 232 240; + --color-tertiary: 148 163 184; + --text-primary: 255 255 255; + --text-content: 214 211 209; + --card-text-primary: 15 23 42; + --card-text-secondary: 51 65 85; + --labels: 0 0 0; + --buttons: 0 0 0; + --herobuttons: 14 165 223; + --herobuttons-hover: 56 189 248; + } + } } - -.clienthide { - opacity: 0; - transform: translateX(-100%); - transition: all 1s; -} - -@media (prefers-reduced-motion) { - .clienthide { - transition: none; - } -} - -.show { - opacity: 1; - transform: translateX(0); - transition: all 1s; -} \ No newline at end of file diff --git a/src/app.html b/src/app.html index 3325314..d052c43 100644 --- a/src/app.html +++ b/src/app.html @@ -1,16 +1,16 @@ + + + + + %sveltekit.head% + - - - - - %sveltekit.head% - - - -
%sveltekit.body%
- - - \ No newline at end of file + +
%sveltekit.body%
+ + diff --git a/src/component/Tool.svelte b/src/component/Tool.svelte index 8aad69e..627f0de 100644 --- a/src/component/Tool.svelte +++ b/src/component/Tool.svelte @@ -1,12 +1,16 @@ - -
- {tool} - {tool} -
-

{description}

-
\ No newline at end of file + + +
+ {tool} + {tool} +
+

{description}

+
diff --git a/src/globals.ts b/src/globals.ts index efdf118..2933bd2 100644 --- a/src/globals.ts +++ b/src/globals.ts @@ -1,7 +1,7 @@ -import { XMLParser } from "fast-xml-parser"; +import { XMLParser } from 'fast-xml-parser'; -export const parser = new XMLParser({ignoreAttributes : false}); +export const parser = new XMLParser({ ignoreAttributes: false }); export function sleep(ms: number) { - return new Promise((resolve) => setTimeout(resolve, ms)); - } \ No newline at end of file + return new Promise((resolve) => setTimeout(resolve, ms)); +} diff --git a/src/lib/htmlContent.ts b/src/lib/htmlContent.ts index 15f1aa5..e9323fa 100644 --- a/src/lib/htmlContent.ts +++ b/src/lib/htmlContent.ts @@ -3,8 +3,10 @@ export const htmlContent = (content: string, style?: string, sortFunction?: stri ${content} - ${sortFunction ? "" : - ` + ${ + sortFunction + ? '' + : ` - `} + ` + }

@@ -56,7 +61,8 @@ export const htmlContent = (content: string, style?: string, sortFunction?: stri

diff --git a/src/lib/sortFunctionString.ts b/src/lib/sortFunctionString.ts index c20d2b6..9525df1 100644 --- a/src/lib/sortFunctionString.ts +++ b/src/lib/sortFunctionString.ts @@ -23,7 +23,7 @@ sortableColumns.forEach(col => { col.setAttribute('data-order', newOrder); }); }); -` +`; export let style = ` body { font-size: 14px; @@ -71,4 +71,4 @@ a { a:hover { text-decoration: underline; } -` \ No newline at end of file +`; diff --git a/src/lib/txtIterator.ts b/src/lib/txtIterator.ts index 585251b..cf58490 100644 --- a/src/lib/txtIterator.ts +++ b/src/lib/txtIterator.ts @@ -1,8 +1,8 @@ export async function nsIterator(puppets: string, mode: string, main?: string) { let puppetsList = puppets.split('\n'); let buildString = ''; - let containerise_nation = ''; - let containerise_container = ''; + let containerise_nation = ''; + let containerise_container = ''; for (let i = 0; i < puppetsList.length; i++) { let nation = puppetsList[i]; if (nation.includes(',')) { @@ -19,5 +19,5 @@ export async function nsIterator(puppets: string, mode: string, main?: string) { }

Link to Nation

`; } } - return mode === 'Container Rules' ? [containerise_nation, containerise_container]: buildString; + return mode === 'Container Rules' ? [containerise_nation, containerise_container] : buildString; } diff --git a/src/routes/+layout.server.ts b/src/routes/+layout.server.ts index c8cacf0..189f71e 100644 --- a/src/routes/+layout.server.ts +++ b/src/routes/+layout.server.ts @@ -1 +1 @@ -export const prerender = true; \ No newline at end of file +export const prerender = true; diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts index c8cacf0..189f71e 100644 --- a/src/routes/+layout.ts +++ b/src/routes/+layout.ts @@ -1 +1 @@ -export const prerender = true; \ No newline at end of file +export const prerender = true; diff --git a/src/routes/navigation.svelte b/src/routes/navigation.svelte index 99e781a..6d9573a 100644 --- a/src/routes/navigation.svelte +++ b/src/routes/navigation.svelte @@ -13,4 +13,4 @@ }); }); }); - \ No newline at end of file + diff --git a/tailwind.config.js b/tailwind.config.js index d69cf6c..379140a 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,24 +1,24 @@ /** @type {import('tailwindcss').Config} */ export default { - content: ['./src/**/*.{html,js,svelte,ts}'], - theme: { - extend: { - colors: { - background: 'rgb(var(--color-primary) / )', - content: 'rgb(var(--color-secondary) / )', - tertiary: 'rgb(var(--color-tertiary) / )', - textprimary: 'rgb(var(--text-primary) / )', - textcontent: 'rgb(var(--text-content) / )', - cardprimarytext: 'rgb(var(--card-text-primary) / )', - cardsecondarytext: 'rgb(var(--card-text-secondary) / )', - label: 'rgb(var(--labels) / )', - herobuttons: 'rgb(var(--herobuttons) / )', - herobuttonshover: 'rgb(var(--herobuttons-hover) / )', - buttons: 'rgb(var(--buttons) / )' - }, - fontFamily: { - notosans: ['Noto Sans', 'sans-serif'] - } - }, - }, -} \ No newline at end of file + content: ['./src/**/*.{html,js,svelte,ts}'], + theme: { + extend: { + colors: { + background: 'rgb(var(--color-primary) / )', + content: 'rgb(var(--color-secondary) / )', + tertiary: 'rgb(var(--color-tertiary) / )', + textprimary: 'rgb(var(--text-primary) / )', + textcontent: 'rgb(var(--text-content) / )', + cardprimarytext: 'rgb(var(--card-text-primary) / )', + cardsecondarytext: 'rgb(var(--card-text-secondary) / )', + label: 'rgb(var(--labels) / )', + herobuttons: 'rgb(var(--herobuttons) / )', + herobuttonshover: 'rgb(var(--herobuttons-hover) / )', + buttons: 'rgb(var(--buttons) / )' + }, + fontFamily: { + notosans: ['Noto Sans', 'sans-serif'] + } + } + } +};