create-fesd-app 1.0.0-bate.89 → 1.0.0-bate.91

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/package.json CHANGED
@@ -1,12 +1,7 @@
1
1
  {
2
2
  "name": "create-fesd-app",
3
- "version": "1.0.0-bate.89",
3
+ "version": "1.0.0-bate.91",
4
4
  "type": "module",
5
- "scripts": {
6
- "dev": "vite",
7
- "build": "vite build",
8
- "preview": "vite preview"
9
- },
10
5
  "bin": {
11
6
  "create-fesd-app": "bin/create-fesd-app.mjs"
12
7
  },
@@ -49,5 +44,10 @@
49
44
  "vite": "^5.4.8",
50
45
  "vite-plugin-compression": "^0.5.1",
51
46
  "vite-plugin-imagemin": "^0.6.1"
47
+ },
48
+ "scripts": {
49
+ "dev": "vite",
50
+ "build": "vite build",
51
+ "preview": "vite preview"
52
52
  }
53
- }
53
+ }
@@ -28,6 +28,9 @@ input
28
28
  .d-none
29
29
  display: none !important
30
30
 
31
+ [data-noContent]
32
+ display: none
33
+
31
34
  .lazy
32
35
  opacity: 0
33
36
  &.loaded
@@ -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: 100% !important
177
- width: 500px !important
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
+ }
@@ -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