Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c391ba76
authored
Jan 15, 2025
by
YunaiV
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitee.com/yudaocode/yudao-ui-admin-vue3
into feature/bpm
parents
c62833fc
2b38c021
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
7 deletions
+8
-7
.eslintrc.js
+0
-0
.vscode/settings.json
+1
-1
package.json
+0
-1
postcss.config.js
+1
-1
prettier.config.js
+0
-0
src/views/infra/build/index.vue
+6
-4
No files found.
.eslintrc.
c
js
→
.eslintrc.js
View file @
c391ba76
File moved
.vscode/settings.json
View file @
c391ba76
...
...
@@ -138,7 +138,7 @@
"*.ts"
:
"$(capture).test.ts, $(capture).test.tsx"
,
"*.tsx"
:
"$(capture).test.ts, $(capture).test.tsx"
,
"*.env"
:
"$(capture).env.*"
,
"package.json"
:
"pnpm-lock.yaml,yarn.lock,LICENSE,README*,CHANGELOG*,CNAME,.gitattributes,.eslintrc-auto-import.json,.gitignore,prettier.config.
cjs,stylelint.config.js,commitlint.config.js,.stylelintignore,.prettierignore,.gitpod.yml,.eslintrc.c
js,.eslintignore"
"package.json"
:
"pnpm-lock.yaml,yarn.lock,LICENSE,README*,CHANGELOG*,CNAME,.gitattributes,.eslintrc-auto-import.json,.gitignore,prettier.config.
js,stylelint.config.js,commitlint.config.js,.stylelintignore,.prettierignore,.gitpod.yml,.eslintrc.
js,.eslintignore"
},
"terminal.integrated.scrollback"
:
10000
,
"nuxt.isNuxtApp"
:
false
...
...
package.json
View file @
c391ba76
...
...
@@ -4,7 +4,6 @@
"description"
:
"基于vue3、vite4、element-plus、typesScript"
,
"author"
:
"xingyu"
,
"private"
:
false
,
"type"
:
"module"
,
"scripts"
:
{
"i"
:
"pnpm install"
,
"dev"
:
"vite --mode env.local"
,
...
...
postcss.config.js
View file @
c391ba76
export
default
{
module
.
exports
=
{
plugins
:
{
autoprefixer
:
{}
}
...
...
prettier.config.
c
js
→
prettier.config.js
View file @
c391ba76
File moved
src/views/infra/build/index.vue
View file @
c391ba76
...
...
@@ -135,7 +135,8 @@ const makeTemplate = () => {
/** 复制 **/
const
copy
=
async
(
text
:
string
)
=>
{
const
{
copy
,
copied
,
isSupported
}
=
useClipboard
({
source
:
text
})
const
textToCopy
=
JSON
.
stringify
(
text
,
null
,
2
)
const
{
copy
,
copied
,
isSupported
}
=
useClipboard
({
source
:
textToCopy
})
if
(
!
isSupported
)
{
message
.
error
(
t
(
'common.copyError'
))
}
else
{
...
...
@@ -149,17 +150,18 @@ const copy = async (text: string) => {
/**
* 代码高亮
*/
const
highlightedCode
=
(
code
)
=>
{
const
highlightedCode
=
(
code
:
string
)
=>
{
// 处理语言和代码
let
language
=
'json'
if
(
formType
.
value
===
2
)
{
language
=
'xml'
}
// debugger
if
(
!
isString
(
code
))
{
code
=
JSON
.
stringify
(
code
)
code
=
JSON
.
stringify
(
code
,
null
,
2
)
}
// 高亮
const
result
=
hljs
.
highlight
(
language
,
code
,
true
)
const
result
=
hljs
.
highlight
(
code
,
{
language
:
language
,
ignoreIllegals
:
true
}
)
return
result
.
value
||
' '
}
...
...
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