This file contains 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 { removeFile, readTextFile, BaseDirectory, writeTextFile } from '@tauri-apps/api/fs' | |
import { getClient, ResponseType } from '@tauri-apps/api/http' | |
import { appConfigDir, join } from '@tauri-apps/api/path' | |
import { invoke, convertFileSrc } from '@tauri-apps/api/tauri' | |
import { createContext, useContext, createMemo, Accessor, type ParentComponent } from 'solid-js' | |
import { createStore, produce } from 'solid-js/store' | |
import { debug, error, trace, warn } from 'tauri-plugin-log-api' | |
import { download, upload } from 'tauri-plugin-upload-api' | |
import { useAppDeviceContext } from './device' | |
import { useAppNotificationsContext } from './notifications' |
This file contains 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
#pragma once | |
#include <algorithm> | |
#include <fstream> | |
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <utilities/helpers.hpp> | |
class Logger { | |
public: |
This file contains 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
Expected: | |
TableInfo{ | |
name='airports', | |
columns={ | |
longitudeDeg=Column{name='longitudeDeg', type='REAL', affinity='4', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}, | |
elevationFt=Column{name='elevationFt', type='REAL', affinity='4', notNull=false, primaryKeyPosition=0, defaultValue='undefined'}, | |
continent=Column{name='continent', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}, | |
isoRegion=Column{name='isoRegion', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}, | |
gpsCode=Column{name='gpsCode', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='undefined'}, | |
keywords=Column{name='keywords', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='undefined'}, |
This file contains 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
@layer base { | |
/* This style is REQUIRED due to how kobalte handles focus-visible state */ | |
* { | |
@apply outline-none [&[data-focus-visible]]:outline-white; | |
} | |
:root { | |
--background: 0 0% 100%; | |
--foreground: 240 10% 3.9%; |
This file contains 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 { createDraggable, transformStyle } from '@thisbeyond/solid-dnd' | |
import { JSXElement, createSignal, type ParentComponent, onMount } from 'solid-js' | |
import { TabsTrigger } from '@components/ui/tabs' | |
import { UITab, useAppContextUI } from '@context/ui' | |
/* Handle Dockable using solid-dnd */ | |
const activeTabClasses = [ | |
'tab-active', | |
'drop-shadow-2xl', |
This file contains 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 { throttle } from '@solid-primitives/scheduled' | |
import { | |
splitProps, | |
createSignal, | |
createEffect, | |
onCleanup, | |
JSXElement, | |
type Component, | |
type ComponentProps, | |
children, |
This file contains 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 { | |
useDragDropContext, | |
DragDropProvider, | |
DragDropSensors, | |
DragOverlay, | |
SortableProvider, | |
createSortable, | |
closestCenter, | |
} from '@thisbeyond/solid-dnd' | |
import { For, JSXElement, createSignal } from 'solid-js' |
This file contains 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
#include "StateManager.hpp" | |
StateManager<State_e> StateManager_Device; | |
StateManager<ButtonState_e> StateManager_Buttons; | |
StateManager<MotorState_e> StateManager_Motor; |
This file contains 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
#include <ESP8266WiFi.h> // Simple Libary for Wifi AP to use | |
const char WiFiAPPSK[] = "xxx"; // Set Wifi Password | |
const char AP_NameChar[] = "xxx"; // Set Wifi Name | |
#include <Hash.h> // Used for webserver | |
#include <ESPAsyncTCP.h> // Used for webserver | |
#include <ESPAsyncWebServer.h> // Used for webserver | |
#include <FS.h> // Used for webserver | |
AsyncWebServer server(80); // Create AsyncWebServer object on port 80 |