Skip to content

Commit 495c194

Browse files
committed
chore: wip
1 parent 439e05a commit 495c194

File tree

32 files changed

+77
-59
lines changed

32 files changed

+77
-59
lines changed

commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const ignore = ['readme-md']
77

88
const components = fs
99
.readdirSync(resolve(__dirname, './resources/components'))
10-
.map(item => kebabCase(item.replace(/.stx/g, '')))
10+
.map(item => kebabCase(item.replace(/\.(stx|vue)/g, '')))
1111
.filter(item => !ignore.includes(item))
1212

1313
const functions = fs

resources/components/Dashboard/Modals/Popups/Alert.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import { computed } from 'vue'
3-
import BaseModal from '../BaseModal.stx'
4-
import AppButton from '../../Buttons/AppButton.stx'
3+
import AppButton from '../../Buttons/AppButton.vue'
4+
import BaseModal from '../BaseModal.vue'
55
66
const {
77
title,

resources/components/Dashboard/Modals/Popups/Toast.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { ref, watch } from 'vue'
3-
import ToastWrapper from '../ToastWrapper.stx'
3+
import ToastWrapper from '../ToastWrapper.vue'
44
55
const show = ref(false)
66

resources/components/Marketing/Header.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import Button from '../Button.stx'
2+
import Button from '../Button.vue'
33
</script>
44

55
<template>

storage/framework/core/actions/src/helpers/component-meta.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ export function generateComponentMeta() {
5858
}
5959
}
6060

61-
const components = glob.sync(['components/*.stx', 'components/**/*.stx'], {
61+
const components = glob.sync([
62+
'components/*.stx',
63+
'components/**/*.stx',
64+
'components/*.vue',
65+
'components/**/*.vue',
66+
], {
6267
cwd: projectPath(),
6368
absolute: true,
6469
})

storage/framework/core/components/notification/packages/Toast.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import './styles.css'
33
import { computed, onMounted, onUnmounted, ref, watchEffect } from 'vue'
44
import type { HeightT, ToastProps, ToastT } from './types'
5-
import CloseIcon from './assets/CloseIcon.stx'
5+
import CloseIcon from './assets/CloseIcon.vue'
66
import { useIsDocumentHidden } from './hooks'
77
88
const props = defineProps<ToastProps>()

storage/framework/core/components/notification/packages/Toaster.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import type {
88
NotificationProps,
99
} from './types'
1010
import { ToastState } from './state'
11-
import Toast from './Toast.stx'
12-
import LoaderIcon from './assets/Loader.stx'
13-
import SuccessIcon from './assets/SuccessIcon.stx'
14-
import InfoIcon from './assets/InfoIcon.stx'
15-
import WarningIcon from './assets/WarningIcon.stx'
16-
import ErrorIcon from './assets/ErrorIcon.stx'
11+
import Toast from './Toast.vue'
12+
import LoaderIcon from './assets/Loader.vue'
13+
import SuccessIcon from './assets/SuccessIcon.vue'
14+
import InfoIcon from './assets/InfoIcon.vue'
15+
import WarningIcon from './assets/WarningIcon.vue'
16+
import ErrorIcon from './assets/ErrorIcon.vue'
1717
1818
defineOptions({
1919
name: 'Toaster',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { default as Toaster } from './Toaster.stx'
1+
export { default as Toaster } from './Toaster.vue'

storage/framework/core/components/notification/src/App.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ import { ref } from 'vue'
33
import { Notification } from '../packages'
44
import type { Position, Theme } from '../packages/types'
55
import { useSEOHeader } from './composables/useSEOHeader'
6-
import Hero from './components/Hero.stx'
7-
import Installation from './components/Installation.stx'
8-
import Usage from './components/Usage.stx'
9-
import Types from './components/Types.stx'
10-
import Pos from './components/Position.stx'
11-
import Expand from './components/Expand.stx'
12-
import Theming from './components/Theming.stx'
13-
import Styling from './components/Styling.stx'
14-
import Others from './components/Others.stx'
15-
import Footer from './components/Footer.stx'
6+
import Hero from './components/Hero.vue'
7+
import Installation from './components/Installation.vue'
8+
import Usage from './components/Usage.vue'
9+
import Types from './components/Types.vue'
10+
import Pos from './components/Position.vue'
11+
import Expand from './components/Expand.vue'
12+
import Theming from './components/Theming.vue'
13+
import Styling from './components/Styling.vue'
14+
import Others from './components/Others.vue'
15+
import Footer from './components/Footer.vue'
1616
// import { toggleDarkMode, isDark } from './composables/useDarkMode'
1717
1818

storage/framework/core/components/notification/src/components/Expand.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import { computed, ref } from 'vue'
33
import { notification } from '../../packages'
44
import { useCopyCode } from '../composables/useCopyCode'
5-
import CopyIcon from './icons/CopyIcon.stx'
6-
import CheckIcon from './icons/CheckIcon.stx'
5+
import CheckIcon from './icons/CheckIcon.vue'
6+
import CopyIcon from './icons/CopyIcon.vue'
77
88
const props = defineProps({
99
expand: {
@@ -12,9 +12,7 @@ const props = defineProps({
1212
},
1313
})
1414
15-
const emit = defineEmits<{
16-
(e: 'update:expand', expand: boolean): void
17-
}>()
15+
const emit = defineEmits<(e: 'update:expand', expand: boolean) => void>()
1816
1917
const renderedCode = computed(() => {
2018
return `<Notification :expand="${props.expand}" />`

0 commit comments

Comments
 (0)