Skip to content

Commit

Permalink
show last update for content in web modkit
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Sep 24, 2024
1 parent e63afe5 commit 9a11471
Showing 1 changed file with 35 additions and 25 deletions.
60 changes: 35 additions & 25 deletions src/app/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,31 @@
Actions
</summary>
<ul class="z-30 top-6 right-1.5 w-72 bg-base-100 rounded-t-none p-2">

@if(electronService.isInElectron()) {
<li class="menu-title"><a>Mod Metadata</a></li>
<li><a (click)="closeMenu()" [swal]="changeModName"
[class.btn-disabled]="!electronService.isInElectron()">Change Mod Name</a></li>
<li><a (click)="closeMenu()" [swal]="changeModAuthor"
[class.btn-disabled]="!electronService.isInElectron()">Change Mod Author</a></li>
<li><a (click)="closeMenu(); toggleDependencies()"
[class.btn-disabled]="!electronService.isInElectron()">Manage Dependencies</a></li>
<li><a (click)="closeMenu()" [swal]="changeModName">Change Mod Name</a></li>
<li><a (click)="closeMenu()" [swal]="changeModAuthor">Change Mod Author</a></li>
<li><a (click)="closeMenu(); toggleDependencies()">Manage Dependencies</a></li>

<li class="menu-title"><a>Mod I/O</a></li>
<li><a (click)="closeMenu(); electronService.send('LOAD_MOD')"
[class.btn-disabled]="!electronService.isInElectron()">Load Mod</a></li>
<li><a (click)="closeMenu(); electronService.send('ADDITIVE_LOAD_MOD')"
[class.btn-disabled]="!electronService.isInElectron()">Import Mod</a></li>
<li><a (click)="closeMenu(); attemptExport();" [class.btn-disabled]="!electronService.isInElectron()">Export
Mod</a></li>
<li><a (click)="closeMenu(); electronService.send('LOAD_MOD')">Load Mod</a></li>
<li><a (click)="closeMenu(); electronService.send('ADDITIVE_LOAD_MOD')">Import Mod</a></li>
<li><a (click)="closeMenu(); attemptExport();">Export Mod</a></li>

<li class="menu-title"><a>Mod Testing</a></li>
<li><a (click)="closeMenu(); electronService.send('DOWNLOAD_MONGO')"
[class.btn-disabled]="!electronService.isInElectron()">Install MongoDB...</a></li>
<li><a (click)="closeMenu(); electronService.send('DOWNLOAD_RAIR')"
[class.btn-disabled]="!electronService.isInElectron()">Install Rair Server...</a></li>
<li><a (click)="closeMenu(); toggleTester()" [class.btn-disabled]="!electronService.isInElectron()">Test
Mod!</a></li>

<li class="menu-title"><a>ModKit Utilities (v.{{ electronService.version() }})</a></li>
<li><a (click)="closeMenu(); electronService.send('DOWNLOAD_MONGO')">Install MongoDB...</a></li>
<li><a (click)="closeMenu(); electronService.send('DOWNLOAD_RAIR')">Install Rair Server...</a></li>
<li><a (click)="closeMenu(); toggleTester()">Test Mod!</a></li>
}

<li class="menu-title">
<a>
ModKit Utilities
<span class="italic font-thin">(v.{{ electronService.version() }})</span>
</a>
</li>

<li><a (click)="closeMenu()" target="_blank" href="https://rair.land/docs/modkit/">Help</a></li>
<li><a (click)="closeMenu(); toggleModValidation()">Validate Mod {{ hasErrors() ? '❌' : '' }}</a></li>
<li><a (click)="closeMenu(); toggleAnalyzing()">Analyze...</a></li>
Expand All @@ -57,14 +57,24 @@
}}</a>
</li>

<li class="menu-title"><a>Updates</a></li>
<li><a (click)="closeMenu(); modService.updateAutogenerated()"
[class.btn-disabled]="!electronService.isInElectron()">Update Autogenerated Content</a></li>
<li class="menu-title">
<a>
Updates

@if(!electronService.isInElectron()) {
<span class="italic font-thin">(Last Updated: {{ modService.mod().meta.savedAt | date:'shortDate'
}})</span>
}
</a>
</li>
<li><a (click)="closeMenu(); updateResources()">Update Resources</a></li>

@if(electronService.isInElectron()) {
<li><a (click)="closeMenu(); modService.updateAutogenerated()">Update Autogenerated Content</a></li>

<li class="menu-title"><a>Danger Zone</a></li>
<li><a (click)="closeMenu()" [swal]="resetMod" [class.btn-disabled]="!electronService.isInElectron()">Reset
Mod</a></li>
<li><a (click)="closeMenu()" [swal]="resetMod">Reset Mod</a></li>
}
</ul>
</details>
</li>
Expand Down

0 comments on commit 9a11471

Please sign in to comment.