Skip to content

Commit

Permalink
Merge branch 'dev' into analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Nov 19, 2024
2 parents 5089c42 + ec2f520 commit 1ff9d69
Show file tree
Hide file tree
Showing 21 changed files with 1,062 additions and 1,024 deletions.
16 changes: 8 additions & 8 deletions db/mysql/migrations/01_init/migration.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CREATE TABLE `user` (
UNIQUE INDEX `user_user_id_key`(`user_id`),
UNIQUE INDEX `user_username_key`(`username`),
PRIMARY KEY (`user_id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

-- CreateTable
CREATE TABLE `session` (
Expand All @@ -33,7 +33,7 @@ CREATE TABLE `session` (
INDEX `session_created_at_idx`(`created_at`),
INDEX `session_website_id_idx`(`website_id`),
PRIMARY KEY (`session_id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

-- CreateTable
CREATE TABLE `website` (
Expand All @@ -53,7 +53,7 @@ CREATE TABLE `website` (
INDEX `website_created_at_idx`(`created_at`),
INDEX `website_share_id_idx`(`share_id`),
PRIMARY KEY (`website_id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

-- CreateTable
CREATE TABLE `website_event` (
Expand All @@ -76,7 +76,7 @@ CREATE TABLE `website_event` (
INDEX `website_event_website_id_created_at_idx`(`website_id`, `created_at`),
INDEX `website_event_website_id_session_id_created_at_idx`(`website_id`, `session_id`, `created_at`),
PRIMARY KEY (`event_id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

-- CreateTable
CREATE TABLE `event_data` (
Expand All @@ -95,7 +95,7 @@ CREATE TABLE `event_data` (
INDEX `event_data_website_event_id_idx`(`website_event_id`),
INDEX `event_data_website_id_website_event_id_created_at_idx`(`website_id`, `website_event_id`, `created_at`),
PRIMARY KEY (`event_id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

-- CreateTable
CREATE TABLE `team` (
Expand All @@ -109,7 +109,7 @@ CREATE TABLE `team` (
UNIQUE INDEX `team_access_code_key`(`access_code`),
INDEX `team_access_code_idx`(`access_code`),
PRIMARY KEY (`team_id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

-- CreateTable
CREATE TABLE `team_user` (
Expand All @@ -124,7 +124,7 @@ CREATE TABLE `team_user` (
INDEX `team_user_team_id_idx`(`team_id`),
INDEX `team_user_user_id_idx`(`user_id`),
PRIMARY KEY (`team_user_id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

-- CreateTable
CREATE TABLE `team_website` (
Expand All @@ -137,7 +137,7 @@ CREATE TABLE `team_website` (
INDEX `team_website_team_id_idx`(`team_id`),
INDEX `team_website_website_id_idx`(`website_id`),
PRIMARY KEY (`team_website_id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

-- AddSystemUser
INSERT INTO user (user_id, username, role, password) VALUES ('41e2b680-648e-4b09-bcd7-3e2b10c06264' , 'admin', 'admin', '$2b$10$BUli0c.muyCW1ErNJc3jL.vFRFtFJWrT8/GcR4A.sUdCznaXiqFXa');
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ CREATE TABLE `session_data` (
INDEX `session_data_website_id_idx`(`website_id`),
INDEX `session_data_session_id_idx`(`session_id`),
PRIMARY KEY (`session_data_id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

-- CreateTable
CREATE TABLE `report` (
Expand All @@ -41,7 +41,7 @@ CREATE TABLE `report` (
INDEX `report_type_idx`(`type`),
INDEX `report_name_idx`(`name`),
PRIMARY KEY (`report_id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
) ENGINE=InnoDB DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

-- EventData migration
UPDATE event_data
Expand Down
4 changes: 4 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ const trackerHeaders = [
key: 'Access-Control-Allow-Origin',
value: '*',
},
{
key: 'Cache-Control',
value: 'public, max-age=86400, must-revalidate',
},
];

const headers = [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
},
"devDependencies": {
"@formatjs/cli": "^4.2.29",
"@netlify/plugin-nextjs": "^5.1.0",
"@netlify/plugin-nextjs": "^5.8.1",
"@rollup/plugin-alias": "^5.0.0",
"@rollup/plugin-commonjs": "^25.0.4",
"@rollup/plugin-json": "^6.0.0",
Expand Down
34 changes: 17 additions & 17 deletions public/intl/messages/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
"label.entry": [
{
"type": 0,
"value": "Entry URL"
"value": "URL d'entrée"
}
],
"label.event": [
Expand Down Expand Up @@ -476,7 +476,7 @@
"label.first-seen": [
{
"type": 0,
"value": "First seen"
"value": "Vu pour la première fois"
}
],
"label.funnel": [
Expand Down Expand Up @@ -506,7 +506,7 @@
"label.goals-description": [
{
"type": 0,
"value": "Track your goals for pageviews and events."
"value": "Suivez vos objectifs en matière de pages vues et d'événements."
}
],
"label.greater-than": [
Expand Down Expand Up @@ -590,7 +590,7 @@
"label.journey-description": [
{
"type": 0,
"value": "Understand how users navigate through your website."
"value": "Comprendre comment les utilisateurs naviguent sur votre site web."
}
],
"label.language": [
Expand Down Expand Up @@ -886,19 +886,19 @@
"label.previous": [
{
"type": 0,
"value": "Previous"
"value": "Précédent"
}
],
"label.previous-period": [
{
"type": 0,
"value": "Previous period"
"value": "Période précédente"
}
],
"label.previous-year": [
{
"type": 0,
"value": "Previous year"
"value": "Année précédente"
}
],
"label.profile": [
Expand All @@ -910,13 +910,13 @@
"label.properties": [
{
"type": 0,
"value": "Properties"
"value": "Propriétés"
}
],
"label.property": [
{
"type": 0,
"value": "Property"
"value": "Propriété"
}
],
"label.queries": [
Expand Down Expand Up @@ -1036,13 +1036,13 @@
"label.revenue-description": [
{
"type": 0,
"value": "Look into your revenue across time."
"value": "Examinez vos revenus au fil du temps."
}
],
"label.revenue-property": [
{
"type": 0,
"value": "Revenue Property"
"value": "Propriétés des revenues"
}
],
"label.role": [
Expand Down Expand Up @@ -1078,7 +1078,7 @@
"label.select": [
{
"type": 0,
"value": "Select"
"value": "Selectionner"
}
],
"label.select-date": [
Expand Down Expand Up @@ -1132,7 +1132,7 @@
"label.start-step": [
{
"type": 0,
"value": "Start Step"
"value": "Etape de démarrage"
}
],
"label.steps": [
Expand Down Expand Up @@ -1168,7 +1168,7 @@
"label.team-manager": [
{
"type": 0,
"value": "Team manager"
"value": "Manager de l'équipe"
}
],
"label.team-member": [
Expand All @@ -1192,7 +1192,7 @@
"label.team-view-only": [
{
"type": 0,
"value": "Team view only"
"value": "Vue d'équipe uniquement"
}
],
"label.team-websites": [
Expand Down Expand Up @@ -1318,7 +1318,7 @@
"label.uniqueCustomers": [
{
"type": 0,
"value": "Unique Customers"
"value": "Clients uniques"
}
],
"label.unknown": [
Expand Down Expand Up @@ -1360,7 +1360,7 @@
"label.user-property": [
{
"type": 0,
"value": "User Property"
"value": "Propriétés d'utilisateurs"
}
],
"label.username": [
Expand Down
Loading

0 comments on commit 1ff9d69

Please sign in to comment.