-
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.
* enhancement(frontend) patched all ESLint issues and some changes * fix(global): fixed build problems in dashboard * fix(global): changed action to only fail when not formated * chore(global): formatted README.md * fix(actions): fixed codeql.yml --------- Co-authored-by: Zunw <[email protected]>
- Loading branch information
1 parent
e745128
commit 9df9226
Showing
28 changed files
with
452 additions
and
439 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,26 @@ | ||
name: Continuous Integration | ||
|
||
# This action works with pull requests and pushes | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- development | ||
|
||
jobs: | ||
prettier: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
# Make sure the actual branch is checked out when running on pull requests | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Prettify code | ||
uses: creyD/[email protected] | ||
with: | ||
dry: True | ||
prettier_options: --check **/*.{js,md,tsx,ts,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,26 @@ | ||
import React from 'react'; | ||
|
||
export const Button = ({ | ||
className = '', | ||
disabled, | ||
...props | ||
}: { | ||
className?: string; | ||
disabled?: boolean; | ||
} & React.ButtonHTMLAttributes<HTMLButtonElement>) => { | ||
const buttonClasses = `rounded-md border-transparent bg-amber-200 px-4 py-2 text-sm font-medium text-amber-900 ${ | ||
!disabled | ||
? 'hover:bg-amber-400 hover:border-transparent cursor-pointer' | ||
: '!cursor-default opacity-80' | ||
} transition duration-150 ease-in-out ${className}`; | ||
|
||
return <button className={buttonClasses.trim()} {...props}></button>; | ||
}; | ||
|
||
export const RequiredLabel = ({ text }: { text: string }) => { | ||
return ( | ||
<p className="text-sm text-gray-500"> | ||
{text}:<span className="text-red-600"> *</span> | ||
</p> | ||
); | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
import React from 'react'; | ||
import { ComponentPreview, Previews } from '@react-buddy/ide-toolbox-next'; | ||
import { PaletteTree } from './palette'; | ||
import Nav from '~/components/navbar/nav.component'; | ||
import Navbar from '~/components/navbar/navbar.component'; | ||
|
||
const ComponentPreviews = () => { | ||
return <Previews palette={<PaletteTree />}> | ||
<ComponentPreview path='/Nav'> | ||
<Nav /> | ||
</ComponentPreview> | ||
</Previews>; | ||
return ( | ||
<Previews palette={<PaletteTree />}> | ||
<ComponentPreview path="/Nav"> | ||
<Navbar /> | ||
</ComponentPreview> | ||
</Previews> | ||
); | ||
}; | ||
|
||
export default ComponentPreviews; |
Oops, something went wrong.
9df9226
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
shiperist – ./
heligion.vercel.app
shiperist-git-master-zzhorizonzz.vercel.app
shiperist-zzhorizonzz.vercel.app