Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ba432c387f | |||
| 4041e31c39 |
@ -6161,7 +6161,7 @@
|
|||||||
"_priority": 1073741824,
|
"_priority": 1073741824,
|
||||||
"_fov": 45,
|
"_fov": 45,
|
||||||
"_fovAxis": 0,
|
"_fovAxis": 0,
|
||||||
"_orthoHeight": 381.2971342383107,
|
"_orthoHeight": 360,
|
||||||
"_near": 1,
|
"_near": 1,
|
||||||
"_far": 2000,
|
"_far": 2000,
|
||||||
"_color": {
|
"_color": {
|
||||||
@ -11868,7 +11868,7 @@
|
|||||||
"_string": "button",
|
"_string": "button",
|
||||||
"_horizontalAlign": 1,
|
"_horizontalAlign": 1,
|
||||||
"_verticalAlign": 1,
|
"_verticalAlign": 1,
|
||||||
"_actualFontSize": 36.2578125,
|
"_actualFontSize": 20,
|
||||||
"_fontSize": 20,
|
"_fontSize": 20,
|
||||||
"_fontFamily": "Arial",
|
"_fontFamily": "Arial",
|
||||||
"_lineHeight": 40,
|
"_lineHeight": 40,
|
||||||
@ -12442,7 +12442,7 @@
|
|||||||
"__prefab": null,
|
"__prefab": null,
|
||||||
"_contentSize": {
|
"_contentSize": {
|
||||||
"__type__": "cc.Size",
|
"__type__": "cc.Size",
|
||||||
"width": 131.29982762335703,
|
"width": 131.328125,
|
||||||
"height": 25.2
|
"height": 25.2
|
||||||
},
|
},
|
||||||
"_anchorPoint": {
|
"_anchorPoint": {
|
||||||
@ -12475,7 +12475,7 @@
|
|||||||
"_string": "ScrollView content",
|
"_string": "ScrollView content",
|
||||||
"_horizontalAlign": 1,
|
"_horizontalAlign": 1,
|
||||||
"_verticalAlign": 1,
|
"_verticalAlign": 1,
|
||||||
"_actualFontSize": 29.00625,
|
"_actualFontSize": 16,
|
||||||
"_fontSize": 16,
|
"_fontSize": 16,
|
||||||
"_fontFamily": "Arial",
|
"_fontFamily": "Arial",
|
||||||
"_lineHeight": 20,
|
"_lineHeight": 20,
|
||||||
@ -14257,7 +14257,7 @@
|
|||||||
},
|
},
|
||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": null,
|
"__prefab": null,
|
||||||
"apiUrl": "http://localhost:3030/api/v2/sensors",
|
"apiUrl": "http://192.168.0.219:3030/api/v2/sensors",
|
||||||
"_id": "fd9cjGJCJCmbVairIJtwxV"
|
"_id": "fd9cjGJCJCmbVairIJtwxV"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -8,7 +8,7 @@ export class EquipmentManager extends Component {
|
|||||||
public static instance: EquipmentManager;
|
public static instance: EquipmentManager;
|
||||||
|
|
||||||
@property
|
@property
|
||||||
public apiUrl: string = 'http://localhost:3030/api/v2/sensors';
|
public apiUrl: string = 'http://192.168.0.219:3030/api/v2/sensors';
|
||||||
|
|
||||||
private _dataList: apiSensors[] = [];
|
private _dataList: apiSensors[] = [];
|
||||||
public totalCount: number = 0;
|
public totalCount: number = 0;
|
||||||
|
|||||||
@ -30,7 +30,7 @@ export class ErrorsStore {
|
|||||||
// Асинхронный запрос ошибок с API
|
// Асинхронный запрос ошибок с API
|
||||||
async fetchApiErrors(): Promise<void> {
|
async fetchApiErrors(): Promise<void> {
|
||||||
try {
|
try {
|
||||||
const response = await fetch("http://localhost:3030/api/v2/errors");
|
const response = await fetch("http://192.168.0.219:3030/api/v2/errors");
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
const errors = await response.json() as ApiErrorsResponse;
|
const errors = await response.json() as ApiErrorsResponse;
|
||||||
this.apiErrors = errors;
|
this.apiErrors = errors;
|
||||||
|
|||||||
@ -30,7 +30,7 @@ export class SensorDetailStore extends Component {
|
|||||||
this.currentSensorName = sensorName;
|
this.currentSensorName = sensorName;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch("http://localhost:3030/api/v2/sensor-details", {
|
const response = await fetch("http://192.168.0.219:3030/api/v2/sensor-details", {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({ sensorName: sensorName })
|
body: JSON.stringify({ sensorName: sensorName })
|
||||||
|
|||||||
@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"ver": "1.2.0",
|
|
||||||
"importer": "directory",
|
|
||||||
"imported": true,
|
|
||||||
"uuid": "fd645b06-0a2b-44e9-8721-9e8590e81e15",
|
|
||||||
"files": [],
|
|
||||||
"subMetas": {},
|
|
||||||
"userData": {}
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user