logs now sort new to old

This commit is contained in:
Kenny 2022-03-02 11:02:51 -05:00
parent 1704abdfcf
commit 2e26d5240a
2 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@
<v-card-text v-text="item.data" />
</v-card>
</v-list-item>
<br><br><br> <!-- Temp fix for last log entries being cut off -->
</div>
</template>
@ -20,7 +21,7 @@
margin-top: 1em;
}
.date {
margin-left: 0.5em;
margin: 0.5em;
font-size: 0.75em;
transform: translateY(5%);
}

View File

@ -3,7 +3,7 @@ import { Http } from '@capacitor-community/http';
//--- Logger Function ---//
function logger(func, data) {
module.logs.push({
module.logs.unshift({
name: func,
time: Date.now(),
data: data