mirror of
https://github.com/portainer/portainer.git
synced 2025-08-09 07:45:22 +02:00
feat(ask-ai): integrate kapa-ai page [BE-11409] (#214)
This commit is contained in:
parent
783ab253af
commit
441afead10
24 changed files with 102 additions and 50 deletions
|
@ -7,7 +7,7 @@ import { FormSectionTitle } from '@@/form-components/FormSectionTitle';
|
|||
import { Input } from '@@/form-components/Input';
|
||||
import { Button } from '@@/buttons';
|
||||
import { TextTip } from '@@/Tip/TextTip';
|
||||
import { useDocsUrl } from '@@/PageHeader/ContextHelp/ContextHelp';
|
||||
import { useDocsUrl } from '@@/PageHeader/ContextHelp';
|
||||
|
||||
const initialValues = {
|
||||
kubeConfig: '',
|
||||
|
|
|
@ -9,7 +9,7 @@ import { SwitchField } from '@@/form-components/SwitchField';
|
|||
import { TextTip } from '@@/Tip/TextTip';
|
||||
import { FormControl } from '@@/form-components/FormControl';
|
||||
import { Input, Select } from '@@/form-components/Input';
|
||||
import { useDocsUrl } from '@@/PageHeader/ContextHelp/ContextHelp';
|
||||
import { useDocsUrl } from '@@/PageHeader/ContextHelp';
|
||||
|
||||
import { RelativePathModel, getPerDevConfigsFilterType } from './types';
|
||||
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
import { useField } from 'formik';
|
||||
|
||||
import { SwitchField } from '@@/form-components/SwitchField';
|
||||
import { useDocsUrl } from '@@/PageHeader/ContextHelp';
|
||||
|
||||
export function EnableTelemetryField() {
|
||||
const privacyPolicy = useDocsUrl('/in-app-analytics-and-privacy-policy');
|
||||
const [{ value }, , { setValue }] = useField<boolean>('enableTelemetry');
|
||||
|
||||
return (
|
||||
|
@ -20,11 +22,7 @@ export function EnableTelemetryField() {
|
|||
|
||||
<div className="col-sm-12 text-muted small mt-2">
|
||||
You can find more information about this in our{' '}
|
||||
<a
|
||||
href="https://www.portainer.io/documentation/in-app-analytics-and-privacy-policy/"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
<a href={privacyPolicy} target="_blank" rel="noreferrer">
|
||||
privacy policy
|
||||
</a>
|
||||
.
|
||||
|
|
|
@ -3,7 +3,7 @@ import { useField, Field } from 'formik';
|
|||
import { FormControl } from '@@/form-components/FormControl';
|
||||
import { FormSection } from '@@/form-components/FormSection';
|
||||
import { Input } from '@@/form-components/Input';
|
||||
import { useDocsUrl } from '@@/PageHeader/ContextHelp/ContextHelp';
|
||||
import { useDocsUrl } from '@@/PageHeader/ContextHelp';
|
||||
|
||||
// this value is taken from https://github.com/portainer/portainer/blob/develop/api/portainer.go#L1628
|
||||
const DEFAULT_URL =
|
||||
|
|
|
@ -13,6 +13,7 @@ export interface VersionResponse {
|
|||
// The latest version available
|
||||
LatestVersion: string;
|
||||
ServerVersion: string;
|
||||
VersionSupport: 'STS' | 'LTS';
|
||||
DatabaseVersion: string;
|
||||
Build: {
|
||||
BuildNumber: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue