agama/web
2022-07-26 11:24:18 +01:00
..
package Bump version and update changes files 2022-07-26 11:24:18 +01:00
po Add Cockpit Starter Kit infrastructure 2022-04-08 21:07:13 +01:00
public [web] Add Vite as a development dependency 2022-02-23 14:41:35 +00:00
src Improve documentation 2022-07-26 11:08:25 +01:00
.babelrc.json Add Cockpit Starter Kit infrastructure 2022-04-08 21:07:13 +01:00
.editorconfig Add a React-based web interface 2021-12-22 10:02:10 +00:00
.eslintignore Add Cockpit Starter Kit infrastructure 2022-04-08 21:07:13 +01:00
.eslintrc.json Update ESLint rules 2022-04-11 08:18:34 +01:00
.gitignore JSDoc: put it in jsdoc.out/ instead of out/ 2022-06-10 16:09:10 +02:00
.prettierignore [web] Add 'lint' and 'prettier' tasks 2022-02-04 12:17:13 +00:00
.prettierrc Set prettier printWidth to 100 2022-03-09 09:48:08 +00:00
babel.config.js [web] Set up @testing-react-library and Jest 2022-02-23 14:41:35 +00:00
jest.config.js [web] Transpile mjs file in react-teleporter 2022-07-08 17:33:50 +01:00
jsdoc.conf.json JSDoc: put it in jsdoc.out/ instead of out/ 2022-06-10 16:09:10 +02:00
Makefile Code cleanup and doc. 2022-06-10 09:16:34 +02:00
org.opensuse.d-installer.metainfo.xml Add Cockpit Starter Kit infrastructure 2022-04-08 21:07:13 +01:00
package-lock.json [web] Add react-teleporter 2022-07-08 17:33:43 +01:00
package.json [web] Add react-teleporter 2022-07-08 17:33:43 +01:00
README.md JSDoc: put it in jsdoc.out/ instead of out/ 2022-06-10 16:09:10 +02:00
webpack.config.js [web] Use the inline asset module for loading SVGs 2022-04-19 14:13:23 +01:00

D-Installer Web-Based UI

This Cockpit modules offers a UI to the D-Installer service. The code is based on Cockpit's Starter Kit (b2379f7).

Development

Cockpit searches for modules in the $HOME/.local/share/cockpit directory of the logged in user, which is really handy when working on a module. To make the module available to Cockpit, you can link your build folder (dist) or just rely on the devel-install task:

    make devel-install

Bear in mind that if something goes wrong while building the application (e.g., the linter fails), the link will not be created.

While working on the code, you might want to run the following command to refresh the build everytime you save a change:

    npm run watch

However, there is no live or hot reloading feature, so you need to reload the code in your browser. You can visit the module through the following URL: http://localhost:9090/cockpit/@localhost/d-installer/index.html.

JSDoc Documentation

npm run jsdoc
xdg-open jsdoc.out/index.html

GitHub Actions will automatically publish the result to https://d-installer-frontend.surge.sh/