-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* technical debt * added help notice for time trigger * added help notice for system event trigger * updated entity storage table * add custom fields to entity storage table * sort filter list
- Loading branch information
Showing
25 changed files
with
970 additions
and
190 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import CronFormHelper from './src/CronFormHelper.vue' | ||
|
||
export {CronFormHelper} |
100 changes: 100 additions & 0 deletions
100
static_source/admin/src/components/CronFormHelper/src/CronFormHelper.vue
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
<div class="tip custom-block w-[100%]"> | ||
<div> | ||
<div>The cron expression is made of six fields. Each field can have the following | ||
values. | ||
</div> | ||
<table class="dYaBhr"> | ||
<thead> | ||
<tr> | ||
<th>*</th> | ||
<th>*</th> | ||
<th>*</th> | ||
<th>*</th> | ||
<th>*</th> | ||
<th>*</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>second (0-59)</td> | ||
<td>minute (0-59)</td> | ||
<td>hour (0 - 23)</td> | ||
<td>day of the month (1 - 31)</td> | ||
<td>month (1 - 12)</td> | ||
<td>day of the week (0 - 6)</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<div>Here are some examples for you.</div> | ||
<table class="dYaBhr"> | ||
<thead> | ||
<tr> | ||
<th>Cron expression</th> | ||
<th>Schedule</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>* * * * * *</td> | ||
<td>Every second</td> | ||
</tr> | ||
<tr> | ||
<td>0 * * * * *</td> | ||
<td>Every minute</td> | ||
</tr> | ||
<tr> | ||
<td>0 0 * * * *</td> | ||
<td>Every hour</td> | ||
</tr> | ||
<tr> | ||
<td>0 0 0 * * *</td> | ||
<td>Every day at 12:00 AM</td> | ||
</tr> | ||
<tr> | ||
<td>0 0 0 * * FRI</td> | ||
<td>At 12:00 AM, only on Friday</td> | ||
</tr> | ||
<tr> | ||
<td>0 0 0 1 * *</td> | ||
<td>At 12:00 AM, on day 1 of the month</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style lang="less" scoped> | ||
.light { | ||
.custom-block.tip { | ||
padding: 8px 16px; | ||
background-color: #409eff1a; | ||
border-radius: 4px; | ||
border-left: 5px solid var(--el-color-primary); | ||
} | ||
} | ||
|
||
.dark { | ||
.custom-block.tip { | ||
padding: 8px 16px; | ||
background-color: #409eff1a; | ||
border-radius: 4px; | ||
border-left: 5px solid var(--el-color-primary); | ||
} | ||
} | ||
|
||
.dYaBhr thead th { | ||
border: 1px solid ; | ||
padding: 0 10px; | ||
} | ||
|
||
.dYaBhr tbody td { | ||
border: 1px solid ; | ||
padding: 0 10px; | ||
} | ||
|
||
</style> |
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
3 changes: 3 additions & 0 deletions
3
static_source/admin/src/components/SystemEventsHelper/index.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import SystemEventsHelper from './src/SystemEventsHelper.vue' | ||
|
||
export {SystemEventsHelper} |
122 changes: 122 additions & 0 deletions
122
static_source/admin/src/components/SystemEventsHelper/src/SystemEventsHelper.vue
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
<script setup lang="ts"> | ||
</script> | ||
|
||
<template> | ||
<div class="tip custom-block w-[100%]"> | ||
<p><strong>System events list</strong></p> | ||
|
||
<div><strong>tasks</strong></div> | ||
event_task_completed | ||
event_created_task_model | ||
event_removed_task_model | ||
event_updated_task_model | ||
event_task_loaded | ||
event_task_unloaded | ||
event_trigger_completed | ||
event_call_trigger | ||
event_created_trigger_model | ||
event_removed_trigger_model | ||
event_updated_trigger_model | ||
event_trigger_loaded | ||
event_trigger_unloaded | ||
event_action_completed | ||
event_call_task_action | ||
event_call_action | ||
event_added_action_model | ||
event_removed_action_model | ||
event_updated_action_model | ||
event_action_loaded | ||
event_action_unloaded | ||
event_added_condition_model | ||
event_removed_condition_model | ||
event_updated_condition_model | ||
|
||
<div><strong>backup</strong></div> | ||
event_created_backup | ||
event_removed_backup | ||
event_uploaded_backup | ||
event_started_restore | ||
|
||
<div><strong>entity</strong></div> | ||
event_state_changed | ||
event_last_state_changed | ||
event_get_last_state | ||
event_call_entity_action | ||
event_call_scene | ||
event_added_actor | ||
event_created_entity_model | ||
event_updated_entity_model | ||
event_updated_metric | ||
event_entity_unloaded | ||
event_entity_loaded | ||
event_entity_set_state | ||
|
||
<div><strong>mqtt</strong></div> | ||
event_mqtt_new_client | ||
|
||
<div><strong>plugins</strong></div> | ||
event_plugin_loaded | ||
event_plugin_unloaded | ||
|
||
<div><strong>scripts</strong></div> | ||
event_created_script_model | ||
event_updated_script_model | ||
event_removed_script_model | ||
|
||
<div><strong>services</strong></div> | ||
event_service_started | ||
event_service_stopped | ||
event_service_restarted | ||
|
||
<div><strong>users</strong></div> | ||
event_update_user_location | ||
event_direct_message | ||
event_user_signed_in | ||
|
||
<div><strong>variables</strong></div> | ||
event_updated_variable_model | ||
event_removed_variable_model | ||
|
||
<div><strong>server version</strong></div> | ||
event_server_version | ||
event_get_server_version | ||
|
||
<div><strong>zigbee2mqtt</strong></div> | ||
event_created_zigbee2mqtt_model | ||
event_updated_zigbee2mqtt_model | ||
event_removed_zigbee2mqtt_model | ||
|
||
|
||
</div> | ||
</template> | ||
|
||
<style lang="less" scoped> | ||
.light { | ||
.custom-block.tip { | ||
padding: 8px 16px; | ||
background-color: #409eff1a; | ||
border-radius: 4px; | ||
border-left: 5px solid var(--el-color-primary); | ||
} | ||
} | ||
|
||
.dark { | ||
.custom-block.tip { | ||
padding: 8px 16px; | ||
background-color: #409eff1a; | ||
border-radius: 4px; | ||
border-left: 5px solid var(--el-color-primary); | ||
} | ||
} | ||
|
||
.dYaBhr thead th { | ||
border: 1px solid ; | ||
padding: 0 10px; | ||
} | ||
|
||
.dYaBhr tbody td { | ||
border: 1px solid ; | ||
padding: 0 10px; | ||
} | ||
|
||
</style> |
Oops, something went wrong.