Skip to content

Commit 83442a1

Browse files
authored
Merge pull request #93 from Maiquu/development
v2.1.0.rc
2 parents 7a61c1f + 864f96f commit 83442a1

31 files changed

Lines changed: 7129 additions & 6182 deletions

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"prettier.enable": false,
33
"editor.formatOnSave": false,
44
"editor.codeActionsOnSave": {
5-
"source.fixAll.eslint": true
5+
"source.fixAll.eslint": "explicit"
66
},
77
"files.exclude": {
88
"node_modules/[^q]*": true

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ Module will import css in following order:
179179
2) Icons
180180
3) Animations
181181
4) Quasar CSS
182-
5) Brand
183182

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

@@ -193,7 +192,6 @@ export default defineNuxtConfig({
193192
'quasar/animations',
194193
'quasar/icons',
195194
'quasar/css',
196-
'quasar/brand' // If config.brand is used
197195
// ...
198196
]
199197
})

package.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nuxt-quasar-ui",
33
"type": "module",
44
"version": "2.0.8",
5-
"packageManager": "pnpm@8.11.0",
5+
"packageManager": "pnpm@9.0.6",
66
"description": "Quasar Module for Nuxt (Unofficial)",
77
"license": "MIT",
88
"repository": {
@@ -22,7 +22,7 @@
2222
"dist"
2323
],
2424
"scripts": {
25-
"prepack": "nuxt-module-build",
25+
"prepack": "nuxt-module-build build",
2626
"dev": "nuxi dev playground",
2727
"dev:build": "nuxi build playground",
2828
"dev:analyze": "nuxi analyze playground",
@@ -39,11 +39,17 @@
3939
"@quasar/extras": "^1",
4040
"quasar": "^2.8.0"
4141
},
42+
"peerDependenciesMeta": {
43+
"@quasar/extras": {
44+
"optional": true
45+
}
46+
},
4247
"dependencies": {
4348
"@nuxt/kit": "^3.11.1",
49+
"defu": "^6.1.4",
4450
"magic-string": "^0.30.8",
45-
"magicast": "^0.3.3",
46-
"p-memoize": "^7.1.1"
51+
"p-memoize": "^7.1.1",
52+
"semver": "^7.6.0"
4753
},
4854
"devDependencies": {
4955
"@antfu/eslint-config-ts": "0.39.5",
@@ -59,7 +65,7 @@
5965
"jsdom": "^24.0.0",
6066
"nuxt": "^3.11.1",
6167
"quasar": "^2.15.2",
62-
"sass": "^1.72.0",
68+
"sass": "^1.75.0",
6369
"typescript": "^5.4.3",
6470
"vite": "^5.2.7",
6571
"vitest": "^1.4.0",

playground/app.config.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { defineAppConfig } from '#imports'
2+
3+
export default defineAppConfig({
4+
// UI Configuration in `app.config` will override `nuxt.config`
5+
nuxtQuasarCustom: {
6+
brand: {
7+
primary: 'purple',
8+
},
9+
},
10+
})
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<script setup lang="ts">
2+
import {ref} from "#imports";
3+
const toggle = ref(true);
4+
</script>
5+
6+
7+
<template>
8+
<div>
9+
<QMarkupTable style="max-width: 600px;">
10+
<tbody>
11+
<tr>
12+
<td>
13+
Q-CircularProgress with blue as the default color:
14+
</td>
15+
<td>
16+
<QCircularProgress />
17+
</td>
18+
</tr>
19+
<tr>
20+
<td>
21+
Q-Toggle with red as the default color:
22+
</td>
23+
<td>
24+
<QToggle v-model="toggle"/>
25+
</td>
26+
</tr>
27+
<tr>
28+
<td>
29+
Q-Linear-Progress with green as the default color:
30+
</td>
31+
<td>
32+
<QLinearProgress indeterminate/>
33+
</td>
34+
</tr>
35+
</tbody>
36+
</QMarkupTable>
37+
</div>
38+
</template>

playground/layouts/default.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ function toggleLeftDrawer() {
5959
<q-toolbar>
6060
<q-btn
6161
flat
62+
color="white"
6263
dense
6364
round
6465
icon="menu"
6566
aria-label="Menu"
66-
:glossy="false"
6767
@click="toggleLeftDrawer"
6868
/>
6969

playground/nuxt.config.ts

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export default defineNuxtConfig({
66
'../src/module',
77
'@nuxt/devtools',
88
],
9+
ssr: true,
910
quasar: {
1011
plugins: [
1112
'AppFullscreen',
@@ -15,6 +16,7 @@ export default defineNuxtConfig({
1516
'LoadingBar',
1617
'Notify',
1718
],
19+
sassVariables: true,
1820
iconSet: {
1921
...materialIcons,
2022
colorPicker: materialIconsRound.colorPicker,
@@ -24,13 +26,36 @@ export default defineNuxtConfig({
2426
fontIcons: ['material-icons'],
2527
animations: 'all',
2628
},
29+
appConfigKey: 'nuxtQuasarCustom',
2730
config: {
2831
dark: true,
32+
brand: {
33+
primary: '#ff0000',
34+
},
2935
},
3036
components: {
3137
defaults: {
3238
QBtn: {
33-
glossy: true,
39+
color: 'primary',
40+
},
41+
QLinearProgress: {
42+
color: 'green',
43+
size: '15px',
44+
stripe: true,
45+
},
46+
QCircularProgress: {
47+
color: 'blue',
48+
indeterminate: true,
49+
},
50+
QSelect: {
51+
outlined: true,
52+
dense: true,
53+
},
54+
QInput: {
55+
outlined: true,
56+
},
57+
QToggle: {
58+
color: 'red',
3459
},
3560
},
3661
},

playground/pages/index.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ const buttons: QBtnProps[] = [
103103
:key="idx"
104104
>
105105
<q-btn
106-
color="primary"
107106
v-bind="button"
108107
/>
109108
</q-item>
@@ -112,5 +111,9 @@ const buttons: QBtnProps[] = [
112111
Directive Showcase
113112
</p>
114113
<example-list />
114+
<p class="text-h6 q-pt-md">
115+
Quasar Default Prop Values
116+
</p>
117+
<prop-defaults />
115118
</q-page>
116119
</template>

playground/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./.nuxt/tsconfig.json"
3+
}

0 commit comments

Comments
 (0)