-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:COMPFEST/jasper into shafiya/visu…
…al-language
- Loading branch information
Showing
42 changed files
with
1,219 additions
and
683 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
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 @@ | ||
# Contributing | ||
|
||
We welcome community support with both pull requests and reporting bugs. Please | ||
don't hesitate to jump in. | ||
|
||
## Review others' work | ||
|
||
Check out the list of outstanding pull requests if there is something you might | ||
be interested in. Maybe somebody is trying to fix that stupid bug that bothers | ||
you. Review the PR. Do you have any better ideas how to fix this problem? Let us | ||
know. | ||
|
||
## Issues | ||
|
||
The issue tracker is the preferred channel for bug reports, features requests | ||
and submitting pull requests, but please respect the following restrictions: | ||
|
||
- Please do not use the issue tracker for personal support requests. | ||
- Please do not open issues or pull requests regarding the code in React or | ||
Docusaurus (open them in their respective repositories). | ||
|
||
## Local setup | ||
|
||
To install jasper-ui: | ||
- npm install | ||
|
||
To install documentation page: | ||
- cd docusaurus && npm install | ||
|
||
To run storybook: | ||
- npm run storybook | ||
|
||
To run documentation page: | ||
- Run this in one terminal: | ||
- npm start | ||
- Run this in another terminal: | ||
- cd docusaurus && npm start | ||
|
||
## Testing | ||
|
||
To run all tests: | ||
- npm test | ||
|
||
To run test with coverage: | ||
- npm run test:coverage | ||
|
||
To run test and update snapshots: | ||
- npm run test:watch |
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,7 @@ | ||
[0828/162432.724:ERROR:scoped_process_suspend.cc(31)] NtSuspendProcess: An attempt was made to access an exiting process. (0xc000010a) | ||
[0828/162433.599:ERROR:process_info.cc(118)] ReadProcessMemory bool __cdecl crashpad::(anonymous namespace)::ReadStruct(HANDLE, crashpad::WinVMAddress, T *) [T = crashpad::process_types::PEB<crashpad::process_types::internal::Traits64>]: Only part of a ReadProcessMemory or WriteProcessMemory request was completed. (0x12B) | ||
[0828/162433.599:ERROR:process_info.cc(551)] ReadProcessData failed | ||
[0828/162433.599:ERROR:process_info.cc(118)] ReadProcessMemory bool __cdecl crashpad::(anonymous namespace)::ReadStruct(HANDLE, crashpad::WinVMAddress, T *) [T = crashpad::process_types::PEB<crashpad::process_types::internal::Traits64>]: Only part of a ReadProcessMemory or WriteProcessMemory request was completed. (0x12B) | ||
[0828/162433.599:ERROR:process_info.cc(551)] ReadProcessData failed | ||
[0828/162433.599:ERROR:exception_snapshot_win.cc(98)] thread ID 11836 not found in process | ||
[0828/162433.740:ERROR:scoped_process_suspend.cc(40)] NtResumeProcess: An attempt was made to access an exiting process. (0xc000010a) |
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,49 @@ | ||
--- | ||
id: carousel | ||
title: Carousel | ||
--- | ||
|
||
import { Carousel, Button, Card } from 'jasper-ui' | ||
|
||
Carousel is a list of cards that can be shuffled to display different content in a single space. | ||
Each card may consist of text, images, or both. | ||
|
||
### Usage | ||
Each card contains a different item that a user can browse from left and right. | ||
|
||
### Code | ||
```jsx | ||
const content1 = "/img/carousel-card-img.png" | ||
const content2 = "/img/carousel-card-img.png" | ||
const content3 = "/img/carousel-card-img.png" | ||
|
||
<Carousel | ||
prevButton={(<img src="/img/carousel-prev.svg" alt="prev button"/>)} | ||
nextButton={(<img src="/img/carousel-next.svg" alt="next button"/>)} | ||
> | ||
<div className="first-content" style={{ color: "blue" }}><img src={content1} alt="content 1" /></div> | ||
<div className="second-content" style={{ color: "yellow" }}><img src={content2} alt="content 2"/></div> | ||
<div className="third-content" style={{ color: "red" }}><img src={content3} alt="content 3"/></div> | ||
</Carousel> | ||
``` | ||
|
||
### Result | ||
<Carousel | ||
prevButton={(<img src="/img/carousel_prev.svg" alt="prev button"/>)} | ||
nextButton={(<img src="/img/carousel_next.svg" alt="next button"/>)} | ||
> | ||
<div className="first-content" style={{ color: "blue" }}>content 1</div> | ||
<div className="second-content" style={{ color: "yellow" }}>content 2</div> | ||
<div className="third-content" style={{ color: "red" }}>content 3</div> | ||
</Carousel> | ||
### Props | ||
|
||
| Prop name | Type | Mandatory/Optional | Description | | ||
|-----------|--------|--------------------|----------------------------------------------| | ||
| content# | Object | Mandatory | Carousel card (number determines card order) | | ||
|
||
| Key | Type | Mandatory/Optional | Description | | ||
|-----------|--------|--------------------|----------------------------| | ||
| style | String | Optional | Style of the card | | ||
| color | String | Optional | Color of the card | |
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,50 @@ | ||
--- | ||
id: footer | ||
title: Footer | ||
--- | ||
|
||
import { Footer } from '../../src/Footer/Docusaurus' | ||
|
||
Footer is a component that contains brief information about Compfest and also contacts that can be used to reach Compfest. There also an input field to contain user email, that can be used by users to subscribe to Compfest so will not get lost of updated news from Compfest. | ||
|
||
### Usage | ||
|
||
We use footer to tell user brief information about Compfest and which contact that can be used for users to reach Compfest. | ||
|
||
### Code | ||
|
||
```jsx | ||
import Facebook from "/img/Facebook.svg" | ||
import Instagram from "/img/Instagram.svg" | ||
import Line from "/img/Line.svg" | ||
import Twitter from "/img/twitter.svg" | ||
import Linkedin from "/img/LinkedIn.svg" | ||
import Youtube from "/img/youtube.svg" | ||
import Compfest from "/img/compfest-white.svg" | ||
|
||
<Footer | ||
Facebook={Facebook} | ||
Instagram={Instagram} | ||
Line={Line} | ||
Twitter={Twitter} | ||
LinkedIn={Linkedin} | ||
Youtube={Youtube} | ||
Compfest={Compfest} | ||
/> | ||
``` | ||
|
||
### Result | ||
|
||
<Footer Facebook='/img/Facebook.svg' Instagram='/img/Instagram.svg' Line='/img/Line.svg' Twitter='/img/twitter.svg' LinkedIn='/img/LinkedIn.svg' Youtube='/img/youtube.svg' Compfest='/img/compfest-white.svg' /> | ||
|
||
### Props | ||
|
||
| Prop name | Type | Mandatory/Optional | Description | | ||
| --------- | ------ | ------------------ | ------------------------------------------------------------------------------------------- | | ||
| Facebook | String | Mandatory | Path of Facebook SVG file that navigates to the Facebook account of Compfest when clicked | | ||
| Instagram | String | Mandatory | Path of Instagram SVG file that navigates to the Instagram account of Compfest when clicked | | ||
| Line | String | Mandatory | Path of Line SVG file that navigates to the Line account of Compfest when clicked | | ||
| Twitter | String | Mandatory | Path of Twitter SVG file that navigates to the Twitter account of Compfest when clicked | | ||
| LinkedIn | String | Mandatory | Path of LinkedIn SVG file that navigates to the LinkedIn account of Compfest when clicked | | ||
| Youtube | String | Mandatory | Path of Youtube SVG file that navigates to the Youtube account of Compfest when clicked | | ||
| Compfest | String | Mandatory | Path of Compfest logo SVG file | |
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.