-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LOC-1096 - Fix Analytics User Identification Within Integrations (#51)
* 🚧 refactor: use `api-client` and `generic-connector-client` * ♻️ refactor: use `generic-connector-client` for analytics * ♻️ refactor: upload process * ♻️ refactor: download proces (`api-client`) * 🐛 fix: (`deprecate-event-entry-in-localazy-hook`) `client-api` result * ⚰️ code: remove dead code * 🐛 fix: (`supported-custom-field-plugins`) add reference to server side * ⬆️ deps(upgrade): `api-client` and `generic-connector-client` * ✨ feat(Analytics): send plugin version in request --------- Co-authored-by: david-vaclavek <vaclavek.dvd@gmail.com>
- Loading branch information
1 parent
770ea8a
commit 6000259
Showing
28 changed files
with
268 additions
and
373 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 |
---|---|---|
|
@@ -59,7 +59,7 @@ export default { | |
|
||
return component; | ||
} catch (e) { | ||
console.log(e); | ||
console.error(e); | ||
} | ||
|
||
return null; | ||
|
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 @@ | ||
/* eslint-disable no-useless-catch */ | ||
import createAxiosInstance from "../../../utils/createAxiosInstance"; | ||
|
||
const axiosInstance = createAxiosInstance(); | ||
|
||
export default class PluginService { | ||
static async getPluginVersion() { | ||
try { | ||
const result = await axiosInstance.get("/strapi/version"); | ||
|
||
return result.data; | ||
} catch (e) { | ||
throw e; | ||
} | ||
} | ||
} |
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 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,9 @@ | ||
import { GenericConnectorClient, Services } from "@localazy/generic-connector-client"; | ||
import config from "../config"; | ||
|
||
const client = new GenericConnectorClient({ | ||
pluginId: Services.STRAPI, | ||
genericConnectorUrl: config.LOCALAZY_PLUGIN_CONNECTOR_API_URL, | ||
}); | ||
|
||
export default client; |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Oops, something went wrong.