Skip to content

Commit

Permalink
device logos
Browse files Browse the repository at this point in the history
  • Loading branch information
arily committed Jul 16, 2023
1 parent 4253491 commit 9ba8def
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/def/device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export enum OS {
macOS,
iOS,
iPadOS,
ChromiumOS,
ChromeOS,
}

export enum Client {
Expand Down
7 changes: 6 additions & 1 deletion src/pages/me/settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,14 @@ async function kickSession(session: string) {
<div class="flex items-center space-x-3">
<div class="avatar">
<div class="mask mask-squircle">
<!-- <img src="/[email protected]" alt="Windows"> -->
<icon v-if="session.OS === OS.Unknown" name="carbon:unknown" class="w-9 h-9" />
<icon v-if="session.OS === OS.Windows" name="basil:windows-solid" class="w-9 h-9" />
<icon v-if="session.OS === OS.macOS" name="ic:baseline-apple" class="w-9 h-9" />
<icon v-if="session.OS === OS.iPadOS" name="ic:baseline-apple" class="w-9 h-9" />
<icon v-if="session.OS === OS.iOS" name="wpf:iphone" class="w-9 h-9" />
<icon v-if="session.OS === OS.Android" name="mingcute:android-2-fill" class="w-9 h-9" />
<icon v-if="session.OS === OS.ChromeOS" name="ri:chrome-fill" class="w-9 h-9" />
<icon v-if="session.OS === OS.Linux" name="fluent-mdl2:linux-logo-32" class="w-9 h-9" />
</div>
</div>
<div>
Expand Down
2 changes: 1 addition & 1 deletion src/server/trpc/middleware/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function createSession(e: H3Event) {
break
}
case 'Chromium OS': {
r.OS = OS.ChromiumOS
r.OS = OS.ChromeOS
break
}
case 'Linux':
Expand Down

0 comments on commit 9ba8def

Please sign in to comment.