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

Preview branch for Dash SDK in production mode #32

Open
wants to merge 57 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
03e43d0
Feat add authorisation buttons and authorisation window
denkravchu Nov 24, 2024
f096a2f
Feat add ImportWalletWindow add opening and closing it
denkravchu Nov 24, 2024
bb6b205
Feat add and animated SEED PHRASE & PRIVATE KEY buttons
denkravchu Nov 24, 2024
c41aa89
Feat add and sanitised the RegistrationForm
denkravchu Nov 24, 2024
0f79123
Feat add and configured react-toastify
denkravchu Nov 25, 2024
94fc25a
Feat add validation RegistrationForm
denkravchu Nov 25, 2024
3123854
Add logic for getting clients
denkravchu Dec 5, 2024
85a80b6
Add WalletSelection
denkravchu Dec 5, 2024
f458c23
Add SvgIcons
denkravchu Dec 5, 2024
d5761b5
Add loading on user acquisition And user cards
denkravchu Dec 6, 2024
308d748
Add receiving client and add check
denkravchu Dec 6, 2024
6b66beb
Remove unnecessary code
denkravchu Dec 7, 2024
0d4add4
Add hook useDashClient
denkravchu Dec 8, 2024
916fcdc
Add hook useDashForageClient
denkravchu Dec 8, 2024
3ce5016
Add dash hooks
denkravchu Dec 9, 2024
2e6a338
Fix errors
denkravchu Dec 9, 2024
37f33cb
Fix errors build
denkravchu Dec 9, 2024
3f9c8c2
Feat add closing modal window
denkravchu Dec 11, 2024
506e019
Add loading
denkravchu Dec 11, 2024
c21fd16
Change disconnect method
denkravchu Dec 13, 2024
15f32db
Add cach localforage
denkravchu Dec 16, 2024
ada21dc
Updated dash
denkravchu Dec 16, 2024
29a1507
Add getMetadata
denkravchu Dec 18, 2024
f68ac75
Add engines
denkravchu Dec 18, 2024
4bf0dc7
Add scripts clean-install
denkravchu Dec 18, 2024
ff5b679
Add additional identity checks
denkravchu Dec 18, 2024
42ce6cc
Fix dash to 4.7.0
pshenmic Dec 18, 2024
9880f54
Remove yarn lock and update npm lock
pshenmic Dec 18, 2024
ac4cb39
Feat Obfuscation happens during rendering
denkravchu Dec 19, 2024
462e42e
Add identitiesData returns identifier instead of identityIdentifier
denkravchu Dec 19, 2024
5bd4b45
Add explicit fields to connect
denkravchu Dec 19, 2024
480e68c
Add only one admin
denkravchu Dec 19, 2024
ec76931
Add return of identities only
denkravchu Dec 19, 2024
394ddea
Fix error build
denkravchu Dec 19, 2024
39dd053
Delete setMetadata
denkravchu Dec 20, 2024
215f73c
Updated eslint
denkravchu Dec 23, 2024
82663b8
Delete localforage.LOCALSTORAGE
denkravchu Dec 23, 2024
88d9734
Delete WEBSQL and change package manager
denkravchu Dec 23, 2024
bc53f45
Merge pull request #29 from pshenmic/feat/auth
pshenmic Dec 23, 2024
e56c36c
Add pagination
denkravchu Dec 25, 2024
abacd77
Change display projects
denkravchu Dec 26, 2024
05d44cf
Add WrapperUserInputModal
denkravchu Dec 26, 2024
24dec22
Change FileInput
denkravchu Dec 26, 2024
025eeeb
Changed form of content editing
denkravchu Dec 27, 2024
5b2dda9
Add contracts create
denkravchu Dec 31, 2024
45f6c01
Fix data contract create
pshenmic Jan 2, 2025
de2ebc7
Add creating document
denkravchu Jan 5, 2025
789f54a
Add data contract identifier in the Dash SDK config
pshenmic Jan 6, 2025
18fbf07
Add sample code for submitting documents
pshenmic Jan 6, 2025
224f409
Add creation documents and document receipt
denkravchu Jan 7, 2025
9c01827
Add a zero client
denkravchu Jan 7, 2025
75311c9
Add Grade
denkravchu Jan 7, 2025
158e51f
Add project loading
denkravchu Jan 8, 2025
484ed37
Add ProjectListItemSkeleton
denkravchu Jan 8, 2025
fc519d2
Add Task
denkravchu Jan 8, 2025
0c16b3d
Try fix registration
denkravchu Jan 10, 2025
9706ea6
Update yarn lock
pshenmic Jan 10, 2025
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
10 changes: 10 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
NEXT_PUBLIC_PASSWORD_ADMIN=adminadmin
# NEXT_PUBLIC_ADMIN_IDENTIFIER=Y6WwZ3LYETZjsekjWjoZWnSBu9o5P5MD4Z3HmVGJiYt
NEXT_PUBLIC_ADMIN_IDENTIFIER=Y6WwZ3LYETZjsekjWjoZWnSBu9o5P5MD4Z3HmVGJiYt
NEXT_PUBLIC_INITIAL_CLIENT=2MfmHqYmAk1jAQNv7SsGJPT22MrfKFcHKZDc7cTu2biX

# contract Id

# PROJECTS
NEXT_PUBLIC_CONTRACT_ID_PROJECTS=pshenmic-dev-dfo
NEXT_PUBLIC_CONTRACT_ID=GxWe9P43UAfWiMHpZzCXJaSwZkcqzvZR6wtgofyBG5cu
#
6 changes: 0 additions & 6 deletions .eslintrc.json

This file was deleted.

27 changes: 27 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import globals from "globals";
import js from "@eslint/js";
import pluginReact from "eslint-plugin-react";

/** @type {import('eslint').Linter.Config[]} */
export default [
js.configs.recommended,
{
files: ["**/*.{js,mjs,cjs,jsx}"],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
plugins: {
react: pluginReact,
},
rules: {
"react/react-in-jsx-scope": "off",
"no-unused-vars": "error",
"no-undef": "error",
},
},
js.configs.recommended,
pluginReact.configs.flat.recommended,
];
39 changes: 39 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/** @type {import('next').NextConfig} */
const path = require('path');
const fs = require('fs');

const nextConfig = {
async rewrites() {
return [
Expand All @@ -16,6 +19,42 @@ const nextConfig = {
},
],
},

webpack: (config, { isServer }) => {
if (isServer) {
const protoDir = path.join(process.cwd(), 'public', 'protos');
const targetDir = path.join(process.cwd(), '.next', 'server', 'protos');

const expectedFiles = [
path.join(protoDir, 'core', 'v0', 'core.proto'),
path.join(protoDir, 'platform', 'v0', 'platform.proto')
];

const missingFiles = expectedFiles.filter(file => !fs.existsSync(file));

if (!fs.existsSync(protoDir)) {
console.error('Error: Directory with proto files not found:', protoDir);
return config;
}

if (missingFiles.length > 0) {
console.error('Error: The following proto files are missing:');
missingFiles.forEach(file => console.error(`- ${file}`));
return config;
}

fs.mkdirSync(targetDir, { recursive: true });
try {
fs.cpSync(protoDir, targetDir, { recursive: true });
console.log('Proto files successfully copied from:', protoDir);
console.log('To:', targetDir);
} catch (error) {
console.error('Error copying proto files:', error);
}
}

return config;
}
}

module.exports = nextConfig
Loading