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 = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
root: true,
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:svelte/recommended', 'prettier'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
};

View File

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

View File

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

View File

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

8
src/app.d.ts vendored
View File

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

View File

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

View File

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

View File

@ -5,10 +5,7 @@
</script>
<div class="card variant-glass md:p-10 shadow-lg space-y-4 text-center btn whitespace-normal grid">
<div
class="mx-auto variant-glass rounded-2xl p-2"
style="width: 50px; height: 50px;"
>
<div class="mx-auto variant-glass rounded-2xl p-2" style="width: 50px; height: 50px;">
<svelte:component this={icon} />
</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>
import '@skeletonlabs/skeleton/themes/theme-skeleton.css';
import '@skeletonlabs/skeleton/styles/skeleton.css';
import '../app.postcss';
import '@skeletonlabs/skeleton/themes/theme-skeleton.css';
import '@skeletonlabs/skeleton/styles/skeleton.css';
import '../app.postcss';
</script>
<slot />

View File

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

View File

@ -2,18 +2,18 @@ import adapter from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/kit/vite';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
vitePlugin: {
inspector: true,
},
kit: {
// 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.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
}
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
vitePlugin: {
inspector: true
},
kit: {
// 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.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
}
};
export default config;
export default config;

View File

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

View File

@ -1,17 +1,17 @@
{
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true
}
// 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
// from the referenced tsconfig.json - TypeScript does not merge them in
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true
}
// 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
// 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';
export default defineConfig({
plugins: [sveltekit()]
plugins: [sveltekit()]
});