forked from strimzi/strimzi-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement strimzi-ui build (strimzi#5)
* feat: provide build and basic UI - Adds implementation for the strimzi-ui build, inc npm package and required dependancies - Adds a very basic UI, which will be replaced, which uses this build - Update documentation to cover Contributes to: strimzi#2 Signed-off-by: Matthew Chirgwin <[email protected]> * refactor: build implementation details - moves dependencies to correct section, depending if they or code they generate are included in built output - adds browser levels to babel presets - adds webpack-bundle-analyzer for bundle size checking / docs to cover - tweaks location and merging of configuration to better match docs - adds extra comments/documentation Contributes to: strimzi#2 Signed-off-by: Matthew Chirgwin <[email protected]> * refactor: spelling error, review comments - fixes spelling errors Signed-off-by: Matthew Chirgwin <[email protected]> * feat: add copyright banner to css - adds copyright banner to built css Signed-off-by: Matthew Chirgwin <[email protected]> * refactor: simplify build based on review - changes/simplifies the build mechanism to become more additive - doc changes to cover Signed-off-by: Matthew Chirgwin <[email protected]> Co-authored-by: Matthew Chirgwin <[email protected]>
- Loading branch information
1 parent
bb3cdb7
commit 0ba3b1c
Showing
18 changed files
with
8,713 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# dependencies | ||
node_modules/ | ||
|
||
# built content | ||
dist/ | ||
|
||
# test/supporting generated content | ||
generated/ | ||
|
||
# misc | ||
.history | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.npmrc | ||
.eslintcache | ||
|
||
#IDEs | ||
.vscode/ | ||
.idea/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright Strimzi authors. | ||
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). | ||
*/ | ||
|
||
#root { | ||
font-family: 'Nunito', 'Open Sans', sans-serif; | ||
color: #182C46; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
height: 98vh; | ||
} |
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,15 @@ | ||
<!-- | ||
Copyright Strimzi authors. | ||
License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). | ||
--> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title><%= htmlWebpackPlugin.options.title %></title> | ||
</head> | ||
<body> | ||
<div id='root' role="main"></div> | ||
</body> | ||
</html> |
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,16 @@ | ||
/* | ||
* Copyright Strimzi authors. | ||
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). | ||
*/ | ||
|
||
import 'Styling'; | ||
import image from 'Images/logo.png'; | ||
|
||
window.addEventListener('load', () => { | ||
const root = document.querySelector('[id="root"]'); | ||
const img = document.createElement('img'); | ||
img.src = image; | ||
img.alt = 'Strimzi logo'; | ||
root.append(img); | ||
root.append(document.createTextNode('Welcome to the Strimzi UI')); | ||
}); |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.