-
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.
- Loading branch information
Adam Paulen
committed
Dec 18, 2024
1 parent
46c0831
commit 22224e8
Showing
9 changed files
with
132 additions
and
12 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 |
---|---|---|
@@ -1,3 +1,79 @@ | ||
This project was build on Storybook template provided by Chroma Software Inc. | ||
|
||
# Project Instructions | ||
|
||
## Getting Started | ||
|
||
To set up the project, first install the necessary dependencies: | ||
|
||
```bash | ||
npm install | ||
``` | ||
|
||
## Project Structure | ||
|
||
The different pages of the website are located in the following files: | ||
|
||
- `src/FormPage.jsx` | ||
- `src/SpawnPending.jsx` | ||
- `src/NotRunning.jsx` | ||
- `src/LoginPage.jsx` | ||
- `src/HomePage.jsx` | ||
|
||
## Running the Project in Development Mode | ||
|
||
You can run individual pages in a development environment using the following commands: | ||
|
||
- For `FormPage.jsx`: | ||
```bash | ||
npm run dev:form | ||
``` | ||
- For `SpawnPending.jsx`: | ||
```bash | ||
npm run dev:spawn_p | ||
``` | ||
- For `LoginPage.jsx`: | ||
```bash | ||
npm run dev:login | ||
``` | ||
- For `NotRunning.jsx`: | ||
```bash | ||
npm run dev:not_running | ||
``` | ||
- For `HomePage.jsx`: | ||
```bash | ||
npm run dev:home | ||
``` | ||
|
||
## Component Development with Storybook | ||
|
||
For component development, you can start a Storybook environment: | ||
|
||
```bash | ||
npm run storybook | ||
``` | ||
|
||
## Building the Project | ||
|
||
To build the project for production, use the following command: | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
## Creating ConfigMaps | ||
|
||
If you want to create ConfigMaps from the built project, use the `create_config_maps.sh` script. Before running it, make sure it is executable: | ||
|
||
```bash | ||
chmod +x create_config_maps.sh | ||
``` | ||
|
||
You can also modify the script if you only want to generate files locally instead of applying them to a Kubernetes cluster. | ||
Then execute the script: | ||
|
||
```bash | ||
./create_config_maps.sh | ||
``` | ||
|
||
|
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
File renamed without changes.
48 changes: 48 additions & 0 deletions
48
src/components/AnouncmentMessage/AnouncmentMessage.stories.jsx
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,48 @@ | ||
import AnouncmentMessage from "./AnouncmentMessage"; | ||
import React from "react"; | ||
|
||
export default { | ||
title: "Example/Button", | ||
component: AnouncmentMessage, | ||
parameters: { | ||
layout: "centered", | ||
}, | ||
}; | ||
|
||
export const Primary = { | ||
args: { | ||
style: "warning", | ||
children : ( <div> | ||
<h2> Scheduled maintenance and reboot on 16th - 18th Dec 2024 </h2> | ||
<p> | ||
{" "} | ||
We will have scheduled maintenance and cluster reboot between 16th and | ||
17th of December 2024. All running notebooks will be interrupted and | ||
have to be started again.{" "} | ||
</p> | ||
</div> | ||
) | ||
}, | ||
}; | ||
|
||
export const InputDropdown = { | ||
args: { | ||
title: "Input Drop Down", | ||
children: <input></input>, | ||
}, | ||
}; | ||
|
||
export const infoDropdown = { | ||
args: { | ||
title: "Info Drop Down", | ||
infoText: | ||
"Provide image name in format repo/image_name:tag or repo/image_name. No tag will be interpreted as latest.", | ||
}, | ||
}; | ||
|
||
export const Secondary = { | ||
args: { | ||
title: "Secondary Drop Down", | ||
primary: false, | ||
}, | ||
}; |
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