This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Axino lib importa: | |
| import { Div } from "axino/div"; | |
| import { colors } from "axino/constants"; | |
| // Local (custom) widgets imports: | |
| import { TaskList } from "./tasklist"; | |
| import { TaskAction } from "./task_action"; | |
| import { Channel } from "axino/channel"; | |
| import { log } from "axino/core"; | |
| import { Vector } from "axino/vector"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Button } from "axino/button"; | |
| import { Div } from "axino/div"; | |
| import { Widget } from "axino/widget"; | |
| import { Component } from "axino/core"; | |
| class TaskList extends Widget { | |
| // Data: | |
| list: Component[]; | |
| addButtonWrapper: Div; | |
| addButton: Button; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //======================== | |
| // Populate list_of_tasks: | |
| //======================== | |
| all_tasks.append( | |
| new TaskAction("Task 1", false, { | |
| add: channel_add, | |
| delete: channel_delete, | |
| check: channel_checked, | |
| }) | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Button } from "axino/button"; | |
| import { Div } from "axino/div"; | |
| import { colors } from "axino/constants"; | |
| import { CheckBox } from "axino/checkbox"; | |
| import { Widget } from "axino/widget"; | |
| //================== | |
| // Task Widget : | |
| //================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Modules to control application life and create native browser window | |
| const {app, BrowserWindow} = require('electron') | |
| const path = require('path') | |
| function createWindow () { | |
| // Create the browser window. | |
| const mainWindow = new BrowserWindow({ | |
| width: 800, | |
| height: 600, | |
| webPreferences: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | |
| <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' "> | |
| <meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self' "> | |
| </head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This file is required by the index.html file and will | |
| // be executed in the renderer process for that window. | |
| // No Node.js APIs are available in this process because | |
| // `nodeIntegration` is turned off. Use `preload.js` to | |
| // selectively enable features needed in the rendering | |
| // process. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | |
| <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'"> | |
| <meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self'"> | |
| <title>Hello World!</title> | |
| </head> | |
| <body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Input } from "axino/input"; | |
| import { Label } from "axino/label"; | |
| import { Div } from "axino/div"; | |
| import { eventsKeyBoard } from "axino/constants"; | |
| // Create a basic Div: | |
| var d = new Div(null); | |
| d.vertical(); | |
| d.appendToApp(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Div } from "./div"; | |
| class List extends Div { | |
| items: string; | |
| constructor(props) { | |
| super(props); | |
| let items = []; | |
| if (props) { | |
| if (props.items) { | |
| items = props.items; |
NewerOlder