-
Notifications
You must be signed in to change notification settings - Fork 113
New frontend in React #595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
276 commits
Select commit
Hold shift + click to select a range
3073a0f
refactor(*): layout
bbf5e6e
refactor(header): menu and more searchboxes instead of modal
1113f62
fix(*): layout
3a75237
fix(*): heights
f124bda
feat(*): .nvmrc
69ebfd8
fix(*): scrollbar styling
7fc83e3
fix(*): unnecessary code
e4e0ca7
refactor(accordion): file tree skeleton
7608ec1
feat(*): thrift workspace service integration
9c9289f
refactor(*): workspace context
3f804cf
feat(*): connect project service
e2f3649
feat(*): connect file content and file info
7c4b113
feat(accordion): tree view
a7212c2
fix(file-tree): navigation
f1af0da
build: integrate new web gui into build system
mcserep bd48e1b
Merge pull request #1 from mcserep/new-frontend
mdeme01 221be2e
refactor(*): build, npm
51a0e36
refactor(*): thrift-typescript usage
c4c6224
chore(npm): remove unused packages
52f8535
fix(*): generate thrift files at build
ad1f248
refactor(*): .gitignore
41d2188
fix(*): build
a4c09eb
refactor(*): styling
309bbe5
feat(*): multiple projects
6240a3b
fix(*): display placeholder with no file selected
e9eb99d
feat(*): use localstorage to save data
c4ea206
fix(*): clear localstorage on project change
6638d6c
feat(*): config file
bb5d6f0
fix(*): localstorage issues
cba8037
fix(id): localstorage
fc9b803
fix(*): build, nextjs static export
9c4e4a2
refactor(*): do not use dynamic route
c7e4a44
fix(project): unnecessary useeffect
15de9be
fix(*): save workspace to localstorage
0e1cba9
fix(cmake): move and overwrite build directory
81338cc
fix(file-tree): styling
e84e84f
feat(file-tree): store expanded nodes
6c5ee3c
refactor(*): project service client
6a6e43a
fix(file-tree): file tree not rendering
c4d0640
fix(file-tree): display selected file
a990e70
fix(file-tree): performance issues
c7d1d03
fix(*): colors
ffe107e
feat(*): sync file manager views
4c51ed6
fix(*): styling
5096281
fix(theme): scrollbar styling
221a830
feat(*): README, dotenv
25c1664
fix(*): HTML export
2c10f92
fix(config): missing properties
73388bf
feat(file-tree): display loading
4deacaf
refactor(file-tree): rename component
e4771e6
refactor(*): file-tree
61a0e5e
refactor(*): do not render grandchild nodes
0447dd4
fix(*): render expanded nodes
864cfe7
fix(*): file view sync
b71e8dc
fix(*): navigate back
e88c94e
fix(*): styling
2834d00
Merge pull request #2 from mdeme01/file-tree-refactor
mdeme01 8215bf2
fix(*): index page styling
aa1167c
refactor(*): context controllers, file manager
6adb52e
fix(*): build request url, symbolic link
c7395e2
fix(*): project client connection
dd51226
refactor(*): thrift codegen, build
f10e25d
fix(*): project client init
20c16ed
feat(*): init git client
f9e3ae1
fix(project): unnecessary useeffect, imports
f0bafde
fix(*): styling, inconsistent imports
2c7f1c0
feat(*): add tab menu
f04503b
feat(*): search client init
5407af7
refactor(*): thrift generation
a072027
Merge branch 'new-frontend' into search-service-client
039e77e
refactor(header): unnecessary menu
61fa8b6
Merge branch 'new-frontend' into search-service-client
76ddc3b
feat(*): search results
f09e97e
fix(results): expanded nodes
2edc47d
feat(*): save expanded nodes
ab881da
feat(*): pagination
b54e0d5
feat(*): pagination search
225b4d3
feat(*): definition search, file name search
f949010
feat(*): search filters, language search
a99f8b6
refactor(*): client connection, config
3c01de5
Merge branch 'new-frontend' into search-service-client
12d4491
fix(*): config undef check
2e69264
Merge branch 'new-frontend' into search-service-client
ddf61af
fix(search-service): missing check
6e63e80
fix(_app): incorrect controller order
980b8c3
Merge branch 'new-frontend' into search-service-client
385f017
fix(config): pathname
998face
Merge branch 'new-frontend' into search-service-client
c4cae43
fix(*): search results
2123663
fix(_app): controller order
63e0d06
refactor(*): unnecessary searchPage state
401293c
refactor(*): localstorage
6d44924
feat(*): matching result selection
4df2b85
feat(*): selected result visible, styling
8bcd441
fix(results): set files & folderpath on click
8809466
fix(results): onclick
51ad9bf
feat(*): get actual search result count
9cb451a
Merge branch 'new-frontend' into search-service-client
a220b70
Merge pull request #3 from mdeme01/search-service-client
mdeme01 e0ebdfe
fix(*): search query, store search languages, styling
7b8cc7e
fix(menu): select styling
550279c
fix(config): remove unnecessary .env variable
a6fc140
feat(*): create metrics service
8d59daf
feat(*): generate diagrams
72b69d1
feat(*): legend, additional diagrams
5309b7b
feat(*): custom context menu for files
bf4ec97
feat(*): language ctx, remove ctx menu, refactor file tree, generate …
bee3774
feat(*): save, export, scale diagram
805aa47
refactor(*): diagram gen, now with ctx menu
cfc88b1
feat(*): metrics options
b1ab194
feat(*): generate metrics treemap
37c9915
feat(*): zoom-pan on diagram
7754da2
fix(project-ctx): unnecessary import
e0f6d7c
Merge pull request #4 from mdeme01/diagrams-and-metrics-service
mdeme01 cc4b5a2
feat(*): cpp service methods
74fb2e8
feat(*): basic info tree
8fb850d
fix(search-results): expanded nodes undef check
a32f504
Merge pull request #5 from mdeme01/new-frontend
mdeme01 77b6302
Merge branch 'Ericsson:master' into master
mdeme01 90b10a6
feat(*): jump to reference, selection
ea132e6
fix(*): info tree references
b7f9b7b
feat(*): file references
6c98b97
feat(*): categorize refs by files
b604673
feat(*): jump to current node ref
53ea21e
feat(*): diagrams for astNodes, fixes
a34713c
feat(*): prepare copy selection feature
0fb14d8
feat(editor-context): get ast html
54d5885
feat(editor-context): jump to definition
7f7e2ae
Merge pull request #6 from mdeme01/info-tree
mdeme01 9e86213
Merge branch 'new-frontend' into git-service-client
b4f1f98
feat(service): git service methods
d25e092
feat(*): repos, branches, tags, commits view
e064e43
feat(*): git diff view
dcdfbec
fix(revision-controll.tsx): remove unnecessary comment
004130b
refactor(*): git url params, don't preload data
0091f8d
refactor(*): separate codemirror component
f478581
Merge pull request #7 from mdeme01/git-service-client
mdeme01 d3a2e16
refactor(git-ctx): use ctx instead of url params
9473f6f
feat(*): copy selection link
20543ad
fix(codemirror): editor width & height
e442304
refactor(file-manager): merge the two file views into one file, do no…
085adc1
refactor(project-ctx): remove unnecessary vars
d604d07
refactor(*): use one context component instead of multiple ones, adju…
081fd70
refactor(*): separate search related ctx variables, adjust changes in…
539bedc
fix(*): diff viewer theme, reset states on project change, file tree …
c31184d
Merge pull request #8 from mdeme01/refactoring
mdeme01 be39eaa
fix(editor): selection dispatch
90b4192
refactor(metrics): container size, colors
1f812b4
fix(*): remove unnecessary local storage, reset router after load
e36d7b3
feat(diagrams): set fileinfo/astnodeinfo on diagram node click
6dddde0
fix(diagrams): unnecessary 'entityType' state
3d5beec
feat(*): create components for welcome, user guide and credits tabs
30ba7eb
fix(git-diff): commit summary styling
bdc36e2
fix(editor-context-menu): display docs correctly
2de379b
refactor(*): diagram generation, appCtx - separate router effect, sto…
c445571
fix(build): remove unnecessary build changes
6d77c0c
fix(context-menus): do not display 'Diagrams' option if no diagrams a…
e24ba59
fix(proj-select): workspaces undef check
b368e26
Merge pull request #9 from mdeme01/new-frontend
mdeme01 90c57a5
fix(*): fix metrics treemap + add path navigation, highlight only the…
a55bbcb
feat(*): custom icon component
e80d148
feat(*): git icons, file icons, info tree icons (more to be added)
c824caa
feat(*): add missing icons, icon colors
ca580fb
refactor(*): styling, code formatting
4ad2bca
reset(remover.sh): reset file to previous commit
f0b7976
feat(config): add eslint react config
5b485d1
refactor(.gitignore): create separate gitignore
7e3f10b
fix(.gitignore): reset to previous commit
135b7ac
fix(codemirror): selection
e62d969
feat(*): display source texts
2e43316
fix(package.json): mui lab version
741054d
Merge branch 'new-frontend' of github.com:mdeme01/CodeCompass into ne…
9e6b218
refactor(cmake): commands
6f95b18
refactor(env): use only one .env variable: BACKEND_URL
6cbdc43
feat(old webgui header): add option to switch to new webgui
544fcee
Merge pull request #10 from mdeme01/new-frontend
mdeme01 8d87d14
Merge branch 'new-frontend' into codebites
0b8255c
feat(*): connect nodes
ebd9c9c
fix(codebites-node): check if new node is undefined
5228d50
Merge pull request #11 from mdeme01/codebites
mdeme01 fd7df9e
feat(*): prepare git blame feature
9d918d5
refactor(*): do not use runtime .env variables
3756fc5
Merge pull request #12 from mdeme01/new-frontend
mdeme01 e4b8ed7
feat(*): overwrite the next.js devserver with a proxy server - it doe…
4855111
feat(*): display git blame
4fff384
Merge pull request #13 from mdeme01/new-frontend
mdeme01 96e4d7b
fix(*): git blame request
97006bf
Merge pull request #14 from mdeme01/new-frontend
mdeme01 7229ee0
Merge branch 'new-frontend' into proxy-server
5006b4b
fix(*): proxy only the 'Service' requests properly
7ee236c
Merge pull request #15 from mdeme01/proxy-server
mdeme01 53781a6
update readme
a47d147
Merge pull request #16 from mdeme01/new-frontend
mdeme01 aad3b7d
fix: use pathname instead of origin in link to new UI
mdeme01 56c1583
fix(file-manager): add jump to source button
b633014
fix(file-manager): add jump to root option
e755f7c
Merge pull request #17 from mdeme01/new-frontend
mdeme01 c8b7a47
fix(next-config): add additional path to basepath and prefix
7fdb055
refactor(*): move settings states from appctx into diagrams
106d0ea
fix(*): selection link
8d5572a
Docker support to have a good version of Node.js.
intjftw 5a5a672
fix(*): eslint config and eslint errors
94295e3
Merge pull request #18 from mdeme01/new-frontend
mdeme01 79dd61f
Merge remote-tracking branch 'mdeme01/master' into mdeme01-master
intjftw b5249cf
Merge pull request #20 from mdeme01/new-frontend
mdeme01 93391b7
refactor(styles): separate styled components
32cf54d
Merge pull request #21 from mdeme01/new-frontend
mdeme01 94c3e70
refactor(*): add more plugins to eslint, add JSX.Element type enforce…
f9a2314
Merge pull request #22 from mdeme01/new-frontend
mdeme01 51e9924
fix(service): add missing try-catches and error logging
c35c82e
Merge pull request #23 from mdeme01/new-frontend
mdeme01 3312fe6
feat(*): add react-toastify
daa5c82
Merge pull request #24 from mdeme01/new-frontend
mdeme01 a0cc7e0
feat(*): add user guide
7eb27b4
Merge pull request #25 from mdeme01/new-frontend
mdeme01 b119e9a
feat(*): share URL
654cc31
fix(*): allow selection and git blame in unparsed files
b79573a
fix(*): codebites node line number offset
79da65b
fix(codebites): more consistent react flow layout with dagre tree
dab4664
fix(cmake): use relative path at symlink creation
b43b8eb
feat(git blame): color commit label on hover for better visibility
3f1b8ed
fix(cmake): copy .env file
e43f917
Merge branch 'new-frontend' of github.com:mdeme01/CodeCompass into ne…
8df0ab3
Merge branch 'Ericsson:master' into master
mdeme01 3551e52
Merge branch 'Ericsson:master' into master
mdeme01 e233b07
fix(code editor): error at astnodeinfo if file is of type unknown, hi…
09c2871
fix(file-manager): directory switching on right click
b8512e6
fix(*): add global state for diagram type to avoid error
9ee0413
feat(service): add error toasts for user relevant methods
3662677
fix(user-guide): bad ul placement, styling, text
82978bf
Merge pull request #26 from mdeme01/new-frontend
mdeme01 7606c00
refactor(codebites): usereactflow hook to update the diagram, delete …
275bc6e
Merge pull request #27 from mdeme01/new-frontend
mdeme01 5a23330
Merge branch 'new-frontend' into persistent-urls
5b6c993
feat(*): persistent url params
f344a6c
fix(*): git blame and astnode selection conflict, remove astnode sele…
d6079a2
fix(appcontext): unnecessary check
2185975
fix(header): remove unnecessary 'copy url' button
8118d6b
Merge branch 'Ericsson:master' into persistent-urls
mdeme01 f451d00
Merge branch 'Ericsson:master' into new-frontend
mdeme01 0867c7e
fix(header styles): remove unnecessary style
6b87d84
Merge branch 'persistent-urls' of github.com:mdeme01/CodeCompass into…
2d45076
fix(appctx): workspaces state type
1fa3839
Merge pull request #28 from mdeme01/persistent-urls
mdeme01 9cee906
Merge branch 'Ericsson:master' into master
mdeme01 ff64db1
fix(.env): public url empty by default
69dac9d
Merge pull request #29 from mdeme01/new-frontend
mdeme01 188ed75
refactor(gitblame): do not use gutter for gitblame, create separate c…
543ba27
fix(gitblame): line heights, context menu not disappearing on git bla…
529e95a
Merge pull request #30 from mdeme01/new-frontend
mdeme01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| PUBLIC_URL= | ||
| BACKEND_URL=http://localhost:8080 | ||
| DEVSERVER_PORT=3000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "parser": "@typescript-eslint/parser", | ||
| "plugins": ["@typescript-eslint", "react-hooks"], | ||
| "extends": [ | ||
| "next/core-web-vitals", | ||
| "eslint:recommended", | ||
| "plugin:react/recommended", | ||
| "plugin:@typescript-eslint/recommended", | ||
| "plugin:react-hooks/recommended" | ||
| ], | ||
| "globals": { | ||
| "JSX": true | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # dependencies | ||
| node_modules | ||
| .pnp | ||
| .pnp.js | ||
|
|
||
| # testing | ||
| coverage | ||
|
|
||
| # next.js | ||
| .next/ | ||
| out/ | ||
|
|
||
| # production | ||
| build | ||
|
|
||
| # misc | ||
| .DS_Store | ||
| *.pem | ||
|
|
||
| # debug | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| .pnpm-debug.log* | ||
|
|
||
| # local env files | ||
| .env*.local | ||
|
|
||
| # vercel | ||
| .vercel | ||
|
|
||
| # typescript | ||
| *.tsbuildinfo | ||
| next-env.d.ts | ||
|
|
||
| # thrift generated files | ||
| generated/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| v18.13.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| install(DIRECTORY | ||
| public src | ||
| DESTINATION ${INSTALL_WEBROOT_REACT_DIR}/app | ||
| USE_SOURCE_PERMISSIONS | ||
| FILES_MATCHING PATTERN "[^.]*") | ||
|
|
||
| install(FILES | ||
| tsconfig.json | ||
| next.config.js | ||
| thrift-codegen.sh | ||
| .env | ||
| DESTINATION ${INSTALL_WEBROOT_REACT_DIR}/app) | ||
|
|
||
| # Install React application | ||
| install(CODE "set(CC_PACKAGE \"${CMAKE_CURRENT_SOURCE_DIR}/package.json\")") | ||
| install(CODE "set(INSTALL_WEBROOT_DIR ${INSTALL_WEBROOT_DIR})") | ||
| install(CODE "set(INSTALL_WEBROOT_REACT_DIR ${INSTALL_WEBROOT_REACT_DIR})") | ||
| install(CODE "set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE})") | ||
| install(CODE "set(CMAKE_SOURCE_DIR ${CMAKE_SOURCE_DIR})") | ||
| install(SCRIPT InstallReact.cmake) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| # Utility functions | ||
| include(${CMAKE_SOURCE_DIR}/Functions.cmake) | ||
|
|
||
| message("Install npm packages...") | ||
|
|
||
| if(${CC_PACKAGE} IS_NEWER_THAN ${INSTALL_WEBROOT_REACT_DIR}/app/package.json) | ||
| execute_process( | ||
| COMMAND ${CMAKE_COMMAND} -E copy ${CC_PACKAGE} ${INSTALL_WEBROOT_REACT_DIR}/app/package.json | ||
| WORKING_DIRECTORY ${INSTALL_WEBROOT_REACT_DIR}) | ||
|
|
||
| execute_process( | ||
| COMMAND npm install | ||
| WORKING_DIRECTORY ${INSTALL_WEBROOT_REACT_DIR}/app) | ||
| endif() | ||
|
|
||
| message("Installation of npm packages are finished.") | ||
|
|
||
| # Generate TypeScript from Thrift | ||
| execute_process( | ||
| COMMAND bash -c "chmod +x thrift-codegen.sh" | ||
| WORKING_DIRECTORY ${INSTALL_WEBROOT_REACT_DIR}/app) | ||
|
|
||
| execute_process( | ||
| COMMAND bash thrift-codegen.sh --thrift-source ${CMAKE_SOURCE_DIR} | ||
| WORKING_DIRECTORY ${INSTALL_WEBROOT_REACT_DIR}/app) | ||
|
|
||
| message("Building React App...") | ||
|
|
||
| execute_process( | ||
| COMMAND npm run build | ||
| WORKING_DIRECTORY ${INSTALL_WEBROOT_REACT_DIR}/app) | ||
|
|
||
| # Move build directory out of application directory | ||
| file(REMOVE_RECURSE ${INSTALL_WEBROOT_REACT_DIR}/out) | ||
| file(RENAME ${INSTALL_WEBROOT_REACT_DIR}/app/out ${INSTALL_WEBROOT_REACT_DIR}/out) | ||
|
|
||
| # Create symbolic link | ||
| execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ../webgui-new/out ${INSTALL_WEBROOT_DIR}/new) | ||
|
|
||
| if (CMAKE_BUILD_TYPE STREQUAL "Release") | ||
| # Remove application source code in case of Release build | ||
| file(REMOVE ${INSTALL_WEBROOT_REACT_DIR}/app) | ||
| endif() | ||
|
|
||
| message("Building React App finished.") | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| # New Web GUI development guide | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| Make sure you are using at least version 18 of [Node.js](https://nodejs.org/en/).\ | ||
| You can also download [nvm](https://github.com/nvm-sh/nvm), and run `nvm install` at the root of the project to use the specified Node version (18.13.0). | ||
|
|
||
| ## Development | ||
|
|
||
| Run the webserver with: | ||
|
|
||
| ```bash | ||
| cd <path-to-webserver-binary> && ./CodeCompass_webserver -w <path-to-workspace-folder> -p <port> | ||
| ``` | ||
|
|
||
| Install npm packages with: | ||
|
|
||
| ```bash | ||
| npm install | ||
| ``` | ||
|
|
||
| Generate TypeScript files from Thrift by running the following command: | ||
|
|
||
| ```bash | ||
| chmod +x thrift-codegen.sh && ./thrift-codegen.sh --thrift-source ../ | ||
| ``` | ||
|
|
||
| You can set the URL of the webserver (`BACKEND_URL`) and the port of the development server (`DEVSERVER_PORT`) by creating a `.env.local` file at the root of the project. This will override the variables in the `.env` file.\ | ||
| The default value is `http://localhost:8080` for the webserver URL and `3000` for the port of the development server, as seen in the `.env` file. | ||
|
|
||
| ```py | ||
| # .env.local | ||
| BACKEND_URL= | ||
| DEVSERVER_PORT= | ||
| ``` | ||
|
|
||
| After this, you can run the development server with: | ||
|
|
||
| ```bash | ||
| npm run dev | ||
| ``` | ||
|
|
||
| Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.\ | ||
| (Make sure to open the URL with the correct port if you chose to override the port for the devserver.) | ||
|
|
||
| ## Learn More | ||
|
|
||
| This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). | ||
|
|
||
| To learn more about Next.js, take a look at the following resources: | ||
|
|
||
| - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. | ||
| - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. | ||
|
|
||
| You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! | ||
|
|
||
| ## Build and Install | ||
|
|
||
| For building and installing the application, or parsing projects, please refer to the [CodeCompass README](/README.md) documentations and development sections.\ | ||
| (Note: For development, use SQLite as a database for parsing projects.) | ||
|
|
||
| After installing, the current webgui will still be available at the root URL of the webserver (`/`), but you can also reach the new webgui at (`/new`). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| require('dotenv').config(); | ||
|
|
||
| /** @type {import('next').NextConfig} */ | ||
| const nextConfig = { | ||
| reactStrictMode: true, | ||
| modularizeImports: { | ||
| '@mui/icons-material': { | ||
| transform: '@mui/icons-material/{{member}}', | ||
| }, | ||
| }, | ||
| trailingSlash: true, | ||
| ...(process.env.NODE_ENV === 'production' && { | ||
| assetPrefix: `${process.env.PUBLIC_URL || ''}/new`, | ||
| basePath: `${process.env.PUBLIC_URL || ''}/new`, | ||
| }), | ||
| }; | ||
|
|
||
| module.exports = nextConfig; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.