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

832203314 - work5 & work6 & work7 #73

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 30 additions & 0 deletions work5/IMZTTTT_XD/west2-UI/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// 在.eslintrc.cjs中进行配置
/* eslint-env node */ // 指定 ESLint 运行在 Node.js 环境中
require('@rushstack/eslint-patch/modern-module-resolution')
const stylistic = require('@stylistic/eslint-plugin')

// 使用 '@stylistic/eslint-plugin' 插件的 'customize' 方法来定制一些规则
const customized = stylistic.configs.customize({
// 下面的选项是默认值
indent: 2, // 缩进使用 2 个空格
quotes: 'single', // 字符串使用单引号
semi: false, // 语句末尾不使用分号
jsx: true, // 支持 JSX
})

// 导出 ESLint 配置
module.exports = {
root: true, // 这个配置文件是 ESLint 配置的根,ESLint 将停止在父级目录中查找更多的配置文件
plugins: ['@stylistic'], // 使用 '@stylistic' 插件
extends: [
'plugin:vue/vue3-essential', // 扩展 Vue.js 3 的基本配置
'eslint:recommended', // 扩展 ESLint 推荐的配置
'@vue/eslint-config-prettier/skip-formatting', // 扩展 Prettier 的配置,并跳过格式化
],
rules: {
...customized.rules, // 使用上面定制的规则
},
parserOptions: {
ecmaVersion: 'latest', // 使用最新的 ECMAScript 版本进行解析
},
}
30 changes: 30 additions & 0 deletions work5/IMZTTTT_XD/west2-UI/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

*.tsbuildinfo
30 changes: 30 additions & 0 deletions work5/IMZTTTT_XD/west2-UI/.history/.eslintrc_20240317141234.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// 在.eslintrc.cjs中进行配置
/* eslint-env node */ // 指定 ESLint 运行在 Node.js 环境中
require('@rushstack/eslint-patch/modern-module-resolution')
const stylistic = require('@stylistic/eslint-plugin')

// 使用 '@stylistic/eslint-plugin' 插件的 'customize' 方法来定制一些规则
const customized = stylistic.configs.customize({
// 下面的选项是默认值
indent: 2, // 缩进使用 2 个空格
quotes: 'single', // 字符串使用单引号
semi: false, // 语句末尾不使用分号
jsx: true, // 支持 JSX
})

// 导出 ESLint 配置
module.exports = {
root: true, // 这个配置文件是 ESLint 配置的根,ESLint 将停止在父级目录中查找更多的配置文件
plugins: ['@stylistic'], // 使用 '@stylistic' 插件
extends: [
'plugin:vue/vue3-essential', // 扩展 Vue.js 3 的基本配置
'eslint:recommended', // 扩展 ESLint 推荐的配置
'@vue/eslint-config-prettier/skip-formatting', // 扩展 Prettier 的配置,并跳过格式化
],
rules: {
...customized.rules, // 使用上面定制的规则
},
parserOptions: {
ecmaVersion: 'latest', // 使用最新的 ECMAScript 版本进行解析
},
}
30 changes: 30 additions & 0 deletions work5/IMZTTTT_XD/west2-UI/.history/.eslintrc_20240317142936.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// 在.eslintrc.cjs中进行配置
/* eslint-env node */ // 指定 ESLint 运行在 Node.js 环境中
require('@rushstack/eslint-patch/modern-module-resolution')
const stylistic = require('@stylistic/eslint-plugin')

// 使用 '@stylistic/eslint-plugin' 插件的 'customize' 方法来定制一些规则
const customized = stylistic.configs.customize({
// 下面的选项是默认值
indent: 2, // 缩进使用 2 个空格
quotes: 'single', // 字符串使用单引号
semi: true, // 语句末尾不使用分号
jsx: true, // 支持 JSX
})

// 导出 ESLint 配置
module.exports = {
root: true, // 这个配置文件是 ESLint 配置的根,ESLint 将停止在父级目录中查找更多的配置文件
plugins: ['@stylistic'], // 使用 '@stylistic' 插件
extends: [
'plugin:vue/vue3-essential', // 扩展 Vue.js 3 的基本配置
'eslint:recommended', // 扩展 ESLint 推荐的配置
'@vue/eslint-config-prettier/skip-formatting', // 扩展 Prettier 的配置,并跳过格式化
],
rules: {
...customized.rules, // 使用上面定制的规则
},
parserOptions: {
ecmaVersion: 'latest', // 使用最新的 ECMAScript 版本进行解析
},
}
30 changes: 30 additions & 0 deletions work5/IMZTTTT_XD/west2-UI/.history/.eslintrc_20240317142945.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// 在.eslintrc.cjs中进行配置
/* eslint-env node */ // 指定 ESLint 运行在 Node.js 环境中
require('@rushstack/eslint-patch/modern-module-resolution')
const stylistic = require('@stylistic/eslint-plugin')

// 使用 '@stylistic/eslint-plugin' 插件的 'customize' 方法来定制一些规则
const customized = stylistic.configs.customize({
// 下面的选项是默认值
indent: 2, // 缩进使用 2 个空格
quotes: 'single', // 字符串使用单引号
semi: false, // 语句末尾不使用分号
jsx: true, // 支持 JSX
})

// 导出 ESLint 配置
module.exports = {
root: true, // 这个配置文件是 ESLint 配置的根,ESLint 将停止在父级目录中查找更多的配置文件
plugins: ['@stylistic'], // 使用 '@stylistic' 插件
extends: [
'plugin:vue/vue3-essential', // 扩展 Vue.js 3 的基本配置
'eslint:recommended', // 扩展 ESLint 推荐的配置
'@vue/eslint-config-prettier/skip-formatting', // 扩展 Prettier 的配置,并跳过格式化
],
rules: {
...customized.rules, // 使用上面定制的规则
},
parserOptions: {
ecmaVersion: 'latest', // 使用最新的 ECMAScript 版本进行解析
},
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "IMZTTTT UI Library",
description: "A VitePress Site",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Home', link: '/' },
{ text: 'Examples', link: '/markdown-examples' }
],

sidebar: [
{
text: 'Examples',
items: [
{ text: 'Markdown Examples', link: '/markdown-examples' },
{ text: 'Runtime API Examples', link: '/api-examples' }
]
}
],

socialLinks: [
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
]
}
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: 'IMZTTTT UI Library',
description: 'A VitePress Site',
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: '首页', link: '/' },
{ text: '组件', link: '/examples/input' }
],

sidebar: [
{
text: '组件',
items: [
{ text: 'Markdown Examples', link: '/markdown-examples' },
{ text: 'Runtime API Examples', link: '/api-examples' }
]
}
],

socialLinks: [{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }]
}
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: 'IMZTTTT UI Library',
description: 'A VitePress Site',
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: '首页', link: '/' },
{ text: '组件', link: '/examples/input' }
],

sidebar: [
{
text: '组件',
items: [{ text: 'input输入框', link: '/examples/input' }]
}
],

socialLinks: [{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }]
}
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { defineConfig } from 'vitepress'
// 加入插件
import { demoblockPlugin, demoblockVitePlugin } from 'vitepress-theme-demoblock'
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: 'My Ui Library',
description: 'A VitePress Site',
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: '首页', link: '/' },
{ text: '组件', link: '/examples/input' }
],

sidebar: [
{
text: '组件',
items: [{ text: 'input输入框', link: '/examples/input' }]
}
],

socialLinks: [{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }]
},
// 加入插件
markdown: {
config: (md) => {
md.use(demoblockPlugin)
}
},
// 加入插件
vite: {
plugins: [demoblockVitePlugin()]
}
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { defineConfig } from 'vitepress'
// 加入插件
import { demoblockPlugin, demoblockVitePlugin } from 'vitepress-theme-demoblock'
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: 'My Ui Library',
description: 'A VitePress Site',
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: '首页', link: '/' },
{ text: '组件', link: '/examples/input' }
],

sidebar: [
{
text: '组件',
items: [
{ text: 'Input 输入框', link: '/examples/input' },
{ text: 'Button 按钮', link: '/examples/button' },
{ text: 'Dialog 对话框', link: '/examples/dialog' }
]
}
],

socialLinks: [{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }]
},
// 加入插件
markdown: {
config: (md) => {
md.use(demoblockPlugin)
}
},
// 加入插件
vite: {
plugins: [demoblockVitePlugin()]
}
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { defineConfig } from 'vitepress'
// 加入插件
import { demoblockPlugin, demoblockVitePlugin } from 'vitepress-theme-demoblock'
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: 'My Ui Library',
description: 'A VitePress Site',
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: '首页', link: '/' },
{ text: '组件', link: '/examples/input' }
],

sidebar: [
{
text: '组件',
items: [
{ text: 'Input 输入框', link: '/examples/input' },
{ text: 'Button 按钮', link: '/examples/button' },
{ text: 'Dialog 对话框', link: '/examples/dialog' },
{ text: 'Checkbox 多选框', link: '/examples/checkbox' }
]
}
],

socialLinks: [{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }]
},
// 加入插件
markdown: {
config: (md) => {
md.use(demoblockPlugin)
}
},
// 加入插件
vite: {
plugins: [demoblockVitePlugin()]
}
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { defineConfig } from 'vitepress'
// 加入插件
import { demoblockPlugin, demoblockVitePlugin } from 'vitepress-theme-demoblock'
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: 'My Ui Library',
description: 'A VitePress Site',
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: '首页', link: '/' },
{ text: '组件', link: '/examples/input' }
],

sidebar: [
{
text: '组件',
items: [
{ text: 'Input 输入框', link: '/examples/input' },
{ text: 'Button 按钮', link: '/examples/button' },
{ text: 'Dialog 对话框', link: '/examples/dialog' },
{ text: 'Checkbox 多选框', link: '/examples/checkbox' }
]
}
],

socialLinks: [{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }]
},
// 加入插件
markdown: {
config: (md) => {
md.use(demoblockPlugin)
}
},
// 加入插件
vite: {
plugins: [demoblockVitePlugin()]
}
})
Loading
Loading