@attraccess/plugin-shelly 0.1.0-nightly.925.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +949 -0
- package/dist/migrations.js +57 -0
- package/frontend/__federation_expose_Plugin-Dd1Vs4iR.js +1627 -0
- package/frontend/__federation_fn_import-DAGm_xmC.js +2 -0
- package/frontend/_virtual___federation_fn_import-BXODRNto.js +261 -0
- package/frontend/index.html +13 -0
- package/frontend/jsx-runtime-B9Qmn8k7.js +42 -0
- package/frontend/preload-helper-DxWiKyOd.js +68 -0
- package/frontend/react-D5kF5LxZ.js +383 -0
- package/frontend/remoteEntry.js +74 -0
- package/frontend/rolldown-runtime-EAsCxrDo.js +14 -0
- package/frontend/style.css +442 -0
- package/package.json +44 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
20
|
+
|
|
21
|
+
// backend/migrations.ts
|
|
22
|
+
var migrations_exports = {};
|
|
23
|
+
__export(migrations_exports, {
|
|
24
|
+
CreateShellyDevices1749470400000: () => CreateShellyDevices1749470400000
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(migrations_exports);
|
|
27
|
+
|
|
28
|
+
// backend/migrations/1749470400000-create-shelly-devices.ts
|
|
29
|
+
var CreateShellyDevices1749470400000 = class {
|
|
30
|
+
constructor() {
|
|
31
|
+
__publicField(this, "name", "CreateShellyDevices1749470400000");
|
|
32
|
+
}
|
|
33
|
+
async up(queryRunner) {
|
|
34
|
+
await queryRunner.query(
|
|
35
|
+
`CREATE TABLE IF NOT EXISTS "plugin_shelly_devices" (
|
|
36
|
+
"id" integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
37
|
+
"name" varchar NOT NULL,
|
|
38
|
+
"ip_address" varchar NOT NULL,
|
|
39
|
+
"generation" integer,
|
|
40
|
+
"model" varchar,
|
|
41
|
+
"auth_state" varchar NOT NULL DEFAULT ('unknown'),
|
|
42
|
+
"last_probe_at" varchar,
|
|
43
|
+
"last_probe_error" varchar,
|
|
44
|
+
"created_at" varchar NOT NULL,
|
|
45
|
+
"updated_at" varchar NOT NULL,
|
|
46
|
+
CONSTRAINT "UQ_plugin_shelly_devices_ip_address" UNIQUE ("ip_address")
|
|
47
|
+
)`
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
async down(queryRunner) {
|
|
51
|
+
await queryRunner.query(`DROP TABLE "plugin_shelly_devices"`);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
+
0 && (module.exports = {
|
|
56
|
+
CreateShellyDevices1749470400000
|
|
57
|
+
});
|