Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
schbrain-archetype-initializer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tools
schbrain-archetype-initializer
Commits
29f03886
Commit
29f03886
authored
Jul 20, 2023
by
liaozan
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no messages
parent
70d688e9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
initializer-backend/src/main/java/com/schbrain/archetype/initializer/controller/ArchetypeController.java
...archetype/initializer/controller/ArchetypeController.java
+1
-1
initializer-backend/src/main/java/com/schbrain/archetype/initializer/service/ArchetypeService.java
...brain/archetype/initializer/service/ArchetypeService.java
+2
-1
initializer-ui/package.json
initializer-ui/package.json
+3
-3
initializer-ui/src/main.ts
initializer-ui/src/main.ts
+2
-2
No files found.
initializer-backend/src/main/java/com/schbrain/archetype/initializer/controller/ArchetypeController.java
View file @
29f03886
...
@@ -39,7 +39,7 @@ public class ArchetypeController {
...
@@ -39,7 +39,7 @@ public class ArchetypeController {
* 生成项目
* 生成项目
*/
*/
@PostMapping
(
"/archetype/generate"
)
@PostMapping
(
"/archetype/generate"
)
public
ResponseDTO
<
String
>
generateArchetype
(
@RequestBody
@Validated
ArchetypeGenerateParam
param
)
{
public
ResponseDTO
<
String
>
generateArchetype
(
@RequestBody
@Validated
ArchetypeGenerateParam
param
)
throws
FileNotFoundException
{
return
ResponseDTO
.
success
(
archetypeService
.
generate
(
param
));
return
ResponseDTO
.
success
(
archetypeService
.
generate
(
param
));
}
}
...
...
initializer-backend/src/main/java/com/schbrain/archetype/initializer/service/ArchetypeService.java
View file @
29f03886
...
@@ -45,9 +45,10 @@ public class ArchetypeService {
...
@@ -45,9 +45,10 @@ public class ArchetypeService {
private
final
Path
gitKeepFile
=
createGitKeepFile
(
SystemUtil
.
getUserInfo
().
getTempDir
());
private
final
Path
gitKeepFile
=
createGitKeepFile
(
SystemUtil
.
getUserInfo
().
getTempDir
());
public
String
generate
(
ArchetypeGenerateParam
param
)
{
public
String
generate
(
ArchetypeGenerateParam
param
)
throws
FileNotFoundException
{
String
generateId
=
MavenUtils
.
generate
(
param
);
String
generateId
=
MavenUtils
.
generate
(
param
);
archetypeNameCache
.
put
(
generateId
,
param
.
getArtifactId
());
archetypeNameCache
.
put
(
generateId
,
param
.
getArtifactId
());
preview
(
generateId
);
return
generateId
;
return
generateId
;
}
}
...
...
initializer-ui/package.json
View file @
29f03886
...
@@ -8,14 +8,14 @@
...
@@ -8,14 +8,14 @@
"dependencies"
:
{
"dependencies"
:
{
"vue"
:
"^3.3.4"
,
"vue"
:
"^3.3.4"
,
"axios"
:
"^1.4.0"
,
"axios"
:
"^1.4.0"
,
"ant-design-vue"
:
"^
3.2.2
0"
,
"ant-design-vue"
:
"^
4.0.
0"
,
"highlight.js"
:
"^11.8.0"
,
"highlight.js"
:
"^11.8.0"
,
"@highlightjs/vue-plugin"
:
"^2.1.0"
"@highlightjs/vue-plugin"
:
"^2.1.0"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@vitejs/plugin-vue"
:
"^4.2.3"
,
"@vitejs/plugin-vue"
:
"^4.2.3"
,
"typescript"
:
"^5.1.6"
,
"typescript"
:
"^5.1.6"
,
"vite"
:
"^4.4.
2
"
,
"vite"
:
"^4.4.
4
"
,
"vue-tsc"
:
"^1.8.
4
"
"vue-tsc"
:
"^1.8.
5
"
}
}
}
}
\ No newline at end of file
initializer-ui/src/main.ts
View file @
29f03886
...
@@ -2,7 +2,7 @@ import {createApp} from 'vue'
...
@@ -2,7 +2,7 @@ import {createApp} from 'vue'
import
App
from
'
./App.vue
'
import
App
from
'
./App.vue
'
import
Antd
from
'
ant-design-vue
'
import
Antd
from
'
ant-design-vue
'
import
'
./index.css
'
import
'
./index.css
'
import
'
ant-design-vue/dist/
antd
.css
'
;
import
'
ant-design-vue/dist/
reset
.css
'
;
import
'
highlight.js/styles/stackoverflow-light.css
'
import
'
highlight.js/styles/stackoverflow-light.css
'
import
highlight
from
'
highlight.js/lib/common
'
;
import
highlight
from
'
highlight.js/lib/common
'
;
import
highlightVuePlugin
from
'
@highlightjs/vue-plugin
'
import
highlightVuePlugin
from
'
@highlightjs/vue-plugin
'
...
@@ -12,4 +12,4 @@ highlight.configure({})
...
@@ -12,4 +12,4 @@ highlight.configure({})
const
app
=
createApp
(
App
)
const
app
=
createApp
(
App
)
app
.
use
(
highlightVuePlugin
)
app
.
use
(
highlightVuePlugin
)
app
.
use
(
Antd
)
app
.
use
(
Antd
)
app
.
mount
(
'
#app
'
)
app
.
mount
(
'
#app
'
)
\ 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