Skip to content

Commit 6da7f58

Browse files
authored
Merge pull request #1897 from Fredkiss3/feat/log-analytics
feat: request log analytics
2 parents 02fbc27 + 6368b9d commit 6da7f58

30 files changed

+4000
-288
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ RUN npm ci
1212
COPY . .
1313

1414
RUN echo "export * from \"./$DATABASE\";" > server/db/index.ts
15+
RUN echo "export const driver: \"pg\" | \"sqlite\" = \"$DATABASE\";" >> server/db/index.ts
1516

16-
RUN echo "export const build = \"$BUILD\" as any;" > server/build.ts
17+
RUN echo "export const build = \"$BUILD\" as \"saas\" | \"enterprise\" | \"oss\";" > server/build.ts
1718

1819
# Copy the appropriate TypeScript configuration based on build type
1920
RUN if [ "$BUILD" = "oss" ]; then cp tsconfig.oss.json tsconfig.json; \
@@ -30,9 +31,9 @@ RUN mkdir -p dist
3031
RUN npm run next:build
3132
RUN node esbuild.mjs -e server/index.ts -o dist/server.mjs -b $BUILD
3233
RUN if [ "$DATABASE" = "pg" ]; then \
33-
node esbuild.mjs -e server/setup/migrationsPg.ts -o dist/migrations.mjs; \
34+
node esbuild.mjs -e server/setup/migrationsPg.ts -o dist/migrations.mjs; \
3435
else \
35-
node esbuild.mjs -e server/setup/migrationsSqlite.ts -o dist/migrations.mjs; \
36+
node esbuild.mjs -e server/setup/migrationsSqlite.ts -o dist/migrations.mjs; \
3637
fi
3738

3839
# test to make sure the build output is there and error if not

messages/en-US.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,16 @@
436436
"inviteEmailSent": "Send invite email to user",
437437
"inviteValid": "Valid For",
438438
"selectDuration": "Select duration",
439+
"selectResource": "Select Resource",
440+
"filterByResource": "Filter By Resource",
441+
"resetFilters": "Reset Filters",
442+
"totalBlocked": "Requests Blocked By Pangolin",
443+
"totalRequests": "Total Requests",
444+
"requestsByCountry": "Requests By Country",
445+
"requestsByDay": "Requests By Day",
446+
"blocked": "Blocked",
447+
"allowed": "Allowed",
448+
"topCountries": "Top Countries",
439449
"accessRoleSelect": "Select role",
440450
"inviteEmailSentDescription": "An email has been sent to the user with the access link below. They must access the link to accept the invitation.",
441451
"inviteSentDescription": "The user has been invited. They must access the link below to accept the invitation.",
@@ -702,6 +712,7 @@
702712
"resourceTransferSubmit": "Transfer Resource",
703713
"siteDestination": "Destination Site",
704714
"searchSites": "Search sites",
715+
"countries": "Countries",
705716
"accessRoleCreate": "Create Role",
706717
"accessRoleCreateDescription": "Create a new role to group users and manage their permissions.",
707718
"accessRoleCreateSubmit": "Create Role",
@@ -1163,7 +1174,11 @@
11631174
"sidebarLicense": "License",
11641175
"sidebarClients": "Clients",
11651176
"sidebarDomains": "Domains",
1177+
"sidebarGeneral": "General",
1178+
"sidebarLogAndAnalytics": "Log & Analytics",
11661179
"sidebarBluePrints": "Blueprints",
1180+
"sidebarOrganization": "Organization",
1181+
"sidebarLogsAnalytics": "Request Analytics",
11671182
"blueprints": "Blueprints",
11681183
"blueprintsDescription": "Apply declarative configurations and view previous runs",
11691184
"blueprintAdd": "Add Blueprint",
@@ -1998,6 +2013,7 @@
19982013
"clientMessageRemove": "Once removed, the client will no longer be able to connect to the site.",
19992014
"sidebarLogs": "Logs",
20002015
"request": "Request",
2016+
"requests": "Requests",
20012017
"logs": "Logs",
20022018
"logsSettingsDescription": "Monitor logs collected from this orginization",
20032019
"searchLogs": "Search logs...",
@@ -2023,6 +2039,7 @@
20232039
"ip": "IP",
20242040
"reason": "Reason",
20252041
"requestLogs": "Request Logs",
2042+
"requestAnalytics": "Request Analytics",
20262043
"host": "Host",
20272044
"location": "Location",
20282045
"actionLogs": "Action Logs",
@@ -2032,6 +2049,7 @@
20322049
"logRetention": "Log Retention",
20332050
"logRetentionDescription": "Manage how long different types of logs are retained for this organization or disable them",
20342051
"requestLogsDescription": "View detailed request logs for resources in this organization",
2052+
"requestAnalyticsDescription": "View detailed request analytics for resources in this organization",
20352053
"logRetentionRequestLabel": "Request Log Retention",
20362054
"logRetentionRequestDescription": "How long to retain request logs",
20372055
"logRetentionAccessLabel": "Access Log Retention",
@@ -2139,5 +2157,6 @@
21392157
"niceIdUpdateErrorDescription": "An error occurred while updating the Nice ID.",
21402158
"niceIdCannotBeEmpty": "Nice ID cannot be empty",
21412159
"enterIdentifier": "Enter identifier",
2142-
"identifier": "Identifier"
2160+
"identifier": "Identifier",
2161+
"noData": "No Data"
21432162
}

next.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ const nextConfig: NextConfig = {
77
eslint: {
88
ignoreDuringBuilds: true
99
},
10+
experimental: {
11+
reactCompiler: true
12+
},
1013
output: "standalone"
1114
};
1215

0 commit comments

Comments
 (0)