Merge pull request #92 from jsoref/spelling

spell/grammer corrections
This commit is contained in:
Nishchit
2023-10-01 14:38:03 +05:30
committed by GitHub
54 changed files with 75 additions and 75 deletions

View File

@@ -11,7 +11,7 @@
<p align="center"> <p align="center">
<a href="https://discord.gg/8hRaqhK"><img alt="Discord online members" src="https://badgen.net/discord/members/8hRaqhK?color=5865F2&label=Discord&style=for-the-badge" /></a> <a href="https://discord.gg/8hRaqhK"><img alt="Discord online members" src="https://badgen.net/discord/members/8hRaqhK?color=5865F2&label=Discord&style=for-the-badge" /></a>
<a href="https://github.com/firecamp-dev/firecamp/stargazers"><img src="https://img.shields.io/github/stars/firecamp-dev/firecamp" alt="Github Stars"></a> <a href="https://github.com/firecamp-dev/firecamp/stargazers"><img src="https://img.shields.io/github/stars/firecamp-dev/firecamp" alt="GitHub Stars"></a>
<a href="https://github.com/firecamp-dev/firecamp/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-AGPLv3-purple" alt="License"></a> <a href="https://github.com/firecamp-dev/firecamp/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-AGPLv3-purple" alt="License"></a>
<a href="https://github.com/firecamp-dev/firecamp/pulse"><img src="https://img.shields.io/github/commit-activity/y/firecamp-dev/firecamp" alt="Commits-per-month"></a> <a href="https://github.com/firecamp-dev/firecamp/pulse"><img src="https://img.shields.io/github/commit-activity/y/firecamp-dev/firecamp" alt="Commits-per-month"></a>
</p> </p>

View File

@@ -27,7 +27,7 @@ jobs:
with: with:
path: 'package.json' path: 'package.json'
prop_path: 'version' prop_path: 'version'
- name: Create Github Release - name: Create GitHub Release
uses: actions/create-release@v1 uses: actions/create-release@v1
env: env:
GITHUB_TOKEN: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}

View File

