refs #2606 Use vue-fontawesome in Modals/NewToot
This commit is contained in:
parent
e785ed2b7e
commit
180fd18d4b
|
@ -70,6 +70,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-svg-core": "^6.1.0",
|
||||
"@fortawesome/free-regular-svg-icons": "^6.1.0",
|
||||
"@fortawesome/free-solid-svg-icons": "^6.1.0",
|
||||
"@fortawesome/vue-fontawesome": "^2.0.6",
|
||||
"@panter/vue-i18next": "^0.15.2",
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<li class="poll-option" v-for="(option, id) in value" v-bind:key="id">
|
||||
<el-radio :disabled="true" :label="id">
|
||||
<el-input :placeholder="`choice ${id}`" :value="value[id]" @input="value => updateOption(value, id)" size="small"></el-input>
|
||||
<el-button class="remove-poll" type="text" @click="removePoll(id)" size="small"><icon name="times"></icon></el-button>
|
||||
<el-button class="remove-poll" type="text" @click="removePoll(id)" size="small"><font-awesome-icon icon="xmark" /></el-button>
|
||||
</el-radio>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
</el-popover>
|
||||
<div v-click-outside="hideEmojiPicker">
|
||||
<el-button type="text" class="emoji-selector" @click="toggleEmojiPicker">
|
||||
<icon name="regular/smile" scale="1.2"></icon>
|
||||
<font-awesome-icon :icon="['far', 'face-smile']" size="lg" />
|
||||
</el-button>
|
||||
<div v-if="openEmojiPicker" class="emoji-picker">
|
||||
<picker set="emojione" :autoFocus="true" :custom="pickerEmojis" @select="selectEmoji" />
|
||||
|
|
|
@ -24,8 +24,10 @@ import {
|
|||
faLock,
|
||||
faEyeSlash,
|
||||
faEye,
|
||||
faPlus
|
||||
faPlus,
|
||||
faXmark
|
||||
} from '@fortawesome/free-solid-svg-icons'
|
||||
import { faFaceSmile } from '@fortawesome/free-regular-svg-icons'
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
||||
import 'vue-awesome/icons'
|
||||
import Icon from 'vue-awesome/components/Icon'
|
||||
|
@ -66,7 +68,9 @@ library.add(
|
|||
faLock,
|
||||
faEyeSlash,
|
||||
faEye,
|
||||
faPlus
|
||||
faPlus,
|
||||
faFaceSmile,
|
||||
faXmark
|
||||
)
|
||||
|
||||
Vue.use(ElementUI, { locale })
|
||||
|
|
|
@ -1067,6 +1067,13 @@
|
|||
dependencies:
|
||||
"@fortawesome/fontawesome-common-types" "6.1.0"
|
||||
|
||||
"@fortawesome/free-regular-svg-icons@^6.1.0":
|
||||
version "6.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-6.1.0.tgz#5e6fb07e170a76ff8d081fb352022f933ecbb5f9"
|
||||
integrity sha512-MLSBZ3AprHZXVG6zVg9Jd/mGZrlX/1jxqQsHhvZuhdRdL9bZQyXHe5RmP0n4IOth/fdnoj3fs+EnbW/O+0K4dw==
|
||||
dependencies:
|
||||
"@fortawesome/fontawesome-common-types" "6.1.0"
|
||||
|
||||
"@fortawesome/free-solid-svg-icons@^6.1.0":
|
||||
version "6.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-6.1.0.tgz#1bdc3ce6ddd2336348ba324ac4a72161725b0d95"
|
||||
|
|
Loading…
Reference in New Issue