From 282366cd729cac047f0749da1d94802c512f35ad Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sun, 7 Mar 2021 00:51:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(pipelines):=E6=96=B0=E5=A2=9E=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20pipeline=20=E5=8A=9F=E8=83=BD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 4 - graphql.schema.json | 4 +- src/components/app.tsx | 8 +- .../pipelines/pipeline-list.constants.ts | 10 + src/components/pipelines/pipeline-list.scss | 22 ++ .../pipelines/pipeline-list.scss.d.ts | 13 ++ src/components/pipelines/pipeline-list.tsx | 87 +++++++ src/components/projects/project-editor.scss | 35 +-- src/generated/graphql.tsx | 6 +- src/routes/pipelines/pipeline-editor.scss | 6 + .../pipelines/pipeline-editor.scss.d.ts | 17 ++ src/routes/pipelines/pipeline-editor.tsx | 213 ++++++++++++++++++ src/routes/projects/project-details.scss | 2 +- src/routes/projects/project-details.tsx | 9 +- src/style/editor.scss | 34 +++ src/units/apollo-client.ts | 1 + 16 files changed, 418 insertions(+), 53 deletions(-) create mode 100644 src/components/pipelines/pipeline-list.constants.ts create mode 100644 src/components/pipelines/pipeline-list.scss create mode 100644 src/components/pipelines/pipeline-list.scss.d.ts create mode 100644 src/components/pipelines/pipeline-list.tsx create mode 100644 src/routes/pipelines/pipeline-editor.scss create mode 100644 src/routes/pipelines/pipeline-editor.scss.d.ts create mode 100644 src/routes/pipelines/pipeline-editor.tsx create mode 100644 src/style/editor.scss diff --git a/.vscode/settings.json b/.vscode/settings.json index 09a697c..bbf7d45 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,10 +1,6 @@ { "css.validate": false, "scss.validate": false, - "editor.quickSuggestions": { - "strings": true, - "other": true, - }, "cSpell.words": [ "Formik" ] diff --git a/graphql.schema.json b/graphql.schema.json index e87cf4e..9a2cdf4 100644 --- a/graphql.schema.json +++ b/graphql.schema.json @@ -1045,7 +1045,7 @@ "deprecationReason": null }, { - "name": "findPipelines", + "name": "listPipelines", "description": null, "args": [ { @@ -1311,7 +1311,7 @@ "description": null, "args": [ { - "name": "Pipeline", + "name": "pipeline", "description": null, "type": { "kind": "NON_NULL", diff --git a/src/components/app.tsx b/src/components/app.tsx index 737d761..9534b9b 100644 --- a/src/components/app.tsx +++ b/src/components/app.tsx @@ -1,13 +1,13 @@ -import { ApolloClient, ApolloProvider, InMemoryCache } from '@apollo/client'; +import { ApolloProvider } from '@apollo/client'; import { Fragment, FunctionalComponent, h } from 'preact'; import { ProjectPanel } from './projects/project-panel'; import styles from './app.scss'; import { OverlayContainer } from './commons/overlay/overlay'; import { useObserver } from 'mobx-react'; -import { appStore } from '../app.store'; import Router, { Route } from 'preact-router'; import { ProjectDetails } from '../routes/projects/project-details'; import { createApolloClient } from '../units/apollo-client'; +import { PipelineEditor } from '../routes/pipelines/pipeline-editor'; const client = createApolloClient(); @@ -32,6 +32,10 @@ const Board = () => {
+ } + />