Files
iTop/js
Molkobain 8cb92e3bd3 N°7494 - Update highlight.js to v11.9.0
Mind that this lib is not maintained through NPM yet as its sources alone don't allow to be used in CKEditor out of the box, it needs extra steps to be built/used. And as we are already struggling with the CKEditor integration, we rather make baby steps.
2024-05-22 13:24:16 +02:00
..
2024-03-04 10:31:26 +01:00
2024-05-06 18:35:31 +02:00
2024-05-06 18:35:31 +02:00
2024-05-06 18:35:31 +02:00
2024-05-06 18:35:31 +02:00
2024-05-06 18:35:31 +02:00
2024-03-04 10:31:26 +01:00
2024-03-04 10:31:26 +01:00
2024-05-06 18:35:31 +02:00
2024-05-06 18:35:31 +02:00
2024-03-04 10:31:26 +01:00
2024-03-04 10:31:26 +01:00
2024-05-06 18:35:31 +02:00
2024-05-06 18:35:31 +02:00
2024-05-06 18:35:31 +02:00
2024-05-06 18:35:31 +02:00
2021-03-01 11:44:37 +01:00
2024-05-06 18:35:31 +02:00
2024-05-06 18:35:31 +02:00
2024-05-06 18:35:31 +02:00
2024-05-06 18:35:31 +02:00
2024-05-06 18:35:31 +02:00
2024-05-06 18:35:31 +02:00
2024-03-04 10:31:26 +01:00
2024-05-06 18:35:31 +02:00
2024-02-15 17:14:15 +01:00
2024-05-06 18:35:31 +02:00
2024-02-09 12:04:21 +01:00
2024-05-06 18:35:31 +02:00
2024-05-06 18:35:31 +02:00
2024-05-06 18:35:31 +02:00
2024-05-06 18:35:31 +02:00
2024-05-06 18:35:31 +02:00
2024-05-06 18:35:31 +02:00

JS for iTop

File location

In order to better separate our developments from the embedded third-party libs, files should be moved in either the /js/components, /lib, /node_modules folders.

IMPORTANT: Before moving a file, we should first consider if:

  • The file is used in an iTop extension that should be compatible with the iTop version currently under developments
  • The file is still used in iTop itself (or if we can consider removing it for clean up)

Leading semicolon

When concataining 2 files with code execution, we might have a prb.

For example :

// file A
(A)()
// file B
(B)()

Having (A)()(B)() is different than (A)();(B)(); !

To avoid those problems simply add a leading semicolon on all JS files.

See : https://stackoverflow.com/a/23056287 3959ed505b