create-fesd-app 1.0.0-bate.90 → 1.0.0-bate.92
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/bin/create-fesd-app.mjs +2 -0
- package/package.json +1 -1
- package/src/assets/css/base/_common.sass +3 -0
- package/src/assets/css/layouts/article4/_article4_setting.sass +3 -2
- package/src/assets/css/pages/about.sass +9 -0
- package/src/assets/js/apps/about/page.js +2 -1
- package/src/assets/js/apps/index/page.js +0 -8
- package/src/assets/js/commons/utils.js +11 -0
- package/src/pages/about.pug +4 -2
package/bin/create-fesd-app.mjs
CHANGED
@@ -21,6 +21,7 @@ const notDependencies = [
|
|
21
21
|
"swiperv11",
|
22
22
|
"overlayscrollbars",
|
23
23
|
"commander",
|
24
|
+
"sass",
|
24
25
|
"ora",
|
25
26
|
"chalk",
|
26
27
|
"ansi-colors",
|
@@ -80,6 +81,7 @@ const createPackageJson = async (packagePath, projectName) => {
|
|
80
81
|
packageJson.dependencies = {
|
81
82
|
"swiperv11": "npm:swiper@11.1.3",
|
82
83
|
"swiperv8": "npm:swiper@8.4.7",
|
84
|
+
"sass": "1.77.4",
|
83
85
|
"overlayscrollbars": "2.8.3",
|
84
86
|
}
|
85
87
|
|
package/package.json
CHANGED
@@ -173,8 +173,9 @@ $pagination-TB-gap_rwd: 10px
|
|
173
173
|
.instagram-media.instagram-media-rendered
|
174
174
|
display: inline-block !important
|
175
175
|
margin: 15px 0 !important
|
176
|
-
max-width:
|
177
|
-
width:
|
176
|
+
max-width: 500px !important
|
177
|
+
width: 100% !important
|
178
|
+
min-width: unset !important
|
178
179
|
a:not(._button)
|
179
180
|
color: #007aff
|
180
181
|
ol,ul
|
@@ -141,6 +141,15 @@
|
|
141
141
|
transform: scale(0.75)
|
142
142
|
&.show
|
143
143
|
animation: zoomIn 0.25s linear forwards
|
144
|
+
&.section2
|
145
|
+
.container
|
146
|
+
min-height: 50vh
|
147
|
+
display: flex
|
148
|
+
justify-content: center
|
149
|
+
align-items: center
|
150
|
+
.noData
|
151
|
+
font-size: px(30)
|
152
|
+
text-align: center
|
144
153
|
|
145
154
|
|
146
155
|
@keyframes zoomIn
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Article4 } from '@xwadex/fesd';
|
2
|
-
import { common } from "@/commons";
|
2
|
+
import { common, noContentCheck } from "@/commons";
|
3
3
|
|
4
4
|
$(async () => {
|
5
5
|
// common Init
|
@@ -7,4 +7,5 @@ $(async () => {
|
|
7
7
|
// pluginInit
|
8
8
|
new Article4('._articleBlock')
|
9
9
|
// coding...
|
10
|
+
noContentCheck();
|
10
11
|
})
|
@@ -142,14 +142,6 @@ const s8Handler = function () {
|
|
142
142
|
const locale = wddForm.getAttribute('lang');
|
143
143
|
const form = new CustomForm('.wdd-form', {
|
144
144
|
locale: locale ? locale : 'zh-TW',
|
145
|
-
datepicker: [
|
146
|
-
{
|
147
|
-
el: '.datepicker-input',
|
148
|
-
options: {
|
149
|
-
locale: Mandarin,
|
150
|
-
},
|
151
|
-
},
|
152
|
-
],
|
153
145
|
clearEl: '.btn.form-clear',
|
154
146
|
submitEl: '.btn.form-done',
|
155
147
|
errorText: {
|
@@ -19,3 +19,14 @@ export function collapseEvent(clickTarget, parentBox, anchor = false, single = f
|
|
19
19
|
});
|
20
20
|
}
|
21
21
|
|
22
|
+
export function noContentCheck() {
|
23
|
+
const params = new URLSearchParams(document.location.search);
|
24
|
+
const val = params.get('debug');
|
25
|
+
const contentBox = $('[data-content]')
|
26
|
+
const noContentBox = $('[data-noContent]')
|
27
|
+
if (!val || !contentBox || !noContentBox) return
|
28
|
+
if (val === 'noContent') {
|
29
|
+
contentBox.hide();
|
30
|
+
noContentBox.show();
|
31
|
+
}
|
32
|
+
}
|
package/src/pages/about.pug
CHANGED
@@ -32,7 +32,7 @@ block content
|
|
32
32
|
.txtBox
|
33
33
|
.subSlogan
|
34
34
|
span Front-End Suite Design Framework
|
35
|
-
section.section1
|
35
|
+
section.section1(data-content)
|
36
36
|
.container
|
37
37
|
.content
|
38
38
|
._articleBlock
|
@@ -253,6 +253,8 @@ block content
|
|
253
253
|
span._buttonCover
|
254
254
|
a._button(href='javascript:;') Button Description
|
255
255
|
|
256
|
-
|
256
|
+
section.section2(data-noContent)
|
257
|
+
.container
|
258
|
+
.noData NO DATA
|
257
259
|
|
258
260
|
|