Skip to content

Commit

Permalink
User service refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
v-excelsior committed Jul 24, 2020
2 parents 5766035 + 4658f11 commit 7cf5f36
Show file tree
Hide file tree
Showing 109 changed files with 20,531 additions and 21,933 deletions.
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"tabWidth": 4,
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
"trailingComma": "es5",
"bracketSpacing": true
}
44 changes: 42 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,42 @@
# Vue3

# To Do List

This is my first project with using Vue.js and vue-ecosystem.
You also can see list of all technology at [Home page](vakyla98.github.io/TodoVue/dist)

## Local install and other command
Install all dependencies
```sh
$ npm i
```
Run local-host and hot reloading
```sh
$ npm run serve
```
Build prod with minifying code
```sh
$ npm run dev
```
Run test
```sh
$ npm run test
```
Creating svg-sprite from images in `.\assest`
```sh
$ gulp
```

### Some screens with explanations

1. Modal window change ToDo text. Used basic data-flow with `data` and `props`
![Changing data](https://github.com/vakyla98/TodoVue/blob/gh-pages/src/assets/readme/Edit.png)

2. Here i create a svg-sprite using Gulp \
![Sprites](https://github.com/vakyla98/TodoVue/blob/gh-pages/src/assets/readme/Sprite.png)

3. Items holds at two list with computed properties. We can create,delete, or edit item.
![Tasks](https://github.com/vakyla98/TodoVue/blob/gh-pages/src/assets/readme/Tasks.png)

4. At Users page i used placeholder REST API with user list. When they loading, we see beautiful spinner, too we have error handling on timeout and error code like a 404. \
![User loading](https://github.com/vakyla98/TodoVue/blob/gh-pages/src/assets/readme/User_loading.png) \
![User loaded](https://github.com/vakyla98/TodoVue/blob/gh-pages/src/assets/readme/User_loaded.png) \
![Error handling](https://github.com/vakyla98/TodoVue/blob/gh-pages/src/assets/readme/User_error.png)
42 changes: 42 additions & 0 deletions README_BACKUP_704.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# To Do List

This is my first project with using Vue.js and vue-ecosystem.
You also can see list of all technology at [Home page](vakyla98.github.io/TodoVue/dist)

## Local install and other command
Install all dependencies
```sh
$ npm i
```
Run local-host and hot reloading
```sh
$ npm run serve
```
Build prod with minifying code
```sh
$ npm run dev
```
Run test
```sh
$ npm run test
```
Creating svg-sprite from images in `.\assest`
```sh
$ gulp
```

### Some screens with explanations

1. Modal window change ToDo text. Used basic data-flow with `data` and `props`
![Changing data](https://github.com/vakyla98/TodoVue/blob/gh-pages/src/assets/readme/Edit.png)

2. Here i create a svg-sprite using Gulp \
![Sprites](https://github.com/vakyla98/TodoVue/blob/gh-pages/src/assets/readme/Sprite.png)

3. Items holds at two list with computed properties. We can create,delete, or edit item.
![Tasks](https://github.com/vakyla98/TodoVue/blob/gh-pages/src/assets/readme/Tasks.png)

4. At Users page i used placeholder REST API with user list. When they loading, we see beautiful spinner, too we have error handling on timeout and error code like a 404. \
![User loading](https://github.com/vakyla98/TodoVue/blob/gh-pages/src/assets/readme/User_loading.png) \
![User loaded](https://github.com/vakyla98/TodoVue/blob/gh-pages/src/assets/readme/User_loaded.png) \
![Error handling](https://github.com/vakyla98/TodoVue/blob/gh-pages/src/assets/readme/User_error.png)
2 changes: 2 additions & 0 deletions README_BASE_704.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Vue3

2 changes: 2 additions & 0 deletions README_LOCAL_704.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Vue3

42 changes: 42 additions & 0 deletions README_REMOTE_704.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# To Do List

This is my first project with using Vue.js and vue-ecosystem.
You also can see list of all technology at [Home page](vakyla98.github.io/TodoVue/dist)

## Local install and other command
Install all dependencies
```sh
$ npm i
```
Run local-host and hot reloading
```sh
$ npm run serve
```
Build prod with minifying code
```sh
$ npm run dev
```
Run test
```sh
$ npm run test
```
Creating svg-sprite from images in `.\assest`
```sh
$ gulp
```

### Some screens with explanations

1. Modal window change ToDo text. Used basic data-flow with `data` and `props`
![Changing data](https://github.com/vakyla98/TodoVue/blob/gh-pages/src/assets/readme/Edit.png)

2. Here i create a svg-sprite using Gulp \
![Sprites](https://github.com/vakyla98/TodoVue/blob/gh-pages/src/assets/readme/Sprite.png)

3. Items holds at two list with computed properties. We can create,delete, or edit item.
![Tasks](https://github.com/vakyla98/TodoVue/blob/gh-pages/src/assets/readme/Tasks.png)

4. At Users page i used placeholder REST API with user list. When they loading, we see beautiful spinner, too we have error handling on timeout and error code like a 404. \
![User loading](https://github.com/vakyla98/TodoVue/blob/gh-pages/src/assets/readme/User_loading.png) \
![User loaded](https://github.com/vakyla98/TodoVue/blob/gh-pages/src/assets/readme/User_loaded.png) \
![Error handling](https://github.com/vakyla98/TodoVue/blob/gh-pages/src/assets/readme/User_error.png)
12 changes: 5 additions & 7 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
#!/usr/bin/env sh

# остановить публикацию при ошибках
set -e

# сборка
gulp
npm run test
npm run build

# переход в каталог сборки
# cd dist

# если вы публикуете на пользовательский домен
# echo 'www.example.com' > CNAME

# git init

git add .
echo 'Enter your commit for deploy: '
read -r commitName
git commit -a -m "${commitName}"
# git commit -a -m 'deploy'

git push
echo 'Succesfull push. Congrat!'

# если вы публикуете по адресу https://<USERNAME>.github.io
# git push -f [email protected]:<USERNAME>/<USERNAME>.github.io.git master

Expand Down
1 change: 1 addition & 0 deletions dist/css/app.6587e49d.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion dist/css/app.a213b18a.css

This file was deleted.

Loading

0 comments on commit 7cf5f36

Please sign in to comment.