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
8358d0ab
Unverified
Commit
8358d0ab
authored
May 30, 2023
by
crazywoola
Committed by
GitHub
May 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: config file lint error (#250)
parent
bad3b144
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
24 deletions
+26
-24
settings.json
web/.vscode/settings.json
+3
-1
middleware.ts
web/middleware.ts
+3
-2
next.config.js
web/next.config.js
+6
-6
sentry.client.config.js
web/sentry.client.config.js
+3
-3
sentry.edge.config.js
web/sentry.edge.config.js
+3
-3
sentry.server.config.js
web/sentry.server.config.js
+3
-3
tailwind.config.js
web/tailwind.config.js
+5
-6
No files found.
web/.vscode/settings.json
View file @
8358d0ab
...
@@ -19,5 +19,7 @@
...
@@ -19,5 +19,7 @@
},
},
"[jsonc]"
:
{
"[jsonc]"
:
{
"editor.defaultFormatter"
:
"vscode.json-language-features"
"editor.defaultFormatter"
:
"vscode.json-language-features"
}
},
"typescript.tsdk"
:
"node_modules/typescript/lib"
,
"typescript.enablePromptUseWorkspaceTsdk"
:
true
}
}
\ No newline at end of file
web/middleware.ts
View file @
8358d0ab
...
@@ -23,11 +23,12 @@ export const getLocale = (request: NextRequest): Locale => {
...
@@ -23,11 +23,12 @@ export const getLocale = (request: NextRequest): Locale => {
}
}
// match locale
// match locale
let
matchedLocale
:
Locale
=
i18n
.
defaultLocale
let
matchedLocale
:
Locale
=
i18n
.
defaultLocale
try
{
try
{
// If languages is ['*'], Error would happen in match function.
// If languages is ['*'], Error would happen in match function.
matchedLocale
=
match
(
languages
,
locales
,
i18n
.
defaultLocale
)
as
Locale
matchedLocale
=
match
(
languages
,
locales
,
i18n
.
defaultLocale
)
as
Locale
}
catch
(
e
)
{}
}
catch
(
e
)
{}
return
matchedLocale
return
matchedLocale
}
}
...
...
web/next.config.js
View file @
8358d0ab
const
{
withSentryConfig
}
=
require
(
"@sentry/nextjs"
)
const
{
withSentryConfig
}
=
require
(
'@sentry/nextjs'
)
const
withMDX
=
require
(
'@next/mdx'
)({
const
withMDX
=
require
(
'@next/mdx'
)({
extension
:
/
\.
mdx
?
$/
,
extension
:
/
\.
mdx
?
$/
,
...
@@ -32,7 +32,7 @@ const nextConfig = {
...
@@ -32,7 +32,7 @@ const nextConfig = {
ignoreBuildErrors
:
true
,
ignoreBuildErrors
:
true
,
},
},
sentry
:
{
sentry
:
{
hideSourceMaps
:
true
hideSourceMaps
:
true
,
},
},
async
redirects
()
{
async
redirects
()
{
return
[
return
[
...
@@ -47,12 +47,12 @@ const nextConfig = {
...
@@ -47,12 +47,12 @@ const nextConfig = {
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup
const
sentryWebpackPluginOptions
=
{
const
sentryWebpackPluginOptions
=
{
org
:
"perfectworld"
,
org
:
'perfectworld'
,
project
:
"javascript-nextjs"
,
project
:
'javascript-nextjs'
,
silent
:
true
,
// Suppresses all logs
silent
:
true
,
// Suppresses all logs
sourcemaps
:
{
sourcemaps
:
{
assets
:
"./**"
,
assets
:
'./**'
,
ignore
:
[
"./node_modules/**"
],
ignore
:
[
'./node_modules/**'
],
},
},
// https://github.com/getsentry/sentry-webpack-plugin#options.
// https://github.com/getsentry/sentry-webpack-plugin#options.
...
...
web/sentry.client.config.js
View file @
8358d0ab
import
*
as
Sentry
from
"@sentry/nextjs"
;
import
*
as
Sentry
from
'@sentry/nextjs'
Sentry
.
init
({
Sentry
.
init
({
dsn
:
"https://6bf48a450f054d749398c02a61bae343@o4505264807215104.ingest.sentry.io/4505264809115648"
,
dsn
:
'https://6bf48a450f054d749398c02a61bae343@o4505264807215104.ingest.sentry.io/4505264809115648'
,
// Replay may only be enabled for the client-side
// Replay may only be enabled for the client-side
integrations
:
[
new
Sentry
.
Replay
()],
integrations
:
[
new
Sentry
.
Replay
()],
...
@@ -20,4 +20,4 @@ Sentry.init({
...
@@ -20,4 +20,4 @@ Sentry.init({
// Note: if you want to override the automatic release value, do not set a
// Note: if you want to override the automatic release value, do not set a
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
// that it will also get attached to your source maps
// that it will also get attached to your source maps
});
})
\ No newline at end of file
web/sentry.edge.config.js
View file @
8358d0ab
import
*
as
Sentry
from
"@sentry/nextjs"
;
import
*
as
Sentry
from
'@sentry/nextjs'
Sentry
.
init
({
Sentry
.
init
({
dsn
:
"https://6bf48a450f054d749398c02a61bae343@o4505264807215104.ingest.sentry.io/4505264809115648"
,
dsn
:
'https://6bf48a450f054d749398c02a61bae343@o4505264807215104.ingest.sentry.io/4505264809115648'
,
// Set tracesSampleRate to 1.0 to capture 100%
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// of transactions for performance monitoring.
...
@@ -13,4 +13,4 @@ Sentry.init({
...
@@ -13,4 +13,4 @@ Sentry.init({
// Note: if you want to override the automatic release value, do not set a
// Note: if you want to override the automatic release value, do not set a
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
// that it will also get attached to your source maps
// that it will also get attached to your source maps
});
})
\ No newline at end of file
web/sentry.server.config.js
View file @
8358d0ab
import
*
as
Sentry
from
"@sentry/nextjs"
;
import
*
as
Sentry
from
'@sentry/nextjs'
Sentry
.
init
({
Sentry
.
init
({
dsn
:
"https://6bf48a450f054d749398c02a61bae343@o4505264807215104.ingest.sentry.io/4505264809115648"
,
dsn
:
'https://6bf48a450f054d749398c02a61bae343@o4505264807215104.ingest.sentry.io/4505264809115648'
,
// Set tracesSampleRate to 1.0 to capture 100%
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// of transactions for performance monitoring.
// We recommend adjusting this value in production
// We recommend adjusting this value in production
tracesSampleRate
:
1.0
,
tracesSampleRate
:
1.0
,
});
})
\ No newline at end of file
web/tailwind.config.js
View file @
8358d0ab
...
@@ -50,21 +50,20 @@ module.exports = {
...
@@ -50,21 +50,20 @@ module.exports = {
indigo
:
{
indigo
:
{
25
:
'#F5F8FF'
,
25
:
'#F5F8FF'
,
100
:
'#E0EAFF'
,
100
:
'#E0EAFF'
,
600
:
'#444CE7'
600
:
'#444CE7'
,
}
}
,
},
},
screens
:
{
screens
:
{
'mobile'
:
'100px'
,
mobile
:
'100px'
,
// => @media (min-width: 100px) { ... }
// => @media (min-width: 100px) { ... }
'tablet'
:
'640px'
,
// 391
tablet
:
'640px'
,
// 391
// => @media (min-width: 600px) { ... }
// => @media (min-width: 600px) { ... }
'pc'
:
'769px'
,
pc
:
'769px'
,
// => @media (min-width: 769px) { ... }
// => @media (min-width: 769px) { ... }
},
},
},
},
},
},
plugins
:
[
plugins
:
[
require
(
'@tailwindcss/typography'
),
require
(
'@tailwindcss/typography'
),
require
(
'@tailwindcss/line-clamp'
),
],
],
}
}
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