After some more code digging and experiments I can answer my own question. A theme is a normal plugin and as such does not inherit any behavior from other plugins.
So you need to copy everything you need from the base theme library.js to your child theme. And of course, you need to declare client scripts explicitly.
Loading of missing templates from base theme is the only link between the base and the child theme.
Solved Hook on the server or client side?
-
I see that in the list of hooks (https://github.com/NodeBB/NodeBB/wiki/Hooks) there is a division into hooks of server side and client side. what is the meaning of this? Can't use server hook in standard script I put in ACP? And if I enter the code in such an extension: https://github.com/NodeBB/nodebb-plugin-quickstart will it work? Thanks.
@baris -
Node-BonBon
-
Hooks that are fired on the server side are only available for use for plugins in their server side code. Same for client side hooks they are only available for use in the client side code of plugins.
-
Node-BonBon