nxd-plugin 1.6.5 → 1.6.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/dist/chunks/component-AqiMonitor-DoGm_NCt.mjs +6718 -0
- package/dist/chunks/component-HighWayEarlyWarningRed-D89gFa50.mjs +2223 -0
- package/dist/chunks/{component-HighWayFreeze-DTZgUHLb.mjs → component-HighWayFreeze-C_Y5P0wN.mjs} +1007 -1006
- package/dist/chunks/{component-HighwayLiveAlarm-DH_Radnp.mjs → component-HighwayLiveAlarm-DMdnrD3c.mjs} +66 -65
- package/dist/chunks/{component-HighwayLiveAlarmNew-BRmrckoI.mjs → component-HighwayLiveAlarmNew--cnSiMgV.mjs} +258 -257
- package/dist/chunks/{component-HighwayStations-BADne1O5.mjs → component-HighwayStations-CNs3P4Vw.mjs} +10 -9
- package/dist/chunks/{component-HighwayWeatherForecast-D3pduycn.mjs → component-HighwayWeatherForecast-Dn6tjaR-.mjs} +33 -32
- package/dist/chunks/{component-ImageGeneration-BWVqHs7l.mjs → component-ImageGeneration-BY0gFwcr.mjs} +4548 -4504
- package/dist/chunks/{component-LithiumBatteryMiningArea-QPD9ERqx.mjs → component-LithiumBatteryMiningArea-Dj1DMKuU.mjs} +16 -15
- package/dist/chunks/component-MapPopup-B2Jmyc6L.mjs +46 -0
- package/dist/chunks/component-RadarChart-CGAMxnMk.mjs +121 -0
- package/dist/chunks/{component-RadarShortTerm-DvYtb48r.mjs → component-RadarShortTerm-Bp09mb4q.mjs} +26 -25
- package/dist/chunks/component-RadarTime-aohD_Dpx.mjs +500 -0
- package/dist/chunks/{component-ServiceMaterialsBtn-IIYNTWxy.mjs → component-ServiceMaterialsBtn-7b7nWW__.mjs} +106 -105
- package/dist/chunks/{component-TimeBasedForecast-9At0jrIg.mjs → component-TimeBasedForecast-By7vsTR3.mjs} +25 -25
- package/dist/chunks/component-WarningSignal-DDOj8BOp.mjs +322 -0
- package/dist/chunks/component-WeatherForecast-B-KJ3IU3.mjs +231 -0
- package/dist/chunks/{component-YCHome-BGMzJhDv.mjs → component-YCHome-CUbCw7zJ.mjs} +143 -142
- package/dist/chunks/{component-YCLogin-CFe09txe.mjs → component-YCLogin-iSv0b64g.mjs} +4 -4
- package/dist/chunks/{component-YCLoginNew-BDpy2huY.mjs → component-YCLoginNew-BFc61ag4.mjs} +9 -9
- package/dist/nxd-plugin.mjs +23 -18
- package/dist/src/components/AqiMonitor/AqiMonitor.vue.d.ts +54 -0
- package/dist/src/components/MapPopup/MapPopup.vue.d.ts +60 -0
- package/dist/src/components/RadarChart/RadarChart.vue.d.ts +54 -0
- package/dist/src/components/RadarTime/RadarTime.vue.d.ts +158 -0
- package/dist/src/components/WarningSignal/WarningSignal.vue.d.ts +60 -0
- package/dist/src/index.d.ts +6 -1
- package/dist/styles/component-AqiMonitor.css +1 -0
- package/dist/styles/component-MapPopup.css +1 -0
- package/dist/styles/component-RadarChart.css +1 -0
- package/dist/styles/component-RadarTime.css +1 -0
- package/dist/styles/component-WarningSignal.css +1 -0
- package/dist/styles/component-WeatherForecast.css +1 -1
- package/dist/styles/component-YCLogin.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/component-HighWayEarlyWarningRed-B24zorkZ.mjs +0 -8807
- package/dist/chunks/component-WeatherForecast-DFqXrhZl.mjs +0 -146
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
2
|
-
import { i as e, o as t, r as n } from "./component-HighWayEarlyWarningRed-B24zorkZ.mjs";
|
|
3
|
-
import { A as r, C as i, D as a, E as o, M as s, N as ee, O as c, P as l, S as u, T as d, _ as f, a as p, b as te, c as ne, d as re, f as ie, g as m, h, i as g, j as _, k as v, l as y, m as b, n as x, o as S, p as C, r as w, s as T, u as E, v as D, w as O, x as k, y as A } from "./component-HighwayWeatherForecast-D3pduycn.mjs";
|
|
4
|
-
import { n as j } from "./component-LithiumBatteryMiningArea-QPD9ERqx.mjs";
|
|
5
|
-
import { Fragment as M, createElementBlock as N, createElementVNode as P, defineComponent as F, getCurrentInstance as I, onMounted as L, openBlock as R, ref as z, renderList as B, toDisplayString as V, withDirectives as H } from "vue";
|
|
6
|
-
//#region src/components/WeatherForecast/WeatherForecast.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var U = {
|
|
8
|
-
class: "WeatherForecast",
|
|
9
|
-
"element-loading-background": "rgba(0, 0, 0, 0.4)"
|
|
10
|
-
}, W = { class: "WeatherForecast__head" }, G = { class: "WeatherForecast__head-top" }, K = { class: "WeatherForecast__body" }, q = { class: "WeatherForecast__wrap" }, J = ["src", "alt"], Y = /* @__PURE__ */ n(/* @__PURE__ */ F({
|
|
11
|
-
__name: "WeatherForecast",
|
|
12
|
-
props: {
|
|
13
|
-
appKey: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: ""
|
|
16
|
-
},
|
|
17
|
-
appSalt: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: ""
|
|
20
|
-
},
|
|
21
|
-
baseHttp: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: ""
|
|
24
|
-
},
|
|
25
|
-
ids: {
|
|
26
|
-
type: Object,
|
|
27
|
-
default: () => ({})
|
|
28
|
-
},
|
|
29
|
-
title: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: "天气预报"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
emits: ["close"],
|
|
35
|
-
setup(n, { emit: F }) {
|
|
36
|
-
let Y = I()?.appContext.config.globalProperties.$bus, X = n, ae = F, Z = z(!1), Q = z([]), $ = z({});
|
|
37
|
-
L(() => {
|
|
38
|
-
Y?.on("toComponent", (e) => {
|
|
39
|
-
e.componentName === "WeatherForecast" && ($.value = e.data, oe());
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
let oe = async () => {
|
|
43
|
-
await ce();
|
|
44
|
-
}, se = () => {
|
|
45
|
-
ae("close", "WeatherForecast");
|
|
46
|
-
}, ce = async () => {
|
|
47
|
-
Z.value = !0;
|
|
48
|
-
let t = {
|
|
49
|
-
lon: $.value.longitude,
|
|
50
|
-
lat: $.value.latitude,
|
|
51
|
-
hours: 168
|
|
52
|
-
}, n = await e({
|
|
53
|
-
appKey: X.appKey,
|
|
54
|
-
appSalt: X.appSalt,
|
|
55
|
-
id: X.ids.data.id,
|
|
56
|
-
variables: { str: j.encode(JSON.stringify(t)) },
|
|
57
|
-
baseHttp: X.baseHttp,
|
|
58
|
-
reqType: X.ids.data.reqType,
|
|
59
|
-
isFormData: X.ids.data.isFormData
|
|
60
|
-
});
|
|
61
|
-
Z.value = !1;
|
|
62
|
-
let M = JSON.parse(n.data.result.output).ds, N = [
|
|
63
|
-
"日",
|
|
64
|
-
"一",
|
|
65
|
-
"二",
|
|
66
|
-
"三",
|
|
67
|
-
"四",
|
|
68
|
-
"五",
|
|
69
|
-
"六"
|
|
70
|
-
];
|
|
71
|
-
Q.value = M.map((e, t) => {
|
|
72
|
-
let n = new Date(e.observation_time.replace(/\//g, "-"));
|
|
73
|
-
n.setDate(n.getDate() + t);
|
|
74
|
-
let j = `${n.getMonth() + 1}`.padStart(2, "0"), M = `${n.getDate()}`.padStart(2, "0");
|
|
75
|
-
return {
|
|
76
|
-
...e,
|
|
77
|
-
_date: `${j}-${M}`,
|
|
78
|
-
_week: `周${N[n.getDay()]}`,
|
|
79
|
-
_icon: new URL((/* @__PURE__ */ Object.assign({
|
|
80
|
-
"../../assets/img/weatherIcon/0.gif": l,
|
|
81
|
-
"../../assets/img/weatherIcon/1.gif": ee,
|
|
82
|
-
"../../assets/img/weatherIcon/10.gif": s,
|
|
83
|
-
"../../assets/img/weatherIcon/11.gif": _,
|
|
84
|
-
"../../assets/img/weatherIcon/12.gif": r,
|
|
85
|
-
"../../assets/img/weatherIcon/13.gif": v,
|
|
86
|
-
"../../assets/img/weatherIcon/14.gif": c,
|
|
87
|
-
"../../assets/img/weatherIcon/15.gif": a,
|
|
88
|
-
"../../assets/img/weatherIcon/16.gif": o,
|
|
89
|
-
"../../assets/img/weatherIcon/17.gif": d,
|
|
90
|
-
"../../assets/img/weatherIcon/18.gif": O,
|
|
91
|
-
"../../assets/img/weatherIcon/19.gif": i,
|
|
92
|
-
"../../assets/img/weatherIcon/2.gif": u,
|
|
93
|
-
"../../assets/img/weatherIcon/20.gif": k,
|
|
94
|
-
"../../assets/img/weatherIcon/21.gif": te,
|
|
95
|
-
"../../assets/img/weatherIcon/22.gif": A,
|
|
96
|
-
"../../assets/img/weatherIcon/23.gif": D,
|
|
97
|
-
"../../assets/img/weatherIcon/24.gif": f,
|
|
98
|
-
"../../assets/img/weatherIcon/25.gif": m,
|
|
99
|
-
"../../assets/img/weatherIcon/26.gif": h,
|
|
100
|
-
"../../assets/img/weatherIcon/27.gif": b,
|
|
101
|
-
"../../assets/img/weatherIcon/28.gif": C,
|
|
102
|
-
"../../assets/img/weatherIcon/29.gif": ie,
|
|
103
|
-
"../../assets/img/weatherIcon/3.gif": re,
|
|
104
|
-
"../../assets/img/weatherIcon/30.gif": E,
|
|
105
|
-
"../../assets/img/weatherIcon/31.gif": y,
|
|
106
|
-
"../../assets/img/weatherIcon/4.gif": ne,
|
|
107
|
-
"../../assets/img/weatherIcon/5.gif": T,
|
|
108
|
-
"../../assets/img/weatherIcon/53.gif": S,
|
|
109
|
-
"../../assets/img/weatherIcon/6.gif": p,
|
|
110
|
-
"../../assets/img/weatherIcon/7.gif": g,
|
|
111
|
-
"../../assets/img/weatherIcon/8.gif": w,
|
|
112
|
-
"../../assets/img/weatherIcon/9.gif": x
|
|
113
|
-
}))[`../../assets/img/weatherIcon/${e.weatherPhenomenon}.gif`], import.meta.url).href
|
|
114
|
-
};
|
|
115
|
-
});
|
|
116
|
-
};
|
|
117
|
-
return (e, r) => {
|
|
118
|
-
let i = t;
|
|
119
|
-
return H((R(), N("div", U, [P("div", W, [P("div", G, [P("div", null, V(n.title), 1), P("div", {
|
|
120
|
-
class: "closeBtn",
|
|
121
|
-
onClick: se,
|
|
122
|
-
title: "关闭"
|
|
123
|
-
})]), r[0] ||= P("img", {
|
|
124
|
-
class: "WeatherForecast__head-line",
|
|
125
|
-
src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbsAAAASBAMAAAAwI22/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAwUExURQAAAAem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/5bu5GYAAAAPdFJOUwAFwAwc2M8ULQYDn/hGXGnV2UoAAAGZSURBVEjH7ZM/S8NAGId/JYGmmeLspptThurk0CHWRXGo0Nk/S50y6CYSHMRF7Efo4uQXEIpbwUnM6OhnEIeChXjv5ZLLXdLtLCX68vDCe0eGJ7/3AJN1VcL+UImB/SruVJwYTqSAW5V3LLyaPR1c+IIdH12OPZiLcyTAjccZEdccZ0Nn4bXpC3KpCuFu5tkdziX3FJxBSBZZdFk9HempCduMk4xSitJTpOgJSSIPrx10YAUB0tYOwrQ1g12k7ZyODIYXZmQpppLV26rtbDFOXVhua2Fn7WTWwUEyAe5Zc2hiLWTTC3jjk8Hw+jrSM9/Z8raKOAtZVmyr9jbpee4lU9hvSUStw6YvOpqwiXlK9d8IL0Oq5tuqvc3KLMs7q9uyCC0y22aKvDVp4u2SjnJ1c+Wecg7h9gV4CFV8NHpEaw7yF2wVGcIa6OBx/Ax3PI6pRWx6Am98alBbpSODNVTxgAbQUpF3KeVv0s80xMUow8N//YVaqWEV9BJDdby2PBUZ1/te0uU0YzeLa623jjrrvaLOep/+str9ACyAtv25BhHcAAAAAElFTkSuQmCC",
|
|
126
|
-
alt: ""
|
|
127
|
-
}, null, -1)]), P("div", K, [P("div", q, [(R(!0), N(M, null, B(Q.value, (e) => (R(), N("div", {
|
|
128
|
-
class: "WeatherForecast__item",
|
|
129
|
-
key: `${e.observation_time}-${e.hour}`
|
|
130
|
-
}, [
|
|
131
|
-
P("div", null, V(e._date), 1),
|
|
132
|
-
P("div", null, V(e._week), 1),
|
|
133
|
-
P("img", {
|
|
134
|
-
src: e._icon,
|
|
135
|
-
alt: e.weather
|
|
136
|
-
}, null, 8, J),
|
|
137
|
-
P("div", null, V(e.weather), 1),
|
|
138
|
-
P("div", null, V(e.temp_low) + "~" + V(e.temp_high) + "℃", 1),
|
|
139
|
-
P("div", null, V(e.wind_directinfo), 1),
|
|
140
|
-
P("div", null, V(e.wind_speedinfo === null || Number(e.wind_speedinfo) < 3 ? "<3级" : `${e.wind_speedinfo}级`), 1)
|
|
141
|
-
]))), 128))])])])), [[i, Z.value]]);
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
}), [["__scopeId", "data-v-b15eb1d5"]]);
|
|
145
|
-
//#endregion
|
|
146
|
-
export { Y as t };
|