Skip to content

Commit

Permalink
Adapt the React components to the Starter Kit
Browse files Browse the repository at this point in the history
* Disable styles to make it build.
  • Loading branch information
imobachgs committed Apr 8, 2022
1 parent d54df81 commit 55c75c3
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 27 deletions.
58 changes: 40 additions & 18 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"@babel/eslint-parser": "^7.13.14",
"@babel/preset-env": "^7.5.4",
"@babel/preset-react": "^7.0.0",
"@fontsource/lato": "^4.5.5",
"@fontsource/poppins": "^4.5.5",
"@fontsource/roboto-mono": "^4.5.5",
"babel-loader": "^8.0.6",
"chrome-remote-interface": "^0.31.0",
"compression-webpack-plugin": "^9.0.0",
Expand Down Expand Up @@ -50,9 +53,13 @@
"dependencies": {
"@patternfly/patternfly": "4.183.1",
"@patternfly/react-core": "4.198.19",
"@patternfly/react-table": "^4.61.15",
"core-js": "^3.21.1",
"eos-ds": "^5.0.0",
"eos-icons-react": "^2.2.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"eos-ds": "^5.0.0",
"eos-icons-react": "^2.2.0"
"regenerator-runtime": "^0.13.9",
"svg-url-loader": "^7.1.1"
}
}
2 changes: 1 addition & 1 deletion web/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import "@fontsource/lato/700.css";
import "@fontsource/poppins/300.css";
import "@fontsource/poppins/500.css";
import "@fontsource/roboto-mono/400.css";
import "./app.scss";
// import "./app.scss";

function App() {
const {
Expand Down
2 changes: 1 addition & 1 deletion web/src/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import React from "react";

import "./layout.scss";
// import "./layout.scss";
import logo from "./assets/suse-horizontal-logo.svg";

import About from "./About";
Expand Down
5 changes: 3 additions & 2 deletions web/index.html → web/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="stylesheet" href="index.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>D-Installer</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script type="module" src="./index.js"></script>
</body>
</html>
2 changes: 2 additions & 0 deletions web/src/main.jsx → web/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

import React, { StrictMode } from "react";
import ReactDOM from "react-dom";
import "core-js/stable";
import "regenerator-runtime/runtime";

import "./patternfly.scss";

Expand Down
6 changes: 3 additions & 3 deletions web/src/patternfly.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Import PatternFly CSS
@use "@patternfly/react-core/dist/styles/base.css";
@use "@patternfly/patternfly/patternfly.css";
@import "@patternfly/react-core/dist/styles/base.css";
@import "@patternfly/patternfly/patternfly.css";

// See https://github.com/patternfly/patternfly/pull/4297
@use "@patternfly/react-styles/css/utilities/Sizing/sizing.css";
@import "@patternfly/react-styles/css/utilities/Sizing/sizing.css";

// PatternFly overrides for using CSS Logical Properties
.pf-l-split.pf-m-gutter > :not(:last-child) {
Expand Down
7 changes: 7 additions & 0 deletions web/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ module.exports = {
resolve: {
modules: [ "node_modules", path.resolve(__dirname, 'src/lib') ],
alias: { 'font-awesome': 'font-awesome-sass/assets/stylesheets' },
extensions: ['', '.js', '.json', '.jsx']
},
resolveLoader: {
modules: [ "node_modules", path.resolve(__dirname, 'src/lib') ],
Expand Down Expand Up @@ -148,6 +149,12 @@ module.exports = {
},
]
},
{
test: /\.svg/,
use: {
loader: "svg-url-loader",
},
}
]
},
plugins: plugins
Expand Down

0 comments on commit 55c75c3

Please sign in to comment.