@@ -27,7 +27,7 @@ const EnvironmentTab = ({ tab, platformContext: context }) => {
const initEnv = _cloneDeep({ ...tab.entity, variables: [] }); const initEnv = _cloneDeep({ ...tab.entity, variables: [] });
const originalEnvs = useRef({ const originalEnvs = useRef({
/** runtimeEnv.variables will have the initialValue and currentValue (merge of remote & local) /** runtimeEnv.variables will have the initialValue and currentValue (merge of remote & local)
* @note runtimeEnv.variables=[] thus we don;t need to manage initialValue andd currentValue at initialisation time * @note runtimeEnv.variables=[] thus we don;t need to manage initialValue and currentValue at initialisation time
*/ */
runtimeEnv: _cloneDeep(initEnv), runtimeEnv: _cloneDeep(initEnv),
remoteEnv: _cloneDeep(initEnv), remoteEnv: _cloneDeep(initEnv),

View File

@@ -19,7 +19,7 @@
font-size: 16px font-size: 16px
text-transform: uppercase text-transform: uppercase
.authentication-modal-devider:before .authentication-modal-divider:before
content: 'OR' content: 'OR'
background: var(--app-background) background: var(--app-background)
font-size: 12px font-size: 12px
@@ -28,7 +28,7 @@
padding: 8px padding: 8px
left: calc(50% - 18px) left: calc(50% - 18px)
.authentication-modal-devider .authentication-modal-divider
position: relative position: relative
margin-top: 40px margin-top: 40px
margin-bottom: 20px margin-bottom: 20px
@@ -147,7 +147,7 @@
.fc-auth-header>.fc-button .fc-auth-header>.fc-button
margin-bottom: 16px margin-bottom: 16px
.fc-auth-devider:before .fc-auth-divider:before
content: 'OR' content: 'OR'
background: var(--app-background) background: var(--app-background)
font-size: 12px font-size: 12px
@@ -156,12 +156,12 @@
padding: 8px padding: 8px
left: calc(50% - 18px) left: calc(50% - 18px)
.fc-auth-devider .fc-auth-divider
position: relative position: relative
margin-top: 40px margin-top: 40px
margin-bottom: 20px margin-bottom: 20px
.fc-auth-devider.mt-24 .fc-auth-divider.mt-24
margin-top: 24px !important margin-top: 24px !important
.fc-auth-input-link a .fc-auth-input-link a

View File

@@ -11,7 +11,7 @@ import { useUserStore } from '../../../store/user';
// TODO: add isSubmitted to check and prevent multiple click on submit button // TODO: add isSubmitted to check and prevent multiple click on submit button
/** /**
* RefreshToken component for user to autenticate. * RefreshToken component for user to authenticate.
*/ */
const RefreshToken: FC<IModal> = ({ opened, onClose = () => { } }) => { const RefreshToken: FC<IModal> = ({ opened, onClose = () => { } }) => {
return ( return (

View File

@@ -426,7 +426,7 @@ export const useExplorerStore = create<IWorkspaceStore>(
set((s) => { set((s) => {
s.explorer.tdpInstance?.updateFolderItem(folder); s.explorer.tdpInstance?.updateFolderItem(folder);
const folders = s.explorer.folders.map((f) => { const folders = s.explorer.folders.map((f) => {
if (f.__ref.id == folder.__ref.id) f = { ...f, name: folder.name }; //note: this condition is used considering only renaming usecase if (f.__ref.id == folder.__ref.id) f = { ...f, name: folder.name }; //note: this condition is used considering only renaming use case
return f; return f;
}); });
return { explorer: { ...s.explorer, folders } }; return { explorer: { ...s.explorer, folders } };

View File

@@ -39,7 +39,7 @@ const Aws: FC<IAws> = ({ auth, onChange = () => {} }) => {
dirtyInputs[input.id] && dirtyInputs[input.id] &&
!auth?.[input.id as keyof IAuthAwsV4]?.length !auth?.[input.id as keyof IAuthAwsV4]?.length
) { ) {
errorMsg = `${input.name} can not be empty`; errorMsg = `${input.name} cannot be empty`;
} }
return ( return (
<div <div

View File

@@ -38,7 +38,7 @@ const Basic: FC<IBasic> = ({ auth, onChange = () => {} }) => {
dirtyInputs[input.id] && dirtyInputs[input.id] &&
!auth?.[input.id as keyof IAuthBasic]?.length !auth?.[input.id as keyof IAuthBasic]?.length
) { ) {
errorMsg = `${input.name} can not be empty`; errorMsg = `${input.name} cannot be empty`;
} }
return ( return (
<div <div

View File

@@ -36,7 +36,7 @@ const Bearer: FC<IBearer> = ({ auth, onChange = () => {} }) => {
dirtyInputs[input.id] && dirtyInputs[input.id] &&
!auth?.[input.id as keyof IAuthBearer]?.length !auth?.[input.id as keyof IAuthBearer]?.length
) { ) {
errorMsg = `${input.name} can not be empty`; errorMsg = `${input.name} cannot be empty`;
} }
return ( return (
<div <div

View File

@@ -58,7 +58,7 @@ const Digest: FC<IDigest> = ({
dirtyInputs[input.id] && dirtyInputs[input.id] &&
!auth?.[input.id as keyof IAuthDigest]?.length !auth?.[input.id as keyof IAuthDigest]?.length
) { ) {
errorMsg = `${input.name} can not be empty`; errorMsg = `${input.name} cannot be empty`;
} }
return ( return (
<div <div
@@ -123,7 +123,7 @@ const Digest: FC<IDigest> = ({
onSelect={(algorithm) => { onSelect={(algorithm) => {
_onSelectAlgorithm(algorithm?.name); _onSelectAlgorithm(algorithm?.name);
}} }}
selected={auth['algorithm'] || 'MD5'} //defalut "MD5" selected={auth['algorithm'] || 'MD5'} //default "MD5"
classNames={{ classNames={{
trigger: 'mb-[10px]', trigger: 'mb-[10px]',
dropdown: 'border-focusBorder !py-0 -mt-[10px]', dropdown: 'border-focusBorder !py-0 -mt-[10px]',

View File

@@ -43,7 +43,7 @@ const Hawk: FC<IHawk> = ({ auth = {}, onChange = () => {} }) => {
// console.log('isDirty', isDirty, "errorMsg", errorMsg) // console.log('isDirty', isDirty, "errorMsg", errorMsg)
let errorMsg = ''; let errorMsg = '';
if (dirtyInputs[input.id] && !auth?.[input.id]?.length) { if (dirtyInputs[input.id] && !auth?.[input.id]?.length) {
errorMsg = `${input.name} can not be empty`; errorMsg = `${input.name} cannot be empty`;
} }
return ( return (
<div <div

View File

@@ -33,7 +33,7 @@ const Ntlm: FC<INtlm> = ({ auth = {}, onChange = () => {} }) => {
{inputList.map((input, i) => { {inputList.map((input, i) => {
let errorMsg = ''; let errorMsg = '';
if (dirtyInputs[input.id] && !auth[Ntlm][input.id]?.length) { if (dirtyInputs[input.id] && !auth[Ntlm][input.id]?.length) {
errorMsg = `${input.name} can not be empty`; errorMsg = `${input.name} cannot be empty`;
} }
return ( return (
<div <div

View File

@@ -61,7 +61,7 @@ const OAuth1: FC<IOAuth1Comp> = ({ auth, onChange = () => {} }) => {
dirtyInputs[input.id] && dirtyInputs[input.id] &&
!auth?.[input.id as keyof IOAuth1]?.length !auth?.[input.id as keyof IOAuth1]?.length
) { ) {
errorMsg = `${input.name} can not be empty`; errorMsg = `${input.name} cannot be empty`;
} }
return ( return (
<div <div
@@ -121,7 +121,7 @@ const OAuth1: FC<IOAuth1Comp> = ({ auth, onChange = () => {} }) => {
onSelect={(method) => { onSelect={(method) => {
_onSelectSignatureMethod(method?.name); _onSelectSignatureMethod(method?.name);
}} }}
selected={auth['signatureMethod'] || 'HMAC-SHA1'} //defalut "HMAC-SHA1" selected={auth['signatureMethod'] || 'HMAC-SHA1'} //default "HMAC-SHA1"
classNames={{ classNames={{
trigger: 'mb-[10px]', trigger: 'mb-[10px]',
dropdown: 'border-focusBorder !py-0 -mt-[10px]', dropdown: 'border-focusBorder !py-0 -mt-[10px]',

View File

@@ -106,7 +106,7 @@ const OAuth2: FC<IOAuth2Comp> = ({
dirtyInputs[input.id] && dirtyInputs[input.id] &&
!grantTypes[activeGrantType][input.id]?.length !grantTypes[activeGrantType][input.id]?.length
) { ) {
errorMsg = `${input.name} can not be empty`; errorMsg = `${input.name} cannot be empty`;
} }
return ( return (
<div <div
@@ -212,7 +212,7 @@ export default OAuth2;
interface IOAuth2Comp { interface IOAuth2Comp {
auth: IUiOAuth2; auth: IUiOAuth2;
/** update auth value for auth tyoe OAuth2 */ /** update auth value for auth type OAuth2 */
onChangeOAuth2Value: (key: string, updates: any) => void; onChangeOAuth2Value: (key: string, updates: any) => void;
/** OAuth2 previous/ last fetched token */ /** OAuth2 previous/ last fetched token */

View File

@@ -86,7 +86,7 @@ const Template = (args) => {
}] }]
} }
onSelect={item => { onSelect={item => {
setSelected(item.name || 'oopss...') setSelected(item.name || 'oops...')
}} /> }} />
</Dropdown> </Dropdown>
) )

View File

@@ -84,7 +84,7 @@ const DropDownDemo = (args: any) => {
hasDivider={true} hasDivider={true}
options={DropDownDemoArgs.options} options={DropDownDemoArgs.options}
onSelect={item => { onSelect={item => {
setSelected(item.name || 'oopss...') setSelected(item.name || 'oops...')
}} /> }} />
</Dropdown> </Dropdown>
) )

View File

@@ -154,7 +154,7 @@ const Options: FC<IOptions> = ({
{headerMeta?.postfix ? headerMeta.postfix() : ''} {headerMeta?.postfix ? headerMeta.postfix() : ''}
</MenuHeader>, </MenuHeader>,
// Oprion list, show empty mes // Option list, show empty mes
option?.list?.length option?.list?.length
? option?.list?.map((item, i) => { ? option?.list?.map((item, i) => {
return ( return (

View File

@@ -62,7 +62,7 @@ export interface IOptions {
*/ */
hasDivider?: boolean; hasDivider?: boolean;
/** /**
* Boolean value to show options in upppercase * Boolean value to show options in uppercase
*/ */
applyUpperCase?: boolean; applyUpperCase?: boolean;
/** /**
@@ -170,7 +170,7 @@ export interface IItem {
*/ */
export interface IHeaderMeta { export interface IHeaderMeta {
/** /**
* Boolean value to show header in upppercase * Boolean value to show header in uppercase
*/ */
applyUpperCase?: boolean; applyUpperCase?: boolean;
/** /**

View File

@@ -1,5 +1,5 @@
//@ts-ignore // TODO: install graphql as devDep type package //@ts-ignore // TODO: install graphql as devDep type package
import { GraphQLSchema } from 'graghql'; import { GraphQLSchema } from 'graphql';
export interface ICMGQueryEditor { export interface ICMGQueryEditor {
/** /**
* Editor query string * Editor query string

View File

@@ -89,7 +89,7 @@ const CMGQueryEditor: FC<ICMGQueryEditor> = ({
gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter'] gutters: ['CodeMirror-linenumbers', 'CodeMirror-foldgutter']
}} }}
onChange={(editor, data, value) => { onChange={(editor, data, value) => {
// console.log("editor chnage", data, value); // console.log("editor change", data, value);
// onChangeQuery(value) // onChangeQuery(value)
}} }}
onKeyUp={(editor: any, e: any) => { onKeyUp={(editor: any, e: any) => {

View File

@@ -308,7 +308,7 @@ const SingleLineEditor: FC<IEditor & TSLEditor> = ({
scrollbar: { scrollbar: {
horizontal: 'hidden', horizontal: 'hidden',
vertical: 'hidden', vertical: 'hidden',
// avoid can not scroll page when hover monaco // avoid cannot scroll page when hover monaco
alwaysConsumeMouseWheel: false, alwaysConsumeMouseWheel: false,
}, },
// disable `Find` // disable `Find`
@@ -354,7 +354,7 @@ const SingleLineEditor: FC<IEditor & TSLEditor> = ({
value = type === 'number' ? '' + value : value; value = type === 'number' ? '' + value : value;
/** /**
* 1. Check if number or not, if number then convert to string and show * 1. Check if number or not, if number then convert to string and show
* 2. Convert multiline string in to single line * 2. Convert multiline string into single line
*/ */
// value = value.replace(/[\n\r]/g, ''); // value = value.replace(/[\n\r]/g, '');

View File

@@ -65,7 +65,7 @@ export default (variables, scopes = { workspace: [], project: [] }) => ({
let v = { let v = {
sample: previewVar, sample: previewVar,
scope: 'Mock Variable', scope: 'Mock Variable',
descriton: 'This value can be changes on runtime', description: 'This value can be changes on runtime',
}; };
// let sv = JSON.stringify(v, 2, 2); // let sv = JSON.stringify(v, 2, 2);
// previewSliceOne = { value: '```js \n' + sv + '\n ```', supportThemeIcons: true }; // previewSliceOne = { value: '```js \n' + sv + '\n ```', supportThemeIcons: true };

View File

@@ -55,7 +55,7 @@ export default {
// [/[;,.]/, "delimiter"], // [/[;,.]/, "delimiter"],
// // strings // // strings
// [/"([^"\\]|\\.)*$/, "string.invalid"], // [/"([^"\\]|\\.)*$/, "string.invalid"],
// // non-teminated string // // non-terminated string
// [/"/, { token: "string.quote", bracket: "@open", next: "@string" }], // [/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
// // characters // // characters
// [/'[^\\']'/, "string"], // [/'[^\\']'/, "string"],

View File

@@ -165,7 +165,7 @@ const FirecampEditor: FC<IFirecampEditor> = ({
let _controlFns = { let _controlFns = {
copy: () => { copy: () => {
// cusotm copy code here // custom copy code here
try { try {
if (editorRef.current) { if (editorRef.current) {
let text = editorRef.current.getValue(); let text = editorRef.current.getValue();

View File

@@ -42,7 +42,7 @@ const SingleLineIFE: FC<ISingleLineIFE> = ({
}, []); }, []);
useEffect(() => { useEffect(() => {
// console.log("I am rednding too often...."); // console.log("I am rendering too often....");
}); });
let _onMount = (edt: any, monaco: any) => { let _onMount = (edt: any, monaco: any) => {
@@ -85,7 +85,7 @@ const SingleLineIFE: FC<ISingleLineIFE> = ({
et.setSelection(range); et.setSelection(range);
et.focus(); et.focus();
} else { } else {
//todo: this is experimental, if no Editor ref found then blur it naturaly with Browser DOM API //todo: this is experimental, if no Editor ref found then blur it naturally with Browser DOM API
document.activeElement.blur(); document.activeElement.blur();
document.activeElement.blur(); document.activeElement.blur();
document.activeElement.blur(); document.activeElement.blur();
@@ -149,7 +149,7 @@ const SingleLineIFE: FC<ISingleLineIFE> = ({
et.setSelection(range); et.setSelection(range);
et.focus(); et.focus();
} else { } else {
//todo: this is experimental, if no Editor ref found then blur it naturaly with Browser DOM API //todo: this is experimental, if no Editor ref found then blur it naturally with Browser DOM API
document.activeElement.blur(); document.activeElement.blur();
document.activeElement.blur(); document.activeElement.blur();
document.activeElement.blur(); document.activeElement.blur();
@@ -275,7 +275,7 @@ const SingleLineIFE: FC<ISingleLineIFE> = ({
value: value:
/** /**
* 1. Check if number or not, if number then convert to string and show * 1. Check if number or not, if number then convert to string and show
* 2. Convert multiline string in to single line * 2. Convert multiline string into single line
*/ */
( (
'' + (type === 'number' ? value.toString() || '' : value || '') '' + (type === 'number' ? value.toString() || '' : value || '')

View File

@@ -39,7 +39,7 @@ export default {
}, },
{ {
name: 'limit', name: 'limit',
description: 'limit the nuber of rows returned', description: 'limit the number of rows returned',
type: { type: {
kind: 'SCALAR', kind: 'SCALAR',
name: 'Int', name: 'Int',
@@ -130,7 +130,7 @@ export default {
}, },
{ {
name: 'limit', name: 'limit',
description: 'limit the nuber of rows returned', description: 'limit the number of rows returned',
type: { type: {
kind: 'SCALAR', kind: 'SCALAR',
name: 'Int', name: 'Int',
@@ -9261,7 +9261,7 @@ export default {
}, },
{ {
name: 'limit', name: 'limit',
description: 'limit the nuber of rows returned', description: 'limit the number of rows returned',
type: { type: {
kind: 'SCALAR', kind: 'SCALAR',
name: 'Int', name: 'Int',
@@ -9352,7 +9352,7 @@ export default {
}, },
{ {
name: 'limit', name: 'limit',
description: 'limit the nuber of rows returned', description: 'limit the number of rows returned',
type: { type: {
kind: 'SCALAR', kind: 'SCALAR',
name: 'Int', name: 'Int',

View File

@@ -1,4 +1,4 @@
//@ts-nocheckh //@ts-nocheck
import { FC } from 'react'; import { FC } from 'react';
import cx from 'classnames'; import cx from 'classnames';
import { IColumn } from './interfaces/Column.interfaces'; import { IColumn } from './interfaces/Column.interfaces';

View File

@@ -9,7 +9,7 @@ import { IRootContainer } from "./interfaces/RootContainer.interfaces"
* Container * Container
* @param id: <type: String>// copy button id * @param id: <type: String>// copy button id
* @param className: <type: String>, * @param className: <type: String>,
* @param children: <type: String>// If user needs to pass childern * @param children: <type: String>// If user needs to pass children
* @param style: <type: String> * @param style: <type: String>
* @returns {*} * @returns {*}
* @constructor * @constructor

View File

@@ -1,6 +1,6 @@
export interface IHelp { export interface IHelp {
/** /**
* Feature documenation link * Feature documentation link
*/ */
docLink? : string docLink? : string
/** /**

View File

@@ -46,7 +46,7 @@ export interface IConfirmationPopover {
onConfirm?: () => void; onConfirm?: () => void;
/** /**
* To toggle the the confirmation display as open/close & need to pass detach as false * To toggle the confirmation display as open/close & need to pass detach as false
*/ */
isOpen?: boolean; isOpen?: boolean;

View File

@@ -138,7 +138,7 @@ const Tabs: FC<IResTabs> = ({
export default Tabs; export default Tabs;
const ScriptErrors = ({ errors = [] }) => { const ScriptErrors = ({ errors = [] }) => {
console.log(errors, 'erros..... errors'); console.log(errors, 'errors..... errors');
return ( return (
<div className=' w-full bg-app-background'> <div className=' w-full bg-app-background'>
{errors.map((e, i) => ( {errors.map((e, i) => (

View File

@@ -25,7 +25,7 @@ const ScriptTab: FC<IProps> = ({
<Container.Body className="flex flex-col"> <Container.Body className="flex flex-col">
<TabHeader className="bg-statusBar-background-active"> <TabHeader className="bg-statusBar-background-active">
<div className="text-sm"> <div className="text-sm">
Pre-request script are written in Javascript and are run before the Pre-request script are written in JavaScript and are run before the
request is sent. request is sent.
{/* Learn more about {/* Learn more about
<a <a

View File

@@ -145,7 +145,7 @@ describe('Table : ', () => {
//table column resize logic : column width is updating along with resizer div's offsetLeft value //table column resize logic : column width is updating along with resizer div's offsetLeft value
const resizerElement = columnResizer[moveElementWidthIndex]; const resizerElement = columnResizer[moveElementWidthIndex];
const intialColumnWidth = parseInt( const initialColumnWidth = parseInt(
resizerElement.parentElement.style.minWidth resizerElement.parentElement.style.minWidth
); );
const columnMouseMoveOffset = [ const columnMouseMoveOffset = [
@@ -159,7 +159,7 @@ describe('Table : ', () => {
resizerElement.parentElement.style.minWidth resizerElement.parentElement.style.minWidth
); );
expect(updatedColumnWidth).toBeGreaterThan(intialColumnWidth); expect(updatedColumnWidth).toBeGreaterThan(initialColumnWidth);
} }
}); });

View File

@@ -9,7 +9,7 @@ Table : To create custom table, in which primitive/Table is core component
#### **Component Usage**: #### **Component Usage**:
To use exisitng BasicTable component To use existing BasicTable component
- Create columns[ ] for table & provide as prop to <BasicTable/> - Create columns[ ] for table & provide as prop to <BasicTable/>

View File

@@ -49,7 +49,7 @@ describe('Table : ', () => {
expect(updatedMountedRow).toHaveLength(initialMountedRow.length + 1); expect(updatedMountedRow).toHaveLength(initialMountedRow.length + 1);
}); });
test('Table should render components based on column id provied', async () => { test('Table should render components based on column id provided', async () => {
// ColumnId - value : MultipartInput component // ColumnId - value : MultipartInput component
// validate the icon & checking its icon click event // validate the icon & checking its icon click event
// validate the icon input fields available based on type update // validate the icon input fields available based on type update

View File

@@ -3,7 +3,7 @@ import { FocusEventHandler, MouseEventHandler, ReactNode } from 'react';
/** Table options */ /** Table options */
export interface ITableOptions { export interface ITableOptions {
/** disabled column's keys. One can not edit within the column included in to disabledColumns */ /** disabled column's keys. One cannot edit within the column included in disabledColumns */
disabledColumns?: Array<string>; disabledColumns?: Array<string>;
/** a boolean value whether allow to remove row or not */ /** a boolean value whether allow to remove row or not */

View File

@@ -12,7 +12,7 @@ export interface ISecondaryTab {
*/ */
activeTab?: string; activeTab?: string;
/** /**
* Boolean value if you wnat to set tab background transpetant or not * Boolean value if you wnat to set tab background transparent or not
*/ */
isBgTransparent?: boolean; isBgTransparent?: boolean;
/** /**

View File

@@ -52,8 +52,8 @@ import { Meta, ColorPalette, ColorItem } from '@storybook/addon-docs';
| .fc-empty.center-block | to update the display as flex | | .fc-empty.center-block | to update the display as flex |
| .request-tab-wrapper | to update the width | | .request-tab-wrapper | to update the width |
| .fc-urlbar-path,.fc-tab-panel-info > span,.fc-history-req-list-item-url-text,.collection_leaf-node-name | to update the text for user selection | | .fc-urlbar-path,.fc-tab-panel-info > span,.fc-history-req-list-item-url-text,.collection_leaf-node-name | to update the text for user selection |
| .expandable-right-pane | to add the transform propertyy for right pane | | .expandable-right-pane | to add the transform property for right pane |
| .expandable-right-pane.expanded | to update the tranformation of scaleX property | | .expandable-right-pane.expanded | to update the transformation of scaleX property |
| .dropzone-wrapper > .dropzone | to update the display for dropzone | | .dropzone-wrapper > .dropzone | to update the display for dropzone |
| Classname [themes preview] | Description | | Classname [themes preview] | Description |
@@ -71,7 +71,7 @@ import { Meta, ColorPalette, ColorItem } from '@storybook/addon-docs';
| ------------------------------------------------------------------- | ------------------------------------------------------------------ | | ------------------------------------------------------------------- | ------------------------------------------------------------------ |
| .fc-form label | to set the size of all form label | | .fc-form label | to set the size of all form label |
| .fc-form .row>label | to update the padding right for label in row parent | | .fc-form .row>label | to update the padding right for label in row parent |
| .grid.fc-form > div > label | to update the styles for label exisitng within grid parent element | | .grid.fc-form > div > label | to update the styles for label existing within grid parent element |
| .fc-form-field-group | to update the preview for label text | | .fc-form-field-group | to update the preview for label text |
| .fc-form-field-group span | to update the preview for span text wrapped in label element | | .fc-form-field-group span | to update the preview for span text wrapped in label element |
| .fc-form input,.fc-form select | to set the styles for form input & select element | | .fc-form input,.fc-form select | to set the styles for form input & select element |
@@ -96,7 +96,7 @@ import { Meta, ColorPalette, ColorItem } from '@storybook/addon-docs';
| .table.border-0 .table-row .table-cell:first-child | to remove the border left | | .table.border-0 .table-row .table-cell:first-child | to remove the border left |
| .table.border-0 .table-row .table-cell:last-child | to remove the border right | | .table.border-0 .table-row .table-cell:last-child | to remove the border right |
| -- | -- | | -- | -- |
| .response-headers-table,.response-cookies-table | to update display propterty as table | | .response-headers-table,.response-cookies-table | to update display property as table |
| .response-headers-table>div,.response-cookies-table>div | to update the first div (header) & set display as table-row | | .response-headers-table>div,.response-cookies-table>div | to update the first div (header) & set display as table-row |
| .response-headers-table>div>div,.response-cookies-table>div>div | to update styles for nested divs' of table header & set display as table cell | | .response-headers-table>div>div,.response-cookies-table>div>div | to update styles for nested divs' of table header & set display as table cell |
| .response-headers-table>div:first-child,.response-cookies-table>div:first-child | to update the column background color & heading as bold | | .response-headers-table>div:first-child,.response-cookies-table>div:first-child | to update the column background color & heading as bold |
@@ -119,7 +119,7 @@ import { Meta, ColorPalette, ColorItem } from '@storybook/addon-docs';
| .fc-tab-panel-header.fc-collapse-btn-v3 > .fc-tab-panel-header-right | to update the position & styles of right sub-component within tab header | | .fc-tab-panel-header.fc-collapse-btn-v3 > .fc-tab-panel-header-right | to update the position & styles of right sub-component within tab header |
| .fc-collapsable > .fc-collapse-btn-v3 | to update the display property as none for v3 | | .fc-collapsable > .fc-collapse-btn-v3 | to update the display property as none for v3 |
| .fc-collapsed-v3 | to update the width for collapsed v3 resizable element | | .fc-collapsed-v3 | to update the width for collapsed v3 resizable element |
| .fc-col-resizer.fc-collapsed.fc-collapsed-v3.fc-collapsable.left | to update border left propterty for left sub-component | | .fc-col-resizer.fc-collapsed.fc-collapsed-v3.fc-collapsable.left | to update border left property for left sub-component |
| .fc-collapsed > .fc-collapse-btn, .fc-collapsed ~ div .fc-collapse-btn | to transform the button rotation to 180deg | | .fc-collapsed > .fc-collapse-btn, .fc-collapsed ~ div .fc-collapse-btn | to transform the button rotation to 180deg |
| .fc-collapsed > .fc-collapse-btn.fc-collapse-btn-v2, .fc-collapsed ~ div .fc-collapse-btn.fc-collapse-btn-v2 | to transform the button rotation to 0deg with more importance | | .fc-collapsed > .fc-collapse-btn.fc-collapse-btn-v2, .fc-collapsed ~ div .fc-collapse-btn.fc-collapse-btn-v2 | to transform the button rotation to 0deg with more importance |
| .fc-collapsed > .fc-collapse-btn.fc-collapse-btn-v2 > span, .fc-collapsed ~ div .fc-collapse-btn.fc-collapse-btn-v2 > span | to transform the button rotation to 180deg | | .fc-collapsed > .fc-collapse-btn.fc-collapse-btn-v2 > span, .fc-collapsed ~ div .fc-collapse-btn.fc-collapse-btn-v2 > span | to transform the button rotation to 180deg |

View File

@@ -253,7 +253,7 @@ ${print(GraphQLParse(`query MyQuery{__typename }`))}`;
// debugger; // debugger;
/** /**
* if playground is being updated from external sources (like explorer) then It's default cursor position is always reset to last line * if playground is being updated from external sources (like explorer) then It's default cursor position is always reset to last line
* due to that currentOperation (query) will reset to last query of the the playground. and Explorer's feed will changes suddenly at last query. * due to that currentOperation (query) will reset to last query of the playground. and Explorer's feed will changes suddenly at last query.
* to avoid it, if it founds cursor at last line then set current active query to get the same currentOperation from the GraphQLService * to avoid it, if it founds cursor at last line then set current active query to get the same currentOperation from the GraphQLService
**/ **/
// if (cursor.line == lastLineNo) { // if (cursor.line == lastLineNo) {

View File

@@ -19,7 +19,7 @@ const Controls = ({ isQueryDirty, toggleQueryDirty }) => {
setAddNewQueryMessage(``); setAddNewQueryMessage(``);
} else { } else {
setAddNewQueryMessage( setAddNewQueryMessage(
`You have not saved quries to collection! Are you sure you want to reset?` `You have not saved queries to collection! Are you sure you want to reset?`
); );
} }
}; };

View File

@@ -123,8 +123,8 @@ export const getPlaygroundName = (value: string) => {
}; };
return ops.reduce((p, n) => { return ops.reduce((p, n) => {
console.log(p, 1213); console.log(p, 1213);
const separetor = p ? '___' : ''; const separator = p ? '___' : '';
return `${p}${separetor}${opsMap[n.operation]}_${n?.name.value || 'Query'}`; return `${p}${separator}${opsMap[n.operation]}_${n?.name.value || 'Query'}`;
}, ''); }, '');
}; };

View File

@@ -29,7 +29,7 @@ interface IRequestChangeStateSlice {
*/ */
disposeRCS: () => void; disposeRCS: () => void;
} }
//@note; always use _cloneDeep at its usage otherrwise it's value will be manipulate at global scope //@note; always use _cloneDeep at its usage otherwise its value will be manipulate at global scope
const initialSliceState = { const initialSliceState = {
requestChangeState: { requestChangeState: {
url: [], url: [],

View File

@@ -17,7 +17,7 @@ interface ICollection {
folders?: Partial<IRequestFolder & { __ref: { isFolder?: boolean } }>[]; folders?: Partial<IRequestFolder & { __ref: { isFolder?: boolean } }>[];
/** /**
* incase the number on each action/event happens within collection * incase the number on each action/event happens within collection
* react component will not re-render when tdpInstance will change in store, at that time update __manualUpdates to re-render the compoenent * react component will not re-render when tdpInstance will change in store, at that time update __manualUpdates to re-render the component
*/ */
__manualUpdates?: number; __manualUpdates?: number;
} }

View File

@@ -307,7 +307,7 @@ export const createPlaygroundsSlice: TStoreSlice<IPlaygroundsSlice> = (
}); });
}, },
/** undo changes and reset the the previously saved plg's state */ /** undo changes and reset the previously saved plg's state */
undoPlaygroundChanges: (playgroundId: string) => { undoPlaygroundChanges: (playgroundId: string) => {
if (!playgroundId) return; if (!playgroundId) return;
set((s) => { set((s) => {

View File

@@ -30,7 +30,7 @@ interface IRequestChangeStateSlice {
*/ */
disposeRCS: () => void; disposeRCS: () => void;
} }
//@note; always use _cloneDeep at its usage otherwise it's value will be manipulate at global scope //@note; always use _cloneDeep at its usage otherwise its value will be manipulate at global scope
const initialSliceState = { const initialSliceState = {
requestChangeState: { requestChangeState: {
url: [], url: [],

View File

@@ -152,7 +152,7 @@ const createRequestSlice: TStoreSlice<IRequestSlice> = (
// if request is saved then simply update the url with old value, ignore paste curl // if request is saved then simply update the url with old value, ignore paste curl
if (request.__ref?.collectionId) { if (request.__ref?.collectionId) {
state.context.app.notify.alert( state.context.app.notify.alert(
'You can not paste the CURL snippet onto the saved request, please open a new empty request tab instead.' 'You cannot paste the CURL snippet onto the saved request, please open a new empty request tab instead.'
); );
// console.log(url, 787798789); // console.log(url, 787798789);
state.changeUrl({ ...url, raw: url.raw.replace(snippet, '') }); state.changeUrl({ ...url, raw: url.raw.replace(snippet, '') });

View File

@@ -70,7 +70,7 @@ const Socket = ({ tab, platformContext }) => {
const requestId = tab.entity?.__ref?.id; const requestId = tab.entity?.__ref?.id;
const isRequestSaved = !!requestId; const isRequestSaved = !!requestId;
// prepare a minimal request payload // prepare a minimal request payload
let _request = { collection: { folders: [], items: [] } }; // initialise will normalize the reuqest to prepare minimal request for tab let _request = { collection: { folders: [], items: [] } }; // initialise will normalize the request to prepare minimal request for tab
if (isRequestSaved === true) { if (isRequestSaved === true) {
toggleFetchingReqFlag(true); toggleFetchingReqFlag(true);

View File

@@ -37,7 +37,7 @@ const BodyControls = ({ tabId = '', path = '', addNewEmitter = () => {} }) => {
</div> </div>
</StatusBar.PrimaryRegion> </StatusBar.PrimaryRegion>
<StatusBar.SecondaryRegion> <StatusBar.SecondaryRegion>
{/* <ShortcutsInfo tidabId={tabId} /> */} {/* <ShortcutsInfo tabId={tabId} /> */}
</StatusBar.SecondaryRegion> </StatusBar.SecondaryRegion>
</StatusBar> </StatusBar>
<TabHeader className="padding-small height-small collection-path-wrapper"> <TabHeader className="padding-small height-small collection-path-wrapper">

View File

@@ -30,7 +30,7 @@ interface IRequestChangeStateSlice {
disposeRCS: () => void; disposeRCS: () => void;
} }
//@note; always use _cloneDeep at its usage other wise it's value will be manipulated at global scope reference //@note; always use _cloneDeep at its usage otherwise its value will be manipulated at global scope reference
const initialSliceState = { const initialSliceState = {
requestChangeState: { requestChangeState: {
url: [], url: [],

View File

@@ -89,7 +89,7 @@ const createHandleConnectionExecutor: TStoreSlice<
// connect // connect
executor.connect(); executor.connect();
// set executor in to playground // set executor in playground
state.setPlgExecutor(executor); state.setPlgExecutor(executor);
// listen to on connect listener // listen to on connect listener

View File

@@ -79,7 +79,7 @@ const WebSocket = ({ tab, platformContext }) => {
const requestId = tab.entity?.__ref?.id; const requestId = tab.entity?.__ref?.id;
const isRequestSaved = !!requestId; const isRequestSaved = !!requestId;
// prepare a minimal request payload // prepare a minimal request payload
let _request = { collection: { folders: [], items: [] } }; // initialise will normalize the reuqest to prepare minimal request for tab let _request = { collection: { folders: [], items: [] } }; // initialise will normalize the request to prepare minimal request for tab
if (isRequestSaved === true) { if (isRequestSaved === true) {
toggleFetchingReqFlag(true); toggleFetchingReqFlag(true);

View File

@@ -31,7 +31,7 @@ interface IRequestChangeStateSlice {
disposeRCS: () => void; disposeRCS: () => void;
} }
//@note; always use _cloneDeep at its usage other wise it's value will be manipulate at global scope //@note; always use _cloneDeep at its usage otherwise its value will be manipulate at global scope
const initialSliceState = { const initialSliceState = {
requestChangeState: { requestChangeState: {
url: [], url: [],

View File

@@ -73,7 +73,7 @@ const createHandleConnectionExecutor: TStoreSlice<
// connect // connect
executor.connect(); executor.connect();
// set executor in to playground // set executor in playground
state.setPlaygroundExecutor(executor); state.setPlaygroundExecutor(executor);
} catch (error) { } catch (error) {
console.info({ console.info({

View File

@@ -75,7 +75,7 @@ If you encounter any bugs, issues, or have suggestions, please open an issue on
## Roadmap ## Roadmap
Here is the Firecamp development roadmap. Very soon It'll be listed on Github projects for better project management. Here is the Firecamp development roadmap. Very soon It'll be listed on GitHub projects for better project management.
- **AI: Cutting-edge AI-powered capabilities** - **AI: Cutting-edge AI-powered capabilities**
- **Firecamp CLI:** developer-friendly CLI tool - **Firecamp CLI:** developer-friendly CLI tool
- **Test Runner:** An advanced API test runner - **Test Runner:** An advanced API test runner