-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #412 from janhq/setup/prettier
misc: setup prettier
- Loading branch information
Showing
158 changed files
with
3,046 additions
and
2,866 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,5 @@ | ||
.next/ | ||
node_modules/ | ||
dist/ | ||
*.hbs | ||
*.mdx |
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,8 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"quoteProps": "consistent", | ||
"trailingComma": "es5", | ||
"endOfLine": "lf", | ||
"plugins": ["prettier-plugin-tailwindcss"] | ||
} |
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,19 +1,19 @@ | ||
import { useAtomValue } from "jotai"; | ||
import React from "react"; | ||
import ModelTable from "../ModelTable"; | ||
import { activeAssistantModelAtom } from "@/_helpers/atoms/Model.atom"; | ||
import { useAtomValue } from 'jotai' | ||
import React from 'react' | ||
import ModelTable from '../ModelTable' | ||
import { activeAssistantModelAtom } from '@/_helpers/atoms/Model.atom' | ||
|
||
const ActiveModelTable: React.FC = () => { | ||
const activeModel = useAtomValue(activeAssistantModelAtom); | ||
const activeModel = useAtomValue(activeAssistantModelAtom) | ||
|
||
if (!activeModel) return null; | ||
if (!activeModel) return null | ||
|
||
return ( | ||
<div className="pl-[63px] pr-[89px]"> | ||
<h3 className="text-xl leading-[25px] mb-[13px]">Active Model(s)</h3> | ||
<h3 className="mb-[13px] text-xl leading-[25px]">Active Model(s)</h3> | ||
<ModelTable models={[activeModel]} /> | ||
</div> | ||
); | ||
}; | ||
) | ||
} | ||
|
||
export default ActiveModelTable; | ||
export default ActiveModelTable |
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,20 +1,20 @@ | ||
import React from "react"; | ||
import { useSetAtom } from "jotai"; | ||
import { ChevronLeftIcon } from "@heroicons/react/24/outline"; | ||
import { showingAdvancedPromptAtom } from "@/_helpers/atoms/Modal.atom"; | ||
import React from 'react' | ||
import { useSetAtom } from 'jotai' | ||
import { ChevronLeftIcon } from '@heroicons/react/24/outline' | ||
import { showingAdvancedPromptAtom } from '@/_helpers/atoms/Modal.atom' | ||
|
||
const BasicPromptButton: React.FC = () => { | ||
const setShowingAdvancedPrompt = useSetAtom(showingAdvancedPromptAtom); | ||
const setShowingAdvancedPrompt = useSetAtom(showingAdvancedPromptAtom) | ||
|
||
return ( | ||
<button | ||
onClick={() => setShowingAdvancedPrompt(false)} | ||
className="flex items-center mx-2 mt-3 mb-[10px] flex-none gap-1 text-xs leading-[18px] text-[#6B7280]" | ||
className="mx-2 mb-[10px] mt-3 flex flex-none items-center gap-1 text-xs leading-[18px] text-[#6B7280]" | ||
> | ||
<ChevronLeftIcon width={20} height={20} /> | ||
<span className="font-semibold text-gray-500 text-xs">BASIC PROMPT</span> | ||
<span className="text-xs font-semibold text-gray-500">BASIC PROMPT</span> | ||
</button> | ||
); | ||
}; | ||
) | ||
} | ||
|
||
export default React.memo(BasicPromptButton); | ||
export default React.memo(BasicPromptButton) |
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.