From 84b5d3b7cccf4aa22ace52fd923f24140f330b43 Mon Sep 17 00:00:00 2001 From: core Date: Tue, 13 Jun 2023 17:33:21 -0400 Subject: [PATCH] implement nav --- nav.css | 47 +++++++++++++++ servers.html | 2 +- services.html | 2 +- src/main.rs | 154 ++++++++++++++++++++++++++++++-------------------- 4 files changed, 143 insertions(+), 62 deletions(-) create mode 100644 nav.css diff --git a/nav.css b/nav.css new file mode 100644 index 0000000..0377714 --- /dev/null +++ b/nav.css @@ -0,0 +1,47 @@ +body { + margin: 0; +} + +body > * { + box-sizing: border-box; + float: left; + padding: 4px; +} + +#main { + position: absolute; + top: 0; + left: 192px; + width: calc(100% - 192px); +} + +#nav { + width: 192px; + background-color: #cccccc; + position: fixed; + top: 0; + left: 0; +} + +.nav-item { + padding: 0px 4px 0px 4px; + margin: 2px; + background-color: #800000; + color: #ddd; + display: block; +} + +.nav-item:hover { + background-color: #ffffff; + color: #800000; +} + +.nav { + width: 100%; +} + +@media only screen and (max-width: 576px) { + #main, #nav { + width: 100%; + } +} \ No newline at end of file diff --git a/servers.html b/servers.html index da5b053..2feb3c8 100644 --- a/servers.html +++ b/servers.html @@ -1 +1 @@ -e3team Servers

e3team-owned servers

e3team owns and controls several servers around the globe. Following is a list of them all:

HostnamePublic?Public IPEdge?Domain NameOwnershipCountryRegionPrimary Admin(s)
east1Yes198.98.60.198Yeseast1.e3t.ccRentedUnited StatesNew Yorkcore, terra
east2Yes198.98.48.77Yeseast2.e3t.ccRentedUnited StatesNew Yorkcore, terra
east3Yes199.195.249.198Yeseast3.e3t.ccRentedUnited StatesNew Yorkcore, terra
ghost-east1Yes5.183.8.190Yesstkserver.e3t.ccRentedUnited StatesAshevilleghost
central1NoN/ANoN/AOwnedUnited StatesOhioterra
central2NoN/ANoN/AOwnedUnited StatesOhioterra
cluster0NoN/ANoN/AOwnedUnited StatesOhioterra
core-piNoN/ANoN/AOwnedUnited StatesNorth Carolinacore
terra-pi4NoN/ANoN/AOwnedUnited StatesOhioterra
terra-pi1bNoN/ANoN/AOwnedUnited StatesOhionishi, terra
fxtwrNoN/ANoN/AOwnedUnited StatesOhioterra
terra-mm12NoN/ANoN/AOwnedUnited StatesOhionishi
nishivoid-c2dNoN/ANoN/AOwnedJapanChibanishi
nishinbsd-c2dNoN/ANoN/AOwnedJapanChibanishi
nishinbsd-g4NoN/ANoN/AOwnedJapanChibanishi
nishinbsd-fmvNoN/ANoN/AOwnedJapanChibanishi
nishiraid-c2dNoN/ANoN/AOwnedJapanChibanishi
nishiwiiNoN/ANoN/AOwnedJapanChibanishi
nishihaiku-nj3000NoN/ANoN/AOwnedJapanChibanishi

Generated automatically by e3t-listgen from listing.yaml.

View our services list \ No newline at end of file +e3team Servers

e3team-owned servers

e3team owns and controls several servers around the globe. Following is a list of them all:

