-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from Tapeline/master
v2.0-RC-3
- Loading branch information
Showing
62 changed files
with
2,591 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ public class DocumentationGenerator { | |
); | ||
|
||
private final String documentationHeader = "<!doctype html>\n" + | ||
"<html lang=\"en\">\n" + | ||
"<html lang=\"en\" style=\"overflow-x:hidden\">\n" + | ||
"<head>\n" + | ||
" <meta charset=\"UTF-8\">\n" + | ||
" <meta name=\"viewport\"\n" + | ||
|
@@ -41,6 +41,28 @@ public class DocumentationGenerator { | |
" <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/[email protected]" + | ||
"/font/bootstrap-icons.css\">\n" + | ||
" <title>Docs</title>\n" + | ||
" <style>\n" + | ||
" @media screen and (min-width: 810px) {\n" + | ||
" aside {\n" + | ||
" height: 100vh;\n" + | ||
" overflow-y: scroll;\n" + | ||
" }\n" + | ||
" }\n" + | ||
"\n" + | ||
" :target {\n" + | ||
" -webkit-animation: target-fade 5s 1;\n" + | ||
" -moz-animation: target-fade 5s 1;\n" + | ||
" }\n" + | ||
"\n" + | ||
" @-webkit-keyframes target-fade {\n" + | ||
" 0% { background-color: rgba(255, 198, 109, 0.8); }\n" + | ||
" 100% { background-color: rgba(0,0,0,0); }\n" + | ||
" }\n" + | ||
" @-moz-keyframes target-fade {\n" + | ||
" 0% { background-color: rgba(255, 198, 109, 0.8); }\n" + | ||
" 100% { background-color: rgba(0,0,0,0); }\n" + | ||
" }" + | ||
" </style>\n" + | ||
"</head>\n" + | ||
"<body class=\"row p-5\">"; | ||
private final String documentationFooter = "</body>\n" + | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,6 +113,7 @@ public enum TokenType { | |
DOT, | ||
VAR, | ||
IN, | ||
NOT_IN, | ||
INSTANCEOF, | ||
LIKE, | ||
DOCS, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...eEnvironment/src/main/java/me/tapeline/quailj/runtime/std/cli/CliGetConsoleArgString.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package me.tapeline.quailj.runtime.std.cli; | ||
|
||
import me.tapeline.quailj.parsing.nodes.literals.LiteralFunction; | ||
import me.tapeline.quailj.runtime.Runtime; | ||
import me.tapeline.quailj.typing.modifiers.ModifierConstants; | ||
import me.tapeline.quailj.typing.classes.QObject; | ||
import me.tapeline.quailj.typing.utils.FuncArgument; | ||
import me.tapeline.quailj.typing.classes.utils.QBuiltinFunc; | ||
import me.tapeline.quailj.runtime.RuntimeStriker; | ||
|
||
import java.util.Arrays; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
|
||
public class CliGetConsoleArgString extends QBuiltinFunc { | ||
|
||
public CliGetConsoleArgString(Runtime runtime) { | ||
super( | ||
"getConsoleArgString", | ||
Arrays.asList( | ||
), | ||
runtime, | ||
runtime.getMemory(), | ||
false | ||
); | ||
} | ||
|
||
@Override | ||
public QObject action(Runtime runtime, HashMap<String, QObject> args, List<QObject> argList) throws RuntimeStriker { | ||
return Val(runtime.getScriptArgs()); | ||
} | ||
|
||
} |
Oops, something went wrong.