Closed prashnts closed 5 years ago
got it. Thx!
Eric Cherel
Chief Information Officer http://www.cri-paris.org/ +33 (0)1 86 95 96 88
On Thu, Dec 6, 2018 at 5:02 PM Prashant Sinha notifications@github.com wrote:
F I N A L L Y !
This PR is the beginning of the layout fixes for ilearn extension.
Currently, it renders the cards correctly. Major milestones in this would be added further on. Current status:
- Attached event handlers and two-way communication between page-script and background process.
- Fixed the layout of ilearn card.
Note that this is still very very early stage for the UI. Also, I do not plan to have the dark backdrop -- i added it for emphasis.
[image: snip 2018-12-06 at 17 00 46] https://user-images.githubusercontent.com/5663391/49595563-8a827f80-f978-11e8-8819-c63f136f2ed6.png Todo
These are required before I can continue work for getting the extension at an acceptable UI. Fortunately, it's not super difficult to do so. Just more configuration changes!
- Put all the injected css under a "namespace" so to not modify the actual page.
- Use css-transition-groups for controlling the element styles at each stage of its lifecycle.
Remarks
- I think this PR really demonstrates the power of using react components and splitting everything into respective modules, since I was able to reuse the old work for quickly getting the content as shown in the screenshot above.
- Additionally, the build pipeline is very useful to automate steps that are too repetitive during development:
- It copies and ensures correct manifest file is provided to the extension.
- Whenever a source file changes, the webpack process rebuilds the js+css files and issues a "reload in browser" event.
- The built files trigger the web-ext cli tool to also reload firefox.
- Without the dev automation, I'd have to manually do each of the above steps. It's painful!
I'd be working on the todo, and getting the layout better now, and estimate around a day of work is required.
CC: @jmsevin https://github.com/jmsevin @eric-cri https://github.com/eric-cri
You can view, comment on, or merge this pull request online at:
https://github.com/CyberCRI/learn-ext/pull/3 Commit Summary
- Remove useless boilerplate codes from extension and intialise a cleaner manifest file
- Add config for web-ext cli tool
- Do not track ext dir anymore
- Split entrypoints for various processes
- Move manifest to src as well
- Bump npm packages
- Update docz rc file
- Add background script for extension process
- Implement crude popover layout
File Changes
- M .gitignore https://github.com/CyberCRI/learn-ext/pull/3/files#diff-0 (2)
- M doczrc.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-1 (4)
- D ext/_locales/en/messages.json https://github.com/CyberCRI/learn-ext/pull/3/files#diff-2 (66)
- R ext/assets/icon128.png https://github.com/CyberCRI/learn-ext/pull/3/files#diff-3 (0)
- R ext/assets/icon16.png https://github.com/CyberCRI/learn-ext/pull/3/files#diff-4 (0)
- R ext/assets/icon19.png https://github.com/CyberCRI/learn-ext/pull/3/files#diff-5 (0)
- R ext/assets/icon48.png https://github.com/CyberCRI/learn-ext/pull/3/files#diff-6 (0)
- D ext/js/jquery/.gitignore https://github.com/CyberCRI/learn-ext/pull/3/files#diff-7 (3)
- D ext/js/jquery/README.md https://github.com/CyberCRI/learn-ext/pull/3/files#diff-8 (4)
- D ext/js/jquery/bower.json https://github.com/CyberCRI/learn-ext/pull/3/files#diff-9 (13)
- D ext/js/jquery/component.json https://github.com/CyberCRI/learn-ext/pull/3/files#diff-10 (21)
- D ext/js/jquery/composer.json https://github.com/CyberCRI/learn-ext/pull/3/files#diff-11 (30)
- D ext/js/jquery/jquery.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-12 (8755)
- D ext/js/jquery/jquery.min.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-13 (6)
- D ext/js/jquery/package.json https://github.com/CyberCRI/learn-ext/pull/3/files#diff-14 (7)
- D ext/js/main.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-15 (123)
- D ext/manifest.json https://github.com/CyberCRI/learn-ext/pull/3/files#diff-16 (50)
- D ext/src/bg/background.html https://github.com/CyberCRI/learn-ext/pull/3/files#diff-17 (6)
- D ext/src/bg/background.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-18 (13)
- D ext/src/inject/inject.css https://github.com/CyberCRI/learn-ext/pull/3/files#diff-19 (33)
- D ext/src/inject/inject.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-20 (9)
- D ext/src/inject/toolbar.html https://github.com/CyberCRI/learn-ext/pull/3/files#diff-21 (13)
- D ext/src/options_custom/README.md https://github.com/CyberCRI/learn-ext/pull/3/files#diff-22 (114)
- D ext/src/options_custom/css/main.css https://github.com/CyberCRI/learn-ext/pull/3/files#diff-23 (132)
- D ext/src/options_custom/css/setting.css https://github.com/CyberCRI/learn-ext/pull/3/files#diff-24 (81)
- D ext/src/options_custom/custom.css https://github.com/CyberCRI/learn-ext/pull/3/files#diff-25 (4)
- D ext/src/options_custom/i18n.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-26 (71)
- D ext/src/options_custom/icon.png https://github.com/CyberCRI/learn-ext/pull/3/files#diff-27 (0)
- D ext/src/options_custom/index.html https://github.com/CyberCRI/learn-ext/pull/3/files#diff-28 (46)
- D ext/src/options_custom/js/classes/fancy-settings.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-29 (152)
- D ext/src/options_custom/js/classes/search.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-30 (126)
- D ext/src/options_custom/js/classes/setting.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-31 (711)
- D ext/src/options_custom/js/classes/tab.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-32 (51)
- D ext/src/options_custom/js/i18n.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-33 (27)
- D ext/src/options_custom/manifest.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-34 (134)
- D ext/src/options_custom/settings.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-35 (60)
- D ext/src/page_action/page_action.html https://github.com/CyberCRI/learn-ext/pull/3/files#diff-36 (17)
- M package.config.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-37 (20)
- M package.json https://github.com/CyberCRI/learn-ext/pull/3/files#diff-38 (4)
- A src/components/card.scss https://github.com/CyberCRI/learn-ext/pull/3/files#diff-39 (33)
- M src/components/input/readme.mdx https://github.com/CyberCRI/learn-ext/pull/3/files#diff-40 (2)
- M src/components/input/tag-suggest.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-41 (4)
- M src/components/popout.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-42 (46)
- M src/components/popout.sass https://github.com/CyberCRI/learn-ext/pull/3/files#diff-43 (17)
- M src/index.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-44 (17)
- A src/manifest.json https://github.com/CyberCRI/learn-ext/pull/3/files#diff-45 (47)
- M src/mixins/wikipedia.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-46 (2)
- A src/procs/background.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-47 (27)
- A web-ext-config.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-48 (24)
- M webpack.common.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-49 (27)
- M webpack.prod.js https://github.com/CyberCRI/learn-ext/pull/3/files#diff-50 (3)
- M yarn.lock https://github.com/CyberCRI/learn-ext/pull/3/files#diff-51 (28)
Patch Links:
- https://github.com/CyberCRI/learn-ext/pull/3.patch
- https://github.com/CyberCRI/learn-ext/pull/3.diff
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/CyberCRI/learn-ext/pull/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AXZ9tS3jGH13gA6w6bZoTDnWvFYfuqaiks5u2T-pgaJpZM4ZGzOJ .
Since this Pull Request is getting way too long (84 commits...), I'm merging it and start new branch from here.
A lot has been implemented since last comment here. This gif below shows it.
I've added a few documentations as well, particularly:
@jmsevin We miss you! Seems you're enjoying Californian weather a LOT!
cards and extension ui
tags
F I N A L L Y !
This PR is the beginning of the layout fixes for ilearn extension.
Currently, it renders the cards correctly. Major milestones in this would be added further on.
Current status:
page-script
andbackground
process.Note that this is still very very early stage for the UI. Also, I do not plan to have the dark backdrop -- i added it for emphasis.
Todo
These are required before I can continue work for getting the extension at an acceptable UI. Fortunately, it's not super difficult to do so. Just more configuration changes!
css-transition-groups
for controlling the element styles at each stage of its lifecycle.Remarks
web-ext
cli tool to also reload firefox.I'd be working on the todo, and getting the layout better now, and estimate around a day of work is required.
CC: @jmsevin @eric-cri