实现切换侧边栏导航之前
This commit is contained in:
		
							
								
								
									
										52
									
								
								docs/.vitepress/cache/deps/_metadata.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										52
									
								
								docs/.vitepress/cache/deps/_metadata.json
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,52 @@
 | 
			
		||||
{
 | 
			
		||||
  "hash": "b89788c1",
 | 
			
		||||
  "configHash": "623af0bf",
 | 
			
		||||
  "lockfileHash": "819230d2",
 | 
			
		||||
  "browserHash": "1838b124",
 | 
			
		||||
  "optimized": {
 | 
			
		||||
    "vue": {
 | 
			
		||||
      "src": "../../../../node_modules/vue/dist/vue.runtime.esm-bundler.js",
 | 
			
		||||
      "file": "vue.js",
 | 
			
		||||
      "fileHash": "ea471cd0",
 | 
			
		||||
      "needsInterop": false
 | 
			
		||||
    },
 | 
			
		||||
    "vitepress > @vue/devtools-api": {
 | 
			
		||||
      "src": "../../../../node_modules/@vue/devtools-api/dist/index.js",
 | 
			
		||||
      "file": "vitepress___@vue_devtools-api.js",
 | 
			
		||||
      "fileHash": "d04dba19",
 | 
			
		||||
      "needsInterop": false
 | 
			
		||||
    },
 | 
			
		||||
    "vitepress > @vueuse/core": {
 | 
			
		||||
      "src": "../../../../node_modules/@vueuse/core/index.mjs",
 | 
			
		||||
      "file": "vitepress___@vueuse_core.js",
 | 
			
		||||
      "fileHash": "5b3ac246",
 | 
			
		||||
      "needsInterop": false
 | 
			
		||||
    },
 | 
			
		||||
    "vitepress > @vueuse/integrations/useFocusTrap": {
 | 
			
		||||
      "src": "../../../../node_modules/@vueuse/integrations/useFocusTrap.mjs",
 | 
			
		||||
      "file": "vitepress___@vueuse_integrations_useFocusTrap.js",
 | 
			
		||||
      "fileHash": "88f4fd3e",
 | 
			
		||||
      "needsInterop": false
 | 
			
		||||
    },
 | 
			
		||||
    "vitepress > mark.js/src/vanilla.js": {
 | 
			
		||||
      "src": "../../../../node_modules/mark.js/src/vanilla.js",
 | 
			
		||||
      "file": "vitepress___mark__js_src_vanilla__js.js",
 | 
			
		||||
      "fileHash": "cb1d3ff6",
 | 
			
		||||
      "needsInterop": false
 | 
			
		||||
    },
 | 
			
		||||
    "vitepress > minisearch": {
 | 
			
		||||
      "src": "../../../../node_modules/minisearch/dist/es/index.js",
 | 
			
		||||
      "file": "vitepress___minisearch.js",
 | 
			
		||||
      "fileHash": "84d2c050",
 | 
			
		||||
      "needsInterop": false
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  "chunks": {
 | 
			
		||||
    "chunk-P2XGSYO7": {
 | 
			
		||||
      "file": "chunk-P2XGSYO7.js"
 | 
			
		||||
    },
 | 
			
		||||
    "chunk-HVR2FF6M": {
 | 
			
		||||
      "file": "chunk-HVR2FF6M.js"
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@@ -3,21 +3,19 @@ import { set_sidebar } from "../utils/auto_sidebar.js";
 | 
			
		||||
 | 
			
		||||
// https://vitepress.dev/reference/site-config
 | 
			
		||||
export default defineConfig({
 | 
			
		||||
  markdown: {
 | 
			
		||||
    vue: {
 | 
			
		||||
      compilerOptions: {
 | 
			
		||||
        isCustomElement: () => true // 禁止解析 ${{ }}
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  } as any,
 | 
			
		||||
  title: "devstar",
 | 
			
		||||
  head: [['link', { rel: 'icon', href: '/devstar-logo.png' }]],
 | 
			
		||||
  description: "A VitePress Site",
 | 
			
		||||
  title: "梦宁软件",
 | 
			
		||||
  head: [
 | 
			
		||||
    ['link', { rel: 'stylesheet', href: '/theme/style.css' }], // 引入CSS
 | 
			
		||||
    ['link', { rel: 'icon', href: '/mengninglogo.png' }]      // 设置favicon
 | 
			
		||||
  ],
 | 
			
		||||
  description: "梦宁软件",
 | 
			
		||||
  themeConfig: {
 | 
			
		||||
    // https://vitepress.dev/reference/default-theme-config
 | 
			
		||||
    outlineTitle: '目录',
 | 
			
		||||
    outline: [2, 6],
 | 
			
		||||
    logo: '/devstar-logo.png',
 | 
			
		||||
    logo: {
 | 
			
		||||
      src: '/mnsoftware.png',
 | 
			
		||||
    },
 | 
			
		||||
    nav: [
 | 
			
		||||
      { text: '文档', link: '/document/index' },
 | 
			
		||||
      { text: 'API', link: 'https://docs.gitea.com/zh-cn/api/1.24/' },
 | 
			
		||||
@@ -28,7 +26,6 @@ export default defineConfig({
 | 
			
		||||
      {
 | 
			
		||||
        text: 'devstar是什么',
 | 
			
		||||
        link: '/document/index',
 | 
			
		||||
        attrs: { class: 'bold-item' }
 | 
			
		||||
      } as any,
 | 
			
		||||
      {
 | 
			
		||||
        text: '安装',
 | 
			
		||||
@@ -163,6 +160,7 @@ export default defineConfig({
 | 
			
		||||
        ]
 | 
			
		||||
      } as any,
 | 
			
		||||
      {
 | 
			
		||||
        text: '贡献',
 | 
			
		||||
        collapsible: true, // 使整个组可折叠
 | 
			
		||||
        collapsed: true, // 默认展开
 | 
			
		||||
        items: [
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										22
									
								
								docs/.vitepress/theme/Layout.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								docs/.vitepress/theme/Layout.vue
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
<script setup>
 | 
			
		||||
import { useData } from 'vitepress'
 | 
			
		||||
import DefaultTheme from 'vitepress/theme'
 | 
			
		||||
import Index from '../components/Index.vue' // 你的组件
 | 
			
		||||
 | 
			
		||||
const { Layout } = DefaultTheme
 | 
			
		||||
const { frontmatter } = useData()
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<template>
 | 
			
		||||
  <Layout>
 | 
			
		||||
    <!-- 保留默认主题的所有插槽 -->
 | 
			
		||||
    <template #home-hero>
 | 
			
		||||
      <VPHomeHero /> <!-- 默认Hero区域 -->
 | 
			
		||||
      <Index />      <!-- 你的自定义组件 -->
 | 
			
		||||
    </template>
 | 
			
		||||
 | 
			
		||||
    <template #home-features>
 | 
			
		||||
      <VPHomeFeatures /> <!-- 默认Features区域 -->
 | 
			
		||||
    </template>
 | 
			
		||||
  </Layout>
 | 
			
		||||
</template>
 | 
			
		||||
@@ -1,6 +0,0 @@
 | 
			
		||||
/* .vitepress/theme/custom.css */
 | 
			
		||||
.bold-item {
 | 
			
		||||
  font-weight: 700 !important;
 | 
			
		||||
  font-size: 1em !important;
 | 
			
		||||
  /* 与其他目录项字号一致 */
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										5
									
								
								docs/.vitepress/theme/index.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								docs/.vitepress/theme/index.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
// 正确写法:继承默认主题
 | 
			
		||||
import DefaultTheme from 'vitepress/theme'
 | 
			
		||||
import './style.css' // 可选:你的自定义样式
 | 
			
		||||
 | 
			
		||||
export default DefaultTheme // ✅ 必须导出 default
 | 
			
		||||
							
								
								
									
										40
									
								
								docs/.vitepress/theme/style.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								docs/.vitepress/theme/style.css
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,40 @@
 | 
			
		||||
/* 强制覆盖主题默认的Logo尺寸 */
 | 
			
		||||
.VPImage.logo {
 | 
			
		||||
  height: 150px !important;
 | 
			
		||||
  /* 必须用 !important 覆盖主题的 !important */
 | 
			
		||||
  width: 200px !important;
 | 
			
		||||
  /* 固定宽度,防止变形 */
 | 
			
		||||
  /* margin-left: 100px !important; */
 | 
			
		||||
  margin-right: -50px !important;
 | 
			
		||||
  margin-left: -40px !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.VPNavBar .title {
 | 
			
		||||
  margin-right: 20px !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.VPHero .text {
 | 
			
		||||
  font-size: 50px !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* 移除掉目录之间的分割线 */
 | 
			
		||||
.group {
 | 
			
		||||
  border-top: 0 !important;
 | 
			
		||||
 | 
			
		||||
  /* padding-bottom: 0 !important; */
 | 
			
		||||
  .items {
 | 
			
		||||
    font-size: 20px !important;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.group .items {
 | 
			
		||||
  font-size: 16px !important;
 | 
			
		||||
  color: #3c3c43 !important;
 | 
			
		||||
  font-weight: 700px !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/* .VPHero .image-container img {
 | 
			
		||||
  width: 1000px !important;
 | 
			
		||||
  height: 300px !important;
 | 
			
		||||
} */
 | 
			
		||||
							
								
								
									
										155
									
								
								docs/components/index.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										155
									
								
								docs/components/index.vue
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,155 @@
 | 
			
		||||
<!-- docs/index.vue -->
 | 
			
		||||
<template>
 | 
			
		||||
   <div id="header">
 | 
			
		||||
    <h2>我们的产品</h2>
 | 
			
		||||
   <div class="product-container">
 | 
			
		||||
  <ol class="product-list">
 | 
			
		||||
    <!-- 产品1 -->
 | 
			
		||||
    <li class="product-item">
 | 
			
		||||
      <div class="product-card">
 | 
			
		||||
        <img src="/DevStar.png" alt="产品1" class="product-image">
 | 
			
		||||
        <div class="product-info">
 | 
			
		||||
          <h3 class="product-title">Devstar</h3>
 | 
			
		||||
          <p class="product-desc">DevStar Studio 是一个Gitea 发行版,在Git代码仓库托管的基础上提供了开发环境DevEnv执行引擎,与VS Code插件或自定义IDE深度融合,形成灵活适配基础软件工具的生态平台,从而为开发者用户提供智能(代码大模型AI+)、安全(完全云原生)、一站式开箱即用的CI/CD全生命周期研发平台</p>
 | 
			
		||||
          <a href="/document/index" class="product-link">介绍文档</a>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </li>
 | 
			
		||||
    
 | 
			
		||||
    <!-- 产品2 -->
 | 
			
		||||
    <li class="product-item">
 | 
			
		||||
      <div class="product-card">
 | 
			
		||||
        <img src="/DevStar.png" alt="产品2" class="product-image">
 | 
			
		||||
        <div class="product-info">
 | 
			
		||||
          <h3 class="product-title">Devstar</h3>
 | 
			
		||||
          <p class="product-desc">DevStar Studio 是一个Gitea 发行版,在Git代码仓库托管的基础上提供了开发环境DevEnv执行引擎,与VS Code插件或自定义IDE深度融合,形成灵活适配基础软件工具的生态平台,从而为开发者用户提供智能(代码大模型AI+)、安全(完全云原生)、一站式开箱即用的CI/CD全生命周期研发平台</p>
 | 
			
		||||
          <a href="/document/index" class="product-link">介绍文档</a>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </li>
 | 
			
		||||
    
 | 
			
		||||
    <!-- 产品3 -->
 | 
			
		||||
    <li class="product-item">
 | 
			
		||||
      <div class="product-card">
 | 
			
		||||
        <img src="/DevStar.png" alt="产品3" class="product-image">
 | 
			
		||||
        <div class="product-info">
 | 
			
		||||
          <h3 class="product-title">Devstar</h3>
 | 
			
		||||
          <p class="product-desc">DevStar Studio 是一个Gitea 发行版,在Git代码仓库托管的基础上提供了开发环境DevEnv执行引擎,与VS Code插件或自定义IDE深度融合,形成灵活适配基础软件工具的生态平台,从而为开发者用户提供智能(代码大模型AI+)、安全(完全云原生)、一站式开箱即用的CI/CD全生命周期研发平台</p>
 | 
			
		||||
          <a href="/document/index" class="product-link">介绍文档</a>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </li>
 | 
			
		||||
  </ol>
 | 
			
		||||
</div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
export default {
 | 
			
		||||
  name: 'HomePage',
 | 
			
		||||
  methods: {
 | 
			
		||||
    handleClick() {
 | 
			
		||||
      alert('按钮被点击!')
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<style scoped>
 | 
			
		||||
  h2 {
 | 
			
		||||
    border-top: 0;
 | 
			
		||||
  }
 | 
			
		||||
  .product-container {
 | 
			
		||||
  max-width: 1200px;
 | 
			
		||||
  margin: 0 auto;
 | 
			
		||||
  padding: 20px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* Flex布局产品列表 */
 | 
			
		||||
.product-list {
 | 
			
		||||
  display: flex;
 | 
			
		||||
  flex-wrap: wrap;
 | 
			
		||||
  gap: 30px;
 | 
			
		||||
  list-style: none;
 | 
			
		||||
  padding: 0;
 | 
			
		||||
  margin: 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* 每个产品项 */
 | 
			
		||||
.product-item {
 | 
			
		||||
  flex: 1 1 300px; /* 最小宽度300px,可伸缩 */
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* 产品卡片 */
 | 
			
		||||
.product-card {
 | 
			
		||||
  display: flex;
 | 
			
		||||
  flex-direction: column;
 | 
			
		||||
  align-items: center; /* 新增:使卡片内所有元素水平居中 */
 | 
			
		||||
  height: 100%;
 | 
			
		||||
  border: 1px solid #eaecef;
 | 
			
		||||
  border-radius: 8px;
 | 
			
		||||
  overflow: hidden;
 | 
			
		||||
  transition: transform 0.3s ease;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.product-card:hover {
 | 
			
		||||
  transform: translateY(-5px);
 | 
			
		||||
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* 产品图片 */
 | 
			
		||||
.product-image {
 | 
			
		||||
  width: 180px;          /* 根据原图比例调整 */
 | 
			
		||||
  height: 180px;
 | 
			
		||||
  object-fit: contain;    /* 完整显示标志 */
 | 
			
		||||
  background: transparent; /* 去除白色背景 */
 | 
			
		||||
  padding: 0;             /* 去除内边距 */
 | 
			
		||||
  border: none !important; /* 强制去除边框 */
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* 产品信息区域 */
 | 
			
		||||
.product-info {
 | 
			
		||||
  padding: 20px;
 | 
			
		||||
  flex-grow: 1;
 | 
			
		||||
  display: flex;
 | 
			
		||||
  flex-direction: column;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.product-title {
 | 
			
		||||
  margin: 0 0 10px 0;
 | 
			
		||||
  font-size: 1.2rem;
 | 
			
		||||
  color: #333;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.product-desc {
 | 
			
		||||
  margin: 0 0 15px 0;
 | 
			
		||||
  color: #666;
 | 
			
		||||
  flex-grow: 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.product-link {
 | 
			
		||||
  display: inline-block;
 | 
			
		||||
  padding: 8px 16px;
 | 
			
		||||
  background-color: #3eaf7c;
 | 
			
		||||
  color: white;
 | 
			
		||||
  text-decoration: none;
 | 
			
		||||
  border-radius: 4px;
 | 
			
		||||
  text-align: center;
 | 
			
		||||
  transition: background-color 0.3s;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.product-link:hover {
 | 
			
		||||
  background-color: #2d9f6b;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* 响应式调整 */
 | 
			
		||||
@media (max-width: 768px) {
 | 
			
		||||
  .product-list {
 | 
			
		||||
    gap: 20px;
 | 
			
		||||
  }
 | 
			
		||||
  
 | 
			
		||||
  .product-item {
 | 
			
		||||
    flex: 1 1 100%;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
@@ -1,12 +0,0 @@
 | 
			
		||||
---
 | 
			
		||||
date: "2016-12-01T16:00:00+02:00"
 | 
			
		||||
title: "Installation"
 | 
			
		||||
slug: "installation"
 | 
			
		||||
sidebar_position: 10
 | 
			
		||||
 | 
			
		||||
menu:
 | 
			
		||||
  sidebar:
 | 
			
		||||
    name: "Installation"
 | 
			
		||||
    sidebar_position: 10
 | 
			
		||||
    identifier: "installation"
 | 
			
		||||
---
 | 
			
		||||
@@ -3,29 +3,39 @@
 | 
			
		||||
layout: home
 | 
			
		||||
 | 
			
		||||
hero:
 | 
			
		||||
  name: "             通用的"
 | 
			
		||||
  text: "一站式软件研发平台"
 | 
			
		||||
  tagline: 提供开发环境DevEnv执行引擎,与VS Code插件或自定义IDE深度融合,形成灵活适配基础软件工具的生态平台
 | 
			
		||||
  # name: "             通用的"
 | 
			
		||||
  # text: "              为中小型公司提供IT服务"
 | 
			
		||||
  text: "为中小型公司提供IT服务"
 | 
			
		||||
  tagline: 我们为各行各业提供定制软件解决方案,为您的企业打造高价值的软件和技术
 | 
			
		||||
  image:
 | 
			
		||||
    src: /background.png
 | 
			
		||||
    src: /slider1.png
 | 
			
		||||
    alt: 背景图片
 | 
			
		||||
  actions:
 | 
			
		||||
    - theme: brand
 | 
			
		||||
      text: 什么是devstar
 | 
			
		||||
      link: /document/decription/关于devstar
 | 
			
		||||
      text: devstar入门
 | 
			
		||||
      link: /document/index
 | 
			
		||||
    - theme: alt
 | 
			
		||||
      text: 快速入门
 | 
			
		||||
      link: /document/decription/快速开始
 | 
			
		||||
      text: devstar入门
 | 
			
		||||
      link: /document/index
 | 
			
		||||
    - theme: alt
 | 
			
		||||
      text: GitHub
 | 
			
		||||
      link: https://github.com/mengning/DevStar
 | 
			
		||||
      text: devstar入门
 | 
			
		||||
      link: /document/index
 | 
			
		||||
 | 
			
		||||
features:
 | 
			
		||||
  - title: 极易安装
 | 
			
		||||
    details: 极易安装的详细描述
 | 
			
		||||
  - title: 运行迅速
 | 
			
		||||
    details: 运行迅速的详细描述
 | 
			
		||||
  - title: 安装和使用体验良好
 | 
			
		||||
    details: 安装和使用体验良好的详细描述
 | 
			
		||||
# features:
 | 
			
		||||
#   - title: 极易安装
 | 
			
		||||
#     details: 极易安装的详细描述
 | 
			
		||||
#   - title: 运行迅速
 | 
			
		||||
#     details: 运行迅速的详细描述
 | 
			
		||||
#   - title: 安装和使用体验良好
 | 
			
		||||
#     details: 安装和使用体验良好的详细描述
 | 
			
		||||
---
 | 
			
		||||
<script setup>
 | 
			
		||||
import Index from './components/Index.vue' // 你的组件
 | 
			
		||||
</script>
 | 
			
		||||
<Index/>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								docs/public/mengninglogo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								docs/public/mengninglogo.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 51 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/public/mnsoftware.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								docs/public/mnsoftware.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 41 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								docs/public/slider1.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								docs/public/slider1.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 156 KiB  | 
							
								
								
									
										128
									
								
								node_modules/.vue-global-types/vue_3.5_0.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										128
									
								
								node_modules/.vue-global-types/vue_3.5_0.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,128 @@
 | 
			
		||||
// @ts-nocheck
 | 
			
		||||
export {};
 | 
			
		||||
 | 
			
		||||
; declare global {
 | 
			
		||||
	const __VLS_directiveBindingRestFields: { instance: null, oldValue: null, modifiers: any, dir: any };
 | 
			
		||||
	const __VLS_unref: typeof import('vue').unref;
 | 
			
		||||
	const __VLS_placeholder: any;
 | 
			
		||||
 | 
			
		||||
	type __VLS_NativeElements = __VLS_SpreadMerge<SVGElementTagNameMap, HTMLElementTagNameMap>;
 | 
			
		||||
	type __VLS_IntrinsicElements = import('vue/jsx-runtime').JSX.IntrinsicElements;
 | 
			
		||||
	type __VLS_Element = import('vue/jsx-runtime').JSX.Element;
 | 
			
		||||
	type __VLS_GlobalComponents = import('vue').GlobalComponents;
 | 
			
		||||
	type __VLS_GlobalDirectives = import('vue').GlobalDirectives;
 | 
			
		||||
	type __VLS_IsAny<T> = 0 extends 1 & T ? true : false;
 | 
			
		||||
	type __VLS_PickNotAny<A, B> = __VLS_IsAny<A> extends true ? B : A;
 | 
			
		||||
	type __VLS_SpreadMerge<A, B> = Omit<A, keyof B> & B;
 | 
			
		||||
	type __VLS_WithComponent<N0 extends string, LocalComponents, Self, N1 extends string, N2 extends string, N3 extends string> =
 | 
			
		||||
		N1 extends keyof LocalComponents ? N1 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : { [K in N0]: LocalComponents[N1] } :
 | 
			
		||||
		N2 extends keyof LocalComponents ? N2 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : { [K in N0]: LocalComponents[N2] } :
 | 
			
		||||
		N3 extends keyof LocalComponents ? N3 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : { [K in N0]: LocalComponents[N3] } :
 | 
			
		||||
		Self extends object ? { [K in N0]: Self } :
 | 
			
		||||
		N1 extends keyof __VLS_GlobalComponents ? N1 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : { [K in N0]: __VLS_GlobalComponents[N1] } :
 | 
			
		||||
		N2 extends keyof __VLS_GlobalComponents ? N2 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : { [K in N0]: __VLS_GlobalComponents[N2] } :
 | 
			
		||||
		N3 extends keyof __VLS_GlobalComponents ? N3 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : { [K in N0]: __VLS_GlobalComponents[N3] } :
 | 
			
		||||
		{};
 | 
			
		||||
	type __VLS_FunctionalComponentCtx<T, K> = __VLS_PickNotAny<'__ctx' extends keyof __VLS_PickNotAny<K, {}>
 | 
			
		||||
		? K extends { __ctx?: infer Ctx } ? NonNullable<Ctx> : never : any
 | 
			
		||||
		, T extends (props: any, ctx: infer Ctx) => any ? Ctx : any
 | 
			
		||||
	>;
 | 
			
		||||
	type __VLS_FunctionalComponentProps<T, K> = '__ctx' extends keyof __VLS_PickNotAny<K, {}>
 | 
			
		||||
		? K extends { __ctx?: { props?: infer P } } ? NonNullable<P> : never
 | 
			
		||||
		: T extends (props: infer P, ...args: any) => any ? P
 | 
			
		||||
		: {};
 | 
			
		||||
	type __VLS_FunctionalComponent<T> = (props: (T extends { $props: infer Props } ? Props : {}) & Record<string, unknown>, ctx?: any) => __VLS_Element & {
 | 
			
		||||
		__ctx?: {
 | 
			
		||||
			attrs?: any;
 | 
			
		||||
			slots?: T extends { $slots: infer Slots } ? Slots : Record<string, any>;
 | 
			
		||||
			emit?: T extends { $emit: infer Emit } ? Emit : {};
 | 
			
		||||
			props?: (T extends { $props: infer Props } ? Props : {}) & Record<string, unknown>;
 | 
			
		||||
			expose?: (exposed: T) => void;
 | 
			
		||||
		};
 | 
			
		||||
	};
 | 
			
		||||
	type __VLS_IsFunction<T, K> = K extends keyof T
 | 
			
		||||
		? __VLS_IsAny<T[K]> extends false
 | 
			
		||||
		? unknown extends T[K]
 | 
			
		||||
		? false
 | 
			
		||||
		: true
 | 
			
		||||
		: false
 | 
			
		||||
		: false;
 | 
			
		||||
	type __VLS_NormalizeComponentEvent<
 | 
			
		||||
		Props,
 | 
			
		||||
		Emits,
 | 
			
		||||
		onEvent extends keyof Props,
 | 
			
		||||
		Event extends keyof Emits,
 | 
			
		||||
		CamelizedEvent extends keyof Emits,
 | 
			
		||||
	> = __VLS_IsFunction<Props, onEvent> extends true
 | 
			
		||||
		? Props
 | 
			
		||||
		: __VLS_IsFunction<Emits, Event> extends true
 | 
			
		||||
			? { [K in onEvent]?: Emits[Event] }
 | 
			
		||||
			: __VLS_IsFunction<Emits, CamelizedEvent> extends true
 | 
			
		||||
				? { [K in onEvent]?: Emits[CamelizedEvent] }
 | 
			
		||||
				: Props;
 | 
			
		||||
	// fix https://github.com/vuejs/language-tools/issues/926
 | 
			
		||||
	type __VLS_UnionToIntersection<U> = (U extends unknown ? (arg: U) => unknown : never) extends ((arg: infer P) => unknown) ? P : never;
 | 
			
		||||
	type __VLS_OverloadUnionInner<T, U = unknown> = U & T extends (...args: infer A) => infer R
 | 
			
		||||
		? U extends T
 | 
			
		||||
		? never
 | 
			
		||||
		: __VLS_OverloadUnionInner<T, Pick<T, keyof T> & U & ((...args: A) => R)> | ((...args: A) => R)
 | 
			
		||||
		: never;
 | 
			
		||||
	type __VLS_OverloadUnion<T> = Exclude<
 | 
			
		||||
		__VLS_OverloadUnionInner<(() => never) & T>,
 | 
			
		||||
		T extends () => never ? never : () => never
 | 
			
		||||
	>;
 | 
			
		||||
	type __VLS_ConstructorOverloads<T> = __VLS_OverloadUnion<T> extends infer F
 | 
			
		||||
		? F extends (event: infer E, ...args: infer A) => any
 | 
			
		||||
		? { [K in E & string]: (...args: A) => void; }
 | 
			
		||||
		: never
 | 
			
		||||
		: never;
 | 
			
		||||
	type __VLS_NormalizeEmits<T> = __VLS_PrettifyGlobal<
 | 
			
		||||
		__VLS_UnionToIntersection<
 | 
			
		||||
			__VLS_ConstructorOverloads<T> & {
 | 
			
		||||
				[K in keyof T]: T[K] extends any[] ? { (...args: T[K]): void } : never
 | 
			
		||||
			}
 | 
			
		||||
		>
 | 
			
		||||
	>;
 | 
			
		||||
	type __VLS_ResolveEmits<
 | 
			
		||||
		Comp,
 | 
			
		||||
		Emits,
 | 
			
		||||
		TypeEmits = {},
 | 
			
		||||
		NormalizedEmits = __VLS_NormalizeEmits<Emits> extends infer E ? string extends keyof E ? {} : E : never,
 | 
			
		||||
	> = __VLS_SpreadMerge<NormalizedEmits, TypeEmits>;
 | 
			
		||||
	type __VLS_ResolveDirectives<T> = {
 | 
			
		||||
		[K in Exclude<keyof T, keyof __VLS_GlobalDirectives> & string as `v${Capitalize<K>}`]: T[K];
 | 
			
		||||
	};
 | 
			
		||||
	type __VLS_PrettifyGlobal<T> = { [K in keyof T as K]: T[K]; } & {};
 | 
			
		||||
	type __VLS_UseTemplateRef<T> = Readonly<import('vue').ShallowRef<T | null>>;
 | 
			
		||||
 | 
			
		||||
	function __VLS_getVForSourceType<T extends number | string | any[] | Iterable<any>>(source: T): [
 | 
			
		||||
		item: T extends number ? number
 | 
			
		||||
			: T extends string ? string
 | 
			
		||||
			: T extends any[] ? T[number]
 | 
			
		||||
			: T extends Iterable<infer T1> ? T1
 | 
			
		||||
			: any,
 | 
			
		||||
		index: number,
 | 
			
		||||
	][];
 | 
			
		||||
	function __VLS_getVForSourceType<T>(source: T): [
 | 
			
		||||
		item: T[keyof T],
 | 
			
		||||
		key: keyof T,
 | 
			
		||||
		index: number,
 | 
			
		||||
	][];
 | 
			
		||||
	function __VLS_getSlotParameters<S, D extends S>(slot: S, decl?: D):
 | 
			
		||||
		D extends (...args: infer P) => any ? P : any[];
 | 
			
		||||
	function __VLS_asFunctionalDirective<T>(dir: T): T extends import('vue').ObjectDirective
 | 
			
		||||
		? NonNullable<T['created' | 'beforeMount' | 'mounted' | 'beforeUpdate' | 'updated' | 'beforeUnmount' | 'unmounted']>
 | 
			
		||||
		: T extends (...args: any) => any
 | 
			
		||||
			? T
 | 
			
		||||
			: (arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown) => void;
 | 
			
		||||
	function __VLS_makeOptional<T>(t: T): { [K in keyof T]?: T[K] };
 | 
			
		||||
	function __VLS_asFunctionalComponent<T, K = T extends new (...args: any) => any ? InstanceType<T> : unknown>(t: T, instance?: K):
 | 
			
		||||
		T extends new (...args: any) => any ? __VLS_FunctionalComponent<K>
 | 
			
		||||
		: T extends () => any ? (props: {}, ctx?: any) => ReturnType<T>
 | 
			
		||||
		: T extends (...args: any) => any ? T
 | 
			
		||||
		: __VLS_FunctionalComponent<{}>;
 | 
			
		||||
	function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): 2 extends Parameters<T>['length'] ? [any] : [];
 | 
			
		||||
	function __VLS_asFunctionalElement<T>(tag: T, endTag?: T): (attrs: T & Record<string, unknown>) => void;
 | 
			
		||||
	function __VLS_asFunctionalSlot<S>(slot: S): S extends () => infer R ? (props: {}) => R : NonNullable<S>;
 | 
			
		||||
	function __VLS_tryAsConstant<const T>(t: T): T;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user