-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:neurostuff/neurostore into enh/ad…
…v_search
- Loading branch information
Showing
103 changed files
with
12,894 additions
and
39,405 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -102,7 +102,6 @@ ENV/ | |
|
||
# Spyder project settings | ||
.spyderproject | ||
.vscode | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
REACT_APP_AUTH0_DOMAIN=dev-mui7zm42.us.auth0.com | ||
REACT_APP_AUTH0_CLIENT_ID=YOUR_NEUROSTORE_API_AUTH0_CLIENT_ID | ||
REACT_APP_AUTH0_CLIENT_SECRET=YOUR_AUTH0_CLIENT_SECRET | ||
REACT_APP_AUTH0_AUDIENCE=localhost | ||
REACT_APP_NEUROSTORE_API_DOMAIN=http://localhost/api | ||
REACT_APP_NEUROSYNTH_API_DOMAIN=http://localhost:81/api | ||
REACT_APP_ENV=DEV | ||
REACT_APP_PUBMED_API_KEY=YOUR_PUBMED_KEY | ||
VITE_APP_AUTH0_DOMAIN=dev-mui7zm42.us.auth0.com | ||
VITE_APP_AUTH0_CLIENT_ID=YOUR_NEUROSTORE_API_AUTH0_CLIENT_ID | ||
VITE_APP_AUTH0_CLIENT_SECRET=YOUR_AUTH0_CLIENT_SECRET | ||
VITE_APP_AUTH0_AUDIENCE=localhost | ||
VITE_APP_NEUROSTORE_API_DOMAIN=http://localhost/api | ||
VITE_APP_NEUROSYNTH_API_DOMAIN=http://localhost:81/api | ||
VITE_APP_ENV=DEV | ||
VITE_APP_PUBMED_API_KEY=YOUR_PUBMED_KEY |
This file was deleted.
Oops, something went wrong.
This file contains 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,8 @@ | ||
{ | ||
"singleQuote": true, | ||
"semi": true, | ||
"trailingComma": "es5", | ||
"tabWidth": 4, | ||
"tabs": false, | ||
"printWidth": 120 | ||
} |
16 changes: 16 additions & 0 deletions
16
compose/neurosynth-frontend/__mocks__/@auth0/auth0-react.ts
This file contains 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,16 @@ | ||
import { vi } from 'vitest'; | ||
|
||
const useAuth0 = vi.fn().mockReturnValue({ | ||
getAccessTokenSilently: vi.fn().mockImplementation(() => { | ||
return Promise.resolve('test-token'); | ||
}), | ||
loginWithPopup: vi.fn(), | ||
logout: vi.fn(), | ||
isAuthenticated: false, | ||
isLoading: false, | ||
user: { | ||
sub: 'some-github-user', | ||
}, | ||
}); | ||
|
||
export { useAuth0 }; |
This file contains 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,7 @@ | ||
import { vi } from 'vitest'; | ||
|
||
const useSnackbar = vi.fn().mockReturnValue({ | ||
enqueueSnackbar: vi.fn(), | ||
}); | ||
|
||
export { useSnackbar }; |
This file contains 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,13 @@ | ||
import { vi } from 'vitest'; | ||
|
||
const useQueryClient = vi.fn().mockReturnValue({ | ||
invalidateQueries: vi.fn(), | ||
}); | ||
|
||
const useQuery = vi.fn().mockReturnValue({ | ||
data: null, | ||
isLoading: false, | ||
isError: false, | ||
}); | ||
|
||
export { useQueryClient, useQuery }; |
7 changes: 4 additions & 3 deletions
7
...ontend/src/__mocks__/react-router-dom.tsx → ...h-frontend/__mocks__/react-router-dom.tsx
This file contains 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 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 |
---|---|---|
|
@@ -24,11 +24,11 @@ export default defineConfig({ | |
env: { | ||
auth0Username: '[email protected]', | ||
auth0Password: 'password', | ||
auth0ClientId: process.env.REACT_APP_AUTH0_CLIENT_ID, | ||
auth0ClientSecret: process.env.REACT_APP_AUTH0_CLIENT_SECRET, | ||
auth0Domain: process.env.REACT_APP_AUTH0_DOMAIN, | ||
auth0Audience: process.env.REACT_APP_AUTH0_AUDIENCE, | ||
neurostoreAPIBaseURL: process.env.REACT_APP_NEUROSTORE_API_DOMAIN, | ||
neurosynthAPIBaseURL: process.env.REACT_APP_NEUROSYNTH_API_DOMAIN, | ||
auth0ClientId: process.env.VITE_APP_AUTH0_CLIENT_ID, | ||
auth0ClientSecret: process.env.VITE_APP_AUTH0_CLIENT_SECRET, | ||
auth0Domain: process.env.VITE_APP_AUTH0_DOMAIN, | ||
auth0Audience: process.env.VITE_APP_AUTH0_AUDIENCE, | ||
neurostoreAPIBaseURL: process.env.VITE_APP_NEUROSTORE_API_DOMAIN, | ||
neurosynthAPIBaseURL: process.env.VITE_APP_NEUROSYNTH_API_DOMAIN, | ||
}, | ||
}); |
This file contains 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 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 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,38 @@ | ||
import tsParser from '@typescript-eslint/parser'; | ||
import eslint from '@eslint/js'; | ||
import teslint from 'typescript-eslint'; | ||
import eslintHooks from 'eslint-plugin-react-hooks'; | ||
import eslintCypress from 'eslint-plugin-cypress/flat'; | ||
import eslintPrettier from 'eslint-plugin-prettier/recommended'; | ||
import globals from 'globals'; | ||
import eslintReactRefresh from 'eslint-plugin-react-refresh'; | ||
|
||
export default [ | ||
eslint.configs.recommended, | ||
...teslint.configs.recommended, | ||
eslintCypress.configs.recommended, | ||
eslintPrettier, | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
}, | ||
parser: tsParser, | ||
parserOptions: { | ||
ecmaFeatures: { | ||
modules: true, | ||
}, | ||
ecmaVersion: 2020, | ||
project: './tsconfig.json', | ||
}, | ||
}, | ||
plugins: { | ||
'react-hooks': eslintHooks, | ||
'react-refresh': eslintReactRefresh, | ||
}, | ||
rules: { | ||
...eslintHooks.configs.recommended.rules, | ||
'react-refresh/only-export-components': 'warn', | ||
}, | ||
}, | ||
]; |
This file contains 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 was deleted.
Oops, something went wrong.
Oops, something went wrong.