mHooshdar / work-panel

Work Panel

Home Page:https://vermillion-hummingbird-1b050a.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

work-panel

This template should help get you started developing with Vue 3 in Vite.

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Run Unit Tests with Vitest

npm run test:unit

Lint with ESLint

npm run lint

Project Structure

I used auto import for components, icons, layout and also file system routing for the project.

components

In this folder, we have the components related to our page

composables

In this folder, we have the composables that we use in the project. For adding API composables with vue-query, put them in the composables/api folder.

layouts

In this folder, we have the layout components. For adding a new layout you should add a component in this folder.

mocks

In this folder, we added the mock server. For creating a mock server, we used miragejs

pages

In this folder, we have the pages

types

We have our types and interfaces declaration in this folder, and it's imported into other components

utils

In this folder, we have the utility functions and also the axios instance

Deploy on Netlify

This project is deployed on https://vermillion-hummingbird-1b050a.netlify.app/ with netlify deployment

If you have any further questions or feedback, don't hesitate to contact me

mohammad.hooshdar@gmail.com

About

Work Panel

https://vermillion-hummingbird-1b050a.netlify.app


Languages

Language:Vue 50.4%Language:TypeScript 39.9%Language:JavaScript 7.4%Language:HTML 1.6%Language:CSS 0.4%Language:Shell 0.3%