forked from hound-search/hound
-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Sync with refactoring in elchininet repo #16
Merged
yelizariev
merged 6 commits into
itpp-labs:master
from
yelizariev:sync-with-refactoring-in-elchininet-repo
Nov 29, 2019
Merged
Sync with refactoring in elchininet repo #16
yelizariev
merged 6 commits into
itpp-labs:master
from
yelizariev:sync-with-refactoring-in-elchininet-repo
Nov 29, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ass directly from the entry-points In this commit (af4d9a8) React and ReactDOM where added as dependencies of the project But it seems that they are not used because no entry-point import them. The React version that is used is the version 0.12.2 that is coming from 2014 and it is loaded as a separate script directly from the HTML templates. The purpose of this commit is to import React, ReactDOM, and createReactClass from the entry-points and get rid of the old react version. In this way, the project can be escalated using the new features of React
jQuery is loaded in the project as an external file, but it is used only for Ajax requests and for merging objects There are popular libraries that can be used for those purposes (reqwest / merge-anything) So, replacing jQuery by those libraries not only reduces the bytes needed to be downloaded but also it removes an extra HTTP request to the server This makes the process of updating a library easier because no Go code is needed to be changed, only the version of the packages in the package.json should be updated
The purpose of this commit is to separate the React components in different modules to increase the readability of the code and improve the development process
It is hard to search and select a repo using the current HTML native multi-select, when there are a lot of projects it creates a long list and it is very hard to identify the right one by sight This commit replaces the native HTML select with a React multi-select with search functionality (react-select). It is possible to search for a repo and just click on it and it will be added to the list of repos
- All the components have been changed to functional components (createReactClass can be removed safely) - All the components have been rewritten using ECMAScript 2015 (merge-anything package can be removed because object destructuring has been used) - The state management has been reduced so, the main data is managed from the Root components and sent to the presentational components through properties - The logic inside the FilesView component has been reduced creating other components to make the code more readable
…-in-elchininet-repo
itpp-bot
reviewed
Nov 29, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
├─ package-lock.json
├─ package.json
├─ ui/
| ├─ assets/
| | ├─ css/
| | | └─ hound.css
| | ├─ excluded_files.tpl.html
| | ├─ index.tpl.html
| | └─ js/
| | ├─ JSXTransformer-0.12.2.js
| | ├─ components/
| | | ├─ ExcludedFiles/
| | | | ├─ ExcludedRow.js
| | | | ├─ ExcludedTable.js
| | | | ├─ FilterableExcludedFiles.js
| | | | ├─ RepoButton.js
| | | | └─ RepoList.js
| | | └─ HoundApp/
| | | ├─ App.js
| | | ├─ File.js
| | | ├─ FilesView.js
| | | ├─ Line.js
| | | ├─ Match.js
| | | ├─ ResultView.js
| | | └─ SearchBar.js
| | ├─ excluded_files.js
| | ├─ helpers/
| | | ├─ Model.js
| | | ├─ Signal.js
| | | └─ common.js
| | ├─ hound.js
| | ├─ jquery-2.1.3.min.js
| | └─ utils/
| | └─ index.js
| ├─ bindata.go
| ├─ content.go
| └─ ui.go
└─ webpack.config.js
Installable modules remain unchanged.
Not installable modules remain unchanged.
No new features in doc/changelog.rst files of installable modules
sent by ✌️ Odoo Review Bot
To test updates run:
You may need be authenticated:
|
Closed
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.