Skip to content

Commit

Permalink
不要なファイル、記述を削除
Browse files Browse the repository at this point in the history
  • Loading branch information
mousu-a committed Nov 18, 2024
1 parent 76d60a0 commit 0d010c2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 53 deletions.
2 changes: 0 additions & 2 deletions app/javascript/check-stamp.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Vue from 'vue'
import CheckStamp from 'check-stamp.vue'
import store from 'check-store.js'
import CSRF from 'csrf'
import 'whatwg-fetch'
Expand Down
37 changes: 0 additions & 37 deletions app/javascript/check-stamp.vue

This file was deleted.

15 changes: 1 addition & 14 deletions app/javascript/check-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ Vue.use(Vuex)
export default new Vuex.Store({
state: {
checkId: null,
userName: null,
createdAt: null,
checkableId: null,
checkableType: null,
productId: null,
Expand All @@ -17,22 +15,15 @@ export default new Vuex.Store({
},
getters: {
checkId: (state) => state.checkId,
userName: (state) => state.userName,
createdAt: (state) => state.createdAt,
checkableId: (state) => state.checkableId,
checkableType: (state) => state.checkableType,
productId: (state) => state.productId,
productCheckerId: (state) => state.productCheckerId,
watchId: (state) => state.watchId
},
mutations: {
setCheckable(
state,
{ checkId, userName, createdAt, checkableId, checkableType }
) {
setCheckable(state, { checkId, checkableId, checkableType }) {
state.checkId = checkId
state.userName = userName
state.createdAt = createdAt
state.checkableId = checkableId
state.checkableType = checkableType
},
Expand Down Expand Up @@ -64,16 +55,12 @@ export default new Vuex.Store({
if (json[0]) {
commit('setCheckable', {
checkId: json[0].id,
createdAt: json[0].created_at,
userName: json[0].user.login_name,
checkableId: checkableId,
checkableType: checkableType
})
} else {
commit('setCheckable', {
checkId: null,
createdAt: null,
userName: null,
checkableId: checkableId,
checkableType: checkableType
})
Expand Down

0 comments on commit 0d010c2

Please sign in to comment.