Skip to content

Commit 742a666

Browse files
committed
task: prettier updates
1 parent 714f4b7 commit 742a666

30 files changed

+474
-455
lines changed

ui/.gitignore

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,33 @@
1-
# Testing
2-
/test/jest/coverage
1+
.DS_Store
2+
.thumbs.db
3+
node_modules
34

4-
ui/yarn.lock
5-
ui/node_modules
6-
ui/dev/yarn.lock
7-
ui/dev/node_modules
5+
# Quasar core related directories
6+
.quasar
7+
/dist
88

9-
demo/yarn.lock
10-
demo/node_modules
9+
# Cordova related directories and files
10+
/src-cordova/node_modules
11+
/src-cordova/platforms
12+
/src-cordova/plugins
13+
/src-cordova/www
1114

12-
./dist
15+
# Capacitor related directories and files
16+
/src-capacitor/www
17+
/src-capacitor/node_modules
18+
19+
# BEX related directories and files
20+
/src-bex/www
21+
/src-bex/js/core
22+
23+
# Log files
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# Editor directories and files
29+
.idea
30+
*.suo
31+
*.ntvs*
32+
*.njsproj
33+
*.sln

ui/README.md

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,29 +46,29 @@ export default defineBoot(({ app }) => {
4646
<style src="@quasar/quasar-ui-qmarkdown/dist/index.css"></style>
4747

4848
<script>
49-
import { QMarkdown } from '@quasar/quasar-ui-qmarkdown'
49+
import { QMarkdown } from '@quasar/quasar-ui-qmarkdown';
5050
51-
export default {
52-
components: {
53-
QMarkdown
54-
}
55-
}
51+
export default {
52+
components: {
53+
QMarkdown,
54+
},
55+
};
5656
</script>
5757
```
5858

5959
## Vue CLI project
6060

6161
```js
62-
import VuePlugin from '@quasar/quasar-ui-qmarkdown'
63-
import '@quasar/quasar-ui-qmarkdown/dist/index.css'
64-
import { createApp } from "vue";
62+
import VuePlugin from '@quasar/quasar-ui-qmarkdown';
63+
import '@quasar/quasar-ui-qmarkdown/dist/index.css';
64+
import { createApp } from 'vue';
6565

6666
const app = createApp({
6767
// root instance definition
6868
});
6969

70-
app.use(VuePlugin)
71-
app.mount("#q-app");
70+
app.use(VuePlugin);
71+
app.mount('#q-app');
7272
```
7373

7474
**OR**:
@@ -77,13 +77,13 @@ app.mount("#q-app");
7777
<style src="@quasar/quasar-ui-qmarkdown/dist/index.css"></style>
7878

7979
<script>
80-
import { QMarkdown } from '@quasar/quasar-ui-qmarkdown'
80+
import { QMarkdown } from '@quasar/quasar-ui-qmarkdown';
8181
82-
export default {
83-
components: {
84-
QMarkdown
85-
}
86-
}
82+
export default {
83+
components: {
84+
QMarkdown,
85+
},
86+
};
8787
</script>
8888
```
8989

@@ -96,21 +96,24 @@ Add the following tag(s) after the Quasar ones:
9696
```html
9797
<head>
9898
<!-- AFTER the Quasar stylesheet tags: -->
99-
<link href="https://cdn.jsdelivr.net/npm/@quasar/quasar-ui-qmarkdown/dist/index.min.css" rel="stylesheet" type="text/css">
99+
<link href="https://cdn.jsdelivr.net/npm/@quasar/quasar-ui-qmarkdown/dist/index.min.css" rel="stylesheet" type="text/css" />
100100
</head>
101101
<body>
102102
<!-- at end of body, AFTER Quasar script(s): -->
103103
<script src="https://cdn.jsdelivr.net/npm/@quasar/quasar-ui-qmarkdown/dist/index.umd.min.js"></script>
104104
</body>
105105
```
106+
106107
If you need the RTL variant of the CSS, then go for the following (instead of the above stylesheet link):
108+
107109
```html
108-
<link href="https://cdn.jsdelivr.net/npm/@quasar/quasar-ui-qmarkdown/dist/index.rtl.min.css" rel="stylesheet" type="text/css">
110+
<link href="https://cdn.jsdelivr.net/npm/@quasar/quasar-ui-qmarkdown/dist/index.rtl.min.css" rel="stylesheet" type="text/css" />
109111
```
110112

111113
Test UMD version on [CodePen](https://codepen.io/Hawkeye64/pen/PojXVmV).
112114

113115
# Setup
116+
114117
This project is a yarn workspace mono-repo.
115118

116119
```bash
@@ -121,7 +124,9 @@ $ quasar dev
121124
```
122125

123126
# Donate
127+
124128
If you appreciate the work that went into this project, please consider donating to [Quasar](https://donate.quasar.dev) or [Jeff](https://github.com/sponsors/hawkeye64).
125129

126130
# License
131+
127132
MIT (c) Jeff Galbraith <[email protected]>

ui/build/build.api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ global.distDir = path.resolve(__dirname, '../dist')
44

55
require('quasar-json-api')({
66
buildVetur: true,
7-
buildTypes: true
7+
buildTypes: true,
88
})

ui/build/config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const { name, author, version } = require('../package.json');
2-
const year = new Date().getFullYear();
1+
const { name, author, version } = require('../package.json')
2+
const year = new Date().getFullYear()
33

44
module.exports = {
55
name,
@@ -11,4 +11,4 @@ module.exports = {
1111
' * (c) ' + year + ' ' + author + '\n' +
1212
' * Released under the MIT License.\n' +
1313
' */\n',
14-
};
14+
}

ui/build/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ console.log()
1111
require('./script.app-ext.js').syncAppExt()
1212
require('./script.clean.js')
1313

14-
console.log(` 📦 Building ${ green('v' + require('../package.json').version) }...${ parallel ? blue(' [multi-threaded]') : '' }\n`)
14+
console.log(
15+
` 📦 Building ${green('v' + require('../package.json').version)}...${parallel ? blue(' [multi-threaded]') : ''}\n`,
16+
)
1517

1618
createFolder('dist')
1719

ui/build/script.app-ext.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
const
2-
fs = require('fs'),
1+
const fs = require('fs'),
32
path = require('path'),
43
root = path.resolve(__dirname, '../..'),
5-
resolvePath = file => path.resolve(root, file),
4+
resolvePath = (file) => path.resolve(root, file),
65
{ blue } = require('chalk')
76

87
const writeJson = function (file, json) {
@@ -37,22 +36,22 @@ module.exports.syncAppExt = function (both = true) {
3736

3837
// check dependencies
3938
if (appExtJson.dependencies !== void 0) {
40-
if (appExtJson.dependencies[ name ] !== void 0) {
41-
appExtJson.dependencies[ name ] = '^' + version
39+
if (appExtJson.dependencies[name] !== void 0) {
40+
appExtJson.dependencies[name] = '^' + version
4241
finished = true
4342
}
4443
}
4544
// check devDependencies, if not finished
4645
if (finished === false && appExtJson.devDependencies !== void 0) {
47-
if (appExtJson.devDependencies[ name ] !== void 0) {
48-
appExtJson.devDependencies[ name ] = '^' + version
46+
if (appExtJson.devDependencies[name] !== void 0) {
47+
appExtJson.devDependencies[name] = '^' + version
4948
finished = true
5049
}
5150
}
5251

5352
if (finished === true) {
5453
writeJson(appExtFile, appExtJson)
55-
console.log(` ⭐️ App Extension version ${ blue(appExtJson.name) } synced with UI version.\n`)
54+
console.log(` ⭐️ App Extension version ${blue(appExtJson.name)} synced with UI version.\n`)
5655
return
5756
}
5857

ui/build/script.clean.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
var
2-
rimraf = require('rimraf'),
3-
path = require('path')
1+
var rimraf = require('rimraf'),
2+
path = require('path');
43

5-
rimraf.sync(path.resolve(__dirname, '../dist/*'))
6-
console.log(' 💥 Cleaned build artifacts.\n')
4+
rimraf.sync(path.resolve(__dirname, '../dist/*'));
5+
console.log(' 💥 Cleaned build artifacts.\n');

ui/build/script.css.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function generate(src, dest) {
6868
postCssRtlCompiler
6969
.process(code, { from: void 0 })
7070
.then((code) => generateUMD(dest, code.css, '.rtl')),
71-
])
71+
]),
7272
)
7373
}
7474

0 commit comments

Comments
 (0)