Change to onedev

This commit is contained in:
2025-01-08 12:27:22 -06:00
parent 30c09ada0b
commit df895846dc
23 changed files with 397 additions and 80 deletions

View File

@@ -0,0 +1,3 @@
<?component() name="Counter" ?>
<p>Count is <?expr count++ ?></p>
<?end?>

View File

@@ -0,0 +1,36 @@
<?resource name="simple.min.css" route="/css/simple.min.css" ?>
<?resource name="favicon.ico" route="/favicon.ico" ?>
<?component(title,pages,body) name="Shell" ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CrossLang - <?expr Net.Http.HtmlEncode(title) ?></title>
<link rel="stylesheet" href="./css/simple.min.css">
</head>
<body>
<header>
<h1>CrossLang</h1>
<nav>
<ul>
<?code
each(var item : pages)
{
?>
<li><a <?code if(item.active) { ?> aria-current="page" <?code } ?> href="<?expr Net.Http.UrlPathEncode(item.route) ?>"><?expr Net.Http.HtmlEncode(item.text) ?></a></li>
<?code
}
?>
</ul>
</nav>
</header>
<h1><?expr Net.Http.HtmlEncode(title) ?></h1>
<?body?>
<?end?>
<footer>
<p>Created using <a href="https://crosslang.tesseslanguage.com/">CrossLang</a> and <a href="https://simplecss.org/">SimpleCSS</a></p>
</footer>
</body>
</html>
<?end?>

View File

@@ -0,0 +1,8 @@
{
"project_dependencies": ["../Tesses.CrossLang.Markup"],
"info": {
"type": "console"
},
"version": "1.0.0.0-prod",
"name": "Tesses.CrossLang.WebSite"
}

View File

@@ -0,0 +1,35 @@
<?page() route="/downloads" ?>
<?code
var pages = [
{
active = false,
route = "/",
text = "Home"
},
{
active = true,
route = "/downloads",
text = "Downloads"
}
];
?>
<?Shell?>
<?arg "Downloads" ?>
<?arg pages ?>
<?arg_component() ?>
<h2>Source Code</h2>
<ul>
<li><a href="https://onedev.site.tesses.net/crosslang">CrossLang</a></li>
<li><a href="https://onedev.site.tesses.net/crosslang/crosslangextras">CrossLang Essentials</a></li>
</ul>
<h2>Binaries</h2>
<!--<ul>
<li><a href="./downloads/windows">Windows</a></li>
<li><a href="./downloads/mac">Mac</a></li>
<li><a href="./downloads/linux">Linux</a></li>
<li><a href="./downloads/wii">Wii</a></li>
<li><a href="./downloads/iso">ISO (Burn to Disc)</a></li>
</ul>-->
<?end?>
<?end?>
<?end?>

View File

@@ -0,0 +1,24 @@
<?page() route="/" ?>
<?code
var pages = [
{
active = true,
route = "/",
text = "Home"
},
{
active = false,
route = "/downloads",
text = "Downloads"
}
];
?>
<?Shell?>
<?arg "Home" ?>
<?arg pages ?>
<?arg_component() ?>
<p>This is the website for my programming language</p>
<p>1 John 4:4: You, dear children, are from God and have overcome them, because the one who is in you is greater than the one who is in the world.</p>
<?end?>
<?end?>
<?end?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,5 @@
var count = 0;
func main(args)
{
Net.Http.ListenSimpleWithLoop(Router,4206);
}