Merge pull request #2115 from appwrite/add-hiring-console-message

This commit is contained in:
Chirag Aggarwal
2025-06-18 20:04:42 +05:30
committed by GitHub
2 changed files with 29 additions and 0 deletions

View File

@@ -17,6 +17,33 @@ const BillingPlan = {
SCALE: 'tier-2' SCALE: 'tier-2'
} as const; } as const;
const ASCII_ART = `
_ _ _
/_\\ _ __ _ ____ ___ __(_) |_ ___
//_\\\\| '_ \\| '_ \\ \\ /\\ / / '__| | __/ _ \\
/ _ \\ |_) | |_) \\ V V /| | | | || __/
\\_/ \\_/ .__/| .__/ \\_/\\_/ |_| |_|\\__\\___|
|_| |_|
`;
export function displayHiringMessage() {
if (browser) {
console.log('%c' + ASCII_ART, 'font-family: monospace; white-space: pre; color: #fd366e;');
console.log(
'%cWe are hiring!',
'font-family: Aeonik Pro, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 20px; font-weight: bold;'
);
console.log(
'%cJoin us in building the open-source, all-in-one development platform',
'font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px;'
);
console.log(
'%cCheck out our open positions at https://appwrite.io/careers',
'font-family: monospace; color: #666;'
);
}
}
export async function createSource( export async function createSource(
ref: string | null, ref: string | null,
referrer: string | null, referrer: string | null,

View File

@@ -59,6 +59,7 @@
import { saveReferrerAndUtmSource } from '$lib/utils/utm'; import { saveReferrerAndUtmSource } from '$lib/utils/utm';
import { Sprite } from '$lib/components/ui/icon/sprite'; import { Sprite } from '$lib/components/ui/icon/sprite';
import { setTheme, ThemeProvider } from '$lib/providers/theme'; import { setTheme, ThemeProvider } from '$lib/providers/theme';
import { displayHiringMessage } from '$lib/utils/console';
function applyTheme(theme: Theme) { function applyTheme(theme: Theme) {
const resolvedTheme = theme === 'system' ? getSystemTheme() : theme; const resolvedTheme = theme === 'system' ? getSystemTheme() : theme;
@@ -71,6 +72,7 @@
const tracked = new Set(); const tracked = new Set();
onMount(() => { onMount(() => {
displayHiringMessage();
saveReferrerAndUtmSource(page.url); saveReferrerAndUtmSource(page.url);
const initialTheme = page.route.id?.startsWith('/docs') ? getPreferredTheme() : 'dark'; const initialTheme = page.route.id?.startsWith('/docs') ? getPreferredTheme() : 'dark';