Skip to content

Commit

Permalink
Merge branch 'develop' into feature/waves-page
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/api/queries/index.ts
  • Loading branch information
dkildar committed Nov 30, 2024
2 parents f095b32 + 654e89c commit babfedb
Show file tree
Hide file tree
Showing 125 changed files with 2,154 additions and 2,551 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ecency-vision-next",
"version": "4.0.1",
"version": "4.0.2",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
2 changes: 1 addition & 1 deletion public/sw.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/sw.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

import * as Sentry from "@sentry/nextjs";
import appPackage from "./package.json";

Sentry.init({
dsn: "https://8a5c1659d1c2ba3385be28dc7235ce56@o4507985141956608.ingest.de.sentry.io/4507985146609744",

// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
tracesSampleRate: 1,

release: appPackage.version,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false
});
3 changes: 3 additions & 0 deletions sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

import * as Sentry from "@sentry/nextjs";
import appPackage from "./package.json";

Sentry.init({
dsn: "https://8a5c1659d1c2ba3385be28dc7235ce56@o4507985141956608.ingest.de.sentry.io/4507985146609744",

// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
tracesSampleRate: 1,

release: appPackage.version,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false
});
2 changes: 2 additions & 0 deletions sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import * as Sentry from "@sentry/nextjs";
import { nodeProfilingIntegration } from "@sentry/profiling-node";
import appPackage from "./package.json";

Sentry.init({
dsn: "https://8a5c1659d1c2ba3385be28dc7235ce56@o4507985141956608.ingest.de.sentry.io/4507985146609744",
Expand All @@ -13,5 +14,6 @@ Sentry.init({

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
release: appPackage.version,
integrations: [nodeProfilingIntegration()]
});
9 changes: 1 addition & 8 deletions src/api/hive-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const getTokenBalances = (account: string): Promise<TokenBalance[]> => {
});
};

const getTokens = (tokens: string[]): Promise<Token[]> => {
export const getTokens = (tokens: string[]): Promise<Token[]> => {
const data = {
jsonrpc: "2.0",
method: "find",
Expand Down Expand Up @@ -140,10 +140,3 @@ export const getMetrics: any = async (symbol?: any, account?: any) => {
return [];
});
};

export const getMarketData = async (symbol: any) => {
const { data: history } = await appAxios.get(apiBase(`${engine.chartAPI}`), {
params: { symbol, interval: "daily" }
});
return history;
};
8 changes: 6 additions & 2 deletions src/api/mutations/record-user-activity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function useRecordUserActivity() {
({ visionFeatures }) => visionFeatures.userActivityTracking.enabled,
{
mutationKey: ["recordUserActivity", activeUser?.username],
mutationFn: ({
mutationFn: async ({
ty,
bl = "",
tx = ""
Expand All @@ -20,8 +20,12 @@ export function useRecordUserActivity() {
bl?: string | number;
tx?: string | number;
}) => {
if (!activeUser) {
return;
}

const params: Record<string, string | number | undefined> = {
code: getAccessToken(activeUser!.username),
code: getAccessToken(activeUser.username),
ty
};

Expand Down
Loading

0 comments on commit babfedb

Please sign in to comment.