Giter Club home page Giter Club logo

vue-todolist's Introduction

GitHub dependabot GitHub last commit GitHub issues GitHub forks GitHub stars GitHub watchers

Vue Todolist

Vue Todolist

๐ŸŽฏ Description

The vue-todolist repository is a task management application, a productivity tool created to practice and learn the Vue Framework.

An application that allows you to list your pending tasks, both on a personal level for "shopping" or "reminders" and on a professional level to manage your projects.

It has a dashboard where you can add a task, mark it as done and delete it. At the top of this board, you can see the total number of tasks and the total number of completed tasks, it also has 2 buttons, one to delete all tasks and another to delete only the completed tasks when there are any. In the middle area of the board is shown the list of tasks, each task has 2 buttons, one to mark it as done and another one to delete it, any of these 2 actions animates the task when it enters and when it leaves the list. And in the lower area of the board there is a field to enter the name of the new task by clicking on the button on the right or by pressing the enter key.

All the tasks are saved and updated in the browser's Local Storage. Each task is a object json that has an identifier number or id, a name and its status. When the task is created the identifier number is generated from the total number of tasks plus the current one, and its status is marked as task not done.

๐Ÿ—๏ธ Developed with

Is developed with Vue 2 a Javascript framework, use Vue Cli and has dependencies as webpack, google fonts and font awesome icon.

NVM Node NPM
Prettier Eslint Stylelint
Semantic release Conventional commits
Commitlint Commitzen
Lint staged Pre-commit Husky
GitHub actions

๐Ÿ”– Tags versions

v1.0.0

Uses straightforward template syntax for create a Vue Instance in a single file

v2.0.0

Uses module systems with the Component Vue-cli and Emit events with vue methods, which allow code encapsulation and reuse.

v3.0.0

It uses the Event Bus and Vuex for a multi-directional data flow, which allows accessing status or triggering actions no matter where the component is located.

๐Ÿš€ Commands

Install dependencies

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Generate Changelog file

npm run changelog:init

Create tag version and update files in the current branch

npm run changelog:update

Create tag version and update files using gitflow structure

npm run changelog:update:gitflow

Publish in Github Pages

npm run deploy

Giphy Todolist

vue-todolist's People

Contributors

beatrizsmerino avatar dependabot-preview[bot] avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vue-todolist's Issues

Vulnerabilities in the Dependabot alerts

Found vulnerabilities on the dependencies

Running the command npm audit in the terminal returns a list with 'Some vulnerabilities require your attention to resolve':

  • ansi-regex
  • nth-check
  • set-value
  • ansi-html

Package ansi-regex

image

Package nth-check

image

Package set-value

image

Package ansi-html

image

Package glob-parent

image

Fix. Confused status of task done

Description

When you create a new task its status is not done, which is correct.

{
  "id": 4,
  "name": "new",
  "status": {
    "done": false
  }
}

But the styles seem to indicate otherwise, by having the green icon.

image

Perhaps it would be clearer if the unfinished tasks had a grey check icon and when completed it would turn green and remain crossed out.

image

Any ideas?

preinstall is immediately followed by postinstall and no installation occurs

Here is the output of npm install:

npm WARN old lockfile 
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile 
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile 
npm WARN old lockfile HttpErrorGeneral: 404 Not Found - GET https://registry.npmjs.org/@vue%2fvue-loader-v15 - Not found
npm WARN old lockfile     at /Users/wq/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/npm-registry-fetch/lib/check-response.js:95:15
npm WARN old lockfile     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm WARN old lockfile     at async RegistryFetcher.packument (/Users/wq/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/pacote/lib/registry.js:87:19)
npm WARN old lockfile     at async RegistryFetcher.manifest (/Users/wq/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/pacote/lib/registry.js:118:23)
npm WARN old lockfile     at async Array.<anonymous> (/Users/wq/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:727:24)
npm WARN old lockfile  Could not fetch metadata for @vue/[email protected] HttpErrorGeneral: 404 Not Found - GET https://registry.npmjs.org/@vue%2fvue-loader-v15 - Not found
npm WARN old lockfile     at /Users/wq/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/npm-registry-fetch/lib/check-response.js:95:15
npm WARN old lockfile     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm WARN old lockfile     at async RegistryFetcher.packument (/Users/wq/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/pacote/lib/registry.js:87:19)
npm WARN old lockfile     at async RegistryFetcher.manifest (/Users/wq/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/pacote/lib/registry.js:118:23)
npm WARN old lockfile     at async Array.<anonymous> (/Users/wq/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:727:24) {
npm WARN old lockfile   headers: [Object: null prototype] {
npm WARN old lockfile     date: [ 'Wed, 25 Oct 2023 09:52:27 GMT' ],
npm WARN old lockfile     'content-type': [ 'application/json' ],
npm WARN old lockfile     'content-length': [ '21' ],
npm WARN old lockfile     connection: [ 'keep-alive' ],
npm WARN old lockfile     vary: [ 'Accept-Encoding' ],
npm WARN old lockfile     server: [ 'cloudflare' ],
npm WARN old lockfile     'cf-ray': [ '81b9911abdea182a-SJC' ],
npm WARN old lockfile     'x-fetch-attempts': [ '1' ],
npm WARN old lockfile     'x-local-cache-status': [ 'skip' ]
npm WARN old lockfile   },
npm WARN old lockfile   statusCode: 404,
npm WARN old lockfile   code: 'E404',
npm WARN old lockfile   method: 'GET',
npm WARN old lockfile   uri: 'https://registry.npmjs.org/@vue%2fvue-loader-v15',
npm WARN old lockfile   body: { error: 'Not found' },
npm WARN old lockfile   pkgid: '@vue/[email protected]'
npm WARN old lockfile }

