fix tests
This commit is contained in:
parent
b2011429c6
commit
fd2986ea85
10 changed files with 199 additions and 197 deletions
|
|
@ -9,8 +9,6 @@ import genRandomSeed from '../../services/random_seed/random_seed.service.js'
|
|||
import EmojiPicker from '../emoji_picker/emoji_picker.vue'
|
||||
import UnicodeDomainIndicator from '../unicode_domain_indicator/unicode_domain_indicator.vue'
|
||||
|
||||
import { useEmojiStore } from 'src/stores/emoji.js'
|
||||
|
||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||
import { faSmileBeam } from '@fortawesome/free-regular-svg-icons'
|
||||
|
||||
|
|
@ -133,7 +131,7 @@ const EmojiInput = {
|
|||
},
|
||||
computed: {
|
||||
padEmoji() {
|
||||
return useEmojiStore().mergedConfig.padEmoji
|
||||
return this.$store.getters.mergedConfig.padEmoji
|
||||
},
|
||||
defaultCandidateIndex() {
|
||||
return this.$store.getters.mergedConfig.autocompleteSelect ? 0 : -1
|
||||
|
|
|
|||
|
|
@ -20,8 +20,10 @@ export const getJsonOrError = async (response) => {
|
|||
}
|
||||
|
||||
export const createApp = (instance) => {
|
||||
console.log('NAP', instance)
|
||||
const url = `${instance}/api/v1/apps`
|
||||
const form = new window.FormData()
|
||||
console.log(url)
|
||||
|
||||
form.append('client_name', 'PleromaFE')
|
||||
form.append('website', 'https://pleroma.social')
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@ export const useOAuthStore = defineStore('oauth', {
|
|||
},
|
||||
async getAppToken() {
|
||||
const instance = useInstanceStore().server
|
||||
console.log(this.clientId)
|
||||
const res = await getClientToken({
|
||||
clientId: this.clientId,
|
||||
clientSecret: this.clientSecret,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue