diff options
Diffstat (limited to 'extension')
| -rw-r--r-- | extension/package.json | 2 | ||||
| -rw-r--r-- | extension/react-app/public/continue-dev-square.png | bin | 0 -> 36355 bytes | |||
| -rw-r--r-- | extension/react-app/src/components/ComboBox.tsx | 2 | ||||
| -rw-r--r-- | extension/react-app/src/components/ContinueButton.tsx | 3 | ||||
| -rw-r--r-- | extension/react-app/src/components/PillButton.tsx | 2 | ||||
| -rw-r--r-- | extension/react-app/src/pages/gui.tsx | 58 | 
6 files changed, 17 insertions, 50 deletions
| diff --git a/extension/package.json b/extension/package.json index cfce77df..f1add025 100644 --- a/extension/package.json +++ b/extension/package.json @@ -225,7 +225,7 @@      "lint": "eslint src --ext ts",      "test": "node ./out/test/runTest.js",      "jest": "jest --config ./jest.config.js", -    "package": "cp ./config/prod_config.json ./config/config.json && mkdir -p ./build && vsce package --out ./build && cp ./config/dev_config.json ./config/config.json", +    "package": "mkdir -p ./build && vsce package --out ./build",      "full-package": "cd ../continuedev && poetry install && poetry build && cp ./dist/continuedev-0.1.2-py3-none-any.whl ../extension/server/continuedev-0.1.2-py3-none-any.whl && cd ../extension && npm install && npm run typegen && npm run clientgen && cd react-app && npm install && npm run build && cd .. && npm run package",      "install-extension": "code --install-extension ./build/continue-0.0.8.vsix",      "uninstall": "code --uninstall-extension .continue", diff --git a/extension/react-app/public/continue-dev-square.png b/extension/react-app/public/continue-dev-square.pngBinary files differ new file mode 100644 index 00000000..e4b62556 --- /dev/null +++ b/extension/react-app/public/continue-dev-square.png diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx index 7d266c6e..4a1cdbc0 100644 --- a/extension/react-app/src/components/ComboBox.tsx +++ b/extension/react-app/src/components/ComboBox.tsx @@ -291,7 +291,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {        <div className="flex px-2" ref={divRef} hidden={!downshiftProps.isOpen}>          <MainTextInput            disabled={props.disabled} -          placeholder={`Ask a question, give instructions, or type '/' to see slash commands`} +          placeholder={`Ask a question, give instructions, type '/' for slash commands, or '@' to add context`}            {...getInputProps({              onChange: (e) => {                const target = e.target as HTMLTextAreaElement; diff --git a/extension/react-app/src/components/ContinueButton.tsx b/extension/react-app/src/components/ContinueButton.tsx index eda9bcff..6d753988 100644 --- a/extension/react-app/src/components/ContinueButton.tsx +++ b/extension/react-app/src/components/ContinueButton.tsx @@ -26,7 +26,8 @@ function ContinueButton(props: { onClick?: () => void; hidden?: boolean }) {    return (      <StyledButton        hidden={props.hidden} -      className="m-auto press-start-2p text-xs" +      style={{ fontSize: "10px" }} +      className="m-auto press-start-2p"        onClick={props.onClick}      >        {vscMediaUrl ? ( diff --git a/extension/react-app/src/components/PillButton.tsx b/extension/react-app/src/components/PillButton.tsx index 660ede09..548fdf9d 100644 --- a/extension/react-app/src/components/PillButton.tsx +++ b/extension/react-app/src/components/PillButton.tsx @@ -100,7 +100,7 @@ const PillButton = (props: PillButtonProps) => {              <pre>                <code                  style={{ -                  fontSize: "10px", +                  fontSize: "11px",                    backgroundColor: vscBackground,                    color: vscForeground,                    whiteSpace: "pre-wrap", diff --git a/extension/react-app/src/pages/gui.tsx b/extension/react-app/src/pages/gui.tsx index d7efc288..76194db7 100644 --- a/extension/react-app/src/pages/gui.tsx +++ b/extension/react-app/src/pages/gui.tsx @@ -116,6 +116,9 @@ function GUI(props: GUIProps) {      current_index: 3,    } as any); +  const vscMediaUrl = useSelector( +    (state: RootStore) => state.config.vscMediaUrl +  );    const [showFeedbackDialog, setShowFeedbackDialog] = useState(false);    const [feedbackDialogMessage, setFeedbackDialogMessage] = useState("");    const [feedbackEntryOn, setFeedbackEntryOn] = useState(true); @@ -415,52 +418,15 @@ function GUI(props: GUIProps) {          {bottomMessage}        </div>        <Footer dataSwitchChecked={dataSwitchChecked}> -        {/* <div -          style={{ -            display: "flex", -            gap: "4px", -            marginRight: "auto", -            alignItems: "center", -          }} -          onMouseEnter={() => { -            dispatch( -              setBottomMessage( -                <> -                  By turning on this switch, you will begin collecting accepted -                  and rejected suggestions in .continue/suggestions.json. This -                  data is stored locally on your machine and not sent anywhere. -                  <br /> -                  <br /> -                  <b> -                    {dataSwitchChecked -                      ? "👍 Data is being collected" -                      : "👎 No data is being collected"} -                  </b> -                </> -              ) -            ); -          }} -          onMouseLeave={() => { -            dispatch(setBottomMessage(undefined)); -          }} -        > -          <ReactSwitch -            height={20} -            handleDiameter={20} -            width={40} -            onChange={() => { -              posthog?.capture("data_switch_toggled", { -                vscMachineId: vscMachineId, -                dataSwitchChecked: !dataSwitchChecked, -              }); -              postVscMessage("toggleDataSwitch", { on: !dataSwitchChecked }); -              setDataSwitchChecked((prev) => !prev); -            }} -            onColor="#12887a" -            checked={dataSwitchChecked} -          /> -          <span style={{ cursor: "help", fontSize: "14px" }}>Collect Data</span> -        </div> */} +        {vscMediaUrl && ( +          <a +            href="https://github.com/continuedev/continue" +            style={{ margin: "0", marginRight: "auto" }} +          > +            <img src={`${vscMediaUrl}/continue-dev-square.png`} width="22px" /> +            <p style={{ margin: "0" }}>Continue</p> +          </a> +        )}          <HeaderButtonWithText            onClick={() => {              // Show the dialog | 
