Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
091beffa
Unverified
Commit
091beffa
authored
May 29, 2023
by
Joel
Committed by
GitHub
May 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add code style (#242)
parent
408fb502
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
53 additions
and
8 deletions
+53
-8
.gitignore
.gitignore
+0
-1
.eslintignore
web/.eslintignore
+7
-0
.eslintrc.json
web/.eslintrc.json
+2
-2
pre-commit
web/.husky/pre-commit
+4
-0
settings.json
web/.vscode/settings.json
+23
-0
layout.tsx
web/app/(commonLayout)/app/(appDetailLayout)/layout.tsx
+3
-3
package.json
web/package.json
+14
-2
No files found.
.gitignore
View file @
091beffa
...
...
@@ -130,7 +130,6 @@ dmypy.json
.idea/'
.DS_Store
.vscode
# Intellij IDEA Files
.idea/
...
...
web/.eslintignore
0 → 100644
View file @
091beffa
/**/node_modules/*
node_modules/
dist/
build/
out/
.next/
\ No newline at end of file
web/.eslintrc.json
View file @
091beffa
...
...
@@ -23,6 +23,6 @@
]
}
],
"react-hooks/exhaustive-deps"
:
"warn
ing
"
"react-hooks/exhaustive-deps"
:
"warn"
}
}
}
\ No newline at end of file
web/.husky/pre-commit
0 → 100755
View file @
091beffa
#!/usr/bin/env sh
.
"
$(
dirname
--
"
$0
"
)
/_/husky.sh"
cd
./web
&&
npx lint-staged
web/.vscode/settings.json
0 → 100644
View file @
091beffa
{
"prettier.enable"
:
false
,
"editor.formatOnSave"
:
true
,
"editor.codeActionsOnSave"
:
{
"source.fixAll.eslint"
:
true
},
"eslint.format.enable"
:
true
,
"[python]"
:
{
"editor.formatOnType"
:
true
},
"[html]"
:
{
"editor.defaultFormatter"
:
"vscode.html-language-features"
},
"[typescriptreact]"
:
{
"editor.defaultFormatter"
:
"vscode.typescript-language-features"
},
"[javascriptreact]"
:
{
"editor.defaultFormatter"
:
"vscode.typescript-language-features"
},
"[jsonc]"
:
{
"editor.defaultFormatter"
:
"vscode.json-language-features"
}
}
\ No newline at end of file
web/app/(commonLayout)/app/(appDetailLayout)/layout.tsx
View file @
091beffa
...
...
@@ -7,9 +7,9 @@ export type IAppDetail = {
const
AppDetail
:
FC
<
IAppDetail
>
=
({
children
})
=>
{
return
(
<>
{
children
}
</>
<>
{
children
}
</>
)
}
...
...
web/package.json
View file @
091beffa
...
...
@@ -7,7 +7,9 @@
"build"
:
"next build"
,
"start"
:
"next start"
,
"lint"
:
"next lint"
,
"fix"
:
"next lint --fix"
"fix"
:
"next lint --fix"
,
"eslint-fix"
:
"eslint --fix"
,
"prepare"
:
"cd ../ && husky install ./web/.husky"
},
"dependencies"
:
{
"@emoji-mart/data"
:
"^1.1.2"
,
...
...
@@ -78,8 +80,18 @@
"@types/qs"
:
"^6.9.7"
,
"autoprefixer"
:
"^10.4.14"
,
"eslint-plugin-react-hooks"
:
"^4.6.0"
,
"husky"
:
"^8.0.3"
,
"lint-staged"
:
"^13.2.2"
,
"miragejs"
:
"^0.1.47"
,
"postcss"
:
"^8.4.21"
,
"tailwindcss"
:
"^3.2.7"
},
"lint-staged"
:
{
"**/*.js?(x)"
:
[
"eslint --fix"
],
"**/*.ts?(x)"
:
[
"eslint --fix"
]
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment