Coder Social home page Coder Social logo

porick-flask's People

Contributors

johnlunney avatar kopf avatar nosmo avatar stesh avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

johnlunney nosmo

porick-flask's Issues

Adapt db setup instructions

The db setup instructions in the README are out of date. We need to update them to show a user how to create a database from scratch, and how to upgrade a chirpy database to a porick database.

For the latter, I used https://github.com/kopf/porick/blob/master/migrate_db.sh in the previous incarnation of porick.

For all db upgrades in the future, alembic should be used. We should look into the possibility of porting migrate_db.sh to an alembic script.

Get rid of the landing page

When there are quotes, the interface should directly dump a user to /browse rather than telling them what chirpy is.

Remove Quote.score if not needed

It seems as if the score attribute of Quote isn't used. It might well be a left-over from the chirpy times.

@stesh can you have a look at the qdb database and see if it's used at all?

If not, we can get rid of it here and create a db migration script to remove it from the db.

Login from any page

Copy of kopf/porick#46

Instead of having a link to a login page, place two text fields in a dropdown from the navbar for username and password.

Add 'edit' page for quotes

Similar to what was there on Chirpy.

Intended use-cases: removing line-breaks, harmonizing tags, retro-fitting tags

Access: probably only for 'admins'.

to be done

  • center the pagination at the bottom of the page
  • browsing by tags
  • search
  • create a quote page
  • reset password page
  • handling pages displaying a single quote (e.g. random or /browse/<id>), as this breaks the pagination. this might be tricky to solve elegantly

Calculation of number of up/downvotes is incorrect

Copy of kopf/porick#44

e.g. in the case of the following quote, with fields:

   rating: 0
    votes: 2
submitted: 2012-10-26 14:26:12
    score: 1
   status: 1

its # of upvotes is calculated as equal to votes (2) and number of downvotes equal to votes - rating (2). however we can see this isn't the case when we look at the actual votes for this quote:

+----------+---------+-----------+
| quote_id | user_id | direction |
+----------+---------+-----------+
|     1137 |       4 | up        |
|     1137 |       6 | down      |
+----------+---------+-----------+

Fix pagination CSS (ghost vertical line)

There's a div and a ul of class pagination - one or the other probably has a CSS rule in bootstrap for a grey vertical line on the left border, and that's what's causing it. That's my suspicion, at least.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.