mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 05:06:41 +02:00
style: auto-format codebase with Prettier
Applied formatting to 1487+ files using pnpm format:write - TypeScript/JavaScript files - Svelte components - Astro pages - JSON configs - Markdown docs 13 files still need manual review (Astro JSX comments)
This commit is contained in:
parent
0241f5554c
commit
d36b321d9d
3952 changed files with 661498 additions and 739751 deletions
|
|
@ -13,12 +13,7 @@
|
|||
class?: string;
|
||||
}
|
||||
|
||||
let {
|
||||
app,
|
||||
size = 32,
|
||||
color,
|
||||
class: className = ''
|
||||
}: Props = $props();
|
||||
let { app, size = 32, color, class: className = '' }: Props = $props();
|
||||
|
||||
const branding = $derived(APP_BRANDING[app]);
|
||||
const fillColor = $derived(color ?? branding.primaryColor);
|
||||
|
|
@ -42,11 +37,6 @@
|
|||
stroke-linejoin="round"
|
||||
/>
|
||||
{:else}
|
||||
<path
|
||||
d={branding.logoPath}
|
||||
fill={fillColor}
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
/>
|
||||
<path d={branding.logoPath} fill={fillColor} fill-rule="evenodd" clip-rule="evenodd" />
|
||||
{/if}
|
||||
</svg>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
showName = true,
|
||||
nameFontSize = '1.25rem',
|
||||
gap = '0.5rem',
|
||||
class: className = ''
|
||||
class: className = '',
|
||||
}: Props = $props();
|
||||
|
||||
const branding = $derived(APP_BRANDING[app]);
|
||||
|
|
|
|||
|
|
@ -12,11 +12,7 @@
|
|||
class?: string;
|
||||
}
|
||||
|
||||
let {
|
||||
size = 24,
|
||||
color = '#4287f5',
|
||||
class: className = ''
|
||||
}: Props = $props();
|
||||
let { size = 24, color = '#4287f5', class: className = '' }: Props = $props();
|
||||
</script>
|
||||
|
||||
<svg
|
||||
|
|
@ -28,5 +24,7 @@
|
|||
class={className}
|
||||
aria-label="Mana"
|
||||
>
|
||||
<path d="M12.3047 1C12.3392 1.04573 19.608 10.6706 19.6084 14.6953C19.6084 18.7293 16.3386 21.9998 12.3047 22C8.27061 22 5 18.7294 5 14.6953C5.00041 10.661 12.3047 1 12.3047 1ZM12.3047 7.3916C12.2811 7.42276 8.65234 12.2288 8.65234 14.2393C8.65241 16.2562 10.2877 17.8916 12.3047 17.8916C14.3217 17.8916 15.957 16.2562 15.957 14.2393C15.957 12.2301 12.3331 7.42917 12.3047 7.3916Z" />
|
||||
<path
|
||||
d="M12.3047 1C12.3392 1.04573 19.608 10.6706 19.6084 14.6953C19.6084 18.7293 16.3386 21.9998 12.3047 22C8.27061 22 5 18.7294 5 14.6953C5.00041 10.661 12.3047 1 12.3047 1ZM12.3047 7.3916C12.2811 7.42276 8.65234 12.2288 8.65234 14.2393C8.65241 16.2562 10.2877 17.8916 12.3047 17.8916C14.3217 17.8916 15.957 16.2562 15.957 14.2393C15.957 12.2301 12.3331 7.42917 12.3047 7.3916Z"
|
||||
/>
|
||||
</svg>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@ export const APP_BRANDING: Record<AppId, AppBranding> = {
|
|||
primaryColor: '#f8d62b',
|
||||
secondaryColor: '#f7d44c',
|
||||
// Memoro smile/face logo
|
||||
logoPath: 'M280 140C280 217.32 217.32 280 140 280C62.6801 280 0 217.32 0 140C0 62.6801 62.6801 0 140 0C217.32 0 280 62.6801 280 140ZM247.988 140C247.988 199.64 199.64 241.988 140 241.988C80.3598 241.988 32.0118 199.64 32.0118 140C32.0118 111.918 36.7308 95.3397 54.3005 76.1331C58.5193 71.5212 70.5 63 79.3937 74.511L119.781 131.788C134.5 149 149 147 160.218 131.788L200.605 74.5101C208 64 221.48 71.5203 225.699 76.1321C243.269 95.3388 247.988 111.918 247.988 140Z',
|
||||
logoPath:
|
||||
'M280 140C280 217.32 217.32 280 140 280C62.6801 280 0 217.32 0 140C0 62.6801 62.6801 0 140 0C217.32 0 280 62.6801 280 140ZM247.988 140C247.988 199.64 199.64 241.988 140 241.988C80.3598 241.988 32.0118 199.64 32.0118 140C32.0118 111.918 36.7308 95.3397 54.3005 76.1331C58.5193 71.5212 70.5 63 79.3937 74.511L119.781 131.788C134.5 149 149 147 160.218 131.788L200.605 74.5101C208 64 221.48 71.5203 225.699 76.1321C243.269 95.3388 247.988 111.918 247.988 140Z',
|
||||
logoViewBox: '0 0 280 280',
|
||||
logoStroke: false,
|
||||
},
|
||||
|
|
@ -46,7 +47,8 @@ export const APP_BRANDING: Record<AppId, AppBranding> = {
|
|||
primaryColor: '#ec4899',
|
||||
secondaryColor: '#f472b6',
|
||||
// Book/Story icon
|
||||
logoPath: 'M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25',
|
||||
logoPath:
|
||||
'M12 6.042A8.967 8.967 0 006 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 016 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 016-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0018 18a8.967 8.967 0 00-6 2.292m0-14.25v14.25',
|
||||
logoViewBox: '0 0 24 24',
|
||||
logoStroke: true,
|
||||
logoStrokeWidth: 1.5,
|
||||
|
|
@ -58,7 +60,8 @@ export const APP_BRANDING: Record<AppId, AppBranding> = {
|
|||
primaryColor: '#3b82f6',
|
||||
secondaryColor: '#60a5fa',
|
||||
// Link/Chain icon
|
||||
logoPath: 'M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1',
|
||||
logoPath:
|
||||
'M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1',
|
||||
logoViewBox: '0 0 24 24',
|
||||
logoStroke: true,
|
||||
logoStrokeWidth: 2,
|
||||
|
|
@ -70,7 +73,8 @@ export const APP_BRANDING: Record<AppId, AppBranding> = {
|
|||
primaryColor: '#0ea5e9',
|
||||
secondaryColor: '#38bdf8',
|
||||
// Chat bubble icon
|
||||
logoPath: 'M8.625 12a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 01-2.555-.337A5.972 5.972 0 015.41 20.97a5.969 5.969 0 01-.474-.065 4.48 4.48 0 00.978-2.025c.09-.457-.133-.901-.467-1.226C3.93 16.178 3 14.189 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25z',
|
||||
logoPath:
|
||||
'M8.625 12a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 01-2.555-.337A5.972 5.972 0 015.41 20.97a5.969 5.969 0 01-.474-.065 4.48 4.48 0 00.978-2.025c.09-.457-.133-.901-.467-1.226C3.93 16.178 3 14.189 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25z',
|
||||
logoViewBox: '0 0 24 24',
|
||||
logoStroke: true,
|
||||
logoStrokeWidth: 1.5,
|
||||
|
|
|
|||
|
|
@ -20,16 +20,11 @@ export {
|
|||
ManaDeckLogo,
|
||||
StorytellerLogo,
|
||||
UloadLogo,
|
||||
ChatLogo
|
||||
ChatLogo,
|
||||
} from './logos';
|
||||
|
||||
// Configuration
|
||||
export { APP_BRANDING, getAppBranding, getAllAppBrandings } from './config';
|
||||
|
||||
// Types
|
||||
export type {
|
||||
AppId,
|
||||
AppBranding,
|
||||
LogoProps,
|
||||
AppLogoWithNameProps,
|
||||
} from './types';
|
||||
export type { AppId, AppBranding, LogoProps, AppLogoWithNameProps } from './types';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue