mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 08:26:02 +08:00
fix: eslint to find top dir
This commit is contained in:
parent
3b48f8c98e
commit
f9c48e9ea9
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"root": true,
|
||||||
"extends": [
|
"extends": [
|
||||||
"next",
|
"next",
|
||||||
"@antfu"
|
"@antfu"
|
||||||
|
@ -1,8 +1,17 @@
|
|||||||
import Container from './Container'
|
import Container from './Container'
|
||||||
|
import ListItem from '@/app/components/plugins/list-item-for-test'
|
||||||
|
|
||||||
const PluginList = async () => {
|
const PluginList = async () => {
|
||||||
|
const mockList = ['Plugin 1', 'Plugin 2', 'Plugin 3']
|
||||||
return (
|
return (
|
||||||
<Container />
|
<>
|
||||||
|
<Container />
|
||||||
|
<div>
|
||||||
|
{mockList.map(item => (
|
||||||
|
<ListItem key={item} text={item} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
15
web/app/components/plugins/list-item-for-test.tsx
Normal file
15
web/app/components/plugins/list-item-for-test.tsx
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import React from 'react'
|
||||||
|
|
||||||
|
type ListItemProps = {
|
||||||
|
text: string
|
||||||
|
}
|
||||||
|
|
||||||
|
const ListItem: React.FC<ListItemProps> = ({ text }) => {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<p>{text}</p>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default ListItem
|
@ -1,6 +1,6 @@
|
|||||||
/** @type {import('tailwindcss').Config} */
|
// import type { Config } from 'tailwindcss'
|
||||||
import commonConfig from './tailwind.common.config';
|
import commonConfig from './tailwind-common-config'
|
||||||
module.exports = {
|
const config = {
|
||||||
content: [
|
content: [
|
||||||
'./app/**/*.{js,ts,jsx,tsx}',
|
'./app/**/*.{js,ts,jsx,tsx}',
|
||||||
'./components/**/*.{js,ts,jsx,tsx}',
|
'./components/**/*.{js,ts,jsx,tsx}',
|
||||||
@ -8,3 +8,5 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
...commonConfig,
|
...commonConfig,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user