Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
sukbearai committed Sep 20, 2024
1 parent df33aa9 commit 7d8a030
Show file tree
Hide file tree
Showing 23 changed files with 1,873 additions and 1,264 deletions.
2 changes: 1 addition & 1 deletion app/components/AiAssistant.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script setup lang="ts">
import { CircleCloseFilled } from '@element-plus/icons-vue'
import { Vue3Lottie } from 'vue3-lottie'
import chatData from '~/services/chat'
// import ChatInput from './ChatPanel/components/ChatInput.vue'
import ChatItem from './ChatPanel/components/ChatItem.vue'
import ChatPanel from './ChatPanel/index.vue'
import chatData from '~/services/chat'
const props = defineProps({
modelValue: {
Expand Down
2 changes: 1 addition & 1 deletion app/components/ChatPanel/components/VirtualList.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts" setup>
import type { ScrollOptions } from '../types'
import { useSize } from '../hooks/useSize'
import { isNumber } from '../utils/is'
import type { ScrollOptions } from '../types'
import VirtualListItem from './VirtualListItem'
const props = defineProps({
Expand Down
2 changes: 1 addition & 1 deletion app/components/ChatPanel/hooks/useSize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function useSize({
let offsetIndex = 0
while (offset > 0) {
offset -= getItemSize(_start + offsetIndex)!
// eslint-disable-next-line ts/no-unused-expressions

isForward ? offsetIndex++ : offsetIndex--
}
return offsetIndex
Expand Down
2 changes: 1 addition & 1 deletion app/components/ChatPanel/index.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts" setup>
import type { ScrollbarProps } from '@arco-design/web-vue'
import VirtualList from './components/VirtualList.vue'
import { useComponentRef } from './hooks/useComponentRef'
import { useScrollbar } from './hooks/useScrollbar'
import { isNumber } from './utils/is'
import VirtualList from './components/VirtualList.vue'
const props = defineProps({
/**
Expand Down
2 changes: 1 addition & 1 deletion app/components/ChatPanel/utils/is.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { Dayjs } from 'dayjs'
/* eslint-disable regexp/no-super-linear-backtracking */
/* eslint-disable regexp/no-unused-capturing-group */
/* eslint-disable eslint-comments/no-unlimited-disable */
import type { ComponentPublicInstance, VNode, VNodeNormalizedChildren } from 'vue'
import type { Dayjs } from 'dayjs'

const opt = Object.prototype.toString

Expand Down
4 changes: 2 additions & 2 deletions app/components/TaskPanel.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { computed, ref } from 'vue'
import { useElementSize } from '@vueuse/core'
import type { ElScrollbar } from 'element-plus'
import { useElementSize } from '@vueuse/core'
import { computed, ref } from 'vue'
type Status = 'progress' | 'success' | 'error' | 'warning' | 'info'
Expand Down
4 changes: 2 additions & 2 deletions app/components/VBorderBox13.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script setup lang="ts">
import { computed, ref } from 'vue'
import type { PropType } from 'vue'
import { merge } from 'lodash-es'
import type { PropType } from 'vue'
import { computed, ref } from 'vue'
const props = defineProps({
color: {
Expand Down
2 changes: 1 addition & 1 deletion app/components/VCapsuleChart.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { onMounted, reactive, ref, watch } from 'vue'
import { cloneDeep, merge } from 'lodash-es'
import { onMounted, reactive, ref, watch } from 'vue'
interface DefaultConfigType {
Expand Down
6 changes: 3 additions & 3 deletions app/components/VChart.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<script lang="ts" setup>
import VCharts from 'vue-echarts'
import { use } from 'echarts/core'
import { CanvasRenderer } from 'echarts/renderers'
import {
BarChart,
EffectScatterChart,
Expand All @@ -19,6 +16,9 @@ import {
TooltipComponent,
VisualMapComponent,
} from 'echarts/components'
import { use } from 'echarts/core'
import { CanvasRenderer } from 'echarts/renderers'
import VCharts from 'vue-echarts'
defineProps({
option: {
Expand Down
4 changes: 2 additions & 2 deletions app/components/VCountUp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
</script>

<script setup lang="ts">
import { onMounted, onUnmounted, ref, watch } from 'vue'
import { CountUp } from 'countup.js'
import type { CountUpOptions } from 'countup.js'
import { CountUp } from 'countup.js'
import { onMounted, onUnmounted, ref, watch } from 'vue'
const props = withDefaults(
defineProps<{
Expand Down
2 changes: 1 addition & 1 deletion app/components/VHeader.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { reactive } from 'vue'
import dayjs from 'dayjs'
import { reactive } from 'vue'
// const settingStore = useSettingStore()
Expand Down
2 changes: 1 addition & 1 deletion app/components/VScreenBox.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- eslint-disable ts/no-unused-expressions -->
<script lang="ts" setup>
import { nextTick, onMounted, onUnmounted, reactive, ref, watch } from 'vue'
import type { CSSProperties, PropType } from 'vue'
import { nextTick, onMounted, onUnmounted, reactive, ref, watch } from 'vue'

const props = defineProps({
width: {
Expand Down
2 changes: 1 addition & 1 deletion app/components/VSetting.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue'
import { storeToRefs } from 'pinia'
import { ref } from 'vue'
const isScaleRadio = ref(false)
const leftBottomRadio = ref(true)
Expand Down
2 changes: 1 addition & 1 deletion app/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const appName = 'A Nuxt template for newbee'
export const appDescription = 'A Nuxt template for newbee'

export * from './storage'
export * from './fetch'
export * from './storage'
4 changes: 2 additions & 2 deletions app/pages/index/components/center-map.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!-- eslint-disable no-async-promise-executor -->
<script setup lang="ts">
import { getMap, registerMap } from 'echarts/core'
import { optionHandle, regionCodes } from './center.map'
import type { MapdataType } from './center.map'
import { getMap, registerMap } from 'echarts/core'
import { centerMap, getMapData } from '~/services/v'
import { optionHandle, regionCodes } from './center.map'

// china 代表中国 其他地市是行政编码
withDefaults(
Expand Down
12 changes: 6 additions & 6 deletions app/pages/index/index.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script setup lang="ts">
import LeftTop from './components/left-top.vue'
import LeftCenter from './components/left-center.vue'
import LeftBottom from './components/left-bottom.vue'
import CenterMap from './components/center-map.vue'
import CenterBottom from './components/center-bottom.vue'
import RightTop from './components/right-top.vue'
import RightCenter from './components/right-center.vue'
import CenterMap from './components/center-map.vue'
import LeftBottom from './components/left-bottom.vue'
import LeftCenter from './components/left-center.vue'
import LeftTop from './components/left-top.vue'
import RightBottom from './components/right-bottom.vue'
import RightCenter from './components/right-center.vue'
import RightTop from './components/right-top.vue'
definePageMeta({
layout: 'home',
Expand Down
4 changes: 2 additions & 2 deletions app/pages/v-screen/data/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import WebCamera from './web-camera.vue'
import TaskList from './task-list.vue'
import StudyState from './study-state.vue'
import TaskList from './task-list.vue'
import WebCamera from './web-camera.vue'
definePageMeta({
layout: 'home',
Expand Down
4 changes: 2 additions & 2 deletions app/services/mock.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Mock from 'mockjs'
import { defineMock } from '@alova/mock'
import { RandomNumBoth, genArr, parseParamUrl } from '~/utils'
import Mock from 'mockjs'
import { genArr, parseParamUrl, RandomNumBoth } from '~/utils'

const mocks = defineMock({
'/v/countUserNum': () => {
Expand Down
8 changes: 4 additions & 4 deletions app/services/request.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { AxiosRequestConfig, AxiosResponse } from 'axios'
import { axiosMockResponse, axiosRequestAdapter } from '@alova/adapter-axios'
import { createAlovaMockAdapter } from '@alova/mock'
import { createAlova } from 'alova'
import VueHook from 'alova/vue'
import { createAlovaMockAdapter } from '@alova/mock'
import { axiosMockResponse, axiosRequestAdapter } from '@alova/adapter-axios'
import axios from 'axios'
import type { AxiosRequestConfig, AxiosResponse } from 'axios'
import mocks from './mock'
import { RequestEnum, StorageEnum } from '~/constants'
import { getLocalStorage } from '~/utils'
import mocks from './mock'

interface BaseConfig {
baseUrl: string
Expand Down
4 changes: 2 additions & 2 deletions app/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './canvas'
export * from './date'
export * from './storage'
export * from './mock'
export * from './canvas'
export * from './storage'
2 changes: 1 addition & 1 deletion app/utils/web-channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const QWebChannelMessageTypes = {
const QWebChannel = function (transport, initCallback) {
if (typeof transport !== 'object' || typeof transport.send !== 'function') {
console.error(`The QWebChannel expects a transport object with a send function and onmessage callback property.`
+ ` Given is: transport: ${typeof (transport)}, transport.send: ${typeof (transport.send)}`)
+ ` Given is: transport: ${typeof (transport)}, transport.send: ${typeof (transport.send)}`)
return
}

Expand Down
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,32 +30,32 @@
"vue3-lottie": "^3.3.1"
},
"devDependencies": {
"@antfu/eslint-config": "^2.27.1",
"@antfu/eslint-config": "^3.6.2",
"@element-plus/nuxt": "^1.0.10",
"@iconify-json/carbon": "^1.1.37",
"@iconify-json/twemoji": "^1.1.16",
"@nuxt/devtools": "^1.4.0",
"@nuxt/eslint": "^0.5.2",
"@nuxtjs/color-mode": "^3.4.4",
"@iconify-json/carbon": "^1.2.1",
"@iconify-json/twemoji": "^1.2.0",
"@nuxt/devtools": "^1.4.2",
"@nuxt/eslint": "^0.5.7",
"@nuxtjs/color-mode": "^3.5.1",
"@pinia/nuxt": "^0.5.4",
"@types/mockjs": "^1.0.10",
"@unocss/eslint-config": "^0.62.3",
"@unocss/nuxt": "^0.62.3",
"@vite-pwa/nuxt": "^0.10.1",
"@vueuse/nuxt": "^11.0.3",
"@unocss/eslint-config": "^0.62.4",
"@unocss/nuxt": "^0.62.4",
"@vite-pwa/nuxt": "^0.10.5",
"@vueuse/nuxt": "^11.1.0",
"arco-design-nuxt-module": "^0.1.0",
"consola": "^3.2.3",
"dayjs-nuxt": "^2.1.11",
"eslint": "^9.9.1",
"eslint": "^9.10.0",
"eslint-plugin-format": "^0.1.2",
"mockjs": "^1.1.0",
"nuxt": "^3.13.0",
"nuxt": "^3.13.2",
"pinia": "^2.2.2",
"sass": "^1.78.0",
"typescript": "^5.5.4",
"vue-tsc": "^2.0.29"
"typescript": "^5.6.2",
"vue-tsc": "^2.1.6"
},
"resolutions": {
"@typescript-eslint/utils": "^8.2.0"
"@typescript-eslint/utils": "^8.6.0"
}
}
Loading

0 comments on commit 7d8a030

Please sign in to comment.