mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-09-04 17:23:25 +00:00
Merge branch 'dev' into darkchat
# Conflicts: # sky_phone/source/html/index.html
This commit is contained in:
@@ -92,6 +92,22 @@ describe('app registry', () => {
|
||||
expect(isPhoneAppId('camera')).toBe(true)
|
||||
expect(isPhoneAppId('photos')).toBe(true)
|
||||
expect(isPhoneAppId('clock')).toBe(true)
|
||||
expect(
|
||||
PHONE_APPS.filter((app) => app.category === 'games').map((app) => app.id),
|
||||
).toEqual([
|
||||
'snake',
|
||||
'memory',
|
||||
'number-merge',
|
||||
'minesweeper',
|
||||
'tower-stack',
|
||||
'sky-flappy',
|
||||
'neon-drop',
|
||||
])
|
||||
expect(
|
||||
PHONE_APPS.filter((app) => app.category === 'social').map(
|
||||
(app) => app.id,
|
||||
),
|
||||
).toEqual(['local-pages', 'phone', 'mail'])
|
||||
expect(
|
||||
PHONE_APPS.filter((app) => app.dockOrder !== null)
|
||||
.sort((a, b) => (a.dockOrder ?? 0) - (b.dockOrder ?? 0))
|
||||
|
||||
@@ -56,6 +56,7 @@ import type {
|
||||
|
||||
export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
{
|
||||
category: 'productivity',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/CalendarApp.vue')),
|
||||
),
|
||||
@@ -69,6 +70,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/calendar',
|
||||
},
|
||||
{
|
||||
category: 'social',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/LocalPagesApp.vue')),
|
||||
),
|
||||
@@ -82,6 +84,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/local-pages',
|
||||
},
|
||||
{
|
||||
category: 'social',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/PhoneApp.vue')),
|
||||
),
|
||||
@@ -95,6 +98,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/phone',
|
||||
},
|
||||
{
|
||||
category: 'utilities',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/MessagesApp.vue')),
|
||||
),
|
||||
@@ -134,6 +138,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/map',
|
||||
},
|
||||
{
|
||||
category: 'social',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/MailApp.vue')),
|
||||
),
|
||||
@@ -147,6 +152,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/mail',
|
||||
},
|
||||
{
|
||||
category: 'productivity',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/NotesApp.vue')),
|
||||
),
|
||||
@@ -160,6 +166,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/notes',
|
||||
},
|
||||
{
|
||||
category: 'productivity',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/CalculatorApp.vue')),
|
||||
),
|
||||
@@ -173,6 +180,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/calculator',
|
||||
},
|
||||
{
|
||||
category: 'utilities',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/CameraApp.vue')),
|
||||
),
|
||||
@@ -186,6 +194,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/camera',
|
||||
},
|
||||
{
|
||||
category: 'productivity',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/ClockApp.vue')),
|
||||
),
|
||||
@@ -199,6 +208,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/clock',
|
||||
},
|
||||
{
|
||||
category: 'utilities',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/WeatherApp.vue')),
|
||||
),
|
||||
@@ -212,6 +222,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/weather',
|
||||
},
|
||||
{
|
||||
category: 'utilities',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/GalleryApp.vue')),
|
||||
),
|
||||
@@ -225,6 +236,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/photos',
|
||||
},
|
||||
{
|
||||
category: 'utilities',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/AppStoreApp.vue')),
|
||||
),
|
||||
@@ -238,6 +250,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/app-store',
|
||||
},
|
||||
{
|
||||
category: 'utilities',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/SettingsApp.vue')),
|
||||
),
|
||||
@@ -251,6 +264,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/settings',
|
||||
},
|
||||
{
|
||||
category: 'games',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/SnakeApp.vue')),
|
||||
),
|
||||
@@ -264,6 +278,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/snake',
|
||||
},
|
||||
{
|
||||
category: 'games',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/MemoryApp.vue')),
|
||||
),
|
||||
@@ -277,6 +292,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/memory',
|
||||
},
|
||||
{
|
||||
category: 'games',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/NumberMergeApp.vue')),
|
||||
),
|
||||
@@ -290,6 +306,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/number-merge',
|
||||
},
|
||||
{
|
||||
category: 'games',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/MinesweeperApp.vue')),
|
||||
),
|
||||
@@ -303,6 +320,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/minesweeper',
|
||||
},
|
||||
{
|
||||
category: 'games',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/TowerStackApp.vue')),
|
||||
),
|
||||
@@ -316,6 +334,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/tower-stack',
|
||||
},
|
||||
{
|
||||
category: 'games',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/SkyFlappyApp.vue')),
|
||||
),
|
||||
@@ -329,6 +348,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/sky-flappy',
|
||||
},
|
||||
{
|
||||
category: 'shopping',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/CityMarktApp.vue')),
|
||||
),
|
||||
@@ -342,6 +362,7 @@ export const PHONE_APPS: PhoneAppDefinition[] = [
|
||||
route: '/apps/citymarkt',
|
||||
},
|
||||
{
|
||||
category: 'games',
|
||||
component: markRaw(
|
||||
defineAsyncComponent(() => import('@/views/apps/NeonDropApp.vue')),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user