mirror of
				https://gitlab.nic.cz/turris/reforis/foris-js.git
				synced 2025-11-03 23:00:31 +01:00 
			
		
		
		
	
			
				
					
						
					
					536ccc0f033df1c08c6e06b93971ef792c38cb1e
				
			
			
		
	* Add & update translations * Add rest of the props to DownloadButton component * Add hostname validation * Add wifi 802.11ax HE modes * Set best Wi-Fi HT mode depending on the checked frequency * Improve domain name RegEx pattern * Remove customOrder prop in Select component * Fix Wi-Fi translation strings * Fix autocomplete attribute in PasswordInput * Fix WiFi password max length check * Fix documentation build * Fix access token in publish script * Refine & restructure Makefile * Update GitLab CI image to Node.js v16 * NPM update (several dependencies) * NPM audit fix
foris-js
Set of utils and common React elements for reForis.
Publishing package
Beta versions
Each commit to dev branch will result in publishing a new version of library
tagged beta. Versions names are based on commit SHA, e.g.
foris@0.1.0-beta.d9073aa4.
Preparing a release
- Crete a merge request to 
devbranch with version bumped - When merging add 
[skip ci]to commit message to prevent publishing unnecessary version - Create a merge request from 
devtomasterbranch - New version should be published automatically
 
Manually managed dependencies
Because of <ForisForm /> component it's required to use exposed
ReactRouterDOM object from react-router-dom library. ReactRouterDOM is
exposed by
reForis.
It can be done by following steps:
- Setting 
react-router-domaspeerDependenciesanddevDependenciesinpackage.json. - Adding the following rules to 
externalsinwebpack.conf.jsof the plugin: 
externals: {
    ...
    "react-router-dom": "ReactRouterDOM",
}
Docs
Build or watch docs to get more info about library:
make docs
or
make docs-watch
					Languages
				
				
								
								
									JavaScript
								
								97.4%
							
						
							
								
								
									Makefile
								
								1.4%
							
						
							
								
								
									CSS
								
								0.8%
							
						
							
								
								
									Shell
								
								0.4%