ep-lib-ts 0.1.44 → 1.0.1
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/LICENSE +21 -0
- package/dist/BgAudio-C8bS54bl.js +4 -0
- package/dist/DisplayBox-BTPVW9_v.js +4 -0
- package/dist/EpAlert-Daji8LsR.js +4 -0
- package/dist/EpAudio-Dq7twl4x.js +4 -0
- package/dist/EpBadge-DBfMe1r_.js +4 -0
- package/dist/EpBarChart-cAlm0rKf.js +4 -0
- package/dist/EpBtn-S2VJnt--.js +4 -0
- package/dist/EpCard-SvaBmdDK.js +4 -0
- package/dist/EpChip-Chn_9bRP.js +4 -0
- package/dist/{EpCodeblock-4ac683f6.js → EpCodeblock-DVX2XFFj.js} +280 -270
- package/dist/EpContentSlider-Ds2GlrkO.js +4 -0
- package/dist/EpDarkmode--_9Qi6HH.js +19 -0
- package/dist/EpDivider-Bj4Zya_F.js +4 -0
- package/dist/EpEdu-Y7Lkf3Ew.js +4 -0
- package/dist/EpFlex-5yWhvYX7.js +4 -0
- package/dist/EpHeader-CEQBk1ah.js +4 -0
- package/dist/{EpHover-377ef256.js → EpHover-BL7JsbVZ.js} +3 -4
- package/dist/EpIcon-CuhZ90Zx.js +4 -0
- package/dist/EpIframe-DbPnkezB.js +4 -0
- package/dist/EpImg-DJ9gNwhJ.js +4 -0
- package/dist/{EpInput-c0096d40.js → EpInput-DMIxjwBM.js} +464 -459
- package/dist/EpLineChart-ALvSFQ-w.js +4 -0
- package/dist/EpLink-CQSfQHRj.js +4 -0
- package/dist/EpLinkVersion-VIxCHjDt.js +4 -0
- package/dist/{EpList-5211df15.js → EpList-BkH08ROd.js} +4 -5
- package/dist/EpModal-CYy1Iu1T.js +4 -0
- package/dist/EpNothing-IEAPsIPI.js +10 -0
- package/dist/EpPieChart-Cpxylmzw.js +4 -0
- package/dist/EpQuestion-gFjB_YVU.js +4 -0
- package/dist/EpQuote-C2WMKC8z.js +4 -0
- package/dist/EpRadio-CZu2BYd-.js +4 -0
- package/dist/EpRadioSummative-POEEv1YI.js +4 -0
- package/dist/EpReading-6LKvPJl5.js +4 -0
- package/dist/EpResource-Bqu38I44.js +4 -0
- package/dist/EpScope-B04S9t4O.js +4 -0
- package/dist/EpSection-B9obOS7v.js +4 -0
- package/dist/{EpSelect-78c9c0aa.js → EpSelect-DLGx5g-U.js} +3 -4
- package/dist/EpSkeleton-rkvPpE2y.js +4 -0
- package/dist/EpSoftware-DmH-rUDN.js +4 -0
- package/dist/EpSpinner-7XiNy9LV.js +4 -0
- package/dist/EpSummativeTable-JWOA25gE.js +4 -0
- package/dist/EpSvg-Dfvodejy.js +4 -0
- package/dist/EpTable-C0lD6aED.js +4 -0
- package/dist/EpTerm-XGV0Zf2w.js +4 -0
- package/dist/EpText-DhHXfEHv.js +4 -0
- package/dist/EpTimeLine-CDL7liGh.js +4 -0
- package/dist/{EpTooltip-05e1d8fe.js → EpTooltip-B4s0_PvZ.js} +4 -4
- package/dist/EpVideo-em0qb_rk.js +4 -0
- package/dist/EpVideoPanopto-DAMRV6HD.js +4 -0
- package/dist/EpWordDef-bLyQzqx8.js +4 -0
- package/dist/components/basics/EpAvatar.vue.d.ts +2 -2
- package/dist/components/basics/EpBadge.vue.d.ts +2 -2
- package/dist/components/basics/EpBtn.vue.d.ts +4 -3
- package/dist/components/basics/EpCard.vue.d.ts +4 -3
- package/dist/components/basics/EpChip.vue.d.ts +4 -3
- package/dist/components/basics/EpDivider.vue.d.ts +4 -3
- package/dist/components/basics/EpFlex.vue.d.ts +1 -1
- package/dist/components/basics/EpHover.vue.d.ts +2 -2
- package/dist/components/basics/EpIcon.vue.d.ts +2 -2
- package/dist/components/basics/EpImg.vue.d.ts +3 -2
- package/dist/components/basics/EpList.vue.d.ts +1 -1
- package/dist/components/basics/EpListitem.vue.d.ts +2 -2
- package/dist/components/basics/EpSection.vue.d.ts +2 -2
- package/dist/components/basics/EpSpinner.vue.d.ts +2 -2
- package/dist/components/basics/EpTable.vue.d.ts +1 -1
- package/dist/components/basics/EpText.vue.d.ts +2 -2
- package/dist/components/charts/EpBarChart.vue.d.ts +4 -3
- package/dist/components/charts/EpLineChart.vue.d.ts +4 -3
- package/dist/components/charts/EpPieChart.vue.d.ts +4 -3
- package/dist/components/educationals/EpCodeblock.vue.d.ts +5 -4
- package/dist/components/educationals/EpEdu.vue.d.ts +5 -4
- package/dist/components/educationals/EpReading.vue.d.ts +4 -3
- package/dist/components/educationals/EpResource.vue.d.ts +4 -3
- package/dist/components/educationals/EpScope.vue.d.ts +2 -2
- package/dist/components/forms/EpCheckbox.vue.d.ts +3 -3
- package/dist/components/forms/EpInput.vue.d.ts +3 -3
- package/dist/components/forms/EpRadio.vue.d.ts +5 -4
- package/dist/components/forms/EpRadioSummative.vue.d.ts +5 -4
- package/dist/components/forms/EpSelect.vue.d.ts +2 -2
- package/dist/components/forms/EpSwitch.vue.d.ts +5 -4
- package/dist/components/forms/EpTextarea.vue.d.ts +3 -3
- package/dist/components/forms/EpToggle.vue.d.ts +3 -3
- package/dist/components/interactions/EpAccordeon.vue.d.ts +4 -3
- package/dist/components/interactions/EpContentSlider.vue.d.ts +3 -2
- package/dist/components/interactions/EpDarkmode.vue.d.ts +3 -0
- package/dist/components/interactions/EpHotsPot.vue.d.ts +1 -1
- package/dist/components/interactions/EpModal.vue.d.ts +3 -3
- package/dist/components/interactions/EpQuestion.vue.d.ts +5 -4
- package/dist/components/interactions/EpSummativeTable.vue.d.ts +3 -2
- package/dist/components/interactions/EpTabs.vue.d.ts +1 -1
- package/dist/components/interactions/EpTooltip.vue.d.ts +4 -3
- package/dist/components/medias/EpAudio.vue.d.ts +4 -3
- package/dist/components/medias/EpCarousel.vue.d.ts +5 -4
- package/dist/components/medias/EpIframe.vue.d.ts +4 -3
- package/dist/components/medias/EpKatex.vue.d.ts +4 -3
- package/dist/components/medias/EpLink.vue.d.ts +4 -3
- package/dist/components/medias/EpLinkVersion.vue.d.ts +2 -2
- package/dist/components/medias/EpSoftware.vue.d.ts +4 -3
- package/dist/components/medias/EpSvg.vue.d.ts +4 -3
- package/dist/components/medias/EpTerm.vue.d.ts +2 -2
- package/dist/components/medias/EpTimeLine.vue.d.ts +2 -1
- package/dist/components/medias/EpVideo.vue.d.ts +4 -3
- package/dist/components/medias/EpVideoPanopto.vue.d.ts +5 -3
- package/dist/components/medias/EpWordDef.vue.d.ts +2 -1
- package/dist/components/signages/EpAlert.vue.d.ts +4 -3
- package/dist/components/signages/EpBadge.vue.d.ts +4 -3
- package/dist/components/signages/EpHeader.vue.d.ts +3 -3
- package/dist/components/signages/EpNothing.vue.d.ts +1 -1
- package/dist/components/signages/EpQuote.vue.d.ts +2 -2
- package/dist/components/signages/EpSkeleton.vue.d.ts +2 -2
- package/dist/components/tools/BgAudio.vue.d.ts +2 -2
- package/dist/components/tools/DisplayBox.vue.d.ts +1 -1
- package/dist/components/tools/SvgFilter.vue.d.ts +1 -1
- package/dist/components/tools/TimelineItem.vue.d.ts +4 -3
- package/dist/ep-lib-ts.js +40 -42
- package/dist/ep-lib-ts.umd.cjs +80 -81
- package/dist/index-Dl6z_ITi.js +18485 -0
- package/dist/{index-36787516.js → index-M54_P8uC.js} +1478 -1481
- package/dist/index.d.ts +43 -42
- package/dist/main.d.ts +1 -0
- package/dist/{prism-146a2db5.js → prism-B0q7vMaL.js} +2 -2
- package/dist/router.d.ts +1 -1
- package/dist/types/Answer.d.ts +1 -0
- package/package.json +26 -29
- package/src/components/interactions/EpDarkmode.vue +48 -0
- package/src/components/medias/EpLink.vue +30 -13
- package/src/components/medias/EpVideoPanopto.vue +10 -1
- package/dist/BgAudio-201834a5.js +0 -6
- package/dist/DisplayBox-171d0236.js +0 -6
- package/dist/EpAlert-b912c3ae.js +0 -6
- package/dist/EpAudio-2101bf81.js +0 -6
- package/dist/EpBadge-7247df23.js +0 -6
- package/dist/EpBarChart-607f1d3a.js +0 -6
- package/dist/EpBtn-c6ee3c06.js +0 -6
- package/dist/EpCard-17e2340f.js +0 -6
- package/dist/EpChip-fad19f38.js +0 -6
- package/dist/EpContentSlider-8445422f.js +0 -6
- package/dist/EpDivider-4fa1a100.js +0 -6
- package/dist/EpEdu-b733e904.js +0 -6
- package/dist/EpFlex-e6ffe678.js +0 -6
- package/dist/EpHeader-dcb977a2.js +0 -6
- package/dist/EpIcon-a64b1a32.js +0 -6
- package/dist/EpIframe-d14d7039.js +0 -6
- package/dist/EpImg-37e8c6da.js +0 -6
- package/dist/EpLineChart-78c50047.js +0 -6
- package/dist/EpLink-7a03f094.js +0 -6
- package/dist/EpLinkVersion-55282f69.js +0 -6
- package/dist/EpModal-d0e7bfe1.js +0 -6
- package/dist/EpNothing-c3bae89e.js +0 -11
- package/dist/EpPieChart-ccc6e9ea.js +0 -6
- package/dist/EpQuestion-1b0e98d9.js +0 -6
- package/dist/EpQuote-a3d9641f.js +0 -6
- package/dist/EpRadio-33311a7c.js +0 -6
- package/dist/EpRadioSummative-25f2d598.js +0 -6
- package/dist/EpReading-11835aac.js +0 -6
- package/dist/EpResource-d2707861.js +0 -6
- package/dist/EpScope-60c80551.js +0 -6
- package/dist/EpSection-9c54221c.js +0 -6
- package/dist/EpSkeleton-a40c904b.js +0 -6
- package/dist/EpSoftware-887b35ab.js +0 -6
- package/dist/EpSpinner-f7b9988b.js +0 -6
- package/dist/EpSummativeTable-1e759db5.js +0 -6
- package/dist/EpSvg-2a82f199.js +0 -6
- package/dist/EpTable-bc1744a8.js +0 -6
- package/dist/EpTerm-96482f48.js +0 -6
- package/dist/EpText-ab46371f.js +0 -6
- package/dist/EpTimeLine-67891a23.js +0 -6
- package/dist/EpVideo-8d575ce2.js +0 -6
- package/dist/EpVideoPanopto-716e3877.js +0 -6
- package/dist/EpWordDef-89e45463.js +0 -6
- package/dist/index-03f58de2.js +0 -19711
- /package/dist/{EpAvatar-1e55fdc7.js → EpAvatar-Dmpg0PFj.js} +0 -0
- /package/dist/{EpBadge-f5faab43.js → EpBadge-DqmSNdbi.js} +0 -0
- /package/dist/{EpCheckbox-b4696548.js → EpCheckbox-BtJRFbS_.js} +0 -0
- /package/dist/{EpHotsPot-f4deb558.js → EpHotsPot-NGjKJCc8.js} +0 -0
- /package/dist/{EpListitem-aa4a0f95.js → EpListitem-DzQrc-k2.js} +0 -0
- /package/dist/{EpSwitch-778610f4.js → EpSwitch-C7NMjBk9.js} +0 -0
- /package/dist/{EpTextarea-67f751e9.js → EpTextarea-DyMM95ER.js} +0 -0
- /package/dist/{EpToggle-79231e19.js → EpToggle-CfXYpI1b.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
1
|
+
import { default as EpSkeleton } from './components/signages/EpSkeleton.vue';
|
|
2
|
+
import { default as EpQuote } from './components/signages/EpQuote.vue';
|
|
3
|
+
import { default as EpHeader } from './components/signages/EpHeader.vue';
|
|
4
|
+
import { default as EpAlert } from './components/signages/EpAlert.vue';
|
|
5
|
+
import { default as EpWordDef } from './components/medias/EpWordDef.vue';
|
|
6
|
+
import { default as EpVideoPanopto } from './components/medias/EpVideoPanopto.vue';
|
|
7
|
+
import { default as EpVideo } from './components/medias/EpVideo.vue';
|
|
8
|
+
import { default as EpTimeLine } from './components/medias/EpTimeLine.vue';
|
|
9
|
+
import { default as EpTerm } from './components/medias/EpTerm.vue';
|
|
10
|
+
import { default as EpSvg } from './components/medias/EpSvg.vue';
|
|
11
|
+
import { default as EpSoftware } from './components/medias/EpSoftware.vue';
|
|
12
|
+
import { default as EpLinkVersion } from './components/medias/EpLinkVersion.vue';
|
|
13
|
+
import { default as EpLink } from './components/medias/EpLink.vue';
|
|
14
|
+
import { default as EpKatex } from './components/medias/EpKatex.vue';
|
|
15
|
+
import { default as EpIframe } from './components/medias/EpIframe.vue';
|
|
16
|
+
import { default as EpCarousel } from './components/medias/EpCarousel.vue';
|
|
17
|
+
import { default as EpAudio } from './components/medias/EpAudio.vue';
|
|
18
|
+
import { default as EpSummativeTable } from './components/interactions/EpSummativeTable.vue';
|
|
19
|
+
import { default as EpTabs } from './components/interactions/EpTabs.vue';
|
|
20
|
+
import { default as EpQuestion } from './components/interactions/EpQuestion.vue';
|
|
21
|
+
import { default as EpModal } from './components/interactions/EpModal.vue';
|
|
22
|
+
import { default as EpContentSlider } from './components/interactions/EpContentSlider.vue';
|
|
23
|
+
import { default as EpAccordeon } from './components/interactions/EpAccordeon.vue';
|
|
24
|
+
import { default as EpScope } from './components/educationals/EpScope.vue';
|
|
25
|
+
import { default as EpResource } from './components/educationals/EpResource.vue';
|
|
26
|
+
import { default as EpReading } from './components/educationals/EpReading.vue';
|
|
27
|
+
import { default as EpEdu } from './components/educationals/EpEdu.vue';
|
|
28
|
+
import { default as EpPieChart } from './components/charts/EpPieChart.vue';
|
|
29
|
+
import { default as EpLineChart } from './components/charts/EpLineChart.vue';
|
|
30
|
+
import { default as EpBarChart } from './components/charts/EpBarChart.vue';
|
|
31
|
+
import { default as EpTable } from './components/basics/EpTable.vue';
|
|
32
|
+
import { default as EpIcon } from './components/basics/EpIcon.vue';
|
|
33
|
+
import { default as EpFlex } from './components/basics/EpFlex.vue';
|
|
34
|
+
import { default as EpSpinner } from './components/basics/EpSpinner.vue';
|
|
35
|
+
import { default as EpSection } from './components/basics/EpSection.vue';
|
|
36
|
+
import { default as EpDivider } from './components/basics/EpDivider.vue';
|
|
37
|
+
import { default as EpChip } from './components/basics/EpChip.vue';
|
|
38
|
+
import { default as EpBtn } from './components/basics/EpBtn.vue';
|
|
39
|
+
import { default as EpBadge } from './components/basics/EpBadge.vue';
|
|
40
|
+
import { default as EpCard } from './components/basics/EpCard.vue';
|
|
41
|
+
import { default as EpImg } from './components/basics/EpImg.vue';
|
|
42
|
+
import { default as EpText } from './components/basics/EpText.vue';
|
|
43
|
+
|
|
43
44
|
export { EpBadge, EpBtn, EpCard, EpChip, EpDivider, EpFlex, EpIcon, EpImg, EpSection, EpSpinner, EpTable, EpBarChart, EpLineChart, EpPieChart, EpText, EpEdu, EpReading, EpResource, EpScope, EpAccordeon, EpContentSlider, EpModal, EpQuestion, EpTabs, EpAudio, EpCarousel, EpIframe, EpKatex, EpLink, EpLinkVersion, EpSoftware, EpSvg, EpTerm, EpTimeLine, EpVideo, EpVideoPanopto, EpAlert, EpHeader, EpQuote, EpSkeleton, EpWordDef, EpSummativeTable };
|
package/dist/main.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as V, c as W } from "./EpCodeblock-DVX2XFFj.js";
|
|
2
2
|
function ee(S, P) {
|
|
3
3
|
for (var i = 0; i < P.length; i++) {
|
|
4
4
|
const g = P[i];
|
|
@@ -186,7 +186,7 @@ var X = { exports: {} };
|
|
|
186
186
|
currentScript: function() {
|
|
187
187
|
if (typeof document > "u")
|
|
188
188
|
return null;
|
|
189
|
-
if ("currentScript" in document
|
|
189
|
+
if ("currentScript" in document)
|
|
190
190
|
return (
|
|
191
191
|
/** @type {any} */
|
|
192
192
|
document.currentScript
|
package/dist/router.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('vue-router').Router;
|
|
2
2
|
export default _default;
|
package/dist/types/Answer.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ep-lib-ts",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"src/components/"
|
|
@@ -26,41 +26,38 @@
|
|
|
26
26
|
"preview": "vite preview"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"postcss-cli": "^10.1.0",
|
|
38
|
-
"vee-validate": "^4.8.6",
|
|
29
|
+
"@mdi/js": "^7.4.47",
|
|
30
|
+
"@vueuse/core": "^10.9.0",
|
|
31
|
+
"@wdns/vue-code-block": "^2.3.2",
|
|
32
|
+
"apexcharts": "^3.49.0",
|
|
33
|
+
"katex": "^0.16.10",
|
|
34
|
+
"markdown-it": "^14.1.0",
|
|
35
|
+
"postcss-cli": "^11.0.0",
|
|
36
|
+
"vee-validate": "^4.12.6",
|
|
39
37
|
"vue": "^3.2.45",
|
|
40
|
-
"vue-router": "^4.
|
|
41
|
-
"vue3-apexcharts": "^1.
|
|
42
|
-
"vue3-highlightjs": "^1.0.5"
|
|
38
|
+
"vue-router": "^4.3.2",
|
|
39
|
+
"vue3-apexcharts": "^1.5.2"
|
|
43
40
|
},
|
|
44
41
|
"devDependencies": {
|
|
45
|
-
"@tailwindcss/forms": "^0.5.
|
|
46
|
-
"@types/katex": "^0.16.
|
|
47
|
-
"@types/markdown-it": "^
|
|
48
|
-
"@types/node": "^20.
|
|
49
|
-
"@vitejs/plugin-vue": "^
|
|
50
|
-
"autoprefixer": "^10.4.
|
|
42
|
+
"@tailwindcss/forms": "^0.5.7",
|
|
43
|
+
"@types/katex": "^0.16.7",
|
|
44
|
+
"@types/markdown-it": "^14.0.1",
|
|
45
|
+
"@types/node": "^20.12.7",
|
|
46
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
47
|
+
"autoprefixer": "^10.4.19",
|
|
51
48
|
"path": "^0.12.7",
|
|
52
|
-
"postcss": "^8.4.
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"vite": "^
|
|
57
|
-
"
|
|
58
|
-
"vue-tsc": "^1.8.27"
|
|
49
|
+
"postcss": "^8.4.38",
|
|
50
|
+
"tailwindcss": "^3.4.3",
|
|
51
|
+
"typescript": "^5.4.5",
|
|
52
|
+
"vite": "^5.2.10",
|
|
53
|
+
"vite-plugin-dts": "^3.9.0",
|
|
54
|
+
"vue-tsc": "^2.0.14"
|
|
59
55
|
},
|
|
60
56
|
"peerDependencies": {
|
|
61
57
|
"vue": "^3.2.45"
|
|
62
58
|
},
|
|
63
59
|
"engines": {
|
|
64
|
-
"node": "
|
|
65
|
-
}
|
|
60
|
+
"node": "20.x.x"
|
|
61
|
+
},
|
|
62
|
+
"license": "MIT"
|
|
66
63
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<button @click="toggleTheme">
|
|
3
|
+
<span v-if="userTheme === 'dark'">
|
|
4
|
+
☀️
|
|
5
|
+
</span>
|
|
6
|
+
<span v-if="userTheme === 'light'">
|
|
7
|
+
🌙
|
|
8
|
+
</span>
|
|
9
|
+
</button>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script setup lang="ts">
|
|
13
|
+
import { ref, onMounted } from 'vue';
|
|
14
|
+
|
|
15
|
+
export type UserTheme = 'light' | 'dark';
|
|
16
|
+
|
|
17
|
+
const setTheme = (theme: UserTheme) => {
|
|
18
|
+
localStorage.setItem('user-theme', theme);
|
|
19
|
+
userTheme.value = theme;
|
|
20
|
+
document.documentElement.className = theme;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const getTheme = (): UserTheme => {
|
|
24
|
+
return localStorage.getItem('user-theme') as UserTheme;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const toggleTheme = (): void => {
|
|
28
|
+
const activeTheme = localStorage.getItem('user-theme');
|
|
29
|
+
if (activeTheme === 'light') {
|
|
30
|
+
setTheme('dark');
|
|
31
|
+
} else {
|
|
32
|
+
setTheme('light');
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const getMediaPreference = (): UserTheme => {
|
|
37
|
+
const hasDarkPreference = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
38
|
+
if (hasDarkPreference) {
|
|
39
|
+
return 'dark';
|
|
40
|
+
} else {
|
|
41
|
+
return 'light';
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const userTheme = ref<UserTheme>(getTheme() || getMediaPreference());
|
|
46
|
+
|
|
47
|
+
onMounted(() => setTheme(userTheme.value));
|
|
48
|
+
</script>
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
import { computed, toRefs } from "vue";
|
|
3
3
|
//types with capital letter, object styles in lowercase
|
|
4
4
|
import { MediaVariants } from "../../types/Medias";
|
|
5
|
-
import { MandateLevel } from
|
|
5
|
+
import { MandateLevel } from "../../types/MandateLevel";
|
|
6
6
|
import EpBtn from "../basics/EpBtn.vue";
|
|
7
7
|
import { mdiLinkVariant } from "@mdi/js";
|
|
8
8
|
import EpEdu from "../educationals/EpEdu.vue";
|
|
9
9
|
import useColors from "../../composables/useColors";
|
|
10
10
|
import { useRenderText } from "../../composables/useRenderText";
|
|
11
11
|
|
|
12
|
-
|
|
13
12
|
interface Props {
|
|
14
13
|
url: string;
|
|
15
14
|
title?: string;
|
|
@@ -26,36 +25,54 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
26
25
|
labelIntentions: "Intentions d'écoute",
|
|
27
26
|
type: "primary",
|
|
28
27
|
hideIcon: false,
|
|
29
|
-
intentions: ""
|
|
28
|
+
intentions: "",
|
|
30
29
|
});
|
|
31
30
|
|
|
32
31
|
const renderIcon = computed(() => {
|
|
33
32
|
if (props.icon) {
|
|
34
|
-
return props.icon
|
|
33
|
+
return props.icon;
|
|
35
34
|
}
|
|
36
|
-
return mdiLinkVariant
|
|
37
|
-
})
|
|
35
|
+
return mdiLinkVariant;
|
|
36
|
+
});
|
|
38
37
|
|
|
39
38
|
const hoverColor = computed(() => {
|
|
40
|
-
return `absolute ${useColors(
|
|
41
|
-
|
|
39
|
+
return `absolute ${useColors(
|
|
40
|
+
"bg",
|
|
41
|
+
props.type + "light"
|
|
42
|
+
)} bottom-0 w-0 left-1/2 h-full -translate-x-1/2 transition-all ease-in-out duration-300 group-hover:w-[105%] -z-[1] group-focus:w-[105%]`;
|
|
43
|
+
});
|
|
42
44
|
|
|
43
45
|
const { url, title, intentions, mandateLevel, hideIcon } = toRefs(props);
|
|
44
46
|
</script>
|
|
45
47
|
|
|
46
48
|
<template>
|
|
47
|
-
<EpEdu
|
|
49
|
+
<EpEdu
|
|
50
|
+
:title="labelCard"
|
|
51
|
+
:icon="renderIcon"
|
|
52
|
+
flat
|
|
53
|
+
:type="type"
|
|
54
|
+
:hideIcon="hideIcon"
|
|
55
|
+
:mandateLevel="mandateLevel"
|
|
56
|
+
>
|
|
48
57
|
<template #intentions v-if="useRenderText(intentions)">
|
|
49
58
|
<div v-html="useRenderText(intentions)"></div>
|
|
50
59
|
</template>
|
|
51
60
|
<template #content>
|
|
52
61
|
<div class="flex justify-center">
|
|
53
62
|
<div class="w-4/5">
|
|
54
|
-
<EpBtn
|
|
63
|
+
<EpBtn
|
|
64
|
+
block
|
|
65
|
+
:color="type === 'base' ? 'text-black' : 'text-white'"
|
|
66
|
+
rounded
|
|
67
|
+
:type="type"
|
|
68
|
+
:prependIcon="renderIcon"
|
|
55
69
|
:href="url"
|
|
56
|
-
extraClass="group font-medium tracking-wide relative inline-flex justify-center overflow-hidden z-10 transition-all duration-300 ease-in-out "
|
|
57
|
-
|
|
58
|
-
<
|
|
70
|
+
extraClass="group font-medium tracking-wide relative inline-flex justify-center overflow-hidden z-10 transition-all duration-300 ease-in-out "
|
|
71
|
+
>
|
|
72
|
+
<div>
|
|
73
|
+
<span class="font-medium tracking-wider">{{ title }}</span>
|
|
74
|
+
<span :class="hoverColor"></span>
|
|
75
|
+
</div>
|
|
59
76
|
</EpBtn>
|
|
60
77
|
</div>
|
|
61
78
|
</div>
|
|
@@ -18,6 +18,7 @@ interface Props{
|
|
|
18
18
|
labelIntentions?:string;
|
|
19
19
|
type?:MediaVariants;
|
|
20
20
|
hideIcon?:boolean;
|
|
21
|
+
big?:boolean;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
const props = withDefaults(defineProps<Props>(),{
|
|
@@ -41,6 +42,13 @@ const renderText = computed(()=>{
|
|
|
41
42
|
//controls
|
|
42
43
|
//const controls = useMediaControls(video, {src:props.src})
|
|
43
44
|
|
|
45
|
+
const sizeVideo = computed(()=> {
|
|
46
|
+
if(props.big){
|
|
47
|
+
return "700"
|
|
48
|
+
}
|
|
49
|
+
return "360"
|
|
50
|
+
})
|
|
51
|
+
|
|
44
52
|
const {src, title, hideIcon, type} = toRefs(props)
|
|
45
53
|
|
|
46
54
|
</script>
|
|
@@ -53,7 +61,8 @@ const {src, title, hideIcon, type} = toRefs(props)
|
|
|
53
61
|
</template>
|
|
54
62
|
<template #content>
|
|
55
63
|
<div class="max-w-screen-sm mx-auto">
|
|
56
|
-
<iframe :src="src" width="100%" height="
|
|
64
|
+
<iframe :src="src" width="100%" :height="sizeVideo" frameborder="0" allowfullscreen></iframe>
|
|
65
|
+
|
|
57
66
|
</div>
|
|
58
67
|
</template>
|
|
59
68
|
<!-- <template #actions>
|
package/dist/BgAudio-201834a5.js
DELETED
package/dist/EpAlert-b912c3ae.js
DELETED
package/dist/EpAudio-2101bf81.js
DELETED
package/dist/EpBadge-7247df23.js
DELETED
package/dist/EpBtn-c6ee3c06.js
DELETED
package/dist/EpCard-17e2340f.js
DELETED
package/dist/EpChip-fad19f38.js
DELETED
package/dist/EpEdu-b733e904.js
DELETED
package/dist/EpFlex-e6ffe678.js
DELETED
package/dist/EpIcon-a64b1a32.js
DELETED
package/dist/EpImg-37e8c6da.js
DELETED
package/dist/EpLink-7a03f094.js
DELETED
package/dist/EpModal-d0e7bfe1.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as t } from "vue";
|
|
2
|
-
import { a as e } from "./index-03f58de2.js";
|
|
3
|
-
import "vue-router";
|
|
4
|
-
const r = {};
|
|
5
|
-
function n(c, a) {
|
|
6
|
-
return o(), t("div", null, " no data ");
|
|
7
|
-
}
|
|
8
|
-
const m = /* @__PURE__ */ e(r, [["render", n]]);
|
|
9
|
-
export {
|
|
10
|
-
m as default
|
|
11
|
-
};
|
package/dist/EpQuote-a3d9641f.js
DELETED
package/dist/EpRadio-33311a7c.js
DELETED
package/dist/EpScope-60c80551.js
DELETED