mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-12 21:02:13 +08:00
Revert "Old (Original) Local ArrowJS + Rollback"
This reverts commit 08f35492b6.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core";
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core";
|
||||
|
||||
function DiskUsage(disk) {
|
||||
const used = parseFloat(disk.usedPercentage) || 0;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html } from "@arrow-js/core";
|
||||
import { html } from "https://esm.sh/@arrow-js/core";
|
||||
|
||||
export function Modal({
|
||||
title,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core";
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core";
|
||||
import {
|
||||
addRouteToMap,
|
||||
formatMetersToHuman,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core"
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core"
|
||||
import { Modal } from "/assets/components/modal.js";
|
||||
|
||||
export function NavKeys() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core"
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core"
|
||||
import { isGalaxyTunnel } from "/assets/js/utils.js"
|
||||
import { getOrdinalSuffix } from "/assets/components/navigation/navigation_utilities.js"
|
||||
import { Modal } from "/assets/components/modal.js";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core"
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core"
|
||||
import { isGalaxyTunnel } from "/assets/js/utils.js"
|
||||
import { Modal } from "/assets/components/modal.js";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core"
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core"
|
||||
import { createBrowserHistory, createRouter } from "https://esm.sh/@remix-run/router@1.3.1"
|
||||
import { hideSidebar } from "/assets/js/utils.js"
|
||||
import { DeviceSettings } from "/assets/components/tools/device_settings.js"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html } from "@arrow-js/core"
|
||||
import { html } from "https://esm.sh/@arrow-js/core"
|
||||
import { upperFirst } from "/assets/js/utils.js"
|
||||
import { Navigate } from "/assets/components/router.js"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core";
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core";
|
||||
import { Link } from "/assets/components/router.js";
|
||||
import { upperFirst, hideSidebar } from "/assets/js/utils.js";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core"
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core"
|
||||
import { Modal } from "/assets/components/modal.js";
|
||||
|
||||
export function TailscaleControl() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core"
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core"
|
||||
|
||||
const endpointOptionsCache = {}
|
||||
const endpointOptionsInflight = {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html } from "@arrow-js/core"
|
||||
import { html } from "https://esm.sh/@arrow-js/core"
|
||||
|
||||
export function DoorControl () {
|
||||
async function lockDoors () {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core";
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core";
|
||||
import { formatSecondsToHuman, parseErrorLogToDate } from "/assets/js/utils.js";
|
||||
import { Modal } from "/assets/components/modal.js";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core"
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core"
|
||||
import { isGalaxyTunnel } from "/assets/js/utils.js"
|
||||
import { Modal } from "/assets/components/modal.js"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core"
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core"
|
||||
|
||||
const state = reactive({
|
||||
loading: true,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core";
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core";
|
||||
|
||||
const state = reactive({
|
||||
loading: true,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core"
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core"
|
||||
|
||||
const state = reactive({
|
||||
loading: true,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html } from "@arrow-js/core"
|
||||
import { html } from "https://esm.sh/@arrow-js/core"
|
||||
|
||||
export function SpeedLimits() {
|
||||
function handleDownload() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core"
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core"
|
||||
|
||||
const state = reactive({
|
||||
loading: true,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core";
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core";
|
||||
import { Modal } from "/assets/components/modal.js";
|
||||
|
||||
const defaultColors = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core"
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core"
|
||||
import { formatSecondsToHuman, isGalaxyTunnel } from "/assets/js/utils.js"
|
||||
import { Modal } from "/assets/components/modal.js";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core"
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core"
|
||||
import { Modal } from "/assets/components/modal.js"
|
||||
import { TailscaleControl } from "/assets/components/tailscale/tailscale.js"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core"
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core"
|
||||
|
||||
const state = reactive({
|
||||
loading: true,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core"
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core"
|
||||
import { Modal } from "/assets/components/modal.js"
|
||||
|
||||
const state = reactive({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core"
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core"
|
||||
|
||||
const state = reactive({
|
||||
loading: true,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { html, reactive } from "@arrow-js/core"
|
||||
import { html, reactive } from "https://esm.sh/@arrow-js/core"
|
||||
import { DoorControl } from "/assets/components/tools/doors.js"
|
||||
import { TSKManager } from "/assets/components/tools/tsk_manager.js"
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -12,14 +12,6 @@
|
||||
|
||||
<meta name="theme-color" content="#8b6cc5" />
|
||||
|
||||
<script type="importmap">
|
||||
{
|
||||
"imports": {
|
||||
"@arrow-js/core": "/assets/js/lib/arrow-js-core.min.mjs"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user