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

Development 3.12 #1039

Merged
merged 30 commits into from
Sep 20, 2023
Merged

Development 3.12 #1039

merged 30 commits into from
Sep 20, 2023

Conversation

AhmedHanafy725
Copy link
Contributor

Description

this branch for 3.12 issues

zaelgohary and others added 30 commits August 14, 2023 17:30
…ver_name

Better generated leader name for caprover
* Fix voting dialogue

* revert prev changes, add getUserNodes

* Edit types

* return in case user has no farms

* Edit types and proxy url
* add tag on publishing pre-release
based on the version name if contains 'rc' will add an eadge tag if not this will be latest

* clean up 

remove unnecessary empty line

* Update publish.yml
* Add UI package skeleton

* Fix lint err

* Created a small form with input and button to load the pdf file.

* Added the pdf viewer.

* Removed vuetify

* Implement the viewer

* Added buttons to Accept or Decline the pdf content, implement the PDF form view, PS: the form isn't implemented yet.

* Installed tailwind

* Fix tailwind installation

* edit eslint.json

* Update the PDF viewer, remove the form link, gonna start with converting it into a web component.

* Added loading to the accept button when pressing.

* Fix some issues and configure web-component

* Add script editor

* create script editor web component

* Fix the web-component style issue.

* Fix the web-component style issue.

* Added the sign method

* Added the sign method

* Set the button to disable again after accepting the pdf content.

* Added some missed packages, refactor the code by moving the signning method into the utils.

* Edit script editor design

* Removed unused console log, removed the saved mnemonic

* edit btn in script editor, convert editor to web component

* edit sign function, submit script btn

* Used tf-wallet-extension in getting user mnemonic, added alert

* Add script editor doc file

* Removed the hard-coded pdf link and replaced to be loaded from .env file.

* Updated the ViewPDFComponent to accept the pdfurl as a param from the user.

* Added tailwind-build to build the css classes as wrote as needed, get started with the tf-connecte

* Request on the dest endpoint with the signed data

* Added docs.

* Update the docs.

* Edit script editor docs

* Rename script editor docs

* Fix comments.

* Created Loading/Alert components with custom types and moved the required code inside them

* Update the workflow docs of UI project

* Edit build workflow name, edit workflow docs & edit readme

* Refactored the code by adding documentation for each function. Created three functions: two for checking the installation and activation of the Threefold Connector Extension, and the last one for displaying error messages in the browser. Also, working on setting up a simple Node.js server that includes a 'verify' endpoint as an example, as used in the code.

* Edit request body in psdfViewer & editor, edit sign function

* Implemeneted an interface with two types of the PDF provider, 1. with ThreefoldConnector, 2. NormalProvider with MNEMONIC.

* Implemeneted an interface with two types of the PDF provider, 1. with ThreefoldConnector, 2. NormalProvider with MNEMONIC.

* Edit script editor

* Implement the __request connector provider method.

* Added an example of the server to handle PDF signature verification

* Updated the pdfSigner doc, removed unsed imports.

* Fix validate mnemonic issue

* Update the ScriptEditor component.

* Added some improvements.

* Added an example to use the HTML tag -> (web-component)

* Updated the html-tags project with a README.md file.

* Update the provider to be abstract class instead of interface, update the code to sync the changes.

* Used the threefold connector from the npm package manager instead of link it, updated the html-tag example.

* Update the server example to work with the script signer content and pdf url.

* Edit script to use the tf connect provider.

* Moved examples folder out of src, fix comments.

* Updated the script editor docs

* Update yarn.lock file.

* Fix comments, fix sime issues in the pdf component.

* Added Examples section into the readme file.

---------

Co-authored-by: Mahmoud Emad <[email protected]>
yarn run v1.22.19
$ vite build && yarn tailwind-build
vite v4.4.9 building for production...
transforming...
✓ 610 modules transformed.
rendering chunks...
computing gzip size...
dist/style.css            20.61 kB │ gzip:   6.35 kB
dist/threefold-ui.mjs  3,720.16 kB │ gzip: 882.22 kB
dist/threefold-ui.umd.js  2,264.07 kB │ gzip: 767.28 kB
✓ built in 12.22s
$ yarn tailwind build -o dist/tailwind.css
$ /home/thunder/work/codescalers/github/tfgrid-sdk-ts/node_modules/.bin/tailwind build -o dist/tailwind.css
Done in 13.97s.
Done in 14.27s. instead of 'yarn workspace @threefold/UI build-only'
@AhmedHanafy725 AhmedHanafy725 merged commit f86490f into development Sep 20, 2023
5 checks passed
@AhmedHanafy725 AhmedHanafy725 deleted the development_312 branch September 20, 2023 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants