Skip to content

Commit 57ef236

Browse files
olekidNeaRbYjkee
andauthored
Squash all client ikit canisters into one [sc-17141] (#325)
* Squash all client ikit canisters into one [sc-17141] * logo and docs links by env * test: increased global and long running timeout to 180sec --------- Co-authored-by: Alex <[email protected]> Co-authored-by: Alex <[email protected]>
1 parent 3e04278 commit 57ef236

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+1337
-172
lines changed

.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
VITE_MOCKED_SIGNER_PROVIDER_URL=http://localhost:3003
2+
VITE_LANDING_URL=https://rawyr-oqaaa-aaaal-ajlxa-cai.icp0.io
23
VITE_MOCKED_NFID_SIGNER_PROVIDER_URL=https://dev.nfid.one/rpc
34
VITE_TARGET_CANISTER=do25a-dyaaa-aaaak-qifua-cai
4-
VITE_ENVIRONMENT=dev
5+
VITE_ENVIRONMENT=local

.env.dev

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
VITE_MOCKED_SIGNER_PROVIDER_URL=https://uimp7-mqaaa-aaaag-qc5ka-cai.icp0.io
2+
VITE_LANDING_URL=https://rawyr-oqaaa-aaaal-ajlxa-cai.icp0.io
23
VITE_MOCKED_NFID_SIGNER_PROVIDER_URL=https://dev.nfid.one/rpc
34
VITE_TARGET_CANISTER=do25a-dyaaa-aaaak-qifua-cai
45
VITE_ENVIRONMENT=dev

.env.ic

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
VITE_MOCKED_SIGNER_PROVIDER_URL=https://vdgqs-nqaaa-aaaag-aciua-cai.icp0.io
2+
VITE_LANDING_URL=https://qzjsg-qiaaa-aaaam-acupa-cai.icp0.io
23
VITE_MOCKED_NFID_SIGNER_PROVIDER_URL=https://nfid.one/rpc
34
VITE_TARGET_CANISTER=2wdkf-viaaa-aaaam-ackqq-cai
45
VITE_ENVIRONMENT=ic

.github/workflows/deploy-docs.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,18 @@ jobs:
250250
ci_echo_debug "npm i --frozen-lockfile" >&2
251251
npm i --frozen-lockfile
252252
253+
ci_echo_debug "npm run build-landing" >&2
254+
npm run build-landing
255+
256+
ci_echo_debug "npm run build-docs" >&2
257+
npm run build-docs
258+
253259
ci_echo_debug "npm run build-playground:'${NETWORK_NAME}'" >&2
254260
npm run build-playground:"${NETWORK_NAME}"
255261
262+
ci_echo_debug "create folder containing build of landing, docs, demo and standards" >&2
263+
mkdir deploy && rsync -a docs/out/ deploy/docs && rsync -a examples/react-dapp/dist/ deploy/standards && rsync -a examples/react-demo/dist/ deploy/demo && rsync -a landing/dist/ deploy
264+
256265
- name: DEPLOY => Deploy canisters.
257266
run: |
258267
source "${{ github.workspace }}/ci_libs/CI_LIBS.sh"
@@ -268,7 +277,7 @@ jobs:
268277
dfx identity use "${ID_NAME}"
269278
270279
# List of canisters to deploy
271-
CANISTERS=("signer" "demo" "dapp" "signer-backend")
280+
CANISTERS=("signer" "identitykit" "signer-backend")
272281
273282
for CANISTER_NAME in "${CANISTERS[@]}"; do
274283
ci_echo_info "Deploying '${CANISTER_NAME}'"

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- "examples/react-dapp/**"
1111
- "examples/react-signer/**"
1212
- "packages/identitykit/**"
13+
- "landing/**"
1314
- "docker-for-e2e/**"
1415
pull_request:
1516
types:

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,13 @@ IdentityKit comes with its own playground where you can try things out locally.
106106
There are three applications included:
107107

108108
1. `dApp` (react-dapp) - Built for signer developers, this app provides a web-based interface to
109-
visually explore the API documentation for IdentityKit standards. It runs on port 3001. (dev:
110-
https://mquaw-4yaaa-aaaap-abwlq-cai.icp0.io, prod: https://vehwg-aiaaa-aaaag-aciuq-cai.icp0.io)
109+
visually explore the API documentation for IdentityKit standards. It runs on port 3001. Check it
110+
out at https://qzjsg-qiaaa-aaaam-acupa-cai.icp0.io/standards
111111
2. `Demo` (react-demo) - This app is for application developers. It's a simple frontend app with
112112
IdentityKit integrated. It runs on port 3002 and lets you sign in with IdentityKit and make
113-
canister calls. (dev: https://rawyr-oqaaa-aaaal-ajlxa-cai.icp0.io, prod:
114-
https://qzjsg-qiaaa-aaaam-acupa-cai.icp0.io)
113+
canister calls. Check it out at https://qzjsg-qiaaa-aaaam-acupa-cai.icp0.io/demo
115114
3. `Signer` (react-signer) - This is a sample signer app that demonstrates the basics of signer
116115
functionality. It helps to understand what’s happening on the signer side. It runs on port 3003.
117-
(dev: https://uimp7-mqaaa-aaaag-qc5ka-cai.icp0.io, prod:
118-
https://vdgqs-nqaaa-aaaag-aciua-cai.icp0.io)
119116

120117
To get the playground up and running, use the following command:
121118

@@ -139,12 +136,12 @@ If you encounter any issues or have questions, feel free to reach out to the tea
139136

140137
## 📘 Documentation
141138

142-
For full documentation, visit [identitykit docs](https://2juva-miaaa-aaaag-ald5a-cai.icp0.io).
139+
For full documentation, visit https://qzjsg-qiaaa-aaaam-acupa-cai.icp0.io/docs.
143140

144141
## 🎉 Try it out
145142

146143
Here is a short list of live IdentityKit implementations:
147144

148-
- [Demo App](https://qzjsg-qiaaa-aaaam-acupa-cai.icp0.io)
149-
- [ICRC Standards Implementation](https://vehwg-aiaaa-aaaag-aciuq-cai.icp0.io) (view low-level ICRC
150-
standards implementations)
145+
- [Demo App](https://qzjsg-qiaaa-aaaam-acupa-cai.icp0.io/demo)
146+
- [ICRC Standards Implementation](https://qzjsg-qiaaa-aaaam-acupa-cai.icp0.io/standards) (view
147+
low-level ICRC standards implementations)

canister_ids.json

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,12 @@
33
"dev": "uimp7-mqaaa-aaaag-qc5ka-cai",
44
"ic": "vdgqs-nqaaa-aaaag-aciua-cai"
55
},
6-
"demo": {
7-
"dev": "rawyr-oqaaa-aaaal-ajlxa-cai",
8-
"ic": "qzjsg-qiaaa-aaaam-acupa-cai"
9-
},
10-
"dapp": {
11-
"dev": "mquaw-4yaaa-aaaap-abwlq-cai",
12-
"ic": "vehwg-aiaaa-aaaag-aciuq-cai"
13-
},
146
"signer-backend": {
157
"dev": "do25a-dyaaa-aaaak-qifua-cai",
168
"ic": "2wdkf-viaaa-aaaam-ackqq-cai"
179
},
18-
"docs": {
19-
"ic": "2juva-miaaa-aaaag-ald5a-cai"
10+
"identitykit": {
11+
"dev": "rawyr-oqaaa-aaaal-ajlxa-cai",
12+
"ic": "qzjsg-qiaaa-aaaam-acupa-cai"
2013
}
2114
}

dfx.json

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,17 @@
11
{
22
"canisters": {
3-
"signer": {
4-
"frontend": {
5-
"entrypoint": "examples/react-signer/dist/index.html"
6-
},
7-
"source": [
8-
"examples/react-signer/dist/"
9-
],
10-
"type": "assets"
11-
},
12-
"demo": {
13-
"frontend": {
14-
"entrypoint": "examples/react-demo/dist/index.html"
15-
},
16-
"source": [
17-
"examples/react-demo/dist/"
18-
],
19-
"type": "assets"
20-
},
21-
"dapp": {
22-
"frontend": {
23-
"entrypoint": "examples/react-dapp/dist/index.html"
24-
},
3+
"identitykit": {
254
"source": [
26-
"examples/react-dapp/dist/"
5+
"deploy"
276
],
287
"type": "assets"
298
},
30-
"docs": {
9+
"signer": {
3110
"frontend": {
32-
"entrypoint": "docs/out/index.html"
11+
"entrypoint": "examples/react-signer/dist/index.html"
3312
},
3413
"source": [
35-
"docs/out"
14+
"examples/react-signer/dist/"
3615
],
3716
"type": "assets"
3817
},

docs/next.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ const nextConfig = {
88
images: {
99
unoptimized: true,
1010
},
11-
output: 'export'
11+
output: 'export',
12+
// eslint-disable-next-line turbo/no-undeclared-env-vars
13+
basePath: process.env.NODE_ENV !== 'production' ? '' : '/docs'
1214
}
1315

1416
const withNextra = nextra({

0 commit comments

Comments
 (0)