I hereby claim:
- I am adodado on github.
- I am admircosic (https://keybase.io/admircosic) on keybase.
- I have a public key ASBjjZMYX8SfMmBC3xPFiZjH8Uo44KbXDH_PPmsC8lKJ_Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Notes for slimming down a fresh installation of Raspbian Stretch Lite. This guide does not strip Raspbian of basic functionality such as Bluetooth and mDNS.
Install a fresh Raspbian Stretch Lite image into the SD card ([source][1]).
$ unzip -p 2018-04-18-raspbian-stretch-lite.zip | dd bs=4M of=/dev/sdX conv=fsync
export function prefix(location, ...prefixes) { | |
return prefixes.some( | |
prefix => location.href.indexOf(`${location.origin}/${prefix}`) !== -1 | |
); | |
} | |
export function nav() { | |
return true; | |
} | |
import { registerApplication, start } from "single-spa"; | |
import * as isActive from "./activity-functions"; | |
registerApplication( | |
"@admcos/nav-app", | |
() => System.import("@admcos/nav-app"), | |
isActive.nav, | |
{ domElement: document.getElementById("nav-container") } | |
); |
<% if (isLocal) { %> | |
<script type="systemjs-importmap"> | |
{ | |
"imports": { | |
"@admcos/root-config": "http://localhost:9000/admcos-root-config.js", | |
"@admcos/nav-app": "http://localhost:9001/admcos-nav-app.js", | |
"@admcos/app1": "http://localhost:9002/admcos-app1.js", | |
"@admcos/app2": "http://localhost:9003/admcos-app2.js" | |
} | |
} |
<div id="nav-container"></div> | |
<main> | |
<div id="app1-container"></div> | |
<div id="app2-container"></div> | |
</main> |
import React from "react"; | |
import { BrowserRouter, Link } from "react-router-dom"; | |
import "./root.component.css"; | |
export default function Root() { | |
return ( | |
<BrowserRouter> | |
<nav className="nav"> | |
<Link to="/app1" className="link"> | |
Micro frontend app 1 |
const { app, Tray, Menu } = require("electron"); | |
const path = require("path"); | |
const iconPath = path.join(__dirname, "icon.png"); | |
let trayApp = null; | |
function getContextMenu() { | |
let contextMenu = Menu.buildFromTemplate([ | |
{ | |
label: "Exit", | |
click: function () { |
const { app, Tray, Menu } = require("electron"); | |
const path = require("path"); | |
const iconPath = path.join(__dirname, "icon.png"); | |
var opsys = process.platform; | |
let trayApp = null; | |
var status = "enabled"; //Application is in enabled mode at start up | |
var intervalID; | |
var interval = 0; | |
const WindowsBalloon = require("node-notifier").WindowsBalloon; | |
const notifier = require("node-notifier"); |
const { app, Tray, Menu } = require("electron"); | |
const WindowsBalloon = require("node-notifier").WindowsBalloon; | |
const notifier = require("node-notifier"); | |
const path = require("path"); | |
const iconPath = path.join(__dirname, "icon.png"); | |
let trayApp = null; | |
let opsys = process.platform; | |
let status = "enabled"; | |
let setInterval; | |
let notificationMilisecondInterval = 0; |