Skip to content
Snippets Groups Projects
Commit 8e84d649 authored by Alexey Lunin's avatar Alexey Lunin
Browse files

testing

parent c1a984a0
No related branches found
No related tags found
1 merge request!20Didgram
Showing
with 0 additions and 22247 deletions
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
public/config.js
# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.idea
src/apiClient/**/*.*
# Getting Started with Create React App
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Available Scripts
In the project directory, you can run:
### `yarn start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.\
You will also see any lint errors in the console.
### `yarn test`
Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `yarn build`
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `yarn eject`
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
## Learn More
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).
const {CracoAliasPlugin} = require('react-app-alias')
const options = {} // default is empty for most cases
module.exports = {
plugins: [
{
plugin: CracoAliasPlugin,
options: {}
}
]
}
\ No newline at end of file
{
"name": "didgram-web-agent",
"version": "0.1.0",
"private": true,
"dependencies": {
"@ant-design/icons": "^4.8.0",
"@auth0/auth0-react": "^1.12.0",
"@fontsource/roboto": "^4.5.8",
"@microsoft/signalr": "^7.0.3",
"@sentry/react": "^7.41.0",
"antd": "^5.0.3",
"classnames": "^2.3.2",
"date-fns": "^2.29.3",
"events": "^3.3.0",
"history": "^5.3.0",
"isomorphic-fetch": "^3.0.0",
"mobx": "^6.7.0",
"mobx-react": "^7.6.0",
"react": "^18.2.0",
"react-color": "^2.19.3",
"react-dom": "^18.2.0",
"react-qr-code": "^2.0.11",
"react-router-dom": "^6.4.4",
"react-scripts": "5.0.1",
"react-toastify": "^9.1.1",
"typed-emitter": "^2.1.0",
"typescript": "^4.4.2",
"url": "^0.11.0",
"uuid": "^9.0.0"
},
"scripts": {
"start": "craco start",
"build:sourcemap": "craco build",
"build": "GENERATE_SOURCEMAP=false craco build",
"format": "prettier --write \"src/**/*.tsx\" --ignore-path .prettierignore",
"test": "craco test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@craco/craco": "^7.0.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^13.0.0",
"@testing-library/user-event": "^13.2.1",
"@types/jest": "^27.0.1",
"@types/node": "^16.7.13",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/uuid": "^9.0.0",
"node-sass": "^8.0.0",
"react-app-alias": "^2.2.2"
}
}
This favicon was generated using the following font:
- Font Title: Unbounded
- Font Author: Copyright 2022 The Unbounded Project Authors (https://github.com/googlefonts/unbounded)
- Font Source: http://fonts.gstatic.com/s/unbounded/v3/Yq6F-LOTXCb04q32xlpat-6uR42XTqtG6xjx043HgP6LR0Y.ttf
- Font License: SIL Open Font License, 1.1 (http://scripts.sil.org/OFL))
apps/web-agent/public/android-chrome-192x192.png

11.4 KiB

apps/web-agent/public/android-chrome-512x512.png

30.7 KiB

apps/web-agent/public/apple-touch-icon.png

10.3 KiB

apps/web-agent/public/favicon-16x16.png

567 B

apps/web-agent/public/favicon-32x32.png

1.27 KiB

apps/web-agent/public/favicon.ico

15 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#f5f4f3" />
<meta
name="description"
content="Didgram Web Site. Achieve your goals smart and share it with community"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/apple-touch-icon.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Didgram</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
{
"short_name": "Didgram",
"name": "Didgram Application",
"icons": [
{
"src": "favicon.ico",
"sizes": "32x32 16x16",
"type": "image/x-icon"
},
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#f5f4f3",
"background_color": "#202020"
}
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
import {
Configuration,
ConfigurationParameters,
ActionMenuApi,
BasicmessageApi,
ConnectionApi,
CredentialDefinitionApi,
CredentialsApi,
DidExchangeApi,
DiscoverFeaturesApi,
DiscoverFeaturesV20Api,
EndorseTransactionApi,
IntroductionApi,
IssueCredentialV10Api,
IssueCredentialV20Api,
JsonldApi,
LedgerApi,
MediationApi,
OutOfBandApi,
PresentProofV10Api,
PresentProofV20Api,
ResolverApi,
RevocationApi,
SchemaApi,
ServerApi,
TrustpingApi,
WalletApi,
} from './swagger';
class ApiAcapy {
public actionMenu: ActionMenuApi;
public basicmessage: BasicmessageApi;
public connection: ConnectionApi;
public credentialDefinition: CredentialDefinitionApi;
public credentials: CredentialsApi;
public didExchange: DidExchangeApi;
public discoverFeatures: DiscoverFeaturesApi;
public discoverFeaturesV20: DiscoverFeaturesV20Api;
public endorseTransaction: EndorseTransactionApi;
public introduction: IntroductionApi;
public issueCredentialV10: IssueCredentialV10Api;
public issueCredentialV20: IssueCredentialV20Api;
public jsonld: JsonldApi;
public ledger: LedgerApi;
public mediation: MediationApi;
public outOfBand: OutOfBandApi;
public presentProofV10: PresentProofV10Api;
public presentProofV20: PresentProofV20Api;
public resolver: ResolverApi;
public revocation: RevocationApi;
public schema: SchemaApi;
public server: ServerApi;
public trustping: TrustpingApi;
public wallet: WalletApi;
constructor() {
}
public initialize = (getAccessToken: () => Promise<string>, baseUrl: string, subdomain: string) => {
const cfg = new Configuration();
const fetchPatched = async (url: string, init?: any) => {
init = Object.assign({}, init);
Object.assign(init.headers, {
Authorization: `Bearer ${await getAccessToken()}`,
'Agent-Domain': subdomain
})
return fetch(url, init);
};
this.actionMenu = new ActionMenuApi(cfg, baseUrl, fetchPatched);
this.basicmessage = new BasicmessageApi(cfg, baseUrl, fetchPatched);
this.connection = new ConnectionApi(cfg, baseUrl, fetchPatched);
this.credentialDefinition = new CredentialDefinitionApi(cfg, baseUrl, fetchPatched);
this.credentials = new CredentialsApi(cfg, baseUrl, fetchPatched);
this.didExchange = new DidExchangeApi(cfg, baseUrl, fetchPatched);
this.discoverFeatures = new DiscoverFeaturesApi(cfg, baseUrl, fetchPatched);
this.discoverFeaturesV20 = new DiscoverFeaturesV20Api(cfg, baseUrl, fetchPatched);
this.endorseTransaction = new EndorseTransactionApi(cfg, baseUrl, fetchPatched);
this.introduction = new IntroductionApi(cfg, baseUrl, fetchPatched);
this.issueCredentialV10 = new IssueCredentialV10Api(cfg, baseUrl, fetchPatched);
this.issueCredentialV20 = new IssueCredentialV20Api(cfg, baseUrl, fetchPatched);
this.jsonld = new JsonldApi(cfg, baseUrl, fetchPatched);
this.ledger = new LedgerApi(cfg, baseUrl, fetchPatched);
this.mediation = new MediationApi(cfg, baseUrl, fetchPatched);
this.outOfBand = new OutOfBandApi(cfg, baseUrl, fetchPatched);
this.presentProofV10 = new PresentProofV10Api(cfg, baseUrl, fetchPatched);
this.presentProofV20 = new PresentProofV20Api(cfg, baseUrl, fetchPatched);
this.resolver = new ResolverApi(cfg, baseUrl, fetchPatched);
this.revocation = new RevocationApi(cfg, baseUrl, fetchPatched);
this.schema = new SchemaApi(cfg, baseUrl, fetchPatched);
this.server = new ServerApi(cfg, baseUrl, fetchPatched);
this.trustping = new TrustpingApi(cfg, baseUrl, fetchPatched);
this.wallet = new WalletApi(cfg, baseUrl, fetchPatched);
}
}
export default new ApiAcapy();
wwwroot/*.js
node_modules
typings
# Swagger Codegen Ignore
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.
# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
#ApiClient.cs
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
3.0.42
\ No newline at end of file
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment