Skip to content

Commit 8eb79b5

Browse files
committed
Pre-Release v2.0.1
- working production version - country flags
1 parent fd80903 commit 8eb79b5

9 files changed

Lines changed: 255 additions & 125 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ The custom equations dialog with categories tree
103103

104104
- The language switcher is now equipped with country flags.
105105
- The functionality of this plug-in is now also available as [Web app](https://mick2nd.github.io/Katex-Input-Helper/index.html) hosted on Github.
106+
This can be used as Demo or to have a look at pre-published versions.
107+
- Made the production version working hereby reducing the size of the plug-in.
106108

107109
### 2.0.0
108110

package-lock.json

Lines changed: 31 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"jest": "^29.7.0",
4747
"jquery": "^3.7.1",
4848
"json-loader": "^0.5.7",
49+
"katex": "^0.16.22",
4950
"mini-css-extract-plugin": "^2.9.2",
5051
"path": "^0.12.7",
5152
"raw-loader": "^4.0.2",

src/assets/information/tVERSION.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,30 @@
99
</p>
1010
<table class="inline-table">
1111

12+
<tr>
13+
<td valign=top>
14+
<b>2.0.1&nbsp;&nbsp;</b>
15+
</td>
16+
<td>
17+
First version of Katex Input Helper with full working production version (May 2025).
18+
<br/>
19+
<br/> Leads to reduced plug-in size. The production version was not working / published
20+
until now.
21+
</td>
22+
</tr>
23+
24+
<tr>
25+
<td valign=top>
26+
<b>2.0.0&nbsp;&nbsp;</b>
27+
</td>
28+
<td>
29+
Major version (May 2025).
30+
<br/>
31+
<br/> First version of Katex Input Helper, working with the Webpack bundler for the included
32+
dialog scripts. This leads to an improved start behavior, no longer crashing.
33+
</td>
34+
</tr>
35+
1236
<tr>
1337
<td valign=top>
1438
<b>1.0.0&nbsp;&nbsp;</b>

src/assets/js/bootLoader.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11

2-
/* Could not bring asynchronous version of easyui to work
3-
*/
4-
import jquery from './jquery-plugin/jquery.min';
2+
/* Could not bring asynchronous version of easyui to work.
3+
* jquery node_module working with ProvidePlugin.
4+
*/
55
import './jquery-easyui/jquery.easyui.min';
66
import './jquery-easyui/datagrid-dnd';
77
import './jquery-easyui/datagrid-filter';
88
import './jquery-easyui/datagrid-cellediting';
99

10-
const CodeMirror = (await import('./codemirror/lib/codemirror')).default;
10+
const CodeMirror = (await import('codemirror/lib/codemirror')).default;
1111

1212
import { Observable } from './patterns/observable';
1313
import { Localizer } from './localization';

src/assets/js/dialog.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
@import './jquery-easyui-MathEditorExtend/themes/icon.css';
55
@import './jquery-easyui-MathEditorExtend/themes/aguas/easyui.css';
66
@import './keyboard/keyboard.css';
7-
@import './codemirror/lib/codemirror.css';
8-
@import './codemirror/theme/darcula.css';
9-
@import './codemirror/theme/twilight.css';
10-
@import './codemirror/theme/zenburn.css';
7+
@import 'codemirror/lib/codemirror.css';
8+
@import 'codemirror/theme/darcula.css';
9+
@import 'codemirror/theme/twilight.css';
10+
@import 'codemirror/theme/zenburn.css';
1111

1212
body {
1313
height: 100%;

src/assets/js/dialog.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import './dialog.css' assert { type: 'css' };
22

3-
const CodeMirror = (await import('./codemirror/lib/codemirror')).default;
4-
await import('./codemirror/mode/stex/stex'); // manual recommendation
3+
const CodeMirror = (await import('codemirror/lib/codemirror')).default;
4+
await import('codemirror/mode/stex/stex'); // manual recommendation
55

66
import { VKI_init } from './keyboard/keyboard';
77
import { ParametersProxy } from "./parameters";
@@ -121,7 +121,8 @@ class Documentations {
121121
*/
122122
export class KatexInputHelper {
123123

124-
version = "2.0.1";
124+
version = "2.0.1";
125+
versions = null;
125126
codeType = 'Latex';
126127
saveOptionInCookies = false;
127128
isBuild = false;
@@ -284,7 +285,8 @@ export class KatexInputHelper {
284285
*/
285286
async initialise() {
286287

287-
var vme = this;
288+
var vme = this;
289+
this.versions = await import( /* webpackInclude: /\.json$/ */ './versions.json');
288290

289291
this.parser.initialise();
290292
await this.parameters.queryParameters(); // from Plugin
@@ -1416,17 +1418,15 @@ export class KatexInputHelper {
14161418
await vme.parser.parseAsync('div[href]', 0, 100);
14171419
console.info(`Parse completed for : div[href]`);
14181420

1419-
var VKI_version = '1.49';
1420-
var easyuiVersion = '1.11';
14211421
$("#VMEversion").html(`
14221422
<table class="inline-table">
1423-
<tr><td><b> ${vme.version} </b></td><td><b>Katex Input Helper / Visual Math Editor</b>, (This software)</td></tr>
1424-
<tr><td> 0.16 </td><td>Katex</td></tr>
1423+
<tr><td><b> ${vme.versions.version} </b></td><td><b>Katex Input Helper / Visual Math Editor</b>, (This software)</td></tr>
1424+
<tr><td> ${vme.versions.katexVersion} </td><td>Katex</td></tr>
14251425
<tr><td> ${CodeMirror.version} </td><td>Code Mirror</td></tr>
1426-
<tr><td> ${VKI_version} </td><td>Virtual Keyboard</td></tr>
1426+
<tr><td> ${vme.versions.VKI_version} </td><td>Virtual Keyboard</td></tr>
14271427
<tr><td> ${$.fn.jquery} </td><td>Jquery</td></tr>
1428-
<tr><td> ${easyuiVersion} </td><td>Jquery Easyui</td></tr>
1429-
<tr><td> 23/05/2009 </td><td>Jquery Color Picker</td></tr>
1428+
<tr><td> ${vme.versions.easyuiVersion} </td><td>Jquery Easyui</td></tr>
1429+
<tr><td> ${vme.versions.colorPickerVersion} </td><td>Jquery Color Picker</td></tr>
14301430
<table>`);
14311431
$("#VMEdate").html((new Date()).getFullYear());
14321432

src/assets/js/versions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"version": "2.0.1",
3+
"VKI_version": "1.49",
4+
"easyuiVersion": "1.11",
5+
"katexVersion": "0.16.22",
6+
"colorPickerVersion": "23/05/2009"
7+
}

0 commit comments

Comments
 (0)