You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by mi...@apache.org on 2023/11/08 09:27:44 UTC

(incubator-devlake) branch next updated (da8833d2f -> d466a7639)

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

mintsweet pushed a change to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


 discard da8833d2f feat(config-ui): integrate external code
     add ae910d503 docs(readme): fix deprecated links (#6400)
     add cfdf3f0b0 fix: some license issues (#6404)
     add 88cdbda4f fix: webhook does not implement DataSourcePluginBlueprintV200 (#6415)
     add 6d6710c43 fix(config-ui): update slack link (#6412)
     add 1709081e1 fix(config-ui): connection list error (#6413)
     add 682cd65c0 fix(config-ui): missed field rateLimitPerHour in redux connection (#6414)
     add 1d393462a fix(config-ui): not catch error when connection delete (#6416)
     add 4f7edd04d fix(config-ui): project name not encoded (#6418)
     add ffb28c3de fix(config-ui): handle webhook apiKey error (#6417)
     add 2c7134347 fix(config-ui): something error in sync frequency custom (#6419)
     add 5509471f3 fix: avoid browser caching index.html (#6420)
     new d466a7639 feat(config-ui): integrate external code

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (da8833d2f)
            \
             N -- N -- N   refs/heads/next (d466a7639)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

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.


Summary of changes:
 LICENSE                                            | 33 ++++++++++++++++++++++
 README.md                                          |  2 +-
 backend/plugins/webhook/impl/impl.go               |  2 +-
 config-ui/.yarn/releases/yarn-3.4.1.cjs            | 28 ++++++++++++++++++
 config-ui/nginx.conf                               | 10 +++++--
 config-ui/src/config/cron.ts                       | 13 ++++-----
 config-ui/src/features/connections/slice.ts        | 22 ++++++++-------
 config-ui/src/features/connections/utils.ts        |  4 +--
 .../detail/components/sync-policy/index.tsx        | 20 +++++++------
 .../src/pages/blueprint/detail/status-panel.tsx    |  2 +-
 config-ui/src/pages/blueprint/home/index.tsx       | 20 ++++++-------
 config-ui/src/pages/blueprint/home/styled.ts       | 16 +++++++++++
 config-ui/src/pages/connection/detail/index.tsx    |  8 +++---
 config-ui/src/pages/project/detail/index.tsx       |  4 ++-
 .../src/pages/project/detail/settings-panel.tsx    |  6 ++--
 config-ui/src/pages/project/home/index.tsx         | 16 ++++++-----
 config-ui/src/pages/project/home/styled.ts         | 16 +++++++++++
 .../register/webhook/components/create-dialog.tsx  |  7 +++--
 .../register/webhook/components/view-dialog.tsx    | 18 ++++++------
 config-ui/src/types/connection.ts                  |  1 +
 config-ui/src/types/webhook.ts                     |  1 -
 21 files changed, 178 insertions(+), 71 deletions(-)


(incubator-devlake) 01/01: feat(config-ui): integrate external code

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

mintsweet pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit d466a76396a5ac0f4a7f8bec863bbf5fd0d1aa14
Author: mintsweet <0x...@gmail.com>
AuthorDate: Mon Oct 23 16:46:24 2023 +1300

    feat(config-ui): integrate external code
---
 config-ui/src/app/routrer.tsx           |  7 ++++++-
 config-ui/src/app/store.ts              |  6 ++++--
 config-ui/src/components/logo/index.tsx |  4 ++++
 config-ui/src/routes/layout/layout.tsx  | 19 -------------------
 config-ui/src/utils/request.ts          |  4 ++++
 config-ui/vite.config.ts                |  3 +++
 6 files changed, 21 insertions(+), 22 deletions(-)

diff --git a/config-ui/src/app/routrer.tsx b/config-ui/src/app/routrer.tsx
index c3e86021b..250fe9cf0 100644
--- a/config-ui/src/app/routrer.tsx
+++ b/config-ui/src/app/routrer.tsx
@@ -31,6 +31,7 @@ import { Layout, loader as layoutLoader } from '@/routes/layout';
 import { Error, ErrorEnum } from '@/routes/error';
 import { Pipelines, Pipeline } from '@/routes/pipeline';
 import { ApiKeys } from '@/routes/api-keys';
+import { ExtraLayout } from '@next';
 
 export const router = createBrowserRouter([
   {
@@ -43,7 +44,11 @@ export const router = createBrowserRouter([
   },
   {
     path: '/',
-    element: <Layout />,
+    element: (
+      <ExtraLayout>
+        <Layout></Layout>
+      </ExtraLayout>
+    ),
     loader: layoutLoader,
     errorElement: <Error />,
     children: [
diff --git a/config-ui/src/app/store.ts b/config-ui/src/app/store.ts
index b838101b5..02180d094 100644
--- a/config-ui/src/app/store.ts
+++ b/config-ui/src/app/store.ts
@@ -17,11 +17,13 @@
  */
 
 import { configureStore, ThunkAction, Action } from '@reduxjs/toolkit';
-import connectionsSlice from '@/features/connections/slice';
+import connectionSlice from '@/features/connections/slice';
+import userSlice from '@next/user/slice';
 
 export const store = configureStore({
   reducer: {
-    connections: connectionsSlice,
+    connections: connectionSlice,
+    user: userSlice,
   },
 });
 
diff --git a/config-ui/src/components/logo/index.tsx b/config-ui/src/components/logo/index.tsx
index 23362c9e4..0e600a65d 100644
--- a/config-ui/src/components/logo/index.tsx
+++ b/config-ui/src/components/logo/index.tsx
@@ -23,6 +23,10 @@ import LogoImg from '@/images/logo.svg';
 const Wrapper = styled.div`
   display: flex;
   justify-content: center;
+
+  img {
+    max-width: 150px;
+  }
 `;
 
 export const Logo = () => {
diff --git a/config-ui/src/routes/layout/layout.tsx b/config-ui/src/routes/layout/layout.tsx
index 2d8e1d2e7..10fab7221 100644
--- a/config-ui/src/routes/layout/layout.tsx
+++ b/config-ui/src/routes/layout/layout.tsx
@@ -137,25 +137,6 @@ export const Layout = () => {
                     <img src={APIIcon} alt="api" />
                     <span>API</span>
                   </ExternalLink>
-                  <Navbar.Divider />
-                  <a
-                    href="https://github.com/apache/incubator-devlake"
-                    rel="noreferrer"
-                    target="_blank"
-                    className="navIconLink"
-                  >
-                    <img src={GitHubIcon} alt="github" />
-                    <span>GitHub</span>
-                  </a>
-                  <Navbar.Divider />
-                  <a
-                    href="https://join.slack.com/t/devlake-io/shared_invite/zt-26ulybksw-IDrJYuqY1FrdjlMMJhs53Q"
-                    rel="noreferrer"
-                    target="_blank"
-                  >
-                    <img src={SlackIcon} alt="slack" />
-                    <span>Slack</span>
-                  </a>
                 </Navbar.Group>
               </S.Header>
               <S.Inner>
diff --git a/config-ui/src/utils/request.ts b/config-ui/src/utils/request.ts
index a3d2e5275..6d126ab58 100644
--- a/config-ui/src/utils/request.ts
+++ b/config-ui/src/utils/request.ts
@@ -43,6 +43,10 @@ instance.interceptors.response.use(
       window.location.replace('/db-migrate');
     }
 
+    if (status === 401) {
+      window.location.reload();
+    }
+
     return Promise.reject(error);
   },
 );
diff --git a/config-ui/vite.config.ts b/config-ui/vite.config.ts
index d8416b25e..c91c65493 100644
--- a/config-ui/vite.config.ts
+++ b/config-ui/vite.config.ts
@@ -26,6 +26,8 @@ export default defineConfig({
 
   envPrefix: 'DEVLAKE_',
 
+  publicDir: path.join(__dirname, '../../frontend/public'),
+
   server: {
     port: 4000,
     proxy: {
@@ -40,6 +42,7 @@ export default defineConfig({
   resolve: {
     alias: {
       '@': path.join(__dirname, './src'),
+      '@next': path.join(__dirname, '../../frontend/src'),
     },
   },
 });