Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
280f661
initial
CropWatchDevelopment Jul 3, 2025
a1816ac
fixed sidebar spacing
CropWatchDevelopment Jul 3, 2025
fbe6207
adding 404 error page for ux
CropWatchDevelopment Jul 3, 2025
779b74f
safety
CropWatchDevelopment Jul 4, 2025
d4e0683
sidebar open/close works,but no text is displayed
CropWatchDevelopment Jul 4, 2025
f98883f
safety
CropWatchDevelopment Jul 4, 2025
ae7b4f2
safety
CropWatchDevelopment Jul 4, 2025
86a2a6b
safety
CropWatchDevelopment Jul 4, 2025
ba07f5c
Merge pull request #281 from CropWatchDevelopment/sidebar
CropWatchDevelopment Jul 4, 2025
9eeddfd
all reports
CropWatchDevelopment Jul 4, 2025
7484dbf
removed text style on sidebar menu items
CropWatchDevelopment Jul 4, 2025
767d6e6
size adjustments on sidebar
CropWatchDevelopment Jul 4, 2025
d160861
trying to get real-time working again
CropWatchDevelopment Jul 4, 2025
2dadb08
real-time working
CropWatchDevelopment Jul 4, 2025
fdf0351
trying to get realtime updates working on detail page
CropWatchDevelopment Jul 4, 2025
08707f5
detail page updating in realtime now
CropWatchDevelopment Jul 4, 2025
a6e98f1
realtime in detail page working
CropWatchDevelopment Jul 4, 2025
53e6cd1
adding start of account wide settings page and stripe integration
CropWatchDevelopment Jul 6, 2025
fa55f10
fixing key
CropWatchDevelopment Jul 6, 2025
12c92a1
Further optimize device details for mobile
kyoshino Jul 8, 2025
e00bd5a
Merge pull request #282 from CropWatchDevelopment/device-details-mobile
CropWatchDevelopment Jul 8, 2025
c0ae050
Merge branch 'master' into develop
CropWatchDevelopment Jul 8, 2025
680164e
minor style and icon updates
CropWatchDevelopment Jul 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added STRIPE_WEBHOOK_SETUP.md
Empty file.
Empty file added check-webhook-data.mjs
Empty file.
Empty file added create-test-user.mjs
Empty file.
3,650 changes: 1,986 additions & 1,664 deletions database.types.ts

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"@layerstack/utils": "^1.0.0",
"@mdi/js": "^7.4.47",
"@stencil/store": "^2.1.3",
"@stripe/stripe-js": "^7.4.0",
"@supabase/ssr": "^0.6.1",
"@supabase/supabase-js": "^2.49.4",
"@types/lodash": "^4.17.16",
Expand All @@ -84,6 +85,7 @@
"luxon": "^3.6.1",
"pdfkit": "^0.17.1",
"reflect-metadata": "^0.2.2",
"stripe": "^18.3.0",
"svelte-i18n": "^4.0.1",
"svelte-ux": "^1.0.4",
"swagger-ui": "^5.21.0",
Expand Down
35 changes: 35 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 29 additions & 21 deletions scripts/build-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,35 @@ function getLocalIP() {
}
const ipAddress = getLocalIP();

// format output
const lines = [
'=== Build Info ===',
`Commit : ${commitHash}`,
`Branch : ${branch}`,
`Author : ${commitUser}`,
`Date : ${buildDate}`,
`Builder : ${user}@${host}`,
`IP Address : ${ipAddress}`,
'=================='
];
const output = lines.join('\n');
// format output as JSON
const buildInfo = {
commit: commitHash,
branch: branch,
author: commitUser,
date: buildDate,
builder: `${user}@${host}`,
ipAddress: ipAddress,
timestamp: Date.now()
};

const jsonOutput = JSON.stringify(buildInfo, null, 2);

// print to console
console.log('\n\x1b[33m' + lines[0] + '\x1b[0m');
lines
.slice(1, -1)
.forEach((line) => console.log(` • ${line.split(': ')[0].padEnd(12)} ${line.split(': ')[1]}`));
console.log('\x1b[33m' + lines[lines.length - 1] + '\x1b[0m\n');

// write to file at project root
const filePath = path.join(process.cwd(), 'build-info.txt');
fs.writeFileSync(filePath, output + '\n', { encoding: 'utf8' });
console.log('\n\x1b[33m=== Build Info ===\x1b[0m');
console.log(` • Commit : ${buildInfo.commit}`);
console.log(` • Branch : ${buildInfo.branch}`);
console.log(` • Author : ${buildInfo.author}`);
console.log(` • Date : ${buildInfo.date}`);
console.log(` • Builder : ${buildInfo.builder}`);
console.log(` • IP Address : ${buildInfo.ipAddress}`);
console.log('\x1b[33m==================\x1b[0m\n');

// write to JSON file in static directory
const staticDir = path.join(process.cwd(), 'static');
if (!fs.existsSync(staticDir)) {
fs.mkdirSync(staticDir, { recursive: true });
}

const filePath = path.join(staticDir, 'build-info.json');
fs.writeFileSync(filePath, jsonOutput + '\n', { encoding: 'utf8' });
console.log(`Build info written to ${filePath}\n`);
1 change: 1 addition & 0 deletions src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const PUBLIC_ROUTES = [
'/offline.html',
'/auth', // All routes under /auth/
'/api/auth', // Only authentication-related API routes
'/api/webhook', // Webhook endpoints (authenticated via webhook signatures)
'/static', // All static assets
'/static/icons',
'/static/screenshots'
Expand Down
Loading