Skip to content

Commit c05b6f2

Browse files
committed
fix issues
1 parent 84a6d01 commit c05b6f2

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

template/public/index.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
<link href="https://unpkg.com/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
1010
<link rel="shortcut icon" type="image/png" href="https://moleculer.services/icon/favicon-16x16.png"/>
1111
<script src="https://unpkg.com/vue@3.2.34/dist/vue.global.js"></script>
12-
<link rel="stylesheet" href="./main.css">
13-
</style>
12+
<link rel="stylesheet" href="./main.css" />
1413
</head>
1514
<body>
1615
{{{{projectName}}}}
@@ -126,8 +125,8 @@ <h3 class="cursor-pointer" @click="showBrokerOptions = !showBrokerOptions">Broke
126125
<div v-if="item.fields" class="parameters">
127126
<div :class="{field:true,required:field.optional===false}" v-for="field,ix in item.fields" :key="field.name">
128127
<label :for="field.name+'--'+ix">{{ field.label }}: </label>
129-
<input v-if="field.dataType==='number'" :min="field.min" :max="field.max" :type="field.type" :id="field.name+'--'+ix" :name="field.name" v-model.number="field.value" :required="field.required === true || field.optional===false"></input>
130-
<input v-else :type="field.type" :maxlength="field.maxLength" :minlength="field.minLength" :id="field.name+'--'+ix" :name="field.name" v-model="field.value" :required="field.required === true || field.optional===false"></input>
128+
<input v-if="field.dataType==='number'" :min="field.min" :max="field.max" :type="field.type" :id="field.name+'--'+ix" :name="field.name" v-model.number="field.value" :required="field.required === true || field.optional===false" />
129+
<input v-else :type="field.type" :maxlength="field.maxLength" :minlength="field.minLength" :id="field.name+'--'+ix" :name="field.name" v-model="field.value" :required="field.required === true || field.optional===false" />
131130
</div>
132131
</div>
133132
</div>

template/services/api.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const ApiService: ServiceSchema<ApiSettingsSchema> = {
5757
): void {
5858
// Set request headers to context meta
5959
ctx.meta.userAgent = req.headers["user-agent"];
60-
},*/
60+
}, */
6161

6262
/**
6363
* After call hook. You can modify the data.
@@ -72,7 +72,7 @@ const ApiService: ServiceSchema<ApiSettingsSchema> = {
7272
// Async function which return with Promise
7373
// return this.doSomething(ctx, res, data);
7474
return data;
75-
},*/
75+
}, */
7676

7777
// Calling options. More info: https://moleculer.services/docs/0.14/moleculer-web.html#Calling-options
7878
callingOptions: {},

template/services/greeter.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const GreeterService: ServiceSchema<GreeterSettings> = {
4242
method: "GET",
4343
path: "/hello",
4444
},
45-
async handler(this: GreeterThis, ctx: Context): Promise<string> {
45+
handler(this: GreeterThis/* , ctx: Context */): string {
4646
return `Hello ${this.settings.defaultName}`;
4747
},
4848
},

0 commit comments

Comments
 (0)