nxd-plugin 1.7.43 → 1.7.46

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.
Files changed (42) hide show
  1. package/dist/chunks/{component-AqiMonitor-TeQstcwX.mjs → component-AqiMonitor-n1rMcUkd.mjs} +322 -1911
  2. package/dist/chunks/{component-HighWayEarlyWarningRed-DUSkc5Gq.mjs → component-HighWayEarlyWarningRed-BnJyShce.mjs} +18 -16
  3. package/dist/chunks/component-HighWayFreeze-BOV33QgS.mjs +183 -0
  4. package/dist/chunks/{component-HighwayLiveAlarm-niFJdKW9.mjs → component-HighwayLiveAlarm-D_lIKhkC.mjs} +10150 -10668
  5. package/dist/chunks/{component-HighwayLiveAlarmNew-B-434mfg.mjs → component-HighwayLiveAlarmNew-BfK7FOLK.mjs} +253 -652
  6. package/dist/chunks/component-HighwayStations-Cmjb6MHu.mjs +218 -0
  7. package/dist/chunks/{component-HighwayWeatherForecast-81Gh4M5v.mjs → component-HighwayWeatherForecast-ByPDymqX.mjs} +159 -158
  8. package/dist/chunks/{component-ImageGeneration-DiYbqjwN.mjs → component-ImageGeneration-SPM2CN6K.mjs} +5071 -7620
  9. package/dist/chunks/{component-LithiumBatteryMiningArea-BD-Yp6C8.mjs → component-LithiumBatteryMiningArea-C1KfrHaF.mjs} +51 -48
  10. package/dist/chunks/{component-MapPopup-FAIPuiTd.mjs → component-MapPopup-B2f0tnVu.mjs} +1 -1
  11. package/dist/chunks/{component-PieLegend-DMyswbHi.mjs → component-PieLegend-w1YvpVaB.mjs} +1 -1
  12. package/dist/chunks/{component-RadarChart-BQiq16nx.mjs → component-RadarChart-Dnjp4cbb.mjs} +11 -11
  13. package/dist/chunks/{component-RadarLegend-CFR9njq7.mjs → component-RadarLegend-Coihcxje.mjs} +1 -1
  14. package/dist/chunks/{component-RadarShortTerm-BVj7Jx05.mjs → component-RadarShortTerm-BlI00kHC.mjs} +75 -75
  15. package/dist/chunks/{component-RadarTime-Xnv8piO_.mjs → component-RadarTime-BnWNJDq1.mjs} +14 -14
  16. package/dist/chunks/{component-ServiceMaterial-NQJP1tCA.mjs → component-ServiceMaterial-trvjXwHN.mjs} +1 -1
  17. package/dist/chunks/{component-ServiceMaterialsBtn-959d5IJI.mjs → component-ServiceMaterialsBtn-C1ud7xtc.mjs} +34 -556
  18. package/dist/chunks/{component-TimeBasedForecast-BZ9YrmMt.mjs → component-TimeBasedForecast-DR7FkXAn.mjs} +69 -68
  19. package/dist/chunks/{component-WarningLine-DzD4jX2_.mjs → component-WarningLine-CWqiXdhZ.mjs} +2 -2
  20. package/dist/chunks/{component-WarningSignal-DfRZj6R5.mjs → component-WarningSignal-CtyCcjNo.mjs} +75 -74
  21. package/dist/chunks/component-WeatherForecast-DTGpJVhm.mjs +209 -0
  22. package/dist/chunks/component-YCHome-DeLwwN9F.mjs +426 -0
  23. package/dist/chunks/{component-YCLogin-D0BOD7Uj.mjs → component-YCLogin-DtjB2mai.mjs} +12 -9
  24. package/dist/chunks/{component-YCLoginNew-BIC_obt4.mjs → component-YCLoginNew-DDPai-9U.mjs} +35 -32
  25. package/dist/nxd-plugin.mjs +26 -26
  26. package/dist/styles/component-HighWayEarlyWarningRed.css +1 -1
  27. package/dist/styles/component-HighWayFreeze.css +1 -1
  28. package/dist/styles/component-HighwayLiveAlarm.css +1 -1
  29. package/dist/styles/component-HighwayLiveAlarmNew.css +1 -1
  30. package/dist/styles/component-HighwayStations.css +1 -1
  31. package/dist/styles/component-ImageGeneration.css +1 -1
  32. package/dist/styles/component-RadarShortTerm.css +1 -1
  33. package/dist/styles/component-ServiceMaterialsBtn.css +1 -1
  34. package/dist/styles/component-YCHome.css +1 -1
  35. package/dist/styles/component-YCLogin.css +1 -1
  36. package/dist/styles/component-YCLoginNew.css +1 -1
  37. package/package.json +1 -1
  38. package/dist/chunks/component-HighWayFreeze-BmXHovFq.mjs +0 -4489
  39. package/dist/chunks/component-HighwayStations-Ds0mS1Tc.mjs +0 -32157
  40. package/dist/chunks/component-WeatherForecast-ChQEdik7.mjs +0 -209
  41. package/dist/chunks/component-YCHome-CY61OonH.mjs +0 -1430
  42. package/dist/components/HighwayStations/default.json.d.ts +0 -31945
