diff --git a/gitea_custom/app.ini b/gitea_custom/app.ini new file mode 100644 index 0000000..becf274 --- /dev/null +++ b/gitea_custom/app.ini @@ -0,0 +1,78 @@ +APP_NAME = Xavi's Bad Code +RUN_USER = git +RUN_MODE = prod + +[server] +ROOT_URL = https://xavishobbies.org/git/ +SSH_DOMAIN = xavishobbies.org +DOMAIN = xavishobbies.org +HTTP_PORT = 3000 +DISABLE_SSH = false +SSH_PORT = 22 +LFS_START_SERVER = true +LFS_JWT_SECRET = LLl1K7xlM0eFVQ-8WzyI-7wKuIUa3xDrlKyPfXYe4w4 +OFFLINE_MODE = false + +[database] +DB_TYPE = sqlite3 +HOST = 127.0.0.1:3306 +NAME = gitea +USER = gitea +PASSWD = +SCHEMA = +SSL_MODE = disable +CHARSET = utf8 +PATH = /var/lib/gitea/data/gitea.db +LOG_SQL = false + +[repository] +ROOT = /var/lib/gitea/data/gitea-repositories +ENABLE_PUSH_CREATE_USER = true +DEFAULT_PUSH_CREATE_PRIVATE = false + +[lfs] +PATH = /var/lib/gitea/data/lfs + +[mailer] +ENABLED = false + +[ui] +THEMES = auto,gitea,arc-green,pink-licorice +DEFAULT_THEME = pink-licorice + +[service] +REGISTER_EMAIL_CONFIRM = false +REGISTER_MANUAL_CONFIRM = true +ENABLE_NOTIFY_MAIL = false +DISABLE_REGISTRATION = false +ALLOW_ONLY_EXTERNAL_REGISTRATION = false +ENABLE_CAPTCHA = true +REQUIRE_SIGNIN_VIEW = false +DEFAULT_KEEP_EMAIL_PRIVATE = true +DEFAULT_ALLOW_CREATE_ORGANIZATION = true +DEFAULT_ENABLE_TIMETRACKING = true +NO_REPLY_ADDRESS = noreply.xavishobbies.org + +[openid] +ENABLE_OPENID_SIGNIN = true +ENABLE_OPENID_SIGNUP = true + +[session] +PROVIDER = file + +[log] +MODE = console +LEVEL = info +ROOT_PATH = /var/lib/gitea/log +ROUTER = console + +[repository.pull-request] +DEFAULT_MERGE_STYLE = merge + +[repository.signing] +DEFAULT_TRUST_MODEL = committer + +[security] +INSTALL_LOCK = true +INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE2NzQ3MjA0NTB9.9k9w-JesOWTzPW48sYjyeW63QQICyDAoAEgudK1oNZ8 +PASSWORD_HASH_ALGO = pbkdf2 diff --git a/gitea_custom/custom/public/css/theme-custom.css b/gitea_custom/custom/public/css/theme-custom.css new file mode 100644 index 0000000..43784e0 --- /dev/null +++ b/gitea_custom/custom/public/css/theme-custom.css @@ -0,0 +1,190 @@ +@import "../chroma/dark.less"; +@import "../codemirror/dark.less"; + +:root { + --is-dark-theme: true; + --color-primary: #aa8400; + --color-primary-contrast: #000000; + --color-primary-dark-1: #a68100; + --color-primary-dark-2: #957a1c; + --color-primary-dark-3: #867436; + --color-primary-dark-4: #776a3f; + --color-primary-dark-5: #776a3f; + --color-primary-dark-6: #756e56; + --color-primary-dark-7: #777572; + --color-primary-light-1: #a68100; + --color-primary-light-2: #977500; + --color-primary-light-3: #755b00; + --color-primary-light-4: #513f00; + --color-primary-light-5: #372b00; + --color-primary-light-6: #1e1700; + --color-primary-light-7: #000000; + --color-primary-alpha-10: #aa840019; + --color-primary-alpha-20: #aa840033; + --color-primary-alpha-30: #aa84004b; + --color-primary-alpha-40: #aa840066; + --color-primary-alpha-50: #aa840080; + --color-primary-alpha-60: #aa840099; + --color-primary-alpha-70: #aa8400b3; + --color-primary-alpha-80: #aa8400cc; + --color-primary-alpha-90: #aa8400e1; + --color-secondary: #ff00e5; + --color-secondary-dark-1: #ff22e9; + --color-secondary-dark-2: #ff40ec; + --color-secondary-dark-3: #ff69f0; + --color-secondary-dark-4: #ff91f4; + --color-secondary-dark-5: #ffcefa; + --color-secondary-dark-6: #ffcefa; + --color-secondary-dark-7: #ffcefa; + --color-secondary-dark-8: #ffcefa; + --color-secondary-dark-9: #ffcefa; + --color-secondary-dark-10: #ffcefa; + --color-secondary-dark-11: #ffcefa; + --color-secondary-dark-12: #ffcefa; + --color-secondary-dark-13: #ffcefa; + --color-secondary-light-1: #110e0f; + --color-secondary-light-2: #110e0f; + --color-secondary-light-3: #110e0f; + --color-secondary-light-4: #110e0f; + /* colors */ + --color-red: #cc4848; + --color-orange: #cc580c; + --color-yellow: #cc9903; + --color-olive: #91a313; + --color-green: #07ac00; + --color-teal: #00918a; + --color-blue: #3a8ac6; + --color-violet: #906ae1; + --color-purple: #b259d0; + --color-pink: #d22e8b; + --color-brown: #a47252; + --color-grey: #9ea2aa; + --color-black: #1e222e; + /* light variants - produced via Sass scale-color(color, $lightness: -10%) */ + --color-red-light: #c23636; + --color-orange-light: #b84f0b; + --color-yellow-light: #b88a03; + --color-olive-light: #839311; + --color-green-light: #7a9e55; + --color-teal-light: #00837c; + --color-blue-light: #347cb3; + --color-violet-light: #7b4edb; + --color-purple-light: #a742c9; + --color-pink-light: #be297d; + --color-brown-light: #94674a; + --color-grey-light: #8d919b; + --color-black-light: #1b1f29; + /* other colors */ + --color-gold: #b1983b; + --color-white: #ffffff; + --color-diff-removed-word-bg: #6f3333; + --color-diff-added-word-bg: #3c653c; + --color-diff-removed-row-bg: #3c2626; + --color-diff-moved-row-bg: #818044; + --color-diff-added-row-bg: #283e2d; + --color-diff-removed-row-border: #634343; + --color-diff-moved-row-border: #bcca6f; + --color-diff-added-row-border: #314a37; + --color-diff-inactive: #353846; + --color-error-border: #a04141; + --color-error-bg: #522; + --color-error-bg-active: #744; + --color-error-bg-hover: #633; + --color-error-text: #f9cbcb; + --color-success-border: #458a57; + --color-success-bg: #284034; + --color-success-text: #6cc664; + --color-warning-border: #bb9d00; + --color-warning-bg: #3a3a30; + --color-warning-text: #fbbd08; + --color-info-border: #306090; + --color-info-bg: #26354c; + --color-info-text: #38a8e8; + --color-red-badge: #db2828; + --color-red-badge-bg: #db28281a; + --color-red-badge-hover-bg: #db28284d; + --color-green-badge: #21ba45; + --color-green-badge-bg: #21ba451a; + --color-green-badge-hover-bg: #21ba454d; + --color-yellow-badge: #fbbd08; + --color-yellow-badge-bg: #fbbd081a; + --color-yellow-badge-hover-bg: #fbbd084d; + --color-orange-badge: #f2711c; + --color-orange-badge-bg: #f2711c1a; + --color-orange-badge-hover-bg: #f2711c4d; + --color-git: #f05133; + /* target-based colors */ + --color-body: #000000; + --color-box-header: #000000; + --color-box-body: #000000; + --color-box-body-highlight: #454135; + --color-text-dark: #ff00e5; + --color-text: #ff00e5; + --color-text-light: #07ac00; + --color-text-light-1: #ff00e5; + --color-text-light-2: #07ac00; + --color-text-light-3: #ff00e5; + --color-footer: #000000; + --color-timeline: #ff00e5; + --color-input-text: #ff00e5; + --color-input-background: #000000; + --color-input-toggle-background: #000000; + --color-input-border: #aa8400; + --color-input-border-hover: #505667; + --color-navbar: #000000; + --color-navbar-transparent: #2a2e3a00; + --color-light: #00000028; + --color-light-mimic-enabled: rgba(0, 0, 0, calc(40 / 255 * 222 / 255 / var(--opacity-disabled))); + --color-light-border: #ffffff28; + --color-hover: #ffffff10; + --color-active: #ffffff16; + --color-menu: #000000; + --color-card: #2e323e; + --color-markup-table-row: #ffffff06; + --color-markup-code-block: #ffffff0d; + --color-button: #353846; + --color-code-bg: #2a2e3a; + --color-code-sidebar-bg: #2e323e; + --color-shadow: #00000060; + --color-secondary-bg: #2a2e3a; + --color-text-focus: #fff; + --color-expand-button: #3c404d; + --color-placeholder-text: #6a737d; + --color-editor-line-highlight: var(--color-primary-light-5); + --color-project-board-bg: var(--color-secondary-light-2); + --color-caret: var(--color-text); /* should ideally be --color-text-dark, see #15651 */ + --color-reaction-bg: #ffffff12; + --color-reaction-active-bg: var(--color-primary-alpha-40); + --color-header-bar: #000000; + --color-label-active-bg: #4c525e; + --color-accent: var(--color-primary-light-1); + --color-small-accent: var(--color-primary-light-5); + --color-active-line: #534d1b; + + accent-color: var(--color-accent); + color-scheme: dark; +} + +/* invert emojis that are hard to read otherwise */ +.emoji[aria-label="check mark"], +.emoji[aria-label="currency exchange"], +.emoji[aria-label="TOP arrow"], +.emoji[aria-label="END arrow"], +.emoji[aria-label="ON! arrow"], +.emoji[aria-label="SOON arrow"], +.emoji[aria-label="heavy dollar sign"], +.emoji[aria-label="copyright"], +.emoji[aria-label="registered"], +.emoji[aria-label="trade mark"], +.emoji[aria-label="multiply"], +.emoji[aria-label="plus"], +.emoji[aria-label="minus"], +.emoji[aria-label="divide"], +.emoji[aria-label="curly loop"], +.emoji[aria-label="double curly loop"], +.emoji[aria-label="wavy dash"], +.emoji[aria-label="paw prints"], +.emoji[aria-label="musical note"], +.emoji[aria-label="musical notes"] { + filter: invert(100%) hue-rotate(180deg); +} diff --git a/gitea_custom/custom/public/css/theme-pink-licorice.css b/gitea_custom/custom/public/css/theme-pink-licorice.css new file mode 100644 index 0000000..231dbf0 --- /dev/null +++ b/gitea_custom/custom/public/css/theme-pink-licorice.css @@ -0,0 +1,191 @@ +@import "../chroma/dark.less"; +@import "../codemirror/dark.less"; + +:root { + --fonts-proportional: monospace; + --is-dark-theme: true; + --color-primary: #aa8400; + --color-primary-contrast: #000000; + --color-primary-dark-1: #a68100; + --color-primary-dark-2: #957a1c; + --color-primary-dark-3: #867436; + --color-primary-dark-4: #776a3f; + --color-primary-dark-5: #776a3f; + --color-primary-dark-6: #756e56; + --color-primary-dark-7: #777572; + --color-primary-light-1: #a68100; + --color-primary-light-2: #977500; + --color-primary-light-3: #755b00; + --color-primary-light-4: #513f00; + --color-primary-light-5: #372b00; + --color-primary-light-6: #1e1700; + --color-primary-light-7: #000000; + --color-primary-alpha-10: #aa840019; + --color-primary-alpha-20: #aa840033; + --color-primary-alpha-30: #aa84004b; + --color-primary-alpha-40: #aa840066; + --color-primary-alpha-50: #aa840080; + --color-primary-alpha-60: #aa840099; + --color-primary-alpha-70: #aa8400b3; + --color-primary-alpha-80: #aa8400cc; + --color-primary-alpha-90: #aa8400e1; + --color-secondary: #ff00e5; + --color-secondary-dark-1: #ff22e9; + --color-secondary-dark-2: #ff40ec; + --color-secondary-dark-3: #ff69f0; + --color-secondary-dark-4: #ff91f4; + --color-secondary-dark-5: #ffcefa; + --color-secondary-dark-6: #ffcefa; + --color-secondary-dark-7: #ffcefa; + --color-secondary-dark-8: #ffcefa; + --color-secondary-dark-9: #ffcefa; + --color-secondary-dark-10: #ffcefa; + --color-secondary-dark-11: #ffcefa; + --color-secondary-dark-12: #ffcefa; + --color-secondary-dark-13: #ffcefa; + --color-secondary-light-1: #110e0f; + --color-secondary-light-2: #110e0f; + --color-secondary-light-3: #110e0f; + --color-secondary-light-4: #110e0f; + /* colors */ + --color-red: #cc4848; + --color-orange: #cc580c; + --color-yellow: #cc9903; + --color-olive: #91a313; + --color-green: #07ac00; + --color-teal: #00918a; + --color-blue: #3a8ac6; + --color-violet: #906ae1; + --color-purple: #b259d0; + --color-pink: #d22e8b; + --color-brown: #a47252; + --color-grey: #9ea2aa; + --color-black: #1e222e; + /* light variants - produced via Sass scale-color(color, $lightness: -10%) */ + --color-red-light: #c23636; + --color-orange-light: #b84f0b; + --color-yellow-light: #b88a03; + --color-olive-light: #839311; + --color-green-light: #7a9e55; + --color-teal-light: #00837c; + --color-blue-light: #347cb3; + --color-violet-light: #7b4edb; + --color-purple-light: #a742c9; + --color-pink-light: #be297d; + --color-brown-light: #94674a; + --color-grey-light: #8d919b; + --color-black-light: #1b1f29; + /* other colors */ + --color-gold: #b1983b; + --color-white: #ffffff; + --color-diff-removed-word-bg: #6f3333; + --color-diff-added-word-bg: #3c653c; + --color-diff-removed-row-bg: #3c2626; + --color-diff-moved-row-bg: #818044; + --color-diff-added-row-bg: #283e2d; + --color-diff-removed-row-border: #634343; + --color-diff-moved-row-border: #bcca6f; + --color-diff-added-row-border: #314a37; + --color-diff-inactive: #353846; + --color-error-border: #a04141; + --color-error-bg: #522; + --color-error-bg-active: #744; + --color-error-bg-hover: #633; + --color-error-text: #f9cbcb; + --color-success-border: #458a57; + --color-success-bg: #284034; + --color-success-text: #6cc664; + --color-warning-border: #bb9d00; + --color-warning-bg: #3a3a30; + --color-warning-text: #fbbd08; + --color-info-border: #306090; + --color-info-bg: #26354c; + --color-info-text: #38a8e8; + --color-red-badge: #db2828; + --color-red-badge-bg: #db28281a; + --color-red-badge-hover-bg: #db28284d; + --color-green-badge: #21ba45; + --color-green-badge-bg: #21ba451a; + --color-green-badge-hover-bg: #21ba454d; + --color-yellow-badge: #fbbd08; + --color-yellow-badge-bg: #fbbd081a; + --color-yellow-badge-hover-bg: #fbbd084d; + --color-orange-badge: #f2711c; + --color-orange-badge-bg: #f2711c1a; + --color-orange-badge-hover-bg: #f2711c4d; + --color-git: #f05133; + /* target-based colors */ + --color-body: #000000; + --color-box-header: #000000; + --color-box-body: #000000; + --color-box-body-highlight: #454135; + --color-text-dark: #ff00e5; + --color-text: #ff00e5; + --color-text-light: #07ac00; + --color-text-light-1: #ff00e5; + --color-text-light-2: #07ac00; + --color-text-light-3: #ff00e5; + --color-footer: #000000; + --color-timeline: #ff00e5; + --color-input-text: #ff00e5; + --color-input-background: #000000; + --color-input-toggle-background: #000000; + --color-input-border: #aa8400; + --color-input-border-hover: #505667; + --color-navbar: #000000; + --color-navbar-transparent: #2a2e3a00; + --color-light: #00000028; + --color-light-mimic-enabled: rgba(0, 0, 0, calc(40 / 255 * 222 / 255 / var(--opacity-disabled))); + --color-light-border: #ffffff28; + --color-hover: #ffffff10; + --color-active: #ffffff16; + --color-menu: #000000; + --color-card: #2e323e; + --color-markup-table-row: #ffffff06; + --color-markup-code-block: #ffffff0d; + --color-button: #353846; + --color-code-bg: #2a2e3a; + --color-code-sidebar-bg: #2e323e; + --color-shadow: #00000060; + --color-secondary-bg: #2a2e3a; + --color-text-focus: #fff; + --color-expand-button: #3c404d; + --color-placeholder-text: #6a737d; + --color-editor-line-highlight: var(--color-primary-light-5); + --color-project-board-bg: var(--color-secondary-light-2); + --color-caret: var(--color-text); /* should ideally be --color-text-dark, see #15651 */ + --color-reaction-bg: #ffffff12; + --color-reaction-active-bg: var(--color-primary-alpha-40); + --color-header-bar: #000000; + --color-label-active-bg: #4c525e; + --color-accent: var(--color-primary-light-1); + --color-small-accent: var(--color-primary-light-5); + --color-active-line: #534d1b; + + accent-color: var(--color-accent); + color-scheme: dark; +} + +/* invert emojis that are hard to read otherwise */ +.emoji[aria-label="check mark"], +.emoji[aria-label="currency exchange"], +.emoji[aria-label="TOP arrow"], +.emoji[aria-label="END arrow"], +.emoji[aria-label="ON! arrow"], +.emoji[aria-label="SOON arrow"], +.emoji[aria-label="heavy dollar sign"], +.emoji[aria-label="copyright"], +.emoji[aria-label="registered"], +.emoji[aria-label="trade mark"], +.emoji[aria-label="multiply"], +.emoji[aria-label="plus"], +.emoji[aria-label="minus"], +.emoji[aria-label="divide"], +.emoji[aria-label="curly loop"], +.emoji[aria-label="double curly loop"], +.emoji[aria-label="wavy dash"], +.emoji[aria-label="paw prints"], +.emoji[aria-label="musical note"], +.emoji[aria-label="musical notes"] { + filter: invert(100%) hue-rotate(180deg); +} diff --git a/gitea_custom/custom/public/img/favicon.png b/gitea_custom/custom/public/img/favicon.png new file mode 100644 index 0000000..62a6d0a Binary files /dev/null and b/gitea_custom/custom/public/img/favicon.png differ diff --git a/gitea_custom/custom/public/img/favicon.svg b/gitea_custom/custom/public/img/favicon.svg new file mode 100644 index 0000000..62a6d0a Binary files /dev/null and b/gitea_custom/custom/public/img/favicon.svg differ diff --git a/gitea_custom/custom/public/img/nuke.png b/gitea_custom/custom/public/img/nuke.png new file mode 100644 index 0000000..62a6d0a Binary files /dev/null and b/gitea_custom/custom/public/img/nuke.png differ diff --git a/gitea_custom/custom/public/img/nuke.svg b/gitea_custom/custom/public/img/nuke.svg new file mode 100644 index 0000000..b9de35a --- /dev/null +++ b/gitea_custom/custom/public/img/nuke.svg @@ -0,0 +1,385 @@ + + + + nuclear explosion + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + Openclipart + + + nuclear explosion + 2011-12-30T04:41:46 + + https://openclipart.org/detail/166696/nuclear-explosion-by-tzunghaor + + + tzunghaor + + + + + atomic bomb + bomb + explosion + explosive + mushroom cloud + nuclear + nuke + weapon + + + + + + + + + + + diff --git a/gitea_custom/custom/templates/custom/footer.tmpl b/gitea_custom/custom/templates/custom/footer.tmpl new file mode 100644 index 0000000..1609fef --- /dev/null +++ b/gitea_custom/custom/templates/custom/footer.tmpl @@ -0,0 +1,3 @@ +
+ Home +
diff --git a/gitea_custom/custom/templates/home.tmpl b/gitea_custom/custom/templates/home.tmpl new file mode 100644 index 0000000..ef35b9e --- /dev/null +++ b/gitea_custom/custom/templates/home.tmpl @@ -0,0 +1,16 @@ +{{template "base/head" .}} +
+
+
+
+ +
+
+

+ {{AppName}} +

+
+
+
+
+{{template "base/footer" .}}