diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..3897265 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,13 @@ +.DS_Store +node_modules +/build +/.svelte-kit +/package +.env +.env.* +!.env.example + +# Ignore files for PNPM, NPM and YARN +pnpm-lock.yaml +package-lock.json +yarn.lock diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..3ccf435 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,20 @@ +module.exports = { + root: true, + parser: '@typescript-eslint/parser', + extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'], + plugins: ['svelte3', '@typescript-eslint'], + ignorePatterns: ['*.cjs'], + overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }], + settings: { + 'svelte3/typescript': () => require('typescript') + }, + parserOptions: { + sourceType: 'module', + ecmaVersion: 2020 + }, + env: { + browser: true, + es2017: true, + node: true + } +}; diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 957cd15..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": ["next/core-web-vitals"] -} diff --git a/.gitignore b/.gitignore index a5b11df..6635cf5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,48 +1,10 @@ -# dependencies -> -/node_modules -/.pnp -.pnp.js -package-lock.json - -# testing -> -/coverage - -# next.js -> -/.next/ -/out/ - -# production -> -/build - -# misc -> .DS_Store -*.pem - -# debug -> -npm-debug.log* -yarn-debug.log* -yarn-error.log* -.pnpm-debug.log* - -# local env files -> -.env*.local - -# vercel -> -.vercel - -# typescript -> -*.tsbuildinfo - -# PWA files -> -**/public/sw.js -**/public/workbox-*.js -**/public/worker-*.js -**/public/sw.js.map -**/public/workbox-*.js.map -**/public/worker-*.js.map - -# SWC files -> -.swc - -# PNPM files -> -pnpm-lock.yaml +node_modules +/build +/.svelte-kit +/package +.env +.env.* +!.env.example +vite.config.js.timestamp-* +vite.config.ts.timestamp-* diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..b6f27f1 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/.nvmrc b/.nvmrc deleted file mode 100644 index 0a2cd98..0000000 --- a/.nvmrc +++ /dev/null @@ -1 +0,0 @@ -v16.15.1 \ No newline at end of file diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..3897265 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,13 @@ +.DS_Store +node_modules +/build +/.svelte-kit +/package +.env +.env.* +!.env.example + +# Ignore files for PNPM, NPM and YARN +pnpm-lock.yaml +package-lock.json +yarn.lock diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..a77fdde --- /dev/null +++ b/.prettierrc @@ -0,0 +1,9 @@ +{ + "useTabs": true, + "singleQuote": true, + "trailingComma": "none", + "printWidth": 100, + "plugins": ["prettier-plugin-svelte"], + "pluginSearchDirs": ["."], + "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] +} diff --git a/README.md b/README.md index cb6c3d0..5c91169 100644 --- a/README.md +++ b/README.md @@ -1,108 +1,38 @@ -
- - - -
+# create-svelte -## 📦 Packages: +Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte). -- ⚡️ [Nextjs](https://nextjs.org/) - The React Framework for Production. -- ⚒️ [React 18](https://reactjs.org/) - A JavaScript library for building user interfaces. -- 💙 [Typescript](https://www.typescriptlang.org/) - A superset of JavaScript. -- ✅ [Vitest](https://vitest.dev/) - A blazing fast unit test framework. -- 💅 [Chakra UI](https://chakra-ui.com/) - Create accessible React apps with speed. -- 💥 [Framer Motion](https://www.framer.com/motion/) - Production-ready motion library. -- 💖 [Phosphor Icons](https://phosphoricons.com/) - A flexible icon family for everyone. -- ⬇️ [Next-PWA](https://github.com/shadowwalker/next-pwa) - Zero config PWA plugin for Next.js, with workbox. +## Creating a project -## 🚀 Getting started: - -You need: - -- [Node.js 16+ (recommend: 16.15.1 LTS)](https://nodejs.org/en/) -- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) - -1. Clone the repository: +If you're seeing this, you've probably already done this step. Congrats! ```bash -git@github.com:pheralb/svgl.git +# create a new project in the current directory +npm create svelte@latest + +# create a new project in my-app +npm create svelte@latest my-app ``` -2. Install dependencies: +## Developing -```bash -npm install -# or -yarn install -``` - -3. Run: +Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: ```bash npm run dev -# or -yarn dev + +# or start the server and open the app in a new browser tab +npm run dev -- --open ``` -4. Test & Build: +## Building + +To create a production version of your app: ```bash -npm run ready -# or -yarn ready +npm run build ``` -Open [localhost:3000](localhost:3000) with your browser to see the result. +You can preview the production build with `npm run preview`. -## 🤔 Can I add my logo? - -Yes! Here is a guide for you 🥳: - -1. [Fork the repository](https://github.com/pheralb/svgl/fork). - -2. Clone the forked repository: - -```bash -git@github.com:YOUR_USERNAME/svgl.git -``` - -3. Add the **.svg** logo here: [`/public/library`](https://github.com/pheralb/svgl/tree/main/public/library). - -4. Add your logo information here following the structure: [`/data/svgs.json`](https://github.com/pheralb/svgl/blob/main/data/svgs.json). - -```json -{ - "id": 1, - "slug": "/library/your_logo.svg", - "title": "Logo Title", - "category": "Logo Category", - "url": "Your Website / app url" -} -``` - -5. Create a commit and push: - -```bash -git add . -git commit -m "🥰 Added my logo" -git push origin main -``` - -6. Create a pull request with your changes and 🥳 ready. - -## 🚂 Api endpoints: - -```bash -- /api/all: returns all the logos. -- /api/search?id=2: returns the logo with id 2. -- /api/search?q=logo: returns the logo with query. -``` - -## ⚒️ Shortcuts: - -- ⭐ SVG Library: [/public/library/](https://github.com/pheralb/svgl/tree/main/public/library). -- ✍️ SVG JSON logos: [/data/](https://github.com/pheralb/svgl/tree/main/data). - -## 🔑 License: - -- [MIT](https://github.com/pheralb/svgl/blob/main/LICENSE). +> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment. diff --git a/next-env.d.ts b/next-env.d.ts deleted file mode 100644 index 4f11a03..0000000 --- a/next-env.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -///Visit kit.svelte.dev to read the documentation
diff --git a/src/services/fetcher.ts b/src/services/fetcher.ts deleted file mode 100644 index 50b2ad0..0000000 --- a/src/services/fetcher.ts +++ /dev/null @@ -1,10 +0,0 @@ -export const fetcher = async (url: string) => { - const res = await fetch(url); - - if (!res.ok) { - const error = new Error("An error occurred while fetching the data."); - throw error; - } - - return res.json(); -}; diff --git a/src/services/index.ts b/src/services/index.ts deleted file mode 100644 index 54128a6..0000000 --- a/src/services/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export const githubVersionPackage = 'https://api.github.com/repos/pheralb/svgl/releases/latest'; -export const getAllSvgs = "/api/all"; -export const getCategorySvgs = "/api/categories"; -export const getSvgById = "/api/search?id="; -export const getSvgByQuery = "/api/search?q="; -export const getSvgByCategory = "/api/search?c="; \ No newline at end of file diff --git a/src/styles/globals.css b/src/styles/globals.css deleted file mode 100644 index 46c5bd9..0000000 --- a/src/styles/globals.css +++ /dev/null @@ -1,16 +0,0 @@ -/* Fonts -> */ -@font-face { - font-family: "Inter-Regular"; - src: url("/fonts/Inter-Regular.woff2") format("woff2"); - font-style: normal; - font-weight: 400; - font-display: swap; -} - -@font-face { - font-family: "Inter-Semibold"; - src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); - font-style: normal; - font-weight: 400; - font-display: swap; -} diff --git a/src/theme/components/button.ts b/src/theme/components/button.ts deleted file mode 100644 index 0e7b295..0000000 --- a/src/theme/components/button.ts +++ /dev/null @@ -1,44 +0,0 @@ -const baseStyle = { - borderRadius: "md", - fontWeight: "light", -}; - -function variantPrimary() { - const disabled = { - bg: "purple.900", - color: "white", - }; - - const loading = { - bg: "purple.800", - color: "white", - }; - - return { - bg: "brand.purple", - color: "white", - _hover: { - bg: "purple.900", - _disabled: { - ...disabled, - _loading: loading, - }, - }, - _active: { - bg: "purple.700", - }, - _disabled: { - ...disabled, - _loading: loading, - }, - }; -} - -const variants = { - primary: variantPrimary, -}; - -export default { - baseStyle, - variants, -}; diff --git a/src/theme/components/index.ts b/src/theme/components/index.ts deleted file mode 100644 index d7eabfa..0000000 --- a/src/theme/components/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import Button from "./button"; - -export default { - Button, -}; diff --git a/src/theme/index.ts b/src/theme/index.ts deleted file mode 100644 index 6ec053a..0000000 --- a/src/theme/index.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { ChakraProps, extendTheme } from "@chakra-ui/react"; -import { mode } from "@chakra-ui/theme-tools"; -import components from "./components"; - -const theme = extendTheme( - { - components, - }, - { - config: { - initialColorMode: "light", - useSystemColorMode: false, - }, - colors: { - bg: { - light: "#F2F2F2", - dark: "#1F2023", - }, - full: { - light: "#ffffff", - dark: "#000000", - }, - brand: { - purple: "#4343E5", - }, - }, - fonts: { - body: "Inter-Regular, sans-serif", - heading: "Inter-Semibold, sans-serif", - }, - styles: { - global: (props: ChakraProps) => ({ - "html, body": { - height: "100%", - maxHeight: "100vh", - bg: mode("bg.light", "bg.dark")(props), - fontSize: "14px", - }, - }), - }, - } -); - -export default theme; diff --git a/src/theme/toast.ts b/src/theme/toast.ts deleted file mode 100644 index 6bb3048..0000000 --- a/src/theme/toast.ts +++ /dev/null @@ -1,8 +0,0 @@ -export const ToastTheme = { - icon: "🔔", - style: { - borderRadius: "10px", - background: "#1F2023", - color: "#fff", - }, -}; diff --git a/public/fonts/Inter-Regular.woff2 b/static/fonts/Inter-Regular.woff2 similarity index 100% rename from public/fonts/Inter-Regular.woff2 rename to static/fonts/Inter-Regular.woff2 diff --git a/public/fonts/Inter-SemiBold.woff2 b/static/fonts/Inter-SemiBold.woff2 similarity index 100% rename from public/fonts/Inter-SemiBold.woff2 rename to static/fonts/Inter-SemiBold.woff2 diff --git a/public/icons/apple-touch-icon-114x114.png b/static/icons/apple-touch-icon-114x114.png similarity index 100% rename from public/icons/apple-touch-icon-114x114.png rename to static/icons/apple-touch-icon-114x114.png diff --git a/public/icons/apple-touch-icon-152x152.png b/static/icons/apple-touch-icon-152x152.png similarity index 100% rename from public/icons/apple-touch-icon-152x152.png rename to static/icons/apple-touch-icon-152x152.png diff --git a/public/icons/apple-touch-icon-180x180.png b/static/icons/apple-touch-icon-180x180.png similarity index 100% rename from public/icons/apple-touch-icon-180x180.png rename to static/icons/apple-touch-icon-180x180.png diff --git a/public/icons/icon-192x192.png b/static/icons/icon-192x192.png similarity index 100% rename from public/icons/icon-192x192.png rename to static/icons/icon-192x192.png diff --git a/public/icons/icon-256x256.png b/static/icons/icon-256x256.png similarity index 100% rename from public/icons/icon-256x256.png rename to static/icons/icon-256x256.png diff --git a/public/icons/icon-384x384.png b/static/icons/icon-384x384.png similarity index 100% rename from public/icons/icon-384x384.png rename to static/icons/icon-384x384.png diff --git a/public/icons/icon-512x512.png b/static/icons/icon-512x512.png similarity index 100% rename from public/icons/icon-512x512.png rename to static/icons/icon-512x512.png diff --git a/public/icons/icon.ico b/static/icons/icon.ico similarity index 100% rename from public/icons/icon.ico rename to static/icons/icon.ico diff --git a/public/icons/logo.png b/static/icons/logo.png similarity index 100% rename from public/icons/logo.png rename to static/icons/logo.png diff --git a/public/icons/maskable_icon.png b/static/icons/maskable_icon.png similarity index 100% rename from public/icons/maskable_icon.png rename to static/icons/maskable_icon.png diff --git a/public/images/banner.png b/static/images/banner.png similarity index 100% rename from public/images/banner.png rename to static/images/banner.png diff --git a/public/images/banner_corner.png b/static/images/banner_corner.png similarity index 100% rename from public/images/banner_corner.png rename to static/images/banner_corner.png diff --git a/public/images/svgl.svg b/static/images/svgl.svg similarity index 100% rename from public/images/svgl.svg rename to static/images/svgl.svg diff --git a/public/library/algolia.svg b/static/library/algolia.svg similarity index 100% rename from public/library/algolia.svg rename to static/library/algolia.svg diff --git a/public/library/android.svg b/static/library/android.svg similarity index 100% rename from public/library/android.svg rename to static/library/android.svg diff --git a/public/library/angular.svg b/static/library/angular.svg similarity index 100% rename from public/library/angular.svg rename to static/library/angular.svg diff --git a/public/library/apple.svg b/static/library/apple.svg similarity index 100% rename from public/library/apple.svg rename to static/library/apple.svg diff --git a/public/library/arc.svg b/static/library/arc.svg similarity index 100% rename from public/library/arc.svg rename to static/library/arc.svg diff --git a/public/library/astro.svg b/static/library/astro.svg similarity index 100% rename from public/library/astro.svg rename to static/library/astro.svg diff --git a/public/library/atlassian.svg b/static/library/atlassian.svg similarity index 100% rename from public/library/atlassian.svg rename to static/library/atlassian.svg diff --git a/public/library/atom.svg b/static/library/atom.svg similarity index 100% rename from public/library/atom.svg rename to static/library/atom.svg diff --git a/public/library/authy.svg b/static/library/authy.svg similarity index 100% rename from public/library/authy.svg rename to static/library/authy.svg diff --git a/public/library/aws.svg b/static/library/aws.svg similarity index 100% rename from public/library/aws.svg rename to static/library/aws.svg diff --git a/public/library/azure.svg b/static/library/azure.svg similarity index 100% rename from public/library/azure.svg rename to static/library/azure.svg diff --git a/public/library/babel.svg b/static/library/babel.svg similarity index 100% rename from public/library/babel.svg rename to static/library/babel.svg diff --git a/public/library/blitzjs.svg b/static/library/blitzjs.svg similarity index 100% rename from public/library/blitzjs.svg rename to static/library/blitzjs.svg diff --git a/public/library/bootstrap.svg b/static/library/bootstrap.svg similarity index 100% rename from public/library/bootstrap.svg rename to static/library/bootstrap.svg diff --git a/public/library/brave.svg b/static/library/brave.svg similarity index 100% rename from public/library/brave.svg rename to static/library/brave.svg diff --git a/public/library/bun.svg b/static/library/bun.svg similarity index 100% rename from public/library/bun.svg rename to static/library/bun.svg diff --git a/public/library/chakra-ui.svg b/static/library/chakra-ui.svg similarity index 100% rename from public/library/chakra-ui.svg rename to static/library/chakra-ui.svg diff --git a/public/library/copilot.svg b/static/library/copilot.svg similarity index 100% rename from public/library/copilot.svg rename to static/library/copilot.svg diff --git a/public/library/coursera.svg b/static/library/coursera.svg similarity index 100% rename from public/library/coursera.svg rename to static/library/coursera.svg diff --git a/public/library/css.svg b/static/library/css.svg similarity index 100% rename from public/library/css.svg rename to static/library/css.svg diff --git a/public/library/deno.svg b/static/library/deno.svg similarity index 100% rename from public/library/deno.svg rename to static/library/deno.svg diff --git a/public/library/digitalocean.svg b/static/library/digitalocean.svg similarity index 100% rename from public/library/digitalocean.svg rename to static/library/digitalocean.svg diff --git a/public/library/discord.svg b/static/library/discord.svg similarity index 100% rename from public/library/discord.svg rename to static/library/discord.svg diff --git a/public/library/discourse.svg b/static/library/discourse.svg similarity index 100% rename from public/library/discourse.svg rename to static/library/discourse.svg diff --git a/public/library/disneyplus.svg b/static/library/disneyplus.svg similarity index 100% rename from public/library/disneyplus.svg rename to static/library/disneyplus.svg diff --git a/public/library/docker.svg b/static/library/docker.svg similarity index 100% rename from public/library/docker.svg rename to static/library/docker.svg diff --git a/public/library/docusaurus.svg b/static/library/docusaurus.svg similarity index 100% rename from public/library/docusaurus.svg rename to static/library/docusaurus.svg diff --git a/public/library/eclipse.svg b/static/library/eclipse.svg similarity index 100% rename from public/library/eclipse.svg rename to static/library/eclipse.svg diff --git a/public/library/ember.svg b/static/library/ember.svg similarity index 100% rename from public/library/ember.svg rename to static/library/ember.svg diff --git a/public/library/esbuild.svg b/static/library/esbuild.svg similarity index 100% rename from public/library/esbuild.svg rename to static/library/esbuild.svg diff --git a/public/library/expo.svg b/static/library/expo.svg similarity index 100% rename from public/library/expo.svg rename to static/library/expo.svg diff --git a/public/library/expressjs.svg b/static/library/expressjs.svg similarity index 100% rename from public/library/expressjs.svg rename to static/library/expressjs.svg diff --git a/public/library/facebook.svg b/static/library/facebook.svg similarity index 100% rename from public/library/facebook.svg rename to static/library/facebook.svg diff --git a/public/library/fastify.svg b/static/library/fastify.svg similarity index 100% rename from public/library/fastify.svg rename to static/library/fastify.svg diff --git a/public/library/figma.svg b/static/library/figma.svg similarity index 100% rename from public/library/figma.svg rename to static/library/figma.svg diff --git a/public/library/firebase.svg b/static/library/firebase.svg similarity index 100% rename from public/library/firebase.svg rename to static/library/firebase.svg diff --git a/public/library/firefox.svg b/static/library/firefox.svg similarity index 100% rename from public/library/firefox.svg rename to static/library/firefox.svg diff --git a/public/library/flutter.svg b/static/library/flutter.svg similarity index 100% rename from public/library/flutter.svg rename to static/library/flutter.svg diff --git a/public/library/fly.svg b/static/library/fly.svg similarity index 100% rename from public/library/fly.svg rename to static/library/fly.svg diff --git a/public/library/framer.svg b/static/library/framer.svg similarity index 100% rename from public/library/framer.svg rename to static/library/framer.svg diff --git a/public/library/fresh.svg b/static/library/fresh.svg similarity index 100% rename from public/library/fresh.svg rename to static/library/fresh.svg diff --git a/public/library/gatsby.svg b/static/library/gatsby.svg similarity index 100% rename from public/library/gatsby.svg rename to static/library/gatsby.svg diff --git a/public/library/gdsc.svg b/static/library/gdsc.svg similarity index 100% rename from public/library/gdsc.svg rename to static/library/gdsc.svg diff --git a/public/library/git.svg b/static/library/git.svg similarity index 100% rename from public/library/git.svg rename to static/library/git.svg diff --git a/public/library/github.svg b/static/library/github.svg similarity index 100% rename from public/library/github.svg rename to static/library/github.svg diff --git a/public/library/gitlab.svg b/static/library/gitlab.svg similarity index 100% rename from public/library/gitlab.svg rename to static/library/gitlab.svg diff --git a/public/library/godaddy.svg b/static/library/godaddy.svg similarity index 100% rename from public/library/godaddy.svg rename to static/library/godaddy.svg diff --git a/public/library/golang.svg b/static/library/golang.svg similarity index 100% rename from public/library/golang.svg rename to static/library/golang.svg diff --git a/public/library/google.svg b/static/library/google.svg similarity index 100% rename from public/library/google.svg rename to static/library/google.svg diff --git a/public/library/graphql.svg b/static/library/graphql.svg similarity index 100% rename from public/library/graphql.svg rename to static/library/graphql.svg diff --git a/public/library/headlessui.svg b/static/library/headlessui.svg similarity index 100% rename from public/library/headlessui.svg rename to static/library/headlessui.svg diff --git a/public/library/heroku.svg b/static/library/heroku.svg similarity index 100% rename from public/library/heroku.svg rename to static/library/heroku.svg diff --git a/public/library/homebrew.svg b/static/library/homebrew.svg similarity index 100% rename from public/library/homebrew.svg rename to static/library/homebrew.svg diff --git a/public/library/hostgator.svg b/static/library/hostgator.svg similarity index 100% rename from public/library/hostgator.svg rename to static/library/hostgator.svg diff --git a/public/library/html5.svg b/static/library/html5.svg similarity index 100% rename from public/library/html5.svg rename to static/library/html5.svg diff --git a/public/library/intellijidea.svg b/static/library/intellijidea.svg similarity index 100% rename from public/library/intellijidea.svg rename to static/library/intellijidea.svg diff --git a/public/library/jasmine.svg b/static/library/jasmine.svg similarity index 100% rename from public/library/jasmine.svg rename to static/library/jasmine.svg diff --git a/public/library/java.svg b/static/library/java.svg similarity index 100% rename from public/library/java.svg rename to static/library/java.svg diff --git a/public/library/javascript.svg b/static/library/javascript.svg similarity index 100% rename from public/library/javascript.svg rename to static/library/javascript.svg diff --git a/public/library/jest.svg b/static/library/jest.svg similarity index 100% rename from public/library/jest.svg rename to static/library/jest.svg diff --git a/public/library/jetbrains.svg b/static/library/jetbrains.svg similarity index 100% rename from public/library/jetbrains.svg rename to static/library/jetbrains.svg diff --git a/public/library/jetbrainsSolid.svg b/static/library/jetbrainsSolid.svg similarity index 100% rename from public/library/jetbrainsSolid.svg rename to static/library/jetbrainsSolid.svg diff --git a/public/library/jquery.svg b/static/library/jquery.svg similarity index 100% rename from public/library/jquery.svg rename to static/library/jquery.svg diff --git a/public/library/jwt.svg b/static/library/jwt.svg similarity index 100% rename from public/library/jwt.svg rename to static/library/jwt.svg diff --git a/public/library/kotlin.svg b/static/library/kotlin.svg similarity index 100% rename from public/library/kotlin.svg rename to static/library/kotlin.svg diff --git a/public/library/krakenjs.svg b/static/library/krakenjs.svg similarity index 100% rename from public/library/krakenjs.svg rename to static/library/krakenjs.svg diff --git a/public/library/kubernetes.svg b/static/library/kubernetes.svg similarity index 100% rename from public/library/kubernetes.svg rename to static/library/kubernetes.svg diff --git a/public/library/laravel.svg b/static/library/laravel.svg similarity index 100% rename from public/library/laravel.svg rename to static/library/laravel.svg diff --git a/public/library/learnthis.svg b/static/library/learnthis.svg similarity index 100% rename from public/library/learnthis.svg rename to static/library/learnthis.svg diff --git a/public/library/linkedin.svg b/static/library/linkedin.svg similarity index 100% rename from public/library/linkedin.svg rename to static/library/linkedin.svg diff --git a/public/library/lit.svg b/static/library/lit.svg similarity index 100% rename from public/library/lit.svg rename to static/library/lit.svg diff --git a/public/library/mariadb.svg b/static/library/mariadb.svg similarity index 100% rename from public/library/mariadb.svg rename to static/library/mariadb.svg diff --git a/public/library/materialui.svg b/static/library/materialui.svg similarity index 100% rename from public/library/materialui.svg rename to static/library/materialui.svg diff --git a/public/library/midudev.svg b/static/library/midudev.svg similarity index 100% rename from public/library/midudev.svg rename to static/library/midudev.svg diff --git a/public/library/mongodb.svg b/static/library/mongodb.svg similarity index 100% rename from public/library/mongodb.svg rename to static/library/mongodb.svg diff --git a/public/library/moon.svg b/static/library/moon.svg similarity index 100% rename from public/library/moon.svg rename to static/library/moon.svg diff --git a/public/library/mysql.svg b/static/library/mysql.svg similarity index 100% rename from public/library/mysql.svg rename to static/library/mysql.svg diff --git a/public/library/nestjs.svg b/static/library/nestjs.svg similarity index 100% rename from public/library/nestjs.svg rename to static/library/nestjs.svg diff --git a/public/library/netflix.svg b/static/library/netflix.svg similarity index 100% rename from public/library/netflix.svg rename to static/library/netflix.svg diff --git a/public/library/netlify.svg b/static/library/netlify.svg similarity index 100% rename from public/library/netlify.svg rename to static/library/netlify.svg diff --git a/public/library/nextjs.svg b/static/library/nextjs.svg similarity index 100% rename from public/library/nextjs.svg rename to static/library/nextjs.svg diff --git a/public/library/nodejs.svg b/static/library/nodejs.svg similarity index 100% rename from public/library/nodejs.svg rename to static/library/nodejs.svg diff --git a/public/library/notion.svg b/static/library/notion.svg similarity index 100% rename from public/library/notion.svg rename to static/library/notion.svg diff --git a/public/library/npm.svg b/static/library/npm.svg similarity index 100% rename from public/library/npm.svg rename to static/library/npm.svg diff --git a/public/library/nuxt.svg b/static/library/nuxt.svg similarity index 100% rename from public/library/nuxt.svg rename to static/library/nuxt.svg diff --git a/public/library/openbootcamp.svg b/static/library/openbootcamp.svg similarity index 100% rename from public/library/openbootcamp.svg rename to static/library/openbootcamp.svg diff --git a/public/library/parcel.svg b/static/library/parcel.svg similarity index 100% rename from public/library/parcel.svg rename to static/library/parcel.svg diff --git a/public/library/payload.svg b/static/library/payload.svg similarity index 100% rename from public/library/payload.svg rename to static/library/payload.svg diff --git a/public/library/planetscale.svg b/static/library/planetscale.svg similarity index 100% rename from public/library/planetscale.svg rename to static/library/planetscale.svg diff --git a/public/library/platzi.svg b/static/library/platzi.svg similarity index 100% rename from public/library/platzi.svg rename to static/library/platzi.svg diff --git a/public/library/playwright.svg b/static/library/playwright.svg similarity index 100% rename from public/library/playwright.svg rename to static/library/playwright.svg diff --git a/public/library/pm2.svg b/static/library/pm2.svg similarity index 100% rename from public/library/pm2.svg rename to static/library/pm2.svg diff --git a/public/library/postgresql.svg b/static/library/postgresql.svg similarity index 100% rename from public/library/postgresql.svg rename to static/library/postgresql.svg diff --git a/public/library/postman.svg b/static/library/postman.svg similarity index 100% rename from public/library/postman.svg rename to static/library/postman.svg diff --git a/public/library/preact.svg b/static/library/preact.svg similarity index 100% rename from public/library/preact.svg rename to static/library/preact.svg diff --git a/public/library/prisma.svg b/static/library/prisma.svg similarity index 100% rename from public/library/prisma.svg rename to static/library/prisma.svg diff --git a/public/library/python.svg b/static/library/python.svg similarity index 100% rename from public/library/python.svg rename to static/library/python.svg diff --git a/public/library/qwik.svg b/static/library/qwik.svg similarity index 100% rename from public/library/qwik.svg rename to static/library/qwik.svg diff --git a/public/library/railway.svg b/static/library/railway.svg similarity index 100% rename from public/library/railway.svg rename to static/library/railway.svg diff --git a/public/library/rapidapi.svg b/static/library/rapidapi.svg similarity index 100% rename from public/library/rapidapi.svg rename to static/library/rapidapi.svg diff --git a/public/library/react.svg b/static/library/react.svg similarity index 100% rename from public/library/react.svg rename to static/library/react.svg diff --git a/public/library/reactquery.svg b/static/library/reactquery.svg similarity index 100% rename from public/library/reactquery.svg rename to static/library/reactquery.svg diff --git a/public/library/reactrouter.svg b/static/library/reactrouter.svg similarity index 100% rename from public/library/reactrouter.svg rename to static/library/reactrouter.svg diff --git a/public/library/redis.svg b/static/library/redis.svg similarity index 100% rename from public/library/redis.svg rename to static/library/redis.svg diff --git a/public/library/redwoodjs.svg b/static/library/redwoodjs.svg similarity index 100% rename from public/library/redwoodjs.svg rename to static/library/redwoodjs.svg diff --git a/public/library/remix.svg b/static/library/remix.svg similarity index 100% rename from public/library/remix.svg rename to static/library/remix.svg diff --git a/public/library/rider.svg b/static/library/rider.svg similarity index 100% rename from public/library/rider.svg rename to static/library/rider.svg diff --git a/public/library/ruby.svg b/static/library/ruby.svg similarity index 100% rename from public/library/ruby.svg rename to static/library/ruby.svg diff --git a/public/library/scala.svg b/static/library/scala.svg similarity index 100% rename from public/library/scala.svg rename to static/library/scala.svg diff --git a/public/library/search-by-algolia.svg b/static/library/search-by-algolia.svg similarity index 100% rename from public/library/search-by-algolia.svg rename to static/library/search-by-algolia.svg diff --git a/public/library/sequelize.svg b/static/library/sequelize.svg similarity index 100% rename from public/library/sequelize.svg rename to static/library/sequelize.svg diff --git a/public/library/solidjs.svg b/static/library/solidjs.svg similarity index 100% rename from public/library/solidjs.svg rename to static/library/solidjs.svg diff --git a/public/library/speackme.svg b/static/library/speackme.svg similarity index 100% rename from public/library/speackme.svg rename to static/library/speackme.svg diff --git a/public/library/spinnaker.svg b/static/library/spinnaker.svg similarity index 100% rename from public/library/spinnaker.svg rename to static/library/spinnaker.svg diff --git a/public/library/spotify.svg b/static/library/spotify.svg similarity index 100% rename from public/library/spotify.svg rename to static/library/spotify.svg diff --git a/public/library/sqlite.svg b/static/library/sqlite.svg similarity index 100% rename from public/library/sqlite.svg rename to static/library/sqlite.svg diff --git a/public/library/storybook.svg b/static/library/storybook.svg similarity index 100% rename from public/library/storybook.svg rename to static/library/storybook.svg diff --git a/public/library/strapi.svg b/static/library/strapi.svg similarity index 100% rename from public/library/strapi.svg rename to static/library/strapi.svg diff --git a/public/library/styledcomponents.svg b/static/library/styledcomponents.svg similarity index 100% rename from public/library/styledcomponents.svg rename to static/library/styledcomponents.svg diff --git a/public/library/sublimetext.svg b/static/library/sublimetext.svg similarity index 100% rename from public/library/sublimetext.svg rename to static/library/sublimetext.svg diff --git a/public/library/supabase.svg b/static/library/supabase.svg similarity index 100% rename from public/library/supabase.svg rename to static/library/supabase.svg diff --git a/public/library/svelte.svg b/static/library/svelte.svg similarity index 100% rename from public/library/svelte.svg rename to static/library/svelte.svg diff --git a/public/library/swagger.svg b/static/library/swagger.svg similarity index 100% rename from public/library/swagger.svg rename to static/library/swagger.svg diff --git a/public/library/swift.svg b/static/library/swift.svg similarity index 100% rename from public/library/swift.svg rename to static/library/swift.svg diff --git a/public/library/tailwindcss.svg b/static/library/tailwindcss.svg similarity index 100% rename from public/library/tailwindcss.svg rename to static/library/tailwindcss.svg diff --git a/public/library/telegram.svg b/static/library/telegram.svg similarity index 100% rename from public/library/telegram.svg rename to static/library/telegram.svg diff --git a/public/library/testinglibrary.svg b/static/library/testinglibrary.svg similarity index 100% rename from public/library/testinglibrary.svg rename to static/library/testinglibrary.svg diff --git a/public/library/tiktok.svg b/static/library/tiktok.svg similarity index 100% rename from public/library/tiktok.svg rename to static/library/tiktok.svg diff --git a/public/library/turborepo.svg b/static/library/turborepo.svg similarity index 100% rename from public/library/turborepo.svg rename to static/library/turborepo.svg diff --git a/public/library/twilio.svg b/static/library/twilio.svg similarity index 100% rename from public/library/twilio.svg rename to static/library/twilio.svg diff --git a/public/library/twitch.svg b/static/library/twitch.svg similarity index 100% rename from public/library/twitch.svg rename to static/library/twitch.svg diff --git a/public/library/twitter.svg b/static/library/twitter.svg similarity index 100% rename from public/library/twitter.svg rename to static/library/twitter.svg diff --git a/public/library/typeorm.svg b/static/library/typeorm.svg similarity index 100% rename from public/library/typeorm.svg rename to static/library/typeorm.svg diff --git a/public/library/typescript.svg b/static/library/typescript.svg similarity index 100% rename from public/library/typescript.svg rename to static/library/typescript.svg diff --git a/public/library/udacity.svg b/static/library/udacity.svg similarity index 100% rename from public/library/udacity.svg rename to static/library/udacity.svg diff --git a/public/library/udemy.svg b/static/library/udemy.svg similarity index 100% rename from public/library/udemy.svg rename to static/library/udemy.svg diff --git a/public/library/unity.svg b/static/library/unity.svg similarity index 100% rename from public/library/unity.svg rename to static/library/unity.svg diff --git a/public/library/vercel.svg b/static/library/vercel.svg similarity index 100% rename from public/library/vercel.svg rename to static/library/vercel.svg diff --git a/public/library/vim.svg b/static/library/vim.svg similarity index 100% rename from public/library/vim.svg rename to static/library/vim.svg diff --git a/public/library/vitejs.svg b/static/library/vitejs.svg similarity index 100% rename from public/library/vitejs.svg rename to static/library/vitejs.svg diff --git a/public/library/vitest.svg b/static/library/vitest.svg similarity index 100% rename from public/library/vitest.svg rename to static/library/vitest.svg diff --git a/public/library/vscode.svg b/static/library/vscode.svg similarity index 100% rename from public/library/vscode.svg rename to static/library/vscode.svg diff --git a/public/library/vue.svg b/static/library/vue.svg similarity index 100% rename from public/library/vue.svg rename to static/library/vue.svg diff --git a/public/library/whatsapp.svg b/static/library/whatsapp.svg similarity index 100% rename from public/library/whatsapp.svg rename to static/library/whatsapp.svg diff --git a/public/library/windows.svg b/static/library/windows.svg similarity index 100% rename from public/library/windows.svg rename to static/library/windows.svg diff --git a/public/library/wmr.svg b/static/library/wmr.svg similarity index 100% rename from public/library/wmr.svg rename to static/library/wmr.svg diff --git a/public/library/youtube.svg b/static/library/youtube.svg similarity index 100% rename from public/library/youtube.svg rename to static/library/youtube.svg diff --git a/public/manifest.json b/static/manifest.json similarity index 100% rename from public/manifest.json rename to static/manifest.json diff --git a/svelte.config.js b/svelte.config.js new file mode 100644 index 0000000..1cf26a0 --- /dev/null +++ b/svelte.config.js @@ -0,0 +1,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(), + + 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; diff --git a/tsconfig.json b/tsconfig.json index e706a8c..6ae0c8c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,24 +1,17 @@ { - "compilerOptions": { - "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "node", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "baseUrl": ".", - "paths": { - "@/*": ["./src/*"] - }, - "incremental": true - }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules"] + "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 } diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..37b6a84 --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,9 @@ +import { sveltekit } from '@sveltejs/kit/vite'; +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ + plugins: [sveltekit()], + test: { + include: ['src/**/*.{test,spec}.{js,ts}'] + } +}); diff --git a/vitest.config.ts b/vitest.config.ts deleted file mode 100644 index 8f06e8c..0000000 --- a/vitest.config.ts +++ /dev/null @@ -1,15 +0,0 @@ -import * as path from "path"; -import { defineConfig } from "vitest/config"; -import react from "@vitejs/plugin-react"; - -export default defineConfig({ - plugins: [react()], - test: { - environment: "jsdom", - }, - resolve: { - alias: { - "@": path.resolve(__dirname, "./src"), - }, - }, -});