dlzn-ui 2.0.6 → 2.0.8
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/assets/$loading-D_Zs2VgL.css +1 -0
- package/assets/LoginBg-XqWOv7dJ.css +1 -0
- package/assets/main-CxSb5Gqw.css +2 -0
- package/assets/{button-Bwn73ZEc.css → provider-1BcdscQq.css} +1 -1
- package/chunks/$loading-Df3COGfW.mjs +241 -0
- package/chunks/{AssignUser-DCju22tm.mjs → AssignUser-Dj8rq5gH.mjs} +3 -3
- package/chunks/{Common-DQbblaTl.mjs → Common-CnrITpXz.mjs} +7 -7
- package/chunks/{Day-9BKmHuZl.mjs → Day-tjS-0iDA.mjs} +13 -13
- package/chunks/{DictTypeDetail-e14bGyiZ.mjs → DictTypeDetail-CcohOVfN.mjs} +7 -7
- package/chunks/FileSaver.min-BAG7TK0U.mjs +70 -0
- package/chunks/{Hour-CrFFADzT.mjs → Hour-B9fx59cM.mjs} +1 -1
- package/chunks/{Index-Bu5a_B5n.mjs → Index-B-_PVf5U.mjs} +1 -1
- package/chunks/{Index-QUCWrT4d.mjs → Index-BTEVAXbg.mjs} +2 -2
- package/chunks/{Index-bEWcnIHJ.mjs → Index-BxfxoY-l.mjs} +1 -1
- package/chunks/{Index-Bi44jQm2.mjs → Index-CrxoIuR-.mjs} +1 -1
- package/chunks/{Index-ChH8kYUs.mjs → Index-D-gi1OVy.mjs} +2 -2
- package/chunks/{Index-DloA1g7z.mjs → Index-DlrNiiDp.mjs} +5 -5
- package/chunks/{Index-De48YIRG.mjs → Index-baebFewJ.mjs} +1 -1
- package/chunks/{Index-CZ0ICyCx.mjs → Index-z9vUMzmS.mjs} +2 -2
- package/chunks/{IndexItem-OIGXdAkP.mjs → IndexItem-rt5wZA39.mjs} +7 -7
- package/chunks/{Log-DdemNjDW.mjs → Log-DK5aduPG.mjs} +8 -8
- package/chunks/{LoginBg-BD6ChYvu.mjs → LoginBg-BtuSDFUq.mjs} +10 -18
- package/chunks/{MenuNode-ByutDAqI.mjs → MenuNode-B0M4WpOn.mjs} +1 -1
- package/chunks/{MenuNode-DXgE629W.mjs → MenuNode-DEBSfNz9.mjs} +3 -3
- package/chunks/{Minute-xZNOCy8Q.mjs → Minute-hPwzkaCM.mjs} +1 -1
- package/chunks/{Month-CvWOcD_9.mjs → Month-Cnjhbs28.mjs} +1 -1
- package/chunks/{Second-BvMnEOms.mjs → Second-DAYKul2s.mjs} +1 -1
- package/chunks/{SelectDept-DmtKBaW0.mjs → SelectDept-CC4ckbbt.mjs} +1 -1
- package/chunks/{SelectMenu-tEpLm6Ij.mjs → SelectMenu-pBim6_Lj.mjs} +1 -1
- package/chunks/{SelectUser-CTvBarod.mjs → SelectUser-D6dBXxlL.mjs} +2 -2
- package/chunks/Triangle-C5ogSVp9.mjs +1140 -0
- package/chunks/{UserInfo-qrNR9tve.mjs → UserInfo-BUlPdKge.mjs} +11 -11
- package/chunks/{Wrapper-LEchQmDn.mjs → Wrapper-C6BtJDSa.mjs} +5 -5
- package/chunks/__vite-browser-external-D1GT_Hx9.mjs +7 -0
- package/chunks/{app-CggLqjRQ.mjs → app-Dk-mybzX.mjs} +5 -5
- package/chunks/auto-animate-FPySn19g.mjs +341 -0
- package/chunks/crypto-js-DWj_rBsG.mjs +3695 -0
- package/chunks/css-Cw_qlmlv.mjs +521 -0
- package/chunks/{custom-page-list-CJWB72dw.mjs → custom-page-list-EQhltX7t.mjs} +4 -4
- package/chunks/{custom-page-table-5f8lI6CQ.mjs → custom-page-table-CYLFzT4F.mjs} +2 -2
- package/chunks/date-picker-C_5NJHjq.mjs +8186 -0
- package/chunks/icon-jnCbW4iu.mjs +1013 -0
- package/chunks/{menu-CjNx3wKR.mjs → menu-DYwAudY3.mjs} +1 -1
- package/chunks/{overview-BEtKbidZ.mjs → overview-D9YB44O0.mjs} +1 -1
- package/chunks/{page-list-C3nqGnnX.mjs → page-list-BnGVTcad.mjs} +36 -36
- package/chunks/{page-query-C6oSW1je.mjs → page-query-QCT-mat_.mjs} +5 -5
- package/chunks/{page-table-3DTiPP9H.mjs → page-table-DMOjg44G.mjs} +9 -9
- package/chunks/{pagination-C6-VAj4W.mjs → pagination-BNAZYVJk.mjs} +1 -1
- package/chunks/{button-Dk3CiB69.mjs → provider-DQIMA4mE.mjs} +840 -809
- package/chunks/rolldown-runtime-D_tDV3RV.mjs +23 -0
- package/chunks/{scrollbar-CI1mysNQ.mjs → scrollbar-B0u39t4J.mjs} +9 -10
- package/chunks/store-C46_JI7q.mjs +112 -0
- package/chunks/{table-Cp9NQHjQ.mjs → table-BFP90EA0.mjs} +11 -11
- package/chunks/{tag-CfeJWJii.mjs → tag-BDpZ8-Fj.mjs} +1 -1
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +6206 -103
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/date-picker/index.mjs +1 -1
- package/components/date-picker/src/date-picker.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/icon/index.mjs +1 -1
- package/components/icon/src/icon.mjs +1 -1
- package/components/image-viewer/src/image-viewer.vue.d.ts +1 -1
- package/components/index.mjs +19 -19
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/OptionLabel/Index.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.d.ts +3 -3
- package/components/page-list/src/page-list.mjs +1 -1
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/page-table/src/page-table.vue.d.ts +1 -1
- package/components/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/provider/index.mjs +1 -1
- package/components/provider/src/Provider.mjs +1 -1
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/scrollbar/index.mjs +1 -1
- package/components/scrollbar/src/scrollbar.mjs +1 -1
- package/components/select/index.mjs +2 -2
- package/components/select/src/select.mjs +1 -1
- package/components/select-sys-user/index.mjs +1 -1
- package/components/select-sys-user/src/Picker.mjs +2 -2
- package/components/select-sys-user/src/select-sys-user.mjs +1 -1
- package/components/table/index.mjs +1 -1
- package/components/table/src/table.mjs +1 -1
- package/components/table/src/table.vue.d.ts +1 -1
- package/components/tag/index.mjs +1 -1
- package/components/tag/src/tag.mjs +1 -1
- package/components/tree/index.mjs +2 -2
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree-select/index.mjs +1 -1
- package/components/tree-select/src/tree-select.mjs +1 -1
- package/components/upload/index.mjs +2 -2
- package/components/upload/src/upload.mjs +1 -1
- package/hooks/useAnimateAuto/index.mjs +6 -6
- package/hooks/useContextMenu/menu/index.mjs +1 -1
- package/hooks/useContextMenu/menu/src/MenuNode.mjs +1 -1
- package/hooks/useContextMenu/menu/src/menu.mjs +1 -1
- package/hooks/useDicOptions/index.mjs +2 -2
- package/hooks/useSysUser/index.mjs +2 -2
- package/index.d.ts +3 -0
- package/layout/Entry.mjs +1 -1
- package/layout/Login.mjs +6 -6
- package/layout/NotFound.mjs +1 -1
- package/layout/modules/Aside.mjs +1 -1
- package/layout/modules/Breadcrumb.mjs +1 -1
- package/layout/modules/Header.mjs +1 -1
- package/layout/modules/LoginBg.mjs +1 -1
- package/layout/modules/MenuNode.mjs +1 -1
- package/layout/profile/Index.mjs +4 -4
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/layout/vueBits/LightRays.mjs +47 -47
- package/layout/vueBits/Plasma.mjs +29 -29
- package/layout/vueBits/Prism.mjs +51 -51
- package/main.d.ts +2 -0
- package/main.mjs +41 -0
- package/package.json +17 -11
- package/plugins/autoImport/$alova/index.mjs +2 -2
- package/plugins/autoImport/$confirm/index.mjs +1 -1
- package/plugins/autoImport/$dialog/index.mjs +1 -1
- package/plugins/autoImport/$drawer/index.mjs +1 -1
- package/plugins/autoImport/$loading/index.mjs +2 -38
- package/plugins/captcha/captcha.mjs +13 -13
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/echarts/index.mjs +705 -25
- package/plugins/initialize/index.mjs +1 -1
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/Wrapper.mjs +1 -1
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
- package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Icon/Index.mjs +1 -1
- package/plugins/tableRenders/cell/ImageViewer/Index.vue.d.ts +1 -1
- package/plugins/tableRenders/cell/OptionLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Tags/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +7 -7
- package/plugins/tableRenders/title/index.mjs +1 -1
- package/router/index.mjs +1 -1
- package/store/index.mjs +2 -7
- package/store/modules/common.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +1 -1
- package/store/modules/user.mjs +2 -2
- package/utils/tool.mjs +16 -15
- package/views/system/dept/index.mjs +10 -10
- package/views/system/dept/utils.mjs +1 -1
- package/views/system/dict/index.mjs +18 -18
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +11 -11
- package/views/system/post/index.mjs +6 -6
- package/views/system/role/index.mjs +42 -42
- package/views/system/role/modules/AssignUser.mjs +1 -1
- package/views/system/role/modules/SelectDept.mjs +1 -1
- package/views/system/role/modules/SelectMenu.mjs +1 -1
- package/views/system/role/modules/SelectUser.mjs +1 -1
- package/views/system/user/index.mjs +49 -49
- package/views/tool/job/index.mjs +31 -31
- package/views/tool/job/modules/Log.mjs +1 -1
- package/assets/LoginBg-BTrRjkK7.css +0 -1
- package/chunks/date-picker-DtbDIFUH.mjs +0 -378
- package/chunks/icon-COjp1yrx.mjs +0 -21
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../chunks/UserInfo-
|
|
1
|
+
import { t as e } from "../../chunks/UserInfo-BUlPdKge.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../../chunks/Triangle-C5ogSVp9.mjs";
|
|
2
|
+
import { computed as i, createElementBlock as a, defineComponent as o, nextTick as s, normalizeClass as c, onMounted as l, onUnmounted as u, openBlock as d, ref as f, useTemplateRef as p, watch as m } from "vue";
|
|
3
3
|
//#region ../../packages/dlzn-ui/layout/vueBits/LightRays.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var h = "\nattribute vec2 position;\nvarying vec2 vUv;\nvoid main() {\n vUv = position * 0.5 + 0.5;\n gl_Position = vec4(position, 0.0, 1.0);\n}", g = "precision highp float;\n\nuniform float iTime;\nuniform vec2 iResolution;\n\nuniform vec2 rayPos;\nuniform vec2 rayDir;\nuniform vec3 raysColor;\nuniform float raysSpeed;\nuniform float lightSpread;\nuniform float rayLength;\nuniform float pulsating;\nuniform float fadeDistance;\nuniform float saturation;\nuniform vec2 mousePos;\nuniform float mouseInfluence;\nuniform float noiseAmount;\nuniform float distortion;\n\nvarying vec2 vUv;\n\nfloat noise(vec2 st) {\n return fract(sin(dot(st.xy, vec2(12.9898,78.233))) * 43758.5453123);\n}\n\nfloat rayStrength(vec2 raySource, vec2 rayRefDirection, vec2 coord,\n float seedA, float seedB, float speed) {\n vec2 sourceToCoord = coord - raySource;\n vec2 dirNorm = normalize(sourceToCoord);\n float cosAngle = dot(dirNorm, rayRefDirection);\n\n float distortedAngle = cosAngle + distortion * sin(iTime * 2.0 + length(sourceToCoord) * 0.01) * 0.2;\n\n float spreadFactor = pow(max(distortedAngle, 0.0), 1.0 / max(lightSpread, 0.001));\n\n float distance = length(sourceToCoord);\n float maxDistance = iResolution.x * rayLength;\n float lengthFalloff = clamp((maxDistance - distance) / maxDistance, 0.0, 1.0);\n\n float fadeFalloff = clamp((iResolution.x * fadeDistance - distance) / (iResolution.x * fadeDistance), 0.5, 1.0);\n float pulse = pulsating > 0.5 ? (0.8 + 0.2 * sin(iTime * speed * 3.0)) : 1.0;\n\n float baseStrength = clamp(\n (0.45 + 0.15 * sin(distortedAngle * seedA + iTime * speed)) +\n (0.3 + 0.2 * cos(-distortedAngle * seedB + iTime * speed)),\n 0.0, 1.0\n );\n\n return baseStrength * lengthFalloff * fadeFalloff * spreadFactor * pulse;\n}\n\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n vec2 coord = vec2(fragCoord.x, iResolution.y - fragCoord.y);\n\n vec2 finalRayDir = rayDir;\n if (mouseInfluence > 0.0) {\n vec2 mouseScreenPos = mousePos * iResolution.xy;\n vec2 mouseDirection = normalize(mouseScreenPos - rayPos);\n finalRayDir = normalize(mix(rayDir, mouseDirection, mouseInfluence));\n }\n\n vec4 rays1 = vec4(1.0) *\n rayStrength(rayPos, finalRayDir, coord, 36.2214, 21.11349,\n 1.5 * raysSpeed);\n vec4 rays2 = vec4(1.0) *\n rayStrength(rayPos, finalRayDir, coord, 22.3991, 18.0234,\n 1.1 * raysSpeed);\n\n fragColor = rays1 * 0.5 + rays2 * 0.4;\n\n if (noiseAmount > 0.0) {\n float n = noise(coord * 0.01 + iTime * 0.1);\n fragColor.rgb *= (1.0 - noiseAmount + noiseAmount * n);\n }\n\n float brightness = 1.0 - (coord.y / iResolution.y);\n fragColor.x *= 0.1 + brightness * 0.8;\n fragColor.y *= 0.3 + brightness * 0.6;\n fragColor.z *= 0.5 + brightness * 0.5;\n\n if (saturation != 1.0) {\n float gray = dot(fragColor.rgb, vec3(0.299, 0.587, 0.114));\n fragColor.rgb = mix(vec3(gray), fragColor.rgb, saturation);\n }\n\n fragColor.rgb *= raysColor;\n}\n\nvoid main() {\n vec4 color;\n mainImage(color, gl_FragCoord.xy);\n gl_FragColor = color;\n}", _ = /* @__PURE__ */
|
|
4
|
+
var h = "\nattribute vec2 position;\nvarying vec2 vUv;\nvoid main() {\n vUv = position * 0.5 + 0.5;\n gl_Position = vec4(position, 0.0, 1.0);\n}", g = "precision highp float;\n\nuniform float iTime;\nuniform vec2 iResolution;\n\nuniform vec2 rayPos;\nuniform vec2 rayDir;\nuniform vec3 raysColor;\nuniform float raysSpeed;\nuniform float lightSpread;\nuniform float rayLength;\nuniform float pulsating;\nuniform float fadeDistance;\nuniform float saturation;\nuniform vec2 mousePos;\nuniform float mouseInfluence;\nuniform float noiseAmount;\nuniform float distortion;\n\nvarying vec2 vUv;\n\nfloat noise(vec2 st) {\n return fract(sin(dot(st.xy, vec2(12.9898,78.233))) * 43758.5453123);\n}\n\nfloat rayStrength(vec2 raySource, vec2 rayRefDirection, vec2 coord,\n float seedA, float seedB, float speed) {\n vec2 sourceToCoord = coord - raySource;\n vec2 dirNorm = normalize(sourceToCoord);\n float cosAngle = dot(dirNorm, rayRefDirection);\n\n float distortedAngle = cosAngle + distortion * sin(iTime * 2.0 + length(sourceToCoord) * 0.01) * 0.2;\n\n float spreadFactor = pow(max(distortedAngle, 0.0), 1.0 / max(lightSpread, 0.001));\n\n float distance = length(sourceToCoord);\n float maxDistance = iResolution.x * rayLength;\n float lengthFalloff = clamp((maxDistance - distance) / maxDistance, 0.0, 1.0);\n\n float fadeFalloff = clamp((iResolution.x * fadeDistance - distance) / (iResolution.x * fadeDistance), 0.5, 1.0);\n float pulse = pulsating > 0.5 ? (0.8 + 0.2 * sin(iTime * speed * 3.0)) : 1.0;\n\n float baseStrength = clamp(\n (0.45 + 0.15 * sin(distortedAngle * seedA + iTime * speed)) +\n (0.3 + 0.2 * cos(-distortedAngle * seedB + iTime * speed)),\n 0.0, 1.0\n );\n\n return baseStrength * lengthFalloff * fadeFalloff * spreadFactor * pulse;\n}\n\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n vec2 coord = vec2(fragCoord.x, iResolution.y - fragCoord.y);\n\n vec2 finalRayDir = rayDir;\n if (mouseInfluence > 0.0) {\n vec2 mouseScreenPos = mousePos * iResolution.xy;\n vec2 mouseDirection = normalize(mouseScreenPos - rayPos);\n finalRayDir = normalize(mix(rayDir, mouseDirection, mouseInfluence));\n }\n\n vec4 rays1 = vec4(1.0) *\n rayStrength(rayPos, finalRayDir, coord, 36.2214, 21.11349,\n 1.5 * raysSpeed);\n vec4 rays2 = vec4(1.0) *\n rayStrength(rayPos, finalRayDir, coord, 22.3991, 18.0234,\n 1.1 * raysSpeed);\n\n fragColor = rays1 * 0.5 + rays2 * 0.4;\n\n if (noiseAmount > 0.0) {\n float n = noise(coord * 0.01 + iTime * 0.1);\n fragColor.rgb *= (1.0 - noiseAmount + noiseAmount * n);\n }\n\n float brightness = 1.0 - (coord.y / iResolution.y);\n fragColor.x *= 0.1 + brightness * 0.8;\n fragColor.y *= 0.3 + brightness * 0.6;\n fragColor.z *= 0.5 + brightness * 0.5;\n\n if (saturation != 1.0) {\n float gray = dot(fragColor.rgb, vec3(0.299, 0.587, 0.114));\n fragColor.rgb = mix(vec3(gray), fragColor.rgb, saturation);\n }\n\n fragColor.rgb *= raysColor;\n}\n\nvoid main() {\n vec4 color;\n mainImage(color, gl_FragCoord.xy);\n gl_FragColor = color;\n}", _ = /* @__PURE__ */ o({
|
|
5
5
|
__name: "LightRays",
|
|
6
6
|
props: {
|
|
7
7
|
className: { default: "" },
|
|
@@ -24,14 +24,14 @@ var h = "\nattribute vec2 position;\nvarying vec2 vUv;\nvoid main() {\n vUv = p
|
|
|
24
24
|
raysSpeed: { default: 1 },
|
|
25
25
|
saturation: { default: 1 }
|
|
26
26
|
},
|
|
27
|
-
setup(
|
|
28
|
-
let _ =
|
|
27
|
+
setup(o) {
|
|
28
|
+
let _ = o, v = p("containerRef"), y = f(null), b = f(null), x = f({
|
|
29
29
|
x: .5,
|
|
30
30
|
y: .5
|
|
31
|
-
}), S =
|
|
31
|
+
}), S = f({
|
|
32
32
|
x: .5,
|
|
33
33
|
y: .5
|
|
34
|
-
}), C =
|
|
34
|
+
}), C = f(null), w = f(null), T = f(null), E = f(!1), D = f(null), O = f(null), k = i(() => N(_.raysColor)), A = i(() => +!!_.pulsating), j = i(() => Math.min(window.devicePixelRatio || 1, 2));
|
|
35
35
|
function M(e, t, n) {
|
|
36
36
|
switch (e) {
|
|
37
37
|
case "bottom-center": return {
|
|
@@ -89,18 +89,18 @@ var h = "\nattribute vec2 position;\nvarying vec2 vUv;\nvoid main() {\n vUv = p
|
|
|
89
89
|
};
|
|
90
90
|
})();
|
|
91
91
|
async function F() {
|
|
92
|
-
if (v.value && (await
|
|
93
|
-
let
|
|
92
|
+
if (v.value && (await s(), v.value)) try {
|
|
93
|
+
let i = new n({
|
|
94
94
|
alpha: !0,
|
|
95
95
|
antialias: !1,
|
|
96
96
|
dpr: j.value,
|
|
97
97
|
powerPreference: "high-performance"
|
|
98
98
|
});
|
|
99
|
-
b.value =
|
|
100
|
-
let
|
|
101
|
-
for (
|
|
102
|
-
v.value.appendChild(
|
|
103
|
-
let
|
|
99
|
+
b.value = i;
|
|
100
|
+
let a = i.gl;
|
|
101
|
+
for (a.canvas.style.width = "100%", a.canvas.style.height = "100%"; v.value.firstChild;) v.value.removeChild(v.value.firstChild);
|
|
102
|
+
v.value.appendChild(a.canvas);
|
|
103
|
+
let o = {
|
|
104
104
|
distortion: { value: _.distortion },
|
|
105
105
|
fadeDistance: { value: _.fadeDistance },
|
|
106
106
|
iResolution: { value: [1, 1] },
|
|
@@ -117,44 +117,44 @@ var h = "\nattribute vec2 position;\nvarying vec2 vUv;\nvoid main() {\n vUv = p
|
|
|
117
117
|
raysSpeed: { value: _.raysSpeed },
|
|
118
118
|
saturation: { value: _.saturation }
|
|
119
119
|
};
|
|
120
|
-
y.value =
|
|
121
|
-
let
|
|
120
|
+
y.value = o;
|
|
121
|
+
let s = new r(a), c = new e(a, {
|
|
122
122
|
fragment: g,
|
|
123
|
-
uniforms:
|
|
123
|
+
uniforms: o,
|
|
124
124
|
vertex: h
|
|
125
|
-
}),
|
|
126
|
-
geometry:
|
|
127
|
-
program:
|
|
125
|
+
}), l = new t(a, {
|
|
126
|
+
geometry: s,
|
|
127
|
+
program: c
|
|
128
128
|
});
|
|
129
|
-
w.value =
|
|
130
|
-
let
|
|
131
|
-
if (!v.value || !
|
|
132
|
-
|
|
133
|
-
let { clientHeight:
|
|
134
|
-
|
|
135
|
-
let
|
|
136
|
-
|
|
137
|
-
let { anchor: s, dir: c } = M(_.raysOrigin,
|
|
138
|
-
|
|
139
|
-
},
|
|
129
|
+
w.value = l;
|
|
130
|
+
let u = () => {
|
|
131
|
+
if (!v.value || !i) return;
|
|
132
|
+
i.dpr = j.value;
|
|
133
|
+
let { clientHeight: e, clientWidth: t } = v.value;
|
|
134
|
+
i.setSize(t, e);
|
|
135
|
+
let n = i.dpr, r = t * n, a = e * n;
|
|
136
|
+
o.iResolution.value = [r, a];
|
|
137
|
+
let { anchor: s, dir: c } = M(_.raysOrigin, r, a);
|
|
138
|
+
o.rayPos.value = s, o.rayDir.value = c;
|
|
139
|
+
}, d = (e) => {
|
|
140
140
|
if (!(!b.value || !y.value || !w.value || !E.value)) {
|
|
141
|
-
if (
|
|
141
|
+
if (o.iTime.value = e * .001, _.followMouse && _.mouseInfluence > 0) {
|
|
142
142
|
let e = .92;
|
|
143
|
-
S.value.x = S.value.x * e + x.value.x * .07999999999999996, S.value.y = S.value.y * e + x.value.y * .07999999999999996,
|
|
143
|
+
S.value.x = S.value.x * e + x.value.x * .07999999999999996, S.value.y = S.value.y * e + x.value.y * .07999999999999996, o.mousePos.value = [S.value.x, S.value.y];
|
|
144
144
|
}
|
|
145
145
|
try {
|
|
146
|
-
|
|
146
|
+
i.render({ scene: l }), C.value = requestAnimationFrame(d);
|
|
147
147
|
} catch (e) {
|
|
148
148
|
console.warn("WebGL rendering error:", e);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
},
|
|
152
|
-
P(
|
|
151
|
+
}, f = () => {
|
|
152
|
+
P(u);
|
|
153
153
|
};
|
|
154
|
-
window.addEventListener("resize",
|
|
155
|
-
if (C.value &&= (cancelAnimationFrame(C.value), null), window.removeEventListener("resize",
|
|
156
|
-
let
|
|
157
|
-
|
|
154
|
+
window.addEventListener("resize", f, { passive: !0 }), u(), C.value = requestAnimationFrame(d), T.value = () => {
|
|
155
|
+
if (C.value &&= (cancelAnimationFrame(C.value), null), window.removeEventListener("resize", f), O.value &&= (clearTimeout(O.value), null), i) try {
|
|
156
|
+
let e = i.gl.canvas, t = i.gl.getExtension("WEBGL_lose_context");
|
|
157
|
+
t && t.loseContext(), e && e.parentNode && e.parentNode.removeChild(e);
|
|
158
158
|
} catch (e) {
|
|
159
159
|
console.warn("Error during WebGL cleanup:", e);
|
|
160
160
|
}
|
|
@@ -175,7 +175,7 @@ var h = "\nattribute vec2 position;\nvarying vec2 vUv;\nvoid main() {\n vUv = p
|
|
|
175
175
|
}, I = null;
|
|
176
176
|
}));
|
|
177
177
|
}
|
|
178
|
-
return
|
|
178
|
+
return l(() => {
|
|
179
179
|
v.value && (D.value = new IntersectionObserver((e) => {
|
|
180
180
|
let t = e[0];
|
|
181
181
|
E.value = t.isIntersecting;
|
|
@@ -183,9 +183,9 @@ var h = "\nattribute vec2 position;\nvarying vec2 vUv;\nvoid main() {\n vUv = p
|
|
|
183
183
|
rootMargin: "50px",
|
|
184
184
|
threshold: .1
|
|
185
185
|
}), D.value.observe(v.value));
|
|
186
|
-
}),
|
|
186
|
+
}), m(E, (e) => {
|
|
187
187
|
e && v.value ? (T.value &&= (T.value(), null), F()) : !e && T.value && (C.value &&= (cancelAnimationFrame(C.value), null));
|
|
188
|
-
}),
|
|
188
|
+
}), m([
|
|
189
189
|
() => _.raysColor,
|
|
190
190
|
() => _.raysSpeed,
|
|
191
191
|
() => _.lightSpread,
|
|
@@ -203,14 +203,14 @@ var h = "\nattribute vec2 position;\nvarying vec2 vUv;\nvoid main() {\n vUv = p
|
|
|
203
203
|
e.raysColor.value = k.value, e.raysSpeed.value = _.raysSpeed, e.lightSpread.value = _.lightSpread, e.rayLength.value = _.rayLength, e.pulsating.value = A.value, e.fadeDistance.value = _.fadeDistance, e.saturation.value = _.saturation, e.mouseInfluence.value = _.mouseInfluence, e.noiseAmount.value = _.noiseAmount, e.distortion.value = _.distortion;
|
|
204
204
|
let { clientHeight: n, clientWidth: r } = v.value, i = t.dpr, { anchor: a, dir: o } = M(_.raysOrigin, r * i, n * i);
|
|
205
205
|
e.rayPos.value = a, e.rayDir.value = o;
|
|
206
|
-
}, { flush: "post" }),
|
|
206
|
+
}, { flush: "post" }), m(() => _.followMouse, (e) => {
|
|
207
207
|
e ? window.addEventListener("mousemove", L, { passive: !0 }) : (window.removeEventListener("mousemove", L), I &&= (cancelAnimationFrame(I), null));
|
|
208
|
-
}, { immediate: !0 }),
|
|
208
|
+
}, { immediate: !0 }), u(() => {
|
|
209
209
|
D.value &&= (D.value.disconnect(), null), T.value &&= (T.value(), null), I &&= (cancelAnimationFrame(I), null), window.removeEventListener("mousemove", L);
|
|
210
|
-
}), (e,
|
|
210
|
+
}), (e, t) => (d(), a("div", {
|
|
211
211
|
ref_key: "containerRef",
|
|
212
212
|
ref: v,
|
|
213
|
-
class:
|
|
213
|
+
class: c(["pointer-events-none relative z-[3] h-full w-full overflow-hidden", [o.className]])
|
|
214
214
|
}, null, 2));
|
|
215
215
|
}
|
|
216
216
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../../chunks/Triangle-C5ogSVp9.mjs";
|
|
2
|
+
import { createElementBlock as i, defineComponent as a, onBeforeUnmount as o, onMounted as s, openBlock as c, ref as l, useTemplateRef as u, watch as d } from "vue";
|
|
3
3
|
//#region ../../packages/dlzn-ui/layout/vueBits/Plasma.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var f = "#version 300 es\nprecision highp float;\nin vec2 position;\nin vec2 uv;\nout vec2 vUv;\nvoid main() {\n vUv = uv;\n gl_Position = vec4(position, 0.0, 1.0);\n}\n", p = "#version 300 es\nprecision highp float;\nuniform vec2 iResolution;\nuniform float iTime;\nuniform vec3 uCustomColor;\nuniform float uUseCustomColor;\nuniform float uSpeed;\nuniform float uDirection;\nuniform float uScale;\nuniform float uOpacity;\nuniform vec2 uMouse;\nuniform float uMouseInteractive;\nout vec4 fragColor;\n\nvoid mainImage(out vec4 o, vec2 C) {\n vec2 center = iResolution.xy * 0.5;\n C = (C - center) / uScale + center;\n \n vec2 mouseOffset = (uMouse - center) * 0.0002;\n C += mouseOffset * length(C - center) * step(0.5, uMouseInteractive);\n \n float i, d, z, T = iTime * uSpeed * uDirection;\n vec3 O, p, S;\n\n for (vec2 r = iResolution.xy, Q; ++i < 60.; O += o.w/d*o.xyz) {\n p = z*normalize(vec3(C-.5*r,r.y)); \n p.z -= 4.; \n S = p;\n d = p.y-T;\n \n p.x += .4*(1.+p.y)*sin(d + p.x*0.1)*cos(.34*d + p.x*0.05); \n Q = p.xz *= mat2(cos(p.y+vec4(0,11,33,0)-T)); \n z+= d = abs(sqrt(length(Q*Q)) - .25*(5.+S.y))/3.+8e-4; \n o = 1.+sin(S.y+p.z*.5+S.z-length(S-p)+vec4(2,1,0,8));\n }\n \n o.xyz = tanh(O/1e4);\n}\n\nbool finite1(float x){ return !(isnan(x) || isinf(x)); }\nvec3 sanitize(vec3 c){\n return vec3(\n finite1(c.r) ? c.r : 0.0,\n finite1(c.g) ? c.g : 0.0,\n finite1(c.b) ? c.b : 0.0\n );\n}\n\nvoid main() {\n vec4 o = vec4(0.0);\n mainImage(o, gl_FragCoord.xy);\n vec3 rgb = sanitize(o.rgb);\n \n float intensity = (rgb.r + rgb.g + rgb.b) / 3.0;\n vec3 customColor = intensity * uCustomColor;\n vec3 finalColor = mix(rgb, customColor, step(0.5, uUseCustomColor));\n \n float alpha = length(rgb) * uOpacity;\n fragColor = vec4(finalColor, alpha);\n}", m = /* @__PURE__ */
|
|
4
|
+
var f = "#version 300 es\nprecision highp float;\nin vec2 position;\nin vec2 uv;\nout vec2 vUv;\nvoid main() {\n vUv = uv;\n gl_Position = vec4(position, 0.0, 1.0);\n}\n", p = "#version 300 es\nprecision highp float;\nuniform vec2 iResolution;\nuniform float iTime;\nuniform vec3 uCustomColor;\nuniform float uUseCustomColor;\nuniform float uSpeed;\nuniform float uDirection;\nuniform float uScale;\nuniform float uOpacity;\nuniform vec2 uMouse;\nuniform float uMouseInteractive;\nout vec4 fragColor;\n\nvoid mainImage(out vec4 o, vec2 C) {\n vec2 center = iResolution.xy * 0.5;\n C = (C - center) / uScale + center;\n \n vec2 mouseOffset = (uMouse - center) * 0.0002;\n C += mouseOffset * length(C - center) * step(0.5, uMouseInteractive);\n \n float i, d, z, T = iTime * uSpeed * uDirection;\n vec3 O, p, S;\n\n for (vec2 r = iResolution.xy, Q; ++i < 60.; O += o.w/d*o.xyz) {\n p = z*normalize(vec3(C-.5*r,r.y)); \n p.z -= 4.; \n S = p;\n d = p.y-T;\n \n p.x += .4*(1.+p.y)*sin(d + p.x*0.1)*cos(.34*d + p.x*0.05); \n Q = p.xz *= mat2(cos(p.y+vec4(0,11,33,0)-T)); \n z+= d = abs(sqrt(length(Q*Q)) - .25*(5.+S.y))/3.+8e-4; \n o = 1.+sin(S.y+p.z*.5+S.z-length(S-p)+vec4(2,1,0,8));\n }\n \n o.xyz = tanh(O/1e4);\n}\n\nbool finite1(float x){ return !(isnan(x) || isinf(x)); }\nvec3 sanitize(vec3 c){\n return vec3(\n finite1(c.r) ? c.r : 0.0,\n finite1(c.g) ? c.g : 0.0,\n finite1(c.b) ? c.b : 0.0\n );\n}\n\nvoid main() {\n vec4 o = vec4(0.0);\n mainImage(o, gl_FragCoord.xy);\n vec3 rgb = sanitize(o.rgb);\n \n float intensity = (rgb.r + rgb.g + rgb.b) / 3.0;\n vec3 customColor = intensity * uCustomColor;\n vec3 finalColor = mix(rgb, customColor, step(0.5, uUseCustomColor));\n \n float alpha = length(rgb) * uOpacity;\n fragColor = vec4(finalColor, alpha);\n}", m = /* @__PURE__ */ a({
|
|
5
5
|
__name: "Plasma",
|
|
6
6
|
props: {
|
|
7
7
|
color: { default: "#9EF2BE" },
|
|
@@ -14,8 +14,8 @@ var f = "#version 300 es\nprecision highp float;\nin vec2 position;\nin vec2 uv;
|
|
|
14
14
|
scale: { default: 1 },
|
|
15
15
|
speed: { default: 1 }
|
|
16
16
|
},
|
|
17
|
-
setup(
|
|
18
|
-
let m =
|
|
17
|
+
setup(a) {
|
|
18
|
+
let m = a;
|
|
19
19
|
function h(e) {
|
|
20
20
|
let t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);
|
|
21
21
|
return t ? [
|
|
@@ -28,78 +28,78 @@ var f = "#version 300 es\nprecision highp float;\nin vec2 position;\nin vec2 uv;
|
|
|
28
28
|
.2
|
|
29
29
|
];
|
|
30
30
|
}
|
|
31
|
-
let g =
|
|
31
|
+
let g = u("containerRef"), _ = l({
|
|
32
32
|
x: 0,
|
|
33
33
|
y: 0
|
|
34
34
|
}), v = null;
|
|
35
35
|
function y() {
|
|
36
36
|
if (!g.value) return;
|
|
37
|
-
let
|
|
37
|
+
let i = +!!m.color, a = m.color ? h(m.color) : [
|
|
38
38
|
1,
|
|
39
39
|
1,
|
|
40
40
|
1
|
|
41
|
-
],
|
|
41
|
+
], o = m.direction === "reverse" ? -1 : 1, s = new n({
|
|
42
42
|
alpha: !0,
|
|
43
43
|
antialias: !1,
|
|
44
44
|
dpr: Math.min(window.devicePixelRatio || 1, 2),
|
|
45
45
|
webgl: 2
|
|
46
|
-
}),
|
|
47
|
-
|
|
48
|
-
let
|
|
46
|
+
}), c = s.gl, l = c.canvas;
|
|
47
|
+
l.style.display = "block", l.style.width = "100%", l.style.height = "100%", g.value.appendChild(l);
|
|
48
|
+
let u = new r(c), d = new e(c, {
|
|
49
49
|
fragment: p,
|
|
50
50
|
uniforms: {
|
|
51
51
|
iResolution: { value: new Float32Array([1, 1]) },
|
|
52
52
|
iTime: { value: 0 },
|
|
53
|
-
uCustomColor: { value: new Float32Array(
|
|
54
|
-
uDirection: { value:
|
|
53
|
+
uCustomColor: { value: new Float32Array(a) },
|
|
54
|
+
uDirection: { value: o },
|
|
55
55
|
uMouse: { value: new Float32Array([0, 0]) },
|
|
56
56
|
uMouseInteractive: { value: +!!m.mouseInteractive },
|
|
57
57
|
uOpacity: { value: m.opacity },
|
|
58
58
|
uScale: { value: m.scale },
|
|
59
59
|
uSpeed: { value: m.speed * .4 },
|
|
60
|
-
uUseCustomColor: { value:
|
|
60
|
+
uUseCustomColor: { value: i }
|
|
61
61
|
},
|
|
62
62
|
vertex: f
|
|
63
|
-
}), y = new c
|
|
64
|
-
geometry:
|
|
65
|
-
program:
|
|
63
|
+
}), y = new t(c, {
|
|
64
|
+
geometry: u,
|
|
65
|
+
program: d
|
|
66
66
|
}), b = (e) => {
|
|
67
67
|
if (!m.mouseInteractive) return;
|
|
68
68
|
let t = g.value.getBoundingClientRect();
|
|
69
69
|
_.value.x = e.clientX - t.left, _.value.y = e.clientY - t.top;
|
|
70
|
-
let n =
|
|
70
|
+
let n = d.uniforms.uMouse.value;
|
|
71
71
|
n[0] = _.value.x, n[1] = _.value.y;
|
|
72
72
|
};
|
|
73
73
|
m.mouseInteractive && g.value.addEventListener("mousemove", b);
|
|
74
74
|
let x = () => {
|
|
75
75
|
let e = g.value.getBoundingClientRect(), t = Math.max(1, Math.floor(e.width)), n = Math.max(1, Math.floor(e.height));
|
|
76
|
-
|
|
77
|
-
let
|
|
78
|
-
|
|
76
|
+
s.setSize(t, n);
|
|
77
|
+
let r = d.uniforms.iResolution.value;
|
|
78
|
+
r[0] = c.drawingBufferWidth, r[1] = c.drawingBufferHeight;
|
|
79
79
|
}, S = new ResizeObserver(x);
|
|
80
80
|
S.observe(g.value), x();
|
|
81
81
|
let C = 0, w = performance.now(), T = (e) => {
|
|
82
82
|
let t = (e - w) * .001;
|
|
83
83
|
if (m.direction === "pingpong") {
|
|
84
|
-
let e = Math.sin(t * .5) *
|
|
85
|
-
|
|
84
|
+
let e = Math.sin(t * .5) * o;
|
|
85
|
+
d.uniforms.uDirection.value = e;
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
d.uniforms.iTime.value = t, s.render({ scene: y }), C = requestAnimationFrame(T);
|
|
88
88
|
};
|
|
89
89
|
C = requestAnimationFrame(T), v = () => {
|
|
90
90
|
cancelAnimationFrame(C), S.disconnect(), m.mouseInteractive && g.value && g.value.removeEventListener("mousemove", b);
|
|
91
91
|
try {
|
|
92
|
-
g.value?.removeChild(
|
|
92
|
+
g.value?.removeChild(l);
|
|
93
93
|
} catch {}
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
return
|
|
96
|
+
return s(() => {
|
|
97
97
|
y();
|
|
98
|
-
}),
|
|
98
|
+
}), o(() => {
|
|
99
99
|
v?.();
|
|
100
|
-
}),
|
|
100
|
+
}), d(m, () => {
|
|
101
101
|
v?.(), y();
|
|
102
|
-
}, { deep: !0 }), (
|
|
102
|
+
}, { deep: !0 }), (e, t) => (c(), i("div", {
|
|
103
103
|
ref_key: "containerRef",
|
|
104
104
|
ref: g,
|
|
105
105
|
class: "relative h-full w-full overflow-hidden"
|
package/layout/vueBits/Prism.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../../chunks/Triangle-C5ogSVp9.mjs";
|
|
2
|
+
import { createElementBlock as i, defineComponent as a, onBeforeUnmount as o, onMounted as s, openBlock as c, useTemplateRef as l, watch as u } from "vue";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region ../../packages/dlzn-ui/layout/vueBits/Prism.vue
|
|
5
|
-
var d = /* @__PURE__ */
|
|
5
|
+
var d = /* @__PURE__ */ a({
|
|
6
6
|
__name: "Prism",
|
|
7
7
|
props: {
|
|
8
8
|
height: { default: 3.5 },
|
|
@@ -30,11 +30,11 @@ var d = /* @__PURE__ */ t({
|
|
|
30
30
|
},
|
|
31
31
|
timeScale: { default: .5 }
|
|
32
32
|
},
|
|
33
|
-
setup(
|
|
34
|
-
let d =
|
|
35
|
-
let
|
|
36
|
-
if (!
|
|
37
|
-
let
|
|
33
|
+
setup(a) {
|
|
34
|
+
let d = a, f = l("containerRef"), p = null, m = () => {
|
|
35
|
+
let i = f.value;
|
|
36
|
+
if (!i) return;
|
|
37
|
+
let a = Math.max(.001, d.height), o = Math.max(.001, d.baseWidth) * .5, s = Math.max(0, d.glow), c = Math.max(0, d.noise), l = d.offset?.x ?? 0, u = d.offset?.y ?? 0, m = d.transparent ? 1.5 : 1, h = Math.max(.001, d.scale), g = d.hueShift || 0, _ = Math.max(0, d.colorFrequency || 1), v = Math.max(0, d.bloom || 1), y = Math.max(0, d.timeScale || 1), b = Math.max(0, d.hoverStrength || 1), x = Math.max(0, Math.min(1, d.inertia || .12)), S = Math.min(2, window.devicePixelRatio || 1), C = new n({
|
|
38
38
|
dpr: S,
|
|
39
39
|
alpha: d.transparent,
|
|
40
40
|
antialias: !1
|
|
@@ -45,15 +45,15 @@ var d = /* @__PURE__ */ t({
|
|
|
45
45
|
width: "100%",
|
|
46
46
|
height: "100%",
|
|
47
47
|
display: "block"
|
|
48
|
-
}),
|
|
49
|
-
let
|
|
48
|
+
}), i.appendChild(w.canvas);
|
|
49
|
+
let ee = new r(w), T = /* @__PURE__ */ new Float32Array(2), E = /* @__PURE__ */ new Float32Array(2), D = new e(w, {
|
|
50
50
|
vertex: "\n attribute vec2 position;\n void main() {\n gl_Position = vec4(position, 0.0, 1.0);\n }\n ",
|
|
51
51
|
fragment: "\n precision highp float;\n\n uniform vec2 iResolution;\n uniform float iTime;\n\n uniform float uHeight;\n uniform float uBaseHalf;\n uniform mat3 uRot;\n uniform int uUseBaseWobble;\n uniform float uGlow;\n uniform vec2 uOffsetPx;\n uniform float uNoise;\n uniform float uSaturation;\n uniform float uScale;\n uniform float uHueShift;\n uniform float uColorFreq;\n uniform float uBloom;\n uniform float uCenterShift;\n uniform float uInvBaseHalf;\n uniform float uInvHeight;\n uniform float uMinAxis;\n uniform float uPxScale;\n uniform float uTimeScale;\n\n vec4 tanh4(vec4 x){\n vec4 e2x = exp(2.0*x);\n return (e2x - 1.0) / (e2x + 1.0);\n }\n\n float rand(vec2 co){\n return fract(sin(dot(co, vec2(12.9898, 78.233))) * 43758.5453123);\n }\n\n float sdOctaAnisoInv(vec3 p){\n vec3 q = vec3(abs(p.x) * uInvBaseHalf, abs(p.y) * uInvHeight, abs(p.z) * uInvBaseHalf);\n float m = q.x + q.y + q.z - 1.0;\n return m * uMinAxis * 0.5773502691896258;\n }\n\n float sdPyramidUpInv(vec3 p){\n float oct = sdOctaAnisoInv(p);\n float halfSpace = -p.y;\n return max(oct, halfSpace);\n }\n\n mat3 hueRotation(float a){\n float c = cos(a), s = sin(a);\n mat3 W = mat3(\n 0.299, 0.587, 0.114,\n 0.299, 0.587, 0.114,\n 0.299, 0.587, 0.114\n );\n mat3 U = mat3(\n 0.701, -0.587, -0.114,\n -0.299, 0.413, -0.114,\n -0.300, -0.588, 0.886\n );\n mat3 V = mat3(\n 0.168, -0.331, 0.500,\n 0.328, 0.035, -0.500,\n -0.497, 0.296, 0.201\n );\n return W + U * c + V * s;\n }\n\n void main(){\n vec2 f = (gl_FragCoord.xy - 0.5 * iResolution.xy - uOffsetPx) * uPxScale;\n\n float z = 5.0;\n float d = 0.0;\n\n vec3 p;\n vec4 o = vec4(0.0);\n\n float centerShift = uCenterShift;\n float cf = uColorFreq;\n\n mat2 wob = mat2(1.0);\n if (uUseBaseWobble == 1) {\n float t = iTime * uTimeScale;\n float c0 = cos(t + 0.0);\n float c1 = cos(t + 33.0);\n float c2 = cos(t + 11.0);\n wob = mat2(c0, c1, c2, c0);\n }\n\n const int STEPS = 100;\n for (int i = 0; i < STEPS; i++) {\n p = vec3(f, z);\n p.xz = p.xz * wob;\n p = uRot * p;\n vec3 q = p;\n q.y += centerShift;\n d = 0.1 + 0.2 * abs(sdPyramidUpInv(q));\n z -= d;\n o += (sin((p.y + z) * cf + vec4(0.0, 1.0, 2.0, 3.0)) + 1.0) / d;\n }\n\n o = tanh4(o * o * (uGlow * uBloom) / 1e5);\n\n vec3 col = o.rgb;\n float n = rand(gl_FragCoord.xy + vec2(iTime));\n col += (n - 0.5) * uNoise;\n col = clamp(col, 0.0, 1.0);\n\n float L = dot(col, vec3(0.2126, 0.7152, 0.0722));\n col = clamp(mix(vec3(L), col, uSaturation), 0.0, 1.0);\n\n if(abs(uHueShift) > 0.0001){\n col = clamp(hueRotation(uHueShift) * col, 0.0, 1.0);\n }\n\n gl_FragColor = vec4(col, o.a);\n }\n ",
|
|
52
52
|
uniforms: {
|
|
53
|
-
iResolution: { value:
|
|
53
|
+
iResolution: { value: T },
|
|
54
54
|
iTime: { value: 0 },
|
|
55
|
-
uHeight: { value:
|
|
56
|
-
uBaseHalf: { value:
|
|
55
|
+
uHeight: { value: a },
|
|
56
|
+
uBaseHalf: { value: o },
|
|
57
57
|
uUseBaseWobble: { value: 1 },
|
|
58
58
|
uRot: { value: new Float32Array([
|
|
59
59
|
1,
|
|
@@ -66,37 +66,37 @@ var d = /* @__PURE__ */ t({
|
|
|
66
66
|
0,
|
|
67
67
|
1
|
|
68
68
|
]) },
|
|
69
|
-
uGlow: { value:
|
|
70
|
-
uOffsetPx: { value:
|
|
71
|
-
uNoise: { value:
|
|
69
|
+
uGlow: { value: s },
|
|
70
|
+
uOffsetPx: { value: E },
|
|
71
|
+
uNoise: { value: c },
|
|
72
72
|
uSaturation: { value: m },
|
|
73
73
|
uScale: { value: h },
|
|
74
74
|
uHueShift: { value: g },
|
|
75
75
|
uColorFreq: { value: _ },
|
|
76
76
|
uBloom: { value: v },
|
|
77
|
-
uCenterShift: { value:
|
|
78
|
-
uInvBaseHalf: { value: 1 /
|
|
79
|
-
uInvHeight: { value: 1 /
|
|
80
|
-
uMinAxis: { value: Math.min(
|
|
77
|
+
uCenterShift: { value: a * .25 },
|
|
78
|
+
uInvBaseHalf: { value: 1 / o },
|
|
79
|
+
uInvHeight: { value: 1 / a },
|
|
80
|
+
uMinAxis: { value: Math.min(o, a) },
|
|
81
81
|
uPxScale: { value: 1 / ((w.drawingBufferHeight || 1) * .1 * h) },
|
|
82
82
|
uTimeScale: { value: y }
|
|
83
83
|
}
|
|
84
|
-
}),
|
|
85
|
-
geometry:
|
|
86
|
-
program:
|
|
84
|
+
}), O = new t(w, {
|
|
85
|
+
geometry: ee,
|
|
86
|
+
program: D
|
|
87
87
|
}), k = () => {
|
|
88
|
-
let
|
|
89
|
-
C.setSize(
|
|
88
|
+
let e = i.clientWidth || 1, t = i.clientHeight || 1;
|
|
89
|
+
C.setSize(e, t), T[0] = w.drawingBufferWidth, T[1] = w.drawingBufferHeight, E[0] = l * S, E[1] = u * S, D.uniforms.uPxScale.value = 1 / ((w.drawingBufferHeight || 1) * .1 * h);
|
|
90
90
|
}, A = new ResizeObserver(k);
|
|
91
|
-
A.observe(
|
|
91
|
+
A.observe(i), k();
|
|
92
92
|
let j = /* @__PURE__ */ new Float32Array(9), M = (e, t, n, r) => {
|
|
93
93
|
let i = Math.cos(e), a = Math.sin(e), o = Math.cos(t), s = Math.sin(t), c = Math.cos(n), l = Math.sin(n), u = i * c + a * s * l, d = -i * l + a * s * c, f = a * o, p = o * l, m = o * c, h = -s, g = -a * c + i * s * l, _ = a * l + i * s * c, v = i * o;
|
|
94
94
|
return r[0] = u, r[1] = p, r[2] = g, r[3] = d, r[4] = m, r[5] = _, r[6] = f, r[7] = h, r[8] = v, r;
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
},
|
|
95
|
+
}, N = c < 1e-6, P = 0, F = performance.now(), I = () => {
|
|
96
|
+
P ||= requestAnimationFrame($);
|
|
97
|
+
}, L = () => {
|
|
98
|
+
P &&= (cancelAnimationFrame(P), 0);
|
|
99
|
+
}, R = () => Math.random(), z = (.3 + R() * .6) * 1, B = (.2 + R() * .7) * 1, V = (.1 + R() * .5) * 1, H = R() * Math.PI * 2, te = R() * Math.PI * 2, U = 0, W = 0, G = 0, K = 0, q = 0, J = (e, t, n) => e + (t - e) * n, Y = {
|
|
100
100
|
x: 0,
|
|
101
101
|
y: 0,
|
|
102
102
|
inside: !0
|
|
@@ -109,44 +109,44 @@ var d = /* @__PURE__ */ t({
|
|
|
109
109
|
Y.inside = !1;
|
|
110
110
|
}, Q = null;
|
|
111
111
|
d.animationType === "hover" ? (Q = (e) => {
|
|
112
|
-
ne(e),
|
|
113
|
-
}, window.addEventListener("pointermove", Q, { passive: !0 }), window.addEventListener("mouseleave", X), window.addEventListener("blur", Z),
|
|
112
|
+
ne(e), I();
|
|
113
|
+
}, window.addEventListener("pointermove", Q, { passive: !0 }), window.addEventListener("mouseleave", X), window.addEventListener("blur", Z), D.uniforms.uUseBaseWobble.value = 0) : d.animationType === "3drotate" ? D.uniforms.uUseBaseWobble.value = 0 : D.uniforms.uUseBaseWobble.value = 1;
|
|
114
114
|
let $ = (e) => {
|
|
115
|
-
let t = (e -
|
|
116
|
-
|
|
115
|
+
let t = (e - F) * .001;
|
|
116
|
+
D.uniforms.iTime.value = t;
|
|
117
117
|
let n = !0;
|
|
118
118
|
if (d.animationType === "hover") {
|
|
119
119
|
let e = .6 * b, t = .6 * b;
|
|
120
120
|
K = (Y.inside ? -Y.x : 0) * t, q = (Y.inside ? Y.y : 0) * e;
|
|
121
121
|
let r = U, i = W, a = G;
|
|
122
|
-
U = J(r, K, x), W = J(i, q, x), G = J(a, 0, .1),
|
|
122
|
+
U = J(r, K, x), W = J(i, q, x), G = J(a, 0, .1), D.uniforms.uRot.value = M(U, W, G, j), N && Math.abs(U - K) < 1e-4 && Math.abs(W - q) < 1e-4 && Math.abs(G) < 1e-4 && (n = !1);
|
|
123
123
|
} else if (d.animationType === "3drotate") {
|
|
124
124
|
let e = t * y;
|
|
125
|
-
U = e *
|
|
126
|
-
} else j[0] = 1, j[1] = 0, j[2] = 0, j[3] = 0, j[4] = 1, j[5] = 0, j[6] = 0, j[7] = 0, j[8] = 1,
|
|
127
|
-
C.render({ scene:
|
|
125
|
+
U = e * B, W = Math.sin(e * z + H) * .6, G = Math.sin(e * V + te) * .5, D.uniforms.uRot.value = M(U, W, G, j), y < 1e-6 && (n = !1);
|
|
126
|
+
} else j[0] = 1, j[1] = 0, j[2] = 0, j[3] = 0, j[4] = 1, j[5] = 0, j[6] = 0, j[7] = 0, j[8] = 1, D.uniforms.uRot.value = j, y < 1e-6 && (n = !1);
|
|
127
|
+
C.render({ scene: O }), P = n ? requestAnimationFrame($) : 0;
|
|
128
128
|
};
|
|
129
129
|
if (d.suspendWhenOffscreen) {
|
|
130
|
-
let
|
|
131
|
-
e.some((e) => e.isIntersecting) ?
|
|
130
|
+
let e = new IntersectionObserver((e) => {
|
|
131
|
+
e.some((e) => e.isIntersecting) ? I() : L();
|
|
132
132
|
});
|
|
133
|
-
|
|
134
|
-
} else
|
|
133
|
+
e.observe(i), I(), i.__prismIO = e;
|
|
134
|
+
} else I();
|
|
135
135
|
p = () => {
|
|
136
|
-
if (
|
|
137
|
-
let
|
|
138
|
-
|
|
136
|
+
if (L(), A.disconnect(), d.animationType === "hover" && (Q && window.removeEventListener("pointermove", Q), window.removeEventListener("mouseleave", X), window.removeEventListener("blur", Z)), d.suspendWhenOffscreen) {
|
|
137
|
+
let e = i.__prismIO;
|
|
138
|
+
e && e.disconnect(), delete i.__prismIO;
|
|
139
139
|
}
|
|
140
|
-
w.canvas.parentElement ===
|
|
140
|
+
w.canvas.parentElement === i && i.removeChild(w.canvas);
|
|
141
141
|
};
|
|
142
142
|
};
|
|
143
|
-
return
|
|
143
|
+
return s(() => {
|
|
144
144
|
m();
|
|
145
|
-
}),
|
|
145
|
+
}), o(() => {
|
|
146
146
|
p?.();
|
|
147
|
-
}),
|
|
147
|
+
}), u(d, () => {
|
|
148
148
|
p?.(), m();
|
|
149
|
-
}, { deep: !0 }), (
|
|
149
|
+
}, { deep: !0 }), (e, t) => (c(), i("div", {
|
|
150
150
|
class: "relative h-full w-full",
|
|
151
151
|
ref_key: "containerRef",
|
|
152
152
|
ref: f
|
package/main.d.ts
ADDED
package/main.mjs
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { t as e } from "./chunks/auto-animate-FPySn19g.mjs";
|
|
2
|
+
import { D as t, H as n } from "./chunks/provider-DQIMA4mE.mjs";
|
|
3
|
+
import { t as r } from "./chunks/app-Dk-mybzX.mjs";
|
|
4
|
+
import "./components/app/index.mjs";
|
|
5
|
+
import i from "./plugins/directive/index.mjs";
|
|
6
|
+
import { t as a } from "./chunks/store-C46_JI7q.mjs";
|
|
7
|
+
import "./plugins/initialize/index.mjs";
|
|
8
|
+
import { createApp as o } from "vue";
|
|
9
|
+
import "tdesign-vue-next/es/style/index.css";
|
|
10
|
+
import './assets/main-CxSb5Gqw.css';//#region ../../node_modules/.pnpm/@formkit+auto-animate@0.10.0/node_modules/@formkit/auto-animate/vue/index.mjs
|
|
11
|
+
function s(t) {
|
|
12
|
+
return {
|
|
13
|
+
mounted(n, r) {
|
|
14
|
+
let i = {}, a = r.value;
|
|
15
|
+
i = typeof a == "function" ? a : typeof t == "function" ? t : {
|
|
16
|
+
...t || {},
|
|
17
|
+
...a || {}
|
|
18
|
+
};
|
|
19
|
+
let o = e(n, i);
|
|
20
|
+
Object.defineProperty(n, "__aa_ctl", {
|
|
21
|
+
value: o,
|
|
22
|
+
configurable: !0
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
unmounted(e) {
|
|
26
|
+
var t;
|
|
27
|
+
let n = e.__aa_ctl;
|
|
28
|
+
(t = n?.destroy) == null || t.call(n);
|
|
29
|
+
try {
|
|
30
|
+
delete e.__aa_ctl;
|
|
31
|
+
} catch {}
|
|
32
|
+
},
|
|
33
|
+
getSSRProps: () => ({})
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
var c = { install(e, t) {
|
|
37
|
+
e.directive("auto-animate", s(t));
|
|
38
|
+
} }, l = o(r);
|
|
39
|
+
l.config.throwUnhandledErrorInProduction = !0, l.use(a), l.use(t), l.use(i), l.use(c), n().getAppInfo();
|
|
40
|
+
//#endregion
|
|
41
|
+
export { l as default };
|
package/package.json
CHANGED
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./index.d.ts"
|
|
8
8
|
},
|
|
9
|
+
"./main": {
|
|
10
|
+
"types": "./main.d.ts",
|
|
11
|
+
"import": "./main.mjs"
|
|
12
|
+
},
|
|
9
13
|
"./components/*": {
|
|
10
14
|
"types": "./components/*/index.d.ts",
|
|
11
15
|
"import": "./components/*/index.mjs"
|
|
@@ -41,11 +45,11 @@
|
|
|
41
45
|
"./index.css": {
|
|
42
46
|
"import": "./assets/css/index.css"
|
|
43
47
|
},
|
|
44
|
-
"./layout
|
|
48
|
+
"./layout/*": {
|
|
45
49
|
"types": "./layout/*.vue.d.ts",
|
|
46
50
|
"import": "./layout/*.mjs"
|
|
47
51
|
},
|
|
48
|
-
"./views
|
|
52
|
+
"./views/*": {
|
|
49
53
|
"types": "./views/*.vue.d.ts",
|
|
50
54
|
"import": "./views/*.mjs"
|
|
51
55
|
}
|
|
@@ -58,9 +62,18 @@
|
|
|
58
62
|
"pnpm": "^11.17.0"
|
|
59
63
|
},
|
|
60
64
|
"peerDependencies": {
|
|
65
|
+
"@tdesign-vue-next/chat": "^0.6.0",
|
|
61
66
|
"@tsconfig/node-lts": "^24.0.0",
|
|
62
67
|
"@types/node": "^26.1.2",
|
|
68
|
+
"@types/path-browserify": "^1.0.3",
|
|
63
69
|
"@vue/tsconfig": "^0.9.1",
|
|
70
|
+
"@vueuse/core": "^14.4.0",
|
|
71
|
+
"@vueuse/integrations": "^14.3.0",
|
|
72
|
+
"alova": "^3.5.5",
|
|
73
|
+
"color": "^5.0.3",
|
|
74
|
+
"echarts": "^6.1.0",
|
|
75
|
+
"path-browserify": "^1.0.1",
|
|
76
|
+
"pinia": "^4.0.3",
|
|
64
77
|
"tailwindcss": "^4.3.3",
|
|
65
78
|
"tdesign-vue-next": "^1.20.5",
|
|
66
79
|
"typescript": "^6.0.3",
|
|
@@ -75,31 +88,24 @@
|
|
|
75
88
|
"@bprogress/core": "^1.3.4",
|
|
76
89
|
"@formkit/auto-animate": "^0.10.0",
|
|
77
90
|
"@iconify/vue": "^5.0.1",
|
|
78
|
-
"@types/file-saver": "^2.0.7",
|
|
79
|
-
"@vueuse/core": "^14.4.0",
|
|
80
|
-
"alova": "^3.5.5",
|
|
81
|
-
"color": "^5.0.3",
|
|
82
91
|
"cron-parser": "^5.10.0",
|
|
83
92
|
"cronstrue": "^3.24.0",
|
|
84
93
|
"crypto-js": "^4.2.0",
|
|
85
|
-
"echarts": "^6.1.0",
|
|
86
94
|
"element-plus": "^2.14.5",
|
|
87
95
|
"file-saver": "^2.0.5",
|
|
88
96
|
"ogl": "^1.0.11",
|
|
89
|
-
"path-browserify": "^1.0.1",
|
|
90
|
-
"pinia": "^4.0.3",
|
|
91
97
|
"pinia-plugin-persistedstate": "^4.7.1",
|
|
92
98
|
"quartzcron": "^0.1.2",
|
|
93
99
|
"vue-echarts": "^8.3.0"
|
|
94
100
|
},
|
|
95
101
|
"devDependencies": {
|
|
96
102
|
"@types/crypto-js": "^4.2.2",
|
|
97
|
-
"@types/
|
|
103
|
+
"@types/file-saver": "^2.0.7"
|
|
98
104
|
},
|
|
99
105
|
"browserslist": [
|
|
100
106
|
"last 2 version",
|
|
101
107
|
"> 1%",
|
|
102
108
|
"not dead"
|
|
103
109
|
],
|
|
104
|
-
"version": "2.0.
|
|
110
|
+
"version": "2.0.8"
|
|
105
111
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as e, S as t,
|
|
2
|
-
export {
|
|
1
|
+
import { C as e, S as t, w as n } from "../../../chunks/provider-DQIMA4mE.mjs";
|
|
2
|
+
export { t as default, e as getFilterEmptyParamsObj, n as getParamsString };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as e } from "../../../chunks/provider-DQIMA4mE.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as e } from "../../../chunks/provider-DQIMA4mE.mjs";
|
|
2
2
|
export { e as default };
|