@mythpe/quasar-ui-qui 0.0.11 → 0.0.13-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -5
- package/jsconfig.json +10 -0
- package/package.json +20 -11
- package/src/boot/register.ts +6 -0
- package/src/components/form/MBtn.vue +2 -2
- package/src/components/grid/MBlock.vue +2 -2
- package/src/components/grid/MCol.vue +2 -2
- package/src/components/grid/MContainer.vue +2 -2
- package/src/components/grid/MRow.vue +2 -2
- package/src/index.common.js +1 -6
- package/src/index.esm.js +3 -5
- package/src/index.umd.js +2 -6
- package/src/types/index.d.ts +1 -1
- package/src/types/{VuePlugin.d.ts → myth.ts} +6 -8
- package/src/utils/myth.ts +30 -0
- package/src/utils/vue-plugin.ts +43 -0
- package/tsconfig.json +7 -1
- package/.eslintrc.cjs +0 -103
- package/.gitattributes +0 -2
- package/src/utils.ts +0 -33
- package/src/vue-plugin.js +0 -43
- package/umd-test.html +0 -59
package/index.d.ts
CHANGED
package/jsconfig.json
ADDED
package/package.json
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mythpe/quasar-ui-qui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13-dev",
|
|
4
4
|
"description": "MyTh Quasar UI Kit App Extension",
|
|
5
|
-
"author":
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "MyTh Ahmed Faiz",
|
|
7
|
+
"mobile": "+966590470092",
|
|
8
|
+
"email": "mythpe@gmail.com",
|
|
9
|
+
"url": "https://www.4myth.com"
|
|
10
|
+
},
|
|
8
11
|
"license": "MIT",
|
|
12
|
+
"type": "module",
|
|
9
13
|
"module": "src/index.esm.js",
|
|
10
14
|
"main": "src/index.common.js",
|
|
11
|
-
"type": "module",
|
|
12
15
|
"scripts": {
|
|
13
16
|
"dev": "cd ../dev && yarn dev && cd ..",
|
|
14
17
|
"dev:umd": "yarn build && node build/script.open-umd.js",
|
|
@@ -21,10 +24,14 @@
|
|
|
21
24
|
"build:css": "node build/script.css.js"
|
|
22
25
|
},
|
|
23
26
|
"dependencies": {
|
|
24
|
-
"lodash": "^4.17.21",
|
|
25
27
|
"typed.js": "^2.1.0",
|
|
26
|
-
"vee-validate": "^4.14.
|
|
27
|
-
"
|
|
28
|
+
"vee-validate": "^4.14.0",
|
|
29
|
+
"@vee-validate/i18n": "^4.14.0",
|
|
30
|
+
"@vee-validate/rules": "^4.14.0",
|
|
31
|
+
"vue-i18n": "^10.0.0"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"lodash": "^4.17.21"
|
|
28
35
|
},
|
|
29
36
|
"devDependencies": {
|
|
30
37
|
"@quasar/app-webpack": "^3.13.0",
|
|
@@ -33,14 +40,15 @@
|
|
|
33
40
|
"@rollup/plugin-json": "^4.0.0",
|
|
34
41
|
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
35
42
|
"@rollup/plugin-replace": "^2.4.2",
|
|
43
|
+
"@types/express": "^5.0.0",
|
|
36
44
|
"@types/lodash": "^4.17.13",
|
|
37
|
-
"@types/node": "^
|
|
45
|
+
"@types/node": "^22.9.1",
|
|
38
46
|
"@typescript-eslint/eslint-plugin": "^7.16.0",
|
|
39
47
|
"@typescript-eslint/parser": "^7.16.0",
|
|
40
48
|
"autoprefixer": "^10.0.2",
|
|
41
49
|
"chalk": "^4.1.0",
|
|
42
50
|
"core-js": "^3.0.0",
|
|
43
|
-
"cssnano": "^
|
|
51
|
+
"cssnano": "^7.0.6",
|
|
44
52
|
"eslint": "^8.57.0",
|
|
45
53
|
"eslint-config-standard": "^17.0.0",
|
|
46
54
|
"eslint-plugin-import": "^2.19.1",
|
|
@@ -53,8 +61,9 @@
|
|
|
53
61
|
"quasar": "^2.16.0",
|
|
54
62
|
"rimraf": "^3.0.0",
|
|
55
63
|
"rollup": "^2.45.0",
|
|
56
|
-
"rtlcss": "^
|
|
64
|
+
"rtlcss": "^4.3.0",
|
|
57
65
|
"sass": "^1.33.0",
|
|
66
|
+
"typescript": "~5.5.3",
|
|
58
67
|
"uglify-js": "^3.13.3",
|
|
59
68
|
"vue": "^3.0.0",
|
|
60
69
|
"vue-router": "^4.0.0",
|
|
@@ -3,10 +3,10 @@ import type { MBtnProps } from '../../types'
|
|
|
3
3
|
import { useI18n } from 'vue-i18n'
|
|
4
4
|
import { computed } from 'vue'
|
|
5
5
|
import { extend } from 'quasar'
|
|
6
|
-
import {
|
|
6
|
+
import { myth } from '../../utils/myth'
|
|
7
7
|
|
|
8
8
|
const props = defineProps<MBtnProps>()
|
|
9
|
-
const options = computed(() =>
|
|
9
|
+
const options = computed(() => myth.options.value.btn ?? {})
|
|
10
10
|
const { t, te } = useI18n({ useScope: 'global' })
|
|
11
11
|
const getLabel = computed(() => {
|
|
12
12
|
if (props.label !== undefined) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
2
|
import type { MBlockProps } from '../../types'
|
|
3
3
|
import { computed } from 'vue'
|
|
4
|
-
import MythOptions from '../../utils'
|
|
4
|
+
import MythOptions from '../../utils/myth'
|
|
5
5
|
import { extend } from 'quasar'
|
|
6
6
|
|
|
7
7
|
interface Props {
|
|
@@ -15,7 +15,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
15
15
|
rounded: !1,
|
|
16
16
|
shadow: 'none'
|
|
17
17
|
})
|
|
18
|
-
const block = computed(() => MythOptions.
|
|
18
|
+
const block = computed(() => MythOptions.options.value.block ?? {})
|
|
19
19
|
const options = computed<Props>(() => extend(!0, { ...props }, block.value))
|
|
20
20
|
defineOptions({
|
|
21
21
|
name: 'MBlock',
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
setup
|
|
4
4
|
>
|
|
5
5
|
import { computed } from 'vue'
|
|
6
|
+
import { uniq } from 'lodash'
|
|
6
7
|
import type { MColProps } from '../../types'
|
|
7
|
-
import lodash from 'lodash'
|
|
8
8
|
|
|
9
9
|
interface Props {
|
|
10
10
|
name?: MColProps['name']
|
|
@@ -44,7 +44,7 @@ const classes = computed(() => {
|
|
|
44
44
|
if (list.length === 1 && props.col !== !1) {
|
|
45
45
|
list.push('col')
|
|
46
46
|
}
|
|
47
|
-
return
|
|
47
|
+
return uniq(list)
|
|
48
48
|
// return list
|
|
49
49
|
})
|
|
50
50
|
defineOptions({
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<script lang="ts" setup>
|
|
10
10
|
import type { MContainerProps } from '../../types'
|
|
11
|
-
import MythOptions from '../../utils'
|
|
11
|
+
import MythOptions from '../../utils/myth'
|
|
12
12
|
import { computed } from 'vue'
|
|
13
13
|
|
|
14
14
|
interface Props {
|
|
@@ -18,7 +18,7 @@ interface Props {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
const props = defineProps<Props>()
|
|
21
|
-
const styles = computed(() => MythOptions.
|
|
21
|
+
const styles = computed(() => MythOptions.options.value?.style ?? {})
|
|
22
22
|
const sizeProp = computed(() => {
|
|
23
23
|
if (props.size !== undefined) {
|
|
24
24
|
return props.size
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
>
|
|
5
5
|
import type { MRowProps } from '../../types'
|
|
6
6
|
import { computed } from 'vue'
|
|
7
|
-
import MythOptions from '../../utils'
|
|
7
|
+
import MythOptions from '../../utils/myth'
|
|
8
8
|
|
|
9
9
|
interface Props {
|
|
10
10
|
gutter?: MRowProps['gutter'];
|
|
@@ -12,7 +12,7 @@ interface Props {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
const props = defineProps<Props>()
|
|
15
|
-
const defSize = computed<string>(() => MythOptions.
|
|
15
|
+
const defSize = computed<string>(() => MythOptions.options.value.style?.gutters || '')
|
|
16
16
|
const gutterSize = computed<string>(() => props.gutter === !0 ? defSize.value : (props.gutter || defSize.value))
|
|
17
17
|
const colSize = computed<string>(() => props.gutter === !0 ? defSize.value : (props.gutter || defSize.value))
|
|
18
18
|
defineOptions({
|
package/src/index.common.js
CHANGED
package/src/index.esm.js
CHANGED
package/src/index.umd.js
CHANGED
package/src/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './components'
|
|
2
|
-
export * from './
|
|
2
|
+
export * from './myth'
|
|
@@ -2,7 +2,7 @@ import type { QBtnProps } from 'quasar'
|
|
|
2
2
|
import type { Ref } from 'vue'
|
|
3
3
|
import type { MBlockProps, StyleSize } from './components'
|
|
4
4
|
|
|
5
|
-
export interface
|
|
5
|
+
export interface UiOptionsContext {
|
|
6
6
|
/**
|
|
7
7
|
* Style of the components.
|
|
8
8
|
*/
|
|
@@ -34,11 +34,9 @@ export interface UiOptions {
|
|
|
34
34
|
block?: Partial<MBlockProps>;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export interface
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
withBtnDefaults: (values: Partial<QBtnProps>) => void;
|
|
43
|
-
btnDefaults: () => UiOptions;
|
|
37
|
+
export interface MythContext {
|
|
38
|
+
options: Ref<UiOptionsContext>;
|
|
39
|
+
setOptions: (values: Partial<UiOptionsContext>) => void;
|
|
40
|
+
withOptions: (values: Partial<UiOptionsContext>) => void;
|
|
41
|
+
withBtnOptions: (values: Partial<QBtnProps>) => void;
|
|
44
42
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ref } from 'vue'
|
|
2
|
+
import type { QBtnProps } from 'quasar'
|
|
3
|
+
import { extend } from 'quasar'
|
|
4
|
+
import type { MythContext, UiOptionsContext } from '../types'
|
|
5
|
+
|
|
6
|
+
const defGutters = 'md'
|
|
7
|
+
const defaultOptions: UiOptionsContext = {
|
|
8
|
+
style: {
|
|
9
|
+
gutters: defGutters
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
const optionsRef = ref<UiOptionsContext>({ ...defaultOptions })
|
|
13
|
+
|
|
14
|
+
export const myth : MythContext = {
|
|
15
|
+
options: optionsRef,
|
|
16
|
+
setOptions (values: Partial<UiOptionsContext>) {
|
|
17
|
+
optionsRef.value = extend(!0, defaultOptions, values)
|
|
18
|
+
},
|
|
19
|
+
withOptions (values: Partial<UiOptionsContext>) {
|
|
20
|
+
optionsRef.value = extend(!0, defaultOptions, optionsRef.value, values)
|
|
21
|
+
},
|
|
22
|
+
withBtnOptions (values: Partial<QBtnProps>) {
|
|
23
|
+
this.withOptions({
|
|
24
|
+
btn: {
|
|
25
|
+
props: values
|
|
26
|
+
}
|
|
27
|
+
})
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export default myth
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { App } from 'vue'
|
|
2
|
+
import { name, version } from '../../package.json'
|
|
3
|
+
import { myth } from './myth'
|
|
4
|
+
import MBtn from '../components/form/MBtn.vue'
|
|
5
|
+
import MBlock from '../components/grid/MBlock.vue'
|
|
6
|
+
import MCol from '../components/grid/MCol.vue'
|
|
7
|
+
import MColumn from '../components/grid/MColumn.vue'
|
|
8
|
+
import MContainer from '../components/grid/MContainer.vue'
|
|
9
|
+
import MHelpRow from '../components/grid/MHelpRow.vue'
|
|
10
|
+
import MRow from '../components/grid/MRow.vue'
|
|
11
|
+
import MTypingString from '../components/typography/MTypingString.vue'
|
|
12
|
+
|
|
13
|
+
function install (app: App, options = {}) {
|
|
14
|
+
myth.withOptions(options)
|
|
15
|
+
|
|
16
|
+
// Form.
|
|
17
|
+
app.component('MBtn', MBtn)
|
|
18
|
+
|
|
19
|
+
// Grid.
|
|
20
|
+
app.component('MBlock', MBlock)
|
|
21
|
+
app.component('MCol', MCol)
|
|
22
|
+
app.component('MColumn', MColumn)
|
|
23
|
+
app.component('MContainer', MContainer)
|
|
24
|
+
app.component('MHelpRow', MHelpRow)
|
|
25
|
+
app.component('MRow', MRow)
|
|
26
|
+
|
|
27
|
+
// Typography.
|
|
28
|
+
app.component('MTypingString', MTypingString)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
name,
|
|
33
|
+
version,
|
|
34
|
+
install,
|
|
35
|
+
myth
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export default {
|
|
39
|
+
name,
|
|
40
|
+
version,
|
|
41
|
+
install,
|
|
42
|
+
myth
|
|
43
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
+
"baseUrl": "./",
|
|
4
|
+
"rootDir": ".",
|
|
5
|
+
"outDir": "./dist",
|
|
3
6
|
"esModuleInterop": true,
|
|
4
7
|
"skipLibCheck": true,
|
|
5
8
|
"target": "esnext",
|
|
@@ -20,9 +23,12 @@
|
|
|
20
23
|
"allowUnusedLabels": false,
|
|
21
24
|
"noImplicitOverride": true,
|
|
22
25
|
"exactOptionalPropertyTypes": true,
|
|
23
|
-
"noUncheckedIndexedAccess": true
|
|
26
|
+
"noUncheckedIndexedAccess": true
|
|
24
27
|
},
|
|
25
28
|
"exclude": [
|
|
26
29
|
"./build"
|
|
30
|
+
],
|
|
31
|
+
"include": [
|
|
32
|
+
"src/**/*"
|
|
27
33
|
]
|
|
28
34
|
}
|
package/.eslintrc.cjs
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
|
|
3
|
-
// This option interrupts the configuration hierarchy at this file
|
|
4
|
-
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
|
|
5
|
-
root: true,
|
|
6
|
-
|
|
7
|
-
// https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser
|
|
8
|
-
// Must use parserOptions instead of "parser" to allow vue-eslint-parser to keep working
|
|
9
|
-
// `parser: 'vue-eslint-parser'` is already included with any 'plugin:vue/**' config and should be omitted
|
|
10
|
-
parserOptions: {
|
|
11
|
-
parser: require.resolve('@typescript-eslint/parser'),
|
|
12
|
-
extraFileExtensions: ['.vue']
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
env: {
|
|
16
|
-
browser: true,
|
|
17
|
-
es2021: true,
|
|
18
|
-
node: true
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
// Rules order is important, please avoid shuffling them
|
|
22
|
-
extends: [
|
|
23
|
-
// Base ESLint recommended rules
|
|
24
|
-
// 'eslint:recommended',
|
|
25
|
-
|
|
26
|
-
// https://typescript-eslint.io/getting-started/legacy-eslint-setup
|
|
27
|
-
// ESLint typescript rules
|
|
28
|
-
'plugin:@typescript-eslint/recommended',
|
|
29
|
-
|
|
30
|
-
// Uncomment any of the lines below to choose desired strictness,
|
|
31
|
-
// but leave only one uncommented!
|
|
32
|
-
// See https://eslint.vuejs.org/rules/#available-rules
|
|
33
|
-
// 'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention)
|
|
34
|
-
'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
|
|
35
|
-
// 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
|
|
36
|
-
'standard'
|
|
37
|
-
],
|
|
38
|
-
|
|
39
|
-
plugins: [
|
|
40
|
-
// required to apply rules which need type information
|
|
41
|
-
'@typescript-eslint',
|
|
42
|
-
|
|
43
|
-
// https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-files
|
|
44
|
-
// required to lint *.vue files
|
|
45
|
-
'vue'
|
|
46
|
-
|
|
47
|
-
],
|
|
48
|
-
|
|
49
|
-
globals: {
|
|
50
|
-
ga: 'readonly', // Google Analytics
|
|
51
|
-
cordova: 'readonly',
|
|
52
|
-
__statics: 'readonly',
|
|
53
|
-
__QUASAR_SSR__: 'readonly',
|
|
54
|
-
__QUASAR_SSR_SERVER__: 'readonly',
|
|
55
|
-
__QUASAR_SSR_CLIENT__: 'readonly',
|
|
56
|
-
__QUASAR_SSR_PWA__: 'readonly',
|
|
57
|
-
process: 'readonly',
|
|
58
|
-
Capacitor: 'readonly',
|
|
59
|
-
chrome: 'readonly'
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
// add your custom rules here
|
|
63
|
-
rules: {
|
|
64
|
-
|
|
65
|
-
// allow async-await
|
|
66
|
-
'generator-star-spacing': 'off',
|
|
67
|
-
// allow paren-less arrow functions
|
|
68
|
-
'arrow-parens': 'off',
|
|
69
|
-
'one-var': 'off',
|
|
70
|
-
'no-void': 'off',
|
|
71
|
-
'multiline-ternary': 'off',
|
|
72
|
-
|
|
73
|
-
'import/first': 'off',
|
|
74
|
-
'import/namespace': 'error',
|
|
75
|
-
'import/default': 'error',
|
|
76
|
-
'import/export': 'error',
|
|
77
|
-
'import/extensions': 'off',
|
|
78
|
-
'import/no-unresolved': 'off',
|
|
79
|
-
'import/no-extraneous-dependencies': 'off',
|
|
80
|
-
|
|
81
|
-
// The core 'import/named' rules
|
|
82
|
-
// does not work with type definitions
|
|
83
|
-
'import/named': 'off',
|
|
84
|
-
|
|
85
|
-
'prefer-promise-reject-errors': 'off',
|
|
86
|
-
|
|
87
|
-
quotes: ['warn', 'single', { avoidEscape: true }],
|
|
88
|
-
|
|
89
|
-
// this rule, if on, would require explicit return type on the `render` function
|
|
90
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
91
|
-
|
|
92
|
-
// in plain CommonJS modules, you can't use `import foo = require('foo')` to pass this rule, so it has to be disabled
|
|
93
|
-
'@typescript-eslint/no-var-requires': 'off',
|
|
94
|
-
|
|
95
|
-
// The core 'no-unused-vars' rules (in the eslint:recommended ruleset)
|
|
96
|
-
// does not work with type definitions
|
|
97
|
-
'no-unused-vars': 'off',
|
|
98
|
-
|
|
99
|
-
// allow debugger during development only
|
|
100
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
101
|
-
'@typescript-eslint/no-explicit-any': 'off'
|
|
102
|
-
}
|
|
103
|
-
}
|
package/.gitattributes
DELETED
package/src/utils.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ref } from 'vue'
|
|
2
|
-
import type { QBtnProps } from 'quasar'
|
|
3
|
-
import { extend } from 'quasar'
|
|
4
|
-
import type { UiOptions } from './types'
|
|
5
|
-
|
|
6
|
-
const defGutters = 'md'
|
|
7
|
-
const defaultOptions: UiOptions = {
|
|
8
|
-
style: {
|
|
9
|
-
gutters: defGutters
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
const cmDefaults = ref<UiOptions>({ ...defaultOptions })
|
|
13
|
-
const MythOptions = {
|
|
14
|
-
defaults: cmDefaults,
|
|
15
|
-
setDefaults (values: Partial<UiOptions>) {
|
|
16
|
-
cmDefaults.value = extend(!0, defaultOptions, values)
|
|
17
|
-
},
|
|
18
|
-
withDefaults (values: Partial<UiOptions>) {
|
|
19
|
-
cmDefaults.value = extend(!0, defaultOptions, cmDefaults.value, values)
|
|
20
|
-
},
|
|
21
|
-
withBtnDefaults (values: Partial<QBtnProps>) {
|
|
22
|
-
cmDefaults.value = {
|
|
23
|
-
...cmDefaults.value,
|
|
24
|
-
btn: {
|
|
25
|
-
...cmDefaults.value.btn,
|
|
26
|
-
props: { ...values }
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export default MythOptions
|
|
33
|
-
export { MythOptions }
|
package/src/vue-plugin.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import js from '../package.json'
|
|
2
|
-
import { MythOptions } from './utils'
|
|
3
|
-
import MBtn from './components/form/MBtn.vue'
|
|
4
|
-
import MBlock from './components/grid/MBlock.vue'
|
|
5
|
-
import MCol from './components/grid/MCol.vue'
|
|
6
|
-
import MColumn from './components/grid/MColumn.vue'
|
|
7
|
-
import MContainer from './components/grid/MContainer.vue'
|
|
8
|
-
import MHelpRow from './components/grid/MHelpRow.vue'
|
|
9
|
-
import MRow from './components/grid/MRow.vue'
|
|
10
|
-
import MTypingString from './components/typography/MTypingString.vue'
|
|
11
|
-
|
|
12
|
-
const name = js.name
|
|
13
|
-
const version = js.version
|
|
14
|
-
|
|
15
|
-
function install (app, options = {}) {
|
|
16
|
-
MythOptions.withDefaults(options)
|
|
17
|
-
// Form.
|
|
18
|
-
app.component('MBtn', MBtn)
|
|
19
|
-
|
|
20
|
-
// Grid.
|
|
21
|
-
app.component('MBlock', MBlock)
|
|
22
|
-
app.component('MCol', MCol)
|
|
23
|
-
app.component('MColumn', MColumn)
|
|
24
|
-
app.component('MContainer', MContainer)
|
|
25
|
-
app.component('MHelpRow', MHelpRow)
|
|
26
|
-
app.component('MRow', MRow)
|
|
27
|
-
|
|
28
|
-
// Typography.
|
|
29
|
-
app.component('MTypingString', MTypingString)
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
name,
|
|
34
|
-
version,
|
|
35
|
-
install
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export default {
|
|
39
|
-
name,
|
|
40
|
-
version,
|
|
41
|
-
install,
|
|
42
|
-
MythOptions
|
|
43
|
-
}
|
package/umd-test.html
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en-US">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta content="IE=edge" http-equiv="X-UA-Compatible">
|
|
6
|
-
<meta content="telephone=no" name="format-detection">
|
|
7
|
-
<meta content="no" name="msapplication-tap-highlight">
|
|
8
|
-
<meta content="user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1,width=device-width" name="viewport">
|
|
9
|
-
|
|
10
|
-
<title>UMD test</title>
|
|
11
|
-
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons" rel="stylesheet" type="text/css">
|
|
12
|
-
<link href="https://cdn.jsdelivr.net/npm/quasar@2/dist/quasar.prod.css" rel="stylesheet" type="text/css">
|
|
13
|
-
<link href="dist/index.css" rel="stylesheet" type="text/css">
|
|
14
|
-
</head>
|
|
15
|
-
<body>
|
|
16
|
-
<div id="q-app">
|
|
17
|
-
<q-layout view="lHh Lpr fff">
|
|
18
|
-
<q-header class="glossy bg-primary">
|
|
19
|
-
<q-toolbar>
|
|
20
|
-
<q-toolbar-title>
|
|
21
|
-
quasar-ui-qui v{{ version }}
|
|
22
|
-
</q-toolbar-title>
|
|
23
|
-
|
|
24
|
-
<div>Quasar v{{ $q.version }}</div>
|
|
25
|
-
</q-toolbar>
|
|
26
|
-
</q-header>
|
|
27
|
-
|
|
28
|
-
<q-page-container>
|
|
29
|
-
<q-page padding>
|
|
30
|
-
<ul class="q-mb-lg">
|
|
31
|
-
<li>In /ui, run: "yarn build"</li>
|
|
32
|
-
<li class="text-red">You need to build & refresh page on each change manually.</li>
|
|
33
|
-
<li>Use self-closing tags only!</li>
|
|
34
|
-
<li>Example: <my-component></my-component></li>
|
|
35
|
-
</ul>
|
|
36
|
-
</q-page>
|
|
37
|
-
</q-page-container>
|
|
38
|
-
</q-layout>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<script src="https://cdn.jsdelivr.net/npm/vue@3/dist/vue.global.prod.js"></script>
|
|
42
|
-
<script src="https://cdn.jsdelivr.net/npm/quasar@2/dist/quasar.umd.prod.js"></script>
|
|
43
|
-
<script src="dist/index.umd.js"></script>
|
|
44
|
-
|
|
45
|
-
<script>
|
|
46
|
-
const app = Vue.createApp({
|
|
47
|
-
setup() {
|
|
48
|
-
return {
|
|
49
|
-
version: mythUi.version
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
})
|
|
53
|
-
|
|
54
|
-
app.use(Quasar)
|
|
55
|
-
app.use(mythUi)
|
|
56
|
-
app.mount('#q-app')
|
|
57
|
-
</script>
|
|
58
|
-
</body>
|
|
59
|
-
</html>
|