1.0.17 • Published 3 years ago

yut v1.0.17

Weekly downloads
3
License
ISC
Repository
-
Last release
3 years ago

yut

A light web client app js framework, that based on OOP. You can say it's writed for C++ programmer.

how to use?

usage of npm

  • install npm lib
npm install yut
  • import class from yut in your source JavaScript files.
import { yutls, theApp, CView } from 'yut';
  • Create CMainFrm and the other windows by the TEMPLATE, and then attached to theAPP; theAPP that is created by 'yut framework' automatically.
[in CMainFrm.js / CMainFrm.html]
class CMainFrm extends CView{ // ! inherit from CView !
    ...
  }
[in index.js]
theApp.setAppName(appName);
theApp.attachMainFrm(CMainFrm);

usage of native JS

  • include yut lib, and named the to 'mainFrm', and then set the init entry to body onload=''
[in index.html]
  <script src="../release/yut.js"></script>
  <body id="mainFrm" onload="Init()">
  • Create CMainFrm and the other windows by the TEMPLATE, and then attached to theAPP; theAPP that is created by 'yut framework' automatically.
[in CMainFrm.js / CMainFrm.html; ES2015/ES2016 are OK.]
class CMainFrm extends CView{ // ! inherit from CView !
    ...
  }
[in index.js]
function Init()
{
    theApp.setAppName(appName);
    theApp.attachMainFrm(CMainFrm);
}

export and import

'cause the compatibility of node/ES6, the import failed will be found if export the source files from 'index.js'. The solution is export the lib by 'release/yut.js'. So, the main entry of 'package.json' is set to "main": "./release/yut.js", .

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.9.9

5 years ago

0.9.8

5 years ago

0.9.7

5 years ago

0.9.6

5 years ago

0.9.5

5 years ago

0.9.4

5 years ago

0.9.3

5 years ago

0.9.2

5 years ago

0.9.1

5 years ago

0.9.0

5 years ago