commit d1b9ef66e5b77f9c812e39c35b626d766dcc4e17 Author: Omkar Prabhune Date: Mon Jun 14 13:43:13 2021 +0530 updated Navigation Tree diff --git a/README.md b/README.md index 61283f8..86371f7 100644 --- a/README.md +++ b/README.md @@ -25,23 +25,43 @@ ## Navigation ``` . -└── Apertium WebExt - ├── assets - ├── background - │ ├── background.js - │ ├── jquery.min.js - │ └── storage.js - ├── popup - │ ├── bootstrap.css - │ ├── popup.html/css/js - │ └── options.html/css - ├── settings - │ └── settings.html/css/js - └── manifest.json +├── README.md +├── src +│   ├── assets +│   │   ├── apertium-logo.svg +│   │   ├── icons +│   │   │   ├── icon128.png +│   │   │   ├── icon16.png +│   │   │   ├── icon32.png +│   │   │   ├── icon512.png +│   │   │   └── icon64.png +│   │   ├── language.svg +│   │   ├── switch.svg +│   │   └── trash.svg +│   ├── background +│   │   ├── background.js +│   │   ├── jquery.min.js +│   │   └── storage.js +│   ├── content +│   │   ├── content.js +│   │   └── hover.js +│   ├── manifest.json +│   ├── popup +│   │   ├── bootstrap.min.css +│   │   ├── options.html/js +│   │   └── popup.html/css/js +│   └── settings +│   └── settings.html/css/js +└── tests + + ``` #### Background background.js contains all background scripts such as the right-click contextmenu option, the script to redirect the user to the settings page on being installed (TODO) and so on. storage.js is meant for all functions that deal with the two localStorage Objects, apertium.settings and apertium.langPairs. +#### Content +Modifying the page DOM can only be done through content scripts. The scripts here are triggered on enabled sites and are the ones responsible for the word-hover and webpage translation functionality + #### Pop-Up holds all the files necessary to build the pop-ups for the main pop-up and the smaller settings pop-up. Also has a local copy of bootstrap 5.