Update formatter

This commit is contained in:
M3DZIK 2023-12-13 18:16:45 +01:00
parent 01ab9d1e23
commit 2f828934b9
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
15 changed files with 242 additions and 234 deletions

View File

@ -1,30 +1,25 @@
module.exports = { module.exports = {
root: true, root: true,
extends: [ extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:svelte/recommended', 'prettier'],
'eslint:recommended', parser: '@typescript-eslint/parser',
'plugin:@typescript-eslint/recommended', plugins: ['@typescript-eslint'],
'plugin:svelte/recommended', parserOptions: {
'prettier' sourceType: 'module',
], ecmaVersion: 2020,
parser: '@typescript-eslint/parser', extraFileExtensions: ['.svelte']
plugins: ['@typescript-eslint'], },
parserOptions: { env: {
sourceType: 'module', browser: true,
ecmaVersion: 2020, es2017: true,
extraFileExtensions: ['.svelte'] node: true
}, },
env: { overrides: [
browser: true, {
es2017: true, files: ['*.svelte'],
node: true parser: 'svelte-eslint-parser',
}, parserOptions: {
overrides: [ parser: '@typescript-eslint/parser'
{ }
files: ['*.svelte'], }
parser: 'svelte-eslint-parser', ]
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
}; };

View File

@ -1,9 +1,15 @@
{ {
"useTabs": true, "tabWidth": 4,
"singleQuote": true, "singleQuote": true,
"trailingComma": "none", "trailingComma": "none",
"printWidth": 100, "printWidth": 120,
"plugins": ["prettier-plugin-svelte"], "plugins": ["prettier-plugin-svelte"],
"pluginSearchDirs": ["."], "overrides": [
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] {
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
} }

View File

@ -1,37 +1,37 @@
{ {
"name": "portfolio", "name": "portfolio",
"version": "0.0.1", "version": "0.0.1",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev",
"build": "vite build", "build": "vite build",
"preview": "vite preview", "preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --plugin-search-dir . --check . && eslint .", "lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write ." "format": "prettier --plugin-search-dir . --write ."
}, },
"devDependencies": { "devDependencies": {
"@floating-ui/dom": "^1.4.0", "@floating-ui/dom": "^1.4.0",
"@skeletonlabs/skeleton": "^1.7.1", "@skeletonlabs/skeleton": "^1.7.1",
"@sveltejs/adapter-auto": "^2.0.0", "@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.5.0", "@sveltejs/kit": "^1.5.0",
"@typescript-eslint/eslint-plugin": "^5.45.0", "@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0", "@typescript-eslint/parser": "^5.45.0",
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.14",
"eslint": "^8.28.0", "eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0", "eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte": "^2.26.0", "eslint-plugin-svelte": "^2.26.0",
"postcss": "^8.4.24", "postcss": "^8.4.24",
"prettier": "^2.8.0", "prettier": "^2.8.0",
"prettier-plugin-svelte": "^2.8.1", "prettier-plugin-svelte": "^2.8.1",
"svelte": "^3.54.0", "svelte": "^3.54.0",
"svelte-check": "^3.0.1", "svelte-check": "^3.0.1",
"svelte-icons": "^2.1.0", "svelte-icons": "^2.1.0",
"tailwindcss": "^3.3.2", "tailwindcss": "^3.3.2",
"tslib": "^2.4.1", "tslib": "^2.4.1",
"typescript": "^5.0.0", "typescript": "^5.0.0",
"vite": "^4.3.0" "vite": "^4.3.0"
}, },
"type": "module" "type": "module"
} }

View File

@ -1,6 +1,6 @@
module.exports = { module.exports = {
plugins: { plugins: {
tailwindcss: {}, tailwindcss: {},
autoprefixer: {}, autoprefixer: {}
}, }
} };

8
src/app.d.ts vendored
View File

@ -2,8 +2,8 @@
// for information about these interfaces // for information about these interfaces
// and what to do when importing types // and what to do when importing types
declare namespace App { declare namespace App {
// interface Locals {} // interface Locals {}
// interface PageData {} // interface PageData {}
// interface Error {} // interface Error {}
// interface Platform {} // interface Platform {}
} }

View File

@ -1,12 +1,12 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" class="light"> <html lang="en" class="light">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.svg" /> <link rel="icon" href="%sveltekit.assets%/favicon.svg" />
<meta name="viewport" content="width=device-width" /> <meta name="viewport" content="width=device-width" />
%sveltekit.head% %sveltekit.head%
</head> </head>
<body data-sveltekit-preload-data="hover"> <body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div> <div style="display: contents">%sveltekit.body%</div>
</body> </body>
</html> </html>

View File

@ -1,5 +1,5 @@
/*place global styles here */ /*place global styles here */
html, html,
body { body {
@apply h-full; @apply h-full;
} }

View File

@ -5,10 +5,7 @@
</script> </script>
<div class="card variant-glass md:p-10 shadow-lg space-y-4 text-center btn whitespace-normal grid"> <div class="card variant-glass md:p-10 shadow-lg space-y-4 text-center btn whitespace-normal grid">
<div <div class="mx-auto variant-glass rounded-2xl p-2" style="width: 50px; height: 50px;">
class="mx-auto variant-glass rounded-2xl p-2"
style="width: 50px; height: 50px;"
>
<svelte:component this={icon} /> <svelte:component this={icon} />
</div> </div>

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -1,7 +1,7 @@
<script> <script>
import '@skeletonlabs/skeleton/themes/theme-skeleton.css'; import '@skeletonlabs/skeleton/themes/theme-skeleton.css';
import '@skeletonlabs/skeleton/styles/skeleton.css'; import '@skeletonlabs/skeleton/styles/skeleton.css';
import '../app.postcss'; import '../app.postcss';
</script> </script>
<slot /> <slot />

View File

@ -1,138 +1,141 @@
<script> <script>
import { ProgressBar } from "@skeletonlabs/skeleton"; import { ProgressBar } from '@skeletonlabs/skeleton';
import DiJava from 'svelte-icons/di/DiJava.svelte' import DiJava from 'svelte-icons/di/DiJava.svelte';
import DiGo from 'svelte-icons/di/DiGo.svelte' import DiGo from 'svelte-icons/di/DiGo.svelte';
import DiJavascript from 'svelte-icons/di/DiJavascript1.svelte' import DiJavascript from 'svelte-icons/di/DiJavascript1.svelte';
import FaGithub from "svelte-icons/fa/FaGithub.svelte"; import FaGithub from 'svelte-icons/fa/FaGithub.svelte';
import FaGitlab from "svelte-icons/fa/FaGitlab.svelte"; import FaGitlab from 'svelte-icons/fa/FaGitlab.svelte';
import FaCreditCard from "svelte-icons/fa/FaCreditCard.svelte"; import FaCreditCard from 'svelte-icons/fa/FaCreditCard.svelte';
import FaYoutube from "svelte-icons/fa/FaYoutube.svelte"; import FaYoutube from 'svelte-icons/fa/FaYoutube.svelte';
import MdEmail from "svelte-icons/md/MdEmail.svelte"; import MdEmail from 'svelte-icons/md/MdEmail.svelte';
import MdSecurity from "svelte-icons/md/MdSecurity.svelte"; import MdSecurity from 'svelte-icons/md/MdSecurity.svelte';
import SkillCard from "$lib/SkillCard.svelte"; import SkillCard from '$lib/SkillCard.svelte';
import Svelte from "$lib/icons/Svelte.svelte"; import Svelte from '$lib/icons/Svelte.svelte';
import avatar from '../assets/avatar.svg' import avatar from '../assets/avatar.svg';
</script> </script>
<svelte:head> <svelte:head>
<title>Medzik</title> <title>Medzik</title>
<meta name="description" content="I'm a self-taught programmer with a passion for open-source software. Currently working on LibrePass, a password manager, and using Fedora with KDE. Explore my portfolio for more projects and achievements."> <meta
<meta name="keywords" content="self-taught programmer, open-source software, LibrePass, password manager, Fedora, KDE, portfolio, projects, achievements"> name="description"
content="I'm a self-taught programmer with a passion for open-source software. Currently working on LibrePass, a password manager, and using Fedora with KDE. Explore my portfolio for more projects and achievements."
/>
<meta
name="keywords"
content="self-taught programmer, open-source software, LibrePass, password manager, Fedora, KDE, portfolio, projects, achievements"
/>
</svelte:head> </svelte:head>
<div class="first-gradient h-full mx-auto flex justify-center items-center"> <div class="first-gradient h-full mx-auto flex justify-center items-center">
<div class="max-w-[640px] variant-glass rounded-container-token shadow-xl"> <div class="max-w-[640px] variant-glass rounded-container-token shadow-xl">
<div class="grid grid-cols-3 gap-8 items-center p-6"> <div class="grid grid-cols-3 gap-8 items-center p-6">
<img src={avatar} class="w-full aspect-square rounded-full" alt="Avatar" /> <img src={avatar} class="w-full aspect-square rounded-full" alt="Avatar" />
<div class="col-span-2 space-y-2"> <div class="col-span-2 space-y-2">
<div class="text-on-primary-token text-lg opacity-75">Self-Taught Programmer</div> <div class="text-on-primary-token text-lg opacity-75">Self-Taught Programmer</div>
<div class="text-on-primary-token font-bold text-xl sm:text-3xl">Oskar</div> <div class="text-on-primary-token font-bold text-xl sm:text-3xl">Oskar</div>
<div class="text-on-primary-token text-lg sm:text-2xl">Creating the Future</div> <div class="text-on-primary-token text-lg sm:text-2xl">Creating the Future</div>
</div> </div>
</div> </div>
<ProgressBar rounded="rounded-none" /> <ProgressBar rounded="rounded-none" />
<footer class="grid grid-cols-4 place-items-center p-6 gap-10"> <footer class="grid grid-cols-4 place-items-center p-6 gap-10">
<a class="btn-icon bg-surface-200 p-2" href="https://github.com/M3DZIK"> <a class="btn-icon bg-surface-200 p-2" href="https://github.com/M3DZIK">
<FaGithub /> <FaGithub />
</a> </a>
<a class="btn-icon bg-surface-200 p-2" href="https://gitlab.com/Medzik"> <a class="btn-icon bg-surface-200 p-2" href="https://gitlab.com/Medzik">
<FaGitlab /> <FaGitlab />
</a> </a>
<a class="btn-icon bg-surface-200 p-2" href="mailto:me@medzik.dev"> <a class="btn-icon bg-surface-200 p-2" href="mailto:me@medzik.dev">
<MdEmail /> <MdEmail />
</a> </a>
<a class="btn-icon bg-surface-200 p-2" href="https://liberapay.com/Medzik/"> <a class="btn-icon bg-surface-200 p-2" href="https://liberapay.com/Medzik/">
<FaCreditCard /> <FaCreditCard />
</a> </a>
</footer> </footer>
</div> </div>
</div> </div>
<div class="mx-auto flex justify-center items-center bg-primary-100 p-16"> <div class="mx-auto flex justify-center items-center bg-primary-100 p-16">
<div class="container space-y-10"> <div class="container space-y-10">
<h2 class="h2 text-center card-header">Languages</h2> <h2 class="h2 text-center card-header">Languages</h2>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-4"> <div class="grid grid-cols-1 lg:grid-cols-2 gap-4">
<SkillCard <SkillCard
icon={DiJava} icon={DiJava}
title="Java/Kotlin" title="Java/Kotlin"
description="After several years of writing code, Java and Kotlin seem to work best for me." description="After several years of writing code, Java and Kotlin seem to work best for me."
/> />
<SkillCard <SkillCard
icon={DiGo} icon={DiGo}
title="Go" title="Go"
description="Golang is my second favorite language because it is fast and easy to use." description="Golang is my second favorite language because it is fast and easy to use."
/> />
<SkillCard <SkillCard
icon={DiJavascript} icon={DiJavascript}
title="JavaScript" title="JavaScript"
description="Unfortunately, the use of JavaScript is a must in web development." description="Unfortunately, the use of JavaScript is a must in web development."
/> />
<SkillCard <SkillCard
icon={Svelte} icon={Svelte}
title="Svelte" title="Svelte"
description="However, sometimes when I need to write a website, I use Svelte." description="However, sometimes when I need to write a website, I use Svelte."
/> />
</div> </div>
</div> </div>
</div> </div>
<div class="mx-auto flex justify-center items-center bg-secondary-100 p-16"> <div class="mx-auto flex justify-center items-center bg-secondary-100 p-16">
<div class="container space-y-10"> <div class="container space-y-10">
<h2 class="h2 text-center card-header">My Project</h2> <h2 class="h2 text-center card-header">My Project</h2>
<div class="flex justify-center"> <div class="flex justify-center">
<a href="https://librepass.medzik.dev" target="_blank" class="max-w-xl"> <a href="https://librepass.medzik.dev" target="_blank" class="max-w-xl">
<SkillCard <SkillCard
icon={MdSecurity} icon={MdSecurity}
title="LibrePass" title="LibrePass"
description="Currently, I'm developing LibrePass, a password manager, driven by the belief in online privacy and security. My goal is to create a secure and convenient tool for managing passwords." description="Currently, I'm developing LibrePass, a password manager, driven by the belief in online privacy and security. My goal is to create a secure and convenient tool for managing passwords."
/> />
</a> </a>
</div> </div>
</div> </div>
</div> </div>
<div class="mx-auto flex justify-center items-center bg-tertiary-100 p-16"> <div class="mx-auto flex justify-center items-center bg-tertiary-100 p-16">
<div class="container space-y-10"> <div class="container space-y-10">
<h2 class="h2 text-center card-header">Instances</h2> <h2 class="h2 text-center card-header">Instances</h2>
<div class="flex justify-center"> <div class="flex justify-center">
<a href="https://piped.medzik.dev" target="_blank"> <a href="https://piped.medzik.dev" target="_blank">
<SkillCard <SkillCard
icon={FaYoutube} icon={FaYoutube}
title="Piped" title="Piped"
description="An alternative privacy-friendly YouTube frontend." description="An alternative privacy-friendly YouTube frontend."
/> />
</a> </a>
</div> </div>
</div> </div>
</div> </div>
<footer class="container mx-auto flex justify-center items-center p-6"> <footer class="container mx-auto flex justify-center items-center p-6">
<div class="text-on-primary-token opacity-75"> <div class="text-on-primary-token opacity-75">Medzik ;)</div>
Medzik ;)
</div>
</footer> </footer>
<style lang="postcss"> <style lang="postcss">
.first-gradient { .first-gradient {
background-image: background-image: radial-gradient(at 0% 0%, rgba(var(--color-secondary-500) / 0.33) 0px, transparent 50%),
radial-gradient(at 0% 0%, rgba(var(--color-secondary-500) / 0.33) 0px, transparent 50%), radial-gradient(at 98% 1%, rgba(var(--color-error-500) / 0.33) 0px, transparent 50%);
radial-gradient(at 98% 1%, rgba(var(--color-error-500) / 0.33) 0px, transparent 50%); }
}
</style> </style>

