Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge testnet modify to mainnet #37

Merged
merged 53 commits into from
Mar 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
4ffc0d5
update nova tx hash verify
MickWang Mar 15, 2024
7113be0
update for nova hash verify
MickWang Mar 15, 2024
04817d0
feat:mobile ui change.
SarahShy0920 Mar 15, 2024
3d7984e
fix: change leaderboard
haymond-ZK Mar 16, 2024
2265de1
Merge branch 'main' of github.com:zkLinkProtocol/zklink-nova-app into…
haymond-ZK Mar 16, 2024
7b81394
fix: Fixed mobile style
haymond-ZK Mar 16, 2024
751cc22
Merge branch 'main' of github.com:zkLinkProtocol/zklink-nova-app into…
haymond-ZK Mar 16, 2024
93db4b1
fix: Fixed mobile notification
haymond-ZK Mar 16, 2024
634c80f
feat:mobile UI
SarahShy0920 Mar 16, 2024
79f46d2
Merge remote-tracking branch 'origin/main' into feature-ui_mobile_adapt
SarahShy0920 Mar 16, 2024
50381d8
fix:merge bug fix
SarahShy0920 Mar 16, 2024
32d6c45
Merge branch 'feature-ui_mobile_adapt' into feat/test
SarahShy0920 Mar 16, 2024
d3ede6f
test twitter auth
zkLeonardo Mar 16, 2024
5214509
test twitter auth
zkLeonardo Mar 16, 2024
75b3741
test twitter auth
zkLeonardo Mar 16, 2024
76354cf
feat: add twitter main account widget
zkLeonardo Mar 14, 2024
0994ee2
update twitter main account widget
zkLeonardo Mar 15, 2024
3d994eb
update maintenance tips
zkLeonardo Mar 15, 2024
c48a18f
add blast
MickWang Mar 15, 2024
aaf1b69
update for blast
MickWang Mar 15, 2024
ce29e8a
fix: update eth amount
zkLeonardo Mar 15, 2024
5592a62
fix: update leaderboard account self data style
zkLeonardo Mar 15, 2024
20ce3ac
update for blast
MickWang Mar 15, 2024
0799c86
add tweet share btn
MickWang Mar 14, 2024
3b0f876
update for tweet share
MickWang Mar 15, 2024
7585dd8
update for tweet share
MickWang Mar 15, 2024
88429b8
feat: update nova points style
zkLeonardo Mar 15, 2024
7d2f8b6
feat: update nova points style
zkLeonardo Mar 15, 2024
d14d4f2
update twitter share text
zkLeonardo Mar 15, 2024
09d2810
add dashboard tips & add header explorer nav
zkLeonardo Mar 15, 2024
207ca1e
fix: update titter share btn
zkLeonardo Mar 16, 2024
1374ec8
fix: update titter share btn
zkLeonardo Mar 16, 2024
d0af922
fix merge
zkLeonardo Mar 16, 2024
39128a9
fix merge
zkLeonardo Mar 16, 2024
f80ec10
fix merge
zkLeonardo Mar 16, 2024
137a5de
Merge branch 'feat/verify-hash-nova' into goerli
zkLeonardo Mar 16, 2024
da6bfc4
update twitter auth
zkLeonardo Mar 16, 2024
c13e361
Merge branch 'feat/test' into goerli
zkLeonardo Mar 16, 2024
2c1f7ee
fix: Fixed modal style
haymond-ZK Mar 16, 2024
5af9739
Merge branch 'feat/test' into goerli
zkLeonardo Mar 16, 2024
e3696fd
fix: update leaderboard table style
zkLeonardo Mar 16, 2024
1ecc1e7
fix: Optimize button
haymond-ZK Mar 16, 2024
567609d
for test wallet
MickWang Mar 16, 2024
9234bfc
fix: update group milestone pregress bar
zkLeonardo Mar 17, 2024
645e86a
update twitter auth for mainnet
zkLeonardo Mar 17, 2024
0eecd9f
fix: update eth amount
zkLeonardo Mar 15, 2024
67f3ef0
feat: update nova points style
zkLeonardo Mar 15, 2024
abccb23
fix merge
zkLeonardo Mar 17, 2024
d5eed2f
fix merge
zkLeonardo Mar 17, 2024
a3486c5
feat: update nova points style
zkLeonardo Mar 15, 2024
d179a42
feat:mobile UI
SarahShy0920 Mar 16, 2024
1be233c
fix merge
zkLeonardo Mar 17, 2024
e8feeed
fix: update bridge
zkLeonardo Mar 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
VITE_ENV = development
VITE_NODE_TYPE="nexus"
VITE_TWITTER_CLIENT_ID = eGQtUDNsTjIxbktrVWdaUzRzbU86MTpjaQ
VITE_TWITTER_CALLBACK_URL = https://test.app.zklink.io/aggregation-parade
VITE_NODE_TYPE="nexus-goerli"
VITE_TWITTER_CLIENT_ID = QWpDMDlpX0VuZ0hEdUFDdEFTaUY6MTpjaQ
VITE_TWITTER_CALLBACK_URL = https://goerli.app.zklink.io/aggregation-parade
VITE_IS_VALID_TWITTER_ACCESS = 0 # 0: not valid, 1: valid

