This is an automated email from the ASF dual-hosted git repository.
wenjun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler-website.git
The following commit(s) were added to refs/heads/master by this push:
new 85635bdb9d chore: temporarily remove kapa (#962)
85635bdb9d is described below
commit 85635bdb9de8aa44f17efc2e5fb73d4059fd2260
Author: Gallardot <[email protected]>
AuthorDate: Wed Jun 19 17:08:14 2024 +0800
chore: temporarily remove kapa (#962)
---
public/.htaccess | 7 -------
src/components/Footer/index.jsx | 19 -------------------
2 files changed, 26 deletions(-)
diff --git a/public/.htaccess b/public/.htaccess
index 5bc30c3352..ca79e84215 100644
--- a/public/.htaccess
+++ b/public/.htaccess
@@ -1,8 +1 @@
ErrorDocument 404 /index.html
-RedirectMatch 404 /\.htaccess
-<IfModule mod_headers.c>
- Header set Access-Control-Allow-Origin:
https://dolphinscheduler.apache.org/
- Header set Access-Control-Allow-Methods "*"
- Header set Access-Control-Allow-Headers "*"
- Header set Content-Security-Policy "frame-src 'self'
https://www.google.com https://app.netlify.com"
-</IfModule>
diff --git a/src/components/Footer/index.jsx b/src/components/Footer/index.jsx
index a3d39061ae..5cc0c28fd4 100644
--- a/src/components/Footer/index.jsx
+++ b/src/components/Footer/index.jsx
@@ -1,4 +1,3 @@
-import React, { useEffect } from 'react';
import { Link } from "react-router-dom";
import { Divider, Button, Space } from "antd";
import {
@@ -12,24 +11,6 @@ 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">