Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…mple into remove-primus
  • Loading branch information
snowteamer committed Mar 27, 2021
2 parents bd8344e + 6972907 commit bb9de23
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion backend/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ route.POST('/file', {
output: 'data',
multipart: true,
allow: 'multipart/form-data',
failAction: async function (request, h, err) {
failAction: function (request, h, err) {
console.error('failAction error:', err)
return err
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/controller/serviceworkers/primary.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ self.addEventListener('activate', function (event) {
// has the ability to access and clear the localstorage periodically.
const store = {}

self.addEventListener('message', async function (event) {
self.addEventListener('message', function (event) {
console.debug(`[sw] message from ${event.source.id}. Current store:`, store)
// const client = await self.clients.get(event.source.id)
// const client = await self.clients.get(event.clientId)
Expand Down
2 changes: 1 addition & 1 deletion frontend/model/contracts/group.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ DefineContract({
state.profiles[data.member].status = PROFILE_STATUS.REMOVED
state.profiles[data.member].departedDate = meta.createdDate
},
async sideEffect ({ data, contractID }, { state }) {
sideEffect ({ data, contractID }, { state }) {
const rootState = sbp('state/vuex/state')
const contracts = rootState.contracts || {}

Expand Down
2 changes: 1 addition & 1 deletion frontend/utils/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const imageUpload = async (imageFile: File): Promise<any> => {
// we use FileReader to get raw bytes to generate correct hash
const reader = new FileReader()
// https://developer.mozilla.org/en-US/docs/Web/API/Blob
reader.onloadend = async function () {
reader.onloadend = function () {
const fd = new FormData()
const { result } = reader
if (result === null) {
Expand Down
2 changes: 1 addition & 1 deletion frontend/views/containers/access/PasswordModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default {
// We access directly the modal here to avoid broacasting event to every possible modal
this.$refs.modalTemplate.close()
},
async changePassword () {
changePassword () {
try {
// TODO check password
this.closeModal()
Expand Down
2 changes: 1 addition & 1 deletion frontend/views/containers/access/SignupForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default {
username: {
[L('A username is required.')]: required,
[L('A username cannot contain spaces.')]: nonWhitespace,
[L('This username is already being used.')]: async (value) => {
[L('This username is already being used.')]: (value) => {
if (!value) return true
if (this.usernameAsyncValidation.timer) {
clearTimeout(this.usernameAsyncValidation.timer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default {
close () {
this.$refs.modal.close()
},
async submit () {
submit () {
console.log('TODO implement this.')
this.close()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default {
close () {
this.$refs.modal.close()
},
async submit () {
submit () {
alert('TODO implement this')
}
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/views/containers/chatroom/LeaveChannelModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default {
close () {
this.$refs.modal.close()
},
async submit () {
submit () {
this.close()
console.log('Todo')
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default {
close () {
this.$refs.modal.close()
},
async submit () {
submit () {
alert('TODO implement this')
}
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/views/containers/payments/PaymentDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default {
closeModal () {
this.$refs.modal.close()
},
async submit () {
submit () {
alert('TODO: Implement cancel payment')
},
dateFromMonthstamp,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"import"
],
"rules": {
"require-await": "error",
"vue/max-attributes-per-line": "off",
"vue/html-indent": "off",
"flowtype/no-types-missing-file-annotation": "off",
Expand Down

0 comments on commit bb9de23

Please sign in to comment.