class IssueDash

Included Modules

Defined in:

issue_dash.cr

Constant Summary

CSS_HEADERS = HTTP::Headers {"Content-Type" => MIME.from_extension(".css"), "Cache-Control" => "max-age=#{100.days.total_seconds}"}

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(db : DB::Database = DB.open("sqlite3:#{DATABASE_FILE}")) #

[View source]

Class Method Detail

def self._delete_regex : Regex #

def self._get_regex : Regex #

def self._head_regex : Regex #

def self._link_regex : Regex #

def self._patch_regex : Regex #

def self._post_regex : Regex #

def self._put_regex : Regex #

def self._unlink_regex : Regex #

def self.gen_auth : String #

def self.gen_index : String #

def self.gen_issues_list(repo a1) : String #

def self.gen_pulls_list(repo a1) : String #

def self.gen_static_style : String #

def self.gen_style #

[View source]
def self.gen_update_issue : String #

Instance Method Detail

def _delete(input : String, *args, **kwargs) #

def _get(input : String, *args, **kwargs) #

def _head(input : String, *args, **kwargs) #

def _link(input : String, *args, **kwargs) #

def _patch(input : String, *args, **kwargs) #

def _post(input : String, *args, **kwargs) #

def _put(input : String, *args, **kwargs) #

def _unlink(input : String, *args, **kwargs) #

def auth(ctx) #

[View source]
def auth_url(destination : String | Nil = nil) #

[View source]
def call(method : String, path : String, *args, **kwargs) #

[View source]
def call(context : HTTP::Server::Context, *args, **kwargs) #

[View source]
def check_auth!(ctx) : Login #

[View source]
def check_auth?(ctx) : Login | Nil #

[View source]
def check_repo!(repo : String, kind : String, login : Login) : String #

[View source]
def check_repo?(repo : String, login : Login) : String | Nil #

[View source]
def index(ctx) #

[View source]
def issues_list(ctx, repo : String) #

[View source]
def pulls_list(ctx, repo : String) #

[View source]
def serve_request(ctx, reraise = false) #

[View source]
def static_style(ctx) #

[View source]
def update_issue(ctx) #

[View source]