mirror of
https://gitee.com/huoyo/ko-time.git
synced 2025-12-06 08:48:30 +08:00
update dynamic properties
This commit is contained in:
parent
ed2c9977b4
commit
b14c53b81d
@ -143,6 +143,9 @@ public class LoadConfig {
|
||||
Map<String, String> dynamicProperties = Context.getDynamicProperties();
|
||||
while ((line = reader.readLine()) != null) {
|
||||
line = line.trim();
|
||||
if (line.length()==0 || line.startsWith("#") || line.startsWith("//")) {
|
||||
continue;
|
||||
}
|
||||
int i = line.indexOf("=");
|
||||
if (i<1) {
|
||||
continue;
|
||||
|
||||
@ -397,6 +397,9 @@ public class KoTimeController {
|
||||
Map<String, String> dynamicProperties = Context.getDynamicProperties();
|
||||
for (String line : textSplit) {
|
||||
line = line.trim();
|
||||
if (line.length()==0 || line.startsWith("#") || line.startsWith("//")) {
|
||||
continue;
|
||||
}
|
||||
int i = line.indexOf("=");
|
||||
if (i<1) {
|
||||
continue;
|
||||
|
||||
@ -223,6 +223,12 @@
|
||||
"type": "java.lang.Boolean",
|
||||
"defaultValue": false,
|
||||
"description": "to enable email"
|
||||
},
|
||||
{
|
||||
"name": "ko-time.property-file",
|
||||
"type": "java.lang.String",
|
||||
"defaultValue": "dynamic.properties",
|
||||
"description": "dynamic properties"
|
||||
}
|
||||
],
|
||||
"hints": []
|
||||
|
||||
@ -850,7 +850,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<div class="uk-card uk-card-default uk-card-body" style="border-radius: 5px">
|
||||
<textarea id="dynamicText" class="uk-textarea" placeholder="" style="overflow-y: auto;height: 65%;resize: none"></textarea>
|
||||
<textarea id="dynamicText" class="uk-textarea" placeholder="" wrap="off" style="overflow-y: auto;height: 65%;resize: none;overflow-x: auto;"></textarea>
|
||||
<br>
|
||||
<br>
|
||||
<button type="button" onclick="updateDynamicProperties();" style="width: 100%;background-color: #19985d;border-radius: 5px" class="uk-button uk-button-primary uk-width-1-1 uk-margin-small-bottom">OK</button>
|
||||
|
||||
@ -841,7 +841,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<div class="uk-card uk-card-default uk-card-body" style="border-radius: 5px">
|
||||
<textarea id="dynamicText" class="uk-textarea" placeholder="" style="overflow-y: auto;height: 65%;resize: none"></textarea>
|
||||
<textarea id="dynamicText" class="uk-textarea" placeholder="" wrap="off" style="overflow-y: auto;height: 65%;resize: none;overflow-x: auto"></textarea>
|
||||
<br>
|
||||
<br>
|
||||
<button type="button" onclick="updateDynamicProperties();" style="width: 100%;background-color: #19985d;border-radius: 5px" class="uk-button uk-button-primary uk-width-1-1 uk-margin-small-bottom">更新</button>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user