allo- / feedjack Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mk-fg/feedjack
Feedparser-based feed aggregation django app
License: BSD 3-Clause "New" or "Revised" License
This project forked from mk-fg/feedjack
Feedparser-based feed aggregation django app
License: BSD 3-Clause "New" or "Revised" License
It seems timezone dependend dates get stored in the database. Every datetime object should be timezone aware so the dates in the db are independend of the planet's configuration.
Currentn development is only done on the plain
theme and has some breaking changes. Old themes are preserved at https://github.com/allo-/feedjack/tree/master/feedjack/templates/feedjack/unsupported_themes.
Eventually they could be adapted to the new URLs and template structure and new django techniques (like {% static_url %}
).
Should probably be done after the big changes are done, so they do not need to get fixed from change to change.
Use a base.html, so other django-apps, which expect it can find it.
Create a good HTML template and delegate all theming to CSS files.
Currently there is an optional feature to use lxml2
to sanatize html (close tags, where the closing tag is missing, etc.) to make sure the post page stays intact if some post contains broken html.
Add some filters to strip unsafe tags (<script>, <style>, ...) or use a whitelist of allowed tags and remove eventhandlers (onload, etc.), which could be an malicious html injection from the feed.
add a view, which filters subscribers by group
The display of the post-tags
is broken.Currently the user login only works via the admin page.
Set CSP headers (possibly configurable):
data:
)Remove all Inline Scripts to be able to completly forbid unsafe-inline (and prevent event-handlers like "onload" to inject scripts).
For the "1.0" release of the new code there should be a new name, as there is no trivial upgrade path from feedjack or any of its forks. So the package should have some distinct new name.
Hi, playing around with mk-fg/feedjack I found your repo - from what I understand your changes are based on the current master of his feedjack branch, however I see no pull request on his repo from your changes here. I do not understand the current situation regarding this code, would you like to explain?
Is this the new 'main' repo for feedjack?
Thanks for your attention!
?marked=
do not make sense for users, who aren't logged in and are probably from bookmarks / history before the logout.Filters like since, unread, groups, etc. should be get-parameters, so they can be combined without complex patterns in urls.py
Use jQuery's ajax function to load the next page with a selector for the post-list and append it to the current post list.
error in Feedjack setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Invalid requirement, parse error at "'< 1.10'"
Provide a nice default theme
Features:
When the post list is filtered for a date range, add the range to the title. Maybe only start/end date and truncated to a coarser range depending on how many minutes/hours/days are between the posts.
Couple feedjack.models.Site with django.contrib.sites.models.Site as 1:1 relation and try to simplify site selection algorithm (get_current_site should be enough).
Add a Post<->User relationship with an intermediate model, which marks a post as
Sidebar: with feeds list, feed/group/multiple feeds selectable.
Top: Article list with headlines
Bottom: Article view for a single article (maybe an iframe), with option to view the original in the iframe. (like classic feedreader applications or popular mail programs).
As the site will display a lot of mostly unfiltered content from feeds, it should use security headers for allowed script sources (only current domain and no inline scripts).
Update the readme with a description of the new project and a clean and easy way for installation and configuration, including settings like ´´TEMPLATES´´ with template context processors and everything what's needed to run a new instance.
Move any stuff only relevant to the old releases into another file or remove them (as they can be found in git or old feedjack releases).
move get_extra_context
and page_context
to context processors. Cleanup views, try to remove stuff from initview.
[ ] mark the currently selected feed in the sidebar (i.e. bold font)
[ ] add a subscribers_excluded=1,2,3
URL-Parameter
[ ] When only filters like unread are applied, allow in the sidebar to deselect single feeds, adding them to subscribers_excluded
[ ] When a subscribers=1,2,3
parameter is given, allow to select/deselect feeds via the sidebar, which add/remove them in this parameter.
Show number of unread messages in the feedlist:
d9b278a removed parsing date formats like "yesterday".
We can add the links again with precomputed dates as now() - timedelta(1)
, which are relative to the page (and thus permalinks) with the link instead of being always relative to now()
.
Meta-Bug for adding tests.
Currently there will be bigger changes, so no unit tests, yet.
Testing intended behaviour would be nice as well.
Stuff to be done:
Use Dates for pagination.
Add a title field to the Subscriber model and a function lambda: self.title or self.feed.title
to get either a custom title for the site or the title from the feed.
referrer "never" does not work with csrf middleware.
Try to use more ready made cache decorators and so on for the caching.
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.