parent
e985a8f30e
commit
40549e6552
|
@ -7,6 +7,7 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- git tag $DRONE_TAG
|
- git tag $DRONE_TAG
|
||||||
- bash release.sh cmd/configui/main.go
|
- bash release.sh cmd/configui/main.go
|
||||||
|
- echo -n "latest,$DRONE_TAG" > .tags
|
||||||
|
|
||||||
- name: gitea_release
|
- name: gitea_release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
|
@ -25,7 +26,7 @@ steps:
|
||||||
from_secret: hub_user
|
from_secret: hub_user
|
||||||
password:
|
password:
|
||||||
from_secret: hub_passwd
|
from_secret: hub_passwd
|
||||||
auto_tag: true
|
# auto_tag: true
|
||||||
mtu: 1000
|
mtu: 1000
|
||||||
# purge: true
|
# purge: true
|
||||||
repo: hub.kumoly.io/tools/configui
|
repo: hub.kumoly.io/tools/configui
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
# 0.1.3
|
||||||
|
|
||||||
|
## Feature
|
||||||
|
|
||||||
|
* bind key for run #37
|
||||||
|
## Fix
|
||||||
|
|
||||||
|
* Not building latest tag #38
|
||||||
|
|
||||||
# 0.1.2
|
# 0.1.2
|
||||||
|
|
||||||
## Feature
|
## Feature
|
||||||
|
|
|
@ -24,6 +24,7 @@ var Ext2Mode map[string]string = map[string]string{
|
||||||
"txt": "text",
|
"txt": "text",
|
||||||
"yml": "yaml",
|
"yml": "yaml",
|
||||||
"conf": "ini",
|
"conf": "ini",
|
||||||
|
"md": "markdown",
|
||||||
}
|
}
|
||||||
|
|
||||||
type ConfigUI struct {
|
type ConfigUI struct {
|
||||||
|
|
|
@ -30,6 +30,25 @@ function setEditor(){
|
||||||
},
|
},
|
||||||
readOnly: false // false if this command should not apply in readOnly mode
|
readOnly: false // false if this command should not apply in readOnly mode
|
||||||
});
|
});
|
||||||
|
editor.commands.addCommand({
|
||||||
|
name: 'Reload',
|
||||||
|
bindKey: {win: 'F5', mac: 'Command-R'},
|
||||||
|
exec: function(editor) {
|
||||||
|
if (window.ContentChanged)
|
||||||
|
if(confirm("You have unsaved changes, are you sure to reload?"))
|
||||||
|
window.location.reload()
|
||||||
|
},
|
||||||
|
readOnly: false
|
||||||
|
});
|
||||||
|
editor.commands.addCommand({
|
||||||
|
name: 'SaveAndApply',
|
||||||
|
bindKey: {win: 'Ctrl-E', mac: 'Command-E'},
|
||||||
|
exec: function(editor) {
|
||||||
|
if ('{{.File.Name}}'=='{{.AppName}}') toolSave()
|
||||||
|
else toolApply()
|
||||||
|
},
|
||||||
|
readOnly: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{{end}}
|
{{end}}
|
Loading…
Reference in New Issue