You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fesod.apache.org by de...@apache.org on 2025/10/10 01:06:31 UTC

(fesod) branch revert-635-test22 created (now 7e94da83)

This is an automated email from the ASF dual-hosted git repository.

delei pushed a change to branch revert-635-test22
in repository https://gitbox.apache.org/repos/asf/fesod.git


      at 7e94da83 Revert "feat: add analytics module for tracking page views (#635)"

This branch includes the following new commits:

     new 7e94da83 Revert "feat: add analytics module for tracking page views (#635)"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fesod.apache.org
For additional commands, e-mail: commits-help@fesod.apache.org


(fesod) 01/01: Revert "feat: add analytics module for tracking page views (#635)"

Posted by de...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

delei pushed a commit to branch revert-635-test22
in repository https://gitbox.apache.org/repos/asf/fesod.git

commit 7e94da83216c694b420bd62418d423e1e2d96ee1
Author: DeleiGuo <de...@apache.org>
AuthorDate: Fri Oct 10 09:06:27 2025 +0800

    Revert "feat: add analytics module for tracking page views (#635)"
    
    This reverts commit 1d5e1b9401ecbfbac2d8704d6a56305f7c47e536.
---
 website/docusaurus.config.js |  1 -
 website/src/analytics.ts     | 63 --------------------------------------------
 website/static/config.json   |  3 ---
 3 files changed, 67 deletions(-)

diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index 02594503..83c22bd1 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -35,7 +35,6 @@ const config = {
     customFields: {
         repoUrl,
     },
-    clientModules: [require.resolve('./src/analytics.ts')],
     i18n: {
         defaultLocale: 'en',
         locales: ['en', 'zh-cn'],
diff --git a/website/src/analytics.ts b/website/src/analytics.ts
deleted file mode 100644
index 85eb8d1b..00000000
--- a/website/src/analytics.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
-
-(function () {
-  if (ExecutionEnvironment.canUseDOM) {
-    let prefix = '';
-    if (location.pathname.startsWith('/zh-cn')) {
-      prefix = '/zh-cn';
-    }
-    let s = document.getElementsByTagName('script')[0];
-
-    let matomo = document.createElement('script');
-    matomo.text = `
-      /* -- Matomo */
-        var _paq = window._paq = window._paq || [];
-        /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
-        /* _paq.push(["setDoNotTrack", true]); */
-        _paq.push(["disableCookies"]);
-        _paq.push(['trackPageView']);
-        _paq.push(['enableLinkTracking']);
-        (function() {
-          var u="https://analytics.apache.org/";
-          _paq.push(['setTrackerUrl', u+'matomo.php']);
-          _paq.push(['setSiteId', '83']);
-          var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
-          g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
-        })();
-      /* End Matomo Code */
-    `;
-    s.parentNode.insertBefore(matomo, s);
-
-    const controller = new AbortController();
-    const signal = controller.signal;
-    // set timeout
-    setTimeout(() => {
-      controller.abort();
-    }, 5000);
-    fetch(prefix + '/config.json', {signal})
-        .then((res) => res.json())
-        .then((data) => {
-          if (data.analytics) {
-          }
-        }).catch((err => {
-      // do nothing
-    }));
-  }
-})();
\ No newline at end of file
diff --git a/website/static/config.json b/website/static/config.json
deleted file mode 100644
index 250baa88..00000000
--- a/website/static/config.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
-  "analytics": true
-}
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fesod.apache.org
For additional commands, e-mail: commits-help@fesod.apache.org