deadsuperhero / pine Goto Github PK
View Code? Open in Web Editor NEWA simple blogging app
A simple blogging app
I suspect this is happening because of an incorrect usage of Permitted Params, which I am a bit unfamiliar with in Rails 4+. Basically, I have two fields that do not update, and currently do not render:
Currently trying to figure out the right place to tweak this.
This is something I have little experience in, but I want to learn. This app is going to need some basic tests, as it grows more complex a TDD approach will be necessary.
Currently, posts are only public if the boolean for Public is marked. It would be great to display a list of Drafts for any article that isn't public, with the exception that only the author can view it.
It would be nice to allow articles to be tagged by the original author for categories.
This can be accomplished by using the acts_as_taggable_on gem. The other half of this will probably require an appropriate jquery plugin of some sort.
Semi-minor thing, but I need to check that Devise permissions are properly set on articles. We don't just want to check that authors are signed in, we also only want to permit such actions to the original author.
Currently, Pine does not allow for basic customization of itself. Specifically, I should focus on these things:
Weird bug, basically saving the form the first time on a create action for a new article seems to submit blank content for title and body fields of the article.
Editing seems to update the article without any problems, but for now when someone makes their initial article, they lose all of their work, and can't view the post without using the edit action.
Need to come up with a fix, a little clueless on this one.
This actually requires more investigation. I can see some benefits in doing this to play nice with other servers, but I'm also holding some assumptions about how other OStatus servers would react to a conversation that relies on a GUID string as a conversation_id.
Publications are a model that belong to authors, that have many articles. A publication basically acts as a list of articles, authors can declare which publication an article gets assigned to.
Publications should also have an endpoint similar to users, allowing them to be followed through OStatus subscriptions. What would be really cool is if a feed could somehow preserve attribution of the original author for each individual article - the question then becomes: how does one do that exactly? Is every article in a Publication's feed effectively a "reshare"?
Turns out that textarea and input elements have some fun limitations. Need to figure out:
An extension is available that brings in full image functionality, complete with layout capabilities. However, I'll need to investigate the best way to incorporate that into the assets pipeline.
Plugin: https://github.com/orthes/medium-editor-insert-plugin
The bonus is that it also supports video embeds, and embeds from other social networks. In theory, might be possible to even take embeds from GNU Social or Mastodon?
So, time to do a little bit of planning. This is pretty new territory, but in principle it seems simple.
The OStatus2 Gem is what Mastodon uses for OStatus-based federation. Since it's Ruby-based, it will work with our Ruby on Rails app.
This issue seeks to explore and plan out the different aspects of this gem, and consider methods of implementation in Pine. The docs seem a bit cryptic, so figuring out the "correct Rails 4+ way" to do this will be less-than-obvious.
So we need to:
Concepts:
Shouldn't be that hard to add support for. This just basically requires a quick migration and some CarrierWave assignment. Would be really nice to make some kind of AJAXy button for a smooth upload of image.
As a bonus, that image can be passed as the og:image value for any article post.
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.