1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ VITE_ENV = production
VITE_NODE_TYPE="nexus"
VITE_TWITTER_CLIENT_ID = UWlzSnJfQlVzdzlNc1c3ckdpY0U6MTpjaQ,RThINUVuNm9XdGFKVUpvejU1bFU6MTpjaQ,eFVmRGpWTEtMbGxjUGE2Y09KdHM6MTpjaQ
VITE_TWITTER_CALLBACK_URL = https://app.zklink.io/aggregation-parade
VITE_IS_VALID_TWITTER_ACCESS = 1 # 0: not valid, 1: valid

# For: test.app.zklink.io
# VITE_TWITTER_CLIENT_ID = eGQtUDNsTjIxbktrVWdaUzRzbU86MTpjaQ
Expand Down
2 changes: 0 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions public/img/icon-wallet-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/navbar-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 40 additions & 1 deletion src/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import http from "@/utils/http";
import qs from "qs";

type Response = {
status: string;
Expand All @@ -11,6 +12,7 @@ type Response = {
export const BASE_URL_API = "/api";
export const BASE_URL_POINTS = "/points";
export const BASE_URL_TOKENS = "/tokens";
export const BASE_URL_TWITTER = "/twitter";

export type BindInviteCodeWithAddressParams = {
address: string;
Expand Down Expand Up @@ -193,7 +195,7 @@ export type RegisterAccountParams = {
address: string;
code?: string | null;
siganture: string;
accessToken: string;
accessToken?: string | null;
chainId: string | number;
txHash: string;
};
Expand All @@ -209,3 +211,40 @@ export const registerAccount = (
...data,
});
};

export type AccessTokenParams = {
code: string;
grant_type: string;
client_id: string;
redirect_uri: string;
code_verifier: string;
};
export type AccessTokenResponse = {
token_type: string;
expires_in: number;
access_token: string;
scope: string;
};
export const getTwitterAccessToken = (
params: AccessTokenParams
): Promise<AccessTokenResponse> =>
http.post("/twitter/2/oauth2/token", qs.stringify({ ...params }), {
headers: { "Content-Type": "application/x-www-form-urlencoded" },
});

export type TwitterUserResponse = {
data: {
id: string;
name: string;
username: string;
};
};
export const getTwitterUser = (
accessToken: string
): Promise<TwitterUserResponse> =>
http.get("/twitter/2/users/me", {
headers: {
// "Content-Type": "application/json",
Authorization: `Bearer ${accessToken}`,
},
});
6 changes: 3 additions & 3 deletions src/components/AssetsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ export default function AssetsTable(props: IAssetsTableProps) {
return (
<>
<CardBox className="mt-[2rem] p-[0.38rem] flex justify-between items-center w-full overflow-auto">
<div style={{ maxWidth: "calc(100% - 14rem)", overflow: "auto" }}>
<div className="maxWid">
<TabsBar className="flex items-center gap-[0.5rem]">
{assetTabList.map((item, index) => (
<span
Expand All @@ -439,7 +439,7 @@ export default function AssetsTable(props: IAssetsTableProps) {
</div>
</CardBox>

<TableBox>
<TableBox className="overflow-auto md:overflow-visible">
<Table
removeWrapper
className="table mt-[1.5rem] min-h-[30rem]"
Expand Down Expand Up @@ -553,7 +553,7 @@ export default function AssetsTable(props: IAssetsTableProps) {
isOpen={bridgeModal.isOpen}
onOpenChange={bridgeModal.onOpenChange}
>
<ModalContent>
<ModalContent className="mb-[5.75rem]">
{(onClose) => (
<>
<ModalHeader>Bridge</ModalHeader>
Expand Down
Loading