mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
add: loading and empty status componments
This commit is contained in:
BIN
extension/assets/empty.png
Normal file
BIN
extension/assets/empty.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
BIN
extension/assets/loading.gif
Normal file
BIN
extension/assets/loading.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
9
src/components/Empty.vue
Normal file
9
src/components/Empty.vue
Normal file
@@ -0,0 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
const emptyImg = browser.runtime.getURL('/assets/empty.png')
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div flex="~" justify="center" items="center">
|
||||
<img :src="emptyImg" w="200px" h="auto">
|
||||
</div>
|
||||
</template>
|
||||
23
src/components/Loading.vue
Normal file
23
src/components/Loading.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<script setup lang="ts">
|
||||
const imgURL = browser.runtime.getURL('/assets/loading.gif')
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
w="full"
|
||||
h="46px"
|
||||
p="y-8"
|
||||
flex="~"
|
||||
justify="center"
|
||||
items="center"
|
||||
>
|
||||
<img
|
||||
:src="imgURL"
|
||||
alt="loading"
|
||||
w="46px"
|
||||
h="46px"
|
||||
m="r-2"
|
||||
/>
|
||||
{{ $t('home.loading_more') }}
|
||||
</div>
|
||||
</template>
|
||||
@@ -45,7 +45,7 @@ export async function getManifest() {
|
||||
js: ['./dist/contentScripts/index.global.js'],
|
||||
},
|
||||
],
|
||||
web_accessible_resources: ['dist/contentScripts/style.css'],
|
||||
web_accessible_resources: ['dist/contentScripts/style.css', 'assets/*'],
|
||||
}
|
||||
|
||||
if (isDev) {
|
||||
|
||||
Reference in New Issue
Block a user