mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-09-04 09:13:24 +00:00
ADD - build in-game admin command center
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import type { BuiltinPhoneAppId } from '@/types/apps'
|
||||
|
||||
type PreviewableBuiltinAppId = Exclude<BuiltinPhoneAppId, 'app-store'>
|
||||
type PreviewableBuiltinAppId = Exclude<
|
||||
BuiltinPhoneAppId,
|
||||
'admin' | 'app-store'
|
||||
>
|
||||
|
||||
const previewModules = import.meta.glob<string>(
|
||||
'../assets/img/app-previews/*.jpg',
|
||||
|
||||
@@ -17,7 +17,8 @@ function escapeRegExp(value: string): string {
|
||||
describe('App Store preview catalog', () => {
|
||||
it('contains a real captured screenshot for every built-in store app', () => {
|
||||
const storeAppIds = PHONE_APPS.filter(
|
||||
(app) => app.kind !== 'external' && app.id !== 'app-store',
|
||||
(app) =>
|
||||
app.kind !== 'external' && app.id !== 'app-store' && !app.adminOnly,
|
||||
).map((app) => app.id)
|
||||
|
||||
expect([...APP_STORE_PREVIEW_IMAGE_IDS].sort()).toEqual(storeAppIds.sort())
|
||||
@@ -25,7 +26,8 @@ describe('App Store preview catalog', () => {
|
||||
|
||||
it('provides specialized preview data for every built-in store app', () => {
|
||||
const storeAppIds = PHONE_APPS.filter(
|
||||
(app) => app.kind !== 'external' && app.id !== 'app-store',
|
||||
(app) =>
|
||||
app.kind !== 'external' && app.id !== 'app-store' && !app.adminOnly,
|
||||
).map((app) => app.id)
|
||||
|
||||
expect([...PREVIEWABLE_BUILTIN_APP_IDS].sort()).toEqual(
|
||||
|
||||
@@ -5,7 +5,7 @@ export type AppStorePreviewVisual = {
|
||||
surface: string
|
||||
}
|
||||
|
||||
type PreviewableBuiltinAppId = Exclude<BuiltinPhoneAppId, 'app-store'>
|
||||
type PreviewableBuiltinAppId = Exclude<BuiltinPhoneAppId, 'admin' | 'app-store'>
|
||||
|
||||
const APP_STORE_PREVIEW_STYLES = {
|
||||
citywarn: { accent: '#ff4f5e', surface: '#250e17' },
|
||||
|
||||
@@ -98,6 +98,7 @@ const DEFAULT_APP_NOTIFICATIONS: Record<
|
||||
LaunchablePhoneAppId,
|
||||
AppNotificationPreferences
|
||||
> = {
|
||||
admin: { enabled: true, sounds: true },
|
||||
phone: { enabled: true, sounds: true },
|
||||
messages: { enabled: true, sounds: true },
|
||||
darkchat: { enabled: true, sounds: true },
|
||||
|
||||
Reference in New Issue
Block a user