Replaced help text with link to website

This commit is contained in:
PaddiM8 2021-01-02 19:38:03 +01:00
parent 0c802df3d5
commit 5ac361abf0
4 changed files with 2 additions and 12 deletions

View File

@ -25,7 +25,6 @@
"mini-css-extract-plugin": "^0.9.0",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"postcss-loader": "^3.0.0",
"raw-loader": "^4.0.2",
"sass": "^1.26.10",
"sass-loader": "^10.0.1",
"svelte": "^3.29.7",

View File

@ -1,8 +1,6 @@
<script lang="ts">
import { afterUpdate } from "svelte";
import helpText from "../../kalk_cli/help.txt";
let outputLines: string[] = [];
let outputElement: HTMLElement;
let kalkContext;
@ -21,7 +19,8 @@
let output: string;
if (input.trim() == "help") {
output = helpText;
output =
"<a href='https://kalk.netlify.app/#usage' target='blank'>Link to usage guide</a>";
} else {
// Calculate
if (!kalkContext) kalkContext = new kalk.Context();

View File

@ -1,4 +0,0 @@
declare module "*.txt" {
const content: any;
export default content;
}

View File

@ -121,10 +121,6 @@ const config: webpack.Configuration & WebpackDevServer.Configuration = {
use: 'ts-loader',
exclude: /node_modules/,
},
{
test: /\.txt$/i,
loader: 'raw-loader',
},
],
},
devServer: {