quasar-ui-danx 0.2.26 → 0.2.27

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -81,9 +81,14 @@ export default ({ command }) => {
81
81
  * Settings -> Directories -> Add
82
82
  * Create a new directory w/ name node_modules and set the directory to the node_modules directory in your project
83
83
  * Symlink Danx UI library
84
+ * FOR LOCAL DEVELOPMENT ONLY: if you plan on updating Danx UI
85
+ * Symlinking the danx UI library allows for better integration w/ PHPStorm + tailwindcss + HMR w/ vite.
86
+ * NOTE: Setting this up w/ `npm link` or trying to modify tsconfig.json / vite.config.ts only can be quite
87
+ challenging to get everything configured correctly. I found this to be the best solution.
84
88
  * 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:
89
+ * (recommended) if using docker, add this to your entrypoint script
90
+ * (or manually symlink node_modules/quasar-ui-danx to ../../quasar-ui-danx/ui/src)
91
+ * Directory structure of your project relative to quasar-ui-danx:
87
92
 
88
93
  ```
89
94
  - parent-directory
package/danx-local.sh ADDED
@@ -0,0 +1,14 @@
1
+ #!/bin/bash
2
+
3
+ set +x
4
+
5
+ # Resolve path to quasar-ui-danx (can be up 1 or 2 directories)
6
+ DANX_PATH="$(realpath $(find ../.. -maxdepth 2 -type d -name "quasar-ui-danx" | head -n 1))/ui/src"
7
+ MODULE_PATH="$(pwd)/node_modules/quasar-ui-danx"
8
+
9
+ # symlink ../quasar-ui-danx to node_modules/quasar-ui-danx if the directory exists
10
+ if [ -d "$DANX_PATH" ]; then
11
+ rm -rf node_modules/quasar-ui-danx
12
+ ln -s "$DANX_PATH" "$MODULE_PATH"
13
+ printf "Symlinked $DANX_PATH --> $MODULE_PATH\n"
14
+ fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar-ui-danx",
3
- "version": "0.2.26",
3
+ "version": "0.2.27",
4
4
  "author": "Dan <dan@flytedesk.com>",
5
5
  "description": "DanX Vue / Quasar component library",
6
6
  "license": "MIT",
@@ -7,7 +7,7 @@
7
7
  dense
8
8
  inputmode="numeric"
9
9
  :input-class="{[inputClass]: true, 'text-right bg-white': !hidePrependLabel, 'text-right !text-xs text-black font-normal': hidePrependLabel}"
10
- :class="{'no-prepend-icon w-32': hidePrependLabel, 'prepend-label': !hidePrependLabel}"
10
+ :class="{'no-prepend-icon w-32 max-w-full': hidePrependLabel, 'prepend-label': !hidePrependLabel}"
11
11
  @update:model-value="onInput"
12
12
  >
13
13
  <template #prepend>