Merge branch 'dev-josh'

This commit is contained in:
joshuaboud 2021-07-15 16:31:54 -03:00
commit 94e49b3c25
No known key found for this signature in database
GPG Key ID: 17EFB59E2A8BF50E
7 changed files with 32 additions and 9 deletions

View File

@ -1,3 +1,4 @@
## Cockpit Navigator 0.5.0-1
## Cockpit Navigator 0.5.1-1
* Implement custom modal style popups to replace browser dialogs.
* Allow modal popups to scroll if overflowing past page.
* Moves focus to next input in modal popup when enter is pressed.

View File

@ -23,17 +23,17 @@ With no command line use needed, you can:
# Installation
## From Github Release
### Ubuntu
1. `$ wget https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.0/cockpit-navigator_0.5.0-1focal_all.deb`
1. `# apt install ./cockpit-navigator_0.5.0-1focal_all.deb`
1. `$ wget https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.1/cockpit-navigator_0.5.1-1focal_all.deb`
1. `# apt install ./cockpit-navigator_0.5.1-1focal_all.deb`
### EL7
1. `# yum install https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.0/cockpit-navigator-0.5.0-1.el7.noarch.rpm`
1. `# yum install https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.1/cockpit-navigator-0.5.1-1.el7.noarch.rpm`
### EL8
1. `# dnf install https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.0/cockpit-navigator-0.5.0-1.el8.noarch.rpm`
1. `# dnf install https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.1/cockpit-navigator-0.5.1-1.el8.noarch.rpm`
## From Source
1. Ensure dependencies are installed: `cockpit`, `python3`, `rsync`, `zip`.
1. `$ git clone https://github.com/45Drives/cockpit-navigator.git`
1. `$ cd cockpit-navigator`
1. `$ git checkout <version>` (v0.5.0 is latest)
1. `$ git checkout <version>` (v0.5.1 is latest)
1. `# make install`
## From 45Drives Repositories
### Ubuntu

View File

@ -3,7 +3,7 @@
"name": "cockpit-navigator",
"title": "Cockpit Navigator",
"prerelease": false,
"version": "0.5.0",
"version": "0.5.1",
"buildVersion": "1",
"author": "Josh Boudreau <jboudreau@45drives.com>",
"url": "https://github.com/45Drives/cockpit-navigator",
@ -54,7 +54,7 @@
],
"changelog": {
"urgency": "medium",
"version": "0.5.0",
"version": "0.5.1",
"buildVersion": "1",
"ignore": [],
"date": null,

View File

@ -49,6 +49,7 @@ export class ModalPrompt {
construct_element() {
let bg = this.modal = document.createElement("div");
bg.classList.add("modal");
bg.style.overflowY = "auto";
let fg = document.createElement("div");
fg.classList.add("modal-dialog");
bg.appendChild(fg);
@ -203,6 +204,14 @@ export class ModalPrompt {
this.show();
inputs[0].focus();
for (let i = 0; i < inputs.length - 1; i++) {
inputs[i].onchange = () => {
inputs[i+1].focus();
}
}
inputs[inputs.length - 1].onchange = () => {
this.ok.focus();
}
return new Promise((resolve, reject) => {
this.ok.onclick = () => {
let response = {};

View File

@ -32,6 +32,9 @@ rm -rf %{buildroot}
/usr/share/cockpit/navigator/*
%changelog
* Thu Jul 15 2021 Josh Boudreau <jboudreau@45drives.com> 0.5.1-1
- Allow modal popups to scroll if overflowing past page.
- Moves focus to next input in modal popup when enter is pressed.
* Thu Jul 15 2021 Josh Boudreau <jboudreau@45drives.com> 0.5.0-1
- Implement custom modal style popups to replace browser dialogs.
* Wed Jul 07 2021 Josh Boudreau <jboudreau@45drives.com> 0.4.6-3

View File

@ -32,6 +32,9 @@ rm -rf %{buildroot}
/usr/share/cockpit/navigator/*
%changelog
* Thu Jul 15 2021 Josh Boudreau <jboudreau@45drives.com> 0.5.1-1
- Allow modal popups to scroll if overflowing past page.
- Moves focus to next input in modal popup when enter is pressed.
* Thu Jul 15 2021 Josh Boudreau <jboudreau@45drives.com> 0.5.0-1
- Implement custom modal style popups to replace browser dialogs.
* Wed Jul 07 2021 Josh Boudreau <jboudreau@45drives.com> 0.4.6-3

View File

@ -1,3 +1,10 @@
cockpit-navigator (0.5.1-1focal) focal; urgency=medium
* Allow modal popups to scroll if overflowing past page.
* Moves focus to next input in modal popup when enter is pressed.
-- Josh Boudreau <jboudreau@45drives.com> Thu, 15 Jul 2021 13:29:15 -0300
cockpit-navigator (0.5.0-1focal) focal; urgency=medium
* Implement custom modal style popups to replace browser dialogs.