Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Front-end Challenge - Edgar Dias #31

Open
wants to merge 46 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
378f7c4
Initial commint with the installation of base Vue app
EDGI9 Jan 25, 2023
036af7b
Adding base files for unit testing
EDGI9 Jan 25, 2023
3812862
Adding base unit test for button component
EDGI9 Jan 25, 2023
615d6ec
Adding base unit test for topMenu component
EDGI9 Jan 25, 2023
cd78031
Adding base unit test for icon and title components
EDGI9 Jan 25, 2023
fdb30d4
Adding base unit test for checkbox component
EDGI9 Jan 25, 2023
9cc4476
Adding base unit test for list and listItem component
EDGI9 Jan 25, 2023
5da32f5
Adding images to project
EDGI9 Jan 25, 2023
f17033b
Adding of the variables with colors and fonts
EDGI9 Jan 25, 2023
2816148
Creating icon and button components
EDGI9 Jan 25, 2023
d51db57
Adding title component
EDGI9 Jan 25, 2023
e7316be
Adding checkbox, topMenu, list and listItem components
EDGI9 Jan 25, 2023
88fed7b
Adding axios and lodash packages
EDGI9 Jan 25, 2023
675f7e3
Adding vue store, api and services to app
EDGI9 Jan 25, 2023
d2e01c9
Adding of a layout component
EDGI9 Jan 25, 2023
66552cc
Using Layout componet and placing List component in home view
EDGI9 Jan 26, 2023
7098bde
Adding styling to button component
EDGI9 Jan 26, 2023
0254cc8
Adding styling to topMenu component
EDGI9 Jan 26, 2023
1e36080
Adding styling to checkbox component
EDGI9 Jan 26, 2023
c4e9ca8
Adding a few more variables and styling for transitions
EDGI9 Jan 27, 2023
efa310e
Creation of text input and text area tests along with their components
EDGI9 Jan 27, 2023
fddc146
Adding input components and enabling the editing of the list item data
EDGI9 Jan 27, 2023
de0faed
Updating list test and component
EDGI9 Jan 27, 2023
2ad2881
Removing delete event from the home component
EDGI9 Jan 27, 2023
cf0932d
Using class to create item template object
EDGI9 Jan 27, 2023
8cbd9dc
Fixing issue with duplicate ids and enabling the editing of item
EDGI9 Jan 27, 2023
724ec56
Linting code
EDGI9 Jan 27, 2023
a23c919
Removing unecessary code
EDGI9 Jan 27, 2023
8bbc26a
Adding some basic styling to main app file
EDGI9 Jan 27, 2023
402d5b2
Creation of error page and altering router to display it if the route…
EDGI9 Jan 27, 2023
bbc1531
Implementing some styles using variables
EDGI9 Jan 27, 2023
f774fae
Adding styling to the list component
EDGI9 Jan 27, 2023
0fb93b9
Adding some responsiveness to app and updating default layout compone…
EDGI9 Jan 27, 2023
56a7362
Adding styling to list item component
EDGI9 Jan 27, 2023
1a4200f
Adding unit test coverage
EDGI9 Jan 27, 2023
770de56
Re-arranging files for the store
EDGI9 Jan 27, 2023
4e9e29c
Adding titles to buttons for accessability
EDGI9 Jan 27, 2023
894ba54
Fixing issue with title font sizes
EDGI9 Jan 27, 2023
4f1fa40
Movig view pages and adding their respective tests
EDGI9 Jan 27, 2023
bae8d11
Updating test coverage files
EDGI9 Jan 27, 2023
34dad61
Adding message for when the list is empty
EDGI9 Jan 28, 2023
ed8e8e2
Updating List component test
EDGI9 Jan 28, 2023
9e66af7
Adding SEO meta information
EDGI9 Jan 28, 2023
a3ad551
Cleaning up code
EDGI9 Jan 28, 2023
3d14c22
Adding quick fix to the HomeView test
EDGI9 Jan 28, 2023
7d41f4f
Updating test coverage files
EDGI9 Jan 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> 1%
last 2 versions
not dead
30 changes: 30 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
root: true,
env: {
node: true,
},
extends: [
"plugin:vue/essential",
"eslint:recommended",
"plugin:prettier/recommended",
],
parserOptions: {
parser: "@babel/eslint-parser",
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"vue/multi-word-component-names": 0,
},
overrides: [
{
files: [
"**/__tests__/*.{j,t}s?(x)",
"**/tests/unit/**/*.spec.{j,t}s?(x)",
],
env: {
jest: true,
},
},
],
};
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ["@vue/cli-plugin-babel/preset"],
};
126 changes: 126 additions & 0 deletions coverage/clover.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1674931938639" clover="3.2.0">
<project timestamp="1674931938639" name="All files">
<metrics statements="24" coveredstatements="24" conditionals="11" coveredconditionals="8" methods="13" coveredmethods="13" elements="48" coveredelements="45" complexity="0" loc="24" ncloc="24" packages="14" files="18" classes="18"/>
<package name="src">
<metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<file name="App.vue" path="D:\04 - Cenas Pessoais\04 - Repositórios\frontend-challenge\src\App.vue">
<metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<line num="1" count="6" type="stmt"/>
<line num="6" count="1" type="stmt"/>
</file>
</package>
<package name="src.assets.images">
<metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
<file name="add-row.svg" path="D:\04 - Cenas Pessoais\04 - Repositórios\frontend-challenge\src\assets\images\add-row.svg">
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
<line num="1" count="2" type="stmt"/>
</file>
<file name="delete.svg" path="D:\04 - Cenas Pessoais\04 - Repositórios\frontend-challenge\src\assets\images\delete.svg">
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
<line num="1" count="1" type="stmt"/>
</file>
<file name="fetch-document.svg" path="D:\04 - Cenas Pessoais\04 - Repositórios\frontend-challenge\src\assets\images\fetch-document.svg">
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
<line num="1" count="3" type="stmt"/>
</file>
<file name="person.svg" path="D:\04 - Cenas Pessoais\04 - Repositórios\frontend-challenge\src\assets\images\person.svg">
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
<line num="1" count="3" type="stmt"/>
</file>
<file name="upload.svg" path="D:\04 - Cenas Pessoais\04 - Repositórios\frontend-challenge\src\assets\images\upload.svg">
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
<line num="1" count="3" type="stmt"/>
</file>
</package>
<package name="src.components.Button">
<metrics statements="1" coveredstatements="1" conditionals="2" coveredconditionals="2" methods="1" coveredmethods="1"/>
<file name="Button.vue" path="D:\04 - Cenas Pessoais\04 - Repositórios\frontend-challenge\src\components\Button\Button.vue">
<metrics statements="1" coveredstatements="1" conditionals="2" coveredconditionals="2" methods="1" coveredmethods="1"/>
<line num="1" count="86" type="cond" truecount="2" falsecount="0"/>
</file>
</package>
<package name="src.components.Checkbox">
<metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<file name="Checkbox.vue" path="D:\04 - Cenas Pessoais\04 - Repositórios\frontend-challenge\src\components\Checkbox\Checkbox.vue">
<metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<line num="1" count="64" type="stmt"/>
<line num="16" count="4" type="stmt"/>
</file>
</package>
<package name="src.components.Icon">
<metrics statements="2" coveredstatements="2" conditionals="2" coveredconditionals="2" methods="1" coveredmethods="1"/>
<file name="Icon.vue" path="D:\04 - Cenas Pessoais\04 - Repositórios\frontend-challenge\src\components\Icon\Icon.vue">
<metrics statements="2" coveredstatements="2" conditionals="2" coveredconditionals="2" methods="1" coveredmethods="1"/>
<line num="1" count="108" type="cond" truecount="2" falsecount="0"/>
<line num="4" count="7" type="stmt"/>
</file>
</package>
<package name="src.components.List">
<metrics statements="1" coveredstatements="1" conditionals="2" coveredconditionals="2" methods="1" coveredmethods="1"/>
<file name="List.vue" path="D:\04 - Cenas Pessoais\04 - Repositórios\frontend-challenge\src\components\List\List.vue">
<metrics statements="1" coveredstatements="1" conditionals="2" coveredconditionals="2" methods="1" coveredmethods="1"/>
<line num="1" count="38" type="cond" truecount="2" falsecount="0"/>
</file>
</package>
<package name="src.components.ListItem">
<metrics statements="1" coveredstatements="1" conditionals="3" coveredconditionals="2" methods="1" coveredmethods="1"/>
<file name="ListItem.vue" path="D:\04 - Cenas Pessoais\04 - Repositórios\frontend-challenge\src\components\ListItem\ListItem.vue">
<metrics statements="1" coveredstatements="1" conditionals="3" coveredconditionals="2" methods="1" coveredmethods="1"/>
<line num="1" count="62" type="cond" truecount="2" falsecount="1"/>
</file>
</package>
<package name="src.components.TextArea">
<metrics statements="2" coveredstatements="2" conditionals="1" coveredconditionals="0" methods="1" coveredmethods="1"/>
<file name="TextArea.vue" path="D:\04 - Cenas Pessoais\04 - Repositórios\frontend-challenge\src\components\TextArea\TextArea.vue">
<metrics statements="2" coveredstatements="2" conditionals="1" coveredconditionals="0" methods="1" coveredmethods="1"/>
<line num="1" count="33" type="cond" truecount="0" falsecount="1"/>
<line num="11" count="4" type="stmt"/>
</file>
</package>
<package name="src.components.TextInput">
<metrics statements="2" coveredstatements="2" conditionals="1" coveredconditionals="0" methods="1" coveredmethods="1"/>
<file name="TextInput.vue" path="D:\04 - Cenas Pessoais\04 - Repositórios\frontend-challenge\src\components\TextInput\TextInput.vue">
<metrics statements="2" coveredstatements="2" conditionals="1" coveredconditionals="0" methods="1" coveredmethods="1"/>
<line num="1" count="33" type="cond" truecount="0" falsecount="1"/>
<line num="9" count="4" type="stmt"/>
</file>
</package>
<package name="src.components.Title">
<metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<file name="Title.vue" path="D:\04 - Cenas Pessoais\04 - Repositórios\frontend-challenge\src\components\Title\Title.vue">
<metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<line num="1" count="108" type="stmt"/>
<line num="4" count="7" type="stmt"/>
</file>
</package>
<package name="src.components.TopMenu">
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<file name="TopMenu.vue" path="D:\04 - Cenas Pessoais\04 - Repositórios\frontend-challenge\src\components\TopMenu\TopMenu.vue">
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<line num="1" count="42" type="stmt"/>
</file>
</package>
<package name="src.layouts.DefaultLayout">
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<file name="DefaultLayout.vue" path="D:\04 - Cenas Pessoais\04 - Repositórios\frontend-challenge\src\layouts\DefaultLayout\DefaultLayout.vue">
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<line num="1" count="31" type="stmt"/>
</file>
</package>
<package name="src.views.ErrorView">
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<file name="ErrorView.vue" path="D:\04 - Cenas Pessoais\04 - Repositórios\frontend-challenge\src\views\ErrorView\ErrorView.vue">
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<line num="1" count="9" type="stmt"/>
</file>
</package>
<package name="src.views.HomeView">
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<file name="HomeView.vue" path="D:\04 - Cenas Pessoais\04 - Repositórios\frontend-challenge\src\views\HomeView\HomeView.vue">
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<line num="1" count="9" type="stmt"/>
</file>
</package>
</project>
</coverage>
Loading