GithubHelp home page GithubHelp logo

crea7dossantos / sweep Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 25.15 MB

This is a Todo application with Nuxt on the client side and Flask on the server side

Python 14.69% JavaScript 10.00% Vue 74.71% Mako 0.60%

sweep's People

Contributors

crea7dossantos avatar

Watchers

 avatar

sweep's Issues

Sign out when refresh_token expires

refresh_token の期限が切れたときはユーザーの再認証をサインインの部分から行わせて refresh_token を新しくするために、サインアウトさせる。

Handle and migrate data with ORM

SQLAlchemyを使ってデータの更新などを行う。
主な目的としてはSQLインジェクション対策など。

User naem update

セッターからモーダルが非表示になった場合のストアデータの処理と、 mounted 部分で返り値を v-text-field にセット。 save 時に validation をかけてルールの部分にエラーが発生しない場合のみ、/update のエンドポイントを叩き、プロフィールを変更できるようにする。

Display the top screen when the user is not logged in

ユーザーがアカウントを作成していなく、ログインしていない時には、Todoアプリのトップ画面を表示してユーザーにアカウント作成とログインを推奨する。

  • login画面の作成
  • signup画面の作成

Migrate the input form created with bulma to Vuetify

signup.vuesignin.vue の画面で作成していた入力フォームをVuetifyに移行する。
移行理由としては、Validataionが効いたフォームをコンポーネントで提供しているぽくこれを使えば簡単にバリデーションが効いた良い感じのフォームが使えそうな気がした。

bug when profile was not updated

プロフィールが二回立て続けに更新されずにモーダルが閉じたときなどに前の前の画像が設定されるなどのバグが発生する

Display the date added to Todo

タイトル通り、いつTodoを追加したかが分からないので、追加した日付をトップで表示させる。

Avoid where you want to avoid hard coding

DBへの接続情報など、ハードコーディングしてはいけない部分もハードコーディングしてしまっているので、 .env ファイルを作成して避ける

If you do not reload when signIn, default.vue is not read

sign inの処理をした時に、トークンの確認をしてトークンがあったらsign inやsign upのボタンをページから非表示にしたいのだが、読み込まれないので認証の状態に密接してレイアウトが変更されない。
この辺も状態管理の部分でどうにかなりそうな部分ではあるが。

Consider switching modal display

ここでの問題は、画面サイズが900px以上の時はモーダルで表示したい画面はモーダルで表示し、画面サイズが小さい時は通常の用意しているページに飛ばす処理をしたい。
この辺を考慮する必要がある。

Bug: date_posted part is not taken well.

可能性あり。sortした時に上手くいかなかったし、なんか変。
ってかこれは日付のフォーマットした時にも感じたが、DBに格納する時に、サーバー側の日付が変わってない感じする。

Since the processing around Axios is dirty, refactor it once

axiosの処理でbaseのURLを作成する時に、通常の呼び出しと、アクセストークンをHTTPヘッダに付属する呼び出しと、リフレッシュトークンをHTTPヘッダに付属する3種類が存在するので、プラグインにそれぞれを記述し、そこから参照する。

Creating a navigation bar

LoginとSignInの機能を追加するためのNavigation Bar・Headerを上部に作成する。

Migrate navigation bar to Vuetify

ナビゲーションバーをBulmaで作成していて、レスポンシブデザインに対応できていないので、移行する。

Error handling when tokens become stale

トークンが古くなった時と、トークンがCookieで保存されていない時の差分をJWTのデコレーターで出せるのかなど確認する。

Create a filter, convert date in time zone, format

現在DB側で保存したデータをそのまま表示させているので、Filterのjsファイルを plugins の中に作成し、 nuxt.config.js で読み込み、データをバインディングする前にフォーマットにかける。

Modify the configuration to put the config file at the root

configファイルをルートに置いて、Migrationした結果ルートに置かれるsqliteのdbファイルを読み取れるようにする。
現在は手動で flask_todo の配下にdbファイルを置いて読み取っているので、修正する

State management of what is posted

投稿をモーダルからも可能にする時に、非同期でPOSTされた要素の変更を行うには、一律な状態管理を行い、View側でセッターを通して変更させる必要があるので、実装する

Change the content displayed in index.vue

このアプリケーションを読み込んだ時に、ルーティングで index.vue を読み込むようになっていて、 index.vue で表示するコンテンツとしてデコレーターをつけたTodoページを表示させたくないので、 index.vue で表示するコンテンツをこのアプリケーションのトップページとする。

Modify package configuration

パッケージ構成を修正して、ディレクトリに関連するファイルだけを格納し、実行ファイルを分ける

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.