forked from uyuni-project/uyuni
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bootstrap migration feature branch (uyuni-project#9117) (#25317)
* Fix custom column classes in the updated theme * Fix missing leading slash in search pathname * Fix alert layout in formula catalog in the updated theme * Fix layout mismatch in patches management * Improved viewport size check * Refactor deployment to remove code duplication and support multiple deployment modes * Fixed stretched button issue * Fix input addon sizing * Refactor deployment to remove code duplication and support multiple deployment modes * Migrate HTTP proxy, fix setup wizard layout issues (uyuni-project#9162) * Fix setup wizard alignment issues * Fix http proxy setup page * Fix image alignment * Initial migration work for CLM pages * Fix form group offset * Hard integrate UI stories (uyuni-project#9220) * Add ui debug page controller * Add build time tooling to bundle stories * Add ui debug page frontend * Add missing types --------- Co-authored-by: Thomas Florio <thomas.florio@suse.com> Co-authored-by: Richa <richa.bisht@suse.com>
- Loading branch information
1 parent
07cf9f0
commit 088d51a
Showing
263 changed files
with
2,599 additions
and
1,540 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
java/code/src/com/suse/manager/webui/controllers/StorybookController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Copyright (c) 2024 SUSE LLC | ||
* | ||
* This software is licensed to you under the GNU General Public License, | ||
* version 2 (GPLv2). There is NO WARRANTY for this software, express or | ||
* implied, including the implied warranties of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 | ||
* along with this software; if not, see | ||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. | ||
* | ||
* Red Hat trademarks are not licensed under GPLv2. No permission is | ||
* granted to use or replicate Red Hat trademarks that are incorporated | ||
* in this software or its documentation. | ||
*/ | ||
|
||
package com.suse.manager.webui.controllers; | ||
|
||
import static com.suse.manager.webui.utils.SparkApplicationHelper.withCsrfToken; | ||
import static com.suse.manager.webui.utils.SparkApplicationHelper.withUser; | ||
import static com.suse.manager.webui.utils.SparkApplicationHelper.withUserPreferences; | ||
import static spark.Spark.get; | ||
|
||
import com.redhat.rhn.domain.user.User; | ||
|
||
import java.util.HashMap; | ||
|
||
import spark.ModelAndView; | ||
import spark.Request; | ||
import spark.Response; | ||
import spark.template.jade.JadeTemplateEngine; | ||
|
||
public class StorybookController { | ||
private StorybookController() { } | ||
|
||
/** | ||
* Initialize routes | ||
* | ||
* @param jade the Jade engine to use to render the pages | ||
*/ | ||
public static void initRoutes(JadeTemplateEngine jade) { | ||
get("/manager/storybook", | ||
withUserPreferences(withCsrfToken(withUser(StorybookController::view))), jade); | ||
} | ||
|
||
/** | ||
* Returns the ui debug page | ||
* | ||
* @param req the request object | ||
* @param res the response object | ||
* @param user the authorized user | ||
* @return the model and view | ||
*/ | ||
public static ModelAndView view(Request req, Response res, User user) { | ||
return new ModelAndView(new HashMap<String, Object>(), "templates/storybook/storybook.jade"); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
java/code/src/com/suse/manager/webui/templates/storybook/storybook.jade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
include ../common.jade | ||
|
||
#storybook | ||
|
||
script(type='text/javascript'). | ||
window.csrfToken = "#{csrf_token}"; | ||
|
||
script(type='text/javascript'). | ||
spaImportReactPage('storybook') | ||
.then(function(module) { module.renderer('storybook') }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
java/spacewalk-java.changes.bisht-richa.fixed-stretched-button-issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Fixed stretched button issue in Audit Search and Subscription Matching pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Fix layout mismatch in patches management |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Fix column alignment on repository and system pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Integrate ui debugging stories |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.