Skip to content

Commit

Permalink
add support zuno
Browse files Browse the repository at this point in the history
  • Loading branch information
amatilda committed Jun 19, 2024
1 parent 8714dfc commit b6a5012
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion example.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<body>
<input type="button" onclick="controller()" value="controller">
<link rel="stylesheet" type="text/css" href="build\main.css">
<script src="build\ui.js"></script>
<script src="build\controller_ui.js"></script>
<script>
async function controller() {
const test = new ControllerUiLib.ControllerUiClass(document.getElementsByTagName('body')[0x0]);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "ui",
"name": "controller_ui",
"version": "0.0.1",
"description": "",
"main": "src/ui.ts",
"main": "src/controller_ui.ts",
"scripts": {
"dev": "webpack --mode=development",
"build": "rm -rf build && webpack --mode=production"
Expand Down
2 changes: 1 addition & 1 deletion src/ui.ts → src/controller_ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type slave_array_type = Array<SlaveUiSectionInfoClass>;
type all_array_type = controller_array_type|slave_array_type;

class ControllerUiClass {
private readonly VERSION_LOG = ControllerUiDefineClass.NAME_APP + " 0.0.4";
private readonly VERSION_LOG = ControllerUiDefineClass.NAME_APP + " 0.0.5";

private readonly sapi:SapiClass = new SapiClass();
private readonly razberry:ControllerSapiClass = new ControllerSapiClass(this.sapi);
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = function(env, argv) {
const config =
{
plugins: [new MiniCssExtractPlugin()],
entry: './src/ui.ts',
entry: './src/controller_ui.ts',
module:
{
rules:
Expand All @@ -43,7 +43,7 @@ module.exports = function(env, argv) {
},
output:
{
filename: 'ui.js',
filename: 'controller_ui.js',
libraryTarget: 'umd',
library: 'ControllerUiLib',
path: path.resolve(__dirname, 'build')
Expand Down

0 comments on commit b6a5012

Please sign in to comment.