commit 030584947d77019650be47736a6d152e9b4dc92b Author: Korbs Date: Tue May 14 00:34:01 2024 -0400 Init diff --git a/.env b/.env new file mode 100644 index 0000000..6cfc98b --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +DatabaseName="ark" +DatabaseUsername="ark" +DatabasePassword="YouLookUpILookUpEveryoneLookUpNowLookDown2014" \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a2c56c7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +forgejo/git +forgejo/ssh + +mysql/* + +forgejo/gitea/actions_artifacts +forgejo/gitea/actions_log +forgejo/gitea/attachments +forgejo/gitea/avatars +forgejo/gitea/conf +forgejo/gitea/home +forgejo/gitea/indexers +forgejo/gitea/jwt +forgejo/gitea/log +forgejo/gitea/packages +forgejo/gitea/queues +forgejo/gitea/repo-archive +forgejo/gitea/repo-avatars +forgejo/gitea/sessions +forgejo/gitea/tmp \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..2e592c2 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,41 @@ +networks: + ark: + external: false + +services: + server: + image: codeberg.org/forgejo/forgejo:7 + container_name: ark + environment: + - USER_UID=1000 + - USER_GID=1000 + - FORGEJO__database__DB_TYPE=mysql + - FORGEJO__database__HOST=db:3306 + - FORGEJO__database__NAME=${DatabaseName} + - FORGEJO__database__USER=${DatabaseUsername} + - FORGEJO__database__PASSWD=${DatabasePassword} + restart: always + networks: + - ark + volumes: + - ./forgejo:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + ports: + - '3000:3000' + - '222:22' + depends_on: + - db + + db: + image: mysql:8 + restart: always + environment: + - MYSQL_ROOT_PASSWORD=${DatabasePassword} + - MYSQL_USER=${DatabaseUsername} + - MYSQL_PASSWORD=${DatabasePassword} + - MYSQL_DATABASE=${DatabaseName} + networks: + - ark + volumes: + - ./mysql:/var/lib/mysql \ No newline at end of file diff --git a/forgejo/gitea/templates/base/footer.tmpl b/forgejo/gitea/templates/base/footer.tmpl new file mode 100644 index 0000000..cbabe79 --- /dev/null +++ b/forgejo/gitea/templates/base/footer.tmpl @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/forgejo/gitea/templates/base/head.tmpl b/forgejo/gitea/templates/base/head.tmpl new file mode 100644 index 0000000..848292b --- /dev/null +++ b/forgejo/gitea/templates/base/head.tmpl @@ -0,0 +1,385 @@ + + + + + {{/* Display `- .Repsository.FullName` only if `.Title` does not already start with that. */}} + {{if .Title}}{{.Title}} - {{end}}{{if and (.Repository.Name) (not (StringUtils.HasPrefix .Title .Repository.FullName))}}{{.Repository.FullName}} - {{end}}{{AppName}} + {{if .ManifestData}}{{end}} + + + + + +{{if .GoGetImport}} + + +{{end}} +{{if and .EnableFeed .FeedURL}} + + +{{end}} + + + {{template "base/head_script" .}} + + {{template "base/head_opengraph" .}} + {{template "base/head_style" .}} + {{template "custom/header" .}} + + + {{template "custom/body_outer_pre" .}} + +
+ {{template "custom/body_inner_pre" .}} + + {{if not .PageIsInstall}} + {{template "base/head_navbar" .}} + {{end}} + +{{if false}} + {{/* to make html structure "likely" complete to prevent IDE warnings */}} +
+ + +{{end}} + + \ No newline at end of file diff --git a/forgejo/gitea/templates/base/head_navbar.tmpl b/forgejo/gitea/templates/base/head_navbar.tmpl new file mode 100644 index 0000000..fd187d0 --- /dev/null +++ b/forgejo/gitea/templates/base/head_navbar.tmpl @@ -0,0 +1,153 @@ +
+
+ +
+
+

SudoVanilla Ark

+ Search + Create +
+
+ Explore + {{if not .IsSigned}} + Login + {{end}} + {{if and .IsSigned}} + Issues + Pull Requests + Notifications + + + {{end}} +
+
+ + + + +
+
+ + + + + + +

Ark

+ +
diff --git a/forgejo/gitea/templates/home.tmpl b/forgejo/gitea/templates/home.tmpl new file mode 100644 index 0000000..fa4eafa --- /dev/null +++ b/forgejo/gitea/templates/home.tmpl @@ -0,0 +1,85 @@ +{{template "base/head" .}} + +
+
+ + + + + + + + + + +
+

Ark

+

The heart of SudoVanilla

+
+
+
+ + \ No newline at end of file diff --git a/forgejo/gitea/templates/user/dashboard/dashboard.tmpl b/forgejo/gitea/templates/user/dashboard/dashboard.tmpl new file mode 100644 index 0000000..c48589e --- /dev/null +++ b/forgejo/gitea/templates/user/dashboard/dashboard.tmpl @@ -0,0 +1,80 @@ +{{template "base/head" .}} +
+
+ + + + + + + + + + +
+

Ark

+

The heart of SudoVanilla

+
+
+
+
+ {{template "base/alert" .}} + {{template "user/dashboard/feeds" .}} +
+ {{template "user/dashboard/repolist" .}} +
+
+ + +{{template "base/footer" .}}