forked from mxx1111/mdlook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.vue
More file actions
72 lines (69 loc) · 1.78 KB
/
Copy pathApp.vue
File metadata and controls
72 lines (69 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<script setup lang="ts">
import { browser } from 'wxt/browser'
import logo from '/favicon.png'
function onOpenOption() {
browser.runtime.openOptionsPage()
}
</script>
<template>
<div class="container popup-body">
<div
class="title"
style="height: 40px; display: inline-flex; padding-left: 60px;"
>
<img style="height: 40px" :src="logo">
<span
style="
font-size: 16px;
line-height: 40px;
font-weight: bold;
margin-left: 8px;
"
>使用必读</span>
</div>
<section style="margin-top: 12px; line-height: 28px">
<div>如果您希望使用微信公众号素材库作为图床功能,需要进行以下配置:</div>
<div>
1.开启公众号开发者模式
<span><a
href="https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Getting_Started_Guide.html"
target="_blank" rel="noopener noreferrer"
>查看文档</a></span>
</div>
<div>
2.配置IP白名单<span><a href="https://github.com/mxx1111/mdlook/blob/main/docs/browser-extension-wechat-images.md" target="_blank" rel="noopener noreferrer">mdlook 使用说明</a></span>
</div>
<div>
<button class="button" @click="onOpenOption">
开始使用
</button>
</div>
</section>
</div>
</template>
<style scoped lang="less">
.popup-body {
min-width: 300px;
scroll-behavior: auto;
margin-top: 20px;
}
.container {
width: 100%;
box-sizing: border-box;
padding-right: 15px;
padding-left: 15px;
padding-bottom: 15px;
margin-right: auto;
margin-left: auto;
font-size: 14px;
}
.button {
padding: 2px 6px;
background: #07c060;
color: #fff;
border-radius: 4px;
}
section a {
text-decoration: underline;
}
</style>