Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.1.0.rc #93

Merged
merged 29 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
1367639
refactor: simplified quasar plugin injection
Maiquu Apr 1, 2024
ce75131
chore: marked `@quasar/extras` as optional
Maiquu Apr 17, 2024
5c14746
fix: quietSassWarnings default is false if quasar version is >=2.14
Maiquu Apr 24, 2024
da30e25
perf: slightly faster loading of animations.css by taking over resolv…
Maiquu Apr 24, 2024
845650c
perf: simpler/faster implemention of component defaults based on !37
Maiquu Apr 24, 2024
36f6f3a
perf: faster dev experience by reducing amount of network requests
Maiquu Apr 24, 2024
2260c66
chore: added playground example from !37
Maiquu Apr 24, 2024
8f21975
docs: add missing note to quietSassWarnings JSDOC
Maiquu Apr 24, 2024
be41339
test: removed component default tests
Maiquu Apr 24, 2024
1e3600c
chore: bump packageManager to pnpm@9
Maiquu Apr 24, 2024
166324c
chore: add missing tsconfig to playground
Maiquu Apr 24, 2024
952e239
chore: use explicit build command
Maiquu Apr 24, 2024
cd60a22
fix: build error caused by missing file extension
Maiquu Apr 24, 2024
128e15d
fix: use distributed css for cssAddon
Maiquu Apr 25, 2024
63bf95b
perf: use distributed quasar.sass file to speed up loading
Maiquu Apr 25, 2024
8d8ad80
fix: use quasar.sass file only if user wants to override sass variables
Maiquu Apr 25, 2024
aa0d5d3
chore: component defaults types are dynamically generated
Maiquu Apr 25, 2024
f87efe0
chore: moved all runtime code under `src/runtime/plugin`, removed un…
Maiquu Apr 25, 2024
bc77aec
chore: updated vscode settings
Maiquu Apr 25, 2024
417e0e1
chore: use `QuasarUIConfiguration` interface
Maiquu Apr 25, 2024
aea6af7
chore: deprecate re-ordering of `quasar/brand`
Maiquu Apr 25, 2024
b269497
feat: quasar ui configurable via `app.config`
Maiquu Apr 25, 2024
5c085d9
fix: removed experimental state from component defaults, removed `dee…
Maiquu Apr 25, 2024
f852d90
chore: rename generated shim file
Maiquu Apr 25, 2024
fe41a40
fix: brand deprecation message
Maiquu Apr 25, 2024
7c01858
fix: type errors
Maiquu Apr 25, 2024
5809c5e
test: fix setup css tests
Maiquu Apr 26, 2024
9f66f6c
test: skip analyzeBundleSize tests
Maiquu Apr 26, 2024
864f96f
fix: setting prop defaults where prop definition is array of construc…
Maiquu Apr 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"files.exclude": {
"node_modules/[^q]*": true
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ Module will import css in following order:
2) Icons
3) Animations
4) Quasar CSS
5) Brand

It is possible to change this order via `css` option.

Expand All @@ -193,7 +192,6 @@ export default defineNuxtConfig({
'quasar/animations',
'quasar/icons',
'quasar/css',
'quasar/brand' // If config.brand is used
// ...
]
})
Expand Down
16 changes: 11 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nuxt-quasar-ui",
"type": "module",
"version": "2.0.8",
"packageManager": "pnpm@8.11.0",
"packageManager": "pnpm@9.0.6",
"description": "Quasar Module for Nuxt (Unofficial)",
"license": "MIT",
"repository": {
Expand All @@ -22,7 +22,7 @@
"dist"
],
"scripts": {
"prepack": "nuxt-module-build",
"prepack": "nuxt-module-build build",
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:analyze": "nuxi analyze playground",
Expand All @@ -39,11 +39,17 @@
"@quasar/extras": "^1",
"quasar": "^2.8.0"
},
"peerDependenciesMeta": {
"@quasar/extras": {
"optional": true
}
},
"dependencies": {
"@nuxt/kit": "^3.11.1",
"defu": "^6.1.4",
"magic-string": "^0.30.8",
"magicast": "^0.3.3",
"p-memoize": "^7.1.1"
"p-memoize": "^7.1.1",
"semver": "^7.6.0"
},
"devDependencies": {
"@antfu/eslint-config-ts": "0.39.5",
Expand All @@ -59,7 +65,7 @@
"jsdom": "^24.0.0",
"nuxt": "^3.11.1",
"quasar": "^2.15.2",
"sass": "^1.72.0",
"sass": "^1.75.0",
"typescript": "^5.4.3",
"vite": "^5.2.7",
"vitest": "^1.4.0",
Expand Down
10 changes: 10 additions & 0 deletions playground/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineAppConfig } from '#imports'

export default defineAppConfig({
// UI Configuration in `app.config` will override `nuxt.config`
nuxtQuasarCustom: {
brand: {
primary: 'purple',
},
},
})
38 changes: 38 additions & 0 deletions playground/components/PropDefaults.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<script setup lang="ts">
import {ref} from "#imports";
const toggle = ref(true);
</script>


<template>
<div>
<QMarkupTable style="max-width: 600px;">
<tbody>
<tr>
<td>
Q-CircularProgress with blue as the default color:
</td>
<td>
<QCircularProgress />
</td>
</tr>
<tr>
<td>
Q-Toggle with red as the default color:
</td>
<td>
<QToggle v-model="toggle"/>
</td>
</tr>
<tr>
<td>
Q-Linear-Progress with green as the default color:
</td>
<td>
<QLinearProgress indeterminate/>
</td>
</tr>
</tbody>
</QMarkupTable>
</div>
</template>
2 changes: 1 addition & 1 deletion playground/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ function toggleLeftDrawer() {
<q-toolbar>
<q-btn
flat
color="white"
dense
round
icon="menu"
aria-label="Menu"
:glossy="false"
@click="toggleLeftDrawer"
/>

Expand Down
27 changes: 26 additions & 1 deletion playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default defineNuxtConfig({
'../src/module',
'@nuxt/devtools',
],
ssr: true,
quasar: {
plugins: [
'AppFullscreen',
Expand All @@ -15,6 +16,7 @@ export default defineNuxtConfig({
'LoadingBar',
'Notify',
],
sassVariables: true,
iconSet: {
...materialIcons,
colorPicker: materialIconsRound.colorPicker,
Expand All @@ -24,13 +26,36 @@ export default defineNuxtConfig({
fontIcons: ['material-icons'],
animations: 'all',
},
appConfigKey: 'nuxtQuasarCustom',
config: {
dark: true,
brand: {
primary: '#ff0000',
},
},
components: {
defaults: {
QBtn: {
glossy: true,
color: 'primary',
},
QLinearProgress: {
color: 'green',
size: '15px',
stripe: true,
},
QCircularProgress: {
color: 'blue',
indeterminate: true,
},
QSelect: {
outlined: true,
dense: true,
},
QInput: {
outlined: true,
},
QToggle: {
color: 'red',
},
},
},
Expand Down
5 changes: 4 additions & 1 deletion playground/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ const buttons: QBtnProps[] = [
:key="idx"
>
<q-btn
color="primary"
v-bind="button"
/>
</q-item>
Expand All @@ -112,5 +111,9 @@ const buttons: QBtnProps[] = [
Directive Showcase
</p>
<example-list />
<p class="text-h6 q-pt-md">
Quasar Default Prop Values
</p>
<prop-defaults />
</q-page>
</template>
3 changes: 3 additions & 0 deletions playground/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "./.nuxt/tsconfig.json"
}
Loading
Loading