@@ -0,0 +1,209 @@
1
+ import { n as e, r as t } from "./component-AqiMonitor-n1rMcUkd.mjs";
2
+ import { A as n, C as r, D as i, E as a, M as o, N as s, O as ee, P as c, S as l, T as u, _ as d, a as f, b as te, c as ne, d as re, f as ie, g as ae, h as p, i as m, j as h, k as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, u as w, v as T, w as E, x as D, y as O } from "./component-HighwayWeatherForecast-ByPDymqX.mjs";
3
+ import { n as k } from "./component-LithiumBatteryMiningArea-C1KfrHaF.mjs";
4
+ import { ElLoadingDirective as A } from "element-plus/es";
5
+ import { Fragment as j, createElementBlock as M, createElementVNode as N, defineComponent as P, getCurrentInstance as F, onMounted as I, openBlock as L, ref as R, renderList as z, toDisplayString as B, withDirectives as V } from "vue";
6
+ //#region src/components/WeatherForecast/WeatherForecast.vue?vue&type=script&setup=true&lang.ts
7
+ var H = {
8
+ class: "WeatherForecast",
9
+ "element-loading-background": "rgba(0, 0, 0, 0.4)"
10
+ }, U = { class: "WeatherForecast__head" }, W = { class: "WeatherForecast__head-top" }, G = { class: "WeatherForecast__body" }, K = { class: "WeatherForecast__wrap" }, q = ["src", "alt"], J = /* @__PURE__ */ e(/* @__PURE__ */ P({
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(e, { emit: P }) {
36
+ let J = F()?.appContext.config.globalProperties.$bus, Y = e, oe = P, X = R(!1), Z = R([]), Q = R({});
37
+ R([
38
+ {
39
+ name: "阿克苏市",
40
+ value: "aksu",
41
+ longitude: "80.2651",
42
+ latitude: "41.1707"
43
+ },
44
+ {
45
+ name: "库车市",
46
+ value: "kuche",
47
+ longitude: "82.9989",
48
+ latitude: "41.7160"
49
+ },
50
+ {
51
+ name: "拜城县",
52
+ value: "baicheng",
53
+ longitude: "81.8670",
54
+ latitude: "41.7860"
55
+ },
56
+ {
57
+ name: "新和县",
58
+ value: "xinhe",
59
+ longitude: "82.6100",
60
+ latitude: "41.5490"
61
+ },
62
+ {
63
+ name: "沙雅县",
64
+ value: "shaya",
65
+ longitude: "82.7800",
66
+ latitude: "41.2200"
67
+ },
68
+ {
69
+ name: "温宿县",
70
+ value: "wensu",
71
+ longitude: "80.3000",
72
+ latitude: "41.1600"
73
+ },
74
+ {
75
+ name: "乌什县",
76
+ value: "wushi",
77
+ longitude: "79.2300",
78
+ latitude: "41.2100"
79
+ },
80
+ {
81
+ name: "柯坪县",
82
+ value: "keping",
83
+ longitude: "79.0200",
84
+ latitude: "40.5000"
85
+ }
86
+ ]), R(null);
87
+ let $ = R(!1);
88
+ I(() => {
89
+ J?.on("toComponent", (e) => {
90
+ e.componentName === "WeatherForecast" && (Q.value = e.data, se());
91
+ });
92
+ }), document.addEventListener("click", (e) => {
93
+ e.target.closest(".WeatherForecast__area-select") || ($.value = !1);
94
+ });
95
+ let se = async () => {
96
+ await le();
97
+ }, ce = () => {
98
+ oe("close", "WeatherForecast");
99
+ }, le = async () => {
100
+ X.value = !0;
101
+ let e = {
102
+ lon: Q.value.longitude,
103
+ lat: Q.value.latitude,
104
+ hours: 168
105
+ }, A = await t({
106
+ appKey: Y.appKey,
107
+ appSalt: Y.appSalt,
108
+ id: Y.ids.data.id,
109
+ variables: { str: k.encode(JSON.stringify(e)) },
110
+ baseHttp: Y.baseHttp,
111
+ reqType: Y.ids.data.reqType,
112
+ isFormData: Y.ids.data.isFormData
113
+ });
114
+ X.value = !1;
115
+ let j = A.data?.result?.output;
116
+ if (!j) {
117
+ console.warn("天气预报接口返回为空", A), Z.value = [];
118
+ return;
119
+ }
120
+ let M = (typeof j == "string" ? JSON.parse(j) : j).ds;
121
+ if (!Array.isArray(M) || M.length === 0) {
122
+ Z.value = [];
123
+ return;
124
+ }
125
+ let N = [
126
+ "日",
127
+ "一",
128
+ "二",
129
+ "三",
130
+ "四",
131
+ "五",
132
+ "六"
133
+ ];
134
+ Z.value = M.map((e, t) => {
135
+ let k = new Date(e.observation_time.replace(/\//g, "-"));
136
+ k.setDate(k.getDate() + t);
137
+ let A = `${k.getMonth() + 1}`.padStart(2, "0"), j = `${k.getDate()}`.padStart(2, "0");
138
+ return {
139
+ ...e,
140
+ _date: `${A}-${j}`,
141
+ _week: `周${N[k.getDay()]}`,
142
+ _icon: new URL((/* @__PURE__ */ Object.assign({
143
+ "../../assets/img/weatherIcon/0.gif": c,
144
+ "../../assets/img/weatherIcon/1.gif": s,
145
+ "../../assets/img/weatherIcon/10.gif": o,
146
+ "../../assets/img/weatherIcon/11.gif": h,
147
+ "../../assets/img/weatherIcon/12.gif": n,
148
+ "../../assets/img/weatherIcon/13.gif": g,
149
+ "../../assets/img/weatherIcon/14.gif": ee,
150
+ "../../assets/img/weatherIcon/15.gif": i,
151
+ "../../assets/img/weatherIcon/16.gif": a,
152
+ "../../assets/img/weatherIcon/17.gif": u,
153
+ "../../assets/img/weatherIcon/18.gif": E,
154
+ "../../assets/img/weatherIcon/19.gif": r,
155
+ "../../assets/img/weatherIcon/2.gif": l,
156
+ "../../assets/img/weatherIcon/20.gif": D,
157
+ "../../assets/img/weatherIcon/21.gif": te,
158
+ "../../assets/img/weatherIcon/22.gif": O,
159
+ "../../assets/img/weatherIcon/23.gif": T,
160
+ "../../assets/img/weatherIcon/24.gif": d,
161
+ "../../assets/img/weatherIcon/25.gif": ae,
162
+ "../../assets/img/weatherIcon/26.gif": p,
163
+ "../../assets/img/weatherIcon/27.gif": v,
164
+ "../../assets/img/weatherIcon/28.gif": x,
165
+ "../../assets/img/weatherIcon/29.gif": ie,
166
+ "../../assets/img/weatherIcon/3.gif": re,
167
+ "../../assets/img/weatherIcon/30.gif": w,
168
+ "../../assets/img/weatherIcon/31.gif": _,
169
+ "../../assets/img/weatherIcon/4.gif": ne,
170
+ "../../assets/img/weatherIcon/5.gif": C,
171
+ "../../assets/img/weatherIcon/53.gif": b,
172
+ "../../assets/img/weatherIcon/6.gif": f,
173
+ "../../assets/img/weatherIcon/7.gif": m,
174
+ "../../assets/img/weatherIcon/8.gif": S,
175
+ "../../assets/img/weatherIcon/9.gif": y
176
+ }))[`../../assets/img/weatherIcon/${e.weatherPhenomenon}.gif`], import.meta.url).href
177
+ };
178
+ });
179
+ };
180
+ return (t, n) => {
181
+ let r = A;
182
+ return V((L(), M("div", H, [N("div", U, [N("div", W, [N("div", null, B(e.title), 1), N("div", {
183
+ class: "closeBtn",
184
+ onClick: ce,
185
+ title: "关闭"
186
+ })]), n[0] ||= N("img", {
187
+ class: "WeatherForecast__head-line",
188
+ 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",
189
+ alt: ""
190
+ }, null, -1)]), N("div", G, [N("div", K, [(L(!0), M(j, null, z(Z.value, (e) => (L(), M("div", {
191
+ class: "WeatherForecast__item",
192
+ key: `${e.observation_time}-${e.hour}`
193
+ }, [
194
+ N("div", null, B(e._date), 1),
195
+ N("div", null, B(e._week), 1),
196
+ N("img", {
197
+ src: e._icon,
198
+ alt: e.weather
199
+ }, null, 8, q),
200
+ N("div", null, B(e.weather), 1),
201
+ N("div", null, B(e.temp_low) + "~" + B(e.temp_high) + "℃", 1),
202
+ N("div", null, B(e.wind_directinfo), 1),
203
+ N("div", null, B(e.wind_speedinfo === null || Number(e.wind_speedinfo) < 3 ? "<3级" : `${e.wind_speedinfo}级`), 1)
204
+ ]))), 128))])])])), [[r, X.value]]);
205
+ };
206
+ }
207
+ }), [["__scopeId", "data-v-a730bcd5"]]);
208
+ //#endregion
209
+ export { J as t };