Skip to content

Commit ef8c073

Browse files
authored
Make the motoko/who_am_i compatible with the latest dfx new
1 parent 3d00f65 commit ef8c073

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

motoko/who_am_i/dfx.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"canisters": {
3-
"backend": {
4-
"main": "backend/app.mo",
3+
"internet_identity_app_backend": {
4+
"main": "internet_identity_app_backend/app.mo",
55
"type": "motoko",
66
"args": "--enhanced-orthogonal-persistence"
77
},
8-
"frontend": {
9-
"dependencies": ["backend"],
10-
"frontend": {
11-
"entrypoint": "frontend/index.html"
8+
"internet_identity_app_frontend": {
9+
"dependencies": ["internet_identity_app_backend"],
10+
"internet_identity_app_frontend": {
11+
"entrypoint": "internet_identity_app_frontend/index.html"
1212
},
13-
"source": ["frontend/dist"],
13+
"source": ["internet_identity_app_frontend/dist"],
1414
"type": "assets"
1515
},
1616
"internet_identity": {

motoko/who_am_i/backend/app.mo renamed to motoko/who_am_i/internet_identity_app_backend/app.mo

File renamed without changes.

motoko/who_am_i/frontend/index.css renamed to motoko/who_am_i/internet_identity_app_frontend/index.css

File renamed without changes.

motoko/who_am_i/frontend/index.html renamed to motoko/who_am_i/internet_identity_app_frontend/index.html

File renamed without changes.

motoko/who_am_i/frontend/package.json renamed to motoko/who_am_i/internet_identity_app_frontend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "frontend",
2+
"name": "internet_identity_app_frontend",
33
"private": true,
44
"type": "module",
55
"scripts": {
6-
"prebuild": "npm i --include=dev && dfx generate backend",
6+
"prebuild": "npm i --include=dev && dfx generate internet_identity_app_backend",
77
"build": "vite build",
88
"dev": "vite"
99
},

motoko/who_am_i/frontend/public/favicon.ico renamed to motoko/who_am_i/internet_identity_app_frontend/public/favicon.ico

File renamed without changes.

motoko/who_am_i/frontend/src/App.jsx renamed to motoko/who_am_i/internet_identity_app_frontend/src/App.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState, useEffect } from 'react';
22
import { AuthClient } from '@dfinity/auth-client';
3-
import { createActor } from 'declarations/backend';
4-
import { canisterId } from 'declarations/backend/index.js';
3+
import { createActor } from 'declarations/internet_identity_app_backend';
4+
import { canisterId } from 'declarations/internet_identity_app_backend/index.js';
55

66
const network = process.env.DFX_NETWORK;
77
const identityProvider =

motoko/who_am_i/frontend/src/main.jsx renamed to motoko/who_am_i/internet_identity_app_frontend/src/main.jsx

File renamed without changes.

motoko/who_am_i/frontend/vite.config.js renamed to motoko/who_am_i/internet_identity_app_frontend/vite.config.js

File renamed without changes.

motoko/who_am_i/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
},
88
"type": "module",
99
"workspaces": [
10-
"frontend"
10+
"internet_identity_app_frontend"
1111
]
1212
}

0 commit comments

Comments
 (0)