Тестовое задание для компаний.
Это приложение, в котором из api jsonplaceholder получают пользователей и их посты.
При нажатии на пользователя показываются его посты.
Также можно создавать новых пользователей и новые посты.
Все данные сохраняются в localStorage, так что при перезагрузке сохраняются новые пользователи и посты и изменения в уже существующих пользователях и постах.
This template should help get you started developing with Vue 3 in Vite.
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
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:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensionsfrom VSCode's command palette - Find
TypeScript and JavaScript Language Features, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Windowfrom the command palette.
See Vite Configuration Reference.
npm installnpm run devnpm run buildLint with ESLint
npm run lintgit subtree push --prefix dist origin gh-pages