runbir-tools 1.0.4 → 1.0.6

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/package.json CHANGED
@@ -1,20 +1,21 @@
1
1
  {
2
2
  "name": "runbir-tools",
3
- "version": "1.0.4",
3
+ "private": false,
4
+ "version": "1.0.6",
4
5
  "type": "module",
5
6
  "main": "./dist/runbir-tools.umd.js",
6
7
  "module": "./dist/runbir-tools.es.js",
7
- "types": "dist/index.d.ts",
8
- "files": [
9
- "dist",
10
- "dist/style.css"
11
- ],
8
+ "types": "./types/index.d.ts",
12
9
  "exports": {
13
10
  ".": {
14
11
  "import": "./dist/runbir-tools.es.js",
15
12
  "require": "./dist/runbir-tools.umd.js"
16
13
  }
17
14
  },
15
+ "files": [
16
+ "dist",
17
+ "types"
18
+ ],
18
19
  "scripts": {
19
20
  "dev": "vite",
20
21
  "build": "vue-tsc -b && vite build",
@@ -31,11 +32,6 @@
31
32
  "vue": "^3.5.13",
32
33
  "vue-router": "^4.5.1"
33
34
  },
34
- "dependencies": {
35
- "@turf/turf": "^7.2.0",
36
- "ol": "^10.6.1",
37
- "vite-plugin-dts": "^4.5.4"
38
- },
39
35
  "devDependencies": {
40
36
  "@eslint/js": "^9.28.0",
41
37
  "@types/node": "^24.0.0",
@@ -54,10 +50,11 @@
54
50
  "husky": "^9.1.7",
55
51
  "jiti": "^2.4.2",
56
52
  "lint-staged": "^16.1.0",
57
- "sass": "^1.89.2",
58
- "sass-loader": "^16.0.5",
59
53
  "typescript": "~5.5.4",
54
+ "unplugin-auto-import": "^19.3.0",
55
+ "unplugin-vue-components": "^28.7.0",
60
56
  "vite": "^6.3.5",
57
+ "vite-plugin-css-injected-by-js": "^3.5.2",
61
58
  "vite-plugin-eslint": "^1.8.1",
62
59
  "vitest": "^3.2.3",
63
60
  "vue-eslint-parser": "^9.4.3",
@@ -74,5 +71,9 @@
74
71
  },
75
72
  "engines": {
76
73
  "node": ">=22.0.0"
74
+ },
75
+ "dependencies": {
76
+ "@turf/turf": "^7.2.0",
77
+ "ol": "^10.6.1"
77
78
  }
78
79
  }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import type { ViewOptions } from 'ol/View';
2
+ interface Options {
3
+ view: ViewOptions;
4
+ layers: Array<any>;
5
+ controls: any;
6
+ event: any;
7
+ }
8
+ type __VLS_Props = {
9
+ options: Options;
10
+ };
11
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ olMap: (...args: any[]) => void;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ onOlMap?: ((...args: any[]) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { Plugin } from 'vue';
2
+ import VueOl from './components/VueOl.vue';
3
+ export { VueOl };
4
+ declare const plugin: Plugin;
5
+ export default plugin;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ declare const router: import("vue-router").Router;
2
+ export default router;
@@ -0,0 +1,2 @@
1
+ export declare function getTyphoonList(): Promise<import("axios").AxiosResponse<any, any>>;
2
+ export declare function getTyphoonPath(id: number): Promise<import("axios").AxiosResponse<any, any>>;
@@ -1,6 +1,6 @@
1
- import { default as Feature } from 'ol/Feature';
1
+ import Feature from 'ol/Feature';
2
2
  import { Geometry } from 'ol/geom';
3
- import { default as VectorSource } from 'ol/source/Vector';
3
+ import VectorSource from 'ol/source/Vector';
4
4
  interface TyphoonEntity {
5
5
  longitude: number;
6
6
  latitude: number;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -1 +0,0 @@
1
- .map{width:100%;height:100%}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,16 +0,0 @@
1
- import { ViewOptions } from 'ol/View';
2
- interface Options {
3
- view: ViewOptions;
4
- layers: Array<any>;
5
- controls: any;
6
- event: any;
7
- }
8
- type __VLS_Props = {
9
- options: Options;
10
- };
11
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
- olMap: (...args: any[]) => void;
13
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
- onOlMap?: ((...args: any[]) => any) | undefined;
15
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
- export default _default;
File without changes
@@ -1,2 +0,0 @@
1
- declare const router: import('vue-router').Router;
2
- export default router;
@@ -1,10 +0,0 @@
1
- /**
2
- * 获取台风列表
3
- */
4
- export declare function getTyphoonList(): Promise<import('axios').AxiosResponse<any, any>>;
5
- /**
6
- * 获取台风路径
7
- * @param id 台风编号
8
- * @returns
9
- */
10
- export declare function getTyphoonPath(id: string): Promise<import('axios').AxiosResponse<any, any>>;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vite').UserConfig;
2
- export default _default;
File without changes