Skip to content

Commit 92094ef

Browse files
authored
fix: disable app kit (#237)
1 parent 10e7049 commit 92094ef

File tree

7 files changed

+28
-23
lines changed

7 files changed

+28
-23
lines changed

.github/workflows/deploy-auth-server.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
- name: Build apps
6161
env:
6262
NUXT_PUBLIC_DEFAULT_CHAIN_ID: 11155111
63+
NUXT_PUBLIC_AUTH_SERVER_API_URL: https://auth-server-api.stage-sso.zksync.dev
6364
NUXT_PUBLIC_SALT_SERVICE_URL: "https://sso-oidc.zksync.dev/salt"
6465
run: pnpm nx build auth-server
6566

.github/workflows/deploy-preview.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ jobs:
6161

6262
- name: Build Auth Server
6363
env:
64-
NUXT_PUBLIC_DEFAULT_CHAIN_ID: 300
64+
NUXT_PUBLIC_DEFAULT_CHAIN_ID: 11155111
65+
NUXT_PUBLIC_AUTH_SERVER_API_URL: https://auth-server-api.stage-sso.zksync.dev
6566
NUXT_PUBLIC_SALT_SERVICE_URL: "https://sso-oidc.zksync.dev/salt"
6667
run: pnpm nx build auth-server
6768

packages/auth-server/app.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
</template>
66

77
<script lang="ts" setup>
8-
import { createAppKit } from "@reown/appkit/vue";
8+
/* import { createAppKit } from "@reown/appkit/vue";
99
1010
const { defaultChain } = useClientStore();
1111
const { metadata, projectId, wagmiAdapter } = useAppKit();
1212
13-
// BigInt polyfill
14-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
15-
(BigInt.prototype as any).toJSON = function () {
16-
return this.toString();
17-
};
18-
1913
createAppKit({
2014
adapters: [wagmiAdapter],
2115
networks: [defaultChain],
2216
projectId,
2317
metadata,
24-
});
18+
}); */
19+
20+
// BigInt polyfill
21+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
22+
(BigInt.prototype as any).toJSON = function () {
23+
return this.toString();
24+
};
2525
</script>

packages/auth-server/components/account-recovery.disabled/guardian-flow/Step4ConfirmNow.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@
6363
Confirm Guardian
6464
</ZkButton>
6565

66-
<CommonConnectButton
66+
<!-- <CommonConnectButton
6767
v-if="!isSsoAccount"
6868
type="primary"
6969
class="w-full md:max-w-48 mt-4"
7070
:disabled="confirmGuardianInProgress || getConfigurableAccountInProgress"
71-
/>
71+
/> -->
7272

7373
<ZkButton
7474
type="secondary"

packages/auth-server/components/account-recovery.disabled/passkey-generation-flow/Step3ConfirmNow.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@
5656
>
5757
Confirm Recovery
5858
</ZkButton>
59-
<CommonConnectButton
59+
<!-- <CommonConnectButton
6060
v-if="!selectedGuardianInfo?.isSsoAccount"
6161
type="primary"
6262
class="w-full mt-4"
6363
:disabled="initRecoveryInProgress || getConfigurableAccountInProgress"
64-
/>
64+
/> -->
6565
</template>
6666

6767
<ZkButton

packages/auth-server/pages/recovery.disabled/guardian/(actions)/confirm-recovery.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@
7575
>
7676
Confirm Recovery
7777
</ZkButton>
78-
<CommonConnectButton
78+
<!-- <CommonConnectButton
7979
v-if="!selectedGuardianInfo?.isSsoAccount"
8080
type="primary"
8181
class="w-full max-w-56"
8282
:disabled="initRecoveryInProgress || getConfigurableAccountInProgress"
83-
/>
83+
/> -->
8484
</div>
8585
<p
8686
v-if="!selectedGuardianInfo?.isSsoAccount && accountData.isConnected && !isConnectedWalletGuardian"
Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
import { QueryClient, VueQueryPlugin } from "@tanstack/vue-query";
2-
import { WagmiPlugin } from "@wagmi/vue";
1+
// TODO: Figure out why this causes error:
2+
// `TypeError: Cannot set properties of undefined (setting 'type')`
33

4-
const queryClient = new QueryClient();
4+
// import { QueryClient, VueQueryPlugin } from "@tanstack/vue-query";
5+
// import { WagmiPlugin } from "@wagmi/vue";
56

6-
export default defineNuxtPlugin((nuxtApp) => {
7-
const { wagmiConfig } = useAppKit();
7+
// const queryClient = new QueryClient();
88

9-
nuxtApp.vueApp
10-
.use(WagmiPlugin, { config: wagmiConfig })
11-
.use(VueQueryPlugin, { queryClient });
9+
export default defineNuxtPlugin((_nuxtApp) => {
10+
// const { wagmiConfig } = useAppKit();
11+
12+
// nuxtApp.vueApp
13+
// .use(WagmiPlugin, { config: wagmiConfig })
14+
// .use(VueQueryPlugin, { queryClient });
1215
});

0 commit comments

Comments
 (0)