Watch
1
0
Fork
You've already forked foris-js
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2026-07-22 15:16:37 +00:00
Foris JS library is a set of components and utils for reForis and plugins.
  • JavaScript 97.5%
  • Makefile 1.4%
  • CSS 0.7%
  • Shell 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Aleksandr Gumroian 406e98e13e Merge branch 'bump-6101' into 'dev'
Bump v6.11.0

See merge request turris/reforis/foris-js!294
2026-03-23 21:48:48 +01:00
docs docs: Refactor development and introduction sections 2025-04-22 13:49:43 +02:00
scripts Fix access token in publish script 2022-02-28 16:47:52 +01:00
src Update Snapshots 2026-03-13 17:54:31 +03:00
translations Update translation messages 2026-02-17 15:41:25 +03:00
.eslintignore Extract the library from reforis. 2019-08-21 17:04:26 +02:00
.eslintrc.js Fix linting issues 2024-06-10 16:28:25 +02:00
.gitignore Remove testUtils from .gitignore 2022-12-22 15:35:21 +01:00
.gitlab-ci.yml gitlab-ci: Use custom reforis-image 2024-01-19 21:15:50 +03:00
.weblate Add weblate config file. 2020-02-20 17:19:07 +01:00
babel.cfg Updated translation messages after moving WiFi form. 2020-01-13 16:10:19 +01:00
babel.config.js Format all files with Prettier 2020-08-18 16:17:00 +02:00
CHANGELOG.md Bump v6.11.0 2026-03-23 23:40:55 +03:00
jest.config.js Replace 'wait' with 'waitFor' 2025-02-25 14:06:33 +01:00
Makefile Add JS_DIR variable to Makefile 2024-04-29 15:19:20 +02:00
package-lock.json Bump v6.11.0 2026-03-23 23:40:55 +03:00
package.json Bump v6.11.0 2026-03-23 23:40:55 +03:00
prettier.config.js Fix linting issues 2024-06-10 16:28:25 +02:00
README.md Format all files with Prettier 2020-08-18 16:17:00 +02:00
requirements.txt Added virtual environment and packages required for translations. 2019-11-14 11:28:28 +01:00
styleguide.config.js docs: Enhance styleguide configuration with new font and layout options 2025-04-22 13:50:12 +02:00

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

  1. Crete a merge request to dev branch with version bumped
  2. When merging add [skip ci] to commit message to prevent publishing unnecessary version
  3. Create a merge request from dev to master branch
  4. 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:

  1. Setting react-router-dom as peerDependencies and devDependencies in package.json.
  2. Adding the following rules to externals in webpack.conf.js of the plugin:
externals: {
    ...
    "react-router-dom": "ReactRouterDOM",
}

Docs

Build or watch docs to get more info about library:

make docs

or

make docs-watch