HostnamePublic?Public IPEdge?Domain NameOwnershipCountryRegionPrimary Admin(s)
east1Yes198.98.60.198Yeseast1.e3t.ccRentedUnited StatesNew Yorkcore, terra
east2Yes198.98.48.77Yeseast2.e3t.ccRentedUnited StatesNew Yorkcore, terra
east3Yes199.195.249.198Yeseast3.e3t.ccRentedUnited StatesNew Yorkcore, terra
ghost-east1Yes5.183.8.190Yesstkserver.e3t.ccRentedUnited StatesAshevilleghost
central1NoN/ANoN/AOwnedUnited StatesOhioterra
central2NoN/ANoN/AOwnedUnited StatesOhioterra
cluster0NoN/ANoN/AOwnedUnited StatesOhioterra
core-piNoN/ANoN/AOwnedUnited StatesNorth Carolinacore
terra-pi4NoN/ANoN/AOwnedUnited StatesOhioterra
terra-pi1bNoN/ANoN/AOwnedUnited StatesOhionishi, terra
fxtwrNoN/ANoN/AOwnedUnited StatesOhioterra
terra-mm12NoN/ANoN/AOwnedUnited StatesOhionishi
nishivoid-c2dNoN/ANoN/AOwnedJapanChibanishi
nishinbsd-c2dNoN/ANoN/AOwnedJapanChibanishi
nishinbsd-g4NoN/ANoN/AOwnedJapanChibanishi
nishinbsd-fmvNoN/ANoN/AOwnedJapanChibanishi
nishiraid-c2dNoN/ANoN/AOwnedJapanChibanishi
nishiwiiNoN/ANoN/AOwnedJapanChibanishi
nishihaiku-nj3000NoN/ANoN/AOwnedJapanChibanishi

Generated automatically by e3t-listgen from listing.yaml.

View our services list
\ No newline at end of file diff --git a/services.html b/services.html index 3a5b3ef..105c433 100644 --- a/services.html +++ b/services.html @@ -1 +1 @@ -e3team Services

e3team-hosted servers

e3team hosts many services on it's servers around the globe. Many are public. Following is a list of them all:

NameSoftwarePublic?Public URLHosted OnBacked UpPrimary Admin(s)
MatrixsynapseYese3t.cccore-pidailycore
CryptPadcryptpadYeshttps://pad.e3t.cccore-piEvery 6 hourscore
PterodactylpterodactylNohttps://panel.e3t.cccentral2Nevercore
VaultWardenvaultwardenYeshttps://vault.e3t.cceast1Nevercore
e3t Mail ServersRedacted for securityNoRedacted for securityRedacted for securityDailycore
SourcehutmetasrhtYeshttps://meta.e3t.ccsourcehutvm @ cluster0Dailycore
Sourcehut GitgitsrhtYeshttps://git.e3t.ccsourcehutvm @ cluster0Dailycore
Sourcehut ListslistssrhtYeshttps://lists.e3t.ccsourcehutvm @ cluster0Dailycore
Sourcehut TodotodosrhtYeshttps://todo.e3t.ccsourcehutvm @ cluster0Dailycore
Sourcehut ManualmansrhtYeshttps://man.e3t.ccsourcehutvm @ cluster0Dailycore
Sourcehut BuildsbuildssrhtNohttps://builds.e3t.ccsourcehutvm @ cluster0Dailycore
Sourcehut PastepastesrhtYeshttps://paste.e3t.ccsourcehutvm @ cluster0Dailycore
Zulip ChatzulipYeshttps://zulip.e3t.cccentral2Nevercore

Generated automatically by e3t-listgen from listing.yaml.

View our server list \ No newline at end of file +e3team Services

e3team-hosted servers

e3team hosts many services on it's servers around the globe. Many are public. Following is a list of them all:

NameSoftwarePublic?Public URLHosted OnBacked UpPrimary Admin(s)
MatrixsynapseYese3t.cccore-pidailycore
CryptPadcryptpadYeshttps://pad.e3t.cccore-piEvery 6 hourscore
PterodactylpterodactylNohttps://panel.e3t.cccentral2Nevercore
VaultWardenvaultwardenYeshttps://vault.e3t.cceast1Nevercore
e3t Mail ServersRedacted for securityNoRedacted for securityRedacted for securityDailycore
SourcehutmetasrhtYeshttps://meta.e3t.ccsourcehutvm @ cluster0Dailycore
Sourcehut GitgitsrhtYeshttps://git.e3t.ccsourcehutvm @ cluster0Dailycore
Sourcehut ListslistssrhtYeshttps://lists.e3t.ccsourcehutvm @ cluster0Dailycore
Sourcehut TodotodosrhtYeshttps://todo.e3t.ccsourcehutvm @ cluster0Dailycore
Sourcehut ManualmansrhtYeshttps://man.e3t.ccsourcehutvm @ cluster0Dailycore
Sourcehut BuildsbuildssrhtNohttps://builds.e3t.ccsourcehutvm @ cluster0Dailycore
Sourcehut PastepastesrhtYeshttps://paste.e3t.ccsourcehutvm @ cluster0Dailycore
Zulip ChatzulipYeshttps://zulip.e3t.cccentral2Nevercore

