Skip to content

Commit 0daac21

Browse files
committed
Merge with master
2 parents 346780c + e18f33d commit 0daac21

File tree

406 files changed

+101367
-7432
lines changed

Some content is hidden

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

406 files changed

+101367
-7432
lines changed

.babelrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/workflows/build-dev.yaml renamed to .github/workflows/build-image.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
name: Build Development
1+
name: Build image
22

33
on:
44
push:
55
branches: ["main"]
6+
tags:
7+
- v[0-9]+.[0-9]+.[0-9]+ # Semver Release (non-prerelease)
68
pull_request:
79
branches: [main]
810

@@ -19,15 +21,20 @@ jobs:
1921
uses: docker/metadata-action@v4
2022
with:
2123
images: hub.opensciencegrid.org/macrostrat/web
24+
# New: apply the 'latest' tag to non-prerelease semver tags
2225
tags: |
23-
type=semver,pattern={{version}}
26+
type=raw,value=sha-{{sha}}
2427
type=raw,value=latest-itb
28+
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-')}}
29+
type=raw,value=latest-itb-{{date 'YYYYMMDDHHmmss'}}
2530
type=ref,event=pr,suffix=-{{date 'YYYYMMDDHHmmss'}}
2631
type=ref,event=branch,suffix=-{{date 'YYYYMMDDHHmmss'}}
2732
type=ref,event=tag,suffix=-{{date 'YYYYMMDDHHmmss'}}
28-
type=raw,value=latest-itb-{{date 'YYYYMMDDHHmmss'}}
29-
type=raw,value=sha-{{sha}}
30-
- name: Set up Docker Buildx
33+
type=semver,pattern={{version}}
34+
type=semver,pattern={{version}}-{{date 'YYYYMMDDHHmmss'}}
35+
flavor: |
36+
latest=false
37+
- name: Set up Docker BuildX
3138
uses: docker/setup-buildx-action@v2
3239
- name: Login to OSG DockerHub
3340
uses: docker/login-action@v2

.github/workflows/build-prod.yaml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/test-build.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.gitignore

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ docker-compose.yaml
1616
!.yarn/sdks
1717
!.yarn/versions
1818

19-
.vite
20-
19+
# IntelliJ
2120
.idea
21+
.idea/workspace.xml
22+
.idea/tasks.xml
23+
24+
25+
# For ignoring static files
26+
*.png
27+
*.jpg
28+
29+
.vite

.idea/.gitignore

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/Project.xml

Lines changed: 57 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jsLibraryMappings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/prettier.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/Run_with_Chrome_Debugger.xml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/watcherTasks.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/web.iml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.vscode/settings.json

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
11
{
22
"search.exclude": {
33
"**/.yarn": true,
4-
"**/.pnp.*": true
4+
"**/.pnp.*": true,
5+
".vite": true,
6+
"node_modules": true,
7+
"dist": true
58
},
69
"typescript.tsdk": ".yarn/sdks/typescript/lib",
710
"typescript.enablePromptUseWorkspaceTsdk": true,
811
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
9-
// Disable organized imports for typescript
10-
"[typescript]": {
11-
"editor.codeActionsOnSave": {
12-
"source.organizeImports": "never"
13-
}
12+
"cSpell.enableFiletypes": [
13+
"!javascript",
14+
"!javascriptreact",
15+
"!json",
16+
"!scss",
17+
"!typescript"
18+
],
19+
"files.exclude": {
20+
"**/.git": true,
21+
"**/.svn": true,
22+
"**/.hg": true,
23+
"**/CVS": true,
24+
"**/.DS_Store": true,
25+
"**/Thumbs.db": true,
26+
"**/__pycache__": true
1427
}
1528
}

.yarn/sdks/typescript/lib/tsserver.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ const relPnpApiPath = "../../../../.pnp.cjs";
99
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
1010
const absRequire = createRequire(absPnpApiPath);
1111

12+
if (existsSync(absPnpApiPath)) {
13+
if (!process.versions.pnp) {
14+
// Setup the environment to be able to require typescript/lib/tsserver.js
15+
require(absPnpApiPath).setup();
16+
}
17+
}
18+
1219
const moduleWrapper = tsserver => {
1320
if (!process.versions.pnp) {
1421
return tsserver;
@@ -214,11 +221,11 @@ const moduleWrapper = tsserver => {
214221
return tsserver;
215222
};
216223

217-
if (existsSync(absPnpApiPath)) {
218-
if (!process.versions.pnp) {
219-
// Setup the environment to be able to require typescript/lib/tsserver.js
220-
require(absPnpApiPath).setup();
221-
}
224+
const [major, minor] = absRequire(`typescript/package.json`).version.split(`.`, 2).map(value => parseInt(value, 10));
225+
// In TypeScript@>=5.5 the tsserver uses the public TypeScript API so that needs to be patched as well.
226+
// Ref https://github.com/microsoft/TypeScript/pull/55326
227+
if (major > 5 || (major === 5 && minor >= 5)) {
228+
moduleWrapper(absRequire(`typescript`));
222229
}
223230

224231
// Defer to the real typescript/lib/tsserver.js your application uses

.yarn/sdks/typescript/lib/tsserverlibrary.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ const relPnpApiPath = "../../../../.pnp.cjs";
99
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
1010
const absRequire = createRequire(absPnpApiPath);
1111

12+
if (existsSync(absPnpApiPath)) {
13+
if (!process.versions.pnp) {
14+
// Setup the environment to be able to require typescript/lib/tsserverlibrary.js
15+
require(absPnpApiPath).setup();
16+
}
17+
}
18+
1219
const moduleWrapper = tsserver => {
1320
if (!process.versions.pnp) {
1421
return tsserver;
@@ -214,11 +221,11 @@ const moduleWrapper = tsserver => {
214221
return tsserver;
215222
};
216223

217-
if (existsSync(absPnpApiPath)) {
218-
if (!process.versions.pnp) {
219-
// Setup the environment to be able to require typescript/lib/tsserverlibrary.js
220-
require(absPnpApiPath).setup();
221-
}
224+
const [major, minor] = absRequire(`typescript/package.json`).version.split(`.`, 2).map(value => parseInt(value, 10));
225+
// In TypeScript@>=5.5 the tsserver uses the public TypeScript API so that needs to be patched as well.
226+
// Ref https://github.com/microsoft/TypeScript/pull/55326
227+
if (major > 5 || (major === 5 && minor >= 5)) {
228+
moduleWrapper(absRequire(`typescript`));
222229
}
223230

224231
// Defer to the real typescript/lib/tsserverlibrary.js your application uses

.yarnrc.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,12 @@ pnpFallbackMode: all
77
pnpMode: loose
88

99
yarnPath: .yarn/releases/yarn-4.2.2.cjs
10+
11+
packageExtensions:
12+
debug@*:
13+
dependencies:
14+
supports-color: "*"
15+
16+
vite@*:
17+
dependencies:
18+
supports-color: "*"

0 commit comments

Comments
 (0)