> [email protected] preinstall
> npm run install:clean && npm run dependencies:fix


> [email protected] install:clean
> rm -rf node_modules package-lock.json


> [email protected] dependencies:fix
> npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions


up to date, audited 1122 packages in 6s

156 packages are looking for funding
  run `npm fund` for details

4 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

> [email protected] postinstall
> npm run lint


> [email protected] lint
> npm run prettier:fix && npm run eslint:fix && npm run stylelint:fix


> [email protected] prettier:fix
> prettier --write "./**/*.{vue,js,json}"

.eslintrc.js 88ms
babel.config.js 2ms
jsconfig.json 2ms
package-lock.json 196ms
package.json 2ms
src/App.vue 61ms
src/assets/data/tasks.json 1ms
src/assets/images/icons/icons-import.js 2ms
src/assets/images/icons/icons-list.js 1ms
src/components/Dashboard/Dashboard.vue 18ms
src/components/Dashboard/DashboardContent.vue 5ms
src/components/Dashboard/DashboardInfo.vue 14ms
src/components/index.js 3ms
src/components/Page/PageTitle.vue 7ms
src/components/Task/TaskEdit.vue 17ms
src/components/Task/TaskList.vue 18ms
src/components/Task/TaskNew.vue 36ms
src/components/Task/TaskPreview.vue 72ms
src/components/UI/UIButton.vue 68ms
src/components/UI/UIIcon.vue 12ms
src/components/UI/UIMessage.vue 22ms
src/components/UI/UIModal.vue 11ms
src/components/UI/UITag.vue 7ms
src/event-bus.js 1ms
src/main.js 2ms
src/store/index.js 7ms
src/store/modules/tasks.js 20ms
stylelint.config.js 14ms
vue.config.js 10ms

> [email protected] eslint:fix
> vue-cli-service lint "**/*.{json,js,vue}" --fix --ignore-path .eslintignore

 ERROR  Error: Cannot find module 'svg-symbol-sprite-loader'
        Require stack:
        - /private/tmp/vue-todolist/vue.config.js
        - /Users/wq/.nvm/versions/node/v20.9.0/lib/node_modules/@vue/cli-service/node_modules/@vue/cli-shared-utils/lib/module.js
        - /Users/wq/.nvm/versions/node/v20.9.0/lib/node_modules/@vue/cli-service/node_modules/@vue/cli-shared-utils/index.js
        - /Users/wq/.nvm/versions/node/v20.9.0/lib/node_modules/@vue/cli-service/bin/vue-cli-service.js
Error: Cannot find module 'svg-symbol-sprite-loader'
Require stack:
- /private/tmp/vue-todolist/vue.config.js
- /Users/wq/.nvm/versions/node/v20.9.0/lib/node_modules/@vue/cli-service/node_modules/@vue/cli-shared-utils/lib/module.js
- /Users/wq/.nvm/versions/node/v20.9.0/lib/node_modules/@vue/cli-service/node_modules/@vue/cli-shared-utils/index.js
- /Users/wq/.nvm/versions/node/v20.9.0/lib/node_modules/@vue/cli-service/bin/vue-cli-service.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15)
    at Module._load (node:internal/modules/cjs/loader:901:27)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)
    at Object.<anonymous> (/private/tmp/vue-todolist/vue.config.js:2:25)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
npm ERR! code 1
npm ERR! path /private/tmp/vue-todolist
npm ERR! command failed
npm ERR! command sh -c npm run lint

npm ERR! A complete log of this run can be found in: /Users/wq/.npm/_logs/2023-10-25T09_52_19_387Z-debug-0.log

I find from output that preinstall is immediately followed by postinstall and no installation occurs. After some googling, I find that if npm install --package-lock-only is contained in preinstall the installation is skipped, when I remove the `--package-lock-only', then everything goes back to normal.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.