Skip to content

Commit 61078b2

Browse files
committed
feat(extras): compatibility with q/app-vite on SSR out of the box
1 parent a92dc79 commit 61078b2

File tree

21 files changed

+36766
-5
lines changed

21 files changed

+36766
-5
lines changed

extras/animate/animate-list.mjs

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
2+
export const generalAnimations = [
3+
'bounce',
4+
'flash',
5+
'flip',
6+
'headShake',
7+
'heartBeat',
8+
'hinge',
9+
'jello',
10+
'pulse',
11+
'rubberBand',
12+
'shake',
13+
'shakeX',
14+
'shakeY',
15+
'swing',
16+
'tada',
17+
'wobble'
18+
]
19+
20+
export const inAnimations = [
21+
'backInDown',
22+
'backInLeft',
23+
'backInRight',
24+
'backInUp',
25+
'bounceIn',
26+
'bounceInDown',
27+
'bounceInLeft',
28+
'bounceInRight',
29+
'bounceInUp',
30+
'fadeIn',
31+
'fadeInBottomLeft',
32+
'fadeInBottomRight',
33+
'fadeInDown',
34+
'fadeInDownBig',
35+
'fadeInLeft',
36+
'fadeInLeftBig',
37+
'fadeInRight',
38+
'fadeInRightBig',
39+
'fadeInTopLeft',
40+
'fadeInTopRight',
41+
'fadeInUp',
42+
'fadeInUpBig',
43+
'flipInX',
44+
'flipInY',
45+
'jackInTheBox',
46+
'lightSpeedInLeft',
47+
'lightSpeedInRight',
48+
'rollIn',
49+
'rotateIn',
50+
'rotateInDownLeft',
51+
'rotateInDownRight',
52+
'rotateInUpLeft',
53+
'rotateInUpRight',
54+
'slideInDown',
55+
'slideInLeft',
56+
'slideInRight',
57+
'slideInUp',
58+
'zoomIn',
59+
'zoomInDown',
60+
'zoomInLeft',
61+
'zoomInRight',
62+
'zoomInUp'
63+
]
64+
65+
export const outAnimations = [
66+
'backOutDown',
67+
'backOutLeft',
68+
'backOutRight',
69+
'backOutUp',
70+
'bounceOut',
71+
'bounceOutDown',
72+
'bounceOutLeft',
73+
'bounceOutRight',
74+
'bounceOutUp',
75+
'fadeOut',
76+
'fadeOutBottomLeft',
77+
'fadeOutBottomRight',
78+
'fadeOutDown',
79+
'fadeOutDownBig',
80+
'fadeOutLeft',
81+
'fadeOutLeftBig',
82+
'fadeOutRight',
83+
'fadeOutRightBig',
84+
'fadeOutTopLeft',
85+
'fadeOutTopRight',
86+
'fadeOutUp',
87+
'fadeOutUpBig',
88+
'flipOutX',
89+
'flipOutY',
90+
'lightSpeedOutLeft',
91+
'lightSpeedOutRight',
92+
'rollOut',
93+
'rotateOut',
94+
'rotateOutDownLeft',
95+
'rotateOutDownRight',
96+
'rotateOutUpLeft',
97+
'rotateOutUpRight',
98+
'slideOutDown',
99+
'slideOutLeft',
100+
'slideOutRight',
101+
'slideOutUp',
102+
'zoomOut',
103+
'zoomOutDown',
104+
'zoomOutLeft',
105+
'zoomOutRight',
106+
'zoomOutUp'
107+
]

extras/bootstrap-icons/index.mjs

Lines changed: 1670 additions & 0 deletions
Large diffs are not rendered by default.

extras/build/animate.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ else {
6262

6363
copySync(join(pkgFolder, 'LICENSE'), join(dist, 'LICENSE'))
6464

65-
writeFileSync(join(dist, 'animate-list.js'), getList(`export const `), 'utf-8')
65+
const animateListContent = getList(`export const `)
66+
writeFileSync(join(dist, 'animate-list.js'), animateListContent, 'utf-8')
67+
writeFileSync(join(dist, 'animate-list.mjs'), animateListContent, 'utf-8')
6668
writeFileSync(join(dist, 'animate-list.common.js'), getList(`module.exports.`), 'utf-8')
6769

6870
writeFileSync(join(dist, 'animate-list.d.ts'), getList(`export type `).replace(/\[/g, '').replace(/\]/g, ';').replace(/\ '/g, ` | '`).replace(/,/g, ''), 'utf-8')

extras/build/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function generate () {
1515
child.on('exit', (code, signal) => {
1616
resolve()
1717
})
18-
18+
1919
if (child.stdout) {
2020
child.stdout.on('data', (data) => {
2121
const str = data.toString()
@@ -24,7 +24,7 @@ async function generate () {
2424
}
2525
})
2626
}
27-
27+
2828
if (child.stderr) {
2929
child.stderr.on('data', (data) => {
3030
const str = data.toString()

extras/build/utils/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,10 @@ module.exports.writeExports = (iconSetName, versionOrPackageName, distFolder, sv
243243
else {
244244
const banner = getBanner(iconSetName, versionOrPackageName);
245245
const distIndex = `${distFolder}/index`
246+
const jsContent = banner + svgExports.sort().join('\n')
246247

247-
writeFileSync(`${distIndex}.js`, banner + svgExports.sort().join('\n'), 'utf-8')
248+
writeFileSync(`${distIndex}.js`, jsContent, 'utf-8')
249+
writeFileSync(`${distIndex}.mjs`, jsContent, 'utf-8')
248250
writeFileSync(`${distIndex}.d.ts`, banner + typeExports.sort().join('\n'), 'utf-8')
249251

250252
if (skipped.length > 0) {

extras/eva-icons/index.mjs

Lines changed: 492 additions & 0 deletions
Large diffs are not rendered by default.

extras/fontawesome-v5/index.mjs

Lines changed: 1613 additions & 0 deletions
Large diffs are not rendered by default.

extras/fontawesome-v6/index.mjs

Lines changed: 1750 additions & 0 deletions
Large diffs are not rendered by default.

extras/ionicons-v4/index.mjs

Lines changed: 698 additions & 0 deletions
Large diffs are not rendered by default.

extras/ionicons-v5/index.mjs

Lines changed: 1334 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)