Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2回連続で今日の気分がsadの日報を表示する機能をVueからサーバーサイドレンダリングに変更 #8237

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions app/controllers/api/reports/sad_streak_controller.rb

This file was deleted.

102 changes: 0 additions & 102 deletions app/javascript/components/report.vue

This file was deleted.

47 changes: 0 additions & 47 deletions app/javascript/components/sad_reports.vue

This file was deleted.

2 changes: 0 additions & 2 deletions app/javascript/packs/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ import Watches from '../components/watches.vue'
import WatchToggle from '../components/watch-toggle.vue'
import Footprints from '../components/footprints.vue'
import QuestionAnswers from '../components/question-answers.vue'
import SadReports from '../components/sad_reports.vue'
import UserProducts from '../components/user-products.vue'
import ActionCompletedButton from '../components/action-completed-button.vue'
import CourseBooks from '../components/course-books.vue'
Expand All @@ -85,7 +84,6 @@ mounter.addComponent(Watches)
mounter.addComponent(WatchToggle)
mounter.addComponent(Footprints)
mounter.addComponent(QuestionAnswers)
mounter.addComponent(SadReports)
mounter.addComponent(UserProducts)
mounter.addComponent(ActionCompletedButton)
mounter.addComponent(CourseBooks)
Expand Down
10 changes: 0 additions & 10 deletions app/views/api/reports/sad_streak/index.json.jbuilder

This file was deleted.

2 changes: 1 addition & 1 deletion app/views/users/_sad_emotion_report.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
| のユーザー
hr.a-border
.card-list
div(data-vue="SadReports")
= render partial: 'reports/report', collection: reports, as: :report, locals: { user_icon_display: true, actions_display: false }
1 change: 0 additions & 1 deletion config/routes/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
get 'counts', on: :collection
end
resources :recents, only: %i(index)
resources :sad_streak, only: %i(index)
end
resources :watches, only: %i(index)
namespace "watches" do
Expand Down
Loading