mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-09-01 12:26:08 +08:00
Segment locale parsing improvement (#108)
This commit is contained in:
parent
1740669f95
commit
0b2020309b
5 changed files with 420 additions and 406 deletions
|
@ -8,6 +8,7 @@ import { ProjectState } from '../auth/AuthMiddleware'
|
|||
import { projectMiddleware } from '../projects/ProjectController'
|
||||
import UserPatchJob from '../users/UserPatchJob'
|
||||
import { Job } from '../queue'
|
||||
import { parseLocale } from '../utilities'
|
||||
|
||||
const router = new Router<ProjectState>()
|
||||
router.use(projectMiddleware)
|
||||
|
@ -82,7 +83,7 @@ router.post('/segment', async ctx => {
|
|||
email: event.traits.email,
|
||||
phone: event.traits.phone,
|
||||
timezone: event.context.timezone,
|
||||
locale: event.context.locale,
|
||||
locale: parseLocale(event.context.locale),
|
||||
data: event.traits,
|
||||
},
|
||||
}))
|
||||
|
|
812
apps/ui/package-lock.json
generated
812
apps/ui/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -11,7 +11,7 @@
|
|||
"@testing-library/jest-dom": "^5.16.4",
|
||||
"@testing-library/react": "^13.3.0",
|
||||
"@testing-library/user-event": "^13.5.0",
|
||||
"@textea/json-viewer": "2.12.0",
|
||||
"@textea/json-viewer": "^2.16.1",
|
||||
"@types/jest": "^27.5.2",
|
||||
"@types/node": "^16.11.41",
|
||||
"@types/react": "^18.0.14",
|
||||
|
|
|
@ -28,12 +28,15 @@
|
|||
|
||||
.ui-table .table-cell, .ui-table .table-header-cell {
|
||||
display: table-cell;
|
||||
padding: 10px 15px;
|
||||
border-bottom: 1px solid var(--color-grey);
|
||||
}
|
||||
|
||||
.ui-table .table-header-cell {
|
||||
padding: 10px 5px;
|
||||
}
|
||||
|
||||
.ui-table .table-cell {
|
||||
padding: 15px;
|
||||
padding: 15px 5px;
|
||||
}
|
||||
|
||||
.ui-table .table-cell:first-child, .ui-table .table-header-cell:first-child {
|
||||
|
@ -42,6 +45,7 @@
|
|||
|
||||
.ui-table .table-row:last-child .table-cell {
|
||||
border-bottom: 0px;
|
||||
padding-right: 15px;
|
||||
}
|
||||
|
||||
.ui-table .table-cell .cell-content {
|
||||
|
|
|
@ -20,7 +20,6 @@ export default function UserTabs() {
|
|||
{ key: 'phone' },
|
||||
{ key: 'locale' },
|
||||
{ key: 'created_at' },
|
||||
{ key: 'updated_at' },
|
||||
]}
|
||||
onSelectRow={({ id }) => route(`users/${id}`)}
|
||||
enableSearch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue