-
Notifications
You must be signed in to change notification settings - Fork 0
Sandbox
JRichardsz edited this page Sep 15, 2024
·
3 revisions
const compilerRun = util.promisify(compiler.run).bind(compiler);
A JavaScript framework for creating web applications in an fast, simple and intuitive way focus on productivity inspired in swing, spring and my beloved java.
LinkStart.js applications are built by composing a series of simple html page templates + javascript page listener.
- Pure html. Forgot alien tags or attributes:
<App> <MuiThemeProvider> <app-navigation> *ngIf="!authService.isLoggedIn()" <Drawer open containerStyle={{ position: null }}>
- Just your web code. Forgot alien files
.babelrc .eslintrc tslint.json .etc - @Annotattions like java
- Dependency Injection like java
- Automatic actionable elements detection
- Automatic router binding
Check the first demo:
- Coming Soon
- Add LinkStartHelper for final apps
- Add hot reload for html modifications
- Add build option in bin file
- Add build script
- Code refactor
- Unit tests with (https://www.npmjs.com/package/assert-js)
- Package as library
- Create more default ui components and layout
- https://webpack.js.org/configuration/dev-server/#devserverlivereload
- https://webpack.js.org/api/webpack-dev-server/
- https://github.com/Chance722/webpack-chokidar-plugin/blob/master/src/index.js
- https://stackoverflow.com/questions/43704994/webpack-manually-added-compilation-file-dependency-should-force-rebuild
- https://searchcode.com/file/302411057/node_modules/webpack/lib/FlagDependencyExportsPlugin.js/
- https://www.npmjs.com/package/modify-webpack-plugin
- https://github.com/webpack/webpack/issues/10392
- https://github.com/webpack/webpack-dev-middleware/blob/9f8f9471411ddf9e882f7c83c85325b5cb324216/lib/context.js#L57-L60
- https://www.npmjs.com/package/webpack-recompilation-simulator
- https://gist.github.com/mark-bradshaw/ce2d449e30a856fe3b41
- https://stackoverflow.com/questions/51943998/is-it-possible-to-have-webpack-server-trigger-a-page-refresh-on-other-file-chang
- src/main/org/linkstartjs/webpack/config/WebpackDevConfig.js env variable for client logger level
- http://www.icesoft.org/wiki/display/ICE/Resource+dependencies
Initialisable
Startable
Stoppable
Disposable
@DefaultAction(name="helloWorldAction", entrypoint="true", route="hello" )
[Controller(entrypoint="true")]
function HelloWorldController() {
@Render
@Autowire(name="helloWorldPage")
this.page;
@HtmlElementsAllForOne
[HtmlElements]
this.user;
@HtmlElement(id="firstName")
this.firstNameInputTextElement;
@HtmlElement(id="lastName")
this.lastNameInputTextElement;
[OnLoad]
this.onLoad = () => {
console.log("onLoad: Hello World!!");
};
[Render]
this.render = () => {
return this.page.getHtml();
};
[PostRender]
this.postRender = () => {
console.log("afterLoad: Hello World!!");
var hamburgers = document.querySelectorAll(".hamburger");
if (hamburgers.length > 0) {
hamburgers.forEach(function(hamburger, i) {
hamburger.addEventListener("click", function() {
this.classList.toggle("is-active");
}, false);
});
}
};
@ActionListener(tagId="sendButton", type="onclick")
[Listener(tagId="sendButton", type="onclick")]
this.sendButtonListener = (e) => {
console.log("You clicked me at:"+new Date());
console.log(this.user);
};
}
module.exports = HelloWorldAction;- remove nodejs-require-enhancer
- https://git.raincubic.com/public-group/NodeBB/-/blob/renovate/sanitize-html-2.x/install/web.js?ref_type=heads
|
Richard Leon |
- 2018