Coder Social home page Coder Social logo

jdaniloc / biblecomment Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 3.0 26.39 MB

A site to share the own comments about bible versicles. Made with React in the frontend, Express in the backend.

HTML 0.51% CSS 10.73% JavaScript 82.98% Python 2.88% Procfile 0.05% SCSS 2.84%
bible hacktoberfest react

biblecomment's Introduction

J. Danilo Carmo

JDaniloC's github stats

JDaniloC's github streak

JDaniloC's top languages

See some private repositories here:

biblecomment's People

Contributors

apfdamascena avatar deepsource-autofix[bot] avatar deepsourcebot avatar dependabot[bot] avatar imgbotapp avatar jdaniloc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

biblecomment's Issues

Refactor users table

Create a migration with follow changes:

  • Rename name to username
  • Remove token column and expires JWT token
  • Remove total_comments column and use SQL Select instead
  • Remove chapters_commented column and use SQL Select instead

Implement search comments

Link by abbreviation and create a component to search comments using LIKE:
image
Don't forget to use debounce to improve the search performance.

(JS-0435) Avoid using `this.state` inside `this.setState()`

Description

It is recommended not to use this.state inside setState calls. Such usage of this.state might result in errors because if two setState operations are called, they will be grouped into a single update, which will evaluate the old state instead of the current state. This can be avoided by using …

Occurrences

There are 16 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/JDaniloC/Biblecomment/issue/JS-0435/occurrences/

Improve search

Can open in the exactly verse through:
Mt 10:20
Beucase will compare with the title from verses table

Be able to search by LIKE in comments or verses.

The user will choose the option as github do:
image
With the following options:

  • No capítulo
  • No versículo
  • No comentário

Migrate Heroku to Railway

Heroku free tier will no longer be available so its interesting to migrate to Railway or the full project to NextJS.

Refactor chapters table

Change Books table

  • Alter table DROP primary key
  • CREATE UNIQUE INDEX id ON books
  • Alter table ADD primary key

Change Chapters table

  • Create a new table called verses where will have:
ID abbrev_id chapter verse title verse
0 gn 1 1 gn 1:1 No...
1 gn 1 2 gn 1:2 A t..
.. ... ... ... ... ...
99 ap 22 5 ap 22:5 En...
  • Export the verses from chapters table to verses table
  • Drop chapters table

Favorites DB refactor

The current favorites DB structure is just a JSON array, but it's needed to be another table, like the comments.

(JS-0417) Avoid `.bind()` or Arrow Functions in JSX properties

Description

A bind call or arrow function in a JSX property will create a brand new function on every single render. This is bad for performance. <!--more--> This affects performance as it may cause unnecessary re-renders if a brand new function is passed as a property to a component that uses …

Occurrences

There are 40 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/JDaniloC/Biblecomment/issue/JS-0417/occurrences/

Link references

Create a chips container in each comment to link versicles.
It's interesting to show the float versicle when click the chip and have a button to go to the chapter.

(JS-0127) Found `undefined` as an Identifier

Description

The undefined variable in JavaScript is actually a property of the global object. As such, in ECMAScript 3 it was possible to overwrite the value of undefined. While ECMAScript 5 disallows overwriting undefined, it's still possible to shadow undefined, such as: ``` function doSomething(data) { var undefined = "hi"; // …

Occurrences

There are 33 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/JDaniloC/Biblecomment/issue/JS-0127/occurrences/

(JS-0048) Inconsistent newlines before and after dots

Description

JavaScript allows you to place newlines before or after a dot in a member expression. Consistency in placing a newline before or after the dot can greatly increase readability. #### Example - The not-preferred way : js var foo = object .property; #### Example - The preferred way : …

Occurrences

There are 149 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/JDaniloC/Biblecomment/issue/JS-0048/occurrences/

DeepSource analysis

Perfomance

  • Forbid certain props on Components
  • Unnecessary return await function found

Anti-pattern

  • Prefer boolean attributes notation in JSX
  • Prevent extra closing tags for components without children

Bug risk

  • Remove usage of undeclared variables
  • Should not have unused variables
  • Found usage of this outside of class or classes-like object
  • Found invalid variable declaration
  • Inconsistent use of the radix argument when using parseInt()
  • Variable used before definition
  • Detected unnecessary fragments
  • Found await inside of loops

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.