Generated automatically by e3t-listgen from listing.yaml.

View our server list
\ No newline at end of file diff --git a/src/main.rs b/src/main.rs index e986467..2962168 100644 --- a/src/main.rs +++ b/src/main.rs @@ -71,40 +71,57 @@ fn generate_servershtml(config: &ListgenConfig) -> String { "e3team Servers" + + + -

"e3team-owned servers"

-

"e3team owns and controls several servers around the globe. Following is a list of them all:"

- - - - - - - - - - - - - { config.servers.iter().map(|u| { - html! ( - - - - - - - - - - - - ) - })} -
"Hostname""Public?""Public IP""Edge?""Domain Name""Ownership""Country""Region""Primary Admin(s)"
{ text!("{}", u.hostname) }{ text!("{}", if u.public { "Yes" } else { "No" }) }{ text!("{}", if let Some(ips) = &u.public_ips { ips.iter().map(|u| u.to_string()).collect::>().join(", ") } else { "N/A".into() } ) }{ text!("{}", if u.edge { "Yes" } else { "No" }) }{ text!("{}", if let Some(domain) = &u.domain { domain.as_str() } else { "N/A" }) }{ text!("{}", if matches!(u.ownership, ListgenConfigServerOwnership::Rented) { "Rented" } else { "Owned" }) }{ text!("{}", u.country ) }{ text!("{}", u.region ) }{ text!("{}", u.admins.join(", ")) }
-

"Generated automatically by e3t-listgen from ""listing.yaml""."

- "View our services list" + +
+

"e3team-owned servers"

+

"e3team owns and controls several servers around the globe. Following is a list of them all:"

+ + + + + + + + + + + + + { config.servers.iter().map(|u| { + html! ( + + + + + + + + + + + + ) + })} +
"Hostname""Public?""Public IP""Edge?""Domain Name""Ownership""Country""Region""Primary Admin(s)"
{ text!("{}", u.hostname) }{ text!("{}", if u.public { "Yes" } else { "No" }) }{ text!("{}", if let Some(ips) = &u.public_ips { ips.iter().map(|u| u.to_string()).collect::>().join(", ") } else { "N/A".into() } ) }{ text!("{}", if u.edge { "Yes" } else { "No" }) }{ text!("{}", if let Some(domain) = &u.domain { domain.as_str() } else { "N/A" }) }{ text!("{}", if matches!(u.ownership, ListgenConfigServerOwnership::Rented) { "Rented" } else { "Owned" }) }{ text!("{}", u.country ) }{ text!("{}", u.region ) }{ text!("{}", u.admins.join(", ")) }
+

"Generated automatically by e3t-listgen from ""listing.yaml""."

+ "View our services list" +
); @@ -116,36 +133,53 @@ fn generate_serviceslist(config: &ListgenConfig) -> String { "e3team Services" + + + -

"e3team-hosted servers"

-

"e3team hosts many services on it's servers around the globe. Many are public. Following is a list of them all:"

- - - - - - - - - - - { config.services.iter().map(|u| { - html! ( - - - - - - - - - - ) - })} -
"Name""Software""Public?""Public URL""Hosted On""Backed Up""Primary Admin(s)"
{ text!("{}", u.name) }{ text!("{}", u.software) }{ text!("{}", if u.public { "Yes" } else { "No" }) }{ text!("{}", u.url ) }{ text!("{}", u.host) }{ text!("{}", u.backups ) }{ text!("{}", u.admins.join(", ")) }
-

"Generated automatically by e3t-listgen from ""listing.yaml""."

- "View our server list" + +
+

"e3team-hosted servers"

+

"e3team hosts many services on it's servers around the globe. Many are public. Following is a list of them all:"

+ + + + + + + + + + + { config.services.iter().map(|u| { + html! ( + + + + + + + + + + ) + })} +
"Name""Software""Public?""Public URL""Hosted On""Backed Up""Primary Admin(s)"
{ text!("{}", u.name) }{ text!("{}", u.software) }{ text!("{}", if u.public { "Yes" } else { "No" }) }{ text!("{}", u.url ) }{ text!("{}", u.host) }{ text!("{}", u.backups ) }{ text!("{}", u.admins.join(", ")) }
+

"Generated automatically by e3t-listgen from ""listing.yaml""."

+ "View our server list" +
);