@apollo-annotation/jbrowse-plugin-apollo 0.1.15 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +16 -14
- package/dist/index.esm.js.map +1 -1
- package/dist/jbrowse-plugin-apollo.cjs.development.js +16 -14
- package/dist/jbrowse-plugin-apollo.cjs.development.js.map +1 -1
- package/dist/jbrowse-plugin-apollo.cjs.production.min.js +1 -1
- package/dist/jbrowse-plugin-apollo.cjs.production.min.js.map +1 -1
- package/dist/jbrowse-plugin-apollo.umd.development.js +16 -14
- package/dist/jbrowse-plugin-apollo.umd.development.js.map +1 -1
- package/dist/jbrowse-plugin-apollo.umd.production.min.js +1 -1
- package/dist/jbrowse-plugin-apollo.umd.production.min.js.map +1 -1
- package/package.json +4 -4
- package/src/ApolloInternetAccount/components/AuthTypeSelector.tsx +1 -1
- package/src/ApolloInternetAccount/model.ts +7 -5
- package/src/components/AddAssembly.tsx +1 -1
- package/src/components/ImportFeatures.tsx +2 -2
- package/src/components/ManageChecks.tsx +2 -2
- package/src/components/ManageUsers.tsx +1 -1
- package/src/components/ViewChangeLog.tsx +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -48,7 +48,7 @@ import ExpandLessIcon from '@mui/icons-material/ExpandLess';
|
|
|
48
48
|
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|
49
49
|
import ErrorIcon from '@mui/icons-material/Error';
|
|
50
50
|
|
|
51
|
-
var version = "0.1.
|
|
51
|
+
var version = "0.1.17";
|
|
52
52
|
|
|
53
53
|
const ApolloConfigSchema = ConfigurationSchema('ApolloInternetAccount', {
|
|
54
54
|
baseURL: {
|
|
@@ -437,7 +437,7 @@ function AddAssembly({ changeManager, handleClose, session, }) {
|
|
|
437
437
|
const { baseURL, getFetcher, internetAccountId } = selectedInternetAccount;
|
|
438
438
|
if (fileType !== FileType.EXTERNAL && file) {
|
|
439
439
|
// First upload file
|
|
440
|
-
const url = new URL('
|
|
440
|
+
const url = new URL('files', baseURL).href;
|
|
441
441
|
const formData = new FormData();
|
|
442
442
|
formData.append('file', file);
|
|
443
443
|
formData.append('fileName', file.name);
|
|
@@ -2194,7 +2194,7 @@ function ImportFeatures({ changeManager, handleClose, session, }) {
|
|
|
2194
2194
|
throw new Error('No Apollo internet account found');
|
|
2195
2195
|
}
|
|
2196
2196
|
const { baseURL } = apolloInternetAccount;
|
|
2197
|
-
const uri = new URL('
|
|
2197
|
+
const uri = new URL('features/count', baseURL);
|
|
2198
2198
|
const searchParams = new URLSearchParams({
|
|
2199
2199
|
assemblyId: selectedAssembly.name,
|
|
2200
2200
|
});
|
|
@@ -2248,7 +2248,7 @@ function ImportFeatures({ changeManager, handleClose, session, }) {
|
|
|
2248
2248
|
const apolloInternetAccount = getInternetAccount(selectedAssembly.name, internetAccountConfigId);
|
|
2249
2249
|
const { baseURL } = apolloInternetAccount;
|
|
2250
2250
|
// First upload file
|
|
2251
|
-
const url = new URL('
|
|
2251
|
+
const url = new URL('files', baseURL).href;
|
|
2252
2252
|
const formData = new FormData();
|
|
2253
2253
|
formData.append('file', file);
|
|
2254
2254
|
formData.append('fileName', file.name);
|
|
@@ -2337,7 +2337,7 @@ function ManageChecks({ handleClose, session }) {
|
|
|
2337
2337
|
useEffect(() => {
|
|
2338
2338
|
async function getChecks() {
|
|
2339
2339
|
const { baseURL, getFetcher } = selectedInternetAccount;
|
|
2340
|
-
const uri = new URL('
|
|
2340
|
+
const uri = new URL('checks/types', baseURL).href;
|
|
2341
2341
|
const apolloFetch = getFetcher({ locationType: 'UriLocation', uri });
|
|
2342
2342
|
const response = await apolloFetch(uri, { method: 'GET' });
|
|
2343
2343
|
if (!response.ok) {
|
|
@@ -2390,7 +2390,7 @@ function ManageChecks({ handleClose, session }) {
|
|
|
2390
2390
|
}
|
|
2391
2391
|
const { notify } = session;
|
|
2392
2392
|
const { baseURL, getFetcher } = selectedInternetAccount;
|
|
2393
|
-
const uri = new URL('
|
|
2393
|
+
const uri = new URL('assemblies/checks', baseURL).href;
|
|
2394
2394
|
const apolloFetch = getFetcher({
|
|
2395
2395
|
locationType: 'UriLocation',
|
|
2396
2396
|
uri,
|
|
@@ -2478,7 +2478,7 @@ function ManageUsers({ changeManager, handleClose, session, }) {
|
|
|
2478
2478
|
const [users, setUsers] = useState([]);
|
|
2479
2479
|
const getUsers = useCallback(async () => {
|
|
2480
2480
|
const { baseURL } = selectedInternetAccount;
|
|
2481
|
-
const uri = new URL('
|
|
2481
|
+
const uri = new URL('users', baseURL).href;
|
|
2482
2482
|
const apolloFetch = selectedInternetAccount.getFetcher({
|
|
2483
2483
|
locationType: 'UriLocation',
|
|
2484
2484
|
uri,
|
|
@@ -3127,7 +3127,7 @@ function ViewChangeLog({ handleClose, session }) {
|
|
|
3127
3127
|
];
|
|
3128
3128
|
useEffect(() => {
|
|
3129
3129
|
async function getAssemblies() {
|
|
3130
|
-
const uri = new URL('
|
|
3130
|
+
const uri = new URL('assemblies', baseURL).href;
|
|
3131
3131
|
const apolloFetch = apolloInternetAccount?.getFetcher({
|
|
3132
3132
|
locationType: 'UriLocation',
|
|
3133
3133
|
uri,
|
|
@@ -3334,7 +3334,7 @@ const AuthTypeSelector = ({ baseURL, handleClose, name, }) => {
|
|
|
3334
3334
|
const controller = new AbortController();
|
|
3335
3335
|
const { signal } = controller;
|
|
3336
3336
|
async function getAuthTypes() {
|
|
3337
|
-
const uri = new URL('
|
|
3337
|
+
const uri = new URL('auth/types', baseURL).href;
|
|
3338
3338
|
const response = await fetch(uri, { method: 'GET', signal });
|
|
3339
3339
|
if (!response.ok) {
|
|
3340
3340
|
const newErrorMessage = await createFetchErrorMessage(response, 'Error when retrieving auth types from server');
|
|
@@ -3598,9 +3598,10 @@ const stateModelFactory$2 = (configSchema) => {
|
|
|
3598
3598
|
}
|
|
3599
3599
|
}),
|
|
3600
3600
|
}))
|
|
3601
|
-
.volatile((self) =>
|
|
3602
|
-
|
|
3603
|
-
|
|
3601
|
+
.volatile((self) => {
|
|
3602
|
+
const { origin, pathname: path } = new URL('socket.io/', self.baseURL);
|
|
3603
|
+
return { socket: io(origin, { path }) };
|
|
3604
|
+
})
|
|
3604
3605
|
.actions((self) => ({
|
|
3605
3606
|
addSocketListeners() {
|
|
3606
3607
|
const { session } = getRoot(self);
|
|
@@ -3614,7 +3615,8 @@ const stateModelFactory$2 = (configSchema) => {
|
|
|
3614
3615
|
socket.on('connect', async () => {
|
|
3615
3616
|
await self.getMissingChanges();
|
|
3616
3617
|
});
|
|
3617
|
-
socket.on('connect_error', () => {
|
|
3618
|
+
socket.on('connect_error', (error) => {
|
|
3619
|
+
console.error(error);
|
|
3618
3620
|
notify('Could not connect to the Apollo server.', 'error');
|
|
3619
3621
|
});
|
|
3620
3622
|
socket.on('COMMON', (message) => {
|
|
@@ -3709,7 +3711,7 @@ const stateModelFactory$2 = (configSchema) => {
|
|
|
3709
3711
|
self.addSocketListeners();
|
|
3710
3712
|
// request user locations
|
|
3711
3713
|
const { baseURL } = self;
|
|
3712
|
-
const uri = new URL('
|
|
3714
|
+
const uri = new URL('users/locations', baseURL).href;
|
|
3713
3715
|
const apolloFetch = self.getFetcher({
|
|
3714
3716
|
locationType: 'UriLocation',
|
|
3715
3717
|
uri,
|