Skip to content

Commit 1ccc906

Browse files
committed
merging main into this branch
1 parent fe6a0e4 commit 1ccc906

File tree

156 files changed

+46596
-852
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+46596
-852
lines changed

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
packages/maplibre-gl-js
1+
*.mdx

.yarnrc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ packageExtensions:
1010
dependencies:
1111
supports-color: "*"
1212

13+
'@next/react-dev-overlay@*':
14+
peerDependencies:
15+
react: '*'
16+
1317
pnpFallbackMode: all
1418

1519
pnpMode: loose

package.json

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,15 @@
99
"dev": "NODE_NO_WARNINGS=1 yarn run server:dev",
1010
"build": "vite build",
1111
"server": "tsx ./server/index.ts",
12-
"server:dev": "tsx ./server/index.ts",
12+
"server:dev": "tsx --env-file=.env ./server/index.ts",
1313
"format": "prettier --write src packages",
1414
"server:prod": "NODE_NO_WARNINGS=1 NODE_ENV=production yarn run server",
15-
"dev:storybook": "yarn workspace @macrostrat/storybook run dev",
1615
"start": "yarn run build && yarn run server",
1716
"test:runtime": "tsx tests/test-urls.ts",
1817
"test": "vitest"
1918
},
2019
"workspaces": [
2120
"deps/web-components/packages/*",
22-
"deps/web-components/storybook",
2321
"deps/cesium-viewer",
2422
"deps/cesium-martini",
2523
"packages/*"
@@ -35,15 +33,16 @@
3533
"@babel/preset-env": "^7.19.4",
3634
"@babel/preset-typescript": "^7.18.6",
3735
"@macrostrat/revision-info-webpack": "^1.0.0",
38-
"@macrostrat/storybook": "workspace:*",
3936
"@mdx-js/rollup": "^2.3.0",
40-
"@types/esprima": "^4",
41-
"@types/prop-types": "^15",
4237
"@types/underscore": "^1",
4338
"@typescript-eslint/eslint-plugin": "^6.3.0",
4439
"@typescript-eslint/parser": "^6.3.0",
4540
"@yarnpkg/sdks": "^3.1.0",
41+
"chalk": "^5.3.0",
42+
"http-proxy-middleware": "^3.0.3",
4643
"prettier": "^2.7.1",
44+
"react-arborist": "^3.4.0",
45+
"react-text-annotate-blend": "^1.2.0",
4746
"sass": "^1.49.0",
4847
"sass-embedded": "^1.79.1",
4948
"stylus": "^0.55.0",
@@ -53,12 +52,11 @@
5352
},
5453
"dependencies": {
5554
"@blueprintjs/core": "^5.10.2",
56-
"@blueprintjs/icons": "^5.13.0",
5755
"@blueprintjs/select": "^5.1.4",
58-
"@blueprintjs/table": "^5.2.2",
56+
"@blueprintjs/table": "^5.1.4",
5957
"@lagunovsky/redux-react-router": "^3.2.0",
6058
"@loadable/component": "^5.14.1",
61-
"@macrostrat-web/data-sheet-test": "workspace:*",
59+
"@macrostrat-web/column-builder": "workspace:*",
6260
"@macrostrat-web/globe": "workspace:*",
6361
"@macrostrat-web/lithology-hierarchy": "workspace:*",
6462
"@macrostrat-web/map-utils": "workspace:*",
@@ -72,17 +70,15 @@
7270
"@macrostrat/api-utils": "workspace:*",
7371
"@macrostrat/api-views": "workspace:*",
7472
"@macrostrat/auth-components": "workspace:*",
75-
"@macrostrat/cesium-viewer": "workspace:^",
7673
"@macrostrat/color-utils": "workspace:*",
7774
"@macrostrat/column-components": "workspace:*",
7875
"@macrostrat/column-views": "workspace:*",
79-
"@macrostrat/concept-app-helpers": "workspace:^",
8076
"@macrostrat/corelle": "^2.0.1",
81-
"@macrostrat/data-components": "workspace:^",
77+
"@macrostrat/data-components": "workspace:*",
8278
"@macrostrat/data-sheet2": "workspace:*",
8379
"@macrostrat/feedback-components": "workspace:*",
8480
"@macrostrat/hyper": "^2.2.1",
85-
"@macrostrat/map-components": "workspace:^",
81+
"@macrostrat/map-components": "workspace:*",
8682
"@macrostrat/map-interface": "workspace:*",
8783
"@macrostrat/mapbox-react": "workspace:^2.1.0",
8884
"@macrostrat/mapbox-styles": "workspace:*",
@@ -108,17 +104,10 @@
108104
"@types/react-redux": "^7.1.7",
109105
"@universal-middleware/express": "^0.0.2",
110106
"@visx/axis": "^2.14.0",
111-
"@visx/group": "^3.3.0",
112107
"@visx/scale": "^2.2.2",
113-
"@visx/shape": "^3.5.0",
114108
"@vitejs/plugin-react": "^4.0.4",
115-
"@vx/axis": "^0.0.199",
116-
"@vx/scale": "^0.0.199",
117-
"@vx/shape": "^0.0.199",
118-
"@znemz/cesium-navigation": "^4.0.0",
119109
"axios": "^0.25.0",
120-
"cesium": "^1.122.0",
121-
"chroma-js": "^2.4.2",
110+
"chroma-js": "^3.0.0",
122111
"classnames": "^2.2.6",
123112
"compression": "^1.7.4",
124113
"cookie-parser": "^1.4.6",
@@ -135,17 +124,16 @@
135124
"esprima": "^4.0.1",
136125
"express": "^4.18.2",
137126
"express-http-proxy": "^2.0.0",
138-
"gl-matrix": "^3.4.3",
127+
"fuse.js": "^7.0.0",
139128
"hex-to-css-filter": "^5.4.0",
140129
"history": "^5.3.0",
141130
"immutability-helper": "^3.1.1",
142131
"jose": "^5.1.2",
143132
"mapbox-gl": "^2.15.0",
144133
"new-github-issue-url": "^1.0.0",
145-
"prop-types": "^15.8.1",
134+
"part-regex": "^0.1.2",
146135
"react": "^18.3.0",
147136
"react-cookie": "^3.0.4",
148-
"react-datasheet": "^1.4.12",
149137
"react-dom": "^18.3.0",
150138
"react-intersection-observer": "^9.4.3",
151139
"react-redux": "^7.2.0",
@@ -156,24 +144,24 @@
156144
"reduce-reducers": "^1.0.4",
157145
"redux": "^4.0.5",
158146
"sirv": "^2.0.3",
159-
"supercluster": "^8.0.1",
160147
"swagger-ui-react": "^5.12.3",
161148
"topojson-client": "^3.0.0",
162149
"transition-hook": "^1.5.2",
163150
"tsx": "^4.11.2",
164151
"underscore": "^1.13.6",
165152
"use-debounce": "^9.0.4",
153+
"use-element-dimensions": "^2.1.3",
166154
"use-react-router-breadcrumbs": "^3.2.1",
167155
"use-resize-observer": "^9.1.0",
168-
"vike": "^0.4.177",
169-
"vike-react": "^0.4.15",
170-
"vite": "5.4.11",
156+
"vike": "^0.4.199",
157+
"vike-react": "^0.5.7",
158+
"vite": "^5.3.2",
171159
"vite-plugin-cesium": "^1.2.22",
172160
"vite-plugin-inspect": "^0.8.4",
173161
"zustand": "^4.5.1"
174162
},
175163
"prettier": {
176164
"proseWrap": "always"
177165
},
178-
"packageManager": "yarn@4.3.1"
166+
"packageManager": "yarn@4.5.1"
179167
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

