quasar-ui-danx 0.2.24 → 0.2.26
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +60 -0
- package/dist/danx.es.js +5298 -5239
- package/dist/danx.es.js.map +1 -1
- package/dist/danx.umd.js +5 -5
- package/dist/danx.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/config/index.ts +2 -2
- package/src/helpers/FlashMessages.ts +2 -2
- package/src/helpers/hotkeys.ts +59 -0
- package/src/helpers/index.ts +2 -1
- package/src/helpers/request.ts +2 -2
package/README.md
CHANGED
@@ -39,6 +39,66 @@ yarn add quasar-ui-danx quasar
|
|
39
39
|
yarn add -D sass vite-svg-loader tailwindcss eslint eslint-plugin-import autoprefixer
|
40
40
|
```
|
41
41
|
|
42
|
+
### Setup PHPStorm
|
43
|
+
|
44
|
+
* Disable Typescript language service
|
45
|
+
* Setup node_modules directory as a library
|
46
|
+
* Configure `tsconfig.json`
|
47
|
+
|
48
|
+
```json
|
49
|
+
{
|
50
|
+
"include": [
|
51
|
+
"node_modules/quasar-ui-danx/**/*"
|
52
|
+
]
|
53
|
+
}
|
54
|
+
```
|
55
|
+
|
56
|
+
* Configure `vite.config.ts`
|
57
|
+
|
58
|
+
```ts
|
59
|
+
export default ({ command }) => {
|
60
|
+
// For development w/ HMR, load the danx library + styles directly from the directory
|
61
|
+
// NOTE: These are the paths relative to the mounted quasar-ui-danx directory inside the mva docker container
|
62
|
+
const danx = (command === "serve" ? {
|
63
|
+
"quasar-ui-danx": resolve(__dirname, "../quasar-ui-danx/ui/src"),
|
64
|
+
"quasar-ui-danx-styles": resolve(__dirname, "../quasar-ui-danx/src/styles/index.scss")
|
65
|
+
} : {
|
66
|
+
// Import from quasar-ui-danx module for production
|
67
|
+
"quasar-ui-danx-styles": "quasar-ui-danx/dist/style.css"
|
68
|
+
});
|
69
|
+
|
70
|
+
return defineConfig({
|
71
|
+
resolve: {
|
72
|
+
alias: {
|
73
|
+
...danx
|
74
|
+
}
|
75
|
+
},
|
76
|
+
});
|
77
|
+
}
|
78
|
+
```
|
79
|
+
|
80
|
+
* Add node_modules as a library in PHPStorm
|
81
|
+
* Settings -> Directories -> Add
|
82
|
+
* Create a new directory w/ name node_modules and set the directory to the node_modules directory in your project
|
83
|
+
* Symlink Danx UI library
|
84
|
+
* copy/paste and run `./danx-local.sh`
|
85
|
+
* (or manually symlink node_modules/quasar-ui-danx to ../../quasar-ui-danx/ui/src)
|
86
|
+
* Directory structure of your project relative to quasar-ui-danx:
|
87
|
+
|
88
|
+
```
|
89
|
+
- parent-directory
|
90
|
+
- your-app
|
91
|
+
- tsconfig.json
|
92
|
+
- vite.config.ts
|
93
|
+
- src
|
94
|
+
- node_modules
|
95
|
+
- quasar-ui-danx -> (symlink) ../../quasar-ui-danx/ui/src
|
96
|
+
- quasar-ui-danx
|
97
|
+
- ui
|
98
|
+
- src
|
99
|
+
- tests
|
100
|
+
```
|
101
|
+
|
42
102
|
### Setup Tailwind
|
43
103
|
|
44
104
|
Initialize config files for tailwind
|