Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
sooheon45 committed Jan 6, 2020
2 parents b6035c2 + c9c3917 commit 3bb3d3b
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 14 deletions.
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"json2yaml": "^1.1.0",
"jszip": "^3.2.2",
"mustache": "^3.1.0",
"pluralize": "^8.0.0",
"pusher": "^2.2.0",
"pusher-js": "^4.4.0",
"register-service-worker": "^1.5.2",
Expand Down
Binary file added public/static/image/logo_change.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spring:
- id: {{name}}
uri: http://localhost:{{portGenerated}}
predicates:
- Path={{#aggregates}}/{{name}}s/**{{/aggregates}}
- Path={{#aggregates}}/{{namePlural}}/**{{/aggregates}}
{{/boundedContexts}}
globalcors:
corsConfigurations:
Expand All @@ -35,7 +35,7 @@ spring:
- id: {{name}}
uri: http://{{name}}:8080
predicates:
- Path={{#aggregates}}/{{name}}s/**{{/aggregates}}
- Path={{#aggregates}}/{{namePlural}}/**{{/aggregates}}
{{/boundedContexts}}
globalcors:
corsConfigurations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@ public class {{namePascalCase}} {
private {{className}} {{nameCamelCase}};
{{/aggregateRoot.fieldDescriptors}}

{{#aggregateRoot.fieldDescriptors}}
public {{className}} get{{namePascalCase}}() {
return {{nameCamelCase}};
}

public void set{{namePascalCase}}({{className}} {{nameCamelCase}}) {
this.{{nameCamelCase}} = {{nameCamelCase}};
}
{{/aggregateRoot.fieldDescriptors}}


{{#events}}
{{trigger}}
Expand All @@ -40,4 +30,14 @@ public class {{namePascalCase}} {
}
{{/events}}

{{#aggregateRoot.fieldDescriptors}}
public {{className}} get{{namePascalCase}}() {
return {{nameCamelCase}};
}

public void set{{namePascalCase}}({{className}} {{nameCamelCase}}) {
this.{{nameCamelCase}} = {{nameCamelCase}};
}
{{/aggregateRoot.fieldDescriptors}}

}
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
return {
_type: this.className(),
name: '',
namePlural: '',
namePascalCase: '',
nameCamelCase: '',
elementView: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
description_text: '이벤트의 내용을 정의하고 시스템의 경계를 구분\n.',
_type: this.className(),
name: 'BoundedContext'+x,
namePlural: '',
aggregates:[],
elementView: {
'_type': this.className(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
'(UI 혹은 API)',
_type: this.className(),
name: '',
namePlural: '',
namePascalCase: '',
nameCamelCase:'',
aggregate: [] ,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
className() {
return 'org.uengine.model.Event'
},
createNew(elementId, x, y, width, height, angle) {
return {
description_text: '도메인 전문가가 정의함. \n' +
Expand All @@ -108,6 +107,7 @@
checkValue: false,
drawer: false,
selected: false,
namePlural: '',
editing: false,
eventToPolicy: '',
trigger: '@PrePersist',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
namePascalCase: '',
aggregate:[],
aggregateId: '',
namePlural: '',
boundedContext: '',
elementView: {
'_type': this.className(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
aggregateId:'',
aggregate:[],
namePascalCase: '',
namePlural: '',
elementView: {
'_type': this.className(),
'id': elementId,
Expand Down
5 changes: 4 additions & 1 deletion src/components/designer/modeling/ModelingPropertyPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@
<script>
var _ = require('lodash')
var googleTranslate = require('google-translate')(process.env.VUE_APP_TRANSLATE_KEY);
var changeCase = require('change-case')
var changeCase = require('change-case');
var pluralize = require('pluralize');
//https://www.npmjs.com/package/change-case

export default {
Expand Down Expand Up @@ -560,6 +561,8 @@
if (me.value._type == 'org.uengine.model.Event' || me.value._type == 'org.uengine.model.Command' || me.value._type == 'org.uengine.model.Policy' || me.value._type == 'org.uengine.model.Aggregate') {
me.value.namePascalCase = changeCase.pascalCase(newVal)
me.value.nameCamelCase = changeCase.camelCase(newVal)
me.value.namePlural = pluralize(newVal);
console.log(me.value.namePlural, me.value.namePascalCase, me.value.nameCamelCase)
}
}, 200
),
Expand Down

0 comments on commit 3bb3d3b

Please sign in to comment.