tg-blog 1.0.2 → 1.0.4-alpha1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -1
- package/dist/leaflet-src.esm.d17b7356.mjs +5016 -0
- package/dist/marker-icon-2x.b09c1a1b.mjs +4 -0
- package/dist/marker-icon.31c3515c.mjs +4 -0
- package/dist/marker-shadow.734c873b.mjs +4 -0
- package/dist/style.css +1 -1
- package/dist/tg-blog.es.js +13890 -8256
- package/dist/types/logic/models.d.ts +35 -2
- package/dist/types/views/FileView.vue.d.ts +4 -1
- package/dist/types/views/Location.vue.d.ts +14 -0
- package/dist/types/views/Poll.vue.d.ts +8 -0
- package/dist/types/views/PostView.vue.d.ts +2 -0
- package/package.json +3 -1
- package/src/logic/models.ts +1 -1
- package/src/views/FileView.vue +3 -3
- package/src/views/PostView.vue +8 -7
- package/src/views/TgBlog.vue +11 -4
package/README.md
CHANGED
|
@@ -9,7 +9,8 @@ Demo: TODO
|
|
|
9
9
|
#### 1. Install dependencies
|
|
10
10
|
|
|
11
11
|
```
|
|
12
|
-
yarn add tg-blog
|
|
12
|
+
yarn add tg-blog element-plus
|
|
13
|
+
yarn add -D unplugin-vue-components unplugin-auto-import
|
|
13
14
|
```
|
|
14
15
|
|
|
15
16
|
#### 2. Import CSS in your `main.ts`
|
|
@@ -31,6 +32,26 @@ export default defineConfig({
|
|
|
31
32
|
});
|
|
32
33
|
```
|
|
33
34
|
|
|
35
|
+
#### 3. In your `vite.config.ts`, you shall configure autoimport
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
import AutoImport from 'unplugin-auto-import/vite'
|
|
39
|
+
import Components from 'unplugin-vue-components/vite'
|
|
40
|
+
import {ElementPlusResolver} from "unplugin-vue-components/resolvers";
|
|
41
|
+
|
|
42
|
+
export default defineConfig({
|
|
43
|
+
plugins: [
|
|
44
|
+
vue(),
|
|
45
|
+
AutoImport({
|
|
46
|
+
resolvers: [ElementPlusResolver()],
|
|
47
|
+
}),
|
|
48
|
+
Components({
|
|
49
|
+
resolvers: [ElementPlusResolver()],
|
|
50
|
+
}),
|
|
51
|
+
],
|
|
52
|
+
});
|
|
53
|
+
```
|
|
54
|
+
|
|
34
55
|
#### 4. Import components
|
|
35
56
|
|
|
36
57
|
```ts
|