@@ -110,6 +110,120 @@ ModifyFilterActionFluidVariablesEvent: main event for fluid variable manipulatio
110110* [ Migrations from version 12 to 13] ( ./Documentation/Migration/12to13.md )
111111
112112## External used libraries
113+ Requirements: node.js >= 20, npm, nvm
114+
115+ ```
116+ cd Resources/Private && nvm use
117+ npm install
118+ ```
119+
120+ #### Backend
121+
122+ ``` npm run build:backend ```
123+
124+ #### Frontend
125+
126+ ``` npm run build:frontend ```
127+
128+ ### Javascript Events
129+
130+ it is possible to execute your own javascript code on specific events.
131+
132+ ** Example:**
133+
134+ ``` typo3_typoscript
135+ page.includeJSFooter.studyfinderExtenal = EXT:YOUREXTENSION/Resources/Public/JavaScript/extend.js
136+ ```
137+
138+ extend.js:
139+ ``` javascript
140+ if (window .in2studyfinder !== null ) {
141+ let in2studyfinder = window .in2studyfinder ;
142+ let instance = in2studyfinder .getInstance (0 );
143+
144+ instance .pagination .onClick = function () {
145+ console .log (' onPaginationClick' );
146+ }
147+
148+ instance .filter .onClick = function () {
149+ console .log (' onFilterClick' );
150+ };
151+
152+ instance .onUpdate = function () {
153+ console .log (' onInstanceUpdate' );
154+ };
155+ }
156+ ```
157+
158+ #### API:
159+
160+ ** Studyfinder:**
161+
162+ | function | description |
163+ | -------------| ----------------------------------------------------------------|
164+ | getInstance | returns the requested instance. Parameter instanceId (integer) |
165+
166+ ** Instance:**
167+
168+ | event name | description |
169+ | ---------------------------------------------| --------------------------------------|
170+ | onUpdate | is executed after every fetch call. |
171+
172+ ** Filter:**
173+
174+ | event name | description |
175+ | ---------------------------------------------| -------------------------------------------|
176+ | onClick | executed after the pagination link click. |
177+
178+ ** Quicksearch:**
179+
180+ nothing yet.
181+
182+ ** Pagination:**
183+
184+ | event name | description |
185+ | ---------------------------------------------| -------------------------------------------|
186+ | onClick | executed after the pagination link click. |
187+
188+ ### Code quality tools
189+
190+ we use phpmd and phpcs for code quality checks.
191+ The quality checks will be executed automatic before a commit with a pre-commit hook.
192+
193+ Some violations can be fixed automatic with the phpcs fixer (phpcbf).
194+ For automatic fixes execute ` ddev ssh ` and then ` ./.build/bin/phpcbf `
195+
196+ #### Execute Tests manually:
197+
198+ PHPCS:
199+
200+ ```
201+ ddev ssh
202+ ./.build/bin/phpcs
203+ ```
204+
205+ PHPMD:
206+
207+ ```
208+ ddev ssh
209+ ./.build/bin/phpmd Classes/ ansi .phpmd.xml
210+ ```
211+
212+ PHPCBF:
213+
214+ ```
215+ ddev ssh
216+ ./.build/bin/phpcbf
217+ ```
218+
219+ ### Migration
220+
221+ [ Migrations from version 8 to 9] ( ./Documentation/Migration/8to9.md )
222+ [ Migrations from version 9 to 10] ( ./Documentation/Migration/9to10.md )
223+ [ Migrations from version 10 to 11] ( ./Documentation/Migration/10to11.md )
224+ [ Migrations from version 11 to 12] ( ./Documentation/Migration/11to12.md )
225+
226+ ### External used libraries
113227
114228 * https://tom-select.js.org/
115229
@@ -130,6 +244,7 @@ ModifyFilterActionFluidVariablesEvent: main event for fluid variable manipulatio
130244| Version | Date | State | Description |
131245| ---------| ------------| --------------| -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
132246| 13.0.0 | 2025-09-02 | [ !!!] FEATURE | Add TYPO3 13 support, various code cleanups: [ Commits] ( https://github.com/in2code-de/in2studyfinder/commits/13.0.0 ) |
247+ | 12.1.1 | 2025-08-25 | TASK | Bump nodejs build dependencies. The nodejs modules used to build the JavaScript and CSS have been updated. |
133248| 12.1.0 | 2025-07-07 | FEATURE | Allow backend sorting of filter items, set correct meta tag property type for keywords. For further information see: [ Commits] ( https://github.com/in2code-de/in2studyfinder/commits/12.1.0 ) |
134249| 12.0.2 | 2025-05-23 | BUGFIX | Add missing release preparations |
135250| 12.0.1 | 2025-05-23 | BUGFIX | Fix ajax requests in non default language |
0 commit comments