Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump rollup from 3.29.4 to 3.29.5 #4384

Open
wants to merge 88 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
0e196e6
feat: ts types for colors (#3957) (#4270)
Fsss126 Jun 27, 2024
69e3ab2
feat(sticky-scrollbar): init component (#4286)
m0ksem Jun 27, 2024
de9a907
Color css variables must be rendered on app root element, not body (#…
Fsss126 Jun 27, 2024
4aac12a
feat: remove lodash (#4316)
m0ksem Jun 27, 2024
e91f248
feat: remove colortranslator (#4310)
m0ksem Jun 27, 2024
3d770cd
chore(storybook): fix add text method
m0ksem Jun 27, 2024
0d65f7e
fix(data-table): correct start case
m0ksem Jun 27, 2024
df62c4b
fix(utils/merge): create empty object if object is undefined
m0ksem Jun 27, 2024
999ee9e
fix(resize-observer): correctly normalize observed elements
m0ksem Jun 27, 2024
288c611
fix(VaConfig): correctly copy regex values
m0ksem Jun 27, 2024
cf3d2d1
Added ability to apply multiple presets (#4303)
Fsss126 Jun 27, 2024
30e739e
chore(deps): bump ws from 6.2.2 to 6.2.3 (#4328)
dependabot[bot] Jun 27, 2024
b8eb22d
feat: use custom color names in button
m0ksem Jun 27, 2024
e87e580
feat(icon): icon name extendable type (#4045)
m0ksem Jun 27, 2024
fa49653
feat: masks (#4332)
m0ksem Jul 1, 2024
eaee0ee
docs(sticky-scrollbar): add example with data table
m0ksem Jul 3, 2024
a6a80f0
feat(sticky-headers): init sticky table headers composable
m0ksem Jul 3, 2024
6541335
fix: remove empty changelogs
m0ksem Jul 3, 2024
3d483b6
docs: add changelogs
m0ksem Jul 3, 2024
24b642c
docs: add more changelogs for services
m0ksem Jul 3, 2024
8a2c4bb
fix: improve docs SSR
m0ksem Jul 4, 2024
513af47
fix: render css colors on body root
m0ksem Jul 4, 2024
666dfc6
fix: correctly split numbers in color names
m0ksem Jul 8, 2024
d471eb6
chore: remove cleave (#4334)
m0ksem Jul 8, 2024
c53bce9
Feat/devtools and compiler (#4340)
m0ksem Jul 8, 2024
6d752d9
feat(devtools): improve dx and component tree parsing and docs (#4345)
m0ksem Jul 15, 2024
440da3e
fix(input/stories): correctly handle input query selector
m0ksem Jul 16, 2024
217bbf2
fix(compiler): fix build
m0ksem Jul 16, 2024
900cbfc
chore(compiler): release beta3
m0ksem Jul 16, 2024
fc5a0f1
docs(compiler/css-layers): added css layers docs page
m0ksem Jul 16, 2024
61c1ba5
feat(compiler): add config support
m0ksem Jul 17, 2024
a90bfcb
docs: added compiler/vuestic-config docs
m0ksem Jul 17, 2024
2f170b1
fix(compiler): resolve virtual vuestic-config
m0ksem Jul 17, 2024
28629bf
chore: bump @vuestic/compiler
m0ksem Jul 17, 2024
5541a16
fix(devtools): correct file path for windows
m0ksem Jul 23, 2024
c6c47ed
chore: update yarn.lock
m0ksem Jul 23, 2024
ddb052c
bump(compiler): 0.0.1-beta5
m0ksem Jul 23, 2024
91127bc
fix(masks): correctly handle months (feb) (#4347)
m0ksem Jul 29, 2024
573a927
fix(VaColorInput): added full length color input (#4348)
ahmadJT Aug 6, 2024
9a0f6fc
fix(input): correct placeholder color for textarea
m0ksem Aug 6, 2024
0660438
docs: correct components config code examples
m0ksem Aug 6, 2024
c6b0b3c
chore: improve select breaking layout
m0ksem Aug 6, 2024
8d7bf76
fix(badge): center content by default
m0ksem Aug 6, 2024
f390a98
chore: indicate compatibility with new v4 major (#4323)
danielroe Aug 19, 2024
653cecd
fix: augment `vue` rather than `@vue/runtime-core` (#4354)
danielroe Aug 19, 2024
48a4e6b
chore: improve select option render time (#4355)
padinko Aug 19, 2024
6882d6d
chore(deps): bump @nuxt/devtools from 1.1.5 to 1.3.9 (#4350)
dependabot[bot] Aug 19, 2024
f0f84d1
fix(nuxt): store config in runtime config for plugin instead of JSON
m0ksem Aug 19, 2024
086787a
chore(nuxt): bump 1.0.21
m0ksem Aug 19, 2024
eb93b68
Add Support & Consulting page to docs (#4359)
raichev-dima Aug 21, 2024
5241e0f
Update the "Support & Consulting" page links (#4360)
raichev-dima Aug 22, 2024
d23e8a9
Update readme with "Support & Consulting" page info (#4362)
raichev-dima Aug 22, 2024
0a30532
minor
asvae Aug 23, 2024
9d2b125
chore: rename inconsistent mask names
m0ksem Aug 25, 2024
b7983ed
chore(docs): reorder sidebar items
m0ksem Aug 25, 2024
ab414f9
feat(sticky-scroll): add offset prop
m0ksem Aug 25, 2024
8794018
chore(deps): bump nuxt from 3.11.1 to 3.12.4 (#4349)
dependabot[bot] Aug 26, 2024
c1eb7f8
feat(devtools): init layout editor (#4363)
m0ksem Aug 26, 2024
682fc16
chore(compiler): disabled devtools by default and turn on config
m0ksem Aug 26, 2024
cee8f9d
chore: use docker compose instead of deprecated docker-compose
m0ksem Aug 26, 2024
61f9657
chore: bump version to v1.10.0
m0ksem Aug 26, 2024
3d07e7c
chore: add Netlify link to README.md (#4365)
raichev-dima Aug 28, 2024
435c85e
chore(compiler): bump 0.1.0
m0ksem Aug 26, 2024
3f35953
Basic set up for Netlify (#4368)
raichev-dima Aug 29, 2024
a003dfc
chore: set up Netlify config for the monorepo (#4369)
raichev-dima Sep 2, 2024
56efd30
fix: enable the build information under Netlify environment
raichev-dima Sep 5, 2024
66709a0
fix(tree-view): react on expanded prop for nested children
m0ksem Sep 10, 2024
b11491d
fix(#4346): throw warn and error if observable target is not element
m0ksem Sep 11, 2024
15c6691
feat(toast#4373): add bottom-center and top-center positions
m0ksem Sep 11, 2024
3f1a17a
Fix#4374/allow-more-types-for-select-clear-value (#4375)
m0ksem Sep 11, 2024
ff822e7
feat(input): add native autocomplete attribute support (#4370)
padinko Sep 13, 2024
4f00151
chore: bump version to v1.10.1
m0ksem Sep 13, 2024
280534b
fix(useForm): remove extra computed from formData
m0ksem Sep 23, 2024
5b53670
feat(VaToast #4373): add bottom-center, top-center position options (…
tom00502 Sep 23, 2024
cdf8654
fix: create-vuestic crossplatform paths (#4379)
shpingalet007 Sep 23, 2024
db2644d
chore: bump version to v1.10.2
m0ksem Sep 24, 2024
2cd0c39
fix(#4394): correct button dropdown teleport when split is used (#4395)
m0ksem Oct 15, 2024
1773f27
fix(VaFormField): fix not working errorCount prop (#4387)
padinko Oct 15, 2024
39fe880
fix: do not apply extra styles when non-headless (#4393)
m0ksem Oct 15, 2024
e9084f6
chore(deps-dev): bump webpack from 5.91.0 to 5.94.0 (#4367)
dependabot[bot] Oct 15, 2024
6aecd46
fix: useMask makes input dirty and add decimal char option (#4399)
m0ksem Oct 15, 2024
712a7b1
Introducing Vuestic UI Guru on Gurubase.io (#4400)
kursataktas Oct 17, 2024
6a02309
feat(#4396): add custom search function for select search (#4401)
m0ksem Oct 17, 2024
7c9d87a
chore(deps): bump express from 4.19.2 to 4.21.0 (#4378)
dependabot[bot] Oct 17, 2024
e7c27b9
chore(deps-dev): bump vite from 4.5.3 to 4.5.5 (#4380)
dependabot[bot] Oct 17, 2024
51fa22d
chore(deps-dev): bump vite from 5.3.3 to 5.3.6 in /packages/compiler/…
dependabot[bot] Oct 17, 2024
2f1b373
chore(deps): bump rollup from 4.18.0 to 4.22.4 in /packages/compiler/…
dependabot[bot] Oct 17, 2024
0170cf2
chore(deps-dev): bump rollup from 3.29.4 to 3.29.5
dependabot[bot] Oct 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(nuxt): store config in runtime config for plugin instead of JSON
m0ksem committed Aug 19, 2024
commit f0f84d12da4c633b2b0ce9894a074454835a1509
6 changes: 3 additions & 3 deletions packages/nuxt/src/composables/use-config-file.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { existsSync } from 'fs'
import { resolveAlias, useNuxt } from '@nuxt/kit';
import { resolveAlias, useNuxt } from '@nuxt/kit'
import { resolve } from 'pathe'
import { resolveInRuntime } from './../utils/resolve';
import { resolveInRuntime } from './../utils/resolve'

export const useConfigFile = async () => {
export const useConfigFile = () => {
const root = resolveAlias('~/')
const configPath = resolve(root, 'vuestic.config.ts')
const nuxt = useNuxt()
14 changes: 7 additions & 7 deletions packages/nuxt/src/composables/use-plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addPluginTemplate } from '@nuxt/kit'
import { addPluginTemplate, useNuxt } from '@nuxt/kit'

import { resolveInRuntime } from '../utils/resolve'

@@ -8,13 +8,13 @@ import type { VuesticOptions } from '../types'
export const useVuesticPlugin = (options: VuesticOptions) => {
const pluginPath = resolveInRuntime('./runtime/plugin.mjs')

const nuxt = useNuxt()

;(nuxt.options.runtimeConfig.public as any)['#vuestic-public-options-config'] = options.config
;(nuxt.options.runtimeConfig.public as any)['#vuestic-public-options-theme-cookie-key'] = options.themeCookieKey

addPluginTemplate({
src: pluginPath,
filename: pluginPath.split('/').pop(),

// Use JSON.stringify() here, because it will be inserted in ejs template as string. Then we will JSON.parse it.
options: {
value: JSON.stringify(options),
},
filename: pluginPath.split('/').pop()
})
}
4 changes: 2 additions & 2 deletions packages/nuxt/src/module.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { useVuesticCSS } from './composables/use-css'
import { useVuesticPlugin } from './composables/use-plugin'
import { useVuesticComposables } from './composables/use-composables'
import { useVuesticComponents } from './composables/use-components'
import { useTranspile } from './composables/use-transpile';
import { useTranspile } from './composables/use-transpile'
import { useConfigFile } from './composables/use-config-file'

import type { VuesticOptions } from './types'
@@ -24,7 +24,7 @@ export default defineNuxtModule<VuesticOptions>({
config: {},
css: [],
fonts: true,
themeCookieKey: 'vuestic-theme',
themeCookieKey: 'vuestic-theme'
},

setup (options) {
10 changes: 6 additions & 4 deletions packages/nuxt/src/runtime/plugin.ts
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@ import type { VuesticOptions } from '../types'
import { useHead, ReactiveHead, defineNuxtPlugin, useCookie } from '#imports'
import NuxtLink from '#app/components/nuxt-link'
import configFromFile from '#vuestic-config'
import { useRuntimeConfig } from '#app'

function getGlobalProperty (app, key) {
return app.config.globalProperties[key]
@@ -21,10 +22,11 @@ function getGlobalProperty (app, key) {
export default defineNuxtPlugin((nuxtApp) => {
const { vueApp: app } = nuxtApp

// It's important to use `, because TS will compile qoutes to " and JSON will not be parsed...
const moduleOptions: VuesticOptions = JSON.parse('<%= options.value %>')
const themeCookie = useCookie(moduleOptions.themeCookieKey)
const userConfig = configFromFile || moduleOptions.config || {}
// Ignore
const moduleOptionsConfig: VuesticOptions['config'] = (useRuntimeConfig() as any).public['#vuestic-public-options-config']
const moduleOptionsThemeCookieKey: VuesticOptions['themeCookieKey'] = (useRuntimeConfig() as any).public['#vuestic-public-options-theme-cookie-key']
const themeCookie = useCookie(moduleOptionsThemeCookieKey)
const userConfig = configFromFile || moduleOptionsConfig || {}
const configWithColors: PartialGlobalConfig = {
...userConfig,
colors: {