routes

package
v0.0.0-...-359fd52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

*

  • Copyright (C) 2020 KhronoSync Digital Solutions LLC *
  • This program is free software: you can redistribute it and/or modify
  • it under the terms of the GNU General Public License as published by
  • the Free Software Foundation, either version 3 of the License, or
  • any later version. *
  • This program is distributed in the hope that it will be useful,
  • but WITHOUT ANY WARRANTY; without even the implied warranty of
  • MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  • GNU General Public License for more details. *
  • You should have received a copy of the GNU General Public License
  • along with this program. If not, see <https://www.gnu.org/licenses/>

*

  • Copyright (C) 2020 KhronoSync Digital Solutions LLC *
  • This program is free software: you can redistribute it and/or modify
  • it under the terms of the GNU General Public License as published by
  • the Free Software Foundation, either version 3 of the License, or
  • any later version. *
  • This program is distributed in the hope that it will be useful,
  • but WITHOUT ANY WARRANTY; without even the implied warranty of
  • MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  • GNU General Public License for more details. *
  • You should have received a copy of the GNU General Public License
  • along with this program. If not, see <https://www.gnu.org/licenses/>

Index

Constants

View Source
const DistroSortRecent = "recent"
View Source
const EmptyStar = `<i class="star-empty"></i>`
View Source
const FullStar = `<i class="star-full"></i>`
View Source
const HalfStar = `<i class="star-half"></i>`
View Source
const HomeSortAlphabetical = "alphabetical"
View Source
const PathAskNoahShow = PathLive + "/ans"
View Source
const PathDistro = "/distro/{distroName:[a-zA-Z0-9\\-_! ]+}"
View Source
const PathDistroRatingSort = PathDistro + "/sort"
View Source
const PathFavicon = "/favicon.ico"
View Source
const PathHome = "/"
View Source
const PathLive = "/live"
View Source
const PathLogin = "/login"
View Source
const PathLogout = "/logout"
View Source
const PathRating = "/rating/{ratingId:[a-fA-F0-9\\-]+}"
View Source
const PathRatingDelete = PathRating + "/delete"
View Source
const PathRatingUseful = PathRating + "/upvote"
View Source
const PathReviewHome = "/reviews"
View Source
const PathReviewHomeSort = PathReviewHome + "/sort"
View Source
const PathSouthEastLinuxFest = PathLive + "/self"
View Source
const StarRating3Half = template.HTML(
	FullStar + FullStar + FullStar + HalfStar + EmptyStar)
View Source
const StarRating4Half = template.HTML(
	FullStar + FullStar + FullStar + FullStar + HalfStar)

Variables

This section is empty.

Functions

func Init

func Init(adminList map[string]string, recaptchaConf conf.RecaptchaConfig)

Types

type DistroPage

type DistroPage struct {
	Session     *SessionModel
	Distro      *distros.DistroModel
	RatingsInfo []ratings.RatingsInfoModel
	Ratings     []ratings.RatingModel
	Sort        string
	SiteKey     string
}

type HomePage

type HomePage struct {
	Session *SessionModel
}

type LivePage

type LivePage struct {
	Session       *SessionModel
	Title         string
	TitleImage    string
	DefaultSource string
	AudioSource   string
	AudioType     string
	VideoSource   string
	VideoPoster   string
	IrcChatSource string
	IrcChatNote   string
}

type LoginPage

type LoginPage struct {
	Session  *SessionModel
	ErrorMsg string
}

type RecaptchaResponse

type RecaptchaResponse struct {
	Success            bool     `json:"success"`
	ChallengeTimestamp string   `json:"challenge_ts"`
	Hostname           string   `json:"hostname"`
	ErrorCodes         []string `json:"error-codes"`
	Score              float32  `json:"score"`
}

type ReviewHomePage

type ReviewHomePage struct {
	Session *SessionModel
	Distros []distros.DistroModelView
	Sort    string
}

type SessionModel

type SessionModel struct {
	Id       string
	Username string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址