View File

@ -2,18 +2,18 @@ import adapter from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/kit/vite'; import { vitePreprocess } from '@sveltejs/kit/vite';
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
const config = { const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors // Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors // for more information about preprocessors
preprocess: vitePreprocess(), preprocess: vitePreprocess(),
vitePlugin: { vitePlugin: {
inspector: true, inspector: true
}, },
kit: { kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter. // If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters. // See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter() adapter: adapter()
} }
}; };
export default config; export default config;

View File

@ -1,12 +1,15 @@
import { join } from 'path' import { join } from 'path';
import skeleton from '@skeletonlabs/skeleton/tailwind/skeleton.cjs' import skeleton from '@skeletonlabs/skeleton/tailwind/skeleton.cjs';
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
module.exports = { module.exports = {
darkMode: 'class', darkMode: 'class',
content: ['./src/**/*.{html,js,svelte,ts}', join(require.resolve('@skeletonlabs/skeleton'), '../**/*.{html,js,svelte,ts}')], content: [
theme: { './src/**/*.{html,js,svelte,ts}',
extend: {}, join(require.resolve('@skeletonlabs/skeleton'), '../**/*.{html,js,svelte,ts}')
}, ],
plugins: [...skeleton()], theme: {
} extend: {}
},
plugins: [...skeleton()]
};

View File

@ -1,17 +1,17 @@
{ {
"extends": "./.svelte-kit/tsconfig.json", "extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": { "compilerOptions": {
"allowJs": true, "allowJs": true,
"checkJs": true, "checkJs": true,
"esModuleInterop": true, "esModuleInterop": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"resolveJsonModule": true, "resolveJsonModule": true,
"skipLibCheck": true, "skipLibCheck": true,
"sourceMap": true, "sourceMap": true,
"strict": true "strict": true
} }
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
// //
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
// from the referenced tsconfig.json - TypeScript does not merge them in // from the referenced tsconfig.json - TypeScript does not merge them in
} }

View File

@ -2,5 +2,5 @@ import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite'; import { defineConfig } from 'vite';
export default defineConfig({ export default defineConfig({
plugins: [sveltekit()] plugins: [sveltekit()]
}); });