diff --git a/.gitignore b/.gitignore index e9cabfb15..40ee65be2 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,6 @@ build dist .turbo .env -apps/design-system/src/styles/tailwind.output.css \ No newline at end of file +apps/design-system/src/styles/tailwind.output.css +# Local Netlify folder for testing purposes +.netlify diff --git a/apps/studio-next/netlify.toml b/apps/studio-next/netlify.toml new file mode 100644 index 000000000..44143e1a6 --- /dev/null +++ b/apps/studio-next/netlify.toml @@ -0,0 +1,6 @@ +[devs] + functions = "apps/studio-next/src/netlify/functions" + targetPort = 3001 + +[build] + functions = "apps/studio-next/src/netlify/functions" \ No newline at end of file diff --git a/apps/studio-next/package.json b/apps/studio-next/package.json index c37d7bd0f..b3381f274 100644 --- a/apps/studio-next/package.json +++ b/apps/studio-next/package.json @@ -7,6 +7,7 @@ "build": "next build", "start": "next start", "lint": "next lint", + "lint:fix": "next lint --fix", "cy:e2e:chrome": "cypress run --e2e --browser chrome", "cy:e2e:chromium": "cypress run --e2e --browser chromium", "cy:e2e:edge": "cypress run --e2e --browser edge", @@ -22,29 +23,32 @@ "@asyncapi/protobuf-schema-parser": "^3.2.8", "@asyncapi/react-component": "^1.2.2", "@asyncapi/specs": "^6.5.4", + "@codemirror/view": "^6.26.3", "@ebay/nice-modal-react": "^1.2.10", "@headlessui/react": "^1.7.4", "@hookstate/core": "^4.0.0-rc21", "@monaco-editor/react": "^4.4.6", - "@tippyjs/react": "^4.2.6", - "js-base64": "^3.7.3", - "js-file-download": "^0.4.12", - "js-yaml": "^4.1.0", - "monaco-editor": "0.34.1", - "monaco-yaml": "4.0.2", - "react-hot-toast": "2.4.0", - "react-icons": "^4.6.0", - "reactflow": "^11.2.0", + "@netlify/blobs": "^8.0.1", + "@netlify/functions": "^2.8.1", "@stoplight/yaml": "^4.3.0", + "@tippyjs/react": "^4.2.6", "@types/node": "20.4.6", "@types/react": "18.2.18", "@types/react-dom": "18.2.7", "autoprefixer": "10.4.14", "eslint-config-next": "13.4.12", + "js-base64": "^3.7.3", + "js-file-download": "^0.4.12", + "js-yaml": "^4.1.0", + "monaco-editor": "0.34.1", + "monaco-yaml": "4.0.2", "next": "14.2.3", "postcss": "8.4.31", "react": "18.2.0", "react-dom": "18.2.0", + "react-hot-toast": "2.4.0", + "react-icons": "^4.6.0", + "reactflow": "^11.2.0", "tailwindcss": "3.3.3", "tippy.js": "^6.3.7", "typescript": "5.1.6", diff --git a/apps/studio-next/src/components/Editor/EditorDropdown.tsx b/apps/studio-next/src/components/Editor/EditorDropdown.tsx index 51b0a1a5d..cc3506984 100644 --- a/apps/studio-next/src/components/Editor/EditorDropdown.tsx +++ b/apps/studio-next/src/components/Editor/EditorDropdown.tsx @@ -8,6 +8,7 @@ import { ImportBase64Modal, GeneratorModal, ConvertModal, + ImportUUIDModal, } from '../Modals'; import { Dropdown } from '../common'; @@ -34,6 +35,17 @@ export const EditorDropdown: React.FunctionComponent = () = ); + const importShareIdButton = ( + + ); + const importFileButton = (