packages/column-builder/.gitignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
_node_modules
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
.yarn/cache
9+
.yarn/install-state.gz
10+
.yarn/unplugged
11+
12+
.pnp*
13+
14+
# testing
15+
/coverage
16+
17+
# next.js
18+
/.next/
19+
/out/
20+
21+
# production
22+
/build
23+
24+
# misc
25+
.DS_Store
26+
*.pem
27+
28+
# debug
29+
npm-debug.log*
30+
yarn-debug.log*
31+
yarn-error.log*
32+
33+
# local env files
34+
.env.local
35+
.env.development.local
36+
.env.test.local
37+
.env.production.local
38+
.env.production
39+
.env.development
40+
# vercel
41+
.vercel
42+
43+
# typescript
44+
*.tsbuildinfo

packages/column-builder/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
This web application is based on [Next.js](https://nextjs.org/) and installed using Yarn PnP.
2+
3+
4+
## Getting Started
5+
6+
**You should use Yarn (>v2), not NPM, to install this application.
7+
Everything is set up for "Plug'n'Play" modules.**
8+
9+
1. Install modules: `yarn`
10+
2. Run the development server: `yarn run dev`.
11+
12+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
13+
14+
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
15+
16+
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
17+
18+
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
19+
20+
## Learn More
21+
22+
To learn more about Next.js, take a look at the following resources:
23+
24+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
25+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
26+
27+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
28+
29+
## Deploy on Vercel
30+
31+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
32+
33+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Dockerfile
2+
.dockerignore
3+
node_modules
4+
npm-debug.log
5+
README.md
6+
.next
7+
docker
8+
.git
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM node:14.19
2+
3+
WORKDIR /app/dacite
4+
5+
COPY package*.json ./
6+
COPY deps/web-components/packages/ui-components/package.json ./deps/web-components/packages/ui-components/
7+
COPY deps/web-components/packages/form-components/package.json ./deps/web-components/packages/form-components/
8+
COPY deps/web-components/packages/data-components/package.json ./deps/web-components/packages/data-components/
9+
10+
RUN npm install
11+
12+
EXPOSE 1234
13+
14+
CMD ["npm", "run", "dev"]
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
FROM node:16-alpine AS builder
2+
3+
WORKDIR /app/
4+
COPY . .
5+
6+
RUN npm install
7+
8+
# This will do the trick, use the corresponding env file for each environment.
9+
COPY ./.env.production .
10+
11+
RUN npm run build
12+
13+
# 3. Production image, copy all the files and run next
14+
FROM node:16-alpine AS runner
15+
WORKDIR /app/
16+
17+
ENV NODE_ENV=production
18+
19+
# # You only need to copy next.config.js if you are NOT using the default configuration
20+
COPY --from=builder /app/.env.production ./
21+
COPY --from=builder /app/next.config.js ./
22+
COPY --from=builder /app/package.json ./package.json
23+
COPY --from=builder /app/node_modules ./node_modules
24+
COPY --from=builder /app/.next ./.next
25+
26+
EXPOSE 1234
27+
28+
ENV PORT 1234
29+
30+
CMD ["npm", "run", "start"]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## place this into an .env.development file in this directory!!
2+
NEXT_PUBLIC_SERVER_URL=http://localhost:3001
3+
NEXT_PUBLIC_CLIENT_URL=http://localhost:3001
4+
NEXT_PUBLIC_TOPOLOGY_URL=http://localhost:1235
5+
NEXT_PUBLIC_BASE_URL=
6+
7+
## .env.production
8+
NEXT_PUBLIC_SERVER_URL=http://postgrest:3001
9+
NEXT_PUBLIC_CLIENT_URL=http://localhost:3001
10+
NEXT_PUBLIC_TOPOLOGY_URL=http://localhost:1235
11+
NEXT_PUBLIC_BASE_URL=/dacite

0 commit comments

Comments
 (0)