tsimpdim / 3rstore Goto Github PK
View Code? Open in Web Editor NEWA Python Flask application used to store links online.
A Python Flask application used to store links online.
If for example you don't enter a title, what should happen is a little message appears saying that you need to fill the field. But nothing appears, instead you are redirected to /resources
Change the header color on mobile browsers (right now it is a shade of blue)
Remove the focus borders from the buttons (namely the header buttons and the burger menu)
Fix/Improve the two 'delete resources' options being too close to one another in small screens
Add a small bottom margin in the resource container when using the compact view
Although psycopg2 is supposed to handle sanitization via the query format specified in the docs, adding a resource with title: '--' or ' "" ' will turn the link to '--' or ' "" 'as well, although the note will be left as is.
Since you can't choose which bookmarks to export (on Chrome at least) it would be nice if we could filter them during importing
Which it should. Same as the 'Filtered Delete' functionality.
File "/app/_3RStore/views.py", line 628, in export_to_html
root_folder_exists = soup.find('H3', string=tag_array[i-1][0])
IndexError: tuple index out of range
It has something to do with the collapse class i have used, i'm looking into it
Kinda maybe should've made it responsive
The culprit is probably either not using the safe
flag on Jinja or these lines
Right now one can easily delete a resource by accident and there's no way he can recover it.
A confirmation of sorts must definitely be put in place and a way to recover deleted resources would be a great addition
`File "C:\Users\Home\Desktop\Misc\Dim\3RStore_3RStore\views.py", line 347, in edit_res
form.note.data = data[0]['note'].replace('</br>','\n') # Else the
tags will display as text `
AttributeError: 'NoneType' object has no attribute 'replace'
As of right now entering a newline/linebreak is not possible :{
If for example I have some resources with the tags books, books read
and others with the tag books
right now if I search for books
I will get both. But what if I only want the ones without the books read
tag?
So you can have for example the following:
username | |
---|---|
[email protected] | OneTwo |
[email protected] | OneTwo |
[email protected] | OneTwo2 |
[email protected] | OneTwo |
As you can imagine this produces a bit of a problem :)
Title. This could be expanded to be a "Delete all resources with tag x" button.
Persistent sessions would be nice
For example the following link:
should be shown as:
http://www.ba.teiwest.gr/pages/statistiki/ΣΥΝΟΛΙΚΕΣ%20ΣΥΝΟΠΤΙΚΕΣ%20ΣΗΜΕΙΩΣΕΙΣ%20ΣΤΑΤΙΣΤΙΚΗΣ.pdf
To do this we can use urlib.parse.unquote
Heroku enables https by default (see : https://threerstore.herokuapp.com) however, the views redirect users to http(?)
(e.g Follow the above link and then hit logout/login, you should now be at an HTTP version of the site :/ )
When a user first logins we can create a unique session_id and store that in the db with his username and as a cookie.
Then we can use this decorator to check if the user has logged in before from this device (by checking if a cookie with a session_id exists and grabbing his info from the db).
Since you can organize your bookmarks into folders, it would be great if the names of the folders were represented as tags.
Not sure how i forgot to delete it
Fix UTF-8 decoding when importing resources. Currently UTF-8 decoding exists only when adding resources manually.
To decode we use parse.unquote(<link>)
Would be nice to have an option to fully delete one's account
For example "Delete only resources with x tag"
Either in the options or in the resources page there should be icons/buttons to change the view to either be compact or normal
Perhaps it would be useful for a user to remove a tag from every resource.
Although removing values from pg arrays might seem problematic/difficult, since we are using pg 10+ we could use this
Since we can import, it'd be nice to be able to export too...just in case.
Perhaps it is far fetched / useless for such a small scale app but it would be nice to learn how to implement such a process
As of now, you can have a tag be "tag1" and another be "Tag1". They should probably be transformed into all lowercase
Instead of having the button above the input field it would look better next to it
You can check the commits in the Migrate-Bootstrap-v4.1
branch
_navbar
resources
options
100 characters can easily fit inside the card footer, we could go with 200 or even 300 chars before collapsing the notes.
I think a good place for this indicator would be next to the username
Say, the export button (if it ever gets implemented), the delete all button and the sorting button
Export button
Delete all button
Sorting button
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.