Added initial layout files, data sources, and types/settings/etc.

This commit is contained in:
Benjamin A. Shelton 2026-09-09 16:19:41 -06:00
commit 59d6e2940a
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01
2460 changed files with 3466 additions and 0 deletions

0
internal/app/.keep Normal file
View file

396
internal/bible/aliases.go Normal file
View file

@ -0,0 +1,396 @@
package bible
import (
"strings"
)
var aliases = map[string]string{
"genesis": "gen",
"gn": "gen",
"exodus": "exo",
"ex": "exo",
"leviticus": "lev",
"lv": "lev",
"numbers": "num",
"nm": "num",
"numb": "num",
"nmb": "num",
"nmbs": "num",
"deuteronomy": "deu",
"dt": "deu",
"deut": "deu",
"deuter": "deu",
"joshua": "jos",
"js": "jos",
"josh": "jos",
"judges": "jdg",
"jd": "jdg",
"jdgs": "jdg",
"ruth": "rut",
"rt": "rut",
"1 samuel": "1sa",
"1s": "1sa",
"1sam": "1sa",
"1 s": "1sa",
"1 sa": "1sa",
"1 sam": "1sa",
"1 kingdoms": "1sa",
"1 realms": "1sa",
"2 samuel": "2sa",
"2s": "2sa",
"2sam": "2sa",
"2 s": "2sa",
"2 sa": "2sa",
"2 sam": "2sa",
"2 kingdoms": "2sa",
"2 realms": "2sa",
"1 kings": "1ki",
"1k": "1ki",
"1kgs": "1ki",
"1king": "1ki",
"1 k": "1ki",
"1 ki": "1ki",
"1 kgs": "1ki",
"1 king": "1ki",
"3k": "1ki",
"3kgs": "1ki",
"3king": "1ki",
"3 k": "1ki",
"3 ki": "1ki",
"3 kgs": "1ki",
"3 king": "1ki",
"3 kingdoms": "1ki",
"3 realms": "1ki",
"2 kings": "2ki",
"2k": "2ki",
"2kgs": "2ki",
"2king": "2ki",
"2 k": "2ki",
"2 ki": "2ki",
"2 kgs": "2ki",
"2 king": "2ki",
"4k": "2ki",
"4kgs": "2ki",
"4king": "2ki",
"4 k": "2ki",
"4 ki": "2ki",
"4 kgs": "2ki",
"4 king": "2ki",
"4 kingdoms": "2ki",
"4 realms": "2ki",
"1 chronicles": "1ch",
"1c": "1ch",
"1chr": "1ch",
"1chron": "1ch",
"1 c": "1ch",
"1 ch": "1ch",
"1 chr": "1ch",
"1 chron": "1ch",
"2 chronicles": "2ch",
"2c": "2ch",
"2chr": "2ch",
"2chron": "2ch",
"2 c": "2ch",
"2 ch": "2ch",
"2 chr": "2ch",
"2 chron": "2ch",
"ezra": "ezr",
"ez": "ezr",
"nehemiah": "neh",
"nh": "neh",
"esther": "est",
"es": "est",
"job": "job",
"jb": "job",
"psalm": "psa",
"ps": "psa",
"psalms": "psa",
"pss": "psa",
"proverbs": "pro",
"pr": "pro",
"prov": "pro",
"ecclesiastes": "ecc",
"ec": "ecc",
"eccl": "ecc",
"eccle": "ecc",
"song of solomon": "sng",
"song of songs": "sng",
"sn": "sng",
"son": "sng",
"song": "sng",
"sol": "sng",
"isaiah": "isa",
"is": "isa",
"isai": "isa",
"jeremiah": "jer",
"jr": "jer",
"jere": "jer",
"jerem": "jer",
"lamentations": "lam",
"lm": "lam",
"lamen": "lam",
"ezekiel": "ezk",
"eze": "ezk",
"ezek": "ezk",
"daniel": "dan",
"dn": "dan",
"hosea": "hos",
"hs": "hos",
"joel": "jol",
"jl": "jol",
"amos": "amo",
"am": "amo",
"obadiah": "oba",
"ob": "oba",
"obd": "oba",
"obad": "oba",
"jonah": "jon",
"jo": "jon",
"micah": "mic",
"micha": "mic",
"mc": "mic",
"nahum": "nam",
"na": "nam",
"habakkuk": "hab",
"hb": "hab",
"haba": "hab",
"habak": "hab",
"zephaniah": "zep",
"zf": "zep",
"zef": "zep",
"haggai": "hag",
"hg": "hag",
"zechariah": "zec",
"ze": "zec",
"zech": "zec",
"malachi": "mal",
"ml": "mal",
"mala": "mal",
"matthew": "mat",
"mt": "mat",
"matt": "mat",
"mark": "mrk",
"mk": "mrk",
"luke": "luk",
"lk": "luk",
"john": "jhn",
"jn": "jhn",
"acts": "act",
"ac": "act",
"romans": "rom",
"rm": "rom",
"rms": "rom",
"1 corinthians": "1co",
"1cor": "1co",
"1corin": "1co",
"1 co": "1co",
"1 cor": "1co",
"1 corin": "1co",
"2 corinthians": "2co",
"2cor": "2co",
"2corin": "2co",
"2 co": "2co",
"2 cor": "2co",
"2 corin": "2co",
"galatians": "gal",
"gl": "gal",
"ephesians": "eph",
"ep": "eph",
"ef": "eph",
"philippians": "php",
"ph": "php",
"phil": "php",
"colossians": "col",
"cl": "col",
"colo": "col",
"1 thessalonians": "1th",
"1thes": "1th",
"1thess": "1th",
"1 thes": "1th",
"1 thess": "1th",
"2 thessalonians": "2th",
"2thes": "2th",
"2thess": "2th",
"2 thes": "2th",
"2 thess": "2th",
"1 timothy": "1ti",
"1tim": "1ti",
"1 ti": "1ti",
"1 tim": "1ti",
"2 timothy": "2ti",
"2tim": "2ti",
"2 ti": "2ti",
"2 tim": "2ti",
"titus": "tit",
"ti": "tit",
"philemon": "phm",
"pi": "phm",
"philm": "phm",
"philem": "phm",
"hebrews": "heb",
"he": "heb",
"james": "jas",
"ja": "jas",
"jam": "jas",
"1 peter": "1pe",
"1p": "1pe",
"1pt": "1pe",
"1pet": "1pe",
"1 p": "1pe",
"1 pe": "1pe",
"1 pt": "1pe",
"1 pet": "1pe",
"2 peter": "2pe",
"2p": "2pe",
"2pt": "2pe",
"2pet": "2pe",
"2 p": "2pe",
"2 pe": "2pe",
"2 pt": "2pe",
"2 pet": "2pe",
"1 john": "1jn",
"1jon": "1jn",
"1 jn": "1jn",
"1 jon": "1jn",
"2 john": "2jn",
"2jon": "2jn",
"2 jn": "2jn",
"2 jon": "2jn",
"3 john": "3jn",
"3jon": "3jn",
"3 jn": "3jn",
"3 jon": "3jn",
"jude": "jud",
"ju": "jud",
"revelation": "rev",
"rv": "rev",
"reve": "rev",
"tobit": "tob",
"tb": "tob",
"judith": "jdt",
"jt": "jdt",
"wisdom": "wis",
"wisdom of solomon": "wis",
"ws": "wis",
"wos": "wis",
"sirach": "sir",
"sr": "sir",
"baruch": "bar",
"br": "bar",
"bel and the dragon": "bel",
"bl": "bel",
"bd": "bel",
"batd": "bel",
"susanna": "sus",
"su": "sus",
"1 maccabees": "1ma",
"1mac": "1ma",
"1 mac": "1ma",
"2 maccabees": "2ma",
"2mac": "2ma",
"2 mac": "2ma",
"3 maccabees": "3ma",
"3mac": "3ma",
"3 mac": "3ma",
"4 maccabees": "4ma",
"4mac": "4ma",
"4 mac": "4ma",
"1 esdras": "1es",
"1esd": "1es",
"1 esd": "1es",
"epistle of jeremy": "lje",
"ej": "lje",
"eoj": "lje",
"prayer of ezarias": "s3y",
"az": "s3y",
"poe": "s3y",
"prayer of manasses": "man",
"prayer of manasseh": "man",
"mana": "man",
"pom": "man",
"gen": "gen",
"exo": "exo",
"lev": "lev",
"num": "num",
"deu": "deu",
"jos": "jos",
"jdg": "jdg",
"rut": "rut",
"1sa": "1sa",
"2sa": "2sa",
"1ki": "1ki",
"2ki": "2ki",
"1ch": "1ch",
"2ch": "2ch",
"ezr": "ezr",
"neh": "neh",
"est": "est",
"psa": "psa",
"pro": "pro",
"ecc": "ecc",
"sng": "sng",
"isa": "isa",
"jer": "jer",
"lam": "lam",
"ezk": "ezk",
"dan": "dan",
"hos": "hos",
"jol": "jol",
"amo": "amo",
"oba": "oba",
"jon": "jon",
"mic": "mic",
"nam": "nam",
"hab": "hab",
"zep": "zep",
"hag": "hag",
"zec": "zec",
"mal": "mal",
"mat": "mat",
"mrk": "mrk",
"luk": "luk",
"jhn": "jhn",
"act": "act",
"rom": "rom",
"1co": "1co",
"2co": "2co",
"gal": "gal",
"eph": "eph",
"php": "php",
"col": "col",
"1th": "1th",
"2th": "2th",
"1ti": "1ti",
"2ti": "2ti",
"tit": "tit",
"phm": "phm",
"heb": "heb",
"jas": "jas",
"1pe": "1pe",
"2pe": "2pe",
"1jn": "1jn",
"2jn": "2jn",
"3jn": "3jn",
"jud": "jud",
"rev": "rev",
"tob": "tob",
"jdt": "jdt",
"wis": "wis",
"sir": "sir",
"bar": "bar",
"bel": "bel",
"sus": "sus",
"1ma": "1ma",
"2ma": "2ma",
"3ma": "3ma",
"4ma": "4ma",
"1es": "1es",
"lje": "lje",
"s3y": "s3y",
"man": "man",
}
func FindAlias(a string) (string, bool) {
d, ok := aliases[strings.ToLower(a)]
return d, ok
}

5
internal/bible/impl.go Normal file
View file

@ -0,0 +1,5 @@
package bible
func LoadBible(b string) *Bible {
return &Bible{}
}

21
internal/bible/types.go Normal file
View file

@ -0,0 +1,21 @@
package bible
type Bible struct {
}
type Metadata struct {
}
type Book struct {
}
type Chapter struct {
}
type VerseSpec struct {
}

View file

@ -0,0 +1,32 @@
package settings
import (
"github.com/pelletier/go-toml"
)
type Setting struct {
API API
DailyScripture DailyScripture `toml:"daily_scripture"`
System System
Translations Translations
}
type API struct {
BaseURL string `toml:"base_url"`
Schedule string
Rotation string
User string
}
type DailyScripture struct {
UserSubmitted bool `toml:"user_submitted"`
}
type System struct {
TimeZone string `toml:"timezone"`
}
type Translations struct {
BaseDir string `toml:"basedir"`
Active []string `toml:"active"`
}