jakipatryk / steeditor Goto Github PK
View Code? Open in Web Editor NEWAn advanced editor, not only for advanced users!
License: MIT License
An advanced editor, not only for advanced users!
License: MIT License
steeditor should put URLs and user mentions from the post body in the corresponding json_metadata
fields
non-markdown links are not included in json_metadata['links']
. This is a problem for the utopian templates, since they propose the target repository as non-markdown links, but the utopian-spreadsheet repo parses json_metadata['links']
for that string:
https://github.com/amosbastian/utopian-spreadsheet/blob/b4953e9af7910ffc3336a1945c3b31ae16aafb72/spreadsheet.py#L50
The target repository is not necessarily detected correctly in this case.
user-mentions are found within markdown URLs. This is not necessarily a bug, only inconsistent to other interfaces.
Two test posts with the same body: utopian template + one image + a markdown link
{"app":"steeditor/0.1.0",
"format":"markdown",
"image":["https://steemitimages.com/0x0/https://user-images.githubusercontent.com/33018033/42889616-25f17de6-8aab-11e8-971e-e05abdb331e1.png"],
"tags":["not-utopian","not-analysis"],
"users":["stmdev"],
"links":["https://steemit.com/test/@stmdev/steeditor-test-1532283370486"],
"community":"steeditor"}
{"tags":["not-utopian","not-analysis"],
"image":["https://steemitimages.com/0x0/https://user-images.githubusercontent.com/33018033/42889616-25f17de6-8aab-11e8-971e-e05abdb331e1.png"],
"links":["https://github.com/utopian-io/utopian.io","https://steemit.com/test/@stmdev/steeditor-test-1532283370486"],
"app":"steemit/0.1",
"format":"markdown"}
Differences:
links
section, so the target repository may be empty or possibly wrong in the utopian review sheet. The steemit metadata contains the repository as the first entry in links
@stmdev
, while steemit treats this as part of the URL and doesn't add a users
field.steeditor.app as live on 2018-08-29
Chrome 68.0
Loading templates and drafts at the same time should load them correctly and return them to a method which engaged loading.
When templates and drafts are loaded at the same time, a method which engaged the loading receives randomly either drafts or templates.
Steeditor builds a permlink from the post title. However, not all characters are allowed in permlinks. Steeditor should allow any characters in the title and replace invalid permlink characters to form a working permlink from the title.
Underscore (_
) chars from the title are not allowed in the permlink and are not replaced. The comment broadcast call to SteemConnect returns code 500 with {"error":"server_error","error_description":"false: Invalid permlink character: _"}
and Steeditor shows an error:
Try to submit a post with underscores in the title, e.g.
NB: steemit replaces underscores with "-".
Chrome 69.0
Steeditor as live on https://steeditor.app on 18-10-09
Hi,
I recently start writing for projects via utopian, may I provide some documentation like FAQ for this project.
You may also request other forms of documents needed for the project.
The MVP should implement some of the features of a Progressive Web App.
manifest.json
(need a logo for that)Project should have a basic setup.
@ngrx/store
, @ngrx/router-store
, @ngrx/store-devtools
, and @ngrx/effects
@angular/material
and setup material moduleWhile creating a post via the /drafts/editor
route, multiple drafts are being created.
/drafts/editor
route should not create any draftThere is a problem (probably with a SteemConnect, see https://github.com/steemit/steemconnect/issues/292) when broadcasting a draft with allow_votes
set to false.
When there are no beneficiaries specified, broadcasting results in an error.
extensions
How about adding a beneficiary feature for those who comment on your post. You will set the max number of beneficiaries and beneficiary reward percentage. E.g, 1% beneficiary for the first 20 comments.
"utopian.pay" should be a valid username when adding a beneficiary.
"utopian.pay" is not a valid username.
"." should be added as a valid char in beneficiary pattern validator.
Tags should prevent a user from entering all invalid special characters except one single - between two words.
Tags allow all special characters (!@$%^&*()) except for #. When trying to publish a post, steem throws a broadcast error without any details.
Use following regex for testing a valid tag: /^[a-z0-9]+(-[a-z0-9]+)*$/
The community
field in the post's json_metadata
is (from Steem-perspective) only required to be valid JSON, there is no restriction on characters or formats from the blockchain implementation: https://github.com/steemit/steem/blob/c6b865b6f27999cba38f3840151c8306f14f3371/libraries/protocol/steem_operations.cpp#L86
Steeditor requires the community
field to consist of lower case chars only and shows an error message when other chars are used.
While lower-case chars only is quite common for the community field across apps, not all apps do this. Actifit for example uses a list in the community field. The blockchain allows any content as long as the resulting json_metadata
is valid JSON.
Enter upper case or special chars in the community
field
Corresponding check in the code:
My TS skills are not sufficient to provide a PR which ensures only valid JSON.
Browser: Chrome 68.0
Steeditor.app at rev. 6911916
When trying to edit a post from my blog using the steeditor app, there shouldn't be issues with some posts due to its json metadata.
If I try to open a post from Actifit app specifically, the editor freezes and I can't use it till I restart the app afresh.
"
enclosing the metadata."{"community":["actifit"],"step_count":["12000"],"activity_type":["Cycling, Daily Activity"],"tags":["mcyusuf","health","fitness","cycling","actifit"],"heightUnit":["cm"],"weightUnit":["kg"],"chestUnit":["cm"],"waistUnit":["cm"],"thighsUnit":["cm"],"image":["https://cdn.steemitimages.com/DQma3XriZxvHMWep4xjALkgQ1foWoQf24Ksq24FyrkRMcH3/A-4.I.png"],"appType":"","actiCrVal":"5310f62f01b497b52017269777384951ebe27ecbcaa3f9859c06af05626b9352c91d171d947260330a21b2acf2f85367","app":"actifit/v0.3.1"}"
When a user opens an existing draft, the current thumbnail and post preview should be available immediately.
When a user opens an existing draft, the current thumbnail and post preview aren't available immediately, but after a change in the form.
There should be a form for creating a post.
There should be implemented OAuth2 implicit grant flow with SteemConnect.
comment
+ comment_options
Normally, after you are done creating a post and you send it to the steem blockchain, you are given the option to remove draft, the button has not been clicking for over a week now .
Post's drafts should be stored locally.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.