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

[REFACTOR] Componentização por composição em componente do pacote col… #90

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions cheathub.und/id.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{257e2b4c-73dd-46ad-ac9a-f0a1ab5c2ffa}
289 changes: 289 additions & 0 deletions cheathub.und/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,289 @@
<project>
<files
default_encoding="System"
readonly="false"
maxfilesize="10485760"
enforce_portability="false">
<dir
name=".">
<watched
excludes=".*"
subdirs="true">
<filter
name="CSS"/>
<filter
name="Html"/>
<filter
name="Javascript"/>
<filter
name="Php"/>
<filter
name="Python"/>
<filter
name="TypeScript"/>
<filter
name="Xml"/>
</watched>
<dir
name="backend">
<dir
name="admin"/>
<dir
name="database"/>
<dir
name="resources"/>
<dir
name="services"/>
<dir
name="templates"/>
</dir>
<dir
name="frontend">
<dir
name="public"/>
<dir
name="src">
<dir
name="components">
<dir
name="collections">
<dir
name="collection"/>
<dir
name="crud"/>
<dir
name="snippets"/>
</dir>
<dir
name="layout">
<dir
name="main">
<dir
name="areas"/>
<dir
name="grid"/>
</dir>
<dir
name="root">
<dir
name="areas"/>
<dir
name="grid"/>
</dir>
</dir>
<dir
name="modals"/>
<dir
name="navigation">
<dir
name="account"/>
<dir
name="actions"/>
<dir
name="navbar"/>
<dir
name="pagination"/>
</dir>
<dir
name="registration"/>
<dir
name="search"/>
<dir
name="shared"/>
<dir
name="snippet">
<dir
name="body"/>
<dir
name="card"/>
<dir
name="crud"/>
<dir
name="editor"/>
</dir>
</dir>
<dir
name="constants"/>
<dir
name="containers"/>
<dir
name="context"/>
<dir
name="lib"/>
<dir
name="pages"/>
<dir
name="services"/>
<dir
name="styles"/>
</dir>
</dir>
</dir>
</files>
<languages>
<language
name="Python"/>
<language
name="Web"/>
</languages>
<file_types/>
<annotations_options/>
<codecheck_options/>
<comparison_options
comparison_db=""
git_repo="./."
git_commit=""
diff_flags="1"/>
<dependency_options
exclude_standard="true"
use_includes="true"
mode="link"/>
<imports/>
<metrics
declared_in_file_display_mode="no_path"
file_display_mode="no_path"
show_declared_in_file="false"
show_function_parameter_types="false"
write_column_titles="true"
add_uniquename_column="false"
metric_filter="28532"/>
<python_options
assume_nearest_matches="false"
assume_single_choices="false"
ignore_import_errors_in_try_blocks="false"
save_comments_associated_with_entities="true"
use_builtin_standard="true"
use_installed_standard="false"
version="Python3"/>
<reports
date_stamping="false"
display_parameters="false"
index_by_method="false"
group_by_directory="false"
filename_mode="short"
generation_status="needs_generation"
generation_time="0"
html_clear_directory="false"
html_generation="true"
html_mode="alpha"
headertext_mode="false"
headerusertext_mode="false"
headertext_text="Report generated by Understand"
headerusertext_text=""
html_size="250"
text_clear_directory="false"
text_generation="true"
text_mode="single">
<report
name="Data Dictionary"
enabled="true"/>
<report
name="File Contents"
enabled="true"/>
<report
name="Program Unit Cross Reference"
enabled="true"/>
<report
name="Object Cross Reference"
enabled="true"/>
<report
name="Type Cross Reference"
enabled="true"/>
<report
name="Macro Cross Reference"
enabled="true"/>
<report
name="Include File Cross Reference"
enabled="true"/>
<report
name="Declaration Tree"
enabled="true"/>
<report
name="Extend Tree"
enabled="false"/>
<report
name="Invocation Tree"
enabled="false"/>
<report
name="Simple Invocation Tree"
enabled="true"/>
<report
name="Imports"
enabled="true"/>
<report
name="With Tree"
enabled="true"/>
<report
name="Simple With Tree"
enabled="true"/>
<report
name="Generic Instantiation"
enabled="true"/>
<report
name="Exception Cross Reference"
enabled="true"/>
<report
name="Renames"
enabled="true"/>
<report
name="Program Unit Complexity"
enabled="true"/>
<report
name="Project Metrics"
enabled="true"/>
<report
name="Program Unit Metrics"
enabled="true"/>
<report
name="File Metrics"
enabled="true"/>
<report
name="File Average Metrics"
enabled="true"/>
<report
name="Fortran Extension Usage"
enabled="true"/>
<report
name="Class Metrics"
enabled="true"/>
<report
name="Class OO Metrics"
enabled="true"/>
<report
name="Implicitly Declared Objects"
enabled="true"/>
<report
name="Uninitialized Items"
enabled="true"/>
<report
name="Unused Objects and Functions"
enabled="true"/>
<report
name="Unused Objects"
enabled="true"/>
<report
name="Unused Types"
enabled="true"/>
<report
name="Unused Program Units"
enabled="true"/>
<report
name="Uses Not Needed"
enabled="true"/>
<report
name="Withs Not Needed"
enabled="true"/>
</reports>
<web_options
add_found_imported_js_files="true"
allow_asp_style_php_tags="false"
allow_jquery="false"
allow_node_js="false"
allow_short_php_tags="true"
js_module_search_path=""
node_js_predefined_config_file="$CONF:/understand/javascript/nodejs_predefined.txt"
node_js_search_path=""
save_php_comments="true"
search_strings_for_entity_names="false"
php_version="8.3"/>
</project>
27 changes: 27 additions & 0 deletions components_smells.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
id,file,Component,Smell,Details,"Em uma escala de 1 a 5, como você avalia a relevância desse smell?
1 = smell não é importante e, provavelmente, não será refatorado
5 = smell é muito importante e, provavelmente, será refatorado em breve.",Observação
1,C:\Program Files\projects\cheathub\frontend\src\components\collections\collection\index.tsx,CollectionItem,Large Component,LOC: 142; Number of props: 18; Number of attributes: 0; Number of methods: 0,,
2,C:\Program Files\projects\cheathub\frontend\src\components\collections\collection\index.tsx,CollectionItem,Too many props,"Number of props: 18; Props: collection,id,index,setId,expanded,setExpanded,setSelections,selectedSnippetId,setSelectedSnippetId,setExpandedSnippet,setHeading,readonly,bg,open,collapsed,duration,ease,borderRadius",,
3,C:\Program Files\projects\cheathub\frontend\src\components\collections\crud\index.tsx,CollectionCrud,Large Component,LOC: 246; Number of props: 21; Number of attributes: 0; Number of methods: 0,,
4,C:\Program Files\projects\cheathub\frontend\src\components\collections\crud\index.tsx,CollectionCrud,Too many props,"Number of props: 21; Props: name,setName,handleSubmit,handleDelete,snippets,setSnippets,handleCancel,setAlert,editing,deleting,submitting,snippetsOptions,open,collapsed,duration,ease,menu,borderRadius,borderColor,spacing,colors",,
5,C:\Program Files\projects\cheathub\frontend\src\components\collections\snippets\index.tsx,SnippetItem,Large Component,LOC: 160; Number of props: 17; Number of attributes: 0; Number of methods: 0,,
6,C:\Program Files\projects\cheathub\frontend\src\components\collections\snippets\index.tsx,SnippetItem,Too many props,"Number of props: 17; Props: snippet,index,selectedSnippetId,setSelectedSnippetId,expandedSnippet,setExpandedSnippet,editing,username,setTags,faveSnippet,handleFave,faving,border,open,collapsed,duration,ease",,
7,C:\Program Files\projects\cheathub\frontend\src\components\navigation\actions\index.tsx,Actions,Large Component,LOC: 206; Number of props: 13; Number of attributes: 0; Number of methods: 0,,
8,C:\Program Files\projects\cheathub\frontend\src\components\search\search-bar.tsx,SearchBar,Large Component,LOC: 137; Number of props: 18; Number of attributes: 0; Number of methods: 0,,
9,C:\Program Files\projects\cheathub\frontend\src\components\search\search-bar.tsx,SearchBar,Too many props,"Number of props: 18; Props: searchText,onSearchTextChange,language,onLanguageChange,tags,onTagsChange,allTags,resetAll,heading,children,value,label,base,lg,open,collapsed,duration,ease",,
10,C:\Program Files\projects\cheathub\frontend\src\containers\default.container.tsx,Page,Large Component,LOC: 120; Number of props: 22; Number of attributes: 0; Number of methods: 0,,
11,C:\Program Files\projects\cheathub\frontend\src\containers\default.container.tsx,Page,Too many props,"Number of props: 22; Props: primary,primaryHeading,primaryChildren,primaryFooterHeading,primaryFooterSubheading,secondary,secondaryHeading,secondaryChildren,secondaryFooterHeading,secondaryFooterSubheading,preSecondaryChildren,postSecondaryChildren,modals,drawers,pagination,search,icon,width,background,borderRadius,base,lg",,
12,C:\Program Files\projects\cheathub\frontend\src\context\appdata.context.tsx,AppDataProvider,Large Component,LOC: 135; Number of props: 24; Number of attributes: 0; Number of methods: 6,,
13,C:\Program Files\projects\cheathub\frontend\src\context\appdata.context.tsx,AppDataProvider,Too many props,"Number of props: 24; Props: children,label,value,target,loadInitialData,loadResultsData,loadAllTags,data,setData,searchText,setSearchText,onSearchTextChange,language,setLanguage,onLanguageChange,tags,setTags,onTagChange,page,setPage,loading,setLoading,allTags,setAllTags",,
14,C:\Program Files\projects\cheathub\frontend\src\context\collectionhandler.tsx,CollectionHandlerProvider,Large Component,LOC: 244; Number of props: 35; Number of attributes: 0; Number of methods: 4,,
15,C:\Program Files\projects\cheathub\frontend\src\context\collectionhandler.tsx,CollectionHandlerProvider,Too many props,"Number of props: 35; Props: children,accessToken,loadCollectionsData,loadSnippetsOptions,label,value,duration,isClosable,render,selected,setSelected,selections,setSelections,loadingSelected,setLoadingSelected,selectedId,setSelectedId,handleSubmit,handleDelete,handleCancel,id,setId,name,setName,snippets,setSnippets,submitting,setSubmitting,deleting,setDeleting,editing,setEditing,alert,setAlert,clearValues",,
16,C:\Program Files\projects\cheathub\frontend\src\context\datahandler.context.tsx,DataHandlerProvider,Large Component,LOC: 315; Number of props: 46; Number of attributes: 0; Number of methods: 5,,
17,C:\Program Files\projects\cheathub\frontend\src\context\datahandler.context.tsx,DataHandlerProvider,Too many props,"Number of props: 46; Props: children,username,accessToken,loadInitialData,loadSnippetsData,loadFaveSnippets,loadCollectionsOptions,loadCollectionsData,loadSnippetsOptions,duration,isClosable,render,title,setTitle,value,setValue,description,setDescription,language,setLanguage,tags,setTags,source,setSource,privatize,setPrivatize,id,setId,submitting,setSubmitting,deleting,setDeleting,editing,setEditing,alert,setAlert,heading,setHeading,clearValues,faving,faveSnippet,setFaveSnippet,handleFave,handleDelete,handleCancel,handleSubmit",,
18,C:\Program Files\projects\cheathub\frontend\src\context\profiledata.context.tsx,ProfileDataProvider,Large Component,LOC: 121; Number of props: 26; Number of attributes: 0; Number of methods: 5,,
19,C:\Program Files\projects\cheathub\frontend\src\context\profiledata.context.tsx,ProfileDataProvider,Too many props,"Number of props: 26; Props: children,username,loggedIn,label,value,loadSnippetsData,loadCollectionsData,collectionsProfile,setCollectionsProfile,loadingCollections,setLoadingCollections,snippetsProfile,setSnippetsProfile,loadingSnippets,setLoadingSnippets,loadFaveSnippets,setFaveSnippets,faveSnippets,loadingFaves,setLoadingFaves,snippetsOptions,setSnippetsOptions,loadSnippetsOptions,collectionsOptions,setCollectionsOptions,loadCollectionsOptions",,
20,C:\Program Files\projects\cheathub\frontend\src\pages\about.tsx,ProfileCard,Large Component,LOC: 135; Number of props: 8; Number of attributes: 0; Number of methods: 0,,
21,C:\Program Files\projects\cheathub\frontend\src\pages\home.tsx,Home,Large Component,LOC: 89; Number of props: 16; Number of attributes: 0; Number of methods: 0,,
22,C:\Program Files\projects\cheathub\frontend\src\pages\home.tsx,Home,Too many props,"Number of props: 16; Props: match,username,setUsername,email,setEmail,password,setPassword,returning,setReturning,loading,handleSignIn,data,setTags,handleFave,faveSnippet,faving",,
23,C:\Program Files\projects\cheathub\frontend\src\pages\snippets.tsx,Snippets,Large Component,LOC: 166; Number of props: 20; Number of attributes: 0; Number of methods: 1,,
24,C:\Program Files\projects\cheathub\frontend\src\pages\snippets.tsx,Snippets,Too many props,"Number of props: 20; Props: data,loading,searchText,setSearchText,onSearchTextChange,language,setLanguage,onLanguageChange,tags,setTags,onTagChange,page,setPage,allTags,loadInitialData,faveSnippet,handleFave,faving,username,accessToken",,
13 changes: 13 additions & 0 deletions files_smells.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
id,Large File,File URL,LOC,N_Components,N_Functions,N_Imports,"Em uma escala de 1 a 5, como você avalia a relevância desse smell?
1 = smell não é importante e, provavelmente, não será refatorado
5 = smell é muito importante e, provavelmente, será refatorado em breve.",Observação
1,C:\Program Files\projects\cheathub\frontend\src\components\collections\crud\index.tsx,C:\Program Files\projects\cheathub\frontend\src\components\collections\crud\index.tsx,294,1,0,15,,
2,C:\Program Files\projects\cheathub\frontend\src\components\collections\snippets\index.tsx,C:\Program Files\projects\cheathub\frontend\src\components\collections\snippets\index.tsx,214,1,0,22,,
3,C:\Program Files\projects\cheathub\frontend\src\components\modals\auth-prompt.tsx,C:\Program Files\projects\cheathub\frontend\src\components\modals\auth-prompt.tsx,104,1,0,21,,
4,C:\Program Files\projects\cheathub\frontend\src\components\navigation\account\index.tsx,C:\Program Files\projects\cheathub\frontend\src\components\navigation\account\index.tsx,117,1,0,21,,
5,C:\Program Files\projects\cheathub\frontend\src\components\navigation\actions\index.tsx,C:\Program Files\projects\cheathub\frontend\src\components\navigation\actions\index.tsx,248,1,0,23,,
6,C:\Program Files\projects\cheathub\frontend\src\components\shared\brand-button.tsx,C:\Program Files\projects\cheathub\frontend\src\components\shared\brand-button.tsx,80,4,0,5,,
7,C:\Program Files\projects\cheathub\frontend\src\components\snippet\body\elements.tsx,C:\Program Files\projects\cheathub\frontend\src\components\snippet\body\elements.tsx,469,8,0,37,,
8,C:\Program Files\projects\cheathub\frontend\src\context\collectionhandler.tsx,C:\Program Files\projects\cheathub\frontend\src\context\collectionhandler.tsx,306,1,1,10,,
9,C:\Program Files\projects\cheathub\frontend\src\context\datahandler.context.tsx,C:\Program Files\projects\cheathub\frontend\src\context\datahandler.context.tsx,388,1,1,11,,
10,C:\Program Files\projects\cheathub\frontend\src\pages\about.tsx,C:\Program Files\projects\cheathub\frontend\src\pages\about.tsx,542,7,0,35,,
1 change: 1 addition & 0 deletions frontend/frontend.und/id.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ff246c4e-8ebb-4fe5-bd91-27cec3a04bac}
Loading