parent
e985a8f30e
commit
40549e6552
|
@ -7,6 +7,7 @@ steps:
|
|||
commands:
|
||||
- git tag $DRONE_TAG
|
||||
- bash release.sh cmd/configui/main.go
|
||||
- echo -n "latest,$DRONE_TAG" > .tags
|
||||
|
||||
- name: gitea_release
|
||||
image: plugins/gitea-release
|
||||
|
@ -25,7 +26,7 @@ steps:
|
|||
from_secret: hub_user
|
||||
password:
|
||||
from_secret: hub_passwd
|
||||
auto_tag: true
|
||||
# auto_tag: true
|
||||
mtu: 1000
|
||||
# purge: true
|
||||
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
|
||||
|
||||
## Feature
|
||||
|
|
|
@ -24,6 +24,7 @@ var Ext2Mode map[string]string = map[string]string{
|
|||
"txt": "text",
|
||||
"yml": "yaml",
|
||||
"conf": "ini",
|
||||
"md": "markdown",
|
||||
}
|
||||
|
||||
type ConfigUI struct {
|
||||
|
|
|
@ -30,6 +30,25 @@ function setEditor(){
|
|||
},
|
||||
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>
|
||||
{{end}}
|
Loading…
Reference in New Issue