Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/components/Footer/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Link } from "react-router-dom";
import { useEffect } from "react";
import { Divider, Button, Space } from "antd";
import {
GithubOutlined,
Expand All @@ -11,6 +12,26 @@ import "./index.scss";

const Footer = () => {
const { locale, t } = useTranslation();

useEffect(() => {
const script = document.createElement("script");
script.src = "https://widget.kapa.ai/kapa-widget.bundle.js";
script.async = true;
script.dataset.websiteId = "e3268e5d-c0f1-4e71-819c-c60ebb2215a7";
script.dataset.projectName = "Apache DolphinScheduler";
script.dataset.projectColor = "#0097E0";
script.dataset.projectLogo =
"https://dolphinscheduler.apache.org/images/logo_400x400.jpg";
script.dataset.modalDisclaimer =
"This is a custom LLM for Apache DolphinScheduler with access to all developer Documentation, Blog, GitHub issues and discussions.";
script.dataset.modalExampleQuestions =
"Why we need DolphinScheduler?,How to deploy DolphinScheduler?,How to submit task?,How to contribute?";
document.body.appendChild(script);

return () => {
document.body.removeChild(script);
};
}, []);
return (
<footer className="footer">
<section className="footer-content">
Expand Down
Loading