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

E2E protocol #1521

Merged
merged 549 commits into from
Jan 25, 2024
Merged

E2E protocol #1521

merged 549 commits into from
Jan 25, 2024

Conversation

Comment on lines +893 to +897
script.text = source
// NOTE: this will work if the file route adds .header('Content-Type', 'application/javascript')
// script.src = `${this.config.connectionURL}/file/${hash}`
// this results in: "SyntaxError: import declarations may only appear at top level of a module"
// script.innerHTML = `(function () {
// script.text = `(function () {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Undo?

if (key.foreignKey) {
const fkUrl = new URL(key.foreignKey)
const foreignContract = fkUrl.pathname
const foreignKeyName = fkUrl.searchParams.get('keyName')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a user-provided parameter, can this be abused in any way?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure that this is 'user-provided' any more than the rest of the parameters, but I guess it would result in perhaps syncing the wrong key at worst.

@socket-security
Copy link

socket-security bot commented Oct 18, 2023

corrideat and others added 20 commits January 19, 2024 19:35
* add markdown-it pkg to the project and make sure it works

* try slack-style markdown plugin

* optimise the convertToMarkdown() function

* switch from markdown-it to marked (zero-dependency pkg)

* define a custom renderer function that converts *string* to <strong>string</strong>

* style the <code> and <pre><code></code></pre> in the generated markdown outcome

* add more style declarations for markdown elements

* enable <del> tag / specify target='_blank' to <a> tag output

* add various call-to-action btns for transforming to markdown in SendArea.vue

* add a couple of more cta btns

* implement transformTextSelectionToMarkdown() method

* create injectOrStripSpecialChar() func for logic that injects special characters

* implment inject link element to the target string

* move the link cta to the last in the line

* move the primary call-to-actions next to the send btn / add style ctas to the edit mode too

* fix issue with the nested markdown styles / switch gfm on

* work on more feedback items

* delete the test file

* work on more change requests
Gruntfile.js Outdated Show resolved Hide resolved
@taoeffect taoeffect changed the title WIP: E2E protocol E2E protocol Jan 25, 2024
This reverts commit 4348366.
@taoeffect taoeffect marked this pull request as ready for review January 25, 2024 18:25
Comment on lines +230 to +231
GIMessage,
JSON,
Copy link
Member Author

@taoeffect taoeffect Jan 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these here?

EDIT: will be cleared out in a separate PR

@taoeffect taoeffect merged commit 37482c9 into master Jan 25, 2024
5 checks passed
@taoeffect taoeffect deleted the e2e-protocol branch January 25, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants