├── .github └── workflows │ ├── deploy.yml │ └── testing.yml ├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── __tests__ ├── Jest.test.tsx ├── client │ └── App.test.tsx ├── server │ └── server.txt └── types │ └── types.txt ├── assetsTransformer.js ├── babel.config.js ├── contributing.md ├── cypress.config.ts ├── cypress ├── component │ ├── BankEl.cy.tsx │ └── Canvas.cy.tsx ├── e2e │ ├── canvas.cy.ts │ ├── codepreview.cy.ts │ ├── fileDir.cy.ts │ ├── flowtree.cy.ts │ └── login.cy.ts ├── fixtures │ └── example.json └── support │ ├── commands.ts │ ├── component-index.html │ ├── component.ts │ └── e2e.ts ├── docker-compose-test.yml ├── index.html ├── jest-setup.ts ├── package.json ├── postcss.config.js ├── public ├── protract-icon-white.png ├── protract-icon.png └── vite.svg ├── src ├── client │ ├── App.css │ ├── App.tsx │ ├── assets │ │ ├── gifs │ │ │ ├── Create-demo.gif │ │ │ ├── Export-demo.gif │ │ │ ├── Projects-demo.gif │ │ │ ├── Protract-demo.gif │ │ │ └── Tree-demo.gif │ │ ├── github-dark.png │ │ ├── github-light.png │ │ ├── logo-bg-white.png │ │ ├── logo.png │ │ ├── logo2.png │ │ ├── logo3.png │ │ ├── protract-favicon-color.png │ │ ├── protract-readme-logo.png │ │ └── react.svg │ ├── components │ │ ├── BankEl.tsx │ │ ├── Canvas.tsx │ │ ├── CodePreview.tsx │ │ ├── ComponentBank.tsx │ │ ├── Containers │ │ │ ├── LeftColumn.tsx │ │ │ ├── MainContainer.tsx │ │ │ └── Preview.tsx │ │ ├── CustomComponentCreator.tsx │ │ ├── FileDirectory.tsx │ │ ├── FlowTree.tsx │ │ ├── Modals │ │ │ ├── DeleteModal.tsx │ │ │ ├── LoadModal.tsx │ │ │ ├── LoginModal.tsx │ │ │ ├── SaveModal.tsx │ │ │ ├── SignUpModal.tsx │ │ │ └── WarningModal.tsx │ │ ├── Navbar.tsx │ │ ├── Playground.tsx │ │ └── SortableBankEl.tsx │ ├── helperFunctions │ │ ├── capitalizeFirstLetter.ts │ │ ├── dataToD3Elems.ts │ │ ├── generateAppModule.ts │ │ ├── generateComponentContents.ts │ │ ├── generateImportStatements.ts │ │ ├── generateTestContents.ts │ │ ├── insertAppPrefix.ts │ │ ├── traverseAndWrite.ts │ │ └── zipFiles.ts │ ├── index.css │ ├── main.tsx │ ├── tsconfig.json │ └── vite-env.d.ts ├── server │ ├── controllers │ │ ├── authControllers │ │ │ └── userController.ts │ │ ├── cookieControllers │ │ │ ├── cookieController.ts │ │ │ └── sessionController.ts │ │ └── projControllers │ │ │ └── projController.ts │ ├── main.ts │ ├── models │ │ ├── projectModel.ts │ │ ├── sessionModel.ts │ │ └── userModel.ts │ └── routers │ │ ├── authRouter.ts │ │ └── projRouter.ts └── types.ts ├── tailwind.config.js ├── tsconfig.json ├── tsconfig.prod.json └── vite.config.ts /.github/workflows/deploy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/.github/workflows/deploy.yml -------------------------------------------------------------------------------- /.github/workflows/testing.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/.github/workflows/testing.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/Jest.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/__tests__/Jest.test.tsx -------------------------------------------------------------------------------- /__tests__/client/App.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/__tests__/client/App.test.tsx -------------------------------------------------------------------------------- /__tests__/server/server.txt: -------------------------------------------------------------------------------- 1 | for server -------------------------------------------------------------------------------- /__tests__/types/types.txt: -------------------------------------------------------------------------------- 1 | for types -------------------------------------------------------------------------------- /assetsTransformer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/assetsTransformer.js -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/babel.config.js -------------------------------------------------------------------------------- /contributing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/contributing.md -------------------------------------------------------------------------------- /cypress.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/cypress.config.ts -------------------------------------------------------------------------------- /cypress/component/BankEl.cy.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/cypress/component/BankEl.cy.tsx -------------------------------------------------------------------------------- /cypress/component/Canvas.cy.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/cypress/component/Canvas.cy.tsx -------------------------------------------------------------------------------- /cypress/e2e/canvas.cy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/cypress/e2e/canvas.cy.ts -------------------------------------------------------------------------------- /cypress/e2e/codepreview.cy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/cypress/e2e/codepreview.cy.ts -------------------------------------------------------------------------------- /cypress/e2e/fileDir.cy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/cypress/e2e/fileDir.cy.ts -------------------------------------------------------------------------------- /cypress/e2e/flowtree.cy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/cypress/e2e/flowtree.cy.ts -------------------------------------------------------------------------------- /cypress/e2e/login.cy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/cypress/e2e/login.cy.ts -------------------------------------------------------------------------------- /cypress/fixtures/example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/cypress/fixtures/example.json -------------------------------------------------------------------------------- /cypress/support/commands.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/cypress/support/commands.ts -------------------------------------------------------------------------------- /cypress/support/component-index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/cypress/support/component-index.html -------------------------------------------------------------------------------- /cypress/support/component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/cypress/support/component.ts -------------------------------------------------------------------------------- /cypress/support/e2e.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/cypress/support/e2e.ts -------------------------------------------------------------------------------- /docker-compose-test.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/index.html -------------------------------------------------------------------------------- /jest-setup.ts: -------------------------------------------------------------------------------- 1 | import '@testing-library/jest-dom' -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/protract-icon-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/public/protract-icon-white.png -------------------------------------------------------------------------------- /public/protract-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/public/protract-icon.png -------------------------------------------------------------------------------- /public/vite.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/public/vite.svg -------------------------------------------------------------------------------- /src/client/App.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/client/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/App.tsx -------------------------------------------------------------------------------- /src/client/assets/gifs/Create-demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/assets/gifs/Create-demo.gif -------------------------------------------------------------------------------- /src/client/assets/gifs/Export-demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/assets/gifs/Export-demo.gif -------------------------------------------------------------------------------- /src/client/assets/gifs/Projects-demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/assets/gifs/Projects-demo.gif -------------------------------------------------------------------------------- /src/client/assets/gifs/Protract-demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/assets/gifs/Protract-demo.gif -------------------------------------------------------------------------------- /src/client/assets/gifs/Tree-demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/assets/gifs/Tree-demo.gif -------------------------------------------------------------------------------- /src/client/assets/github-dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/assets/github-dark.png -------------------------------------------------------------------------------- /src/client/assets/github-light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/assets/github-light.png -------------------------------------------------------------------------------- /src/client/assets/logo-bg-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/assets/logo-bg-white.png -------------------------------------------------------------------------------- /src/client/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/assets/logo.png -------------------------------------------------------------------------------- /src/client/assets/logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/assets/logo2.png -------------------------------------------------------------------------------- /src/client/assets/logo3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/assets/logo3.png -------------------------------------------------------------------------------- /src/client/assets/protract-favicon-color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/assets/protract-favicon-color.png -------------------------------------------------------------------------------- /src/client/assets/protract-readme-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/assets/protract-readme-logo.png -------------------------------------------------------------------------------- /src/client/assets/react.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/assets/react.svg -------------------------------------------------------------------------------- /src/client/components/BankEl.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/BankEl.tsx -------------------------------------------------------------------------------- /src/client/components/Canvas.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/Canvas.tsx -------------------------------------------------------------------------------- /src/client/components/CodePreview.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/CodePreview.tsx -------------------------------------------------------------------------------- /src/client/components/ComponentBank.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/ComponentBank.tsx -------------------------------------------------------------------------------- /src/client/components/Containers/LeftColumn.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/Containers/LeftColumn.tsx -------------------------------------------------------------------------------- /src/client/components/Containers/MainContainer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/Containers/MainContainer.tsx -------------------------------------------------------------------------------- /src/client/components/Containers/Preview.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/Containers/Preview.tsx -------------------------------------------------------------------------------- /src/client/components/CustomComponentCreator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/CustomComponentCreator.tsx -------------------------------------------------------------------------------- /src/client/components/FileDirectory.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/FileDirectory.tsx -------------------------------------------------------------------------------- /src/client/components/FlowTree.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/FlowTree.tsx -------------------------------------------------------------------------------- /src/client/components/Modals/DeleteModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/Modals/DeleteModal.tsx -------------------------------------------------------------------------------- /src/client/components/Modals/LoadModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/Modals/LoadModal.tsx -------------------------------------------------------------------------------- /src/client/components/Modals/LoginModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/Modals/LoginModal.tsx -------------------------------------------------------------------------------- /src/client/components/Modals/SaveModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/Modals/SaveModal.tsx -------------------------------------------------------------------------------- /src/client/components/Modals/SignUpModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/Modals/SignUpModal.tsx -------------------------------------------------------------------------------- /src/client/components/Modals/WarningModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/Modals/WarningModal.tsx -------------------------------------------------------------------------------- /src/client/components/Navbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/Navbar.tsx -------------------------------------------------------------------------------- /src/client/components/Playground.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/Playground.tsx -------------------------------------------------------------------------------- /src/client/components/SortableBankEl.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/components/SortableBankEl.tsx -------------------------------------------------------------------------------- /src/client/helperFunctions/capitalizeFirstLetter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/helperFunctions/capitalizeFirstLetter.ts -------------------------------------------------------------------------------- /src/client/helperFunctions/dataToD3Elems.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/helperFunctions/dataToD3Elems.ts -------------------------------------------------------------------------------- /src/client/helperFunctions/generateAppModule.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/helperFunctions/generateAppModule.ts -------------------------------------------------------------------------------- /src/client/helperFunctions/generateComponentContents.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/helperFunctions/generateComponentContents.ts -------------------------------------------------------------------------------- /src/client/helperFunctions/generateImportStatements.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/helperFunctions/generateImportStatements.ts -------------------------------------------------------------------------------- /src/client/helperFunctions/generateTestContents.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/helperFunctions/generateTestContents.ts -------------------------------------------------------------------------------- /src/client/helperFunctions/insertAppPrefix.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/helperFunctions/insertAppPrefix.ts -------------------------------------------------------------------------------- /src/client/helperFunctions/traverseAndWrite.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/helperFunctions/traverseAndWrite.ts -------------------------------------------------------------------------------- /src/client/helperFunctions/zipFiles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/helperFunctions/zipFiles.ts -------------------------------------------------------------------------------- /src/client/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/index.css -------------------------------------------------------------------------------- /src/client/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/main.tsx -------------------------------------------------------------------------------- /src/client/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/client/tsconfig.json -------------------------------------------------------------------------------- /src/client/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /src/server/controllers/authControllers/userController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/server/controllers/authControllers/userController.ts -------------------------------------------------------------------------------- /src/server/controllers/cookieControllers/cookieController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/server/controllers/cookieControllers/cookieController.ts -------------------------------------------------------------------------------- /src/server/controllers/cookieControllers/sessionController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/server/controllers/cookieControllers/sessionController.ts -------------------------------------------------------------------------------- /src/server/controllers/projControllers/projController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/server/controllers/projControllers/projController.ts -------------------------------------------------------------------------------- /src/server/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/server/main.ts -------------------------------------------------------------------------------- /src/server/models/projectModel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/server/models/projectModel.ts -------------------------------------------------------------------------------- /src/server/models/sessionModel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/server/models/sessionModel.ts -------------------------------------------------------------------------------- /src/server/models/userModel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/server/models/userModel.ts -------------------------------------------------------------------------------- /src/server/routers/authRouter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/server/routers/authRouter.ts -------------------------------------------------------------------------------- /src/server/routers/projRouter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/server/routers/projRouter.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/src/types.ts -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.prod.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/tsconfig.prod.json -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oslabs-beta/Protract/HEAD/vite.config.ts --------------------------------------------------------------------------------