mirror of https://github.com/statping/statping
Merge branch 'dev' into Fix-Failure-and-Success-Templates
commit
acec58f20f
|
@ -110,7 +110,7 @@
|
||||||
return ""
|
return ""
|
||||||
},
|
},
|
||||||
GHlogin() {
|
GHlogin() {
|
||||||
window.location = `https://github.com/login/oauth/authorize?client_id=${this.oauth.gh_client_id}&redirect_uri=${this.encode(this.core.domain+"/oauth/github")}&scope=user,repo`
|
window.location = `https://github.com/login/oauth/authorize?client_id=${this.oauth.gh_client_id}&redirect_uri=${this.encode(this.core.domain+"/oauth/github")}&scope=read:user,read:org`
|
||||||
},
|
},
|
||||||
Slacklogin() {
|
Slacklogin() {
|
||||||
window.location = `https://slack.com/oauth/authorize?client_id=${this.oauth.slack_client_id}&redirect_uri=${this.encode(this.core.domain+"/oauth/slack")}&scope=identity.basic`
|
window.location = `https://slack.com/oauth/authorize?client_id=${this.oauth.slack_client_id}&redirect_uri=${this.encode(this.core.domain+"/oauth/slack")}&scope=identity.basic`
|
||||||
|
|
|
@ -91,8 +91,8 @@ func (s Storage) List() map[string]Item {
|
||||||
//Get a cached content by key
|
//Get a cached content by key
|
||||||
func (s Storage) Get(key string) []byte {
|
func (s Storage) Get(key string) []byte {
|
||||||
item := s.items[key]
|
item := s.items[key]
|
||||||
if s.items[key].Expired() {
|
if item.Expired() {
|
||||||
CacheStorage.Delete(key)
|
s.Delete(key)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
return item.Content
|
return item.Content
|
||||||
|
|
Loading…
Reference in New Issue