Skip to content
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

Index Page to Groundwork/React #658

Draft
wants to merge 24 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
aab769d
Vite project src initialization
krowvin Apr 10, 2024
56c8e62
Remove previous files
krowvin Apr 10, 2024
01741bf
Add initial page layout using groundwork components. Issue with tailw…
krowvin Apr 10, 2024
da27697
Setup tailwind for the project
krowvin May 11, 2024
ddc59ed
Update contributors link
krowvin May 11, 2024
05bc955
Update the readme for the react app
krowvin May 11, 2024
5c964c6
Convert swagger page to react
krowvin May 11, 2024
87e4d44
Add base path, setup routes
krowvin May 11, 2024
586e928
Add regex page link, cleanup old css hrefs
krowvin May 11, 2024
f0136d6
Update link to include regex, test builds, update favicons
krowvin May 11, 2024
7e9bdcc
Remove npm files from the root of the project
krowvin May 11, 2024
f971b9e
These need to be relative for it to work with everyone's deployment
krowvin May 11, 2024
1cca639
Add 404, Login, and Breadcrumbs
krowvin May 15, 2024
fb168fb
Add redirect to index for tomcat from 404. Update header nav links.
krowvin May 15, 2024
7c572b4
Attempting dynamic base path client-side routing. Attempted with rea…
krowvin May 17, 2024
f09823b
Remove old webapp src directory
krowvin May 21, 2024
58bcac1
Move webapp-src to root and rename
krowvin Jan 16, 2025
fe3e1ea
Remove Login Button
krowvin Jan 16, 2025
1022363
Add data query landing page init
krowvin Jan 16, 2025
9472a94
Bump package versions, install react dom router, update package lock.
krowvin Jan 16, 2025
979393a
Remove webapp build/dist files that should not be committed
krowvin Jan 16, 2025
089c864
Make basepath based on env var
krowvin Jan 16, 2025
acd253c
Use Relative base path
krowvin Jan 16, 2025
d153b73
Add test <Link /> on home page, experiment with relative links
krowvin Jan 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions cda-gui/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: ['react-refresh'],
rules: {
'react/jsx-no-target-blank': 'off',
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
24 changes: 24 additions & 0 deletions cda-gui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
13 changes: 13 additions & 0 deletions cda-gui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# CDA Landing Page Source

*The React+Vite project for CDA*


To run the project in dev:
`npm run dev`

To build the project:
`npm run build`
*NOTE*: Building the project will also deploy it to the required tomcat webapps directory `webapp`

To see the available scripts for this project, including how to run and deploy, look at the `package.json` file.
14 changes: 14 additions & 0 deletions cda-gui/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CDA - CWMS Data API</title>
<meta name="Description" content="CDA CWMS Data API" />
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
Loading
Loading