2024-07-28 12:52:13 +02:00
import {
2024-09-07 09:35:47 +02:00
BarChart4 ,
Bird ,
Bug ,
BugIcon ,
Cog ,
File ,
Mail ,
ShieldCheck ,
WebhookIcon
2024-07-28 12:52:13 +02:00
} from "lucide-react" ;
2024-06-20 17:02:11 +02:00
import { Download , Home , Settings , User } from "lucide-react" ;
2024-06-15 17:30:51 +02:00
2024-07-28 11:02:06 +02:00
// Navbar
2024-06-15 14:55:33 +02:00
export const NAVBAR = {
2024-09-07 09:35:47 +02:00
centerLinks : [
{
href : "/" ,
target : "_self" ,
label : "Home"
} ,
{
href : "/docs" ,
target : "_self" ,
label : "Docs"
} ,
{
href : "/blog" ,
target : "_self" ,
label : "Blog"
} ,
{
2024-09-07 12:14:24 +02:00
href : "https://forum.svrjs.org" ,
2024-09-07 09:35:47 +02:00
target : "_self" ,
label : "Forum"
}
] ,
rightLinks : [
{
label : "Git" ,
target : "_blank" ,
href : "https://git.svrjs.org/"
}
]
2024-06-15 14:55:33 +02:00
} ;
2024-07-28 11:02:06 +02:00
// About section Stats
2024-06-15 14:55:33 +02:00
export const stats = [
2024-09-07 09:35:47 +02:00
{
2024-09-07 11:28:16 +02:00
title : "Docker pulls" ,
2024-11-25 06:32:22 +01:00
count : 70
2024-09-07 09:35:47 +02:00
} ,
{
2024-09-07 11:28:16 +02:00
title : "GitHub stars" ,
count : 8
2024-09-07 09:35:47 +02:00
} ,
{
2024-09-07 11:28:16 +02:00
title : "Powered servers" ,
count : 1
2024-09-07 09:35:47 +02:00
} ,
{
2024-09-07 11:28:16 +02:00
title : "Contributors" ,
count : 1
2024-09-07 09:35:47 +02:00
}
2024-06-15 14:55:33 +02:00
] ;
2024-06-15 17:30:51 +02:00
2024-07-28 11:02:06 +02:00
// Features Section Home Page
2024-06-15 17:30:51 +02:00
export const Features = [
2024-09-07 09:35:47 +02:00
{
icon : < Bird className = "w-10 h-10 text-primary" / > ,
title : "Free as in freedom" ,
description :
"You don't need to worry about proprietary malware, counterfeit software, crashes from non-genuine versions, or Big Tech backdoors. SVR.JS is open-source under the MIT license, running on Node.JS (also MIT). Contribute to SVR.JS via our Git repository!"
} ,
{
icon : < BarChart4 className = "w-10 h-10 text-primary" / > ,
title : "Scalable" ,
description :
"SVR.JS runs on Node.JS or Bun, which are JavaScript runtimes utilizing event-driven infrastructure for efficient handling of I/O operations. It also uses clustering by default to withstand high request loads and ensure server stability."
} ,
{
icon : < ShieldCheck className = "w-10 h-10 text-primary" / > ,
title : "Secure" ,
description :
"We put your website security first. SVR.JS sanitizes URLs, and protects your web application against brute force attacks on HTTP authentication. SVR.JS also has a built-in block list, so you can block malicious actors."
} ,
{
icon : < Cog className = "w-10 h-10 text-primary" / > ,
title : "Configurable" ,
description :
"You can configure SVR.JS through config.json file. You can also install mods and use server-side JavaScript! Focus on developing JavaScript web applications with SVR.JS!"
}
2024-06-15 17:30:51 +02:00
] ;
2024-06-15 18:41:36 +02:00
2024-07-28 11:02:06 +02:00
// FAQS
2024-06-15 18:41:36 +02:00
export const questions = [
2024-09-07 09:35:47 +02:00
{
key : "item-1" ,
question : "What is a web server?" ,
answer :
"A web server is computer software that accepts HTTP requests and serves websites. Web servers can also be underlying hardware running web server software."
} ,
{
key : "item-2" ,
question : "What is SVR.JS?" ,
answer :
"SVR.JS is web server software running on Node.JS that can host both static and dynamic content. With additional mods, SVR.JS can be used for different types of dynamic content and can even be used as a forward or reverse proxy. SVR.JS is licensed under a permissive MIT/X11 license"
} ,
{
key : "item-3" ,
question : "How was SVR.JS created?" ,
answer :
2024-09-07 09:45:04 +02:00
"Someone in 2018 wanted to create a website, but he didn't know about setting up popular web server software like Apache httpd, NGINX, or IIS... So he created his own web server in Node.JS to serve his website! And he saved it in a file called svr.js. Since then, this web server has been gradually turned from a web server intended for one website into a general-purpose web server, which is what SVR.JS is today!"
2024-09-07 09:35:47 +02:00
} ,
{
key : "item-4" ,
question : "How did SVR.JS get its name?" ,
answer :
"SVR.JS got its name from the original name of the server script: svr.js, one of many generic file names for a server written in JavaScript."
} ,
{
key : "item-5" ,
question : "What is Node.JS?" ,
answer :
2024-09-07 09:45:04 +02:00
"Node.JS is an asynchronous event-driven JavaScript runtime built on Chromium's V8 engine. Node.JS is designed to build scalable network applications."
2024-09-07 09:35:47 +02:00
} ,
{
key : "item-6" ,
question : "How can I use SVR.JS?" ,
answer :
2024-09-07 09:45:04 +02:00
"You can read the SVR.JS documentation to learn how to use the SVR.JS web server."
2024-09-07 09:35:47 +02:00
}
2024-06-15 18:41:36 +02:00
] ;
2024-06-15 20:37:01 +02:00
2024-07-28 11:02:06 +02:00
// Footer
2024-06-15 20:37:01 +02:00
export const FOOTERLINKS = {
2024-09-07 09:35:47 +02:00
otherPages : [
{ href : "/" , label : "Home" } ,
{ href : "/contact" , label : "Contact" } ,
{ href : "/blog" , label : "Blog" } ,
2024-09-07 12:14:24 +02:00
{ href : "https://forum.svrjs.org" , label : "Forum" }
2024-09-07 09:35:47 +02:00
] ,
plans : [
{ href : "/docs" , label : "Docs" } ,
{ href : "/downloads" , label : "Downloads" } ,
2024-09-07 12:00:05 +02:00
{ href : "/mods" , label : "SVR.JS mods" } ,
{ href : "/changelog" , label : "Change log" }
2024-09-07 09:35:47 +02:00
] ,
additional : [
{ href : "/contribute" , label : "Contribute" } ,
{ href : "/vulnerabilities" , label : "Vulnerabilities" } ,
2024-09-07 12:15:39 +02:00
{ href : "https://git.svrjs.org" , label : "Git server" } ,
2024-11-16 12:21:15 +01:00
{ href : "https://www.mernmail.org" , label : "MERNMail" }
2024-09-07 09:35:47 +02:00
] ,
social : {
supportText : "Support Us on Socials"
} ,
footerBottom : {
termsofService : {
href : "/tos" ,
label : "Terms of Service"
} ,
privacyPolicy : {
2024-09-07 11:50:28 +02:00
href : "/privacy" ,
2024-09-07 09:35:47 +02:00
label : "Privacy Policy"
} ,
rightsReserved : {
2024-09-08 13:16:43 +02:00
href : ` ${ process . env . NEXT_PUBLIC_WEBSITE_URL } / ` ,
2024-09-07 09:39:26 +02:00
label : "SVR.JS"
2024-09-07 09:35:47 +02:00
}
}
2024-06-15 20:37:01 +02:00
} ;
2024-06-16 15:37:26 +02:00
2024-07-28 11:02:06 +02:00
// Admin Dashboard
2024-06-20 17:02:11 +02:00
export const AdminLinks = [
2024-09-07 09:35:47 +02:00
{
name : "Dashboard" ,
url : "/admin" ,
icon : Home
} ,
{
name : "Downloads" ,
url : "/admin/downloads" ,
icon : Download
} ,
{
name : "Mods" ,
url : "/admin/mods" ,
icon : User
} ,
{
name : "Logs" ,
url : "/admin/changelogs" ,
icon : Settings
} ,
{
name : "MultiLogs" ,
url : "/admin/multi-logs" ,
icon : File
} ,
{
name : "Vulnerabilities" ,
url : "/admin/vulnerabilities" ,
icon : BugIcon
} ,
2024-09-08 07:16:36 +02:00
{
name : "Emails" ,
url : "/admin/email" ,
icon : Mail
} ,
2024-09-07 09:35:47 +02:00
{
name : "Back Home" ,
url : "/" ,
icon : Home
}
2024-06-20 17:02:11 +02:00
] ;
2024-07-28 12:52:13 +02:00
2024-08-01 16:32:57 +02:00
export const AdminDashboardLINKS = [
2024-09-07 09:35:47 +02:00
{
label : "Downloads" ,
url : "/admin/downloads"
} ,
{
2024-09-07 09:39:26 +02:00
label : "SVR.JS Mods" ,
2024-09-07 09:35:47 +02:00
url : "/admin/mods"
} ,
{
label : "Change Logs" ,
url : "/admin/changelogs"
} ,
{
label : "MultiLogs" ,
url : "/admin/multi-logs"
} ,
{
label : "Vulnerabilities" ,
url : "/admin/vulnerabilities"
} ,
{
label : "Emails" ,
url : "/admin/email"
}
2024-08-01 16:32:57 +02:00
] ;
2024-07-28 12:52:13 +02:00
// contact page emails
export const emails = [
2024-09-07 09:35:47 +02:00
{
icon : Mail ,
email : "support@svrjs.org" ,
url : "mailto:support@svrjs.org"
} ,
{
icon : WebhookIcon ,
email : "webmaster@svrjs.org" ,
url : "mailto:webmaster@svrjs.org"
} ,
{
icon : Bug ,
email : "bugreports@svrjs.org" ,
url : "mailto:bugreports@svrjs.org"
} ,
{
icon : ShieldCheck ,
email : "vulnerability-reports@svrjs.org" ,
url : "mailto:vulnerability-reports@svrjs.org"
}
2024-07-28 12:52:13 +02:00
] ;
2024-08-26 13:11:47 +02:00
2024-09-08 06:50:02 +02:00
export const EXAMPLE_A1 = ` <!DOCTYPE html>
< html lang = "en-US" >
< head >
2024-11-16 15:21:19 +01:00
< meta charset = "UTF-8" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" / >
< title > SVR . JS newsletter < / title >
2024-09-08 06:50:02 +02:00
< style >
2024-11-16 15:21:19 +01:00
a {
color : # 22 c55e ;
text - decoration : none ;
2024-09-08 06:50:02 +02:00
}
< / style >
< / head >
2024-11-16 15:21:19 +01:00
< body style = "margin: 0; padding: 0; font-family: Poppins, FreeSans, Helvetica, Tahoma, Verdana, Arial, sans-serif; background-color: #0c0a09; color: #ffffff;" >
< table width = "100%" cellpadding = "0" cellspacing = "0" border = "0" style = "background-color: #0c0a09;" >
< tr >
< td align = "center" >
< table width = "600" cellpadding = "0" cellspacing = "0" border = "0" style = "margin: 20px 0; background-color: #191817;" >
< tr >
< td align = "center" style = "padding: 20px 0;" >
< img src = "${process.env.NEXT_PUBLIC_WEBSITE_URL}/logo-wide.png" alt = "Logo" width = "200" style = "display: block; max-width: 100%;" / >
< / td >
< / tr >
< tr >
< td style = "padding: 20px; background-color: #221f1e; color: #ffffff;" >
< p > Put the contents of the newsletter email here . < / p >
< / td >
< / tr >
< tr >
< td align = "center" style = "padding: 20px; background-color: #191817; color: #ffffff;" >
< p style = "font-size: 12px; color: #aaaaaa;" > If you no longer wish to receive these emails , you can < a href = "${process.env.NEXT_PUBLIC_WEBSITE_URL}/unsubscribe?id={unsubscribeId}" style = "color: #22c55e; text-decoration: none;" > unsubscribe < / a > . < / p >
< / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
2024-09-08 06:50:02 +02:00
< / body >
< / html > ` ;