Skip to content

Commit

Permalink
feat(extras): compatibility with q/app-vite on SSR out of the box
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Mar 14, 2022
1 parent a92dc79 commit 61078b2
Show file tree
Hide file tree
Showing 21 changed files with 36,766 additions and 5 deletions.
107 changes: 107 additions & 0 deletions extras/animate/animate-list.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@

export const generalAnimations = [
'bounce',
'flash',
'flip',
'headShake',
'heartBeat',
'hinge',
'jello',
'pulse',
'rubberBand',
'shake',
'shakeX',
'shakeY',
'swing',
'tada',
'wobble'
]

export const inAnimations = [
'backInDown',
'backInLeft',
'backInRight',
'backInUp',
'bounceIn',
'bounceInDown',
'bounceInLeft',
'bounceInRight',
'bounceInUp',
'fadeIn',
'fadeInBottomLeft',
'fadeInBottomRight',
'fadeInDown',
'fadeInDownBig',
'fadeInLeft',
'fadeInLeftBig',
'fadeInRight',
'fadeInRightBig',
'fadeInTopLeft',
'fadeInTopRight',
'fadeInUp',
'fadeInUpBig',
'flipInX',
'flipInY',
'jackInTheBox',
'lightSpeedInLeft',
'lightSpeedInRight',
'rollIn',
'rotateIn',
'rotateInDownLeft',
'rotateInDownRight',
'rotateInUpLeft',
'rotateInUpRight',
'slideInDown',
'slideInLeft',
'slideInRight',
'slideInUp',
'zoomIn',
'zoomInDown',
'zoomInLeft',
'zoomInRight',
'zoomInUp'
]

export const outAnimations = [
'backOutDown',
'backOutLeft',
'backOutRight',
'backOutUp',
'bounceOut',
'bounceOutDown',
'bounceOutLeft',
'bounceOutRight',
'bounceOutUp',
'fadeOut',
'fadeOutBottomLeft',
'fadeOutBottomRight',
'fadeOutDown',
'fadeOutDownBig',
'fadeOutLeft',
'fadeOutLeftBig',
'fadeOutRight',
'fadeOutRightBig',
'fadeOutTopLeft',
'fadeOutTopRight',
'fadeOutUp',
'fadeOutUpBig',
'flipOutX',
'flipOutY',
'lightSpeedOutLeft',
'lightSpeedOutRight',
'rollOut',
'rotateOut',
'rotateOutDownLeft',
'rotateOutDownRight',
'rotateOutUpLeft',
'rotateOutUpRight',
'slideOutDown',
'slideOutLeft',
'slideOutRight',
'slideOutUp',
'zoomOut',
'zoomOutDown',
'zoomOutLeft',
'zoomOutRight',
'zoomOutUp'
]
1,670 changes: 1,670 additions & 0 deletions extras/bootstrap-icons/index.mjs

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion extras/build/animate.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ else {

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

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

writeFileSync(join(dist, 'animate-list.d.ts'), getList(`export type `).replace(/\[/g, '').replace(/\]/g, ';').replace(/\ '/g, ` | '`).replace(/,/g, ''), 'utf-8')
Expand Down
4 changes: 2 additions & 2 deletions extras/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function generate () {
child.on('exit', (code, signal) => {
resolve()
})

if (child.stdout) {
child.stdout.on('data', (data) => {
const str = data.toString()
Expand All @@ -24,7 +24,7 @@ async function generate () {
}
})
}

if (child.stderr) {
child.stderr.on('data', (data) => {
const str = data.toString()
Expand Down
4 changes: 3 additions & 1 deletion extras/build/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,10 @@ module.exports.writeExports = (iconSetName, versionOrPackageName, distFolder, sv
else {
const banner = getBanner(iconSetName, versionOrPackageName);
const distIndex = `${distFolder}/index`
const jsContent = banner + svgExports.sort().join('\n')

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

if (skipped.length > 0) {
Expand Down
492 changes: 492 additions & 0 deletions extras/eva-icons/index.mjs

Large diffs are not rendered by default.

1,613 changes: 1,613 additions & 0 deletions extras/fontawesome-v5/index.mjs

Large diffs are not rendered by default.

1,750 changes: 1,750 additions & 0 deletions extras/fontawesome-v6/index.mjs

Large diffs are not rendered by default.

698 changes: 698 additions & 0 deletions extras/ionicons-v4/index.mjs

Large diffs are not rendered by default.

1,334 changes: 1,334 additions & 0 deletions extras/ionicons-v5/index.mjs

Large diffs are not rendered by default.

1,334 changes: 1,334 additions & 0 deletions extras/ionicons-v6/index.mjs

Large diffs are not rendered by default.

1,546 changes: 1,546 additions & 0 deletions extras/line-awesome/index.mjs

Large diffs are not rendered by default.

2,077 changes: 2,077 additions & 0 deletions extras/material-icons-outlined/index.mjs

Large diffs are not rendered by default.

2,077 changes: 2,077 additions & 0 deletions extras/material-icons-round/index.mjs

Large diffs are not rendered by default.

2,077 changes: 2,077 additions & 0 deletions extras/material-icons-sharp/index.mjs

Large diffs are not rendered by default.

2,077 changes: 2,077 additions & 0 deletions extras/material-icons/index.mjs

Large diffs are not rendered by default.

4,997 changes: 4,997 additions & 0 deletions extras/mdi-v4/index.mjs

Large diffs are not rendered by default.

5,957 changes: 5,957 additions & 0 deletions extras/mdi-v5/index.mjs

Large diffs are not rendered by default.

6,597 changes: 6,597 additions & 0 deletions extras/mdi-v6/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion extras/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@quasar/extras",
"version": "1.13.0",
"version": "1.13.1",
"description": "Quasar Framework fonts, icons and animations",
"scripts": {
"build": "node build/index.js"
Expand Down
354 changes: 354 additions & 0 deletions extras/themify/index.mjs

Large diffs are not rendered by default.

0 comments on commit 61078b2

Please sign in to comment.