@apollo-annotation/jbrowse-plugin-apollo 0.1.16 → 0.1.18
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
|
@@ -21317,7 +21317,7 @@
|
|
|
21317
21317
|
}), 'Add');
|
|
21318
21318
|
default_1$9 = Add["default"] = _default$b;
|
|
21319
21319
|
|
|
21320
|
-
var version = "0.1.
|
|
21320
|
+
var version = "0.1.18";
|
|
21321
21321
|
|
|
21322
21322
|
const ApolloConfigSchema = configuration.ConfigurationSchema('ApolloInternetAccount', {
|
|
21323
21323
|
baseURL: {
|
|
@@ -29197,7 +29197,7 @@
|
|
|
29197
29197
|
const { baseURL, getFetcher, internetAccountId } = selectedInternetAccount;
|
|
29198
29198
|
if (fileType !== FileType.EXTERNAL && file) {
|
|
29199
29199
|
// First upload file
|
|
29200
|
-
const url = new URL('
|
|
29200
|
+
const url = new URL('files', baseURL).href;
|
|
29201
29201
|
const formData = new FormData();
|
|
29202
29202
|
formData.append('file', file);
|
|
29203
29203
|
formData.append('fileName', file.name);
|
|
@@ -37927,7 +37927,7 @@
|
|
|
37927
37927
|
throw new Error('No Apollo internet account found');
|
|
37928
37928
|
}
|
|
37929
37929
|
const { baseURL } = apolloInternetAccount;
|
|
37930
|
-
const uri = new URL('
|
|
37930
|
+
const uri = new URL('features/count', baseURL);
|
|
37931
37931
|
const searchParams = new URLSearchParams({
|
|
37932
37932
|
assemblyId: selectedAssembly.name,
|
|
37933
37933
|
});
|
|
@@ -37981,7 +37981,7 @@
|
|
|
37981
37981
|
const apolloInternetAccount = getInternetAccount(selectedAssembly.name, internetAccountConfigId);
|
|
37982
37982
|
const { baseURL } = apolloInternetAccount;
|
|
37983
37983
|
// First upload file
|
|
37984
|
-
const url = new URL('
|
|
37984
|
+
const url = new URL('files', baseURL).href;
|
|
37985
37985
|
const formData = new FormData();
|
|
37986
37986
|
formData.append('file', file);
|
|
37987
37987
|
formData.append('fileName', file.name);
|
|
@@ -38070,7 +38070,7 @@
|
|
|
38070
38070
|
React.useEffect(() => {
|
|
38071
38071
|
async function getChecks() {
|
|
38072
38072
|
const { baseURL, getFetcher } = selectedInternetAccount;
|
|
38073
|
-
const uri = new URL('
|
|
38073
|
+
const uri = new URL('checks/types', baseURL).href;
|
|
38074
38074
|
const apolloFetch = getFetcher({ locationType: 'UriLocation', uri });
|
|
38075
38075
|
const response = await apolloFetch(uri, { method: 'GET' });
|
|
38076
38076
|
if (!response.ok) {
|
|
@@ -38123,7 +38123,7 @@
|
|
|
38123
38123
|
}
|
|
38124
38124
|
const { notify } = session;
|
|
38125
38125
|
const { baseURL, getFetcher } = selectedInternetAccount;
|
|
38126
|
-
const uri = new URL('
|
|
38126
|
+
const uri = new URL('assemblies/checks', baseURL).href;
|
|
38127
38127
|
const apolloFetch = getFetcher({
|
|
38128
38128
|
locationType: 'UriLocation',
|
|
38129
38129
|
uri,
|
|
@@ -38225,7 +38225,7 @@
|
|
|
38225
38225
|
const [users, setUsers] = React.useState([]);
|
|
38226
38226
|
const getUsers = React.useCallback(async () => {
|
|
38227
38227
|
const { baseURL } = selectedInternetAccount;
|
|
38228
|
-
const uri = new URL('
|
|
38228
|
+
const uri = new URL('users', baseURL).href;
|
|
38229
38229
|
const apolloFetch = selectedInternetAccount.getFetcher({
|
|
38230
38230
|
locationType: 'UriLocation',
|
|
38231
38231
|
uri,
|
|
@@ -39393,7 +39393,7 @@
|
|
|
39393
39393
|
];
|
|
39394
39394
|
React.useEffect(() => {
|
|
39395
39395
|
async function getAssemblies() {
|
|
39396
|
-
const uri = new URL('
|
|
39396
|
+
const uri = new URL('assemblies', baseURL).href;
|
|
39397
39397
|
const apolloFetch = apolloInternetAccount?.getFetcher({
|
|
39398
39398
|
locationType: 'UriLocation',
|
|
39399
39399
|
uri,
|
|
@@ -39614,7 +39614,7 @@
|
|
|
39614
39614
|
const controller = new AbortController();
|
|
39615
39615
|
const { signal } = controller;
|
|
39616
39616
|
async function getAuthTypes() {
|
|
39617
|
-
const uri = new URL('
|
|
39617
|
+
const uri = new URL('auth/types', baseURL).href;
|
|
39618
39618
|
const response = await fetch(uri, { method: 'GET', signal });
|
|
39619
39619
|
if (!response.ok) {
|
|
39620
39620
|
const newErrorMessage = await createFetchErrorMessage(response, 'Error when retrieving auth types from server');
|
|
@@ -39878,9 +39878,10 @@
|
|
|
39878
39878
|
}
|
|
39879
39879
|
}),
|
|
39880
39880
|
}))
|
|
39881
|
-
.volatile((self) =>
|
|
39882
|
-
|
|
39883
|
-
|
|
39881
|
+
.volatile((self) => {
|
|
39882
|
+
const { origin, pathname: path } = new URL('socket.io/', self.baseURL);
|
|
39883
|
+
return { socket: lookup(origin, { path }) };
|
|
39884
|
+
})
|
|
39884
39885
|
.actions((self) => ({
|
|
39885
39886
|
addSocketListeners() {
|
|
39886
39887
|
const { session } = require$$0$2.getRoot(self);
|
|
@@ -39894,7 +39895,8 @@
|
|
|
39894
39895
|
socket.on('connect', async () => {
|
|
39895
39896
|
await self.getMissingChanges();
|
|
39896
39897
|
});
|
|
39897
|
-
socket.on('connect_error', () => {
|
|
39898
|
+
socket.on('connect_error', (error) => {
|
|
39899
|
+
console.error(error);
|
|
39898
39900
|
notify('Could not connect to the Apollo server.', 'error');
|
|
39899
39901
|
});
|
|
39900
39902
|
socket.on('COMMON', (message) => {
|
|
@@ -39989,7 +39991,7 @@
|
|
|
39989
39991
|
self.addSocketListeners();
|
|
39990
39992
|
// request user locations
|
|
39991
39993
|
const { baseURL } = self;
|
|
39992
|
-
const uri = new URL('
|
|
39994
|
+
const uri = new URL('users/locations', baseURL).href;
|
|
39993
39995
|
const apolloFetch = self.getFetcher({
|
|
39994
39996
|
locationType: 'UriLocation',
|
|
39995
39997
|
uri,
|