16 |
{JSON.stringify(data, null, 2)}
17 |
18 | );
19 | };
20 |
21 | export default JSONView;
22 |
--------------------------------------------------------------------------------
/packages/studio-query/src/statement/typing.ts:
--------------------------------------------------------------------------------
1 | import { CypherSchemaData } from '../components/cypher-editor';
2 | import type { IStatement } from '../app/context';
3 | export interface IEditorProps {
4 | id: string;
5 | script?: string;
6 | language?: 'cypher' | 'gremlin';
7 | schemaData?: CypherSchemaData;
8 | functions?: any;
9 | onClose?: (id: string) => void;
10 | onCancel?: (value: IStatement) => void;
11 | onQuery: (value: IStatement) => void;
12 | onSave?: (value: IStatement) => void;
13 | }
14 |
--------------------------------------------------------------------------------
/packages/studio-query/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "allowSyntheticDefaultImports": true,
4 | "allowJs": true,
5 | "declaration": true,
6 | "target": "es2018",
7 | "moduleResolution": "node",
8 | "jsx": "react",
9 | "resolveJsonModule": true,
10 | "strict": true,
11 | "noImplicitAny": false,
12 | "lib": ["dom", "esnext"],
13 | "module": "esnext",
14 | "esModuleInterop": true,
15 | "skipLibCheck": true,
16 | "isolatedModules": false
17 | },
18 | "include": ["src/**/*", "src/**/*.css"],
19 | "exclude": ["node_modules"]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/studio-server/.fatherrc.js:
--------------------------------------------------------------------------------
1 | export default {
2 | esm: { output: 'es', input: 'typescript-axios' },
3 | cjs: { output: 'lib', input: 'typescript-axios' },
4 | };
5 |
--------------------------------------------------------------------------------
/packages/studio-server/openapitools.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
3 | "spaces": 2,
4 | "generator-cli": {
5 | "version": "7.2.0"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/packages/studio-server/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "allowSyntheticDefaultImports": true,
4 | "allowJs": true,
5 | "declaration": true,
6 | "target": "es2018",
7 | "moduleResolution": "node",
8 | "jsx": "react",
9 | "resolveJsonModule": true,
10 | "strict": true,
11 | "noImplicitAny": false,
12 | "lib": ["dom", "esnext"],
13 | "module": "esnext",
14 | "esModuleInterop": true,
15 | "skipLibCheck": true,
16 | "isolatedModules": false
17 | },
18 | "include": ["typescript-axios"],
19 | "exclude": ["node_modules"]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/studio-server/typescript-axios/.gitignore:
--------------------------------------------------------------------------------
1 | wwwroot/*.js
2 | node_modules
3 | typings
4 | dist
5 |
--------------------------------------------------------------------------------
/packages/studio-server/typescript-axios/.npmignore:
--------------------------------------------------------------------------------
1 | # empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm
--------------------------------------------------------------------------------
/packages/studio-server/typescript-axios/.openapi-generator/FILES:
--------------------------------------------------------------------------------
1 | .gitignore
2 | .npmignore
3 | api.ts
4 | base.ts
5 | common.ts
6 | configuration.ts
7 | git_push.sh
8 | index.ts
9 |
--------------------------------------------------------------------------------
/packages/studio-server/typescript-axios/.openapi-generator/VERSION:
--------------------------------------------------------------------------------
1 | 7.2.0
--------------------------------------------------------------------------------
/packages/studio-server/typescript-axios/index.ts:
--------------------------------------------------------------------------------
1 | /* tslint:disable */
2 | /* eslint-disable */
3 | /**
4 | * GraphScope FLEX HTTP SERVICE API
5 | * This is a specification for GraphScope FLEX HTTP service based on the OpenAPI 3.0 specification. You can find out more details about specification at [doc](https://swagger.io/specification/v3/).
6 | *
7 | * The version of the OpenAPI document: 1.0.0
8 | * Contact: graphscope@alibaba-inc.com
9 | *
10 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11 | * https://openapi-generator.tech
12 | * Do not edit the class manually.
13 | */
14 |
15 |
16 | export * from "./api";
17 | export * from "./configuration";
18 |
19 |
--------------------------------------------------------------------------------
/packages/studio-website/.fatherrc.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | esm: { output: 'es' },
3 | cjs: { output: 'lib' },
4 | };
5 |
--------------------------------------------------------------------------------
/packages/studio-website/.npmrc:
--------------------------------------------------------------------------------
1 | registry=https://registry.npmjs.com/
2 |
3 |
--------------------------------------------------------------------------------
/packages/studio-website/README.md:
--------------------------------------------------------------------------------
1 | ## GraphScope Portal
2 |
3 | ## Development
4 |
5 | ### Perpare
6 |
7 | - install node.js : https://nodejs.org/en
8 | - install pnpm : https://pnpm.io/installation#using-npm `npm install -g pnpm`
9 |
10 | ### install dependencies
11 |
12 | ```bash
13 | pnpm install
14 | ```
15 |
16 | - build all sub packages
17 |
18 | ```bash
19 | npm run build
20 |
21 | ```
22 |
23 | ### run portal website
24 |
25 | ```bash
26 | # goto website dir
27 | cd packages/studio-website
28 |
29 | # Add .env file for local dev
30 | # cordinator url is the address of graphscope engine
31 | echo "COORDINATOR_URL= http://127.0.0.1:8080" >> .env
32 |
33 | # run website
34 | npm run start
35 | ```
36 |
--------------------------------------------------------------------------------
/packages/studio-website/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |