Project

General

Profile

Code structure » History » Version 6

koszko, 02/25/2022 06:37 PM
update for 1.0

1 1 jahoti
# Code structure
2 6 koszko
**Note: this page needs to be updated to reflect changes made in Haketilo 1.0-beta1**
3 1 jahoti
4
The idea of arranging script files based on their execution context might not be the best one. Suggestions are welcome.
5
6
{{toc}}
7
8
## `background/`
9
Contains scripts that are to be run exclusively in the context of the background page.
10
11 2 jahoti
## `build.sh`
12 3 jahoti
Builds the project, creating a `build_mozilla` or `build_chromium` folder in the working directory containing the unpacked extension. Run as `/path/to/build.sh mozilla|chromium`.
13 2 jahoti
14 1 jahoti
## `common/`
15
Contains scripts that are to be run in more than one context. E.g. script that gets evaluated in contexts of both settings page and background page is going to reside in this directory.
16
17
## `content/`
18
Contains scripts that execute exclusively in the context of content scripts.
19
20 2 jahoti
## `copyright`
21
Contains copyright information in [Debian's machine-readable format](https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/) (not all license texts are included; these reside under `licenses/`).
22 1 jahoti
23 2 jahoti
## `default_settings.json`
24
The default settings for the extension, in the format that settings are exported from the extension. This will be removed at some point, as per #48 .
25
26 1 jahoti
## `html/`
27 4 koszko
Contains javascript, HTML and CSS files for settings and popup pages.
28 1 jahoti
29
## `icons/`
30
Contains icons graphics used by the extension.
31
32
## `licenses/`
33
Contains full legal texts of licenses used.
34
35
## `manifest.json`
36 5 jahoti
Is the manifest file with the most important extension information for the browser. For now this is a version 2 manifest (version 3 is to require some more changes in the extension). This file is not a complete manifest - that one gets generated from `manifest.json` when `build.sh` script gets run.
37 1 jahoti
38
## `README.txt`
39
Contains some general information about the extension.