You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are four distinct sections inside the application:
37
+
There are three main sections:
37
38
38
-
- The `app/` directory: this contains the web client, and is organized according to functionality and shared components.
39
-
- The `data/`directory contains all the indexes and SQLite tables needing for search and retrieval, as well as database and web configuration files.
40
-
- The `reports/` directory, which contains the major search reports which fetch data from the database by interfacing with the core library, and then return a specialized results report as a JSON object. These reports include concordance, KWIC (Key Word In Context), collocation, and time series.
41
-
- The `scripts/` directory, which contains standalone CGI scripts that are called directly from JavaScript code on the client side. These functions have a very specialized purpose, such as returning the total number of hits for any given query.
39
+
- The `app/` directory contains the Vue.js web client. The `src/` subdirectory has the source code, and `dist/` contains the built production files served to browsers.
40
+
- The `data/` directory contains all indexes, LMDB databases, SQLite tables, and configuration files needed for search and retrieval.
41
+
- The `custom_functions/` directory allows you to override or extend the default server-side behavior with custom Python functions.
42
42
43
43
# <aname="ui"></a>Modifying the behavior of the Web Application
44
44
@@ -58,8 +58,20 @@ Once access control has been turned on, PhiloLogic will check the `access_file`
58
58
## <aname="changing-theme"></a>Changing the Web Application theme
59
59
Changing the Web Application theme requires editing the `theme.module.scss` file which can be found in the database directory under `app/src/assets/styles/`.
60
60
61
-
The `theme.module.scss` file is a Sass stylesheet which makes use of global variables to define the main colors used in the web app. All you should need to do is edit `$header-color`, `$button-color`, `$button-color-active`, `$link-color`. Once you've edited the theme file, you will need to rebuild the web application. In order to do so, go to the `app/` directory and run the following command in the terminal:
61
+
The `theme.module.scss` file is a Sass stylesheet which uses global variables to define the main colors used in the web app. The key variables are:
62
+
63
+
```scss
64
+
$header-color: rgb(95, 2, 2); // Navigation bar background
65
+
$button-color: rgb(173, 66, 66); // Primary buttons, form elements
66
+
$button-color-active: rgba(160, 55, 55, 0.9); // Active/hover state
67
+
$link-color: rgb(156, 60, 60); // Hyperlinks and text accents
68
+
$passage-color: rgb(155, 65, 55); // Search result highlights
69
+
$card-header-color: rgb(173, 66, 66); // Card and table headers
62
70
```
71
+
72
+
Once you've edited the theme file, rebuild the web application by running the following command from the `app/` directory:
0 commit comments